Add a shared library for LLVM, named libLLVM2.7svn.(so|dylib), and add an
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.7svn.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541 exec 7<&0 </dev/null 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559 SHELL=${CONFIG_SHELL-/bin/sh}
560
561 # Identity of this package.
562 PACKAGE_NAME='llvm'
563 PACKAGE_TARNAME='-llvm-'
564 PACKAGE_VERSION='2.7svn'
565 PACKAGE_STRING='llvm 2.7svn'
566 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
567
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_COPYRIGHT
643 subdirs
644 build
645 build_cpu
646 build_vendor
647 build_os
648 host
649 host_cpu
650 host_vendor
651 host_os
652 target
653 target_cpu
654 target_vendor
655 target_os
656 OS
657 HOST_OS
658 TARGET_OS
659 LINKALL
660 NOLINKALL
661 LLVM_ON_UNIX
662 LLVM_ON_WIN32
663 ARCH
664 ENDIAN
665 CC
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 CPP
673 GREP
674 EGREP
675 LLVM_CROSS_COMPILING
676 BUILD_CC
677 BUILD_EXEEXT
678 BUILD_CXX
679 CVSBUILD
680 ENABLE_OPTIMIZED
681 ENABLE_PROFILING
682 DISABLE_ASSERTIONS
683 ENABLE_EXPENSIVE_CHECKS
684 EXPENSIVE_CHECKS
685 DEBUG_RUNTIME
686 DEBUG_SYMBOLS
687 JIT
688 TARGET_HAS_JIT
689 ENABLE_DOXYGEN
690 ENABLE_THREADS
691 ENABLE_PIC
692 ENABLE_SHARED
693 TARGETS_TO_BUILD
694 LLVM_ENUM_TARGETS
695 LLVM_ENUM_ASM_PRINTERS
696 LLVM_ENUM_ASM_PARSERS
697 LLVM_ENUM_DISASSEMBLERS
698 ENABLE_CBE_PRINTF_A
699 OPTIMIZE_OPTION
700 EXTRA_OPTIONS
701 BINUTILS_INCDIR
702 ENABLE_LLVMC_DYNAMIC
703 ENABLE_LLVMC_DYNAMIC_PLUGINS
704 CXX
705 CXXFLAGS
706 ac_ct_CXX
707 NM
708 ifGNUmake
709 LN_S
710 CMP
711 CP
712 DATE
713 FIND
714 MKDIR
715 MV
716 RANLIB
717 AR
718 RM
719 SED
720 TAR
721 BINPWD
722 GRAPHVIZ
723 DOT
724 FDP
725 NEATO
726 TWOPI
727 CIRCO
728 GV
729 DOTTY
730 PERL
731 HAVE_PERL
732 INSTALL_PROGRAM
733 INSTALL_SCRIPT
734 INSTALL_DATA
735 BZIP2
736 DOXYGEN
737 GROFF
738 GZIP
739 POD2HTML
740 POD2MAN
741 RUNTEST
742 TCLSH
743 ZIP
744 OCAMLC
745 OCAMLOPT
746 OCAMLDEP
747 OCAMLDOC
748 GAS
749 INSTALL_LTDL_TRUE
750 INSTALL_LTDL_FALSE
751 CONVENIENCE_LTDL_TRUE
752 CONVENIENCE_LTDL_FALSE
753 LIBADD_DL
754 LLVMGCCCOMMAND
755 LLVMGXXCOMMAND
756 LLVMGCC
757 LLVMGXX
758 NO_VARIADIC_MACROS
759 NO_MISSING_FIELD_INITIALIZERS
760 USE_UDIS86
761 USE_OPROFILE
762 HAVE_PTHREAD
763 HUGE_VAL_SANITY
764 MMAP_FILE
765 LLVMCC1
766 LLVMCC1PLUS
767 LLVMGCCDIR
768 LLVMGCCLIBEXEC
769 LLVMGCC_VERSION
770 LLVMGCC_MAJVERS
771 LLVMGCC_LANGS
772 SHLIBEXT
773 SHLIBPATH_VAR
774 LLVM_PREFIX
775 LLVM_BINDIR
776 LLVM_LIBDIR
777 LLVM_DATADIR
778 LLVM_DOCSDIR
779 LLVM_ETCDIR
780 LLVM_INCLUDEDIR
781 LLVM_INFODIR
782 LLVM_MANDIR
783 LLVM_CONFIGTIME
784 BINDINGS_TO_BUILD
785 ALL_BINDINGS
786 OCAML_LIBDIR
787 ENABLE_VISIBILITY_INLINES_HIDDEN
788 RPATH
789 RDYNAMIC
790 LIBOBJS
791 LTLIBOBJS'
792 ac_subst_files=''
793       ac_precious_vars='build_alias
794 host_alias
795 target_alias
796 CC
797 CFLAGS
798 LDFLAGS
799 CPPFLAGS
800 CPP
801 CXX
802 CXXFLAGS
803 CCC'
804 ac_subdirs_all='projects/sample
805 projects/privbracket
806 projects/llvm-stacker
807 projects/llvm-test
808 projects/test-suite
809 projects/llvm-reopt
810 projects/llvm-gcc
811 projects/llvm-java
812 projects/llvm-tv
813 projects/llvm-poolalloc
814 projects/poolalloc
815 projects/llvm-kernel'
816
817 # Initialize some variables set by options.
818 ac_init_help=
819 ac_init_version=false
820 # The variables have the same names as the options, with
821 # dashes changed to underlines.
822 cache_file=/dev/null
823 exec_prefix=NONE
824 no_create=
825 no_recursion=
826 prefix=NONE
827 program_prefix=NONE
828 program_suffix=NONE
829 program_transform_name=s,x,x,
830 silent=
831 site=
832 srcdir=
833 verbose=
834 x_includes=NONE
835 x_libraries=NONE
836
837 # Installation directory options.
838 # These are left unexpanded so users can "make install exec_prefix=/foo"
839 # and all the variables that are supposed to be based on exec_prefix
840 # by default will actually change.
841 # Use braces instead of parens because sh, perl, etc. also accept them.
842 # (The list follows the same order as the GNU Coding Standards.)
843 bindir='${exec_prefix}/bin'
844 sbindir='${exec_prefix}/sbin'
845 libexecdir='${exec_prefix}/libexec'
846 datarootdir='${prefix}/share'
847 datadir='${datarootdir}'
848 sysconfdir='${prefix}/etc'
849 sharedstatedir='${prefix}/com'
850 localstatedir='${prefix}/var'
851 includedir='${prefix}/include'
852 oldincludedir='/usr/include'
853 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
854 infodir='${datarootdir}/info'
855 htmldir='${docdir}'
856 dvidir='${docdir}'
857 pdfdir='${docdir}'
858 psdir='${docdir}'
859 libdir='${exec_prefix}/lib'
860 localedir='${datarootdir}/locale'
861 mandir='${datarootdir}/man'
862
863 ac_prev=
864 ac_dashdash=
865 for ac_option
866 do
867   # If the previous option needs an argument, assign it.
868   if test -n "$ac_prev"; then
869     eval $ac_prev=\$ac_option
870     ac_prev=
871     continue
872   fi
873
874   case $ac_option in
875   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
876   *)    ac_optarg=yes ;;
877   esac
878
879   # Accept the important Cygnus configure options, so we can diagnose typos.
880
881   case $ac_dashdash$ac_option in
882   --)
883     ac_dashdash=yes ;;
884
885   -bindir | --bindir | --bindi | --bind | --bin | --bi)
886     ac_prev=bindir ;;
887   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
888     bindir=$ac_optarg ;;
889
890   -build | --build | --buil | --bui | --bu)
891     ac_prev=build_alias ;;
892   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893     build_alias=$ac_optarg ;;
894
895   -cache-file | --cache-file | --cache-fil | --cache-fi \
896   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897     ac_prev=cache_file ;;
898   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900     cache_file=$ac_optarg ;;
901
902   --config-cache | -C)
903     cache_file=config.cache ;;
904
905   -datadir | --datadir | --datadi | --datad)
906     ac_prev=datadir ;;
907   -datadir=* | --datadir=* | --datadi=* | --datad=*)
908     datadir=$ac_optarg ;;
909
910   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911   | --dataroo | --dataro | --datar)
912     ac_prev=datarootdir ;;
913   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915     datarootdir=$ac_optarg ;;
916
917   -disable-* | --disable-*)
918     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
919     # Reject names that are not valid shell variable names.
920     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
921       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
922    { (exit 1); exit 1; }; }
923     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
924     eval enable_$ac_feature=no ;;
925
926   -docdir | --docdir | --docdi | --doc | --do)
927     ac_prev=docdir ;;
928   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
929     docdir=$ac_optarg ;;
930
931   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
932     ac_prev=dvidir ;;
933   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
934     dvidir=$ac_optarg ;;
935
936   -enable-* | --enable-*)
937     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
938     # Reject names that are not valid shell variable names.
939     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
940       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
941    { (exit 1); exit 1; }; }
942     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
943     eval enable_$ac_feature=\$ac_optarg ;;
944
945   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947   | --exec | --exe | --ex)
948     ac_prev=exec_prefix ;;
949   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951   | --exec=* | --exe=* | --ex=*)
952     exec_prefix=$ac_optarg ;;
953
954   -gas | --gas | --ga | --g)
955     # Obsolete; use --with-gas.
956     with_gas=yes ;;
957
958   -help | --help | --hel | --he | -h)
959     ac_init_help=long ;;
960   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961     ac_init_help=recursive ;;
962   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963     ac_init_help=short ;;
964
965   -host | --host | --hos | --ho)
966     ac_prev=host_alias ;;
967   -host=* | --host=* | --hos=* | --ho=*)
968     host_alias=$ac_optarg ;;
969
970   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971     ac_prev=htmldir ;;
972   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973   | --ht=*)
974     htmldir=$ac_optarg ;;
975
976   -includedir | --includedir | --includedi | --included | --include \
977   | --includ | --inclu | --incl | --inc)
978     ac_prev=includedir ;;
979   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980   | --includ=* | --inclu=* | --incl=* | --inc=*)
981     includedir=$ac_optarg ;;
982
983   -infodir | --infodir | --infodi | --infod | --info | --inf)
984     ac_prev=infodir ;;
985   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986     infodir=$ac_optarg ;;
987
988   -libdir | --libdir | --libdi | --libd)
989     ac_prev=libdir ;;
990   -libdir=* | --libdir=* | --libdi=* | --libd=*)
991     libdir=$ac_optarg ;;
992
993   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994   | --libexe | --libex | --libe)
995     ac_prev=libexecdir ;;
996   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997   | --libexe=* | --libex=* | --libe=*)
998     libexecdir=$ac_optarg ;;
999
1000   -localedir | --localedir | --localedi | --localed | --locale)
1001     ac_prev=localedir ;;
1002   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003     localedir=$ac_optarg ;;
1004
1005   -localstatedir | --localstatedir | --localstatedi | --localstated \
1006   | --localstate | --localstat | --localsta | --localst | --locals)
1007     ac_prev=localstatedir ;;
1008   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010     localstatedir=$ac_optarg ;;
1011
1012   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013     ac_prev=mandir ;;
1014   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015     mandir=$ac_optarg ;;
1016
1017   -nfp | --nfp | --nf)
1018     # Obsolete; use --without-fp.
1019     with_fp=no ;;
1020
1021   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022   | --no-cr | --no-c | -n)
1023     no_create=yes ;;
1024
1025   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027     no_recursion=yes ;;
1028
1029   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031   | --oldin | --oldi | --old | --ol | --o)
1032     ac_prev=oldincludedir ;;
1033   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036     oldincludedir=$ac_optarg ;;
1037
1038   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039     ac_prev=prefix ;;
1040   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041     prefix=$ac_optarg ;;
1042
1043   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044   | --program-pre | --program-pr | --program-p)
1045     ac_prev=program_prefix ;;
1046   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048     program_prefix=$ac_optarg ;;
1049
1050   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051   | --program-suf | --program-su | --program-s)
1052     ac_prev=program_suffix ;;
1053   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055     program_suffix=$ac_optarg ;;
1056
1057   -program-transform-name | --program-transform-name \
1058   | --program-transform-nam | --program-transform-na \
1059   | --program-transform-n | --program-transform- \
1060   | --program-transform | --program-transfor \
1061   | --program-transfo | --program-transf \
1062   | --program-trans | --program-tran \
1063   | --progr-tra | --program-tr | --program-t)
1064     ac_prev=program_transform_name ;;
1065   -program-transform-name=* | --program-transform-name=* \
1066   | --program-transform-nam=* | --program-transform-na=* \
1067   | --program-transform-n=* | --program-transform-=* \
1068   | --program-transform=* | --program-transfor=* \
1069   | --program-transfo=* | --program-transf=* \
1070   | --program-trans=* | --program-tran=* \
1071   | --progr-tra=* | --program-tr=* | --program-t=*)
1072     program_transform_name=$ac_optarg ;;
1073
1074   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075     ac_prev=pdfdir ;;
1076   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077     pdfdir=$ac_optarg ;;
1078
1079   -psdir | --psdir | --psdi | --psd | --ps)
1080     ac_prev=psdir ;;
1081   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082     psdir=$ac_optarg ;;
1083
1084   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085   | -silent | --silent | --silen | --sile | --sil)
1086     silent=yes ;;
1087
1088   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089     ac_prev=sbindir ;;
1090   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091   | --sbi=* | --sb=*)
1092     sbindir=$ac_optarg ;;
1093
1094   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096   | --sharedst | --shareds | --shared | --share | --shar \
1097   | --sha | --sh)
1098     ac_prev=sharedstatedir ;;
1099   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102   | --sha=* | --sh=*)
1103     sharedstatedir=$ac_optarg ;;
1104
1105   -site | --site | --sit)
1106     ac_prev=site ;;
1107   -site=* | --site=* | --sit=*)
1108     site=$ac_optarg ;;
1109
1110   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111     ac_prev=srcdir ;;
1112   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113     srcdir=$ac_optarg ;;
1114
1115   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116   | --syscon | --sysco | --sysc | --sys | --sy)
1117     ac_prev=sysconfdir ;;
1118   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120     sysconfdir=$ac_optarg ;;
1121
1122   -target | --target | --targe | --targ | --tar | --ta | --t)
1123     ac_prev=target_alias ;;
1124   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125     target_alias=$ac_optarg ;;
1126
1127   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1128     verbose=yes ;;
1129
1130   -version | --version | --versio | --versi | --vers | -V)
1131     ac_init_version=: ;;
1132
1133   -with-* | --with-*)
1134     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135     # Reject names that are not valid shell variable names.
1136     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1137       { echo "$as_me: error: invalid package name: $ac_package" >&2
1138    { (exit 1); exit 1; }; }
1139     ac_package=`echo $ac_package| sed 's/-/_/g'`
1140     eval with_$ac_package=\$ac_optarg ;;
1141
1142   -without-* | --without-*)
1143     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1144     # Reject names that are not valid shell variable names.
1145     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1146       { echo "$as_me: error: invalid package name: $ac_package" >&2
1147    { (exit 1); exit 1; }; }
1148     ac_package=`echo $ac_package | sed 's/-/_/g'`
1149     eval with_$ac_package=no ;;
1150
1151   --x)
1152     # Obsolete; use --with-x.
1153     with_x=yes ;;
1154
1155   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156   | --x-incl | --x-inc | --x-in | --x-i)
1157     ac_prev=x_includes ;;
1158   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160     x_includes=$ac_optarg ;;
1161
1162   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164     ac_prev=x_libraries ;;
1165   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167     x_libraries=$ac_optarg ;;
1168
1169   -*) { echo "$as_me: error: unrecognized option: $ac_option
1170 Try \`$0 --help' for more information." >&2
1171    { (exit 1); exit 1; }; }
1172     ;;
1173
1174   *=*)
1175     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176     # Reject names that are not valid shell variable names.
1177     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1178       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1179    { (exit 1); exit 1; }; }
1180     eval $ac_envvar=\$ac_optarg
1181     export $ac_envvar ;;
1182
1183   *)
1184     # FIXME: should be removed in autoconf 3.0.
1185     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1189     ;;
1190
1191   esac
1192 done
1193
1194 if test -n "$ac_prev"; then
1195   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196   { echo "$as_me: error: missing argument to $ac_option" >&2
1197    { (exit 1); exit 1; }; }
1198 fi
1199
1200 # Be sure to have absolute directory names.
1201 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1202                 datadir sysconfdir sharedstatedir localstatedir includedir \
1203                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1204                 libdir localedir mandir
1205 do
1206   eval ac_val=\$$ac_var
1207   case $ac_val in
1208     [\\/$]* | ?:[\\/]* )  continue;;
1209     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210   esac
1211   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1212    { (exit 1); exit 1; }; }
1213 done
1214
1215 # There might be people who depend on the old broken behavior: `$host'
1216 # used to hold the argument of --host etc.
1217 # FIXME: To remove some day.
1218 build=$build_alias
1219 host=$host_alias
1220 target=$target_alias
1221
1222 # FIXME: To remove some day.
1223 if test "x$host_alias" != x; then
1224   if test "x$build_alias" = x; then
1225     cross_compiling=maybe
1226     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1227     If a cross compiler is detected then cross compile mode will be used." >&2
1228   elif test "x$build_alias" != "x$host_alias"; then
1229     cross_compiling=yes
1230   fi
1231 fi
1232
1233 ac_tool_prefix=
1234 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1235
1236 test "$silent" = yes && exec 6>/dev/null
1237
1238
1239 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1240 ac_ls_di=`ls -di .` &&
1241 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1242   { echo "$as_me: error: Working directory cannot be determined" >&2
1243    { (exit 1); exit 1; }; }
1244 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1245   { echo "$as_me: error: pwd does not report name of working directory" >&2
1246    { (exit 1); exit 1; }; }
1247
1248
1249 # Find the source files, if location was not specified.
1250 if test -z "$srcdir"; then
1251   ac_srcdir_defaulted=yes
1252   # Try the directory containing this script, then the parent directory.
1253   ac_confdir=`$as_dirname -- "$0" ||
1254 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1255          X"$0" : 'X\(//\)[^/]' \| \
1256          X"$0" : 'X\(//\)$' \| \
1257          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1258 echo X"$0" |
1259     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1260             s//\1/
1261             q
1262           }
1263           /^X\(\/\/\)[^/].*/{
1264             s//\1/
1265             q
1266           }
1267           /^X\(\/\/\)$/{
1268             s//\1/
1269             q
1270           }
1271           /^X\(\/\).*/{
1272             s//\1/
1273             q
1274           }
1275           s/.*/./; q'`
1276   srcdir=$ac_confdir
1277   if test ! -r "$srcdir/$ac_unique_file"; then
1278     srcdir=..
1279   fi
1280 else
1281   ac_srcdir_defaulted=no
1282 fi
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1285   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1286    { (exit 1); exit 1; }; }
1287 fi
1288 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1289 ac_abs_confdir=`(
1290         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1291    { (exit 1); exit 1; }; }
1292         pwd)`
1293 # When building in place, set srcdir=.
1294 if test "$ac_abs_confdir" = "$ac_pwd"; then
1295   srcdir=.
1296 fi
1297 # Remove unnecessary trailing slashes from srcdir.
1298 # Double slashes in file names in object file debugging info
1299 # mess up M-x gdb in Emacs.
1300 case $srcdir in
1301 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302 esac
1303 for ac_var in $ac_precious_vars; do
1304   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305   eval ac_env_${ac_var}_value=\$${ac_var}
1306   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1308 done
1309
1310 #
1311 # Report the --help message.
1312 #
1313 if test "$ac_init_help" = "long"; then
1314   # Omit some internal or obsolete options to make the list less imposing.
1315   # This message is too long to be a string in the A/UX 3.1 sh.
1316   cat <<_ACEOF
1317 \`configure' configures llvm 2.7svn to adapt to many kinds of systems.
1318
1319 Usage: $0 [OPTION]... [VAR=VALUE]...
1320
1321 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322 VAR=VALUE.  See below for descriptions of some of the useful variables.
1323
1324 Defaults for the options are specified in brackets.
1325
1326 Configuration:
1327   -h, --help              display this help and exit
1328       --help=short        display options specific to this package
1329       --help=recursive    display the short help of all the included packages
1330   -V, --version           display version information and exit
1331   -q, --quiet, --silent   do not print \`checking...' messages
1332       --cache-file=FILE   cache test results in FILE [disabled]
1333   -C, --config-cache      alias for \`--cache-file=config.cache'
1334   -n, --no-create         do not create output files
1335       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1336
1337 Installation directories:
1338   --prefix=PREFIX         install architecture-independent files in PREFIX
1339                           [$ac_default_prefix]
1340   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1341                           [PREFIX]
1342
1343 By default, \`make install' will install all the files in
1344 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1345 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346 for instance \`--prefix=\$HOME'.
1347
1348 For better control, use the options below.
1349
1350 Fine tuning of the installation directories:
1351   --bindir=DIR           user executables [EPREFIX/bin]
1352   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1353   --libexecdir=DIR       program executables [EPREFIX/libexec]
1354   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1355   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1356   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1357   --libdir=DIR           object code libraries [EPREFIX/lib]
1358   --includedir=DIR       C header files [PREFIX/include]
1359   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1360   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1361   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1362   --infodir=DIR          info documentation [DATAROOTDIR/info]
1363   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1364   --mandir=DIR           man documentation [DATAROOTDIR/man]
1365   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1366   --htmldir=DIR          html documentation [DOCDIR]
1367   --dvidir=DIR           dvi documentation [DOCDIR]
1368   --pdfdir=DIR           pdf documentation [DOCDIR]
1369   --psdir=DIR            ps documentation [DOCDIR]
1370 _ACEOF
1371
1372   cat <<\_ACEOF
1373
1374 System types:
1375   --build=BUILD     configure for building on BUILD [guessed]
1376   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1377   --target=TARGET   configure for building compilers for TARGET [HOST]
1378 _ACEOF
1379 fi
1380
1381 if test -n "$ac_init_help"; then
1382   case $ac_init_help in
1383      short | recursive ) echo "Configuration of llvm 2.7svn:";;
1384    esac
1385   cat <<\_ACEOF
1386
1387 Optional Features:
1388   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1389   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1390   --enable-optimized      Compile with optimizations enabled (default is NO)
1391   --enable-profiling      Compile with profiling enabled (default is NO)
1392   --enable-assertions     Compile with assertion checks enabled (default is
1393                           YES)
1394   --enable-expensive-checks
1395                           Compile with expensive debug checks enabled (default
1396                           is NO)
1397   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1398                           NO)
1399   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1400                           optimization is on and YES if it's off)
1401   --enable-jit            Enable Just In Time Compiling (default is YES)
1402   --enable-doxygen        Build doxygen documentation (default is NO)
1403   --enable-threads        Use threads if available (default is YES)
1404   --enable-pic            Build LLVM with Position Independent Code (default
1405                           is YES)
1406   --enable-shared         Link LLVM tools shared (default is NO)
1407   --enable-targets        Build specific host targets: all or
1408                           target1,target2,... Valid targets are: host, x86,
1409                           x86_64, sparc, powerpc, alpha, arm, mips, spu,
1410                           pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1411                           and cpp (default=all)
1412   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1413                           %a (default is YES)
1414   --enable-bindings       Build specific language bindings:
1415                           all,auto,none,{binding-name} (default=auto)
1416   --enable-libffi         Check for the presence of libffi (default is NO)
1417   --enable-llvmc-dynamic  Link LLVMC dynamically (default is NO, unless on
1418                           Win32)
1419   --enable-llvmc-dynamic-plugins
1420                           Enable dynamic LLVMC plugins (default is YES)
1421   --enable-ltdl-install   install libltdl
1422
1423 Optional Packages:
1424   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1425   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1426   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1427                           searches PATH)
1428   --with-llvmgcc          Specify location of llvm-gcc driver (default
1429                           searches PATH)
1430   --with-llvmgxx          Specify location of llvm-g++ driver (default
1431                           searches PATH)
1432   --with-optimize-option  Select the compiler options to use for optimized
1433                           builds
1434   --with-extra-options    Specify additional options to compile LLVM with
1435   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1436                           is stdlib)
1437   --with-c-include-dirs   Colon separated list of directories clang will
1438                           search for headers
1439   --with-cxx-include-root Directory with the libstdc++ headers.
1440   --with-cxx-include-arch Architecture of the libstdc++ headers.
1441   --with-cxx-include-32bit-dir
1442                           32 bit multilib dir.
1443   --with-cxx-include-64bit-dir
1444                           64 bit multilib directory.
1445   --with-binutils-include Specify path to binutils/include/ containing
1446                           plugin-api.h file for gold plugin.
1447   --with-tclinclude       directory where tcl headers are
1448   --with-udis86=<path>    Use udis86 external x86 disassembler library
1449   --with-oprofile=<prefix>
1450                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1451
1452 Some influential environment variables:
1453   CC          C compiler command
1454   CFLAGS      C compiler flags
1455   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1456               nonstandard directory <lib dir>
1457   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1458               you have headers in a nonstandard directory <include dir>
1459   CPP         C preprocessor
1460   CXX         C++ compiler command
1461   CXXFLAGS    C++ compiler flags
1462
1463 Use these variables to override the choices made by `configure' or to help
1464 it to find libraries and programs with nonstandard names/locations.
1465
1466 Report bugs to <llvmbugs@cs.uiuc.edu>.
1467 _ACEOF
1468 ac_status=$?
1469 fi
1470
1471 if test "$ac_init_help" = "recursive"; then
1472   # If there are subdirs, report their specific --help.
1473   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1474     test -d "$ac_dir" || continue
1475     ac_builddir=.
1476
1477 case "$ac_dir" in
1478 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479 *)
1480   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1481   # A ".." for each directory in $ac_dir_suffix.
1482   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1483   case $ac_top_builddir_sub in
1484   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1486   esac ;;
1487 esac
1488 ac_abs_top_builddir=$ac_pwd
1489 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1490 # for backward compatibility:
1491 ac_top_builddir=$ac_top_build_prefix
1492
1493 case $srcdir in
1494   .)  # We are building in place.
1495     ac_srcdir=.
1496     ac_top_srcdir=$ac_top_builddir_sub
1497     ac_abs_top_srcdir=$ac_pwd ;;
1498   [\\/]* | ?:[\\/]* )  # Absolute name.
1499     ac_srcdir=$srcdir$ac_dir_suffix;
1500     ac_top_srcdir=$srcdir
1501     ac_abs_top_srcdir=$srcdir ;;
1502   *) # Relative name.
1503     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1504     ac_top_srcdir=$ac_top_build_prefix$srcdir
1505     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1506 esac
1507 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1508
1509     cd "$ac_dir" || { ac_status=$?; continue; }
1510     # Check for guested configure.
1511     if test -f "$ac_srcdir/configure.gnu"; then
1512       echo &&
1513       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1514     elif test -f "$ac_srcdir/configure"; then
1515       echo &&
1516       $SHELL "$ac_srcdir/configure" --help=recursive
1517     else
1518       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1519     fi || ac_status=$?
1520     cd "$ac_pwd" || { ac_status=$?; break; }
1521   done
1522 fi
1523
1524 test -n "$ac_init_help" && exit $ac_status
1525 if $ac_init_version; then
1526   cat <<\_ACEOF
1527 llvm configure 2.7svn
1528 generated by GNU Autoconf 2.60
1529
1530 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1531 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1532 This configure script is free software; the Free Software Foundation
1533 gives unlimited permission to copy, distribute and modify it.
1534
1535 Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1536 _ACEOF
1537   exit
1538 fi
1539 cat >config.log <<_ACEOF
1540 This file contains any messages produced by compilers while
1541 running configure, to aid debugging if configure makes a mistake.
1542
1543 It was created by llvm $as_me 2.7svn, which was
1544 generated by GNU Autoconf 2.60.  Invocation command line was
1545
1546   $ $0 $@
1547
1548 _ACEOF
1549 exec 5>>config.log
1550 {
1551 cat <<_ASUNAME
1552 ## --------- ##
1553 ## Platform. ##
1554 ## --------- ##
1555
1556 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1557 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1558 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1559 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1560 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1561
1562 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1563 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1564
1565 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1566 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1567 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1568 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1569 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1570 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1571 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1572
1573 _ASUNAME
1574
1575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1576 for as_dir in $PATH
1577 do
1578   IFS=$as_save_IFS
1579   test -z "$as_dir" && as_dir=.
1580   echo "PATH: $as_dir"
1581 done
1582 IFS=$as_save_IFS
1583
1584 } >&5
1585
1586 cat >&5 <<_ACEOF
1587
1588
1589 ## ----------- ##
1590 ## Core tests. ##
1591 ## ----------- ##
1592
1593 _ACEOF
1594
1595
1596 # Keep a trace of the command line.
1597 # Strip out --no-create and --no-recursion so they do not pile up.
1598 # Strip out --silent because we don't want to record it for future runs.
1599 # Also quote any args containing shell meta-characters.
1600 # Make two passes to allow for proper duplicate-argument suppression.
1601 ac_configure_args=
1602 ac_configure_args0=
1603 ac_configure_args1=
1604 ac_must_keep_next=false
1605 for ac_pass in 1 2
1606 do
1607   for ac_arg
1608   do
1609     case $ac_arg in
1610     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1611     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1612     | -silent | --silent | --silen | --sile | --sil)
1613       continue ;;
1614     *\'*)
1615       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1616     esac
1617     case $ac_pass in
1618     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1619     2)
1620       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1621       if test $ac_must_keep_next = true; then
1622         ac_must_keep_next=false # Got value, back to normal.
1623       else
1624         case $ac_arg in
1625           *=* | --config-cache | -C | -disable-* | --disable-* \
1626           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1627           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1628           | -with-* | --with-* | -without-* | --without-* | --x)
1629             case "$ac_configure_args0 " in
1630               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1631             esac
1632             ;;
1633           -* ) ac_must_keep_next=true ;;
1634         esac
1635       fi
1636       ac_configure_args="$ac_configure_args '$ac_arg'"
1637       ;;
1638     esac
1639   done
1640 done
1641 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1642 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1643
1644 # When interrupted or exit'd, cleanup temporary files, and complete
1645 # config.log.  We remove comments because anyway the quotes in there
1646 # would cause problems or look ugly.
1647 # WARNING: Use '\'' to represent an apostrophe within the trap.
1648 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1649 trap 'exit_status=$?
1650   # Save into config.log some information that might help in debugging.
1651   {
1652     echo
1653
1654     cat <<\_ASBOX
1655 ## ---------------- ##
1656 ## Cache variables. ##
1657 ## ---------------- ##
1658 _ASBOX
1659     echo
1660     # The following way of writing the cache mishandles newlines in values,
1661 (
1662   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1663     eval ac_val=\$$ac_var
1664     case $ac_val in #(
1665     *${as_nl}*)
1666       case $ac_var in #(
1667       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1668 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1669       esac
1670       case $ac_var in #(
1671       _ | IFS | as_nl) ;; #(
1672       *) $as_unset $ac_var ;;
1673       esac ;;
1674     esac
1675   done
1676   (set) 2>&1 |
1677     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1678     *${as_nl}ac_space=\ *)
1679       sed -n \
1680         "s/'\''/'\''\\\\'\'''\''/g;
1681           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1682       ;; #(
1683     *)
1684       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1685       ;;
1686     esac |
1687     sort
1688 )
1689     echo
1690
1691     cat <<\_ASBOX
1692 ## ----------------- ##
1693 ## Output variables. ##
1694 ## ----------------- ##
1695 _ASBOX
1696     echo
1697     for ac_var in $ac_subst_vars
1698     do
1699       eval ac_val=\$$ac_var
1700       case $ac_val in
1701       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1702       esac
1703       echo "$ac_var='\''$ac_val'\''"
1704     done | sort
1705     echo
1706
1707     if test -n "$ac_subst_files"; then
1708       cat <<\_ASBOX
1709 ## ------------------- ##
1710 ## File substitutions. ##
1711 ## ------------------- ##
1712 _ASBOX
1713       echo
1714       for ac_var in $ac_subst_files
1715       do
1716         eval ac_val=\$$ac_var
1717         case $ac_val in
1718         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1719         esac
1720         echo "$ac_var='\''$ac_val'\''"
1721       done | sort
1722       echo
1723     fi
1724
1725     if test -s confdefs.h; then
1726       cat <<\_ASBOX
1727 ## ----------- ##
1728 ## confdefs.h. ##
1729 ## ----------- ##
1730 _ASBOX
1731       echo
1732       cat confdefs.h
1733       echo
1734     fi
1735     test "$ac_signal" != 0 &&
1736       echo "$as_me: caught signal $ac_signal"
1737     echo "$as_me: exit $exit_status"
1738   } >&5
1739   rm -f core *.core core.conftest.* &&
1740     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1741     exit $exit_status
1742 ' 0
1743 for ac_signal in 1 2 13 15; do
1744   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1745 done
1746 ac_signal=0
1747
1748 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1749 rm -f -r conftest* confdefs.h
1750
1751 # Predefined preprocessor variables.
1752
1753 cat >>confdefs.h <<_ACEOF
1754 #define PACKAGE_NAME "$PACKAGE_NAME"
1755 _ACEOF
1756
1757
1758 cat >>confdefs.h <<_ACEOF
1759 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1760 _ACEOF
1761
1762
1763 cat >>confdefs.h <<_ACEOF
1764 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1765 _ACEOF
1766
1767
1768 cat >>confdefs.h <<_ACEOF
1769 #define PACKAGE_STRING "$PACKAGE_STRING"
1770 _ACEOF
1771
1772
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1775 _ACEOF
1776
1777
1778 # Let the site file select an alternate cache file if it wants to.
1779 # Prefer explicitly selected file to automatically selected ones.
1780 if test -n "$CONFIG_SITE"; then
1781   set x "$CONFIG_SITE"
1782 elif test "x$prefix" != xNONE; then
1783   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1784 else
1785   set x "$ac_default_prefix/share/config.site" \
1786         "$ac_default_prefix/etc/config.site"
1787 fi
1788 shift
1789 for ac_site_file
1790 do
1791   if test -r "$ac_site_file"; then
1792     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1793 echo "$as_me: loading site script $ac_site_file" >&6;}
1794     sed 's/^/| /' "$ac_site_file" >&5
1795     . "$ac_site_file"
1796   fi
1797 done
1798
1799 if test -r "$cache_file"; then
1800   # Some versions of bash will fail to source /dev/null (special
1801   # files actually), so we avoid doing that.
1802   if test -f "$cache_file"; then
1803     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1804 echo "$as_me: loading cache $cache_file" >&6;}
1805     case $cache_file in
1806       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1807       *)                      . "./$cache_file";;
1808     esac
1809   fi
1810 else
1811   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1812 echo "$as_me: creating cache $cache_file" >&6;}
1813   >$cache_file
1814 fi
1815
1816 # Check that the precious variables saved in the cache have kept the same
1817 # value.
1818 ac_cache_corrupted=false
1819 for ac_var in $ac_precious_vars; do
1820   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1821   eval ac_new_set=\$ac_env_${ac_var}_set
1822   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1823   eval ac_new_val=\$ac_env_${ac_var}_value
1824   case $ac_old_set,$ac_new_set in
1825     set,)
1826       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1827 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1828       ac_cache_corrupted=: ;;
1829     ,set)
1830       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1831 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1832       ac_cache_corrupted=: ;;
1833     ,);;
1834     *)
1835       if test "x$ac_old_val" != "x$ac_new_val"; then
1836         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1837 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1838         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1839 echo "$as_me:   former value:  $ac_old_val" >&2;}
1840         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1841 echo "$as_me:   current value: $ac_new_val" >&2;}
1842         ac_cache_corrupted=:
1843       fi;;
1844   esac
1845   # Pass precious variables to config.status.
1846   if test "$ac_new_set" = set; then
1847     case $ac_new_val in
1848     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1849     *) ac_arg=$ac_var=$ac_new_val ;;
1850     esac
1851     case " $ac_configure_args " in
1852       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1853       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1854     esac
1855   fi
1856 done
1857 if $ac_cache_corrupted; then
1858   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1859 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1860   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1861 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1862    { (exit 1); exit 1; }; }
1863 fi
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889 ac_ext=c
1890 ac_cpp='$CPP $CPPFLAGS'
1891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1894
1895
1896
1897 LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
1898
1899
1900
1901
1902
1903
1904
1905 ac_aux_dir=
1906 for ac_dir in autoconf "$srcdir"/autoconf; do
1907   if test -f "$ac_dir/install-sh"; then
1908     ac_aux_dir=$ac_dir
1909     ac_install_sh="$ac_aux_dir/install-sh -c"
1910     break
1911   elif test -f "$ac_dir/install.sh"; then
1912     ac_aux_dir=$ac_dir
1913     ac_install_sh="$ac_aux_dir/install.sh -c"
1914     break
1915   elif test -f "$ac_dir/shtool"; then
1916     ac_aux_dir=$ac_dir
1917     ac_install_sh="$ac_aux_dir/shtool install -c"
1918     break
1919   fi
1920 done
1921 if test -z "$ac_aux_dir"; then
1922   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1923 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1924    { (exit 1); exit 1; }; }
1925 fi
1926
1927 # These three variables are undocumented and unsupported,
1928 # and are intended to be withdrawn in a future Autoconf release.
1929 # They can cause serious problems if a builder's source tree is in a directory
1930 # whose full name contains unusual characters.
1931 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1932 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1933 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1934
1935
1936
1937 if test ${srcdir} != "." ; then
1938   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1939     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1940 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1941    { (exit 1); exit 1; }; }
1942   fi
1943 fi
1944
1945 for i in `ls ${srcdir}/projects`
1946 do
1947   if test -d ${srcdir}/projects/${i} ; then
1948     case ${i} in
1949       CVS) ;;
1950       sample)       subdirs="$subdirs projects/sample"
1951     ;;
1952       privbracket)  subdirs="$subdirs projects/privbracket"
1953  ;;
1954       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1955  ;;
1956       # llvm-test is the old name of the test-suite, kept here for backwards
1957       # compatibility
1958       llvm-test)    subdirs="$subdirs projects/llvm-test"
1959  ;;
1960       test-suite)   subdirs="$subdirs projects/test-suite"
1961  ;;
1962       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
1963 ;;
1964       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
1965   ;;
1966       llvm-java)    subdirs="$subdirs projects/llvm-java"
1967  ;;
1968       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
1969    ;;
1970       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
1971  ;;
1972       poolalloc)    subdirs="$subdirs projects/poolalloc"
1973  ;;
1974       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
1975  ;;
1976       *)
1977         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1978 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1979         ;;
1980     esac
1981   fi
1982 done
1983
1984
1985 # Make sure we can run config.sub.
1986 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1987   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1988 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1989    { (exit 1); exit 1; }; }
1990
1991 { echo "$as_me:$LINENO: checking build system type" >&5
1992 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1993 if test "${ac_cv_build+set}" = set; then
1994   echo $ECHO_N "(cached) $ECHO_C" >&6
1995 else
1996   ac_build_alias=$build_alias
1997 test "x$ac_build_alias" = x &&
1998   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1999 test "x$ac_build_alias" = x &&
2000   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2001 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2002    { (exit 1); exit 1; }; }
2003 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2004   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2005 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2006    { (exit 1); exit 1; }; }
2007
2008 fi
2009 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2010 echo "${ECHO_T}$ac_cv_build" >&6; }
2011 case $ac_cv_build in
2012 *-*-*) ;;
2013 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2014 echo "$as_me: error: invalid value of canonical build" >&2;}
2015    { (exit 1); exit 1; }; };;
2016 esac
2017 build=$ac_cv_build
2018 ac_save_IFS=$IFS; IFS='-'
2019 set x $ac_cv_build
2020 shift
2021 build_cpu=$1
2022 build_vendor=$2
2023 shift; shift
2024 # Remember, the first character of IFS is used to create $*,
2025 # except with old shells:
2026 build_os=$*
2027 IFS=$ac_save_IFS
2028 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2029
2030
2031 { echo "$as_me:$LINENO: checking host system type" >&5
2032 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2033 if test "${ac_cv_host+set}" = set; then
2034   echo $ECHO_N "(cached) $ECHO_C" >&6
2035 else
2036   if test "x$host_alias" = x; then
2037   ac_cv_host=$ac_cv_build
2038 else
2039   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2040     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2041 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2042    { (exit 1); exit 1; }; }
2043 fi
2044
2045 fi
2046 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2047 echo "${ECHO_T}$ac_cv_host" >&6; }
2048 case $ac_cv_host in
2049 *-*-*) ;;
2050 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2051 echo "$as_me: error: invalid value of canonical host" >&2;}
2052    { (exit 1); exit 1; }; };;
2053 esac
2054 host=$ac_cv_host
2055 ac_save_IFS=$IFS; IFS='-'
2056 set x $ac_cv_host
2057 shift
2058 host_cpu=$1
2059 host_vendor=$2
2060 shift; shift
2061 # Remember, the first character of IFS is used to create $*,
2062 # except with old shells:
2063 host_os=$*
2064 IFS=$ac_save_IFS
2065 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2066
2067
2068 { echo "$as_me:$LINENO: checking target system type" >&5
2069 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2070 if test "${ac_cv_target+set}" = set; then
2071   echo $ECHO_N "(cached) $ECHO_C" >&6
2072 else
2073   if test "x$target_alias" = x; then
2074   ac_cv_target=$ac_cv_host
2075 else
2076   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2077     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2078 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2079    { (exit 1); exit 1; }; }
2080 fi
2081
2082 fi
2083 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2084 echo "${ECHO_T}$ac_cv_target" >&6; }
2085 case $ac_cv_target in
2086 *-*-*) ;;
2087 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2088 echo "$as_me: error: invalid value of canonical target" >&2;}
2089    { (exit 1); exit 1; }; };;
2090 esac
2091 target=$ac_cv_target
2092 ac_save_IFS=$IFS; IFS='-'
2093 set x $ac_cv_target
2094 shift
2095 target_cpu=$1
2096 target_vendor=$2
2097 shift; shift
2098 # Remember, the first character of IFS is used to create $*,
2099 # except with old shells:
2100 target_os=$*
2101 IFS=$ac_save_IFS
2102 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2103
2104
2105 # The aliases save the names the user supplied, while $host etc.
2106 # will get canonicalized.
2107 test -n "$target_alias" &&
2108   test "$program_prefix$program_suffix$program_transform_name" = \
2109     NONENONEs,x,x, &&
2110   program_prefix=${target_alias}-
2111
2112 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2113 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2114 if test "${llvm_cv_os_type+set}" = set; then
2115   echo $ECHO_N "(cached) $ECHO_C" >&6
2116 else
2117   case $host in
2118   *-*-aix*)
2119     llvm_cv_link_all_option="-Wl,--whole-archive"
2120     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2121     llvm_cv_os_type="AIX"
2122     llvm_cv_platform_type="Unix" ;;
2123   *-*-irix*)
2124     llvm_cv_link_all_option="-Wl,--whole-archive"
2125     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2126     llvm_cv_os_type="IRIX"
2127     llvm_cv_platform_type="Unix" ;;
2128   *-*-cygwin*)
2129     llvm_cv_link_all_option="-Wl,--whole-archive"
2130     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2131     llvm_cv_os_type="Cygwin"
2132     llvm_cv_platform_type="Unix" ;;
2133   *-*-darwin*)
2134     llvm_cv_link_all_option="-Wl,-all_load"
2135     llvm_cv_no_link_all_option="-Wl,-noall_load"
2136     llvm_cv_os_type="Darwin"
2137     llvm_cv_platform_type="Unix" ;;
2138   *-*-freebsd*)
2139     llvm_cv_link_all_option="-Wl,--whole-archive"
2140     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2141     llvm_cv_os_type="FreeBSD"
2142     llvm_cv_platform_type="Unix" ;;
2143   *-*-openbsd*)
2144     llvm_cv_link_all_option="-Wl,--whole-archive"
2145     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2146     llvm_cv_os_type="OpenBSD"
2147     llvm_cv_platform_type="Unix" ;;
2148   *-*-netbsd*)
2149     llvm_cv_link_all_option="-Wl,--whole-archive"
2150     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2151     llvm_cv_os_type="NetBSD"
2152     llvm_cv_platform_type="Unix" ;;
2153   *-*-dragonfly*)
2154     llvm_cv_link_all_option="-Wl,--whole-archive"
2155     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2156     llvm_cv_os_type="DragonFly"
2157     llvm_cv_platform_type="Unix" ;;
2158   *-*-hpux*)
2159     llvm_cv_link_all_option="-Wl,--whole-archive"
2160     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2161     llvm_cv_os_type="HP-UX"
2162     llvm_cv_platform_type="Unix" ;;
2163   *-*-interix*)
2164     llvm_cv_link_all_option="-Wl,--whole-archive"
2165     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2166     llvm_cv_os_type="Interix"
2167     llvm_cv_platform_type="Unix" ;;
2168   *-*-linux*)
2169     llvm_cv_link_all_option="-Wl,--whole-archive"
2170     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2171     llvm_cv_os_type="Linux"
2172     llvm_cv_platform_type="Unix" ;;
2173   *-*-solaris*)
2174     llvm_cv_link_all_option="-Wl,-z,allextract"
2175     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2176     llvm_cv_os_type="SunOS"
2177     llvm_cv_platform_type="Unix" ;;
2178   *-*-auroraux*)
2179     llvm_cv_link_all_option="-Wl,-z,allextract"
2180     llvm_cv_link_all_option="-Wl,-z,defaultextract"
2181     llvm_cv_os_type="AuroraUX"
2182     llvm_cv_platform_type="Unix" ;;
2183   *-*-win32*)
2184     llvm_cv_link_all_option="-Wl,--whole-archive"
2185     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2186     llvm_cv_os_type="Win32"
2187     llvm_cv_platform_type="Win32" ;;
2188   *-*-mingw*)
2189     llvm_cv_link_all_option="-Wl,--whole-archive"
2190     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2191     llvm_cv_os_type="MingW"
2192     llvm_cv_platform_type="Win32" ;;
2193   *-*-haiku*)
2194     llvm_cv_link_all_option="-Wl,--whole-archive"
2195     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2196     llvm_cv_os_type="Haiku"
2197     llvm_cv_platform_type="Unix" ;;
2198   *-unknown-eabi*)
2199     llvm_cv_link_all_option="-Wl,--whole-archive"
2200     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2201     llvm_cv_os_type="Freestanding"
2202     llvm_cv_platform_type="Unix" ;;
2203   *-unknown-elf*)
2204     llvm_cv_link_all_option="-Wl,--whole-archive"
2205     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2206     llvm_cv_os_type="Freestanding"
2207     llvm_cv_platform_type="Unix" ;;
2208   *)
2209     llvm_cv_link_all_option=""
2210     llvm_cv_no_link_all_option=""
2211     llvm_cv_os_type="Unknown"
2212     llvm_cv_platform_type="Unknown" ;;
2213 esac
2214 fi
2215 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2216 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2217
2218 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2219 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2220 if test "${llvm_cv_target_os_type+set}" = set; then
2221   echo $ECHO_N "(cached) $ECHO_C" >&6
2222 else
2223   case $target in
2224   *-*-aix*)
2225     llvm_cv_target_os_type="AIX" ;;
2226   *-*-irix*)
2227     llvm_cv_target_os_type="IRIX" ;;
2228   *-*-cygwin*)
2229     llvm_cv_target_os_type="Cygwin" ;;
2230   *-*-darwin*)
2231     llvm_cv_target_os_type="Darwin" ;;
2232   *-*-freebsd*)
2233     llvm_cv_target_os_type="FreeBSD" ;;
2234   *-*-openbsd*)
2235     llvm_cv_target_os_type="OpenBSD" ;;
2236   *-*-netbsd*)
2237     llvm_cv_target_os_type="NetBSD" ;;
2238   *-*-dragonfly*)
2239     llvm_cv_target_os_type="DragonFly" ;;
2240   *-*-hpux*)
2241     llvm_cv_target_os_type="HP-UX" ;;
2242   *-*-interix*)
2243     llvm_cv_target_os_type="Interix" ;;
2244   *-*-linux*)
2245     llvm_cv_target_os_type="Linux" ;;
2246   *-*-solaris*)
2247     llvm_cv_target_os_type="SunOS" ;;
2248   *-*-auroraux*)
2249     llvm_cv_target_os_type="AuroraUX" ;;
2250   *-*-win32*)
2251     llvm_cv_target_os_type="Win32" ;;
2252   *-*-mingw*)
2253     llvm_cv_target_os_type="MingW" ;;
2254   *-*-haiku*)
2255     llvm_cv_target_os_type="Haiku" ;;
2256   *-unknown-eabi*)
2257     llvm_cv_target_os_type="Freestanding" ;;
2258   *)
2259     llvm_cv_target_os_type="Unknown" ;;
2260 esac
2261 fi
2262 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2263 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2264
2265 if test "$llvm_cv_os_type" = "Unknown" ; then
2266   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2267 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2268    { (exit 1); exit 1; }; }
2269 fi
2270
2271 OS=$llvm_cv_os_type
2272
2273 HOST_OS=$llvm_cv_os_type
2274
2275 TARGET_OS=$llvm_cv_target_os_type
2276
2277
2278 LINKALL=$llvm_cv_link_all_option
2279
2280 NOLINKALL=$llvm_cv_no_link_all_option
2281
2282
2283 case $llvm_cv_platform_type in
2284   Unix)
2285
2286 cat >>confdefs.h <<\_ACEOF
2287 #define LLVM_ON_UNIX 1
2288 _ACEOF
2289
2290     LLVM_ON_UNIX=1
2291
2292     LLVM_ON_WIN32=0
2293
2294     ;;
2295   Win32)
2296
2297 cat >>confdefs.h <<\_ACEOF
2298 #define LLVM_ON_WIN32 1
2299 _ACEOF
2300
2301     LLVM_ON_UNIX=0
2302
2303     LLVM_ON_WIN32=1
2304
2305     ;;
2306 esac
2307
2308 { echo "$as_me:$LINENO: checking target architecture" >&5
2309 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2310 if test "${llvm_cv_target_arch+set}" = set; then
2311   echo $ECHO_N "(cached) $ECHO_C" >&6
2312 else
2313   case $target in
2314   i?86-*)                 llvm_cv_target_arch="x86" ;;
2315   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2316   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2317   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2318   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2319   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2320   mips-*)                 llvm_cv_target_arch="Mips" ;;
2321   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2322   xcore-*)                llvm_cv_target_arch="XCore" ;;
2323   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2324   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
2325   bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
2326   *)                      llvm_cv_target_arch="Unknown" ;;
2327 esac
2328 fi
2329 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2330 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2331
2332 if test "$llvm_cv_target_arch" = "Unknown" ; then
2333   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2334 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2335 fi
2336
2337 # Determine the LLVM native architecture for the target
2338 case "$llvm_cv_target_arch" in
2339     x86)     LLVM_NATIVE_ARCH="X86" ;;
2340     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2341     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2342 esac
2343
2344 ARCH=$llvm_cv_target_arch
2345
2346
2347 ac_ext=c
2348 ac_cpp='$CPP $CPPFLAGS'
2349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2352 if test -n "$ac_tool_prefix"; then
2353   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2354 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2357 if test "${ac_cv_prog_CC+set}" = set; then
2358   echo $ECHO_N "(cached) $ECHO_C" >&6
2359 else
2360   if test -n "$CC"; then
2361   ac_cv_prog_CC="$CC" # Let the user override the test.
2362 else
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 for as_dir in $PATH
2365 do
2366   IFS=$as_save_IFS
2367   test -z "$as_dir" && as_dir=.
2368   for ac_exec_ext in '' $ac_executable_extensions; do
2369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2370     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2372     break 2
2373   fi
2374 done
2375 done
2376 IFS=$as_save_IFS
2377
2378 fi
2379 fi
2380 CC=$ac_cv_prog_CC
2381 if test -n "$CC"; then
2382   { echo "$as_me:$LINENO: result: $CC" >&5
2383 echo "${ECHO_T}$CC" >&6; }
2384 else
2385   { echo "$as_me:$LINENO: result: no" >&5
2386 echo "${ECHO_T}no" >&6; }
2387 fi
2388
2389
2390 fi
2391 if test -z "$ac_cv_prog_CC"; then
2392   ac_ct_CC=$CC
2393   # Extract the first word of "gcc", so it can be a program name with args.
2394 set dummy 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_ac_ct_CC+set}" = set; then
2398   echo $ECHO_N "(cached) $ECHO_C" >&6
2399 else
2400   if test -n "$ac_ct_CC"; then
2401   ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2421 if test -n "$ac_ct_CC"; then
2422   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2423 echo "${ECHO_T}$ac_ct_CC" >&6; }
2424 else
2425   { echo "$as_me:$LINENO: result: no" >&5
2426 echo "${ECHO_T}no" >&6; }
2427 fi
2428
2429   if test "x$ac_ct_CC" = x; then
2430     CC=""
2431   else
2432     case $cross_compiling:$ac_tool_warned in
2433 yes:)
2434 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2435 whose name does not start with the host triplet.  If you think this
2436 configuration is useful to you, please write to autoconf@gnu.org." >&5
2437 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2438 whose name does not start with the host triplet.  If you think this
2439 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2440 ac_tool_warned=yes ;;
2441 esac
2442     CC=$ac_ct_CC
2443   fi
2444 else
2445   CC="$ac_cv_prog_CC"
2446 fi
2447
2448 if test -z "$CC"; then
2449           if test -n "$ac_tool_prefix"; then
2450     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2451 set dummy ${ac_tool_prefix}cc; ac_word=$2
2452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2454 if test "${ac_cv_prog_CC+set}" = set; then
2455   echo $ECHO_N "(cached) $ECHO_C" >&6
2456 else
2457   if test -n "$CC"; then
2458   ac_cv_prog_CC="$CC" # Let the user override the test.
2459 else
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461 for as_dir in $PATH
2462 do
2463   IFS=$as_save_IFS
2464   test -z "$as_dir" && as_dir=.
2465   for ac_exec_ext in '' $ac_executable_extensions; do
2466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2467     ac_cv_prog_CC="${ac_tool_prefix}cc"
2468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2469     break 2
2470   fi
2471 done
2472 done
2473 IFS=$as_save_IFS
2474
2475 fi
2476 fi
2477 CC=$ac_cv_prog_CC
2478 if test -n "$CC"; then
2479   { echo "$as_me:$LINENO: result: $CC" >&5
2480 echo "${ECHO_T}$CC" >&6; }
2481 else
2482   { echo "$as_me:$LINENO: result: no" >&5
2483 echo "${ECHO_T}no" >&6; }
2484 fi
2485
2486
2487   fi
2488 fi
2489 if test -z "$CC"; then
2490   # Extract the first word of "cc", so it can be a program name with args.
2491 set dummy 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   ac_prog_rejected=no
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502 for as_dir in $PATH
2503 do
2504   IFS=$as_save_IFS
2505   test -z "$as_dir" && as_dir=.
2506   for ac_exec_ext in '' $ac_executable_extensions; do
2507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2508     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2509        ac_prog_rejected=yes
2510        continue
2511      fi
2512     ac_cv_prog_CC="cc"
2513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2514     break 2
2515   fi
2516 done
2517 done
2518 IFS=$as_save_IFS
2519
2520 if test $ac_prog_rejected = yes; then
2521   # We found a bogon in the path, so make sure we never use it.
2522   set dummy $ac_cv_prog_CC
2523   shift
2524   if test $# != 0; then
2525     # We chose a different compiler from the bogus one.
2526     # However, it has the same basename, so the bogon will be chosen
2527     # first if we set CC to just the basename; use the full file name.
2528     shift
2529     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2530   fi
2531 fi
2532 fi
2533 fi
2534 CC=$ac_cv_prog_CC
2535 if test -n "$CC"; then
2536   { echo "$as_me:$LINENO: result: $CC" >&5
2537 echo "${ECHO_T}$CC" >&6; }
2538 else
2539   { echo "$as_me:$LINENO: result: no" >&5
2540 echo "${ECHO_T}no" >&6; }
2541 fi
2542
2543
2544 fi
2545 if test -z "$CC"; then
2546   if test -n "$ac_tool_prefix"; then
2547   for ac_prog in cl.exe
2548   do
2549     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2550 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2553 if test "${ac_cv_prog_CC+set}" = set; then
2554   echo $ECHO_N "(cached) $ECHO_C" >&6
2555 else
2556   if test -n "$CC"; then
2557   ac_cv_prog_CC="$CC" # Let the user override the test.
2558 else
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 for as_dir in $PATH
2561 do
2562   IFS=$as_save_IFS
2563   test -z "$as_dir" && as_dir=.
2564   for ac_exec_ext in '' $ac_executable_extensions; do
2565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2566     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2568     break 2
2569   fi
2570 done
2571 done
2572 IFS=$as_save_IFS
2573
2574 fi
2575 fi
2576 CC=$ac_cv_prog_CC
2577 if test -n "$CC"; then
2578   { echo "$as_me:$LINENO: result: $CC" >&5
2579 echo "${ECHO_T}$CC" >&6; }
2580 else
2581   { echo "$as_me:$LINENO: result: no" >&5
2582 echo "${ECHO_T}no" >&6; }
2583 fi
2584
2585
2586     test -n "$CC" && break
2587   done
2588 fi
2589 if test -z "$CC"; then
2590   ac_ct_CC=$CC
2591   for ac_prog in cl.exe
2592 do
2593   # Extract the first word of "$ac_prog", so it can be a program name with args.
2594 set dummy $ac_prog; ac_word=$2
2595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2597 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2598   echo $ECHO_N "(cached) $ECHO_C" >&6
2599 else
2600   if test -n "$ac_ct_CC"; then
2601   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2602 else
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604 for as_dir in $PATH
2605 do
2606   IFS=$as_save_IFS
2607   test -z "$as_dir" && as_dir=.
2608   for ac_exec_ext in '' $ac_executable_extensions; do
2609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2610     ac_cv_prog_ac_ct_CC="$ac_prog"
2611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2612     break 2
2613   fi
2614 done
2615 done
2616 IFS=$as_save_IFS
2617
2618 fi
2619 fi
2620 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2621 if test -n "$ac_ct_CC"; then
2622   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2623 echo "${ECHO_T}$ac_ct_CC" >&6; }
2624 else
2625   { echo "$as_me:$LINENO: result: no" >&5
2626 echo "${ECHO_T}no" >&6; }
2627 fi
2628
2629
2630   test -n "$ac_ct_CC" && break
2631 done
2632
2633   if test "x$ac_ct_CC" = x; then
2634     CC=""
2635   else
2636     case $cross_compiling:$ac_tool_warned in
2637 yes:)
2638 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2639 whose name does not start with the host triplet.  If you think this
2640 configuration is useful to you, please write to autoconf@gnu.org." >&5
2641 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2642 whose name does not start with the host triplet.  If you think this
2643 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2644 ac_tool_warned=yes ;;
2645 esac
2646     CC=$ac_ct_CC
2647   fi
2648 fi
2649
2650 fi
2651
2652
2653 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2654 See \`config.log' for more details." >&5
2655 echo "$as_me: error: no acceptable C compiler found in \$PATH
2656 See \`config.log' for more details." >&2;}
2657    { (exit 1); exit 1; }; }
2658
2659 # Provide some information about the compiler.
2660 echo "$as_me:$LINENO: checking for C compiler version" >&5
2661 ac_compiler=`set X $ac_compile; echo $2`
2662 { (ac_try="$ac_compiler --version >&5"
2663 case "(($ac_try" in
2664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2665   *) ac_try_echo=$ac_try;;
2666 esac
2667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2668   (eval "$ac_compiler --version >&5") 2>&5
2669   ac_status=$?
2670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671   (exit $ac_status); }
2672 { (ac_try="$ac_compiler -v >&5"
2673 case "(($ac_try" in
2674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2675   *) ac_try_echo=$ac_try;;
2676 esac
2677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2678   (eval "$ac_compiler -v >&5") 2>&5
2679   ac_status=$?
2680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681   (exit $ac_status); }
2682 { (ac_try="$ac_compiler -V >&5"
2683 case "(($ac_try" in
2684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2685   *) ac_try_echo=$ac_try;;
2686 esac
2687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2688   (eval "$ac_compiler -V >&5") 2>&5
2689   ac_status=$?
2690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691   (exit $ac_status); }
2692
2693 cat >conftest.$ac_ext <<_ACEOF
2694 /* confdefs.h.  */
2695 _ACEOF
2696 cat confdefs.h >>conftest.$ac_ext
2697 cat >>conftest.$ac_ext <<_ACEOF
2698 /* end confdefs.h.  */
2699
2700 int
2701 main ()
2702 {
2703
2704   ;
2705   return 0;
2706 }
2707 _ACEOF
2708 ac_clean_files_save=$ac_clean_files
2709 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2710 # Try to create an executable without -o first, disregard a.out.
2711 # It will help us diagnose broken compilers, and finding out an intuition
2712 # of exeext.
2713 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2714 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2715 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2716 #
2717 # List of possible output files, starting from the most likely.
2718 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2719 # only as a last resort.  b.out is created by i960 compilers.
2720 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2721 #
2722 # The IRIX 6 linker writes into existing files which may not be
2723 # executable, retaining their permissions.  Remove them first so a
2724 # subsequent execution test works.
2725 ac_rmfiles=
2726 for ac_file in $ac_files
2727 do
2728   case $ac_file in
2729     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2730     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2731   esac
2732 done
2733 rm -f $ac_rmfiles
2734
2735 if { (ac_try="$ac_link_default"
2736 case "(($ac_try" in
2737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738   *) ac_try_echo=$ac_try;;
2739 esac
2740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741   (eval "$ac_link_default") 2>&5
2742   ac_status=$?
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); }; then
2745   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2746 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2747 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2748 # so that the user can short-circuit this test for compilers unknown to
2749 # Autoconf.
2750 for ac_file in $ac_files
2751 do
2752   test -f "$ac_file" || continue
2753   case $ac_file in
2754     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2755         ;;
2756     [ab].out )
2757         # We found the default executable, but exeext='' is most
2758         # certainly right.
2759         break;;
2760     *.* )
2761         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2762         then :; else
2763            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2764         fi
2765         # We set ac_cv_exeext here because the later test for it is not
2766         # safe: cross compilers may not add the suffix if given an `-o'
2767         # argument, so we may need to know it at that point already.
2768         # Even if this section looks crufty: it has the advantage of
2769         # actually working.
2770         break;;
2771     * )
2772         break;;
2773   esac
2774 done
2775 test "$ac_cv_exeext" = no && ac_cv_exeext=
2776
2777 else
2778   echo "$as_me: failed program was:" >&5
2779 sed 's/^/| /' conftest.$ac_ext >&5
2780
2781 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2782 See \`config.log' for more details." >&5
2783 echo "$as_me: error: C compiler cannot create executables
2784 See \`config.log' for more details." >&2;}
2785    { (exit 77); exit 77; }; }
2786 fi
2787
2788 ac_exeext=$ac_cv_exeext
2789 { echo "$as_me:$LINENO: result: $ac_file" >&5
2790 echo "${ECHO_T}$ac_file" >&6; }
2791
2792 # Check that the compiler produces executables we can run.  If not, either
2793 # the compiler is broken, or we cross compile.
2794 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2795 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2796 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2797 # If not cross compiling, check that we can run a simple program.
2798 if test "$cross_compiling" != yes; then
2799   if { ac_try='./$ac_file'
2800   { (case "(($ac_try" in
2801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2802   *) ac_try_echo=$ac_try;;
2803 esac
2804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2805   (eval "$ac_try") 2>&5
2806   ac_status=$?
2807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808   (exit $ac_status); }; }; then
2809     cross_compiling=no
2810   else
2811     if test "$cross_compiling" = maybe; then
2812         cross_compiling=yes
2813     else
2814         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2815 If you meant to cross compile, use \`--host'.
2816 See \`config.log' for more details." >&5
2817 echo "$as_me: error: cannot run C compiled programs.
2818 If you meant to cross compile, use \`--host'.
2819 See \`config.log' for more details." >&2;}
2820    { (exit 1); exit 1; }; }
2821     fi
2822   fi
2823 fi
2824 { echo "$as_me:$LINENO: result: yes" >&5
2825 echo "${ECHO_T}yes" >&6; }
2826
2827 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2828 ac_clean_files=$ac_clean_files_save
2829 # Check that the compiler produces executables we can run.  If not, either
2830 # the compiler is broken, or we cross compile.
2831 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2832 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2833 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2834 echo "${ECHO_T}$cross_compiling" >&6; }
2835
2836 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2837 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2838 if { (ac_try="$ac_link"
2839 case "(($ac_try" in
2840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841   *) ac_try_echo=$ac_try;;
2842 esac
2843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2844   (eval "$ac_link") 2>&5
2845   ac_status=$?
2846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847   (exit $ac_status); }; then
2848   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2849 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2850 # work properly (i.e., refer to `conftest.exe'), while it won't with
2851 # `rm'.
2852 for ac_file in conftest.exe conftest conftest.*; do
2853   test -f "$ac_file" || continue
2854   case $ac_file in
2855     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2856     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2857           break;;
2858     * ) break;;
2859   esac
2860 done
2861 else
2862   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2863 See \`config.log' for more details." >&5
2864 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2865 See \`config.log' for more details." >&2;}
2866    { (exit 1); exit 1; }; }
2867 fi
2868
2869 rm -f conftest$ac_cv_exeext
2870 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2871 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2872
2873 rm -f conftest.$ac_ext
2874 EXEEXT=$ac_cv_exeext
2875 ac_exeext=$EXEEXT
2876 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2877 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2878 if test "${ac_cv_objext+set}" = set; then
2879   echo $ECHO_N "(cached) $ECHO_C" >&6
2880 else
2881   cat >conftest.$ac_ext <<_ACEOF
2882 /* confdefs.h.  */
2883 _ACEOF
2884 cat confdefs.h >>conftest.$ac_ext
2885 cat >>conftest.$ac_ext <<_ACEOF
2886 /* end confdefs.h.  */
2887
2888 int
2889 main ()
2890 {
2891
2892   ;
2893   return 0;
2894 }
2895 _ACEOF
2896 rm -f conftest.o conftest.obj
2897 if { (ac_try="$ac_compile"
2898 case "(($ac_try" in
2899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900   *) ac_try_echo=$ac_try;;
2901 esac
2902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2903   (eval "$ac_compile") 2>&5
2904   ac_status=$?
2905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906   (exit $ac_status); }; then
2907   for ac_file in conftest.o conftest.obj conftest.*; do
2908   test -f "$ac_file" || continue;
2909   case $ac_file in
2910     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2911     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2912        break;;
2913   esac
2914 done
2915 else
2916   echo "$as_me: failed program was:" >&5
2917 sed 's/^/| /' conftest.$ac_ext >&5
2918
2919 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2920 See \`config.log' for more details." >&5
2921 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2922 See \`config.log' for more details." >&2;}
2923    { (exit 1); exit 1; }; }
2924 fi
2925
2926 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2927 fi
2928 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2929 echo "${ECHO_T}$ac_cv_objext" >&6; }
2930 OBJEXT=$ac_cv_objext
2931 ac_objext=$OBJEXT
2932 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2933 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2934 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2935   echo $ECHO_N "(cached) $ECHO_C" >&6
2936 else
2937   cat >conftest.$ac_ext <<_ACEOF
2938 /* confdefs.h.  */
2939 _ACEOF
2940 cat confdefs.h >>conftest.$ac_ext
2941 cat >>conftest.$ac_ext <<_ACEOF
2942 /* end confdefs.h.  */
2943
2944 int
2945 main ()
2946 {
2947 #ifndef __GNUC__
2948        choke me
2949 #endif
2950
2951   ;
2952   return 0;
2953 }
2954 _ACEOF
2955 rm -f conftest.$ac_objext
2956 if { (ac_try="$ac_compile"
2957 case "(($ac_try" in
2958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959   *) ac_try_echo=$ac_try;;
2960 esac
2961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2962   (eval "$ac_compile") 2>conftest.er1
2963   ac_status=$?
2964   grep -v '^ *+' conftest.er1 >conftest.err
2965   rm -f conftest.er1
2966   cat conftest.err >&5
2967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968   (exit $ac_status); } &&
2969          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2970   { (case "(($ac_try" in
2971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972   *) ac_try_echo=$ac_try;;
2973 esac
2974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975   (eval "$ac_try") 2>&5
2976   ac_status=$?
2977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978   (exit $ac_status); }; } &&
2979          { ac_try='test -s conftest.$ac_objext'
2980   { (case "(($ac_try" in
2981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982   *) ac_try_echo=$ac_try;;
2983 esac
2984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2985   (eval "$ac_try") 2>&5
2986   ac_status=$?
2987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988   (exit $ac_status); }; }; then
2989   ac_compiler_gnu=yes
2990 else
2991   echo "$as_me: failed program was:" >&5
2992 sed 's/^/| /' conftest.$ac_ext >&5
2993
2994         ac_compiler_gnu=no
2995 fi
2996
2997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2998 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2999
3000 fi
3001 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3002 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3003 GCC=`test $ac_compiler_gnu = yes && echo yes`
3004 ac_test_CFLAGS=${CFLAGS+set}
3005 ac_save_CFLAGS=$CFLAGS
3006 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3007 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3008 if test "${ac_cv_prog_cc_g+set}" = set; then
3009   echo $ECHO_N "(cached) $ECHO_C" >&6
3010 else
3011   ac_save_c_werror_flag=$ac_c_werror_flag
3012    ac_c_werror_flag=yes
3013    ac_cv_prog_cc_g=no
3014    CFLAGS="-g"
3015    cat >conftest.$ac_ext <<_ACEOF
3016 /* confdefs.h.  */
3017 _ACEOF
3018 cat confdefs.h >>conftest.$ac_ext
3019 cat >>conftest.$ac_ext <<_ACEOF
3020 /* end confdefs.h.  */
3021
3022 int
3023 main ()
3024 {
3025
3026   ;
3027   return 0;
3028 }
3029 _ACEOF
3030 rm -f conftest.$ac_objext
3031 if { (ac_try="$ac_compile"
3032 case "(($ac_try" in
3033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034   *) ac_try_echo=$ac_try;;
3035 esac
3036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037   (eval "$ac_compile") 2>conftest.er1
3038   ac_status=$?
3039   grep -v '^ *+' conftest.er1 >conftest.err
3040   rm -f conftest.er1
3041   cat conftest.err >&5
3042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043   (exit $ac_status); } &&
3044          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3045   { (case "(($ac_try" in
3046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047   *) ac_try_echo=$ac_try;;
3048 esac
3049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050   (eval "$ac_try") 2>&5
3051   ac_status=$?
3052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053   (exit $ac_status); }; } &&
3054          { ac_try='test -s conftest.$ac_objext'
3055   { (case "(($ac_try" in
3056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057   *) ac_try_echo=$ac_try;;
3058 esac
3059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060   (eval "$ac_try") 2>&5
3061   ac_status=$?
3062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063   (exit $ac_status); }; }; then
3064   ac_cv_prog_cc_g=yes
3065 else
3066   echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3068
3069         CFLAGS=""
3070       cat >conftest.$ac_ext <<_ACEOF
3071 /* confdefs.h.  */
3072 _ACEOF
3073 cat confdefs.h >>conftest.$ac_ext
3074 cat >>conftest.$ac_ext <<_ACEOF
3075 /* end confdefs.h.  */
3076
3077 int
3078 main ()
3079 {
3080
3081   ;
3082   return 0;
3083 }
3084 _ACEOF
3085 rm -f conftest.$ac_objext
3086 if { (ac_try="$ac_compile"
3087 case "(($ac_try" in
3088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089   *) ac_try_echo=$ac_try;;
3090 esac
3091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092   (eval "$ac_compile") 2>conftest.er1
3093   ac_status=$?
3094   grep -v '^ *+' conftest.er1 >conftest.err
3095   rm -f conftest.er1
3096   cat conftest.err >&5
3097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098   (exit $ac_status); } &&
3099          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3100   { (case "(($ac_try" in
3101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102   *) ac_try_echo=$ac_try;;
3103 esac
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105   (eval "$ac_try") 2>&5
3106   ac_status=$?
3107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108   (exit $ac_status); }; } &&
3109          { ac_try='test -s conftest.$ac_objext'
3110   { (case "(($ac_try" in
3111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112   *) ac_try_echo=$ac_try;;
3113 esac
3114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115   (eval "$ac_try") 2>&5
3116   ac_status=$?
3117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118   (exit $ac_status); }; }; then
3119   :
3120 else
3121   echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3123
3124         ac_c_werror_flag=$ac_save_c_werror_flag
3125          CFLAGS="-g"
3126          cat >conftest.$ac_ext <<_ACEOF
3127 /* confdefs.h.  */
3128 _ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h.  */
3132
3133 int
3134 main ()
3135 {
3136
3137   ;
3138   return 0;
3139 }
3140 _ACEOF
3141 rm -f conftest.$ac_objext
3142 if { (ac_try="$ac_compile"
3143 case "(($ac_try" in
3144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145   *) ac_try_echo=$ac_try;;
3146 esac
3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148   (eval "$ac_compile") 2>conftest.er1
3149   ac_status=$?
3150   grep -v '^ *+' conftest.er1 >conftest.err
3151   rm -f conftest.er1
3152   cat conftest.err >&5
3153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154   (exit $ac_status); } &&
3155          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3156   { (case "(($ac_try" in
3157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158   *) ac_try_echo=$ac_try;;
3159 esac
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161   (eval "$ac_try") 2>&5
3162   ac_status=$?
3163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164   (exit $ac_status); }; } &&
3165          { ac_try='test -s conftest.$ac_objext'
3166   { (case "(($ac_try" in
3167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168   *) ac_try_echo=$ac_try;;
3169 esac
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171   (eval "$ac_try") 2>&5
3172   ac_status=$?
3173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174   (exit $ac_status); }; }; then
3175   ac_cv_prog_cc_g=yes
3176 else
3177   echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3179
3180
3181 fi
3182
3183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184 fi
3185
3186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187 fi
3188
3189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190    ac_c_werror_flag=$ac_save_c_werror_flag
3191 fi
3192 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3193 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3194 if test "$ac_test_CFLAGS" = set; then
3195   CFLAGS=$ac_save_CFLAGS
3196 elif test $ac_cv_prog_cc_g = yes; then
3197   if test "$GCC" = yes; then
3198     CFLAGS="-g -O2"
3199   else
3200     CFLAGS="-g"
3201   fi
3202 else
3203   if test "$GCC" = yes; then
3204     CFLAGS="-O2"
3205   else
3206     CFLAGS=
3207   fi
3208 fi
3209 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3210 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3211 if test "${ac_cv_prog_cc_c89+set}" = set; then
3212   echo $ECHO_N "(cached) $ECHO_C" >&6
3213 else
3214   ac_cv_prog_cc_c89=no
3215 ac_save_CC=$CC
3216 cat >conftest.$ac_ext <<_ACEOF
3217 /* confdefs.h.  */
3218 _ACEOF
3219 cat confdefs.h >>conftest.$ac_ext
3220 cat >>conftest.$ac_ext <<_ACEOF
3221 /* end confdefs.h.  */
3222 #include <stdarg.h>
3223 #include <stdio.h>
3224 #include <sys/types.h>
3225 #include <sys/stat.h>
3226 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3227 struct buf { int x; };
3228 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3229 static char *e (p, i)
3230      char **p;
3231      int i;
3232 {
3233   return p[i];
3234 }
3235 static char *f (char * (*g) (char **, int), char **p, ...)
3236 {
3237   char *s;
3238   va_list v;
3239   va_start (v,p);
3240   s = g (p, va_arg (v,int));
3241   va_end (v);
3242   return s;
3243 }
3244
3245 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3246    function prototypes and stuff, but not '\xHH' hex character constants.
3247    These don't provoke an error unfortunately, instead are silently treated
3248    as 'x'.  The following induces an error, until -std is added to get
3249    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3250    array size at least.  It's necessary to write '\x00'==0 to get something
3251    that's true only with -std.  */
3252 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3253
3254 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3255    inside strings and character constants.  */
3256 #define FOO(x) 'x'
3257 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3258
3259 int test (int i, double x);
3260 struct s1 {int (*f) (int a);};
3261 struct s2 {int (*f) (double a);};
3262 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3263 int argc;
3264 char **argv;
3265 int
3266 main ()
3267 {
3268 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3269   ;
3270   return 0;
3271 }
3272 _ACEOF
3273 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3274         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3275 do
3276   CC="$ac_save_CC $ac_arg"
3277   rm -f conftest.$ac_objext
3278 if { (ac_try="$ac_compile"
3279 case "(($ac_try" in
3280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281   *) ac_try_echo=$ac_try;;
3282 esac
3283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3284   (eval "$ac_compile") 2>conftest.er1
3285   ac_status=$?
3286   grep -v '^ *+' conftest.er1 >conftest.err
3287   rm -f conftest.er1
3288   cat conftest.err >&5
3289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290   (exit $ac_status); } &&
3291          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3292   { (case "(($ac_try" in
3293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294   *) ac_try_echo=$ac_try;;
3295 esac
3296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297   (eval "$ac_try") 2>&5
3298   ac_status=$?
3299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300   (exit $ac_status); }; } &&
3301          { ac_try='test -s conftest.$ac_objext'
3302   { (case "(($ac_try" in
3303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304   *) ac_try_echo=$ac_try;;
3305 esac
3306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3307   (eval "$ac_try") 2>&5
3308   ac_status=$?
3309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310   (exit $ac_status); }; }; then
3311   ac_cv_prog_cc_c89=$ac_arg
3312 else
3313   echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3315
3316
3317 fi
3318
3319 rm -f core conftest.err conftest.$ac_objext
3320   test "x$ac_cv_prog_cc_c89" != "xno" && break
3321 done
3322 rm -f conftest.$ac_ext
3323 CC=$ac_save_CC
3324
3325 fi
3326 # AC_CACHE_VAL
3327 case "x$ac_cv_prog_cc_c89" in
3328   x)
3329     { echo "$as_me:$LINENO: result: none needed" >&5
3330 echo "${ECHO_T}none needed" >&6; } ;;
3331   xno)
3332     { echo "$as_me:$LINENO: result: unsupported" >&5
3333 echo "${ECHO_T}unsupported" >&6; } ;;
3334   *)
3335     CC="$CC $ac_cv_prog_cc_c89"
3336     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3337 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3338 esac
3339
3340
3341 ac_ext=c
3342 ac_cpp='$CPP $CPPFLAGS'
3343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3346
3347
3348 ac_ext=c
3349 ac_cpp='$CPP $CPPFLAGS'
3350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3353 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3354 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3355 # On Suns, sometimes $CPP names a directory.
3356 if test -n "$CPP" && test -d "$CPP"; then
3357   CPP=
3358 fi
3359 if test -z "$CPP"; then
3360   if test "${ac_cv_prog_CPP+set}" = set; then
3361   echo $ECHO_N "(cached) $ECHO_C" >&6
3362 else
3363       # Double quotes because CPP needs to be expanded
3364     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3365     do
3366       ac_preproc_ok=false
3367 for ac_c_preproc_warn_flag in '' yes
3368 do
3369   # Use a header file that comes with gcc, so configuring glibc
3370   # with a fresh cross-compiler works.
3371   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3372   # <limits.h> exists even on freestanding compilers.
3373   # On the NeXT, cc -E runs the code through the compiler's parser,
3374   # not just through cpp. "Syntax error" is here to catch this case.
3375   cat >conftest.$ac_ext <<_ACEOF
3376 /* confdefs.h.  */
3377 _ACEOF
3378 cat confdefs.h >>conftest.$ac_ext
3379 cat >>conftest.$ac_ext <<_ACEOF
3380 /* end confdefs.h.  */
3381 #ifdef __STDC__
3382 # include <limits.h>
3383 #else
3384 # include <assert.h>
3385 #endif
3386                      Syntax error
3387 _ACEOF
3388 if { (ac_try="$ac_cpp conftest.$ac_ext"
3389 case "(($ac_try" in
3390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391   *) ac_try_echo=$ac_try;;
3392 esac
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3395   ac_status=$?
3396   grep -v '^ *+' conftest.er1 >conftest.err
3397   rm -f conftest.er1
3398   cat conftest.err >&5
3399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400   (exit $ac_status); } >/dev/null; then
3401   if test -s conftest.err; then
3402     ac_cpp_err=$ac_c_preproc_warn_flag
3403     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3404   else
3405     ac_cpp_err=
3406   fi
3407 else
3408   ac_cpp_err=yes
3409 fi
3410 if test -z "$ac_cpp_err"; then
3411   :
3412 else
3413   echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3415
3416   # Broken: fails on valid input.
3417 continue
3418 fi
3419
3420 rm -f conftest.err conftest.$ac_ext
3421
3422   # OK, works on sane cases.  Now check whether nonexistent headers
3423   # can be detected and how.
3424   cat >conftest.$ac_ext <<_ACEOF
3425 /* confdefs.h.  */
3426 _ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h.  */
3430 #include <ac_nonexistent.h>
3431 _ACEOF
3432 if { (ac_try="$ac_cpp conftest.$ac_ext"
3433 case "(($ac_try" in
3434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435   *) ac_try_echo=$ac_try;;
3436 esac
3437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3439   ac_status=$?
3440   grep -v '^ *+' conftest.er1 >conftest.err
3441   rm -f conftest.er1
3442   cat conftest.err >&5
3443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444   (exit $ac_status); } >/dev/null; then
3445   if test -s conftest.err; then
3446     ac_cpp_err=$ac_c_preproc_warn_flag
3447     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3448   else
3449     ac_cpp_err=
3450   fi
3451 else
3452   ac_cpp_err=yes
3453 fi
3454 if test -z "$ac_cpp_err"; then
3455   # Broken: success on invalid input.
3456 continue
3457 else
3458   echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3460
3461   # Passes both tests.
3462 ac_preproc_ok=:
3463 break
3464 fi
3465
3466 rm -f conftest.err conftest.$ac_ext
3467
3468 done
3469 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3470 rm -f conftest.err conftest.$ac_ext
3471 if $ac_preproc_ok; then
3472   break
3473 fi
3474
3475     done
3476     ac_cv_prog_CPP=$CPP
3477
3478 fi
3479   CPP=$ac_cv_prog_CPP
3480 else
3481   ac_cv_prog_CPP=$CPP
3482 fi
3483 { echo "$as_me:$LINENO: result: $CPP" >&5
3484 echo "${ECHO_T}$CPP" >&6; }
3485 ac_preproc_ok=false
3486 for ac_c_preproc_warn_flag in '' yes
3487 do
3488   # Use a header file that comes with gcc, so configuring glibc
3489   # with a fresh cross-compiler works.
3490   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3491   # <limits.h> exists even on freestanding compilers.
3492   # On the NeXT, cc -E runs the code through the compiler's parser,
3493   # not just through cpp. "Syntax error" is here to catch this case.
3494   cat >conftest.$ac_ext <<_ACEOF
3495 /* confdefs.h.  */
3496 _ACEOF
3497 cat confdefs.h >>conftest.$ac_ext
3498 cat >>conftest.$ac_ext <<_ACEOF
3499 /* end confdefs.h.  */
3500 #ifdef __STDC__
3501 # include <limits.h>
3502 #else
3503 # include <assert.h>
3504 #endif
3505                      Syntax error
3506 _ACEOF
3507 if { (ac_try="$ac_cpp conftest.$ac_ext"
3508 case "(($ac_try" in
3509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510   *) ac_try_echo=$ac_try;;
3511 esac
3512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3513   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3514   ac_status=$?
3515   grep -v '^ *+' conftest.er1 >conftest.err
3516   rm -f conftest.er1
3517   cat conftest.err >&5
3518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519   (exit $ac_status); } >/dev/null; then
3520   if test -s conftest.err; then
3521     ac_cpp_err=$ac_c_preproc_warn_flag
3522     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3523   else
3524     ac_cpp_err=
3525   fi
3526 else
3527   ac_cpp_err=yes
3528 fi
3529 if test -z "$ac_cpp_err"; then
3530   :
3531 else
3532   echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3534
3535   # Broken: fails on valid input.
3536 continue
3537 fi
3538
3539 rm -f conftest.err conftest.$ac_ext
3540
3541   # OK, works on sane cases.  Now check whether nonexistent headers
3542   # can be detected and how.
3543   cat >conftest.$ac_ext <<_ACEOF
3544 /* confdefs.h.  */
3545 _ACEOF
3546 cat confdefs.h >>conftest.$ac_ext
3547 cat >>conftest.$ac_ext <<_ACEOF
3548 /* end confdefs.h.  */
3549 #include <ac_nonexistent.h>
3550 _ACEOF
3551 if { (ac_try="$ac_cpp conftest.$ac_ext"
3552 case "(($ac_try" in
3553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554   *) ac_try_echo=$ac_try;;
3555 esac
3556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3558   ac_status=$?
3559   grep -v '^ *+' conftest.er1 >conftest.err
3560   rm -f conftest.er1
3561   cat conftest.err >&5
3562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563   (exit $ac_status); } >/dev/null; then
3564   if test -s conftest.err; then
3565     ac_cpp_err=$ac_c_preproc_warn_flag
3566     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3567   else
3568     ac_cpp_err=
3569   fi
3570 else
3571   ac_cpp_err=yes
3572 fi
3573 if test -z "$ac_cpp_err"; then
3574   # Broken: success on invalid input.
3575 continue
3576 else
3577   echo "$as_me: failed program was:" >&5
3578 sed 's/^/| /' conftest.$ac_ext >&5
3579
3580   # Passes both tests.
3581 ac_preproc_ok=:
3582 break
3583 fi
3584
3585 rm -f conftest.err conftest.$ac_ext
3586
3587 done
3588 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3589 rm -f conftest.err conftest.$ac_ext
3590 if $ac_preproc_ok; then
3591   :
3592 else
3593   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3594 See \`config.log' for more details." >&5
3595 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3596 See \`config.log' for more details." >&2;}
3597    { (exit 1); exit 1; }; }
3598 fi
3599
3600 ac_ext=c
3601 ac_cpp='$CPP $CPPFLAGS'
3602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3605
3606
3607 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3608 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3609 if test "${ac_cv_path_GREP+set}" = set; then
3610   echo $ECHO_N "(cached) $ECHO_C" >&6
3611 else
3612   # Extract the first word of "grep ggrep" to use in msg output
3613 if test -z "$GREP"; then
3614 set dummy grep ggrep; ac_prog_name=$2
3615 if test "${ac_cv_path_GREP+set}" = set; then
3616   echo $ECHO_N "(cached) $ECHO_C" >&6
3617 else
3618   ac_path_GREP_found=false
3619 # Loop through the user's path and test for each of PROGNAME-LIST
3620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3621 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3622 do
3623   IFS=$as_save_IFS
3624   test -z "$as_dir" && as_dir=.
3625   for ac_prog in grep ggrep; do
3626   for ac_exec_ext in '' $ac_executable_extensions; do
3627     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3628     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3629     # Check for GNU ac_path_GREP and select it if it is found.
3630   # Check for GNU $ac_path_GREP
3631 case `"$ac_path_GREP" --version 2>&1` in
3632 *GNU*)
3633   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3634 *)
3635   ac_count=0
3636   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3637   while :
3638   do
3639     cat "conftest.in" "conftest.in" >"conftest.tmp"
3640     mv "conftest.tmp" "conftest.in"
3641     cp "conftest.in" "conftest.nl"
3642     echo 'GREP' >> "conftest.nl"
3643     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3644     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3645     ac_count=`expr $ac_count + 1`
3646     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3647       # Best one so far, save it but keep looking for a better one
3648       ac_cv_path_GREP="$ac_path_GREP"
3649       ac_path_GREP_max=$ac_count
3650     fi
3651     # 10*(2^10) chars as input seems more than enough
3652     test $ac_count -gt 10 && break
3653   done
3654   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3655 esac
3656
3657
3658     $ac_path_GREP_found && break 3
3659   done
3660 done
3661
3662 done
3663 IFS=$as_save_IFS
3664
3665
3666 fi
3667
3668 GREP="$ac_cv_path_GREP"
3669 if test -z "$GREP"; then
3670   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3671 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3672    { (exit 1); exit 1; }; }
3673 fi
3674
3675 else
3676   ac_cv_path_GREP=$GREP
3677 fi
3678
3679
3680 fi
3681 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3682 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3683  GREP="$ac_cv_path_GREP"
3684
3685
3686 { echo "$as_me:$LINENO: checking for egrep" >&5
3687 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3688 if test "${ac_cv_path_EGREP+set}" = set; then
3689   echo $ECHO_N "(cached) $ECHO_C" >&6
3690 else
3691   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3692    then ac_cv_path_EGREP="$GREP -E"
3693    else
3694      # Extract the first word of "egrep" to use in msg output
3695 if test -z "$EGREP"; then
3696 set dummy egrep; ac_prog_name=$2
3697 if test "${ac_cv_path_EGREP+set}" = set; then
3698   echo $ECHO_N "(cached) $ECHO_C" >&6
3699 else
3700   ac_path_EGREP_found=false
3701 # Loop through the user's path and test for each of PROGNAME-LIST
3702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3704 do
3705   IFS=$as_save_IFS
3706   test -z "$as_dir" && as_dir=.
3707   for ac_prog in egrep; do
3708   for ac_exec_ext in '' $ac_executable_extensions; do
3709     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3710     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3711     # Check for GNU ac_path_EGREP and select it if it is found.
3712   # Check for GNU $ac_path_EGREP
3713 case `"$ac_path_EGREP" --version 2>&1` in
3714 *GNU*)
3715   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3716 *)
3717   ac_count=0
3718   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3719   while :
3720   do
3721     cat "conftest.in" "conftest.in" >"conftest.tmp"
3722     mv "conftest.tmp" "conftest.in"
3723     cp "conftest.in" "conftest.nl"
3724     echo 'EGREP' >> "conftest.nl"
3725     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3726     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3727     ac_count=`expr $ac_count + 1`
3728     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3729       # Best one so far, save it but keep looking for a better one
3730       ac_cv_path_EGREP="$ac_path_EGREP"
3731       ac_path_EGREP_max=$ac_count
3732     fi
3733     # 10*(2^10) chars as input seems more than enough
3734     test $ac_count -gt 10 && break
3735   done
3736   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3737 esac
3738
3739
3740     $ac_path_EGREP_found && break 3
3741   done
3742 done
3743
3744 done
3745 IFS=$as_save_IFS
3746
3747
3748 fi
3749
3750 EGREP="$ac_cv_path_EGREP"
3751 if test -z "$EGREP"; then
3752   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3753 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3754    { (exit 1); exit 1; }; }
3755 fi
3756
3757 else
3758   ac_cv_path_EGREP=$EGREP
3759 fi
3760
3761
3762    fi
3763 fi
3764 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3765 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3766  EGREP="$ac_cv_path_EGREP"
3767
3768
3769 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3770 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3771 if test "${ac_cv_header_stdc+set}" = set; then
3772   echo $ECHO_N "(cached) $ECHO_C" >&6
3773 else
3774   cat >conftest.$ac_ext <<_ACEOF
3775 /* confdefs.h.  */
3776 _ACEOF
3777 cat confdefs.h >>conftest.$ac_ext
3778 cat >>conftest.$ac_ext <<_ACEOF
3779 /* end confdefs.h.  */
3780 #include <stdlib.h>
3781 #include <stdarg.h>
3782 #include <string.h>
3783 #include <float.h>
3784
3785 int
3786 main ()
3787 {
3788
3789   ;
3790   return 0;
3791 }
3792 _ACEOF
3793 rm -f conftest.$ac_objext
3794 if { (ac_try="$ac_compile"
3795 case "(($ac_try" in
3796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797   *) ac_try_echo=$ac_try;;
3798 esac
3799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3800   (eval "$ac_compile") 2>conftest.er1
3801   ac_status=$?
3802   grep -v '^ *+' conftest.er1 >conftest.err
3803   rm -f conftest.er1
3804   cat conftest.err >&5
3805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806   (exit $ac_status); } &&
3807          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3808   { (case "(($ac_try" in
3809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810   *) ac_try_echo=$ac_try;;
3811 esac
3812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3813   (eval "$ac_try") 2>&5
3814   ac_status=$?
3815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816   (exit $ac_status); }; } &&
3817          { ac_try='test -s conftest.$ac_objext'
3818   { (case "(($ac_try" in
3819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820   *) ac_try_echo=$ac_try;;
3821 esac
3822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3823   (eval "$ac_try") 2>&5
3824   ac_status=$?
3825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826   (exit $ac_status); }; }; then
3827   ac_cv_header_stdc=yes
3828 else
3829   echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.$ac_ext >&5
3831
3832         ac_cv_header_stdc=no
3833 fi
3834
3835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3836
3837 if test $ac_cv_header_stdc = yes; then
3838   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3839   cat >conftest.$ac_ext <<_ACEOF
3840 /* confdefs.h.  */
3841 _ACEOF
3842 cat confdefs.h >>conftest.$ac_ext
3843 cat >>conftest.$ac_ext <<_ACEOF
3844 /* end confdefs.h.  */
3845 #include <string.h>
3846
3847 _ACEOF
3848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3849   $EGREP "memchr" >/dev/null 2>&1; then
3850   :
3851 else
3852   ac_cv_header_stdc=no
3853 fi
3854 rm -f conftest*
3855
3856 fi
3857
3858 if test $ac_cv_header_stdc = yes; then
3859   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3860   cat >conftest.$ac_ext <<_ACEOF
3861 /* confdefs.h.  */
3862 _ACEOF
3863 cat confdefs.h >>conftest.$ac_ext
3864 cat >>conftest.$ac_ext <<_ACEOF
3865 /* end confdefs.h.  */
3866 #include <stdlib.h>
3867
3868 _ACEOF
3869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3870   $EGREP "free" >/dev/null 2>&1; then
3871   :
3872 else
3873   ac_cv_header_stdc=no
3874 fi
3875 rm -f conftest*
3876
3877 fi
3878
3879 if test $ac_cv_header_stdc = yes; then
3880   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3881   if test "$cross_compiling" = yes; then
3882   :
3883 else
3884   cat >conftest.$ac_ext <<_ACEOF
3885 /* confdefs.h.  */
3886 _ACEOF
3887 cat confdefs.h >>conftest.$ac_ext
3888 cat >>conftest.$ac_ext <<_ACEOF
3889 /* end confdefs.h.  */
3890 #include <ctype.h>
3891 #include <stdlib.h>
3892 #if ((' ' & 0x0FF) == 0x020)
3893 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3894 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3895 #else
3896 # define ISLOWER(c) \
3897                    (('a' <= (c) && (c) <= 'i') \
3898                      || ('j' <= (c) && (c) <= 'r') \
3899                      || ('s' <= (c) && (c) <= 'z'))
3900 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3901 #endif
3902
3903 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3904 int
3905 main ()
3906 {
3907   int i;
3908   for (i = 0; i < 256; i++)
3909     if (XOR (islower (i), ISLOWER (i))
3910         || toupper (i) != TOUPPER (i))
3911       return 2;
3912   return 0;
3913 }
3914 _ACEOF
3915 rm -f conftest$ac_exeext
3916 if { (ac_try="$ac_link"
3917 case "(($ac_try" in
3918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919   *) ac_try_echo=$ac_try;;
3920 esac
3921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3922   (eval "$ac_link") 2>&5
3923   ac_status=$?
3924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3926   { (case "(($ac_try" in
3927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928   *) ac_try_echo=$ac_try;;
3929 esac
3930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3931   (eval "$ac_try") 2>&5
3932   ac_status=$?
3933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934   (exit $ac_status); }; }; then
3935   :
3936 else
3937   echo "$as_me: program exited with status $ac_status" >&5
3938 echo "$as_me: failed program was:" >&5
3939 sed 's/^/| /' conftest.$ac_ext >&5
3940
3941 ( exit $ac_status )
3942 ac_cv_header_stdc=no
3943 fi
3944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3945 fi
3946
3947
3948 fi
3949 fi
3950 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3951 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3952 if test $ac_cv_header_stdc = yes; then
3953
3954 cat >>confdefs.h <<\_ACEOF
3955 #define STDC_HEADERS 1
3956 _ACEOF
3957
3958 fi
3959
3960 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3971                   inttypes.h stdint.h unistd.h
3972 do
3973 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3974 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3977   echo $ECHO_N "(cached) $ECHO_C" >&6
3978 else
3979   cat >conftest.$ac_ext <<_ACEOF
3980 /* confdefs.h.  */
3981 _ACEOF
3982 cat confdefs.h >>conftest.$ac_ext
3983 cat >>conftest.$ac_ext <<_ACEOF
3984 /* end confdefs.h.  */
3985 $ac_includes_default
3986
3987 #include <$ac_header>
3988 _ACEOF
3989 rm -f conftest.$ac_objext
3990 if { (ac_try="$ac_compile"
3991 case "(($ac_try" in
3992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3993   *) ac_try_echo=$ac_try;;
3994 esac
3995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3996   (eval "$ac_compile") 2>conftest.er1
3997   ac_status=$?
3998   grep -v '^ *+' conftest.er1 >conftest.err
3999   rm -f conftest.er1
4000   cat conftest.err >&5
4001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002   (exit $ac_status); } &&
4003          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4004   { (case "(($ac_try" in
4005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006   *) ac_try_echo=$ac_try;;
4007 esac
4008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4009   (eval "$ac_try") 2>&5
4010   ac_status=$?
4011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012   (exit $ac_status); }; } &&
4013          { ac_try='test -s conftest.$ac_objext'
4014   { (case "(($ac_try" in
4015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016   *) ac_try_echo=$ac_try;;
4017 esac
4018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4019   (eval "$ac_try") 2>&5
4020   ac_status=$?
4021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022   (exit $ac_status); }; }; then
4023   eval "$as_ac_Header=yes"
4024 else
4025   echo "$as_me: failed program was:" >&5
4026 sed 's/^/| /' conftest.$ac_ext >&5
4027
4028         eval "$as_ac_Header=no"
4029 fi
4030
4031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4032 fi
4033 ac_res=`eval echo '${'$as_ac_Header'}'`
4034                { echo "$as_me:$LINENO: result: $ac_res" >&5
4035 echo "${ECHO_T}$ac_res" >&6; }
4036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4037   cat >>confdefs.h <<_ACEOF
4038 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4039 _ACEOF
4040
4041 fi
4042
4043 done
4044
4045
4046 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4047 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4048 if test "${ac_cv_c_bigendian+set}" = set; then
4049   echo $ECHO_N "(cached) $ECHO_C" >&6
4050 else
4051   # See if sys/param.h defines the BYTE_ORDER macro.
4052 cat >conftest.$ac_ext <<_ACEOF
4053 /* confdefs.h.  */
4054 _ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h.  */
4058 #include <sys/types.h>
4059 #include <sys/param.h>
4060
4061 int
4062 main ()
4063 {
4064 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4065  bogus endian macros
4066 #endif
4067
4068   ;
4069   return 0;
4070 }
4071 _ACEOF
4072 rm -f conftest.$ac_objext
4073 if { (ac_try="$ac_compile"
4074 case "(($ac_try" in
4075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076   *) ac_try_echo=$ac_try;;
4077 esac
4078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079   (eval "$ac_compile") 2>conftest.er1
4080   ac_status=$?
4081   grep -v '^ *+' conftest.er1 >conftest.err
4082   rm -f conftest.er1
4083   cat conftest.err >&5
4084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085   (exit $ac_status); } &&
4086          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4087   { (case "(($ac_try" in
4088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089   *) ac_try_echo=$ac_try;;
4090 esac
4091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092   (eval "$ac_try") 2>&5
4093   ac_status=$?
4094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095   (exit $ac_status); }; } &&
4096          { ac_try='test -s conftest.$ac_objext'
4097   { (case "(($ac_try" in
4098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099   *) ac_try_echo=$ac_try;;
4100 esac
4101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102   (eval "$ac_try") 2>&5
4103   ac_status=$?
4104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105   (exit $ac_status); }; }; then
4106   # It does; now see whether it defined to BIG_ENDIAN or not.
4107 cat >conftest.$ac_ext <<_ACEOF
4108 /* confdefs.h.  */
4109 _ACEOF
4110 cat confdefs.h >>conftest.$ac_ext
4111 cat >>conftest.$ac_ext <<_ACEOF
4112 /* end confdefs.h.  */
4113 #include <sys/types.h>
4114 #include <sys/param.h>
4115
4116 int
4117 main ()
4118 {
4119 #if BYTE_ORDER != BIG_ENDIAN
4120  not big endian
4121 #endif
4122
4123   ;
4124   return 0;
4125 }
4126 _ACEOF
4127 rm -f conftest.$ac_objext
4128 if { (ac_try="$ac_compile"
4129 case "(($ac_try" in
4130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131   *) ac_try_echo=$ac_try;;
4132 esac
4133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4134   (eval "$ac_compile") 2>conftest.er1
4135   ac_status=$?
4136   grep -v '^ *+' conftest.er1 >conftest.err
4137   rm -f conftest.er1
4138   cat conftest.err >&5
4139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140   (exit $ac_status); } &&
4141          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4142   { (case "(($ac_try" in
4143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144   *) ac_try_echo=$ac_try;;
4145 esac
4146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4147   (eval "$ac_try") 2>&5
4148   ac_status=$?
4149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150   (exit $ac_status); }; } &&
4151          { ac_try='test -s conftest.$ac_objext'
4152   { (case "(($ac_try" in
4153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154   *) ac_try_echo=$ac_try;;
4155 esac
4156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4157   (eval "$ac_try") 2>&5
4158   ac_status=$?
4159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160   (exit $ac_status); }; }; then
4161   ac_cv_c_bigendian=yes
4162 else
4163   echo "$as_me: failed program was:" >&5
4164 sed 's/^/| /' conftest.$ac_ext >&5
4165
4166         ac_cv_c_bigendian=no
4167 fi
4168
4169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4170 else
4171   echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4173
4174         # It does not; compile a test program.
4175 if test "$cross_compiling" = yes; then
4176   # try to guess the endianness by grepping values into an object file
4177   ac_cv_c_bigendian=unknown
4178   cat >conftest.$ac_ext <<_ACEOF
4179 /* confdefs.h.  */
4180 _ACEOF
4181 cat confdefs.h >>conftest.$ac_ext
4182 cat >>conftest.$ac_ext <<_ACEOF
4183 /* end confdefs.h.  */
4184 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4185 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4186 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4187 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4188 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4189 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4190 int
4191 main ()
4192 {
4193  _ascii (); _ebcdic ();
4194   ;
4195   return 0;
4196 }
4197 _ACEOF
4198 rm -f conftest.$ac_objext
4199 if { (ac_try="$ac_compile"
4200 case "(($ac_try" in
4201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202   *) ac_try_echo=$ac_try;;
4203 esac
4204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4205   (eval "$ac_compile") 2>conftest.er1
4206   ac_status=$?
4207   grep -v '^ *+' conftest.er1 >conftest.err
4208   rm -f conftest.er1
4209   cat conftest.err >&5
4210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211   (exit $ac_status); } &&
4212          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4213   { (case "(($ac_try" in
4214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215   *) ac_try_echo=$ac_try;;
4216 esac
4217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4218   (eval "$ac_try") 2>&5
4219   ac_status=$?
4220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221   (exit $ac_status); }; } &&
4222          { ac_try='test -s conftest.$ac_objext'
4223   { (case "(($ac_try" in
4224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225   *) ac_try_echo=$ac_try;;
4226 esac
4227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4228   (eval "$ac_try") 2>&5
4229   ac_status=$?
4230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231   (exit $ac_status); }; }; then
4232   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4233   ac_cv_c_bigendian=yes
4234 fi
4235 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4236   if test "$ac_cv_c_bigendian" = unknown; then
4237     ac_cv_c_bigendian=no
4238   else
4239     # finding both strings is unlikely to happen, but who knows?
4240     ac_cv_c_bigendian=unknown
4241   fi
4242 fi
4243 else
4244   echo "$as_me: failed program was:" >&5
4245 sed 's/^/| /' conftest.$ac_ext >&5
4246
4247
4248 fi
4249
4250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4251 else
4252   cat >conftest.$ac_ext <<_ACEOF
4253 /* confdefs.h.  */
4254 _ACEOF
4255 cat confdefs.h >>conftest.$ac_ext
4256 cat >>conftest.$ac_ext <<_ACEOF
4257 /* end confdefs.h.  */
4258 $ac_includes_default
4259 int
4260 main ()
4261 {
4262
4263   /* Are we little or big endian?  From Harbison&Steele.  */
4264   union
4265   {
4266     long int l;
4267     char c[sizeof (long int)];
4268   } u;
4269   u.l = 1;
4270   return u.c[sizeof (long int) - 1] == 1;
4271
4272   ;
4273   return 0;
4274 }
4275 _ACEOF
4276 rm -f conftest$ac_exeext
4277 if { (ac_try="$ac_link"
4278 case "(($ac_try" in
4279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280   *) ac_try_echo=$ac_try;;
4281 esac
4282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4283   (eval "$ac_link") 2>&5
4284   ac_status=$?
4285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4287   { (case "(($ac_try" in
4288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289   *) ac_try_echo=$ac_try;;
4290 esac
4291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292   (eval "$ac_try") 2>&5
4293   ac_status=$?
4294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295   (exit $ac_status); }; }; then
4296   ac_cv_c_bigendian=no
4297 else
4298   echo "$as_me: program exited with status $ac_status" >&5
4299 echo "$as_me: failed program was:" >&5
4300 sed 's/^/| /' conftest.$ac_ext >&5
4301
4302 ( exit $ac_status )
4303 ac_cv_c_bigendian=yes
4304 fi
4305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4306 fi
4307
4308
4309 fi
4310
4311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312 fi
4313 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4314 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4315 case $ac_cv_c_bigendian in
4316   yes)
4317     ENDIAN=big
4318  ;;
4319   no)
4320     ENDIAN=little
4321  ;;
4322   *)
4323     { { echo "$as_me:$LINENO: error: unknown endianness
4324 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4325 echo "$as_me: error: unknown endianness
4326 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4327    { (exit 1); exit 1; }; } ;;
4328 esac
4329
4330
4331 if test "$cross_compiling" = yes; then
4332   LLVM_CROSS_COMPILING=1
4333
4334
4335 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4336 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4337 if test "${ac_cv_build_exeext+set}" = set; then
4338   echo $ECHO_N "(cached) $ECHO_C" >&6
4339 else
4340   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4341   ac_cv_build_exeext=.exe
4342 else
4343   ac_build_prefix=${build_alias}-
4344
4345   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4346 set dummy ${ac_build_prefix}gcc; ac_word=$2
4347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4349 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4350   echo $ECHO_N "(cached) $ECHO_C" >&6
4351 else
4352   if test -n "$BUILD_CC"; then
4353   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4354 else
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 for as_dir in $PATH
4357 do
4358   IFS=$as_save_IFS
4359   test -z "$as_dir" && as_dir=.
4360   for ac_exec_ext in '' $ac_executable_extensions; do
4361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4362     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4364     break 2
4365   fi
4366 done
4367 done
4368 IFS=$as_save_IFS
4369
4370 fi
4371 fi
4372 BUILD_CC=$ac_cv_prog_BUILD_CC
4373 if test -n "$BUILD_CC"; then
4374   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4375 echo "${ECHO_T}$BUILD_CC" >&6; }
4376 else
4377   { echo "$as_me:$LINENO: result: no" >&5
4378 echo "${ECHO_T}no" >&6; }
4379 fi
4380
4381
4382   if test -z "$BUILD_CC"; then
4383      # Extract the first word of "gcc", so it can be a program name with args.
4384 set dummy gcc; ac_word=$2
4385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4387 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4388   echo $ECHO_N "(cached) $ECHO_C" >&6
4389 else
4390   if test -n "$BUILD_CC"; then
4391   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4392 else
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 for as_dir in $PATH
4395 do
4396   IFS=$as_save_IFS
4397   test -z "$as_dir" && as_dir=.
4398   for ac_exec_ext in '' $ac_executable_extensions; do
4399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4400     ac_cv_prog_BUILD_CC="gcc"
4401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4402     break 2
4403   fi
4404 done
4405 done
4406 IFS=$as_save_IFS
4407
4408 fi
4409 fi
4410 BUILD_CC=$ac_cv_prog_BUILD_CC
4411 if test -n "$BUILD_CC"; then
4412   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4413 echo "${ECHO_T}$BUILD_CC" >&6; }
4414 else
4415   { echo "$as_me:$LINENO: result: no" >&5
4416 echo "${ECHO_T}no" >&6; }
4417 fi
4418
4419
4420      if test -z "$BUILD_CC"; then
4421        # Extract the first word of "cc", so it can be a program name with args.
4422 set dummy cc; ac_word=$2
4423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4425 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4426   echo $ECHO_N "(cached) $ECHO_C" >&6
4427 else
4428   if test -n "$BUILD_CC"; then
4429   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4430 else
4431   ac_prog_rejected=no
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 for as_dir in $PATH
4434 do
4435   IFS=$as_save_IFS
4436   test -z "$as_dir" && as_dir=.
4437   for ac_exec_ext in '' $ac_executable_extensions; do
4438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4439     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4440        ac_prog_rejected=yes
4441        continue
4442      fi
4443     ac_cv_prog_BUILD_CC="cc"
4444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4445     break 2
4446   fi
4447 done
4448 done
4449 IFS=$as_save_IFS
4450
4451 if test $ac_prog_rejected = yes; then
4452   # We found a bogon in the path, so make sure we never use it.
4453   set dummy $ac_cv_prog_BUILD_CC
4454   shift
4455   if test $# != 0; then
4456     # We chose a different compiler from the bogus one.
4457     # However, it has the same basename, so the bogon will be chosen
4458     # first if we set BUILD_CC to just the basename; use the full file name.
4459     shift
4460     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4461   fi
4462 fi
4463 fi
4464 fi
4465 BUILD_CC=$ac_cv_prog_BUILD_CC
4466 if test -n "$BUILD_CC"; then
4467   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4468 echo "${ECHO_T}$BUILD_CC" >&6; }
4469 else
4470   { echo "$as_me:$LINENO: result: no" >&5
4471 echo "${ECHO_T}no" >&6; }
4472 fi
4473
4474
4475      fi
4476   fi
4477   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4478 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4479    { (exit 1); exit 1; }; }
4480   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4481   rm -f conftest*
4482   echo 'int main () { return 0; }' > conftest.$ac_ext
4483   ac_cv_build_exeext=
4484   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4485   (eval $ac_build_link) 2>&5
4486   ac_status=$?
4487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488   (exit $ac_status); }; then
4489     for file in conftest.*; do
4490       case $file in
4491       *.c | *.o | *.obj | *.dSYM) ;;
4492       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4493       esac
4494     done
4495   else
4496     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4497 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4498    { (exit 1); exit 1; }; }
4499   fi
4500   rm -f conftest*
4501   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4502 fi
4503 fi
4504
4505 BUILD_EXEEXT=""
4506 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4507 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4508 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4509 ac_build_exeext=$BUILD_EXEEXT
4510
4511   ac_build_prefix=${build_alias}-
4512   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4513 set dummy ${ac_build_prefix}g++; ac_word=$2
4514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4516 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4517   echo $ECHO_N "(cached) $ECHO_C" >&6
4518 else
4519   if test -n "$BUILD_CXX"; then
4520   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4521 else
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 for as_dir in $PATH
4524 do
4525   IFS=$as_save_IFS
4526   test -z "$as_dir" && as_dir=.
4527   for ac_exec_ext in '' $ac_executable_extensions; do
4528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4529     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4531     break 2
4532   fi
4533 done
4534 done
4535 IFS=$as_save_IFS
4536
4537 fi
4538 fi
4539 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4540 if test -n "$BUILD_CXX"; then
4541   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4542 echo "${ECHO_T}$BUILD_CXX" >&6; }
4543 else
4544   { echo "$as_me:$LINENO: result: no" >&5
4545 echo "${ECHO_T}no" >&6; }
4546 fi
4547
4548
4549   if test -z "$BUILD_CXX"; then
4550      # Extract the first word of "g++", so it can be a program name with args.
4551 set dummy g++; ac_word=$2
4552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4554 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4555   echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557   if test -n "$BUILD_CXX"; then
4558   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4559 else
4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 for as_dir in $PATH
4562 do
4563   IFS=$as_save_IFS
4564   test -z "$as_dir" && as_dir=.
4565   for ac_exec_ext in '' $ac_executable_extensions; do
4566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4567     ac_cv_prog_BUILD_CXX="g++"
4568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4569     break 2
4570   fi
4571 done
4572 done
4573 IFS=$as_save_IFS
4574
4575 fi
4576 fi
4577 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4578 if test -n "$BUILD_CXX"; then
4579   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4580 echo "${ECHO_T}$BUILD_CXX" >&6; }
4581 else
4582   { echo "$as_me:$LINENO: result: no" >&5
4583 echo "${ECHO_T}no" >&6; }
4584 fi
4585
4586
4587      if test -z "$BUILD_CXX"; then
4588        # Extract the first word of "c++", so it can be a program name with args.
4589 set dummy c++; ac_word=$2
4590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4592 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4593   echo $ECHO_N "(cached) $ECHO_C" >&6
4594 else
4595   if test -n "$BUILD_CXX"; then
4596   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4597 else
4598   ac_prog_rejected=no
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH
4601 do
4602   IFS=$as_save_IFS
4603   test -z "$as_dir" && as_dir=.
4604   for ac_exec_ext in '' $ac_executable_extensions; do
4605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4606     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4607        ac_prog_rejected=yes
4608        continue
4609      fi
4610     ac_cv_prog_BUILD_CXX="c++"
4611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4612     break 2
4613   fi
4614 done
4615 done
4616 IFS=$as_save_IFS
4617
4618 if test $ac_prog_rejected = yes; then
4619   # We found a bogon in the path, so make sure we never use it.
4620   set dummy $ac_cv_prog_BUILD_CXX
4621   shift
4622   if test $# != 0; then
4623     # We chose a different compiler from the bogus one.
4624     # However, it has the same basename, so the bogon will be chosen
4625     # first if we set BUILD_CXX to just the basename; use the full file name.
4626     shift
4627     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4628   fi
4629 fi
4630 fi
4631 fi
4632 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4633 if test -n "$BUILD_CXX"; then
4634   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4635 echo "${ECHO_T}$BUILD_CXX" >&6; }
4636 else
4637   { echo "$as_me:$LINENO: result: no" >&5
4638 echo "${ECHO_T}no" >&6; }
4639 fi
4640
4641
4642      fi
4643   fi
4644 else
4645   LLVM_CROSS_COMPILING=0
4646
4647 fi
4648
4649 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4650   cvsbuild="yes"
4651   optimize="no"
4652   CVSBUILD=CVSBUILD=1
4653
4654 else
4655   cvsbuild="no"
4656   optimize="yes"
4657 fi
4658
4659
4660 # Check whether --enable-optimized was given.
4661 if test "${enable_optimized+set}" = set; then
4662   enableval=$enable_optimized;
4663 else
4664   enableval=$optimize
4665 fi
4666
4667 if test ${enableval} = "no" ; then
4668   ENABLE_OPTIMIZED=
4669
4670 else
4671   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4672
4673 fi
4674
4675 # Check whether --enable-profiling was given.
4676 if test "${enable_profiling+set}" = set; then
4677   enableval=$enable_profiling;
4678 else
4679   enableval="no"
4680 fi
4681
4682 if test ${enableval} = "no" ; then
4683   ENABLE_PROFILING=
4684
4685 else
4686   ENABLE_PROFILING=ENABLE_PROFILING=1
4687
4688 fi
4689
4690 # Check whether --enable-assertions was given.
4691 if test "${enable_assertions+set}" = set; then
4692   enableval=$enable_assertions;
4693 else
4694   enableval="yes"
4695 fi
4696
4697 if test ${enableval} = "yes" ; then
4698   DISABLE_ASSERTIONS=
4699
4700 else
4701   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4702
4703 fi
4704
4705 # Check whether --enable-expensive-checks was given.
4706 if test "${enable_expensive_checks+set}" = set; then
4707   enableval=$enable_expensive_checks;
4708 else
4709   enableval="no"
4710 fi
4711
4712 if test ${enableval} = "yes" ; then
4713   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4714
4715   EXPENSIVE_CHECKS=yes
4716
4717 else
4718   ENABLE_EXPENSIVE_CHECKS=
4719
4720   EXPENSIVE_CHECKS=no
4721
4722 fi
4723
4724 # Check whether --enable-debug-runtime was given.
4725 if test "${enable_debug_runtime+set}" = set; then
4726   enableval=$enable_debug_runtime;
4727 else
4728   enableval=no
4729 fi
4730
4731 if test ${enableval} = "no" ; then
4732   DEBUG_RUNTIME=
4733
4734 else
4735   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4736
4737 fi
4738
4739 # Check whether --enable-debug-symbols was given.
4740 if test "${enable_debug_symbols+set}" = set; then
4741   enableval=$enable_debug_symbols;
4742 else
4743   enableval=no
4744 fi
4745
4746 if test ${enableval} = "no" ; then
4747   DEBUG_SYMBOLS=
4748
4749 else
4750   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4751
4752 fi
4753
4754 # Check whether --enable-jit was given.
4755 if test "${enable_jit+set}" = set; then
4756   enableval=$enable_jit;
4757 else
4758   enableval=default
4759 fi
4760
4761 if test ${enableval} = "no"
4762 then
4763   JIT=
4764
4765 else
4766   case "$llvm_cv_target_arch" in
4767     x86)         TARGET_HAS_JIT=1
4768  ;;
4769     Sparc)       TARGET_HAS_JIT=0
4770  ;;
4771     PowerPC)     TARGET_HAS_JIT=1
4772  ;;
4773     x86_64)      TARGET_HAS_JIT=1
4774  ;;
4775     Alpha)       TARGET_HAS_JIT=1
4776  ;;
4777     ARM)         TARGET_HAS_JIT=1
4778  ;;
4779     Mips)        TARGET_HAS_JIT=0
4780  ;;
4781     PIC16)       TARGET_HAS_JIT=0
4782  ;;
4783     XCore)       TARGET_HAS_JIT=0
4784  ;;
4785     MSP430)      TARGET_HAS_JIT=0
4786  ;;
4787     SystemZ)     TARGET_HAS_JIT=0
4788  ;;
4789     Blackfin)    TARGET_HAS_JIT=0
4790  ;;
4791     *)           TARGET_HAS_JIT=0
4792  ;;
4793   esac
4794 fi
4795
4796 # Check whether --enable-doxygen was given.
4797 if test "${enable_doxygen+set}" = set; then
4798   enableval=$enable_doxygen;
4799 else
4800   enableval=default
4801 fi
4802
4803 case "$enableval" in
4804   yes) ENABLE_DOXYGEN=1
4805  ;;
4806   no)  ENABLE_DOXYGEN=0
4807  ;;
4808   default) ENABLE_DOXYGEN=0
4809  ;;
4810   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4811 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4812    { (exit 1); exit 1; }; } ;;
4813 esac
4814
4815 # Check whether --enable-threads was given.
4816 if test "${enable_threads+set}" = set; then
4817   enableval=$enable_threads;
4818 else
4819   enableval=default
4820 fi
4821
4822 case "$enableval" in
4823   yes) ENABLE_THREADS=1
4824  ;;
4825   no)  ENABLE_THREADS=0
4826  ;;
4827   default) ENABLE_THREADS=1
4828  ;;
4829   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4830 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4831    { (exit 1); exit 1; }; } ;;
4832 esac
4833
4834 cat >>confdefs.h <<_ACEOF
4835 #define ENABLE_THREADS $ENABLE_THREADS
4836 _ACEOF
4837
4838
4839 # Check whether --enable-pic was given.
4840 if test "${enable_pic+set}" = set; then
4841   enableval=$enable_pic;
4842 else
4843   enableval=default
4844 fi
4845
4846 case "$enableval" in
4847   yes) ENABLE_PIC=1
4848  ;;
4849   no)  ENABLE_PIC=0
4850  ;;
4851   default) ENABLE_PIC=1
4852  ;;
4853   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4854 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4855    { (exit 1); exit 1; }; } ;;
4856 esac
4857
4858 cat >>confdefs.h <<_ACEOF
4859 #define ENABLE_PIC $ENABLE_PIC
4860 _ACEOF
4861
4862
4863 # Check whether --enable-shared was given.
4864 if test "${enable_shared+set}" = set; then
4865   enableval=$enable_shared;
4866 else
4867   enableval=default
4868 fi
4869
4870 case "$enableval" in
4871   yes) ENABLE_SHARED=1
4872  ;;
4873   no)  ENABLE_SHARED=0
4874  ;;
4875   default) ENABLE_SHARED=0
4876  ;;
4877   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4878 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4879    { (exit 1); exit 1; }; } ;;
4880 esac
4881
4882 TARGETS_TO_BUILD=""
4883 # Check whether --enable-targets was given.
4884 if test "${enable_targets+set}" = set; then
4885   enableval=$enable_targets;
4886 else
4887   enableval=all
4888 fi
4889
4890 if test "$enableval" = host-only ; then
4891   enableval=host
4892 fi
4893 case "$enableval" in
4894   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
4895   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4896       case "$a_target" in
4897         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4898         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4899         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4900         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4901         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4902         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4903         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4904         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4905         pic16)    TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4906         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4907         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4908         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4909         blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4910         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4911         msil)     TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4912         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4913         host) case "$llvm_cv_target_arch" in
4914             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4915             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4916             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4917             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4918             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4919             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4920             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4921             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4922             PIC16)       TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4923             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4924             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4925             s390x)       TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4926             Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4927             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4928 echo "$as_me: error: Can not set target to build" >&2;}
4929    { (exit 1); exit 1; }; } ;;
4930           esac ;;
4931         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4932 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4933    { (exit 1); exit 1; }; } ;;
4934       esac
4935   done
4936   ;;
4937 esac
4938 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4939
4940
4941 # Determine whether we are building LLVM support for the native architecture.
4942 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4943 for a_target in $TARGETS_TO_BUILD; do
4944   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4945     LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4946
4947 cat >>confdefs.h <<_ACEOF
4948 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4949 _ACEOF
4950
4951   fi
4952 done
4953
4954 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4955 # target feature def files.
4956 LLVM_ENUM_TARGETS=""
4957 LLVM_ENUM_ASM_PRINTERS=""
4958 LLVM_ENUM_ASM_PARSERS=""
4959 LLVM_ENUM_DISASSEMBLERS=""
4960 for target_to_build in $TARGETS_TO_BUILD; do
4961   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4962   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4963     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4964   fi
4965   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
4966     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
4967   fi
4968   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
4969     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
4970   fi
4971 done
4972
4973
4974
4975
4976
4977 # Check whether --enable-cbe-printf-a was given.
4978 if test "${enable_cbe_printf_a+set}" = set; then
4979   enableval=$enable_cbe_printf_a;
4980 else
4981   enableval=default
4982 fi
4983
4984 case "$enableval" in
4985   yes) ENABLE_CBE_PRINTF_A=1
4986  ;;
4987   no)  ENABLE_CBE_PRINTF_A=0
4988  ;;
4989   default)  ENABLE_CBE_PRINTF_A=1
4990  ;;
4991   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4992 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4993    { (exit 1); exit 1; }; } ;;
4994 esac
4995
4996 cat >>confdefs.h <<_ACEOF
4997 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4998 _ACEOF
4999
5000
5001
5002 # Check whether --with-llvmgccdir was given.
5003 if test "${with_llvmgccdir+set}" = set; then
5004   withval=$with_llvmgccdir;
5005 else
5006   withval=default
5007 fi
5008
5009 case "$withval" in
5010   default) WITH_LLVMGCCDIR=default ;;
5011   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5012   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5013 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5014    { (exit 1); exit 1; }; } ;;
5015 esac
5016
5017
5018 # Check whether --with-llvmgcc was given.
5019 if test "${with_llvmgcc+set}" = set; then
5020   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5021       WITH_LLVMGCCDIR=""
5022 fi
5023
5024
5025
5026 # Check whether --with-llvmgxx was given.
5027 if test "${with_llvmgxx+set}" = set; then
5028   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5029     WITH_LLVMGCCDIR=""
5030 fi
5031
5032
5033 if test -n "$LLVMGCC"; then
5034    LLVMGCCCOMMAND="$LLVMGCC"
5035 fi
5036
5037 if test -n "$LLVMGXX"; then
5038    LLVMGXXCOMMAND="$LLVMGXX"
5039 fi
5040
5041 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5042    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5043 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5044    { (exit 1); exit 1; }; };
5045 fi
5046
5047 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5048    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5049 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5050    { (exit 1); exit 1; }; };
5051 fi
5052
5053
5054 # Check whether --with-optimize-option was given.
5055 if test "${with_optimize_option+set}" = set; then
5056   withval=$with_optimize_option;
5057 else
5058   withval=default
5059 fi
5060
5061 { echo "$as_me:$LINENO: checking optimization flags" >&5
5062 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5063 case "$withval" in
5064   default)
5065     case "$llvm_cv_os_type" in
5066     MingW) optimize_option=-O3 ;;
5067     *)     optimize_option=-O2 ;;
5068     esac ;;
5069   *) optimize_option="$withval" ;;
5070 esac
5071 OPTIMIZE_OPTION=$optimize_option
5072
5073 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5074 echo "${ECHO_T}$optimize_option" >&6; }
5075
5076
5077 # Check whether --with-extra-options was given.
5078 if test "${with_extra_options+set}" = set; then
5079   withval=$with_extra_options;
5080 else
5081   withval=default
5082 fi
5083
5084 case "$withval" in
5085   default) EXTRA_OPTIONS= ;;
5086   *) EXTRA_OPTIONS=$withval ;;
5087 esac
5088 EXTRA_OPTIONS=$EXTRA_OPTIONS
5089
5090
5091 # Check whether --enable-bindings was given.
5092 if test "${enable_bindings+set}" = set; then
5093   enableval=$enable_bindings;
5094 else
5095   enableval=default
5096 fi
5097
5098 BINDINGS_TO_BUILD=""
5099 case "$enableval" in
5100   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5101   all ) BINDINGS_TO_BUILD="ocaml" ;;
5102   none | no) BINDINGS_TO_BUILD="" ;;
5103   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5104       case "$a_binding" in
5105         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5106         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5107 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5108    { (exit 1); exit 1; }; } ;;
5109       esac
5110   done
5111   ;;
5112 esac
5113
5114
5115 # Check whether --with-ocaml-libdir was given.
5116 if test "${with_ocaml_libdir+set}" = set; then
5117   withval=$with_ocaml_libdir;
5118 else
5119   withval=auto
5120 fi
5121
5122 case "$withval" in
5123   auto) with_ocaml_libdir="$withval" ;;
5124   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5125   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5126 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5127    { (exit 1); exit 1; }; } ;;
5128 esac
5129
5130
5131 # Check whether --with-c-include-dirs was given.
5132 if test "${with_c_include_dirs+set}" = set; then
5133   withval=$with_c_include_dirs;
5134 else
5135   withval=""
5136 fi
5137
5138
5139 cat >>confdefs.h <<_ACEOF
5140 #define C_INCLUDE_DIRS "$withval"
5141 _ACEOF
5142
5143
5144
5145 # Check whether --with-cxx-include-root was given.
5146 if test "${with_cxx_include_root+set}" = set; then
5147   withval=$with_cxx_include_root;
5148 else
5149   withval=""
5150 fi
5151
5152
5153 cat >>confdefs.h <<_ACEOF
5154 #define CXX_INCLUDE_ROOT "$withval"
5155 _ACEOF
5156
5157
5158
5159 # Check whether --with-cxx-include-arch was given.
5160 if test "${with_cxx_include_arch+set}" = set; then
5161   withval=$with_cxx_include_arch;
5162 else
5163   withval=""
5164 fi
5165
5166
5167 cat >>confdefs.h <<_ACEOF
5168 #define CXX_INCLUDE_ARCH "$withval"
5169 _ACEOF
5170
5171
5172
5173 # Check whether --with-cxx-include-32bit-dir was given.
5174 if test "${with_cxx_include_32bit_dir+set}" = set; then
5175   withval=$with_cxx_include_32bit_dir;
5176 else
5177   withval=""
5178 fi
5179
5180
5181 cat >>confdefs.h <<_ACEOF
5182 #define CXX_INCLUDE_32BIT_DIR "$withval"
5183 _ACEOF
5184
5185
5186
5187 # Check whether --with-cxx-include-64bit-dir was given.
5188 if test "${with_cxx_include_64bit_dir+set}" = set; then
5189   withval=$with_cxx_include_64bit_dir;
5190 else
5191   withval=""
5192 fi
5193
5194
5195 cat >>confdefs.h <<_ACEOF
5196 #define CXX_INCLUDE_64BIT_DIR "$withval"
5197 _ACEOF
5198
5199
5200
5201 # Check whether --with-binutils-include was given.
5202 if test "${with_binutils_include+set}" = set; then
5203   withval=$with_binutils_include;
5204 else
5205   withval=default
5206 fi
5207
5208 case "$withval" in
5209   default) WITH_BINUTILS_INCDIR=default ;;
5210   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5211   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5212 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5213    { (exit 1); exit 1; }; } ;;
5214 esac
5215 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5216   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5217
5218   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5219      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5220      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5221 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5222    { (exit 1); exit 1; }; };
5223   fi
5224 fi
5225
5226 # Check whether --enable-libffi was given.
5227 if test "${enable_libffi+set}" = set; then
5228   enableval=$enable_libffi; case "$enableval" in
5229     yes) llvm_cv_enable_libffi="yes" ;;
5230     no)  llvm_cv_enable_libffi="no"  ;;
5231     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5232 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5233    { (exit 1); exit 1; }; } ;;
5234   esac
5235 else
5236   llvm_cv_enable_libffi=no
5237 fi
5238
5239
5240 if test "$llvm_cv_os_type" = "Win32" ; then
5241    llvmc_dynamic="yes"
5242 else
5243    llvmc_dynamic="no"
5244 fi
5245
5246 # Check whether --enable-llvmc-dynamic was given.
5247 if test "${enable_llvmc_dynamic+set}" = set; then
5248   enableval=$enable_llvmc_dynamic;
5249 else
5250   enableval=$llvmc_dynamic
5251 fi
5252
5253 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5254    ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5255
5256 else
5257    ENABLE_LLVMC_DYNAMIC=
5258
5259 fi
5260
5261 # Check whether --enable-llvmc-dynamic-plugins was given.
5262 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5263   enableval=$enable_llvmc_dynamic_plugins;
5264 else
5265   enableval=yes
5266 fi
5267
5268 if test ${enableval} = "yes" ; then
5269    ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5270
5271 else
5272    ENABLE_LLVMC_DYNAMIC_PLUGINS=
5273
5274 fi
5275
5276
5277 ac_ext=c
5278 ac_cpp='$CPP $CPPFLAGS'
5279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5282 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5283 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5284 # On Suns, sometimes $CPP names a directory.
5285 if test -n "$CPP" && test -d "$CPP"; then
5286   CPP=
5287 fi
5288 if test -z "$CPP"; then
5289   if test "${ac_cv_prog_CPP+set}" = set; then
5290   echo $ECHO_N "(cached) $ECHO_C" >&6
5291 else
5292       # Double quotes because CPP needs to be expanded
5293     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5294     do
5295       ac_preproc_ok=false
5296 for ac_c_preproc_warn_flag in '' yes
5297 do
5298   # Use a header file that comes with gcc, so configuring glibc
5299   # with a fresh cross-compiler works.
5300   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5301   # <limits.h> exists even on freestanding compilers.
5302   # On the NeXT, cc -E runs the code through the compiler's parser,
5303   # not just through cpp. "Syntax error" is here to catch this case.
5304   cat >conftest.$ac_ext <<_ACEOF
5305 /* confdefs.h.  */
5306 _ACEOF
5307 cat confdefs.h >>conftest.$ac_ext
5308 cat >>conftest.$ac_ext <<_ACEOF
5309 /* end confdefs.h.  */
5310 #ifdef __STDC__
5311 # include <limits.h>
5312 #else
5313 # include <assert.h>
5314 #endif
5315                      Syntax error
5316 _ACEOF
5317 if { (ac_try="$ac_cpp conftest.$ac_ext"
5318 case "(($ac_try" in
5319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5320   *) ac_try_echo=$ac_try;;
5321 esac
5322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5323   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5324   ac_status=$?
5325   grep -v '^ *+' conftest.er1 >conftest.err
5326   rm -f conftest.er1
5327   cat conftest.err >&5
5328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329   (exit $ac_status); } >/dev/null; then
5330   if test -s conftest.err; then
5331     ac_cpp_err=$ac_c_preproc_warn_flag
5332     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5333   else
5334     ac_cpp_err=
5335   fi
5336 else
5337   ac_cpp_err=yes
5338 fi
5339 if test -z "$ac_cpp_err"; then
5340   :
5341 else
5342   echo "$as_me: failed program was:" >&5
5343 sed 's/^/| /' conftest.$ac_ext >&5
5344
5345   # Broken: fails on valid input.
5346 continue
5347 fi
5348
5349 rm -f conftest.err conftest.$ac_ext
5350
5351   # OK, works on sane cases.  Now check whether nonexistent headers
5352   # can be detected and how.
5353   cat >conftest.$ac_ext <<_ACEOF
5354 /* confdefs.h.  */
5355 _ACEOF
5356 cat confdefs.h >>conftest.$ac_ext
5357 cat >>conftest.$ac_ext <<_ACEOF
5358 /* end confdefs.h.  */
5359 #include <ac_nonexistent.h>
5360 _ACEOF
5361 if { (ac_try="$ac_cpp conftest.$ac_ext"
5362 case "(($ac_try" in
5363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5364   *) ac_try_echo=$ac_try;;
5365 esac
5366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5367   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5368   ac_status=$?
5369   grep -v '^ *+' conftest.er1 >conftest.err
5370   rm -f conftest.er1
5371   cat conftest.err >&5
5372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373   (exit $ac_status); } >/dev/null; then
5374   if test -s conftest.err; then
5375     ac_cpp_err=$ac_c_preproc_warn_flag
5376     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5377   else
5378     ac_cpp_err=
5379   fi
5380 else
5381   ac_cpp_err=yes
5382 fi
5383 if test -z "$ac_cpp_err"; then
5384   # Broken: success on invalid input.
5385 continue
5386 else
5387   echo "$as_me: failed program was:" >&5
5388 sed 's/^/| /' conftest.$ac_ext >&5
5389
5390   # Passes both tests.
5391 ac_preproc_ok=:
5392 break
5393 fi
5394
5395 rm -f conftest.err conftest.$ac_ext
5396
5397 done
5398 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5399 rm -f conftest.err conftest.$ac_ext
5400 if $ac_preproc_ok; then
5401   break
5402 fi
5403
5404     done
5405     ac_cv_prog_CPP=$CPP
5406
5407 fi
5408   CPP=$ac_cv_prog_CPP
5409 else
5410   ac_cv_prog_CPP=$CPP
5411 fi
5412 { echo "$as_me:$LINENO: result: $CPP" >&5
5413 echo "${ECHO_T}$CPP" >&6; }
5414 ac_preproc_ok=false
5415 for ac_c_preproc_warn_flag in '' yes
5416 do
5417   # Use a header file that comes with gcc, so configuring glibc
5418   # with a fresh cross-compiler works.
5419   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5420   # <limits.h> exists even on freestanding compilers.
5421   # On the NeXT, cc -E runs the code through the compiler's parser,
5422   # not just through cpp. "Syntax error" is here to catch this case.
5423   cat >conftest.$ac_ext <<_ACEOF
5424 /* confdefs.h.  */
5425 _ACEOF
5426 cat confdefs.h >>conftest.$ac_ext
5427 cat >>conftest.$ac_ext <<_ACEOF
5428 /* end confdefs.h.  */
5429 #ifdef __STDC__
5430 # include <limits.h>
5431 #else
5432 # include <assert.h>
5433 #endif
5434                      Syntax error
5435 _ACEOF
5436 if { (ac_try="$ac_cpp conftest.$ac_ext"
5437 case "(($ac_try" in
5438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5439   *) ac_try_echo=$ac_try;;
5440 esac
5441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5442   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5443   ac_status=$?
5444   grep -v '^ *+' conftest.er1 >conftest.err
5445   rm -f conftest.er1
5446   cat conftest.err >&5
5447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448   (exit $ac_status); } >/dev/null; then
5449   if test -s conftest.err; then
5450     ac_cpp_err=$ac_c_preproc_warn_flag
5451     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5452   else
5453     ac_cpp_err=
5454   fi
5455 else
5456   ac_cpp_err=yes
5457 fi
5458 if test -z "$ac_cpp_err"; then
5459   :
5460 else
5461   echo "$as_me: failed program was:" >&5
5462 sed 's/^/| /' conftest.$ac_ext >&5
5463
5464   # Broken: fails on valid input.
5465 continue
5466 fi
5467
5468 rm -f conftest.err conftest.$ac_ext
5469
5470   # OK, works on sane cases.  Now check whether nonexistent headers
5471   # can be detected and how.
5472   cat >conftest.$ac_ext <<_ACEOF
5473 /* confdefs.h.  */
5474 _ACEOF
5475 cat confdefs.h >>conftest.$ac_ext
5476 cat >>conftest.$ac_ext <<_ACEOF
5477 /* end confdefs.h.  */
5478 #include <ac_nonexistent.h>
5479 _ACEOF
5480 if { (ac_try="$ac_cpp conftest.$ac_ext"
5481 case "(($ac_try" in
5482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5483   *) ac_try_echo=$ac_try;;
5484 esac
5485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5486   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5487   ac_status=$?
5488   grep -v '^ *+' conftest.er1 >conftest.err
5489   rm -f conftest.er1
5490   cat conftest.err >&5
5491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492   (exit $ac_status); } >/dev/null; then
5493   if test -s conftest.err; then
5494     ac_cpp_err=$ac_c_preproc_warn_flag
5495     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5496   else
5497     ac_cpp_err=
5498   fi
5499 else
5500   ac_cpp_err=yes
5501 fi
5502 if test -z "$ac_cpp_err"; then
5503   # Broken: success on invalid input.
5504 continue
5505 else
5506   echo "$as_me: failed program was:" >&5
5507 sed 's/^/| /' conftest.$ac_ext >&5
5508
5509   # Passes both tests.
5510 ac_preproc_ok=:
5511 break
5512 fi
5513
5514 rm -f conftest.err conftest.$ac_ext
5515
5516 done
5517 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5518 rm -f conftest.err conftest.$ac_ext
5519 if $ac_preproc_ok; then
5520   :
5521 else
5522   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5523 See \`config.log' for more details." >&5
5524 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5525 See \`config.log' for more details." >&2;}
5526    { (exit 1); exit 1; }; }
5527 fi
5528
5529 ac_ext=c
5530 ac_cpp='$CPP $CPPFLAGS'
5531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5534
5535 ac_ext=c
5536 ac_cpp='$CPP $CPPFLAGS'
5537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5540 if test -n "$ac_tool_prefix"; then
5541   for ac_prog in gcc
5542   do
5543     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5544 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5547 if test "${ac_cv_prog_CC+set}" = set; then
5548   echo $ECHO_N "(cached) $ECHO_C" >&6
5549 else
5550   if test -n "$CC"; then
5551   ac_cv_prog_CC="$CC" # Let the user override the test.
5552 else
5553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554 for as_dir in $PATH
5555 do
5556   IFS=$as_save_IFS
5557   test -z "$as_dir" && as_dir=.
5558   for ac_exec_ext in '' $ac_executable_extensions; do
5559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5560     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5561     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5562     break 2
5563   fi
5564 done
5565 done
5566 IFS=$as_save_IFS
5567
5568 fi
5569 fi
5570 CC=$ac_cv_prog_CC
5571 if test -n "$CC"; then
5572   { echo "$as_me:$LINENO: result: $CC" >&5
5573 echo "${ECHO_T}$CC" >&6; }
5574 else
5575   { echo "$as_me:$LINENO: result: no" >&5
5576 echo "${ECHO_T}no" >&6; }
5577 fi
5578
5579
5580     test -n "$CC" && break
5581   done
5582 fi
5583 if test -z "$CC"; then
5584   ac_ct_CC=$CC
5585   for ac_prog in gcc
5586 do
5587   # Extract the first word of "$ac_prog", so it can be a program name with args.
5588 set dummy $ac_prog; ac_word=$2
5589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5591 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5592   echo $ECHO_N "(cached) $ECHO_C" >&6
5593 else
5594   if test -n "$ac_ct_CC"; then
5595   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5596 else
5597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5598 for as_dir in $PATH
5599 do
5600   IFS=$as_save_IFS
5601   test -z "$as_dir" && as_dir=.
5602   for ac_exec_ext in '' $ac_executable_extensions; do
5603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5604     ac_cv_prog_ac_ct_CC="$ac_prog"
5605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5606     break 2
5607   fi
5608 done
5609 done
5610 IFS=$as_save_IFS
5611
5612 fi
5613 fi
5614 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5615 if test -n "$ac_ct_CC"; then
5616   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5617 echo "${ECHO_T}$ac_ct_CC" >&6; }
5618 else
5619   { echo "$as_me:$LINENO: result: no" >&5
5620 echo "${ECHO_T}no" >&6; }
5621 fi
5622
5623
5624   test -n "$ac_ct_CC" && break
5625 done
5626
5627   if test "x$ac_ct_CC" = x; then
5628     CC=""
5629   else
5630     case $cross_compiling:$ac_tool_warned in
5631 yes:)
5632 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5633 whose name does not start with the host triplet.  If you think this
5634 configuration is useful to you, please write to autoconf@gnu.org." >&5
5635 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5636 whose name does not start with the host triplet.  If you think this
5637 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5638 ac_tool_warned=yes ;;
5639 esac
5640     CC=$ac_ct_CC
5641   fi
5642 fi
5643
5644
5645 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5646 See \`config.log' for more details." >&5
5647 echo "$as_me: error: no acceptable C compiler found in \$PATH
5648 See \`config.log' for more details." >&2;}
5649    { (exit 1); exit 1; }; }
5650
5651 # Provide some information about the compiler.
5652 echo "$as_me:$LINENO: checking for C compiler version" >&5
5653 ac_compiler=`set X $ac_compile; echo $2`
5654 { (ac_try="$ac_compiler --version >&5"
5655 case "(($ac_try" in
5656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5657   *) ac_try_echo=$ac_try;;
5658 esac
5659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5660   (eval "$ac_compiler --version >&5") 2>&5
5661   ac_status=$?
5662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663   (exit $ac_status); }
5664 { (ac_try="$ac_compiler -v >&5"
5665 case "(($ac_try" in
5666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5667   *) ac_try_echo=$ac_try;;
5668 esac
5669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5670   (eval "$ac_compiler -v >&5") 2>&5
5671   ac_status=$?
5672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673   (exit $ac_status); }
5674 { (ac_try="$ac_compiler -V >&5"
5675 case "(($ac_try" in
5676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5677   *) ac_try_echo=$ac_try;;
5678 esac
5679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5680   (eval "$ac_compiler -V >&5") 2>&5
5681   ac_status=$?
5682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683   (exit $ac_status); }
5684
5685 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5686 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5687 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5688   echo $ECHO_N "(cached) $ECHO_C" >&6
5689 else
5690   cat >conftest.$ac_ext <<_ACEOF
5691 /* confdefs.h.  */
5692 _ACEOF
5693 cat confdefs.h >>conftest.$ac_ext
5694 cat >>conftest.$ac_ext <<_ACEOF
5695 /* end confdefs.h.  */
5696
5697 int
5698 main ()
5699 {
5700 #ifndef __GNUC__
5701        choke me
5702 #endif
5703
5704   ;
5705   return 0;
5706 }
5707 _ACEOF
5708 rm -f conftest.$ac_objext
5709 if { (ac_try="$ac_compile"
5710 case "(($ac_try" in
5711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5712   *) ac_try_echo=$ac_try;;
5713 esac
5714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5715   (eval "$ac_compile") 2>conftest.er1
5716   ac_status=$?
5717   grep -v '^ *+' conftest.er1 >conftest.err
5718   rm -f conftest.er1
5719   cat conftest.err >&5
5720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721   (exit $ac_status); } &&
5722          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5723   { (case "(($ac_try" in
5724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5725   *) ac_try_echo=$ac_try;;
5726 esac
5727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5728   (eval "$ac_try") 2>&5
5729   ac_status=$?
5730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731   (exit $ac_status); }; } &&
5732          { ac_try='test -s conftest.$ac_objext'
5733   { (case "(($ac_try" in
5734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5735   *) ac_try_echo=$ac_try;;
5736 esac
5737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5738   (eval "$ac_try") 2>&5
5739   ac_status=$?
5740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741   (exit $ac_status); }; }; then
5742   ac_compiler_gnu=yes
5743 else
5744   echo "$as_me: failed program was:" >&5
5745 sed 's/^/| /' conftest.$ac_ext >&5
5746
5747         ac_compiler_gnu=no
5748 fi
5749
5750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5751 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5752
5753 fi
5754 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5755 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5756 GCC=`test $ac_compiler_gnu = yes && echo yes`
5757 ac_test_CFLAGS=${CFLAGS+set}
5758 ac_save_CFLAGS=$CFLAGS
5759 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5760 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5761 if test "${ac_cv_prog_cc_g+set}" = set; then
5762   echo $ECHO_N "(cached) $ECHO_C" >&6
5763 else
5764   ac_save_c_werror_flag=$ac_c_werror_flag
5765    ac_c_werror_flag=yes
5766    ac_cv_prog_cc_g=no
5767    CFLAGS="-g"
5768    cat >conftest.$ac_ext <<_ACEOF
5769 /* confdefs.h.  */
5770 _ACEOF
5771 cat confdefs.h >>conftest.$ac_ext
5772 cat >>conftest.$ac_ext <<_ACEOF
5773 /* end confdefs.h.  */
5774
5775 int
5776 main ()
5777 {
5778
5779   ;
5780   return 0;
5781 }
5782 _ACEOF
5783 rm -f conftest.$ac_objext
5784 if { (ac_try="$ac_compile"
5785 case "(($ac_try" in
5786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5787   *) ac_try_echo=$ac_try;;
5788 esac
5789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5790   (eval "$ac_compile") 2>conftest.er1
5791   ac_status=$?
5792   grep -v '^ *+' conftest.er1 >conftest.err
5793   rm -f conftest.er1
5794   cat conftest.err >&5
5795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796   (exit $ac_status); } &&
5797          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5798   { (case "(($ac_try" in
5799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5800   *) ac_try_echo=$ac_try;;
5801 esac
5802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5803   (eval "$ac_try") 2>&5
5804   ac_status=$?
5805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806   (exit $ac_status); }; } &&
5807          { ac_try='test -s conftest.$ac_objext'
5808   { (case "(($ac_try" in
5809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810   *) ac_try_echo=$ac_try;;
5811 esac
5812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813   (eval "$ac_try") 2>&5
5814   ac_status=$?
5815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816   (exit $ac_status); }; }; then
5817   ac_cv_prog_cc_g=yes
5818 else
5819   echo "$as_me: failed program was:" >&5
5820 sed 's/^/| /' conftest.$ac_ext >&5
5821
5822         CFLAGS=""
5823       cat >conftest.$ac_ext <<_ACEOF
5824 /* confdefs.h.  */
5825 _ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h.  */
5829
5830 int
5831 main ()
5832 {
5833
5834   ;
5835   return 0;
5836 }
5837 _ACEOF
5838 rm -f conftest.$ac_objext
5839 if { (ac_try="$ac_compile"
5840 case "(($ac_try" in
5841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5842   *) ac_try_echo=$ac_try;;
5843 esac
5844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5845   (eval "$ac_compile") 2>conftest.er1
5846   ac_status=$?
5847   grep -v '^ *+' conftest.er1 >conftest.err
5848   rm -f conftest.er1
5849   cat conftest.err >&5
5850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851   (exit $ac_status); } &&
5852          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5853   { (case "(($ac_try" in
5854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5855   *) ac_try_echo=$ac_try;;
5856 esac
5857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5858   (eval "$ac_try") 2>&5
5859   ac_status=$?
5860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861   (exit $ac_status); }; } &&
5862          { ac_try='test -s conftest.$ac_objext'
5863   { (case "(($ac_try" in
5864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5865   *) ac_try_echo=$ac_try;;
5866 esac
5867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5868   (eval "$ac_try") 2>&5
5869   ac_status=$?
5870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871   (exit $ac_status); }; }; then
5872   :
5873 else
5874   echo "$as_me: failed program was:" >&5
5875 sed 's/^/| /' conftest.$ac_ext >&5
5876
5877         ac_c_werror_flag=$ac_save_c_werror_flag
5878          CFLAGS="-g"
5879          cat >conftest.$ac_ext <<_ACEOF
5880 /* confdefs.h.  */
5881 _ACEOF
5882 cat confdefs.h >>conftest.$ac_ext
5883 cat >>conftest.$ac_ext <<_ACEOF
5884 /* end confdefs.h.  */
5885
5886 int
5887 main ()
5888 {
5889
5890   ;
5891   return 0;
5892 }
5893 _ACEOF
5894 rm -f conftest.$ac_objext
5895 if { (ac_try="$ac_compile"
5896 case "(($ac_try" in
5897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5898   *) ac_try_echo=$ac_try;;
5899 esac
5900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5901   (eval "$ac_compile") 2>conftest.er1
5902   ac_status=$?
5903   grep -v '^ *+' conftest.er1 >conftest.err
5904   rm -f conftest.er1
5905   cat conftest.err >&5
5906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907   (exit $ac_status); } &&
5908          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5909   { (case "(($ac_try" in
5910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5911   *) ac_try_echo=$ac_try;;
5912 esac
5913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5914   (eval "$ac_try") 2>&5
5915   ac_status=$?
5916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917   (exit $ac_status); }; } &&
5918          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5928   ac_cv_prog_cc_g=yes
5929 else
5930   echo "$as_me: failed program was:" >&5
5931 sed 's/^/| /' conftest.$ac_ext >&5
5932
5933
5934 fi
5935
5936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5937 fi
5938
5939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5940 fi
5941
5942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5943    ac_c_werror_flag=$ac_save_c_werror_flag
5944 fi
5945 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5946 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5947 if test "$ac_test_CFLAGS" = set; then
5948   CFLAGS=$ac_save_CFLAGS
5949 elif test $ac_cv_prog_cc_g = yes; then
5950   if test "$GCC" = yes; then
5951     CFLAGS="-g -O2"
5952   else
5953     CFLAGS="-g"
5954   fi
5955 else
5956   if test "$GCC" = yes; then
5957     CFLAGS="-O2"
5958   else
5959     CFLAGS=
5960   fi
5961 fi
5962 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5963 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5964 if test "${ac_cv_prog_cc_c89+set}" = set; then
5965   echo $ECHO_N "(cached) $ECHO_C" >&6
5966 else
5967   ac_cv_prog_cc_c89=no
5968 ac_save_CC=$CC
5969 cat >conftest.$ac_ext <<_ACEOF
5970 /* confdefs.h.  */
5971 _ACEOF
5972 cat confdefs.h >>conftest.$ac_ext
5973 cat >>conftest.$ac_ext <<_ACEOF
5974 /* end confdefs.h.  */
5975 #include <stdarg.h>
5976 #include <stdio.h>
5977 #include <sys/types.h>
5978 #include <sys/stat.h>
5979 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5980 struct buf { int x; };
5981 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5982 static char *e (p, i)
5983      char **p;
5984      int i;
5985 {
5986   return p[i];
5987 }
5988 static char *f (char * (*g) (char **, int), char **p, ...)
5989 {
5990   char *s;
5991   va_list v;
5992   va_start (v,p);
5993   s = g (p, va_arg (v,int));
5994   va_end (v);
5995   return s;
5996 }
5997
5998 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5999    function prototypes and stuff, but not '\xHH' hex character constants.
6000    These don't provoke an error unfortunately, instead are silently treated
6001    as 'x'.  The following induces an error, until -std is added to get
6002    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6003    array size at least.  It's necessary to write '\x00'==0 to get something
6004    that's true only with -std.  */
6005 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6006
6007 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6008    inside strings and character constants.  */
6009 #define FOO(x) 'x'
6010 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6011
6012 int test (int i, double x);
6013 struct s1 {int (*f) (int a);};
6014 struct s2 {int (*f) (double a);};
6015 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6016 int argc;
6017 char **argv;
6018 int
6019 main ()
6020 {
6021 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6022   ;
6023   return 0;
6024 }
6025 _ACEOF
6026 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6027         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6028 do
6029   CC="$ac_save_CC $ac_arg"
6030   rm -f conftest.$ac_objext
6031 if { (ac_try="$ac_compile"
6032 case "(($ac_try" in
6033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6034   *) ac_try_echo=$ac_try;;
6035 esac
6036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6037   (eval "$ac_compile") 2>conftest.er1
6038   ac_status=$?
6039   grep -v '^ *+' conftest.er1 >conftest.err
6040   rm -f conftest.er1
6041   cat conftest.err >&5
6042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043   (exit $ac_status); } &&
6044          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6045   { (case "(($ac_try" in
6046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6047   *) ac_try_echo=$ac_try;;
6048 esac
6049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6050   (eval "$ac_try") 2>&5
6051   ac_status=$?
6052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053   (exit $ac_status); }; } &&
6054          { ac_try='test -s conftest.$ac_objext'
6055   { (case "(($ac_try" in
6056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6057   *) ac_try_echo=$ac_try;;
6058 esac
6059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6060   (eval "$ac_try") 2>&5
6061   ac_status=$?
6062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063   (exit $ac_status); }; }; then
6064   ac_cv_prog_cc_c89=$ac_arg
6065 else
6066   echo "$as_me: failed program was:" >&5
6067 sed 's/^/| /' conftest.$ac_ext >&5
6068
6069
6070 fi
6071
6072 rm -f core conftest.err conftest.$ac_objext
6073   test "x$ac_cv_prog_cc_c89" != "xno" && break
6074 done
6075 rm -f conftest.$ac_ext
6076 CC=$ac_save_CC
6077
6078 fi
6079 # AC_CACHE_VAL
6080 case "x$ac_cv_prog_cc_c89" in
6081   x)
6082     { echo "$as_me:$LINENO: result: none needed" >&5
6083 echo "${ECHO_T}none needed" >&6; } ;;
6084   xno)
6085     { echo "$as_me:$LINENO: result: unsupported" >&5
6086 echo "${ECHO_T}unsupported" >&6; } ;;
6087   *)
6088     CC="$CC $ac_cv_prog_cc_c89"
6089     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6090 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6091 esac
6092
6093
6094 ac_ext=c
6095 ac_cpp='$CPP $CPPFLAGS'
6096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6099
6100 ac_ext=cpp
6101 ac_cpp='$CXXCPP $CPPFLAGS'
6102 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6103 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6104 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6105 if test -z "$CXX"; then
6106   if test -n "$CCC"; then
6107     CXX=$CCC
6108   else
6109     if test -n "$ac_tool_prefix"; then
6110   for ac_prog in g++
6111   do
6112     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6113 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6116 if test "${ac_cv_prog_CXX+set}" = set; then
6117   echo $ECHO_N "(cached) $ECHO_C" >&6
6118 else
6119   if test -n "$CXX"; then
6120   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6121 else
6122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123 for as_dir in $PATH
6124 do
6125   IFS=$as_save_IFS
6126   test -z "$as_dir" && as_dir=.
6127   for ac_exec_ext in '' $ac_executable_extensions; do
6128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6129     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6130     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6131     break 2
6132   fi
6133 done
6134 done
6135 IFS=$as_save_IFS
6136
6137 fi
6138 fi
6139 CXX=$ac_cv_prog_CXX
6140 if test -n "$CXX"; then
6141   { echo "$as_me:$LINENO: result: $CXX" >&5
6142 echo "${ECHO_T}$CXX" >&6; }
6143 else
6144   { echo "$as_me:$LINENO: result: no" >&5
6145 echo "${ECHO_T}no" >&6; }
6146 fi
6147
6148
6149     test -n "$CXX" && break
6150   done
6151 fi
6152 if test -z "$CXX"; then
6153   ac_ct_CXX=$CXX
6154   for ac_prog in g++
6155 do
6156   # Extract the first word of "$ac_prog", so it can be a program name with args.
6157 set dummy $ac_prog; ac_word=$2
6158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6160 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6161   echo $ECHO_N "(cached) $ECHO_C" >&6
6162 else
6163   if test -n "$ac_ct_CXX"; then
6164   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6165 else
6166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6167 for as_dir in $PATH
6168 do
6169   IFS=$as_save_IFS
6170   test -z "$as_dir" && as_dir=.
6171   for ac_exec_ext in '' $ac_executable_extensions; do
6172   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6173     ac_cv_prog_ac_ct_CXX="$ac_prog"
6174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6175     break 2
6176   fi
6177 done
6178 done
6179 IFS=$as_save_IFS
6180
6181 fi
6182 fi
6183 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6184 if test -n "$ac_ct_CXX"; then
6185   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6186 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6187 else
6188   { echo "$as_me:$LINENO: result: no" >&5
6189 echo "${ECHO_T}no" >&6; }
6190 fi
6191
6192
6193   test -n "$ac_ct_CXX" && break
6194 done
6195
6196   if test "x$ac_ct_CXX" = x; then
6197     CXX="g++"
6198   else
6199     case $cross_compiling:$ac_tool_warned in
6200 yes:)
6201 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6202 whose name does not start with the host triplet.  If you think this
6203 configuration is useful to you, please write to autoconf@gnu.org." >&5
6204 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6205 whose name does not start with the host triplet.  If you think this
6206 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6207 ac_tool_warned=yes ;;
6208 esac
6209     CXX=$ac_ct_CXX
6210   fi
6211 fi
6212
6213   fi
6214 fi
6215 # Provide some information about the compiler.
6216 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6217 ac_compiler=`set X $ac_compile; echo $2`
6218 { (ac_try="$ac_compiler --version >&5"
6219 case "(($ac_try" in
6220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6221   *) ac_try_echo=$ac_try;;
6222 esac
6223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6224   (eval "$ac_compiler --version >&5") 2>&5
6225   ac_status=$?
6226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227   (exit $ac_status); }
6228 { (ac_try="$ac_compiler -v >&5"
6229 case "(($ac_try" in
6230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6231   *) ac_try_echo=$ac_try;;
6232 esac
6233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6234   (eval "$ac_compiler -v >&5") 2>&5
6235   ac_status=$?
6236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237   (exit $ac_status); }
6238 { (ac_try="$ac_compiler -V >&5"
6239 case "(($ac_try" in
6240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6241   *) ac_try_echo=$ac_try;;
6242 esac
6243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6244   (eval "$ac_compiler -V >&5") 2>&5
6245   ac_status=$?
6246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247   (exit $ac_status); }
6248
6249 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6250 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6251 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6252   echo $ECHO_N "(cached) $ECHO_C" >&6
6253 else
6254   cat >conftest.$ac_ext <<_ACEOF
6255 /* confdefs.h.  */
6256 _ACEOF
6257 cat confdefs.h >>conftest.$ac_ext
6258 cat >>conftest.$ac_ext <<_ACEOF
6259 /* end confdefs.h.  */
6260
6261 int
6262 main ()
6263 {
6264 #ifndef __GNUC__
6265        choke me
6266 #endif
6267
6268   ;
6269   return 0;
6270 }
6271 _ACEOF
6272 rm -f conftest.$ac_objext
6273 if { (ac_try="$ac_compile"
6274 case "(($ac_try" in
6275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6276   *) ac_try_echo=$ac_try;;
6277 esac
6278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6279   (eval "$ac_compile") 2>conftest.er1
6280   ac_status=$?
6281   grep -v '^ *+' conftest.er1 >conftest.err
6282   rm -f conftest.er1
6283   cat conftest.err >&5
6284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285   (exit $ac_status); } &&
6286          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6287   { (case "(($ac_try" in
6288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6289   *) ac_try_echo=$ac_try;;
6290 esac
6291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6292   (eval "$ac_try") 2>&5
6293   ac_status=$?
6294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295   (exit $ac_status); }; } &&
6296          { ac_try='test -s conftest.$ac_objext'
6297   { (case "(($ac_try" in
6298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6299   *) ac_try_echo=$ac_try;;
6300 esac
6301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6302   (eval "$ac_try") 2>&5
6303   ac_status=$?
6304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305   (exit $ac_status); }; }; then
6306   ac_compiler_gnu=yes
6307 else
6308   echo "$as_me: failed program was:" >&5
6309 sed 's/^/| /' conftest.$ac_ext >&5
6310
6311         ac_compiler_gnu=no
6312 fi
6313
6314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6315 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6316
6317 fi
6318 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6319 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6320 GXX=`test $ac_compiler_gnu = yes && echo yes`
6321 ac_test_CXXFLAGS=${CXXFLAGS+set}
6322 ac_save_CXXFLAGS=$CXXFLAGS
6323 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6324 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6325 if test "${ac_cv_prog_cxx_g+set}" = set; then
6326   echo $ECHO_N "(cached) $ECHO_C" >&6
6327 else
6328   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6329    ac_cxx_werror_flag=yes
6330    ac_cv_prog_cxx_g=no
6331    CXXFLAGS="-g"
6332    cat >conftest.$ac_ext <<_ACEOF
6333 /* confdefs.h.  */
6334 _ACEOF
6335 cat confdefs.h >>conftest.$ac_ext
6336 cat >>conftest.$ac_ext <<_ACEOF
6337 /* end confdefs.h.  */
6338
6339 int
6340 main ()
6341 {
6342
6343   ;
6344   return 0;
6345 }
6346 _ACEOF
6347 rm -f conftest.$ac_objext
6348 if { (ac_try="$ac_compile"
6349 case "(($ac_try" in
6350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6351   *) ac_try_echo=$ac_try;;
6352 esac
6353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6354   (eval "$ac_compile") 2>conftest.er1
6355   ac_status=$?
6356   grep -v '^ *+' conftest.er1 >conftest.err
6357   rm -f conftest.er1
6358   cat conftest.err >&5
6359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360   (exit $ac_status); } &&
6361          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6362   { (case "(($ac_try" in
6363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6364   *) ac_try_echo=$ac_try;;
6365 esac
6366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6367   (eval "$ac_try") 2>&5
6368   ac_status=$?
6369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370   (exit $ac_status); }; } &&
6371          { ac_try='test -s conftest.$ac_objext'
6372   { (case "(($ac_try" in
6373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6374   *) ac_try_echo=$ac_try;;
6375 esac
6376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6377   (eval "$ac_try") 2>&5
6378   ac_status=$?
6379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380   (exit $ac_status); }; }; then
6381   ac_cv_prog_cxx_g=yes
6382 else
6383   echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6385
6386         CXXFLAGS=""
6387       cat >conftest.$ac_ext <<_ACEOF
6388 /* confdefs.h.  */
6389 _ACEOF
6390 cat confdefs.h >>conftest.$ac_ext
6391 cat >>conftest.$ac_ext <<_ACEOF
6392 /* end confdefs.h.  */
6393
6394 int
6395 main ()
6396 {
6397
6398   ;
6399   return 0;
6400 }
6401 _ACEOF
6402 rm -f conftest.$ac_objext
6403 if { (ac_try="$ac_compile"
6404 case "(($ac_try" in
6405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6406   *) ac_try_echo=$ac_try;;
6407 esac
6408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6409   (eval "$ac_compile") 2>conftest.er1
6410   ac_status=$?
6411   grep -v '^ *+' conftest.er1 >conftest.err
6412   rm -f conftest.er1
6413   cat conftest.err >&5
6414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415   (exit $ac_status); } &&
6416          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6417   { (case "(($ac_try" in
6418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6419   *) ac_try_echo=$ac_try;;
6420 esac
6421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6422   (eval "$ac_try") 2>&5
6423   ac_status=$?
6424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425   (exit $ac_status); }; } &&
6426          { ac_try='test -s conftest.$ac_objext'
6427   { (case "(($ac_try" in
6428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6429   *) ac_try_echo=$ac_try;;
6430 esac
6431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6432   (eval "$ac_try") 2>&5
6433   ac_status=$?
6434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435   (exit $ac_status); }; }; then
6436   :
6437 else
6438   echo "$as_me: failed program was:" >&5
6439 sed 's/^/| /' conftest.$ac_ext >&5
6440
6441         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6442          CXXFLAGS="-g"
6443          cat >conftest.$ac_ext <<_ACEOF
6444 /* confdefs.h.  */
6445 _ACEOF
6446 cat confdefs.h >>conftest.$ac_ext
6447 cat >>conftest.$ac_ext <<_ACEOF
6448 /* end confdefs.h.  */
6449
6450 int
6451 main ()
6452 {
6453
6454   ;
6455   return 0;
6456 }
6457 _ACEOF
6458 rm -f conftest.$ac_objext
6459 if { (ac_try="$ac_compile"
6460 case "(($ac_try" in
6461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6462   *) ac_try_echo=$ac_try;;
6463 esac
6464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6465   (eval "$ac_compile") 2>conftest.er1
6466   ac_status=$?
6467   grep -v '^ *+' conftest.er1 >conftest.err
6468   rm -f conftest.er1
6469   cat conftest.err >&5
6470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471   (exit $ac_status); } &&
6472          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6473   { (case "(($ac_try" in
6474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6475   *) ac_try_echo=$ac_try;;
6476 esac
6477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6478   (eval "$ac_try") 2>&5
6479   ac_status=$?
6480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481   (exit $ac_status); }; } &&
6482          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6492   ac_cv_prog_cxx_g=yes
6493 else
6494   echo "$as_me: failed program was:" >&5
6495 sed 's/^/| /' conftest.$ac_ext >&5
6496
6497
6498 fi
6499
6500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6501 fi
6502
6503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6504 fi
6505
6506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6507    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6508 fi
6509 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6510 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6511 if test "$ac_test_CXXFLAGS" = set; then
6512   CXXFLAGS=$ac_save_CXXFLAGS
6513 elif test $ac_cv_prog_cxx_g = yes; then
6514   if test "$GXX" = yes; then
6515     CXXFLAGS="-g -O2"
6516   else
6517     CXXFLAGS="-g"
6518   fi
6519 else
6520   if test "$GXX" = yes; then
6521     CXXFLAGS="-O2"
6522   else
6523     CXXFLAGS=
6524   fi
6525 fi
6526 ac_ext=c
6527 ac_cpp='$CPP $CPPFLAGS'
6528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6531
6532
6533 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6534 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6535 if test "${lt_cv_path_NM+set}" = set; then
6536   echo $ECHO_N "(cached) $ECHO_C" >&6
6537 else
6538   if test -n "$NM"; then
6539   # Let the user override the test.
6540   lt_cv_path_NM="$NM"
6541 else
6542   lt_nm_to_check="${ac_tool_prefix}nm"
6543   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6544     lt_nm_to_check="$lt_nm_to_check nm"
6545   fi
6546   for lt_tmp_nm in $lt_nm_to_check; do
6547     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6548     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6549       IFS="$lt_save_ifs"
6550       test -z "$ac_dir" && ac_dir=.
6551       tmp_nm="$ac_dir/$lt_tmp_nm"
6552       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6553         # Check to see if the nm accepts a BSD-compat flag.
6554         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6555         #   nm: unknown option "B" ignored
6556         # Tru64's nm complains that /dev/null is an invalid object file
6557         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6558         */dev/null* | *'Invalid file or object type'*)
6559           lt_cv_path_NM="$tmp_nm -B"
6560           break
6561           ;;
6562         *)
6563           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6564           */dev/null*)
6565             lt_cv_path_NM="$tmp_nm -p"
6566             break
6567             ;;
6568           *)
6569             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6570             continue # so that we can try to find one that supports BSD flags
6571             ;;
6572           esac
6573           ;;
6574         esac
6575       fi
6576     done
6577     IFS="$lt_save_ifs"
6578   done
6579   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6580 fi
6581 fi
6582 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6583 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6584 NM="$lt_cv_path_NM"
6585
6586
6587
6588 { echo "$as_me:$LINENO: checking for GNU make" >&5
6589 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6590 if test "${llvm_cv_gnu_make_command+set}" = set; then
6591   echo $ECHO_N "(cached) $ECHO_C" >&6
6592 else
6593   llvm_cv_gnu_make_command=''
6594  for a in "$MAKE" make gmake gnumake ; do
6595   if test -z "$a" ; then continue ; fi ;
6596   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6597   then
6598    llvm_cv_gnu_make_command=$a ;
6599    break;
6600   fi
6601  done
6602 fi
6603 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6604 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6605  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6606    ifGNUmake='' ;
6607  else
6608    ifGNUmake='#' ;
6609    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6610 echo "${ECHO_T}\"Not found\"" >&6; };
6611  fi
6612
6613
6614 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6615 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6616 LN_S=$as_ln_s
6617 if test "$LN_S" = "ln -s"; then
6618   { echo "$as_me:$LINENO: result: yes" >&5
6619 echo "${ECHO_T}yes" >&6; }
6620 else
6621   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6622 echo "${ECHO_T}no, using $LN_S" >&6; }
6623 fi
6624
6625 # Extract the first word of "cmp", so it can be a program name with args.
6626 set dummy cmp; ac_word=$2
6627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6629 if test "${ac_cv_path_CMP+set}" = set; then
6630   echo $ECHO_N "(cached) $ECHO_C" >&6
6631 else
6632   case $CMP in
6633   [\\/]* | ?:[\\/]*)
6634   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6635   ;;
6636   *)
6637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 for as_dir in $PATH
6639 do
6640   IFS=$as_save_IFS
6641   test -z "$as_dir" && as_dir=.
6642   for ac_exec_ext in '' $ac_executable_extensions; do
6643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6644     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6646     break 2
6647   fi
6648 done
6649 done
6650 IFS=$as_save_IFS
6651
6652   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6653   ;;
6654 esac
6655 fi
6656 CMP=$ac_cv_path_CMP
6657 if test -n "$CMP"; then
6658   { echo "$as_me:$LINENO: result: $CMP" >&5
6659 echo "${ECHO_T}$CMP" >&6; }
6660 else
6661   { echo "$as_me:$LINENO: result: no" >&5
6662 echo "${ECHO_T}no" >&6; }
6663 fi
6664
6665
6666 # Extract the first word of "cp", so it can be a program name with args.
6667 set dummy cp; ac_word=$2
6668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6670 if test "${ac_cv_path_CP+set}" = set; then
6671   echo $ECHO_N "(cached) $ECHO_C" >&6
6672 else
6673   case $CP in
6674   [\\/]* | ?:[\\/]*)
6675   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6676   ;;
6677   *)
6678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 for as_dir in $PATH
6680 do
6681   IFS=$as_save_IFS
6682   test -z "$as_dir" && as_dir=.
6683   for ac_exec_ext in '' $ac_executable_extensions; do
6684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6685     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6687     break 2
6688   fi
6689 done
6690 done
6691 IFS=$as_save_IFS
6692
6693   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6694   ;;
6695 esac
6696 fi
6697 CP=$ac_cv_path_CP
6698 if test -n "$CP"; then
6699   { echo "$as_me:$LINENO: result: $CP" >&5
6700 echo "${ECHO_T}$CP" >&6; }
6701 else
6702   { echo "$as_me:$LINENO: result: no" >&5
6703 echo "${ECHO_T}no" >&6; }
6704 fi
6705
6706
6707 # Extract the first word of "date", so it can be a program name with args.
6708 set dummy date; ac_word=$2
6709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6711 if test "${ac_cv_path_DATE+set}" = set; then
6712   echo $ECHO_N "(cached) $ECHO_C" >&6
6713 else
6714   case $DATE in
6715   [\\/]* | ?:[\\/]*)
6716   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6717   ;;
6718   *)
6719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 for as_dir in $PATH
6721 do
6722   IFS=$as_save_IFS
6723   test -z "$as_dir" && as_dir=.
6724   for ac_exec_ext in '' $ac_executable_extensions; do
6725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6726     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6727     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6728     break 2
6729   fi
6730 done
6731 done
6732 IFS=$as_save_IFS
6733
6734   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6735   ;;
6736 esac
6737 fi
6738 DATE=$ac_cv_path_DATE
6739 if test -n "$DATE"; then
6740   { echo "$as_me:$LINENO: result: $DATE" >&5
6741 echo "${ECHO_T}$DATE" >&6; }
6742 else
6743   { echo "$as_me:$LINENO: result: no" >&5
6744 echo "${ECHO_T}no" >&6; }
6745 fi
6746
6747
6748 # Extract the first word of "find", so it can be a program name with args.
6749 set dummy find; ac_word=$2
6750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6752 if test "${ac_cv_path_FIND+set}" = set; then
6753   echo $ECHO_N "(cached) $ECHO_C" >&6
6754 else
6755   case $FIND in
6756   [\\/]* | ?:[\\/]*)
6757   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6758   ;;
6759   *)
6760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761 for as_dir in $PATH
6762 do
6763   IFS=$as_save_IFS
6764   test -z "$as_dir" && as_dir=.
6765   for ac_exec_ext in '' $ac_executable_extensions; do
6766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6767     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6769     break 2
6770   fi
6771 done
6772 done
6773 IFS=$as_save_IFS
6774
6775   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6776   ;;
6777 esac
6778 fi
6779 FIND=$ac_cv_path_FIND
6780 if test -n "$FIND"; then
6781   { echo "$as_me:$LINENO: result: $FIND" >&5
6782 echo "${ECHO_T}$FIND" >&6; }
6783 else
6784   { echo "$as_me:$LINENO: result: no" >&5
6785 echo "${ECHO_T}no" >&6; }
6786 fi
6787
6788
6789 # Extract the first word of "grep", so it can be a program name with args.
6790 set dummy grep; ac_word=$2
6791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6793 if test "${ac_cv_path_GREP+set}" = set; then
6794   echo $ECHO_N "(cached) $ECHO_C" >&6
6795 else
6796   case $GREP in
6797   [\\/]* | ?:[\\/]*)
6798   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6799   ;;
6800   *)
6801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802 for as_dir in $PATH
6803 do
6804   IFS=$as_save_IFS
6805   test -z "$as_dir" && as_dir=.
6806   for ac_exec_ext in '' $ac_executable_extensions; do
6807   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6808     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6810     break 2
6811   fi
6812 done
6813 done
6814 IFS=$as_save_IFS
6815
6816   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6817   ;;
6818 esac
6819 fi
6820 GREP=$ac_cv_path_GREP
6821 if test -n "$GREP"; then
6822   { echo "$as_me:$LINENO: result: $GREP" >&5
6823 echo "${ECHO_T}$GREP" >&6; }
6824 else
6825   { echo "$as_me:$LINENO: result: no" >&5
6826 echo "${ECHO_T}no" >&6; }
6827 fi
6828
6829
6830 # Extract the first word of "mkdir", so it can be a program name with args.
6831 set dummy mkdir; ac_word=$2
6832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6834 if test "${ac_cv_path_MKDIR+set}" = set; then
6835   echo $ECHO_N "(cached) $ECHO_C" >&6
6836 else
6837   case $MKDIR in
6838   [\\/]* | ?:[\\/]*)
6839   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6840   ;;
6841   *)
6842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843 for as_dir in $PATH
6844 do
6845   IFS=$as_save_IFS
6846   test -z "$as_dir" && as_dir=.
6847   for ac_exec_ext in '' $ac_executable_extensions; do
6848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6849     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6851     break 2
6852   fi
6853 done
6854 done
6855 IFS=$as_save_IFS
6856
6857   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6858   ;;
6859 esac
6860 fi
6861 MKDIR=$ac_cv_path_MKDIR
6862 if test -n "$MKDIR"; then
6863   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6864 echo "${ECHO_T}$MKDIR" >&6; }
6865 else
6866   { echo "$as_me:$LINENO: result: no" >&5
6867 echo "${ECHO_T}no" >&6; }
6868 fi
6869
6870
6871 # Extract the first word of "mv", so it can be a program name with args.
6872 set dummy mv; ac_word=$2
6873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6875 if test "${ac_cv_path_MV+set}" = set; then
6876   echo $ECHO_N "(cached) $ECHO_C" >&6
6877 else
6878   case $MV in
6879   [\\/]* | ?:[\\/]*)
6880   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6881   ;;
6882   *)
6883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884 for as_dir in $PATH
6885 do
6886   IFS=$as_save_IFS
6887   test -z "$as_dir" && as_dir=.
6888   for ac_exec_ext in '' $ac_executable_extensions; do
6889   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6890     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6892     break 2
6893   fi
6894 done
6895 done
6896 IFS=$as_save_IFS
6897
6898   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6899   ;;
6900 esac
6901 fi
6902 MV=$ac_cv_path_MV
6903 if test -n "$MV"; then
6904   { echo "$as_me:$LINENO: result: $MV" >&5
6905 echo "${ECHO_T}$MV" >&6; }
6906 else
6907   { echo "$as_me:$LINENO: result: no" >&5
6908 echo "${ECHO_T}no" >&6; }
6909 fi
6910
6911
6912 if test -n "$ac_tool_prefix"; then
6913   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6914 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6917 if test "${ac_cv_prog_RANLIB+set}" = set; then
6918   echo $ECHO_N "(cached) $ECHO_C" >&6
6919 else
6920   if test -n "$RANLIB"; then
6921   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6922 else
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 for as_dir in $PATH
6925 do
6926   IFS=$as_save_IFS
6927   test -z "$as_dir" && as_dir=.
6928   for ac_exec_ext in '' $ac_executable_extensions; do
6929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6930     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6932     break 2
6933   fi
6934 done
6935 done
6936 IFS=$as_save_IFS
6937
6938 fi
6939 fi
6940 RANLIB=$ac_cv_prog_RANLIB
6941 if test -n "$RANLIB"; then
6942   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6943 echo "${ECHO_T}$RANLIB" >&6; }
6944 else
6945   { echo "$as_me:$LINENO: result: no" >&5
6946 echo "${ECHO_T}no" >&6; }
6947 fi
6948
6949
6950 fi
6951 if test -z "$ac_cv_prog_RANLIB"; then
6952   ac_ct_RANLIB=$RANLIB
6953   # Extract the first word of "ranlib", so it can be a program name with args.
6954 set dummy ranlib; ac_word=$2
6955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6957 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6958   echo $ECHO_N "(cached) $ECHO_C" >&6
6959 else
6960   if test -n "$ac_ct_RANLIB"; then
6961   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6962 else
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_prog_ac_ct_RANLIB="ranlib"
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 fi
6979 fi
6980 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6981 if test -n "$ac_ct_RANLIB"; then
6982   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6983 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6984 else
6985   { echo "$as_me:$LINENO: result: no" >&5
6986 echo "${ECHO_T}no" >&6; }
6987 fi
6988
6989   if test "x$ac_ct_RANLIB" = x; then
6990     RANLIB=":"
6991   else
6992     case $cross_compiling:$ac_tool_warned in
6993 yes:)
6994 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6995 whose name does not start with the host triplet.  If you think this
6996 configuration is useful to you, please write to autoconf@gnu.org." >&5
6997 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6998 whose name does not start with the host triplet.  If you think this
6999 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7000 ac_tool_warned=yes ;;
7001 esac
7002     RANLIB=$ac_ct_RANLIB
7003   fi
7004 else
7005   RANLIB="$ac_cv_prog_RANLIB"
7006 fi
7007
7008 if test -n "$ac_tool_prefix"; then
7009   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7010 set dummy ${ac_tool_prefix}ar; ac_word=$2
7011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7013 if test "${ac_cv_prog_AR+set}" = set; then
7014   echo $ECHO_N "(cached) $ECHO_C" >&6
7015 else
7016   if test -n "$AR"; then
7017   ac_cv_prog_AR="$AR" # Let the user override the test.
7018 else
7019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020 for as_dir in $PATH
7021 do
7022   IFS=$as_save_IFS
7023   test -z "$as_dir" && as_dir=.
7024   for ac_exec_ext in '' $ac_executable_extensions; do
7025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7026     ac_cv_prog_AR="${ac_tool_prefix}ar"
7027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7028     break 2
7029   fi
7030 done
7031 done
7032 IFS=$as_save_IFS
7033
7034 fi
7035 fi
7036 AR=$ac_cv_prog_AR
7037 if test -n "$AR"; then
7038   { echo "$as_me:$LINENO: result: $AR" >&5
7039 echo "${ECHO_T}$AR" >&6; }
7040 else
7041   { echo "$as_me:$LINENO: result: no" >&5
7042 echo "${ECHO_T}no" >&6; }
7043 fi
7044
7045
7046 fi
7047 if test -z "$ac_cv_prog_AR"; then
7048   ac_ct_AR=$AR
7049   # Extract the first word of "ar", so it can be a program name with args.
7050 set dummy ar; ac_word=$2
7051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7053 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7054   echo $ECHO_N "(cached) $ECHO_C" >&6
7055 else
7056   if test -n "$ac_ct_AR"; then
7057   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7058 else
7059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060 for as_dir in $PATH
7061 do
7062   IFS=$as_save_IFS
7063   test -z "$as_dir" && as_dir=.
7064   for ac_exec_ext in '' $ac_executable_extensions; do
7065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7066     ac_cv_prog_ac_ct_AR="ar"
7067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7068     break 2
7069   fi
7070 done
7071 done
7072 IFS=$as_save_IFS
7073
7074 fi
7075 fi
7076 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7077 if test -n "$ac_ct_AR"; then
7078   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7079 echo "${ECHO_T}$ac_ct_AR" >&6; }
7080 else
7081   { echo "$as_me:$LINENO: result: no" >&5
7082 echo "${ECHO_T}no" >&6; }
7083 fi
7084
7085   if test "x$ac_ct_AR" = x; then
7086     AR="false"
7087   else
7088     case $cross_compiling:$ac_tool_warned in
7089 yes:)
7090 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7091 whose name does not start with the host triplet.  If you think this
7092 configuration is useful to you, please write to autoconf@gnu.org." >&5
7093 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7094 whose name does not start with the host triplet.  If you think this
7095 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7096 ac_tool_warned=yes ;;
7097 esac
7098     AR=$ac_ct_AR
7099   fi
7100 else
7101   AR="$ac_cv_prog_AR"
7102 fi
7103
7104 # Extract the first word of "rm", so it can be a program name with args.
7105 set dummy rm; ac_word=$2
7106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7108 if test "${ac_cv_path_RM+set}" = set; then
7109   echo $ECHO_N "(cached) $ECHO_C" >&6
7110 else
7111   case $RM in
7112   [\\/]* | ?:[\\/]*)
7113   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7114   ;;
7115   *)
7116   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117 for as_dir in $PATH
7118 do
7119   IFS=$as_save_IFS
7120   test -z "$as_dir" && as_dir=.
7121   for ac_exec_ext in '' $ac_executable_extensions; do
7122   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7123     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7124     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7125     break 2
7126   fi
7127 done
7128 done
7129 IFS=$as_save_IFS
7130
7131   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7132   ;;
7133 esac
7134 fi
7135 RM=$ac_cv_path_RM
7136 if test -n "$RM"; then
7137   { echo "$as_me:$LINENO: result: $RM" >&5
7138 echo "${ECHO_T}$RM" >&6; }
7139 else
7140   { echo "$as_me:$LINENO: result: no" >&5
7141 echo "${ECHO_T}no" >&6; }
7142 fi
7143
7144
7145 # Extract the first word of "sed", so it can be a program name with args.
7146 set dummy sed; ac_word=$2
7147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7149 if test "${ac_cv_path_SED+set}" = set; then
7150   echo $ECHO_N "(cached) $ECHO_C" >&6
7151 else
7152   case $SED in
7153   [\\/]* | ?:[\\/]*)
7154   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7155   ;;
7156   *)
7157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158 for as_dir in $PATH
7159 do
7160   IFS=$as_save_IFS
7161   test -z "$as_dir" && as_dir=.
7162   for ac_exec_ext in '' $ac_executable_extensions; do
7163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7164     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7166     break 2
7167   fi
7168 done
7169 done
7170 IFS=$as_save_IFS
7171
7172   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7173   ;;
7174 esac
7175 fi
7176 SED=$ac_cv_path_SED
7177 if test -n "$SED"; then
7178   { echo "$as_me:$LINENO: result: $SED" >&5
7179 echo "${ECHO_T}$SED" >&6; }
7180 else
7181   { echo "$as_me:$LINENO: result: no" >&5
7182 echo "${ECHO_T}no" >&6; }
7183 fi
7184
7185
7186 # Extract the first word of "tar", so it can be a program name with args.
7187 set dummy tar; ac_word=$2
7188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7190 if test "${ac_cv_path_TAR+set}" = set; then
7191   echo $ECHO_N "(cached) $ECHO_C" >&6
7192 else
7193   case $TAR in
7194   [\\/]* | ?:[\\/]*)
7195   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7196   ;;
7197   *)
7198   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 for as_dir in $PATH
7200 do
7201   IFS=$as_save_IFS
7202   test -z "$as_dir" && as_dir=.
7203   for ac_exec_ext in '' $ac_executable_extensions; do
7204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7205     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7207     break 2
7208   fi
7209 done
7210 done
7211 IFS=$as_save_IFS
7212
7213   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7214   ;;
7215 esac
7216 fi
7217 TAR=$ac_cv_path_TAR
7218 if test -n "$TAR"; then
7219   { echo "$as_me:$LINENO: result: $TAR" >&5
7220 echo "${ECHO_T}$TAR" >&6; }
7221 else
7222   { echo "$as_me:$LINENO: result: no" >&5
7223 echo "${ECHO_T}no" >&6; }
7224 fi
7225
7226
7227 # Extract the first word of "pwd", so it can be a program name with args.
7228 set dummy pwd; ac_word=$2
7229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7231 if test "${ac_cv_path_BINPWD+set}" = set; then
7232   echo $ECHO_N "(cached) $ECHO_C" >&6
7233 else
7234   case $BINPWD in
7235   [\\/]* | ?:[\\/]*)
7236   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7237   ;;
7238   *)
7239   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 for as_dir in $PATH
7241 do
7242   IFS=$as_save_IFS
7243   test -z "$as_dir" && as_dir=.
7244   for ac_exec_ext in '' $ac_executable_extensions; do
7245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7246     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7248     break 2
7249   fi
7250 done
7251 done
7252 IFS=$as_save_IFS
7253
7254   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7255   ;;
7256 esac
7257 fi
7258 BINPWD=$ac_cv_path_BINPWD
7259 if test -n "$BINPWD"; then
7260   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7261 echo "${ECHO_T}$BINPWD" >&6; }
7262 else
7263   { echo "$as_me:$LINENO: result: no" >&5
7264 echo "${ECHO_T}no" >&6; }
7265 fi
7266
7267
7268
7269 # Extract the first word of "Graphviz", so it can be a program name with args.
7270 set dummy Graphviz; ac_word=$2
7271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7273 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7274   echo $ECHO_N "(cached) $ECHO_C" >&6
7275 else
7276   case $GRAPHVIZ in
7277   [\\/]* | ?:[\\/]*)
7278   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7279   ;;
7280   *)
7281   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282 for as_dir in $PATH
7283 do
7284   IFS=$as_save_IFS
7285   test -z "$as_dir" && as_dir=.
7286   for ac_exec_ext in '' $ac_executable_extensions; do
7287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7288     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7290     break 2
7291   fi
7292 done
7293 done
7294 IFS=$as_save_IFS
7295
7296   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7297   ;;
7298 esac
7299 fi
7300 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7301 if test -n "$GRAPHVIZ"; then
7302   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7303 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7304 else
7305   { echo "$as_me:$LINENO: result: no" >&5
7306 echo "${ECHO_T}no" >&6; }
7307 fi
7308
7309
7310 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7311
7312 cat >>confdefs.h <<\_ACEOF
7313 #define HAVE_GRAPHVIZ 1
7314 _ACEOF
7315
7316     if test "$llvm_cv_os_type" = "MingW" ; then
7317     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7318   fi
7319
7320 cat >>confdefs.h <<_ACEOF
7321 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7322 _ACEOF
7323
7324 fi
7325 # Extract the first word of "dot", so it can be a program name with args.
7326 set dummy dot; ac_word=$2
7327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7329 if test "${ac_cv_path_DOT+set}" = set; then
7330   echo $ECHO_N "(cached) $ECHO_C" >&6
7331 else
7332   case $DOT in
7333   [\\/]* | ?:[\\/]*)
7334   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7335   ;;
7336   *)
7337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338 for as_dir in $PATH
7339 do
7340   IFS=$as_save_IFS
7341   test -z "$as_dir" && as_dir=.
7342   for ac_exec_ext in '' $ac_executable_extensions; do
7343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7344     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7345     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7346     break 2
7347   fi
7348 done
7349 done
7350 IFS=$as_save_IFS
7351
7352   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7353   ;;
7354 esac
7355 fi
7356 DOT=$ac_cv_path_DOT
7357 if test -n "$DOT"; then
7358   { echo "$as_me:$LINENO: result: $DOT" >&5
7359 echo "${ECHO_T}$DOT" >&6; }
7360 else
7361   { echo "$as_me:$LINENO: result: no" >&5
7362 echo "${ECHO_T}no" >&6; }
7363 fi
7364
7365
7366 if test "$DOT" != "echo dot" ; then
7367
7368 cat >>confdefs.h <<\_ACEOF
7369 #define HAVE_DOT 1
7370 _ACEOF
7371
7372     if test "$llvm_cv_os_type" = "MingW" ; then
7373     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7374   fi
7375
7376 cat >>confdefs.h <<_ACEOF
7377 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7378 _ACEOF
7379
7380 fi
7381 # Extract the first word of "fdp", so it can be a program name with args.
7382 set dummy fdp; ac_word=$2
7383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7385 if test "${ac_cv_path_FDP+set}" = set; then
7386   echo $ECHO_N "(cached) $ECHO_C" >&6
7387 else
7388   case $FDP in
7389   [\\/]* | ?:[\\/]*)
7390   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7391   ;;
7392   *)
7393   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394 for as_dir in $PATH
7395 do
7396   IFS=$as_save_IFS
7397   test -z "$as_dir" && as_dir=.
7398   for ac_exec_ext in '' $ac_executable_extensions; do
7399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7400     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7402     break 2
7403   fi
7404 done
7405 done
7406 IFS=$as_save_IFS
7407
7408   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7409   ;;
7410 esac
7411 fi
7412 FDP=$ac_cv_path_FDP
7413 if test -n "$FDP"; then
7414   { echo "$as_me:$LINENO: result: $FDP" >&5
7415 echo "${ECHO_T}$FDP" >&6; }
7416 else
7417   { echo "$as_me:$LINENO: result: no" >&5
7418 echo "${ECHO_T}no" >&6; }
7419 fi
7420
7421
7422 if test "$FDP" != "echo fdp" ; then
7423
7424 cat >>confdefs.h <<\_ACEOF
7425 #define HAVE_FDP 1
7426 _ACEOF
7427
7428     if test "$llvm_cv_os_type" = "MingW" ; then
7429     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7430   fi
7431
7432 cat >>confdefs.h <<_ACEOF
7433 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7434 _ACEOF
7435
7436 fi
7437 # Extract the first word of "neato", so it can be a program name with args.
7438 set dummy neato; ac_word=$2
7439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7441 if test "${ac_cv_path_NEATO+set}" = set; then
7442   echo $ECHO_N "(cached) $ECHO_C" >&6
7443 else
7444   case $NEATO in
7445   [\\/]* | ?:[\\/]*)
7446   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7447   ;;
7448   *)
7449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450 for as_dir in $PATH
7451 do
7452   IFS=$as_save_IFS
7453   test -z "$as_dir" && as_dir=.
7454   for ac_exec_ext in '' $ac_executable_extensions; do
7455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7456     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7457     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7458     break 2
7459   fi
7460 done
7461 done
7462 IFS=$as_save_IFS
7463
7464   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7465   ;;
7466 esac
7467 fi
7468 NEATO=$ac_cv_path_NEATO
7469 if test -n "$NEATO"; then
7470   { echo "$as_me:$LINENO: result: $NEATO" >&5
7471 echo "${ECHO_T}$NEATO" >&6; }
7472 else
7473   { echo "$as_me:$LINENO: result: no" >&5
7474 echo "${ECHO_T}no" >&6; }
7475 fi
7476
7477
7478 if test "$NEATO" != "echo neato" ; then
7479
7480 cat >>confdefs.h <<\_ACEOF
7481 #define HAVE_NEATO 1
7482 _ACEOF
7483
7484     if test "$llvm_cv_os_type" = "MingW" ; then
7485     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7486   fi
7487
7488 cat >>confdefs.h <<_ACEOF
7489 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7490 _ACEOF
7491
7492 fi
7493 # Extract the first word of "twopi", so it can be a program name with args.
7494 set dummy twopi; ac_word=$2
7495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7497 if test "${ac_cv_path_TWOPI+set}" = set; then
7498   echo $ECHO_N "(cached) $ECHO_C" >&6
7499 else
7500   case $TWOPI in
7501   [\\/]* | ?:[\\/]*)
7502   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7503   ;;
7504   *)
7505   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506 for as_dir in $PATH
7507 do
7508   IFS=$as_save_IFS
7509   test -z "$as_dir" && as_dir=.
7510   for ac_exec_ext in '' $ac_executable_extensions; do
7511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7512     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7514     break 2
7515   fi
7516 done
7517 done
7518 IFS=$as_save_IFS
7519
7520   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7521   ;;
7522 esac
7523 fi
7524 TWOPI=$ac_cv_path_TWOPI
7525 if test -n "$TWOPI"; then
7526   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7527 echo "${ECHO_T}$TWOPI" >&6; }
7528 else
7529   { echo "$as_me:$LINENO: result: no" >&5
7530 echo "${ECHO_T}no" >&6; }
7531 fi
7532
7533
7534 if test "$TWOPI" != "echo twopi" ; then
7535
7536 cat >>confdefs.h <<\_ACEOF
7537 #define HAVE_TWOPI 1
7538 _ACEOF
7539
7540     if test "$llvm_cv_os_type" = "MingW" ; then
7541     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7542   fi
7543
7544 cat >>confdefs.h <<_ACEOF
7545 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7546 _ACEOF
7547
7548 fi
7549 # Extract the first word of "circo", so it can be a program name with args.
7550 set dummy circo; ac_word=$2
7551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7553 if test "${ac_cv_path_CIRCO+set}" = set; then
7554   echo $ECHO_N "(cached) $ECHO_C" >&6
7555 else
7556   case $CIRCO in
7557   [\\/]* | ?:[\\/]*)
7558   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7559   ;;
7560   *)
7561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562 for as_dir in $PATH
7563 do
7564   IFS=$as_save_IFS
7565   test -z "$as_dir" && as_dir=.
7566   for ac_exec_ext in '' $ac_executable_extensions; do
7567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7568     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7570     break 2
7571   fi
7572 done
7573 done
7574 IFS=$as_save_IFS
7575
7576   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7577   ;;
7578 esac
7579 fi
7580 CIRCO=$ac_cv_path_CIRCO
7581 if test -n "$CIRCO"; then
7582   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7583 echo "${ECHO_T}$CIRCO" >&6; }
7584 else
7585   { echo "$as_me:$LINENO: result: no" >&5
7586 echo "${ECHO_T}no" >&6; }
7587 fi
7588
7589
7590 if test "$CIRCO" != "echo circo" ; then
7591
7592 cat >>confdefs.h <<\_ACEOF
7593 #define HAVE_CIRCO 1
7594 _ACEOF
7595
7596     if test "$llvm_cv_os_type" = "MingW" ; then
7597     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7598   fi
7599
7600 cat >>confdefs.h <<_ACEOF
7601 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7602 _ACEOF
7603
7604 fi
7605 for ac_prog in gv gsview32
7606 do
7607   # Extract the first word of "$ac_prog", so it can be a program name with args.
7608 set dummy $ac_prog; ac_word=$2
7609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7611 if test "${ac_cv_path_GV+set}" = set; then
7612   echo $ECHO_N "(cached) $ECHO_C" >&6
7613 else
7614   case $GV in
7615   [\\/]* | ?:[\\/]*)
7616   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7617   ;;
7618   *)
7619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7620 for as_dir in $PATH
7621 do
7622   IFS=$as_save_IFS
7623   test -z "$as_dir" && as_dir=.
7624   for ac_exec_ext in '' $ac_executable_extensions; do
7625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7626     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7628     break 2
7629   fi
7630 done
7631 done
7632 IFS=$as_save_IFS
7633
7634   ;;
7635 esac
7636 fi
7637 GV=$ac_cv_path_GV
7638 if test -n "$GV"; then
7639   { echo "$as_me:$LINENO: result: $GV" >&5
7640 echo "${ECHO_T}$GV" >&6; }
7641 else
7642   { echo "$as_me:$LINENO: result: no" >&5
7643 echo "${ECHO_T}no" >&6; }
7644 fi
7645
7646
7647   test -n "$GV" && break
7648 done
7649 test -n "$GV" || GV="echo gv"
7650
7651 if test "$GV" != "echo gv" ; then
7652
7653 cat >>confdefs.h <<\_ACEOF
7654 #define HAVE_GV 1
7655 _ACEOF
7656
7657     if test "$llvm_cv_os_type" = "MingW" ; then
7658     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7659   fi
7660
7661 cat >>confdefs.h <<_ACEOF
7662 #define LLVM_PATH_GV "$GV${EXEEXT}"
7663 _ACEOF
7664
7665 fi
7666 # Extract the first word of "dotty", so it can be a program name with args.
7667 set dummy dotty; ac_word=$2
7668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7670 if test "${ac_cv_path_DOTTY+set}" = set; then
7671   echo $ECHO_N "(cached) $ECHO_C" >&6
7672 else
7673   case $DOTTY in
7674   [\\/]* | ?:[\\/]*)
7675   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7676   ;;
7677   *)
7678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679 for as_dir in $PATH
7680 do
7681   IFS=$as_save_IFS
7682   test -z "$as_dir" && as_dir=.
7683   for ac_exec_ext in '' $ac_executable_extensions; do
7684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7685     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7687     break 2
7688   fi
7689 done
7690 done
7691 IFS=$as_save_IFS
7692
7693   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7694   ;;
7695 esac
7696 fi
7697 DOTTY=$ac_cv_path_DOTTY
7698 if test -n "$DOTTY"; then
7699   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7700 echo "${ECHO_T}$DOTTY" >&6; }
7701 else
7702   { echo "$as_me:$LINENO: result: no" >&5
7703 echo "${ECHO_T}no" >&6; }
7704 fi
7705
7706
7707 if test "$DOTTY" != "echo dotty" ; then
7708
7709 cat >>confdefs.h <<\_ACEOF
7710 #define HAVE_DOTTY 1
7711 _ACEOF
7712
7713     if test "$llvm_cv_os_type" = "MingW" ; then
7714     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7715   fi
7716
7717 cat >>confdefs.h <<_ACEOF
7718 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7719 _ACEOF
7720
7721 fi
7722
7723
7724 # Extract the first word of "perl", so it can be a program name with args.
7725 set dummy perl; ac_word=$2
7726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7728 if test "${ac_cv_path_PERL+set}" = set; then
7729   echo $ECHO_N "(cached) $ECHO_C" >&6
7730 else
7731   case $PERL in
7732   [\\/]* | ?:[\\/]*)
7733   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7734   ;;
7735   *)
7736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737 for as_dir in $PATH
7738 do
7739   IFS=$as_save_IFS
7740   test -z "$as_dir" && as_dir=.
7741   for ac_exec_ext in '' $ac_executable_extensions; do
7742   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7743     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7744     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7745     break 2
7746   fi
7747 done
7748 done
7749 IFS=$as_save_IFS
7750
7751   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7752   ;;
7753 esac
7754 fi
7755 PERL=$ac_cv_path_PERL
7756 if test -n "$PERL"; then
7757   { echo "$as_me:$LINENO: result: $PERL" >&5
7758 echo "${ECHO_T}$PERL" >&6; }
7759 else
7760   { echo "$as_me:$LINENO: result: no" >&5
7761 echo "${ECHO_T}no" >&6; }
7762 fi
7763
7764
7765 if test "$PERL" != "none"; then
7766   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7767 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7768   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7769     { echo "$as_me:$LINENO: result: yes" >&5
7770 echo "${ECHO_T}yes" >&6; }
7771   else
7772     PERL=none
7773     { echo "$as_me:$LINENO: result: not found" >&5
7774 echo "${ECHO_T}not found" >&6; }
7775   fi
7776 fi
7777
7778
7779 if test x"$PERL" = xnone; then
7780    HAVE_PERL=0
7781
7782    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7783 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7784    { (exit 1); exit 1; }; }
7785 else
7786    HAVE_PERL=1
7787
7788 fi
7789
7790 # Find a good install program.  We prefer a C program (faster),
7791 # so one script is as good as another.  But avoid the broken or
7792 # incompatible versions:
7793 # SysV /etc/install, /usr/sbin/install
7794 # SunOS /usr/etc/install
7795 # IRIX /sbin/install
7796 # AIX /bin/install
7797 # AmigaOS /C/install, which installs bootblocks on floppy discs
7798 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7799 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7800 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7801 # OS/2's system install, which has a completely different semantic
7802 # ./install, which can be erroneously created by make from ./install.sh.
7803 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7804 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7805 if test -z "$INSTALL"; then
7806 if test "${ac_cv_path_install+set}" = set; then
7807   echo $ECHO_N "(cached) $ECHO_C" >&6
7808 else
7809   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810 for as_dir in $PATH
7811 do
7812   IFS=$as_save_IFS
7813   test -z "$as_dir" && as_dir=.
7814   # Account for people who put trailing slashes in PATH elements.
7815 case $as_dir/ in
7816   ./ | .// | /cC/* | \
7817   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7818   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7819   /usr/ucb/* ) ;;
7820   *)
7821     # OSF1 and SCO ODT 3.0 have their own names for install.
7822     # Don't use installbsd from OSF since it installs stuff as root
7823     # by default.
7824     for ac_prog in ginstall scoinst install; do
7825       for ac_exec_ext in '' $ac_executable_extensions; do
7826         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7827           if test $ac_prog = install &&
7828             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7829             # AIX install.  It has an incompatible calling convention.
7830             :
7831           elif test $ac_prog = install &&
7832             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7833             # program-specific install script used by HP pwplus--don't use.
7834             :
7835           else
7836             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7837             break 3
7838           fi
7839         fi
7840       done
7841     done
7842     ;;
7843 esac
7844 done
7845 IFS=$as_save_IFS
7846
7847
7848 fi
7849   if test "${ac_cv_path_install+set}" = set; then
7850     INSTALL=$ac_cv_path_install
7851   else
7852     # As a last resort, use the slow shell script.  Don't cache a
7853     # value for INSTALL within a source directory, because that will
7854     # break other packages using the cache if that directory is
7855     # removed, or if the value is a relative name.
7856     INSTALL=$ac_install_sh
7857   fi
7858 fi
7859 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7860 echo "${ECHO_T}$INSTALL" >&6; }
7861
7862 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7863 # It thinks the first close brace ends the variable substitution.
7864 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7865
7866 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7867
7868 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7869
7870
7871 # Extract the first word of "bzip2", so it can be a program name with args.
7872 set dummy bzip2; ac_word=$2
7873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7875 if test "${ac_cv_path_BZIP2+set}" = set; then
7876   echo $ECHO_N "(cached) $ECHO_C" >&6
7877 else
7878   case $BZIP2 in
7879   [\\/]* | ?:[\\/]*)
7880   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7881   ;;
7882   *)
7883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7884 for as_dir in $PATH
7885 do
7886   IFS=$as_save_IFS
7887   test -z "$as_dir" && as_dir=.
7888   for ac_exec_ext in '' $ac_executable_extensions; do
7889   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7890     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7892     break 2
7893   fi
7894 done
7895 done
7896 IFS=$as_save_IFS
7897
7898   ;;
7899 esac
7900 fi
7901 BZIP2=$ac_cv_path_BZIP2
7902 if test -n "$BZIP2"; then
7903   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7904 echo "${ECHO_T}$BZIP2" >&6; }
7905 else
7906   { echo "$as_me:$LINENO: result: no" >&5
7907 echo "${ECHO_T}no" >&6; }
7908 fi
7909
7910
7911 # Extract the first word of "doxygen", so it can be a program name with args.
7912 set dummy doxygen; ac_word=$2
7913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7915 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7916   echo $ECHO_N "(cached) $ECHO_C" >&6
7917 else
7918   case $DOXYGEN in
7919   [\\/]* | ?:[\\/]*)
7920   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7921   ;;
7922   *)
7923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7924 for as_dir in $PATH
7925 do
7926   IFS=$as_save_IFS
7927   test -z "$as_dir" && as_dir=.
7928   for ac_exec_ext in '' $ac_executable_extensions; do
7929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7930     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7932     break 2
7933   fi
7934 done
7935 done
7936 IFS=$as_save_IFS
7937
7938   ;;
7939 esac
7940 fi
7941 DOXYGEN=$ac_cv_path_DOXYGEN
7942 if test -n "$DOXYGEN"; then
7943   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7944 echo "${ECHO_T}$DOXYGEN" >&6; }
7945 else
7946   { echo "$as_me:$LINENO: result: no" >&5
7947 echo "${ECHO_T}no" >&6; }
7948 fi
7949
7950
7951 # Extract the first word of "groff", so it can be a program name with args.
7952 set dummy groff; ac_word=$2
7953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7955 if test "${ac_cv_path_GROFF+set}" = set; then
7956   echo $ECHO_N "(cached) $ECHO_C" >&6
7957 else
7958   case $GROFF in
7959   [\\/]* | ?:[\\/]*)
7960   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7961   ;;
7962   *)
7963   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7964 for as_dir in $PATH
7965 do
7966   IFS=$as_save_IFS
7967   test -z "$as_dir" && as_dir=.
7968   for ac_exec_ext in '' $ac_executable_extensions; do
7969   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7970     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7971     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7972     break 2
7973   fi
7974 done
7975 done
7976 IFS=$as_save_IFS
7977
7978   ;;
7979 esac
7980 fi
7981 GROFF=$ac_cv_path_GROFF
7982 if test -n "$GROFF"; then
7983   { echo "$as_me:$LINENO: result: $GROFF" >&5
7984 echo "${ECHO_T}$GROFF" >&6; }
7985 else
7986   { echo "$as_me:$LINENO: result: no" >&5
7987 echo "${ECHO_T}no" >&6; }
7988 fi
7989
7990
7991 # Extract the first word of "gzip", so it can be a program name with args.
7992 set dummy gzip; ac_word=$2
7993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7995 if test "${ac_cv_path_GZIP+set}" = set; then
7996   echo $ECHO_N "(cached) $ECHO_C" >&6
7997 else
7998   case $GZIP in
7999   [\\/]* | ?:[\\/]*)
8000   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8001   ;;
8002   *)
8003   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8004 for as_dir in $PATH
8005 do
8006   IFS=$as_save_IFS
8007   test -z "$as_dir" && as_dir=.
8008   for ac_exec_ext in '' $ac_executable_extensions; do
8009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8010     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8011     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8012     break 2
8013   fi
8014 done
8015 done
8016 IFS=$as_save_IFS
8017
8018   ;;
8019 esac
8020 fi
8021 GZIP=$ac_cv_path_GZIP
8022 if test -n "$GZIP"; then
8023   { echo "$as_me:$LINENO: result: $GZIP" >&5
8024 echo "${ECHO_T}$GZIP" >&6; }
8025 else
8026   { echo "$as_me:$LINENO: result: no" >&5
8027 echo "${ECHO_T}no" >&6; }
8028 fi
8029
8030
8031 # Extract the first word of "pod2html", so it can be a program name with args.
8032 set dummy pod2html; ac_word=$2
8033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8035 if test "${ac_cv_path_POD2HTML+set}" = set; then
8036   echo $ECHO_N "(cached) $ECHO_C" >&6
8037 else
8038   case $POD2HTML in
8039   [\\/]* | ?:[\\/]*)
8040   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8041   ;;
8042   *)
8043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8044 for as_dir in $PATH
8045 do
8046   IFS=$as_save_IFS
8047   test -z "$as_dir" && as_dir=.
8048   for ac_exec_ext in '' $ac_executable_extensions; do
8049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8050     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8051     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8052     break 2
8053   fi
8054 done
8055 done
8056 IFS=$as_save_IFS
8057
8058   ;;
8059 esac
8060 fi
8061 POD2HTML=$ac_cv_path_POD2HTML
8062 if test -n "$POD2HTML"; then
8063   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8064 echo "${ECHO_T}$POD2HTML" >&6; }
8065 else
8066   { echo "$as_me:$LINENO: result: no" >&5
8067 echo "${ECHO_T}no" >&6; }
8068 fi
8069
8070
8071 # Extract the first word of "pod2man", so it can be a program name with args.
8072 set dummy pod2man; ac_word=$2
8073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8075 if test "${ac_cv_path_POD2MAN+set}" = set; then
8076   echo $ECHO_N "(cached) $ECHO_C" >&6
8077 else
8078   case $POD2MAN in
8079   [\\/]* | ?:[\\/]*)
8080   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8081   ;;
8082   *)
8083   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8084 for as_dir in $PATH
8085 do
8086   IFS=$as_save_IFS
8087   test -z "$as_dir" && as_dir=.
8088   for ac_exec_ext in '' $ac_executable_extensions; do
8089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8090     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8091     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8092     break 2
8093   fi
8094 done
8095 done
8096 IFS=$as_save_IFS
8097
8098   ;;
8099 esac
8100 fi
8101 POD2MAN=$ac_cv_path_POD2MAN
8102 if test -n "$POD2MAN"; then
8103   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8104 echo "${ECHO_T}$POD2MAN" >&6; }
8105 else
8106   { echo "$as_me:$LINENO: result: no" >&5
8107 echo "${ECHO_T}no" >&6; }
8108 fi
8109
8110
8111 # Extract the first word of "runtest", so it can be a program name with args.
8112 set dummy runtest; ac_word=$2
8113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8115 if test "${ac_cv_path_RUNTEST+set}" = set; then
8116   echo $ECHO_N "(cached) $ECHO_C" >&6
8117 else
8118   case $RUNTEST in
8119   [\\/]* | ?:[\\/]*)
8120   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8121   ;;
8122   *)
8123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124 for as_dir in $PATH
8125 do
8126   IFS=$as_save_IFS
8127   test -z "$as_dir" && as_dir=.
8128   for ac_exec_ext in '' $ac_executable_extensions; do
8129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8130     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8131     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8132     break 2
8133   fi
8134 done
8135 done
8136 IFS=$as_save_IFS
8137
8138   ;;
8139 esac
8140 fi
8141 RUNTEST=$ac_cv_path_RUNTEST
8142 if test -n "$RUNTEST"; then
8143   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8144 echo "${ECHO_T}$RUNTEST" >&6; }
8145 else
8146   { echo "$as_me:$LINENO: result: no" >&5
8147 echo "${ECHO_T}no" >&6; }
8148 fi
8149
8150
8151
8152 no_itcl=true
8153 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8154 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8155
8156 # Check whether --with-tclinclude was given.
8157 if test "${with_tclinclude+set}" = set; then
8158   withval=$with_tclinclude; with_tclinclude=${withval}
8159 else
8160   with_tclinclude=''
8161 fi
8162
8163 if test "${ac_cv_path_tclsh+set}" = set; then
8164   echo $ECHO_N "(cached) $ECHO_C" >&6
8165 else
8166
8167 if test x"${with_tclinclude}" != x ; then
8168   if test -f ${with_tclinclude}/tclsh ; then
8169     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8170   elif test -f ${with_tclinclude}/src/tclsh ; then
8171     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8172   else
8173     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8174 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8175    { (exit 1); exit 1; }; }
8176   fi
8177 fi
8178 fi
8179
8180
8181 if test x"${ac_cv_path_tclsh}" = x ; then
8182   { echo "$as_me:$LINENO: result: none" >&5
8183 echo "${ECHO_T}none" >&6; }
8184   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
8185 do
8186   # Extract the first word of "$ac_prog", so it can be a program name with args.
8187 set dummy $ac_prog; ac_word=$2
8188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8190 if test "${ac_cv_path_TCLSH+set}" = set; then
8191   echo $ECHO_N "(cached) $ECHO_C" >&6
8192 else
8193   case $TCLSH in
8194   [\\/]* | ?:[\\/]*)
8195   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8196   ;;
8197   *)
8198   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8199 for as_dir in $PATH
8200 do
8201   IFS=$as_save_IFS
8202   test -z "$as_dir" && as_dir=.
8203   for ac_exec_ext in '' $ac_executable_extensions; do
8204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8205     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8207     break 2
8208   fi
8209 done
8210 done
8211 IFS=$as_save_IFS
8212
8213   ;;
8214 esac
8215 fi
8216 TCLSH=$ac_cv_path_TCLSH
8217 if test -n "$TCLSH"; then
8218   { echo "$as_me:$LINENO: result: $TCLSH" >&5
8219 echo "${ECHO_T}$TCLSH" >&6; }
8220 else
8221   { echo "$as_me:$LINENO: result: no" >&5
8222 echo "${ECHO_T}no" >&6; }
8223 fi
8224
8225
8226   test -n "$TCLSH" && break
8227 done
8228
8229   if test x"${TCLSH}" = x ; then
8230     ac_cv_path_tclsh='';
8231   else
8232     ac_cv_path_tclsh="${TCLSH}";
8233   fi
8234 else
8235   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8236 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8237   TCLSH="${ac_cv_path_tclsh}"
8238
8239 fi
8240
8241 # Extract the first word of "zip", so it can be a program name with args.
8242 set dummy zip; ac_word=$2
8243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8245 if test "${ac_cv_path_ZIP+set}" = set; then
8246   echo $ECHO_N "(cached) $ECHO_C" >&6
8247 else
8248   case $ZIP in
8249   [\\/]* | ?:[\\/]*)
8250   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8251   ;;
8252   *)
8253   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8254 for as_dir in $PATH
8255 do
8256   IFS=$as_save_IFS
8257   test -z "$as_dir" && as_dir=.
8258   for ac_exec_ext in '' $ac_executable_extensions; do
8259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8260     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8261     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8262     break 2
8263   fi
8264 done
8265 done
8266 IFS=$as_save_IFS
8267
8268   ;;
8269 esac
8270 fi
8271 ZIP=$ac_cv_path_ZIP
8272 if test -n "$ZIP"; then
8273   { echo "$as_me:$LINENO: result: $ZIP" >&5
8274 echo "${ECHO_T}$ZIP" >&6; }
8275 else
8276   { echo "$as_me:$LINENO: result: no" >&5
8277 echo "${ECHO_T}no" >&6; }
8278 fi
8279
8280
8281 for ac_prog in ocamlc
8282 do
8283   # Extract the first word of "$ac_prog", so it can be a program name with args.
8284 set dummy $ac_prog; ac_word=$2
8285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8287 if test "${ac_cv_path_OCAMLC+set}" = set; then
8288   echo $ECHO_N "(cached) $ECHO_C" >&6
8289 else
8290   case $OCAMLC in
8291   [\\/]* | ?:[\\/]*)
8292   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8293   ;;
8294   *)
8295   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8296 for as_dir in $PATH
8297 do
8298   IFS=$as_save_IFS
8299   test -z "$as_dir" && as_dir=.
8300   for ac_exec_ext in '' $ac_executable_extensions; do
8301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8302     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8304     break 2
8305   fi
8306 done
8307 done
8308 IFS=$as_save_IFS
8309
8310   ;;
8311 esac
8312 fi
8313 OCAMLC=$ac_cv_path_OCAMLC
8314 if test -n "$OCAMLC"; then
8315   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8316 echo "${ECHO_T}$OCAMLC" >&6; }
8317 else
8318   { echo "$as_me:$LINENO: result: no" >&5
8319 echo "${ECHO_T}no" >&6; }
8320 fi
8321
8322
8323   test -n "$OCAMLC" && break
8324 done
8325
8326 for ac_prog in ocamlopt
8327 do
8328   # Extract the first word of "$ac_prog", so it can be a program name with args.
8329 set dummy $ac_prog; ac_word=$2
8330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8332 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8333   echo $ECHO_N "(cached) $ECHO_C" >&6
8334 else
8335   case $OCAMLOPT in
8336   [\\/]* | ?:[\\/]*)
8337   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8338   ;;
8339   *)
8340   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8341 for as_dir in $PATH
8342 do
8343   IFS=$as_save_IFS
8344   test -z "$as_dir" && as_dir=.
8345   for ac_exec_ext in '' $ac_executable_extensions; do
8346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8347     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8349     break 2
8350   fi
8351 done
8352 done
8353 IFS=$as_save_IFS
8354
8355   ;;
8356 esac
8357 fi
8358 OCAMLOPT=$ac_cv_path_OCAMLOPT
8359 if test -n "$OCAMLOPT"; then
8360   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8361 echo "${ECHO_T}$OCAMLOPT" >&6; }
8362 else
8363   { echo "$as_me:$LINENO: result: no" >&5
8364 echo "${ECHO_T}no" >&6; }
8365 fi
8366
8367
8368   test -n "$OCAMLOPT" && break
8369 done
8370
8371 for ac_prog in ocamldep
8372 do
8373   # Extract the first word of "$ac_prog", so it can be a program name with args.
8374 set dummy $ac_prog; ac_word=$2
8375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8377 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8378   echo $ECHO_N "(cached) $ECHO_C" >&6
8379 else
8380   case $OCAMLDEP in
8381   [\\/]* | ?:[\\/]*)
8382   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8383   ;;
8384   *)
8385   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8386 for as_dir in $PATH
8387 do
8388   IFS=$as_save_IFS
8389   test -z "$as_dir" && as_dir=.
8390   for ac_exec_ext in '' $ac_executable_extensions; do
8391   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8392     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8393     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8394     break 2
8395   fi
8396 done
8397 done
8398 IFS=$as_save_IFS
8399
8400   ;;
8401 esac
8402 fi
8403 OCAMLDEP=$ac_cv_path_OCAMLDEP
8404 if test -n "$OCAMLDEP"; then
8405   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8406 echo "${ECHO_T}$OCAMLDEP" >&6; }
8407 else
8408   { echo "$as_me:$LINENO: result: no" >&5
8409 echo "${ECHO_T}no" >&6; }
8410 fi
8411
8412
8413   test -n "$OCAMLDEP" && break
8414 done
8415
8416 for ac_prog in ocamldoc
8417 do
8418   # Extract the first word of "$ac_prog", so it can be a program name with args.
8419 set dummy $ac_prog; ac_word=$2
8420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8422 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8423   echo $ECHO_N "(cached) $ECHO_C" >&6
8424 else
8425   case $OCAMLDOC in
8426   [\\/]* | ?:[\\/]*)
8427   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8428   ;;
8429   *)
8430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8431 for as_dir in $PATH
8432 do
8433   IFS=$as_save_IFS
8434   test -z "$as_dir" && as_dir=.
8435   for ac_exec_ext in '' $ac_executable_extensions; do
8436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8437     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8439     break 2
8440   fi
8441 done
8442 done
8443 IFS=$as_save_IFS
8444
8445   ;;
8446 esac
8447 fi
8448 OCAMLDOC=$ac_cv_path_OCAMLDOC
8449 if test -n "$OCAMLDOC"; then
8450   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8451 echo "${ECHO_T}$OCAMLDOC" >&6; }
8452 else
8453   { echo "$as_me:$LINENO: result: no" >&5
8454 echo "${ECHO_T}no" >&6; }
8455 fi
8456
8457
8458   test -n "$OCAMLDOC" && break
8459 done
8460
8461 for ac_prog in gas as
8462 do
8463   # Extract the first word of "$ac_prog", so it can be a program name with args.
8464 set dummy $ac_prog; ac_word=$2
8465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8467 if test "${ac_cv_path_GAS+set}" = set; then
8468   echo $ECHO_N "(cached) $ECHO_C" >&6
8469 else
8470   case $GAS in
8471   [\\/]* | ?:[\\/]*)
8472   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8473   ;;
8474   *)
8475   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8476 for as_dir in $PATH
8477 do
8478   IFS=$as_save_IFS
8479   test -z "$as_dir" && as_dir=.
8480   for ac_exec_ext in '' $ac_executable_extensions; do
8481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8482     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8484     break 2
8485   fi
8486 done
8487 done
8488 IFS=$as_save_IFS
8489
8490   ;;
8491 esac
8492 fi
8493 GAS=$ac_cv_path_GAS
8494 if test -n "$GAS"; then
8495   { echo "$as_me:$LINENO: result: $GAS" >&5
8496 echo "${ECHO_T}$GAS" >&6; }
8497 else
8498   { echo "$as_me:$LINENO: result: no" >&5
8499 echo "${ECHO_T}no" >&6; }
8500 fi
8501
8502
8503   test -n "$GAS" && break
8504 done
8505
8506
8507 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8508 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8509 if test "${llvm_cv_link_use_r+set}" = set; then
8510   echo $ECHO_N "(cached) $ECHO_C" >&6
8511 else
8512    ac_ext=c
8513 ac_cpp='$CPP $CPPFLAGS'
8514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8517
8518   oldcflags="$CFLAGS"
8519   CFLAGS="$CFLAGS -Wl,-R."
8520   cat >conftest.$ac_ext <<_ACEOF
8521 /* confdefs.h.  */
8522 _ACEOF
8523 cat confdefs.h >>conftest.$ac_ext
8524 cat >>conftest.$ac_ext <<_ACEOF
8525 /* end confdefs.h.  */
8526
8527 int
8528 main ()
8529 {
8530 int main() { return 0; }
8531   ;
8532   return 0;
8533 }
8534 _ACEOF
8535 rm -f conftest.$ac_objext conftest$ac_exeext
8536 if { (ac_try="$ac_link"
8537 case "(($ac_try" in
8538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8539   *) ac_try_echo=$ac_try;;
8540 esac
8541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8542   (eval "$ac_link") 2>conftest.er1
8543   ac_status=$?
8544   grep -v '^ *+' conftest.er1 >conftest.err
8545   rm -f conftest.er1
8546   cat conftest.err >&5
8547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548   (exit $ac_status); } &&
8549          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8550   { (case "(($ac_try" in
8551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8552   *) ac_try_echo=$ac_try;;
8553 esac
8554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8555   (eval "$ac_try") 2>&5
8556   ac_status=$?
8557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558   (exit $ac_status); }; } &&
8559          { ac_try='test -s conftest$ac_exeext'
8560   { (case "(($ac_try" in
8561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8562   *) ac_try_echo=$ac_try;;
8563 esac
8564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8565   (eval "$ac_try") 2>&5
8566   ac_status=$?
8567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568   (exit $ac_status); }; }; then
8569   llvm_cv_link_use_r=yes
8570 else
8571   echo "$as_me: failed program was:" >&5
8572 sed 's/^/| /' conftest.$ac_ext >&5
8573
8574         llvm_cv_link_use_r=no
8575 fi
8576
8577 rm -f core conftest.err conftest.$ac_objext \
8578       conftest$ac_exeext conftest.$ac_ext
8579   CFLAGS="$oldcflags"
8580   ac_ext=c
8581 ac_cpp='$CPP $CPPFLAGS'
8582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8585
8586
8587 fi
8588 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8589 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8590 if test "$llvm_cv_link_use_r" = yes ; then
8591
8592 cat >>confdefs.h <<\_ACEOF
8593 #define HAVE_LINK_R 1
8594 _ACEOF
8595
8596   fi
8597
8598
8599 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8600 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8601 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8602   echo $ECHO_N "(cached) $ECHO_C" >&6
8603 else
8604    ac_ext=c
8605 ac_cpp='$CPP $CPPFLAGS'
8606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8609
8610   oldcflags="$CFLAGS"
8611   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8612   cat >conftest.$ac_ext <<_ACEOF
8613 /* confdefs.h.  */
8614 _ACEOF
8615 cat confdefs.h >>conftest.$ac_ext
8616 cat >>conftest.$ac_ext <<_ACEOF
8617 /* end confdefs.h.  */
8618
8619 int
8620 main ()
8621 {
8622 int main() { return 0; }
8623   ;
8624   return 0;
8625 }
8626 _ACEOF
8627 rm -f conftest.$ac_objext conftest$ac_exeext
8628 if { (ac_try="$ac_link"
8629 case "(($ac_try" in
8630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8631   *) ac_try_echo=$ac_try;;
8632 esac
8633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8634   (eval "$ac_link") 2>conftest.er1
8635   ac_status=$?
8636   grep -v '^ *+' conftest.er1 >conftest.err
8637   rm -f conftest.er1
8638   cat conftest.err >&5
8639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640   (exit $ac_status); } &&
8641          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8642   { (case "(($ac_try" in
8643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8644   *) ac_try_echo=$ac_try;;
8645 esac
8646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8647   (eval "$ac_try") 2>&5
8648   ac_status=$?
8649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650   (exit $ac_status); }; } &&
8651          { ac_try='test -s conftest$ac_exeext'
8652   { (case "(($ac_try" in
8653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8654   *) ac_try_echo=$ac_try;;
8655 esac
8656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8657   (eval "$ac_try") 2>&5
8658   ac_status=$?
8659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660   (exit $ac_status); }; }; then
8661   llvm_cv_link_use_export_dynamic=yes
8662 else
8663   echo "$as_me: failed program was:" >&5
8664 sed 's/^/| /' conftest.$ac_ext >&5
8665
8666         llvm_cv_link_use_export_dynamic=no
8667 fi
8668
8669 rm -f core conftest.err conftest.$ac_objext \
8670       conftest$ac_exeext conftest.$ac_ext
8671   CFLAGS="$oldcflags"
8672   ac_ext=c
8673 ac_cpp='$CPP $CPPFLAGS'
8674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8677
8678
8679 fi
8680 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8681 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8682 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8683
8684 cat >>confdefs.h <<\_ACEOF
8685 #define HAVE_LINK_EXPORT_DYNAMIC 1
8686 _ACEOF
8687
8688   fi
8689
8690
8691
8692
8693 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8694 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8695 if test "${ac_cv_c_const+set}" = set; then
8696   echo $ECHO_N "(cached) $ECHO_C" >&6
8697 else
8698   cat >conftest.$ac_ext <<_ACEOF
8699 /* confdefs.h.  */
8700 _ACEOF
8701 cat confdefs.h >>conftest.$ac_ext
8702 cat >>conftest.$ac_ext <<_ACEOF
8703 /* end confdefs.h.  */
8704
8705 int
8706 main ()
8707 {
8708 /* FIXME: Include the comments suggested by Paul. */
8709 #ifndef __cplusplus
8710   /* Ultrix mips cc rejects this.  */
8711   typedef int charset[2];
8712   const charset x;
8713   /* SunOS 4.1.1 cc rejects this.  */
8714   char const *const *ccp;
8715   char **p;
8716   /* NEC SVR4.0.2 mips cc rejects this.  */
8717   struct point {int x, y;};
8718   static struct point const zero = {0,0};
8719   /* AIX XL C 1.02.0.0 rejects this.
8720      It does not let you subtract one const X* pointer from another in
8721      an arm of an if-expression whose if-part is not a constant
8722      expression */
8723   const char *g = "string";
8724   ccp = &g + (g ? g-g : 0);
8725   /* HPUX 7.0 cc rejects these. */
8726   ++ccp;
8727   p = (char**) ccp;
8728   ccp = (char const *const *) p;
8729   { /* SCO 3.2v4 cc rejects this.  */
8730     char *t;
8731     char const *s = 0 ? (char *) 0 : (char const *) 0;
8732
8733     *t++ = 0;
8734     if (s) return 0;
8735   }
8736   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8737     int x[] = {25, 17};
8738     const int *foo = &x[0];
8739     ++foo;
8740   }
8741   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8742     typedef const int *iptr;
8743     iptr p = 0;
8744     ++p;
8745   }
8746   { /* AIX XL C 1.02.0.0 rejects this saying
8747        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8748     struct s { int j; const int *ap[3]; };
8749     struct s *b; b->j = 5;
8750   }
8751   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8752     const int foo = 10;
8753     if (!foo) return 0;
8754   }
8755   return !x[0] && !zero.x;
8756 #endif
8757
8758   ;
8759   return 0;
8760 }
8761 _ACEOF
8762 rm -f conftest.$ac_objext
8763 if { (ac_try="$ac_compile"
8764 case "(($ac_try" in
8765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8766   *) ac_try_echo=$ac_try;;
8767 esac
8768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8769   (eval "$ac_compile") 2>conftest.er1
8770   ac_status=$?
8771   grep -v '^ *+' conftest.er1 >conftest.err
8772   rm -f conftest.er1
8773   cat conftest.err >&5
8774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775   (exit $ac_status); } &&
8776          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8777   { (case "(($ac_try" in
8778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8779   *) ac_try_echo=$ac_try;;
8780 esac
8781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8782   (eval "$ac_try") 2>&5
8783   ac_status=$?
8784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785   (exit $ac_status); }; } &&
8786          { ac_try='test -s conftest.$ac_objext'
8787   { (case "(($ac_try" in
8788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8789   *) ac_try_echo=$ac_try;;
8790 esac
8791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8792   (eval "$ac_try") 2>&5
8793   ac_status=$?
8794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795   (exit $ac_status); }; }; then
8796   ac_cv_c_const=yes
8797 else
8798   echo "$as_me: failed program was:" >&5
8799 sed 's/^/| /' conftest.$ac_ext >&5
8800
8801         ac_cv_c_const=no
8802 fi
8803
8804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8805 fi
8806 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8807 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8808 if test $ac_cv_c_const = no; then
8809
8810 cat >>confdefs.h <<\_ACEOF
8811 #define const
8812 _ACEOF
8813
8814 fi
8815
8816
8817
8818
8819
8820
8821 ac_header_dirent=no
8822 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8823   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8824 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8825 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8827   echo $ECHO_N "(cached) $ECHO_C" >&6
8828 else
8829   cat >conftest.$ac_ext <<_ACEOF
8830 /* confdefs.h.  */
8831 _ACEOF
8832 cat confdefs.h >>conftest.$ac_ext
8833 cat >>conftest.$ac_ext <<_ACEOF
8834 /* end confdefs.h.  */
8835 #include <sys/types.h>
8836 #include <$ac_hdr>
8837
8838 int
8839 main ()
8840 {
8841 if ((DIR *) 0)
8842 return 0;
8843   ;
8844   return 0;
8845 }
8846 _ACEOF
8847 rm -f conftest.$ac_objext
8848 if { (ac_try="$ac_compile"
8849 case "(($ac_try" in
8850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8851   *) ac_try_echo=$ac_try;;
8852 esac
8853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8854   (eval "$ac_compile") 2>conftest.er1
8855   ac_status=$?
8856   grep -v '^ *+' conftest.er1 >conftest.err
8857   rm -f conftest.er1
8858   cat conftest.err >&5
8859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860   (exit $ac_status); } &&
8861          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8862   { (case "(($ac_try" in
8863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8864   *) ac_try_echo=$ac_try;;
8865 esac
8866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8867   (eval "$ac_try") 2>&5
8868   ac_status=$?
8869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870   (exit $ac_status); }; } &&
8871          { ac_try='test -s conftest.$ac_objext'
8872   { (case "(($ac_try" in
8873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8874   *) ac_try_echo=$ac_try;;
8875 esac
8876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8877   (eval "$ac_try") 2>&5
8878   ac_status=$?
8879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880   (exit $ac_status); }; }; then
8881   eval "$as_ac_Header=yes"
8882 else
8883   echo "$as_me: failed program was:" >&5
8884 sed 's/^/| /' conftest.$ac_ext >&5
8885
8886         eval "$as_ac_Header=no"
8887 fi
8888
8889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8890 fi
8891 ac_res=`eval echo '${'$as_ac_Header'}'`
8892                { echo "$as_me:$LINENO: result: $ac_res" >&5
8893 echo "${ECHO_T}$ac_res" >&6; }
8894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8895   cat >>confdefs.h <<_ACEOF
8896 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8897 _ACEOF
8898
8899 ac_header_dirent=$ac_hdr; break
8900 fi
8901
8902 done
8903 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8904 if test $ac_header_dirent = dirent.h; then
8905   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8906 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8907 if test "${ac_cv_search_opendir+set}" = set; then
8908   echo $ECHO_N "(cached) $ECHO_C" >&6
8909 else
8910   ac_func_search_save_LIBS=$LIBS
8911 cat >conftest.$ac_ext <<_ACEOF
8912 /* confdefs.h.  */
8913 _ACEOF
8914 cat confdefs.h >>conftest.$ac_ext
8915 cat >>conftest.$ac_ext <<_ACEOF
8916 /* end confdefs.h.  */
8917
8918 /* Override any GCC internal prototype to avoid an error.
8919    Use char because int might match the return type of a GCC
8920    builtin and then its argument prototype would still apply.  */
8921 #ifdef __cplusplus
8922 extern "C"
8923 #endif
8924 char opendir ();
8925 int
8926 main ()
8927 {
8928 return opendir ();
8929   ;
8930   return 0;
8931 }
8932 _ACEOF
8933 for ac_lib in '' dir; do
8934   if test -z "$ac_lib"; then
8935     ac_res="none required"
8936   else
8937     ac_res=-l$ac_lib
8938     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8939   fi
8940   rm -f conftest.$ac_objext conftest$ac_exeext
8941 if { (ac_try="$ac_link"
8942 case "(($ac_try" in
8943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8944   *) ac_try_echo=$ac_try;;
8945 esac
8946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8947   (eval "$ac_link") 2>conftest.er1
8948   ac_status=$?
8949   grep -v '^ *+' conftest.er1 >conftest.err
8950   rm -f conftest.er1
8951   cat conftest.err >&5
8952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953   (exit $ac_status); } &&
8954          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8955   { (case "(($ac_try" in
8956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8957   *) ac_try_echo=$ac_try;;
8958 esac
8959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8960   (eval "$ac_try") 2>&5
8961   ac_status=$?
8962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963   (exit $ac_status); }; } &&
8964          { ac_try='test -s conftest$ac_exeext'
8965   { (case "(($ac_try" in
8966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8967   *) ac_try_echo=$ac_try;;
8968 esac
8969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8970   (eval "$ac_try") 2>&5
8971   ac_status=$?
8972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973   (exit $ac_status); }; }; then
8974   ac_cv_search_opendir=$ac_res
8975 else
8976   echo "$as_me: failed program was:" >&5
8977 sed 's/^/| /' conftest.$ac_ext >&5
8978
8979
8980 fi
8981
8982 rm -f core conftest.err conftest.$ac_objext \
8983       conftest$ac_exeext
8984   if test "${ac_cv_search_opendir+set}" = set; then
8985   break
8986 fi
8987 done
8988 if test "${ac_cv_search_opendir+set}" = set; then
8989   :
8990 else
8991   ac_cv_search_opendir=no
8992 fi
8993 rm conftest.$ac_ext
8994 LIBS=$ac_func_search_save_LIBS
8995 fi
8996 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8997 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8998 ac_res=$ac_cv_search_opendir
8999 if test "$ac_res" != no; then
9000   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9001
9002 fi
9003
9004 else
9005   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9006 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9007 if test "${ac_cv_search_opendir+set}" = set; then
9008   echo $ECHO_N "(cached) $ECHO_C" >&6
9009 else
9010   ac_func_search_save_LIBS=$LIBS
9011 cat >conftest.$ac_ext <<_ACEOF
9012 /* confdefs.h.  */
9013 _ACEOF
9014 cat confdefs.h >>conftest.$ac_ext
9015 cat >>conftest.$ac_ext <<_ACEOF
9016 /* end confdefs.h.  */
9017
9018 /* Override any GCC internal prototype to avoid an error.
9019    Use char because int might match the return type of a GCC
9020    builtin and then its argument prototype would still apply.  */
9021 #ifdef __cplusplus
9022 extern "C"
9023 #endif
9024 char opendir ();
9025 int
9026 main ()
9027 {
9028 return opendir ();
9029   ;
9030   return 0;
9031 }
9032 _ACEOF
9033 for ac_lib in '' x; do
9034   if test -z "$ac_lib"; then
9035     ac_res="none required"
9036   else
9037     ac_res=-l$ac_lib
9038     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9039   fi
9040   rm -f conftest.$ac_objext conftest$ac_exeext
9041 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
9048   ac_status=$?
9049   grep -v '^ *+' conftest.er1 >conftest.err
9050   rm -f conftest.er1
9051   cat conftest.err >&5
9052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053   (exit $ac_status); } &&
9054          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9055   { (case "(($ac_try" in
9056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9057   *) ac_try_echo=$ac_try;;
9058 esac
9059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9060   (eval "$ac_try") 2>&5
9061   ac_status=$?
9062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063   (exit $ac_status); }; } &&
9064          { ac_try='test -s conftest$ac_exeext'
9065   { (case "(($ac_try" in
9066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9067   *) ac_try_echo=$ac_try;;
9068 esac
9069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9070   (eval "$ac_try") 2>&5
9071   ac_status=$?
9072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073   (exit $ac_status); }; }; then
9074   ac_cv_search_opendir=$ac_res
9075 else
9076   echo "$as_me: failed program was:" >&5
9077 sed 's/^/| /' conftest.$ac_ext >&5
9078
9079
9080 fi
9081
9082 rm -f core conftest.err conftest.$ac_objext \
9083       conftest$ac_exeext
9084   if test "${ac_cv_search_opendir+set}" = set; then
9085   break
9086 fi
9087 done
9088 if test "${ac_cv_search_opendir+set}" = set; then
9089   :
9090 else
9091   ac_cv_search_opendir=no
9092 fi
9093 rm conftest.$ac_ext
9094 LIBS=$ac_func_search_save_LIBS
9095 fi
9096 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9097 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9098 ac_res=$ac_cv_search_opendir
9099 if test "$ac_res" != no; then
9100   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9101
9102 fi
9103
9104 fi
9105
9106
9107 for ac_header in dlfcn.h
9108 do
9109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9111   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9114   echo $ECHO_N "(cached) $ECHO_C" >&6
9115 fi
9116 ac_res=`eval echo '${'$as_ac_Header'}'`
9117                { echo "$as_me:$LINENO: result: $ac_res" >&5
9118 echo "${ECHO_T}$ac_res" >&6; }
9119 else
9120   # Is the header compilable?
9121 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9122 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9123 cat >conftest.$ac_ext <<_ACEOF
9124 /* confdefs.h.  */
9125 _ACEOF
9126 cat confdefs.h >>conftest.$ac_ext
9127 cat >>conftest.$ac_ext <<_ACEOF
9128 /* end confdefs.h.  */
9129 $ac_includes_default
9130 #include <$ac_header>
9131 _ACEOF
9132 rm -f conftest.$ac_objext
9133 if { (ac_try="$ac_compile"
9134 case "(($ac_try" in
9135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9136   *) ac_try_echo=$ac_try;;
9137 esac
9138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9139   (eval "$ac_compile") 2>conftest.er1
9140   ac_status=$?
9141   grep -v '^ *+' conftest.er1 >conftest.err
9142   rm -f conftest.er1
9143   cat conftest.err >&5
9144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145   (exit $ac_status); } &&
9146          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9147   { (case "(($ac_try" in
9148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9149   *) ac_try_echo=$ac_try;;
9150 esac
9151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9152   (eval "$ac_try") 2>&5
9153   ac_status=$?
9154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155   (exit $ac_status); }; } &&
9156          { ac_try='test -s conftest.$ac_objext'
9157   { (case "(($ac_try" in
9158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9159   *) ac_try_echo=$ac_try;;
9160 esac
9161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9162   (eval "$ac_try") 2>&5
9163   ac_status=$?
9164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165   (exit $ac_status); }; }; then
9166   ac_header_compiler=yes
9167 else
9168   echo "$as_me: failed program was:" >&5
9169 sed 's/^/| /' conftest.$ac_ext >&5
9170
9171         ac_header_compiler=no
9172 fi
9173
9174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9175 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9176 echo "${ECHO_T}$ac_header_compiler" >&6; }
9177
9178 # Is the header present?
9179 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9180 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9181 cat >conftest.$ac_ext <<_ACEOF
9182 /* confdefs.h.  */
9183 _ACEOF
9184 cat confdefs.h >>conftest.$ac_ext
9185 cat >>conftest.$ac_ext <<_ACEOF
9186 /* end confdefs.h.  */
9187 #include <$ac_header>
9188 _ACEOF
9189 if { (ac_try="$ac_cpp conftest.$ac_ext"
9190 case "(($ac_try" in
9191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9192   *) ac_try_echo=$ac_try;;
9193 esac
9194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9195   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9196   ac_status=$?
9197   grep -v '^ *+' conftest.er1 >conftest.err
9198   rm -f conftest.er1
9199   cat conftest.err >&5
9200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201   (exit $ac_status); } >/dev/null; then
9202   if test -s conftest.err; then
9203     ac_cpp_err=$ac_c_preproc_warn_flag
9204     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9205   else
9206     ac_cpp_err=
9207   fi
9208 else
9209   ac_cpp_err=yes
9210 fi
9211 if test -z "$ac_cpp_err"; then
9212   ac_header_preproc=yes
9213 else
9214   echo "$as_me: failed program was:" >&5
9215 sed 's/^/| /' conftest.$ac_ext >&5
9216
9217   ac_header_preproc=no
9218 fi
9219
9220 rm -f conftest.err conftest.$ac_ext
9221 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9222 echo "${ECHO_T}$ac_header_preproc" >&6; }
9223
9224 # So?  What about this header?
9225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9226   yes:no: )
9227     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9228 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9229     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9230 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9231     ac_header_preproc=yes
9232     ;;
9233   no:yes:* )
9234     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9235 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9236     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9237 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9238     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9239 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9240     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9241 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9242     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9243 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9244     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9245 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9246     ( cat <<\_ASBOX
9247 ## ----------------------------------- ##
9248 ## Report this to llvmbugs@cs.uiuc.edu ##
9249 ## ----------------------------------- ##
9250 _ASBOX
9251      ) | sed "s/^/$as_me: WARNING:     /" >&2
9252     ;;
9253 esac
9254 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9257   echo $ECHO_N "(cached) $ECHO_C" >&6
9258 else
9259   eval "$as_ac_Header=\$ac_header_preproc"
9260 fi
9261 ac_res=`eval echo '${'$as_ac_Header'}'`
9262                { echo "$as_me:$LINENO: result: $ac_res" >&5
9263 echo "${ECHO_T}$ac_res" >&6; }
9264
9265 fi
9266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9267   cat >>confdefs.h <<_ACEOF
9268 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9269 _ACEOF
9270
9271 fi
9272
9273 done
9274
9275 # Check whether --enable-ltdl-install was given.
9276 if test "${enable_ltdl_install+set}" = set; then
9277   enableval=$enable_ltdl_install;
9278 fi
9279
9280
9281
9282
9283 if test x"${enable_ltdl_install-no}" != xno; then
9284   INSTALL_LTDL_TRUE=
9285   INSTALL_LTDL_FALSE='#'
9286 else
9287   INSTALL_LTDL_TRUE='#'
9288   INSTALL_LTDL_FALSE=
9289 fi
9290
9291
9292
9293 if test x"${enable_ltdl_convenience-no}" != xno; then
9294   CONVENIENCE_LTDL_TRUE=
9295   CONVENIENCE_LTDL_FALSE='#'
9296 else
9297   CONVENIENCE_LTDL_TRUE='#'
9298   CONVENIENCE_LTDL_FALSE=
9299 fi
9300
9301
9302 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9303 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9304 library_names_spec=
9305 libname_spec='lib$name'
9306 soname_spec=
9307 shrext_cmds=".so"
9308 postinstall_cmds=
9309 postuninstall_cmds=
9310 finish_cmds=
9311 finish_eval=
9312 shlibpath_var=
9313 shlibpath_overrides_runpath=unknown
9314 version_type=none
9315 dynamic_linker="$host_os ld.so"
9316 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9317 if test "$GCC" = yes; then
9318   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9319   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9320     # if the path contains ";" then we assume it to be the separator
9321     # otherwise default to the standard path separator (i.e. ":") - it is
9322     # assumed that no part of a normal pathname contains ";" but that should
9323     # okay in the real world where ";" in dirpaths is itself problematic.
9324     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9325   else
9326     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9327   fi
9328 else
9329   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9330 fi
9331 need_lib_prefix=unknown
9332 hardcode_into_libs=no
9333
9334 # when you set need_version to no, make sure it does not cause -set_version
9335 # flags to be left without arguments
9336 need_version=unknown
9337
9338 case $host_os in
9339 aix3*)
9340   version_type=linux
9341   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9342   shlibpath_var=LIBPATH
9343
9344   # AIX 3 has no versioning support, so we append a major version to the name.
9345   soname_spec='${libname}${release}${shared_ext}$major'
9346   ;;
9347
9348 aix4* | aix5*)
9349   version_type=linux
9350   need_lib_prefix=no
9351   need_version=no
9352   hardcode_into_libs=yes
9353   if test "$host_cpu" = ia64; then
9354     # AIX 5 supports IA64
9355     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9356     shlibpath_var=LD_LIBRARY_PATH
9357   else
9358     # With GCC up to 2.95.x, collect2 would create an import file
9359     # for dependence libraries.  The import file would start with
9360     # the line `#! .'.  This would cause the generated library to
9361     # depend on `.', always an invalid library.  This was fixed in
9362     # development snapshots of GCC prior to 3.0.
9363     case $host_os in
9364       aix4 | aix4.[01] | aix4.[01].*)
9365       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9366            echo ' yes '
9367            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9368         :
9369       else
9370         can_build_shared=no
9371       fi
9372       ;;
9373     esac
9374     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9375     # soname into executable. Probably we can add versioning support to
9376     # collect2, so additional links can be useful in future.
9377     if test "$aix_use_runtimelinking" = yes; then
9378       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9379       # instead of lib<name>.a to let people know that these are not
9380       # typical AIX shared libraries.
9381       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9382     else
9383       # We preserve .a as extension for shared libraries through AIX4.2
9384       # and later when we are not doing run time linking.
9385       library_names_spec='${libname}${release}.a $libname.a'
9386       soname_spec='${libname}${release}${shared_ext}$major'
9387     fi
9388     shlibpath_var=LIBPATH
9389   fi
9390   ;;
9391
9392 amigaos*)
9393   library_names_spec='$libname.ixlibrary $libname.a'
9394   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9395   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'
9396   ;;
9397
9398 beos*)
9399   library_names_spec='${libname}${shared_ext}'
9400   dynamic_linker="$host_os ld.so"
9401   shlibpath_var=LIBRARY_PATH
9402   ;;
9403
9404 bsdi[45]*)
9405   version_type=linux
9406   need_version=no
9407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9408   soname_spec='${libname}${release}${shared_ext}$major'
9409   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9410   shlibpath_var=LD_LIBRARY_PATH
9411   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9412   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9413   # the default ld.so.conf also contains /usr/contrib/lib and
9414   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9415   # libtool to hard-code these into programs
9416   ;;
9417
9418 cygwin* | mingw* | pw32*)
9419   version_type=windows
9420   shrext_cmds=".dll"
9421   need_version=no
9422   need_lib_prefix=no
9423
9424   case $GCC,$host_os in
9425   yes,cygwin* | yes,mingw* | yes,pw32*)
9426     library_names_spec='$libname.dll.a'
9427     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9428     postinstall_cmds='base_file=`basename \${file}`~
9429       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9430       dldir=$destdir/`dirname \$dlpath`~
9431       test -d \$dldir || mkdir -p \$dldir~
9432       $install_prog $dir/$dlname \$dldir/$dlname~
9433       chmod a+x \$dldir/$dlname'
9434     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9435       dlpath=$dir/\$dldll~
9436        $rm \$dlpath'
9437     shlibpath_overrides_runpath=yes
9438
9439     case $host_os in
9440     cygwin*)
9441       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9442       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9443       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9444       ;;
9445     mingw*)
9446       # MinGW DLLs use traditional 'lib' prefix
9447       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9448       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9449       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9450         # It is most probably a Windows format PATH printed by
9451         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9452         # path with ; separators, and with drive letters. We can handle the
9453         # drive letters (cygwin fileutils understands them), so leave them,
9454         # especially as we might pass files found there to a mingw objdump,
9455         # which wouldn't understand a cygwinified path. Ahh.
9456         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9457       else
9458         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9459       fi
9460       ;;
9461     pw32*)
9462       # pw32 DLLs use 'pw' prefix rather than 'lib'
9463       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9464       ;;
9465     esac
9466     ;;
9467
9468   *)
9469     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9470     ;;
9471   esac
9472   dynamic_linker='Win32 ld.exe'
9473   # FIXME: first we should search . and the directory the executable is in
9474   shlibpath_var=PATH
9475   ;;
9476
9477 darwin* | rhapsody*)
9478   dynamic_linker="$host_os dyld"
9479   version_type=darwin
9480   need_lib_prefix=no
9481   need_version=no
9482   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9483   soname_spec='${libname}${release}${major}$shared_ext'
9484   shlibpath_overrides_runpath=yes
9485   shlibpath_var=DYLD_LIBRARY_PATH
9486   shrext_cmds='.dylib'
9487   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9488   if test "$GCC" = yes; then
9489     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"`
9490   else
9491     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9492   fi
9493   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9494   ;;
9495
9496 dgux*)
9497   version_type=linux
9498   need_lib_prefix=no
9499   need_version=no
9500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9501   soname_spec='${libname}${release}${shared_ext}$major'
9502   shlibpath_var=LD_LIBRARY_PATH
9503   ;;
9504
9505 freebsd1*)
9506   dynamic_linker=no
9507   ;;
9508
9509 kfreebsd*-gnu)
9510   version_type=linux
9511   need_lib_prefix=no
9512   need_version=no
9513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9514   soname_spec='${libname}${release}${shared_ext}$major'
9515   shlibpath_var=LD_LIBRARY_PATH
9516   shlibpath_overrides_runpath=no
9517   hardcode_into_libs=yes
9518   dynamic_linker='GNU ld.so'
9519   ;;
9520
9521 freebsd* | dragonfly*)
9522   # DragonFly does not have aout.  When/if they implement a new
9523   # versioning mechanism, adjust this.
9524   if test -x /usr/bin/objformat; then
9525     objformat=`/usr/bin/objformat`
9526   else
9527     case $host_os in
9528     freebsd[123]*) objformat=aout ;;
9529     *) objformat=elf ;;
9530     esac
9531   fi
9532   version_type=freebsd-$objformat
9533   case $version_type in
9534     freebsd-elf*)
9535       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9536       need_version=no
9537       need_lib_prefix=no
9538       ;;
9539     freebsd-*)
9540       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9541       need_version=yes
9542       ;;
9543   esac
9544   shlibpath_var=LD_LIBRARY_PATH
9545   case $host_os in
9546   freebsd2*)
9547     shlibpath_overrides_runpath=yes
9548     ;;
9549   freebsd3.[01]* | freebsdelf3.[01]*)
9550     shlibpath_overrides_runpath=yes
9551     hardcode_into_libs=yes
9552     ;;
9553   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9554   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9555     shlibpath_overrides_runpath=no
9556     hardcode_into_libs=yes
9557     ;;
9558   freebsd*) # from 4.6 on
9559     shlibpath_overrides_runpath=yes
9560     hardcode_into_libs=yes
9561     ;;
9562   esac
9563   ;;
9564
9565 gnu*)
9566   version_type=linux
9567   need_lib_prefix=no
9568   need_version=no
9569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9570   soname_spec='${libname}${release}${shared_ext}$major'
9571   shlibpath_var=LD_LIBRARY_PATH
9572   hardcode_into_libs=yes
9573   ;;
9574
9575 hpux9* | hpux10* | hpux11*)
9576   # Give a soname corresponding to the major version so that dld.sl refuses to
9577   # link against other versions.
9578   version_type=sunos
9579   need_lib_prefix=no
9580   need_version=no
9581   case $host_cpu in
9582   ia64*)
9583     shrext_cmds='.so'
9584     hardcode_into_libs=yes
9585     dynamic_linker="$host_os dld.so"
9586     shlibpath_var=LD_LIBRARY_PATH
9587     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9588     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9589     soname_spec='${libname}${release}${shared_ext}$major'
9590     if test "X$HPUX_IA64_MODE" = X32; then
9591       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9592     else
9593       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9594     fi
9595     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9596     ;;
9597    hppa*64*)
9598      shrext_cmds='.sl'
9599      hardcode_into_libs=yes
9600      dynamic_linker="$host_os dld.sl"
9601      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9602      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9603      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9604      soname_spec='${libname}${release}${shared_ext}$major'
9605      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9606      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9607      ;;
9608    *)
9609     shrext_cmds='.sl'
9610     dynamic_linker="$host_os dld.sl"
9611     shlibpath_var=SHLIB_PATH
9612     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9613     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9614     soname_spec='${libname}${release}${shared_ext}$major'
9615     ;;
9616   esac
9617   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9618   postinstall_cmds='chmod 555 $lib'
9619   ;;
9620
9621 interix3*)
9622   version_type=linux
9623   need_lib_prefix=no
9624   need_version=no
9625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9626   soname_spec='${libname}${release}${shared_ext}$major'
9627   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9628   shlibpath_var=LD_LIBRARY_PATH
9629   shlibpath_overrides_runpath=no
9630   hardcode_into_libs=yes
9631   ;;
9632
9633 irix5* | irix6* | nonstopux*)
9634   case $host_os in
9635     nonstopux*) version_type=nonstopux ;;
9636     *)
9637         if test "$lt_cv_prog_gnu_ld" = yes; then
9638                 version_type=linux
9639         else
9640                 version_type=irix
9641         fi ;;
9642   esac
9643   need_lib_prefix=no
9644   need_version=no
9645   soname_spec='${libname}${release}${shared_ext}$major'
9646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9647   case $host_os in
9648   irix5* | nonstopux*)
9649     libsuff= shlibsuff=
9650     ;;
9651   *)
9652     case $LD in # libtool.m4 will add one of these switches to LD
9653     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9654       libsuff= shlibsuff= libmagic=32-bit;;
9655     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9656       libsuff=32 shlibsuff=N32 libmagic=N32;;
9657     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9658       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9659     *) libsuff= shlibsuff= libmagic=never-match;;
9660     esac
9661     ;;
9662   esac
9663   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9664   shlibpath_overrides_runpath=no
9665   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9666   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9667   hardcode_into_libs=yes
9668   ;;
9669
9670 # No shared lib support for Linux oldld, aout, or coff.
9671 linux*oldld* | linux*aout* | linux*coff*)
9672   dynamic_linker=no
9673   ;;
9674
9675 # This must be Linux ELF.
9676 linux*)
9677   version_type=linux
9678   need_lib_prefix=no
9679   need_version=no
9680   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9681   soname_spec='${libname}${release}${shared_ext}$major'
9682   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9683   shlibpath_var=LD_LIBRARY_PATH
9684   shlibpath_overrides_runpath=no
9685   # This implies no fast_install, which is unacceptable.
9686   # Some rework will be needed to allow for fast_install
9687   # before this can be enabled.
9688   hardcode_into_libs=yes
9689
9690   # Append ld.so.conf contents to the search path
9691   if test -f /etc/ld.so.conf; then
9692     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' ' '`
9693     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9694   fi
9695
9696   # We used to test for /lib/ld.so.1 and disable shared libraries on
9697   # powerpc, because MkLinux only supported shared libraries with the
9698   # GNU dynamic linker.  Since this was broken with cross compilers,
9699   # most powerpc-linux boxes support dynamic linking these days and
9700   # people can always --disable-shared, the test was removed, and we
9701   # assume the GNU/Linux dynamic linker is in use.
9702   dynamic_linker='GNU/Linux ld.so'
9703   ;;
9704
9705 knetbsd*-gnu)
9706   version_type=linux
9707   need_lib_prefix=no
9708   need_version=no
9709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9710   soname_spec='${libname}${release}${shared_ext}$major'
9711   shlibpath_var=LD_LIBRARY_PATH
9712   shlibpath_overrides_runpath=no
9713   hardcode_into_libs=yes
9714   dynamic_linker='GNU ld.so'
9715   ;;
9716
9717 netbsd*)
9718   version_type=sunos
9719   need_lib_prefix=no
9720   need_version=no
9721   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9722     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9723     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9724     dynamic_linker='NetBSD (a.out) ld.so'
9725   else
9726     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9727     soname_spec='${libname}${release}${shared_ext}$major'
9728     dynamic_linker='NetBSD ld.elf_so'
9729   fi
9730   shlibpath_var=LD_LIBRARY_PATH
9731   shlibpath_overrides_runpath=yes
9732   hardcode_into_libs=yes
9733   ;;
9734
9735 newsos6)
9736   version_type=linux
9737   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9738   shlibpath_var=LD_LIBRARY_PATH
9739   shlibpath_overrides_runpath=yes
9740   ;;
9741
9742 nto-qnx*)
9743   version_type=linux
9744   need_lib_prefix=no
9745   need_version=no
9746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9747   soname_spec='${libname}${release}${shared_ext}$major'
9748   shlibpath_var=LD_LIBRARY_PATH
9749   shlibpath_overrides_runpath=yes
9750   ;;
9751
9752 openbsd*)
9753   version_type=sunos
9754   sys_lib_dlsearch_path_spec="/usr/lib"
9755   need_lib_prefix=no
9756   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9757   case $host_os in
9758     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9759     *)                         need_version=no  ;;
9760   esac
9761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9762   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9763   shlibpath_var=LD_LIBRARY_PATH
9764   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9765     case $host_os in
9766       openbsd2.[89] | openbsd2.[89].*)
9767         shlibpath_overrides_runpath=no
9768         ;;
9769       *)
9770         shlibpath_overrides_runpath=yes
9771         ;;
9772       esac
9773   else
9774     shlibpath_overrides_runpath=yes
9775   fi
9776   ;;
9777
9778 os2*)
9779   libname_spec='$name'
9780   shrext_cmds=".dll"
9781   need_lib_prefix=no
9782   library_names_spec='$libname${shared_ext} $libname.a'
9783   dynamic_linker='OS/2 ld.exe'
9784   shlibpath_var=LIBPATH
9785   ;;
9786
9787 osf3* | osf4* | osf5*)
9788   version_type=osf
9789   need_lib_prefix=no
9790   need_version=no
9791   soname_spec='${libname}${release}${shared_ext}$major'
9792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9793   shlibpath_var=LD_LIBRARY_PATH
9794   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9795   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9796   ;;
9797
9798 solaris*)
9799   version_type=linux
9800   need_lib_prefix=no
9801   need_version=no
9802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9803   soname_spec='${libname}${release}${shared_ext}$major'
9804   shlibpath_var=LD_LIBRARY_PATH
9805   shlibpath_overrides_runpath=yes
9806   hardcode_into_libs=yes
9807   # ldd complains unless libraries are executable
9808   postinstall_cmds='chmod +x $lib'
9809   ;;
9810
9811 sunos4*)
9812   version_type=sunos
9813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9814   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9815   shlibpath_var=LD_LIBRARY_PATH
9816   shlibpath_overrides_runpath=yes
9817   if test "$with_gnu_ld" = yes; then
9818     need_lib_prefix=no
9819   fi
9820   need_version=yes
9821   ;;
9822
9823 sysv4 | sysv4.3*)
9824   version_type=linux
9825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9826   soname_spec='${libname}${release}${shared_ext}$major'
9827   shlibpath_var=LD_LIBRARY_PATH
9828   case $host_vendor in
9829     sni)
9830       shlibpath_overrides_runpath=no
9831       need_lib_prefix=no
9832       export_dynamic_flag_spec='${wl}-Blargedynsym'
9833       runpath_var=LD_RUN_PATH
9834       ;;
9835     siemens)
9836       need_lib_prefix=no
9837       ;;
9838     motorola)
9839       need_lib_prefix=no
9840       need_version=no
9841       shlibpath_overrides_runpath=no
9842       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9843       ;;
9844   esac
9845   ;;
9846
9847 sysv4*MP*)
9848   if test -d /usr/nec ;then
9849     version_type=linux
9850     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9851     soname_spec='$libname${shared_ext}.$major'
9852     shlibpath_var=LD_LIBRARY_PATH
9853   fi
9854   ;;
9855
9856 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9857   version_type=freebsd-elf
9858   need_lib_prefix=no
9859   need_version=no
9860   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9861   soname_spec='${libname}${release}${shared_ext}$major'
9862   shlibpath_var=LD_LIBRARY_PATH
9863   hardcode_into_libs=yes
9864   if test "$with_gnu_ld" = yes; then
9865     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9866     shlibpath_overrides_runpath=no
9867   else
9868     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9869     shlibpath_overrides_runpath=yes
9870     case $host_os in
9871       sco3.2v5*)
9872         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9873         ;;
9874     esac
9875   fi
9876   sys_lib_dlsearch_path_spec='/usr/lib'
9877   ;;
9878
9879 uts4*)
9880   version_type=linux
9881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9882   soname_spec='${libname}${release}${shared_ext}$major'
9883   shlibpath_var=LD_LIBRARY_PATH
9884   ;;
9885
9886 *)
9887   dynamic_linker=no
9888   ;;
9889 esac
9890 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9891 echo "${ECHO_T}$dynamic_linker" >&6; }
9892 test "$dynamic_linker" = no && can_build_shared=no
9893
9894 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9895 if test "$GCC" = yes; then
9896   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9897 fi
9898
9899
9900 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9901 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9902 if test "${libltdl_cv_shlibext+set}" = set; then
9903   echo $ECHO_N "(cached) $ECHO_C" >&6
9904 else
9905
9906 module=yes
9907 eval libltdl_cv_shlibext=$shrext_cmds
9908
9909 fi
9910 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9911 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9912 if test -n "$libltdl_cv_shlibext"; then
9913
9914 cat >>confdefs.h <<_ACEOF
9915 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9916 _ACEOF
9917
9918 fi
9919
9920
9921 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9922 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9923 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9924   echo $ECHO_N "(cached) $ECHO_C" >&6
9925 else
9926   libltdl_cv_shlibpath_var="$shlibpath_var"
9927 fi
9928 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9929 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9930 if test -n "$libltdl_cv_shlibpath_var"; then
9931
9932 cat >>confdefs.h <<_ACEOF
9933 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9934 _ACEOF
9935
9936 fi
9937
9938
9939 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9940 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9941 if test "${libltdl_cv_sys_search_path+set}" = set; then
9942   echo $ECHO_N "(cached) $ECHO_C" >&6
9943 else
9944   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9945 fi
9946 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9947 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9948 if test -n "$libltdl_cv_sys_search_path"; then
9949   sys_search_path=
9950   for dir in $libltdl_cv_sys_search_path; do
9951     if test -z "$sys_search_path"; then
9952       sys_search_path="$dir"
9953     else
9954       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9955     fi
9956   done
9957
9958 cat >>confdefs.h <<_ACEOF
9959 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9960 _ACEOF
9961
9962 fi
9963
9964 { echo "$as_me:$LINENO: checking for objdir" >&5
9965 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9966 if test "${libltdl_cv_objdir+set}" = set; then
9967   echo $ECHO_N "(cached) $ECHO_C" >&6
9968 else
9969   libltdl_cv_objdir="$objdir"
9970   if test -n "$objdir"; then
9971     :
9972   else
9973     rm -f .libs 2>/dev/null
9974     mkdir .libs 2>/dev/null
9975     if test -d .libs; then
9976       libltdl_cv_objdir=.libs
9977     else
9978       # MS-DOS does not allow filenames that begin with a dot.
9979       libltdl_cv_objdir=_libs
9980     fi
9981   rmdir .libs 2>/dev/null
9982   fi
9983
9984 fi
9985 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9986 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9987
9988 cat >>confdefs.h <<_ACEOF
9989 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9990 _ACEOF
9991
9992
9993
9994
9995
9996
9997 # Check for command to grab the raw symbol name followed by C symbol from nm.
9998 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9999 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10000 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10001   echo $ECHO_N "(cached) $ECHO_C" >&6
10002 else
10003
10004 # These are sane defaults that work on at least a few old systems.
10005 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10006
10007 # Character class describing NM global symbol codes.
10008 symcode='[BCDEGRST]'
10009
10010 # Regexp to match symbols that can be accessed directly from C.
10011 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10012
10013 # Transform an extracted symbol line into a proper C declaration
10014 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10015
10016 # Transform an extracted symbol line into symbol name and symbol address
10017 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'"
10018
10019 # Define system-specific variables.
10020 case $host_os in
10021 aix*)
10022   symcode='[BCDT]'
10023   ;;
10024 cygwin* | mingw* | pw32*)
10025   symcode='[ABCDGISTW]'
10026   ;;
10027 hpux*) # Its linker distinguishes data from code symbols
10028   if test "$host_cpu" = ia64; then
10029     symcode='[ABCDEGRST]'
10030   fi
10031   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10032   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'"
10033   ;;
10034 linux*)
10035   if test "$host_cpu" = ia64; then
10036     symcode='[ABCDGIRSTW]'
10037     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10038     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'"
10039   fi
10040   ;;
10041 irix* | nonstopux*)
10042   symcode='[BCDEGRST]'
10043   ;;
10044 osf*)
10045   symcode='[BCDEGQRST]'
10046   ;;
10047 solaris*)
10048   symcode='[BDRT]'
10049   ;;
10050 sco3.2v5*)
10051   symcode='[DT]'
10052   ;;
10053 sysv4.2uw2*)
10054   symcode='[DT]'
10055   ;;
10056 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10057   symcode='[ABDT]'
10058   ;;
10059 sysv4)
10060   symcode='[DFNSTU]'
10061   ;;
10062 esac
10063
10064 # Handle CRLF in mingw tool chain
10065 opt_cr=
10066 case $build_os in
10067 mingw*)
10068   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10069   ;;
10070 esac
10071
10072 # If we're using GNU nm, then use its standard symbol codes.
10073 case `$NM -V 2>&1` in
10074 *GNU* | *'with BFD'*)
10075   symcode='[ABCDGIRSTW]' ;;
10076 esac
10077
10078 # Try without a prefix undercore, then with it.
10079 for ac_symprfx in "" "_"; do
10080
10081   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10082   symxfrm="\\1 $ac_symprfx\\2 \\2"
10083
10084   # Write the raw and C identifiers.
10085   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10086
10087   # Check to see that the pipe works correctly.
10088   pipe_works=no
10089
10090   rm -f conftest*
10091   cat > conftest.$ac_ext <<EOF
10092 #ifdef __cplusplus
10093 extern "C" {
10094 #endif
10095 char nm_test_var;
10096 void nm_test_func(){}
10097 #ifdef __cplusplus
10098 }
10099 #endif
10100 int main(){nm_test_var='a';nm_test_func();return(0);}
10101 EOF
10102
10103   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10104   (eval $ac_compile) 2>&5
10105   ac_status=$?
10106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107   (exit $ac_status); }; then
10108     # Now try to grab the symbols.
10109     nlist=conftest.nm
10110     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10111   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10112   ac_status=$?
10113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114   (exit $ac_status); } && test -s "$nlist"; then
10115       # Try sorting and uniquifying the output.
10116       if sort "$nlist" | uniq > "$nlist"T; then
10117         mv -f "$nlist"T "$nlist"
10118       else
10119         rm -f "$nlist"T
10120       fi
10121
10122       # Make sure that we snagged all the symbols we need.
10123       if grep ' nm_test_var$' "$nlist" >/dev/null; then
10124         if grep ' nm_test_func$' "$nlist" >/dev/null; then
10125           cat <<EOF > conftest.$ac_ext
10126 #ifdef __cplusplus
10127 extern "C" {
10128 #endif
10129
10130 EOF
10131           # Now generate the symbol file.
10132           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10133
10134           cat <<EOF >> conftest.$ac_ext
10135 #if defined (__STDC__) && __STDC__
10136 # define lt_ptr_t void *
10137 #else
10138 # define lt_ptr_t char *
10139 # define const
10140 #endif
10141
10142 /* The mapping between symbol names and symbols. */
10143 const struct {
10144   const char *name;
10145   lt_ptr_t address;
10146 }
10147 lt_preloaded_symbols[] =
10148 {
10149 EOF
10150           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10151           cat <<\EOF >> conftest.$ac_ext
10152   {0, (lt_ptr_t) 0}
10153 };
10154
10155 #ifdef __cplusplus
10156 }
10157 #endif
10158 EOF
10159           # Now try linking the two files.
10160           mv conftest.$ac_objext conftstm.$ac_objext
10161           lt_save_LIBS="$LIBS"
10162           lt_save_CFLAGS="$CFLAGS"
10163           LIBS="conftstm.$ac_objext"
10164           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10165           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10166   (eval $ac_link) 2>&5
10167   ac_status=$?
10168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169   (exit $ac_status); } && test -s conftest${ac_exeext}; then
10170             pipe_works=yes
10171           fi
10172           LIBS="$lt_save_LIBS"
10173           CFLAGS="$lt_save_CFLAGS"
10174         else
10175           echo "cannot find nm_test_func in $nlist" >&5
10176         fi
10177       else
10178         echo "cannot find nm_test_var in $nlist" >&5
10179       fi
10180     else
10181       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10182     fi
10183   else
10184     echo "$progname: failed program was:" >&5
10185     cat conftest.$ac_ext >&5
10186   fi
10187   rm -f conftest* conftst*
10188
10189   # Do not use the global_symbol_pipe unless it works.
10190   if test "$pipe_works" = yes; then
10191     break
10192   else
10193     lt_cv_sys_global_symbol_pipe=
10194   fi
10195 done
10196
10197 fi
10198
10199 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10200   lt_cv_sys_global_symbol_to_cdecl=
10201 fi
10202 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10203   { echo "$as_me:$LINENO: result: failed" >&5
10204 echo "${ECHO_T}failed" >&6; }
10205 else
10206   { echo "$as_me:$LINENO: result: ok" >&5
10207 echo "${ECHO_T}ok" >&6; }
10208 fi
10209
10210
10211 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10212 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10213 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10214   echo $ECHO_N "(cached) $ECHO_C" >&6
10215 else
10216   if test -n "$lt_cv_sys_global_symbol_pipe"; then
10217     libltdl_cv_preloaded_symbols=yes
10218   else
10219     libltdl_cv_preloaded_symbols=no
10220   fi
10221
10222 fi
10223 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10224 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10225 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10226
10227 cat >>confdefs.h <<\_ACEOF
10228 #define HAVE_PRELOADED_SYMBOLS 1
10229 _ACEOF
10230
10231 fi
10232
10233 LIBADD_DL=
10234
10235 ac_ext=c
10236 ac_cpp='$CPP $CPPFLAGS'
10237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10240
10241
10242 { echo "$as_me:$LINENO: checking for shl_load" >&5
10243 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10244 if test "${ac_cv_func_shl_load+set}" = set; then
10245   echo $ECHO_N "(cached) $ECHO_C" >&6
10246 else
10247   cat >conftest.$ac_ext <<_ACEOF
10248 /* confdefs.h.  */
10249 _ACEOF
10250 cat confdefs.h >>conftest.$ac_ext
10251 cat >>conftest.$ac_ext <<_ACEOF
10252 /* end confdefs.h.  */
10253 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10254    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10255 #define shl_load innocuous_shl_load
10256
10257 /* System header to define __stub macros and hopefully few prototypes,
10258     which can conflict with char shl_load (); below.
10259     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10260     <limits.h> exists even on freestanding compilers.  */
10261
10262 #ifdef __STDC__
10263 # include <limits.h>
10264 #else
10265 # include <assert.h>
10266 #endif
10267
10268 #undef shl_load
10269
10270 /* Override any GCC internal prototype to avoid an error.
10271    Use char because int might match the return type of a GCC
10272    builtin and then its argument prototype would still apply.  */
10273 #ifdef __cplusplus
10274 extern "C"
10275 #endif
10276 char shl_load ();
10277 /* The GNU C library defines this for functions which it implements
10278     to always fail with ENOSYS.  Some functions are actually named
10279     something starting with __ and the normal name is an alias.  */
10280 #if defined __stub_shl_load || defined __stub___shl_load
10281 choke me
10282 #endif
10283
10284 int
10285 main ()
10286 {
10287 return shl_load ();
10288   ;
10289   return 0;
10290 }
10291 _ACEOF
10292 rm -f conftest.$ac_objext conftest$ac_exeext
10293 if { (ac_try="$ac_link"
10294 case "(($ac_try" in
10295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10296   *) ac_try_echo=$ac_try;;
10297 esac
10298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10299   (eval "$ac_link") 2>conftest.er1
10300   ac_status=$?
10301   grep -v '^ *+' conftest.er1 >conftest.err
10302   rm -f conftest.er1
10303   cat conftest.err >&5
10304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305   (exit $ac_status); } &&
10306          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10307   { (case "(($ac_try" in
10308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10309   *) ac_try_echo=$ac_try;;
10310 esac
10311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10312   (eval "$ac_try") 2>&5
10313   ac_status=$?
10314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315   (exit $ac_status); }; } &&
10316          { ac_try='test -s conftest$ac_exeext'
10317   { (case "(($ac_try" in
10318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10319   *) ac_try_echo=$ac_try;;
10320 esac
10321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10322   (eval "$ac_try") 2>&5
10323   ac_status=$?
10324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325   (exit $ac_status); }; }; then
10326   ac_cv_func_shl_load=yes
10327 else
10328   echo "$as_me: failed program was:" >&5
10329 sed 's/^/| /' conftest.$ac_ext >&5
10330
10331         ac_cv_func_shl_load=no
10332 fi
10333
10334 rm -f core conftest.err conftest.$ac_objext \
10335       conftest$ac_exeext conftest.$ac_ext
10336 fi
10337 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10338 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10339 if test $ac_cv_func_shl_load = yes; then
10340
10341 cat >>confdefs.h <<\_ACEOF
10342 #define HAVE_SHL_LOAD 1
10343 _ACEOF
10344
10345 else
10346   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10347 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10348 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10349   echo $ECHO_N "(cached) $ECHO_C" >&6
10350 else
10351   ac_check_lib_save_LIBS=$LIBS
10352 LIBS="-ldld  $LIBS"
10353 cat >conftest.$ac_ext <<_ACEOF
10354 /* confdefs.h.  */
10355 _ACEOF
10356 cat confdefs.h >>conftest.$ac_ext
10357 cat >>conftest.$ac_ext <<_ACEOF
10358 /* end confdefs.h.  */
10359
10360 /* Override any GCC internal prototype to avoid an error.
10361    Use char because int might match the return type of a GCC
10362    builtin and then its argument prototype would still apply.  */
10363 #ifdef __cplusplus
10364 extern "C"
10365 #endif
10366 char shl_load ();
10367 int
10368 main ()
10369 {
10370 return shl_load ();
10371   ;
10372   return 0;
10373 }
10374 _ACEOF
10375 rm -f conftest.$ac_objext conftest$ac_exeext
10376 if { (ac_try="$ac_link"
10377 case "(($ac_try" in
10378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10379   *) ac_try_echo=$ac_try;;
10380 esac
10381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10382   (eval "$ac_link") 2>conftest.er1
10383   ac_status=$?
10384   grep -v '^ *+' conftest.er1 >conftest.err
10385   rm -f conftest.er1
10386   cat conftest.err >&5
10387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388   (exit $ac_status); } &&
10389          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10390   { (case "(($ac_try" in
10391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10392   *) ac_try_echo=$ac_try;;
10393 esac
10394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10395   (eval "$ac_try") 2>&5
10396   ac_status=$?
10397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398   (exit $ac_status); }; } &&
10399          { ac_try='test -s conftest$ac_exeext'
10400   { (case "(($ac_try" in
10401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10402   *) ac_try_echo=$ac_try;;
10403 esac
10404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10405   (eval "$ac_try") 2>&5
10406   ac_status=$?
10407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408   (exit $ac_status); }; }; then
10409   ac_cv_lib_dld_shl_load=yes
10410 else
10411   echo "$as_me: failed program was:" >&5
10412 sed 's/^/| /' conftest.$ac_ext >&5
10413
10414         ac_cv_lib_dld_shl_load=no
10415 fi
10416
10417 rm -f core conftest.err conftest.$ac_objext \
10418       conftest$ac_exeext conftest.$ac_ext
10419 LIBS=$ac_check_lib_save_LIBS
10420 fi
10421 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10422 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10423 if test $ac_cv_lib_dld_shl_load = yes; then
10424
10425 cat >>confdefs.h <<\_ACEOF
10426 #define HAVE_SHL_LOAD 1
10427 _ACEOF
10428
10429         LIBADD_DL="$LIBADD_DL -ldld"
10430 else
10431   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10432 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10433 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10434   echo $ECHO_N "(cached) $ECHO_C" >&6
10435 else
10436   ac_check_lib_save_LIBS=$LIBS
10437 LIBS="-ldl  $LIBS"
10438 cat >conftest.$ac_ext <<_ACEOF
10439 /* confdefs.h.  */
10440 _ACEOF
10441 cat confdefs.h >>conftest.$ac_ext
10442 cat >>conftest.$ac_ext <<_ACEOF
10443 /* end confdefs.h.  */
10444
10445 /* Override any GCC internal prototype to avoid an error.
10446    Use char because int might match the return type of a GCC
10447    builtin and then its argument prototype would still apply.  */
10448 #ifdef __cplusplus
10449 extern "C"
10450 #endif
10451 char dlopen ();
10452 int
10453 main ()
10454 {
10455 return dlopen ();
10456   ;
10457   return 0;
10458 }
10459 _ACEOF
10460 rm -f conftest.$ac_objext conftest$ac_exeext
10461 if { (ac_try="$ac_link"
10462 case "(($ac_try" in
10463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10464   *) ac_try_echo=$ac_try;;
10465 esac
10466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10467   (eval "$ac_link") 2>conftest.er1
10468   ac_status=$?
10469   grep -v '^ *+' conftest.er1 >conftest.err
10470   rm -f conftest.er1
10471   cat conftest.err >&5
10472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473   (exit $ac_status); } &&
10474          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10475   { (case "(($ac_try" in
10476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10477   *) ac_try_echo=$ac_try;;
10478 esac
10479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10480   (eval "$ac_try") 2>&5
10481   ac_status=$?
10482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483   (exit $ac_status); }; } &&
10484          { ac_try='test -s conftest$ac_exeext'
10485   { (case "(($ac_try" in
10486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10487   *) ac_try_echo=$ac_try;;
10488 esac
10489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10490   (eval "$ac_try") 2>&5
10491   ac_status=$?
10492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493   (exit $ac_status); }; }; then
10494   ac_cv_lib_dl_dlopen=yes
10495 else
10496   echo "$as_me: failed program was:" >&5
10497 sed 's/^/| /' conftest.$ac_ext >&5
10498
10499         ac_cv_lib_dl_dlopen=no
10500 fi
10501
10502 rm -f core conftest.err conftest.$ac_objext \
10503       conftest$ac_exeext conftest.$ac_ext
10504 LIBS=$ac_check_lib_save_LIBS
10505 fi
10506 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10507 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10508 if test $ac_cv_lib_dl_dlopen = yes; then
10509
10510 cat >>confdefs.h <<\_ACEOF
10511 #define HAVE_LIBDL 1
10512 _ACEOF
10513
10514                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10515 else
10516   cat >conftest.$ac_ext <<_ACEOF
10517 /* confdefs.h.  */
10518 _ACEOF
10519 cat confdefs.h >>conftest.$ac_ext
10520 cat >>conftest.$ac_ext <<_ACEOF
10521 /* end confdefs.h.  */
10522 #if HAVE_DLFCN_H
10523 #  include <dlfcn.h>
10524 #endif
10525
10526 int
10527 main ()
10528 {
10529 dlopen(0, 0);
10530   ;
10531   return 0;
10532 }
10533 _ACEOF
10534 rm -f conftest.$ac_objext conftest$ac_exeext
10535 if { (ac_try="$ac_link"
10536 case "(($ac_try" in
10537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10538   *) ac_try_echo=$ac_try;;
10539 esac
10540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10541   (eval "$ac_link") 2>conftest.er1
10542   ac_status=$?
10543   grep -v '^ *+' conftest.er1 >conftest.err
10544   rm -f conftest.er1
10545   cat conftest.err >&5
10546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547   (exit $ac_status); } &&
10548          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10549   { (case "(($ac_try" in
10550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10551   *) ac_try_echo=$ac_try;;
10552 esac
10553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10554   (eval "$ac_try") 2>&5
10555   ac_status=$?
10556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557   (exit $ac_status); }; } &&
10558          { ac_try='test -s conftest$ac_exeext'
10559   { (case "(($ac_try" in
10560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10561   *) ac_try_echo=$ac_try;;
10562 esac
10563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10564   (eval "$ac_try") 2>&5
10565   ac_status=$?
10566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567   (exit $ac_status); }; }; then
10568
10569 cat >>confdefs.h <<\_ACEOF
10570 #define HAVE_LIBDL 1
10571 _ACEOF
10572  libltdl_cv_func_dlopen="yes"
10573 else
10574   echo "$as_me: failed program was:" >&5
10575 sed 's/^/| /' conftest.$ac_ext >&5
10576
10577         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10578 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10579 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10580   echo $ECHO_N "(cached) $ECHO_C" >&6
10581 else
10582   ac_check_lib_save_LIBS=$LIBS
10583 LIBS="-lsvld  $LIBS"
10584 cat >conftest.$ac_ext <<_ACEOF
10585 /* confdefs.h.  */
10586 _ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h.  */
10590
10591 /* Override any GCC internal prototype to avoid an error.
10592    Use char because int might match the return type of a GCC
10593    builtin and then its argument prototype would still apply.  */
10594 #ifdef __cplusplus
10595 extern "C"
10596 #endif
10597 char dlopen ();
10598 int
10599 main ()
10600 {
10601 return dlopen ();
10602   ;
10603   return 0;
10604 }
10605 _ACEOF
10606 rm -f conftest.$ac_objext conftest$ac_exeext
10607 if { (ac_try="$ac_link"
10608 case "(($ac_try" in
10609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610   *) ac_try_echo=$ac_try;;
10611 esac
10612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10613   (eval "$ac_link") 2>conftest.er1
10614   ac_status=$?
10615   grep -v '^ *+' conftest.er1 >conftest.err
10616   rm -f conftest.er1
10617   cat conftest.err >&5
10618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619   (exit $ac_status); } &&
10620          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10621   { (case "(($ac_try" in
10622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10623   *) ac_try_echo=$ac_try;;
10624 esac
10625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10626   (eval "$ac_try") 2>&5
10627   ac_status=$?
10628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629   (exit $ac_status); }; } &&
10630          { ac_try='test -s conftest$ac_exeext'
10631   { (case "(($ac_try" in
10632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10633   *) ac_try_echo=$ac_try;;
10634 esac
10635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10636   (eval "$ac_try") 2>&5
10637   ac_status=$?
10638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639   (exit $ac_status); }; }; then
10640   ac_cv_lib_svld_dlopen=yes
10641 else
10642   echo "$as_me: failed program was:" >&5
10643 sed 's/^/| /' conftest.$ac_ext >&5
10644
10645         ac_cv_lib_svld_dlopen=no
10646 fi
10647
10648 rm -f core conftest.err conftest.$ac_objext \
10649       conftest$ac_exeext conftest.$ac_ext
10650 LIBS=$ac_check_lib_save_LIBS
10651 fi
10652 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10653 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10654 if test $ac_cv_lib_svld_dlopen = yes; then
10655
10656 cat >>confdefs.h <<\_ACEOF
10657 #define HAVE_LIBDL 1
10658 _ACEOF
10659
10660                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10661 else
10662   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10663 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10664 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10665   echo $ECHO_N "(cached) $ECHO_C" >&6
10666 else
10667   ac_check_lib_save_LIBS=$LIBS
10668 LIBS="-ldld  $LIBS"
10669 cat >conftest.$ac_ext <<_ACEOF
10670 /* confdefs.h.  */
10671 _ACEOF
10672 cat confdefs.h >>conftest.$ac_ext
10673 cat >>conftest.$ac_ext <<_ACEOF
10674 /* end confdefs.h.  */
10675
10676 /* Override any GCC internal prototype to avoid an error.
10677    Use char because int might match the return type of a GCC
10678    builtin and then its argument prototype would still apply.  */
10679 #ifdef __cplusplus
10680 extern "C"
10681 #endif
10682 char dld_link ();
10683 int
10684 main ()
10685 {
10686 return dld_link ();
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_lib_dld_dld_link=yes
10726 else
10727   echo "$as_me: failed program was:" >&5
10728 sed 's/^/| /' conftest.$ac_ext >&5
10729
10730         ac_cv_lib_dld_dld_link=no
10731 fi
10732
10733 rm -f core conftest.err conftest.$ac_objext \
10734       conftest$ac_exeext conftest.$ac_ext
10735 LIBS=$ac_check_lib_save_LIBS
10736 fi
10737 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10738 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10739 if test $ac_cv_lib_dld_dld_link = yes; then
10740
10741 cat >>confdefs.h <<\_ACEOF
10742 #define HAVE_DLD 1
10743 _ACEOF
10744
10745                 LIBADD_DL="$LIBADD_DL -ldld"
10746 else
10747   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10748 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10749 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10750   echo $ECHO_N "(cached) $ECHO_C" >&6
10751 else
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 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10759    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10760 #define _dyld_func_lookup innocuous__dyld_func_lookup
10761
10762 /* System header to define __stub macros and hopefully few prototypes,
10763     which can conflict with char _dyld_func_lookup (); below.
10764     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10765     <limits.h> exists even on freestanding compilers.  */
10766
10767 #ifdef __STDC__
10768 # include <limits.h>
10769 #else
10770 # include <assert.h>
10771 #endif
10772
10773 #undef _dyld_func_lookup
10774
10775 /* Override any GCC internal prototype to avoid an error.
10776    Use char because int might match the return type of a GCC
10777    builtin and then its argument prototype would still apply.  */
10778 #ifdef __cplusplus
10779 extern "C"
10780 #endif
10781 char _dyld_func_lookup ();
10782 /* The GNU C library defines this for functions which it implements
10783     to always fail with ENOSYS.  Some functions are actually named
10784     something starting with __ and the normal name is an alias.  */
10785 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10786 choke me
10787 #endif
10788
10789 int
10790 main ()
10791 {
10792 return _dyld_func_lookup ();
10793   ;
10794   return 0;
10795 }
10796 _ACEOF
10797 rm -f conftest.$ac_objext conftest$ac_exeext
10798 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
10805   ac_status=$?
10806   grep -v '^ *+' conftest.er1 >conftest.err
10807   rm -f conftest.er1
10808   cat conftest.err >&5
10809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810   (exit $ac_status); } &&
10811          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10812   { (case "(($ac_try" in
10813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10814   *) ac_try_echo=$ac_try;;
10815 esac
10816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10817   (eval "$ac_try") 2>&5
10818   ac_status=$?
10819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820   (exit $ac_status); }; } &&
10821          { ac_try='test -s conftest$ac_exeext'
10822   { (case "(($ac_try" in
10823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10824   *) ac_try_echo=$ac_try;;
10825 esac
10826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10827   (eval "$ac_try") 2>&5
10828   ac_status=$?
10829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830   (exit $ac_status); }; }; then
10831   ac_cv_func__dyld_func_lookup=yes
10832 else
10833   echo "$as_me: failed program was:" >&5
10834 sed 's/^/| /' conftest.$ac_ext >&5
10835
10836         ac_cv_func__dyld_func_lookup=no
10837 fi
10838
10839 rm -f core conftest.err conftest.$ac_objext \
10840       conftest$ac_exeext conftest.$ac_ext
10841 fi
10842 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10843 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10844 if test $ac_cv_func__dyld_func_lookup = yes; then
10845
10846 cat >>confdefs.h <<\_ACEOF
10847 #define HAVE_DYLD 1
10848 _ACEOF
10849
10850 fi
10851
10852
10853 fi
10854
10855
10856 fi
10857
10858
10859 fi
10860
10861 rm -f core conftest.err conftest.$ac_objext \
10862       conftest$ac_exeext conftest.$ac_ext
10863
10864 fi
10865
10866
10867 fi
10868
10869
10870 fi
10871
10872
10873 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10874 then
10875   lt_save_LIBS="$LIBS"
10876   LIBS="$LIBS $LIBADD_DL"
10877
10878 for ac_func in dlerror
10879 do
10880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10881 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10883 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10884   echo $ECHO_N "(cached) $ECHO_C" >&6
10885 else
10886   cat >conftest.$ac_ext <<_ACEOF
10887 /* confdefs.h.  */
10888 _ACEOF
10889 cat confdefs.h >>conftest.$ac_ext
10890 cat >>conftest.$ac_ext <<_ACEOF
10891 /* end confdefs.h.  */
10892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10893    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10894 #define $ac_func innocuous_$ac_func
10895
10896 /* System header to define __stub macros and hopefully few prototypes,
10897     which can conflict with char $ac_func (); below.
10898     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10899     <limits.h> exists even on freestanding compilers.  */
10900
10901 #ifdef __STDC__
10902 # include <limits.h>
10903 #else
10904 # include <assert.h>
10905 #endif
10906
10907 #undef $ac_func
10908
10909 /* Override any GCC internal prototype to avoid an error.
10910    Use char because int might match the return type of a GCC
10911    builtin and then its argument prototype would still apply.  */
10912 #ifdef __cplusplus
10913 extern "C"
10914 #endif
10915 char $ac_func ();
10916 /* The GNU C library defines this for functions which it implements
10917     to always fail with ENOSYS.  Some functions are actually named
10918     something starting with __ and the normal name is an alias.  */
10919 #if defined __stub_$ac_func || defined __stub___$ac_func
10920 choke me
10921 #endif
10922
10923 int
10924 main ()
10925 {
10926 return $ac_func ();
10927   ;
10928   return 0;
10929 }
10930 _ACEOF
10931 rm -f conftest.$ac_objext conftest$ac_exeext
10932 if { (ac_try="$ac_link"
10933 case "(($ac_try" in
10934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935   *) ac_try_echo=$ac_try;;
10936 esac
10937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10938   (eval "$ac_link") 2>conftest.er1
10939   ac_status=$?
10940   grep -v '^ *+' conftest.er1 >conftest.err
10941   rm -f conftest.er1
10942   cat conftest.err >&5
10943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944   (exit $ac_status); } &&
10945          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10946   { (case "(($ac_try" in
10947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10948   *) ac_try_echo=$ac_try;;
10949 esac
10950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10951   (eval "$ac_try") 2>&5
10952   ac_status=$?
10953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954   (exit $ac_status); }; } &&
10955          { ac_try='test -s conftest$ac_exeext'
10956   { (case "(($ac_try" in
10957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10958   *) ac_try_echo=$ac_try;;
10959 esac
10960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10961   (eval "$ac_try") 2>&5
10962   ac_status=$?
10963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964   (exit $ac_status); }; }; then
10965   eval "$as_ac_var=yes"
10966 else
10967   echo "$as_me: failed program was:" >&5
10968 sed 's/^/| /' conftest.$ac_ext >&5
10969
10970         eval "$as_ac_var=no"
10971 fi
10972
10973 rm -f core conftest.err conftest.$ac_objext \
10974       conftest$ac_exeext conftest.$ac_ext
10975 fi
10976 ac_res=`eval echo '${'$as_ac_var'}'`
10977                { echo "$as_me:$LINENO: result: $ac_res" >&5
10978 echo "${ECHO_T}$ac_res" >&6; }
10979 if test `eval echo '${'$as_ac_var'}'` = yes; then
10980   cat >>confdefs.h <<_ACEOF
10981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10982 _ACEOF
10983
10984 fi
10985 done
10986
10987   LIBS="$lt_save_LIBS"
10988 fi
10989 ac_ext=c
10990 ac_cpp='$CPP $CPPFLAGS'
10991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10994
10995
10996
10997 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10998 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10999 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11000   echo $ECHO_N "(cached) $ECHO_C" >&6
11001 else
11002   ac_cv_sys_symbol_underscore=no
11003   cat > conftest.$ac_ext <<EOF
11004 void nm_test_func(){}
11005 int main(){nm_test_func;return 0;}
11006 EOF
11007   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11008   (eval $ac_compile) 2>&5
11009   ac_status=$?
11010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011   (exit $ac_status); }; then
11012     # Now try to grab the symbols.
11013     ac_nlist=conftest.nm
11014     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11015   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11016   ac_status=$?
11017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018   (exit $ac_status); } && test -s "$ac_nlist"; then
11019       # See whether the symbols have a leading underscore.
11020       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11021         ac_cv_sys_symbol_underscore=yes
11022       else
11023         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11024           :
11025         else
11026           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11027         fi
11028       fi
11029     else
11030       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11031     fi
11032   else
11033     echo "configure: failed program was:" >&5
11034     cat conftest.c >&5
11035   fi
11036   rm -rf conftest*
11037
11038 fi
11039 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11040 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11041
11042
11043 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11044   if test x"$libltdl_cv_func_dlopen" = xyes ||
11045      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11046         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11047 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11048 if test "${libltdl_cv_need_uscore+set}" = set; then
11049   echo $ECHO_N "(cached) $ECHO_C" >&6
11050 else
11051   libltdl_cv_need_uscore=unknown
11052           save_LIBS="$LIBS"
11053           LIBS="$LIBS $LIBADD_DL"
11054           if test "$cross_compiling" = yes; then :
11055   libltdl_cv_need_uscore=cross
11056 else
11057   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11058   lt_status=$lt_dlunknown
11059   cat > conftest.$ac_ext <<EOF
11060 #line 11060 "configure"
11061 #include "confdefs.h"
11062
11063 #if HAVE_DLFCN_H
11064 #include <dlfcn.h>
11065 #endif
11066
11067 #include <stdio.h>
11068
11069 #ifdef RTLD_GLOBAL
11070 #  define LT_DLGLOBAL           RTLD_GLOBAL
11071 #else
11072 #  ifdef DL_GLOBAL
11073 #    define LT_DLGLOBAL         DL_GLOBAL
11074 #  else
11075 #    define LT_DLGLOBAL         0
11076 #  endif
11077 #endif
11078
11079 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11080    find out it does not work in some platform. */
11081 #ifndef LT_DLLAZY_OR_NOW
11082 #  ifdef RTLD_LAZY
11083 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11084 #  else
11085 #    ifdef DL_LAZY
11086 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11087 #    else
11088 #      ifdef RTLD_NOW
11089 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11090 #      else
11091 #        ifdef DL_NOW
11092 #          define LT_DLLAZY_OR_NOW      DL_NOW
11093 #        else
11094 #          define LT_DLLAZY_OR_NOW      0
11095 #        endif
11096 #      endif
11097 #    endif
11098 #  endif
11099 #endif
11100
11101 #ifdef __cplusplus
11102 extern "C" void exit (int);
11103 #endif
11104
11105 void fnord() { int i=42;}
11106 int main ()
11107 {
11108   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11109   int status = $lt_dlunknown;
11110
11111   if (self)
11112     {
11113       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11114       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11115       /* dlclose (self); */
11116     }
11117   else
11118     puts (dlerror ());
11119
11120     exit (status);
11121 }
11122 EOF
11123   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11124   (eval $ac_link) 2>&5
11125   ac_status=$?
11126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11128     (./conftest; exit; ) >&5 2>/dev/null
11129     lt_status=$?
11130     case x$lt_status in
11131       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11132       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11133       x$lt_dlunknown|x*)  ;;
11134     esac
11135   else :
11136     # compilation failed
11137
11138   fi
11139 fi
11140 rm -fr conftest*
11141
11142           LIBS="$save_LIBS"
11143
11144 fi
11145 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11146 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11147   fi
11148 fi
11149
11150 if test x"$libltdl_cv_need_uscore" = xyes; then
11151
11152 cat >>confdefs.h <<\_ACEOF
11153 #define NEED_USCORE 1
11154 _ACEOF
11155
11156 fi
11157
11158
11159 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11160 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11161 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11162   echo $ECHO_N "(cached) $ECHO_C" >&6
11163 else
11164   # PORTME does your system automatically load deplibs for dlopen?
11165   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11166   # For now, we just catch OSes we know something about -- in the
11167   # future, we'll try test this programmatically.
11168   libltdl_cv_sys_dlopen_deplibs=unknown
11169   case "$host_os" in
11170   aix3*|aix4.1.*|aix4.2.*)
11171     # Unknown whether this is true for these versions of AIX, but
11172     # we want this `case' here to explicitly catch those versions.
11173     libltdl_cv_sys_dlopen_deplibs=unknown
11174     ;;
11175   aix[45]*)
11176     libltdl_cv_sys_dlopen_deplibs=yes
11177     ;;
11178   darwin*)
11179     # Assuming the user has installed a libdl from somewhere, this is true
11180     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11181     libltdl_cv_sys_dlopen_deplibs=yes
11182     ;;
11183   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11184     # GNU and its variants, using gnu ld.so (Glibc)
11185     libltdl_cv_sys_dlopen_deplibs=yes
11186     ;;
11187   hpux10*|hpux11*)
11188     libltdl_cv_sys_dlopen_deplibs=yes
11189     ;;
11190   interix*)
11191     libltdl_cv_sys_dlopen_deplibs=yes
11192     ;;
11193   irix[12345]*|irix6.[01]*)
11194     # Catch all versions of IRIX before 6.2, and indicate that we don't
11195     # know how it worked for any of those versions.
11196     libltdl_cv_sys_dlopen_deplibs=unknown
11197     ;;
11198   irix*)
11199     # The case above catches anything before 6.2, and it's known that
11200     # at 6.2 and later dlopen does load deplibs.
11201     libltdl_cv_sys_dlopen_deplibs=yes
11202     ;;
11203   netbsd*)
11204     libltdl_cv_sys_dlopen_deplibs=yes
11205     ;;
11206   openbsd*)
11207     libltdl_cv_sys_dlopen_deplibs=yes
11208     ;;
11209   osf[1234]*)
11210     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11211     # it did *not* use an RPATH in a shared library to find objects the
11212     # library depends on, so we explictly say `no'.
11213     libltdl_cv_sys_dlopen_deplibs=no
11214     ;;
11215   osf5.0|osf5.0a|osf5.1)
11216     # dlopen *does* load deplibs and with the right loader patch applied
11217     # it even uses RPATH in a shared library to search for shared objects
11218     # that the library depends on, but there's no easy way to know if that
11219     # patch is installed.  Since this is the case, all we can really
11220     # say is unknown -- it depends on the patch being installed.  If
11221     # it is, this changes to `yes'.  Without it, it would be `no'.
11222     libltdl_cv_sys_dlopen_deplibs=unknown
11223     ;;
11224   osf*)
11225     # the two cases above should catch all versions of osf <= 5.1.  Read
11226     # the comments above for what we know about them.
11227     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11228     # is used to find them so we can finally say `yes'.
11229     libltdl_cv_sys_dlopen_deplibs=yes
11230     ;;
11231   solaris*)
11232     libltdl_cv_sys_dlopen_deplibs=yes
11233     ;;
11234   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11235     libltdl_cv_sys_dlopen_deplibs=yes
11236     ;;
11237   esac
11238
11239 fi
11240 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11241 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11242 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11243
11244 cat >>confdefs.h <<\_ACEOF
11245 #define LTDL_DLOPEN_DEPLIBS 1
11246 _ACEOF
11247
11248 fi
11249
11250
11251 for ac_header in argz.h
11252 do
11253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11255   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11258   echo $ECHO_N "(cached) $ECHO_C" >&6
11259 fi
11260 ac_res=`eval echo '${'$as_ac_Header'}'`
11261                { echo "$as_me:$LINENO: result: $ac_res" >&5
11262 echo "${ECHO_T}$ac_res" >&6; }
11263 else
11264   # Is the header compilable?
11265 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11267 cat >conftest.$ac_ext <<_ACEOF
11268 /* confdefs.h.  */
11269 _ACEOF
11270 cat confdefs.h >>conftest.$ac_ext
11271 cat >>conftest.$ac_ext <<_ACEOF
11272 /* end confdefs.h.  */
11273 $ac_includes_default
11274 #include <$ac_header>
11275 _ACEOF
11276 rm -f conftest.$ac_objext
11277 if { (ac_try="$ac_compile"
11278 case "(($ac_try" in
11279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11280   *) ac_try_echo=$ac_try;;
11281 esac
11282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11283   (eval "$ac_compile") 2>conftest.er1
11284   ac_status=$?
11285   grep -v '^ *+' conftest.er1 >conftest.err
11286   rm -f conftest.er1
11287   cat conftest.err >&5
11288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289   (exit $ac_status); } &&
11290          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11291   { (case "(($ac_try" in
11292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11293   *) ac_try_echo=$ac_try;;
11294 esac
11295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11296   (eval "$ac_try") 2>&5
11297   ac_status=$?
11298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299   (exit $ac_status); }; } &&
11300          { ac_try='test -s conftest.$ac_objext'
11301   { (case "(($ac_try" in
11302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11303   *) ac_try_echo=$ac_try;;
11304 esac
11305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11306   (eval "$ac_try") 2>&5
11307   ac_status=$?
11308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309   (exit $ac_status); }; }; then
11310   ac_header_compiler=yes
11311 else
11312   echo "$as_me: failed program was:" >&5
11313 sed 's/^/| /' conftest.$ac_ext >&5
11314
11315         ac_header_compiler=no
11316 fi
11317
11318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11319 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11320 echo "${ECHO_T}$ac_header_compiler" >&6; }
11321
11322 # Is the header present?
11323 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11324 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11325 cat >conftest.$ac_ext <<_ACEOF
11326 /* confdefs.h.  */
11327 _ACEOF
11328 cat confdefs.h >>conftest.$ac_ext
11329 cat >>conftest.$ac_ext <<_ACEOF
11330 /* end confdefs.h.  */
11331 #include <$ac_header>
11332 _ACEOF
11333 if { (ac_try="$ac_cpp conftest.$ac_ext"
11334 case "(($ac_try" in
11335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11336   *) ac_try_echo=$ac_try;;
11337 esac
11338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11339   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11340   ac_status=$?
11341   grep -v '^ *+' conftest.er1 >conftest.err
11342   rm -f conftest.er1
11343   cat conftest.err >&5
11344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345   (exit $ac_status); } >/dev/null; then
11346   if test -s conftest.err; then
11347     ac_cpp_err=$ac_c_preproc_warn_flag
11348     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11349   else
11350     ac_cpp_err=
11351   fi
11352 else
11353   ac_cpp_err=yes
11354 fi
11355 if test -z "$ac_cpp_err"; then
11356   ac_header_preproc=yes
11357 else
11358   echo "$as_me: failed program was:" >&5
11359 sed 's/^/| /' conftest.$ac_ext >&5
11360
11361   ac_header_preproc=no
11362 fi
11363
11364 rm -f conftest.err conftest.$ac_ext
11365 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11366 echo "${ECHO_T}$ac_header_preproc" >&6; }
11367
11368 # So?  What about this header?
11369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11370   yes:no: )
11371     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11372 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11373     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11374 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11375     ac_header_preproc=yes
11376     ;;
11377   no:yes:* )
11378     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11379 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11380     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11381 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11382     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11383 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11384     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11385 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11386     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11388     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11389 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11390     ( cat <<\_ASBOX
11391 ## ----------------------------------- ##
11392 ## Report this to llvmbugs@cs.uiuc.edu ##
11393 ## ----------------------------------- ##
11394 _ASBOX
11395      ) | sed "s/^/$as_me: WARNING:     /" >&2
11396     ;;
11397 esac
11398 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11401   echo $ECHO_N "(cached) $ECHO_C" >&6
11402 else
11403   eval "$as_ac_Header=\$ac_header_preproc"
11404 fi
11405 ac_res=`eval echo '${'$as_ac_Header'}'`
11406                { echo "$as_me:$LINENO: result: $ac_res" >&5
11407 echo "${ECHO_T}$ac_res" >&6; }
11408
11409 fi
11410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11411   cat >>confdefs.h <<_ACEOF
11412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11413 _ACEOF
11414
11415 fi
11416
11417 done
11418
11419
11420 { echo "$as_me:$LINENO: checking for error_t" >&5
11421 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11422 if test "${ac_cv_type_error_t+set}" = set; then
11423   echo $ECHO_N "(cached) $ECHO_C" >&6
11424 else
11425   cat >conftest.$ac_ext <<_ACEOF
11426 /* confdefs.h.  */
11427 _ACEOF
11428 cat confdefs.h >>conftest.$ac_ext
11429 cat >>conftest.$ac_ext <<_ACEOF
11430 /* end confdefs.h.  */
11431 #if HAVE_ARGZ_H
11432 #  include <argz.h>
11433 #endif
11434
11435 typedef error_t ac__type_new_;
11436 int
11437 main ()
11438 {
11439 if ((ac__type_new_ *) 0)
11440   return 0;
11441 if (sizeof (ac__type_new_))
11442   return 0;
11443   ;
11444   return 0;
11445 }
11446 _ACEOF
11447 rm -f conftest.$ac_objext
11448 if { (ac_try="$ac_compile"
11449 case "(($ac_try" in
11450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11451   *) ac_try_echo=$ac_try;;
11452 esac
11453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11454   (eval "$ac_compile") 2>conftest.er1
11455   ac_status=$?
11456   grep -v '^ *+' conftest.er1 >conftest.err
11457   rm -f conftest.er1
11458   cat conftest.err >&5
11459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460   (exit $ac_status); } &&
11461          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11462   { (case "(($ac_try" in
11463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11464   *) ac_try_echo=$ac_try;;
11465 esac
11466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11467   (eval "$ac_try") 2>&5
11468   ac_status=$?
11469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470   (exit $ac_status); }; } &&
11471          { ac_try='test -s conftest.$ac_objext'
11472   { (case "(($ac_try" in
11473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11474   *) ac_try_echo=$ac_try;;
11475 esac
11476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11477   (eval "$ac_try") 2>&5
11478   ac_status=$?
11479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480   (exit $ac_status); }; }; then
11481   ac_cv_type_error_t=yes
11482 else
11483   echo "$as_me: failed program was:" >&5
11484 sed 's/^/| /' conftest.$ac_ext >&5
11485
11486         ac_cv_type_error_t=no
11487 fi
11488
11489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11490 fi
11491 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11492 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11493 if test $ac_cv_type_error_t = yes; then
11494
11495 cat >>confdefs.h <<_ACEOF
11496 #define HAVE_ERROR_T 1
11497 _ACEOF
11498
11499
11500 else
11501
11502 cat >>confdefs.h <<\_ACEOF
11503 #define error_t int
11504 _ACEOF
11505
11506 fi
11507
11508
11509
11510
11511
11512
11513
11514 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11515 do
11516 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11517 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11519 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11520   echo $ECHO_N "(cached) $ECHO_C" >&6
11521 else
11522   cat >conftest.$ac_ext <<_ACEOF
11523 /* confdefs.h.  */
11524 _ACEOF
11525 cat confdefs.h >>conftest.$ac_ext
11526 cat >>conftest.$ac_ext <<_ACEOF
11527 /* end confdefs.h.  */
11528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11529    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11530 #define $ac_func innocuous_$ac_func
11531
11532 /* System header to define __stub macros and hopefully few prototypes,
11533     which can conflict with char $ac_func (); below.
11534     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11535     <limits.h> exists even on freestanding compilers.  */
11536
11537 #ifdef __STDC__
11538 # include <limits.h>
11539 #else
11540 # include <assert.h>
11541 #endif
11542
11543 #undef $ac_func
11544
11545 /* Override any GCC internal prototype to avoid an error.
11546    Use char because int might match the return type of a GCC
11547    builtin and then its argument prototype would still apply.  */
11548 #ifdef __cplusplus
11549 extern "C"
11550 #endif
11551 char $ac_func ();
11552 /* The GNU C library defines this for functions which it implements
11553     to always fail with ENOSYS.  Some functions are actually named
11554     something starting with __ and the normal name is an alias.  */
11555 #if defined __stub_$ac_func || defined __stub___$ac_func
11556 choke me
11557 #endif
11558
11559 int
11560 main ()
11561 {
11562 return $ac_func ();
11563   ;
11564   return 0;
11565 }
11566 _ACEOF
11567 rm -f conftest.$ac_objext conftest$ac_exeext
11568 if { (ac_try="$ac_link"
11569 case "(($ac_try" in
11570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11571   *) ac_try_echo=$ac_try;;
11572 esac
11573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11574   (eval "$ac_link") 2>conftest.er1
11575   ac_status=$?
11576   grep -v '^ *+' conftest.er1 >conftest.err
11577   rm -f conftest.er1
11578   cat conftest.err >&5
11579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580   (exit $ac_status); } &&
11581          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11582   { (case "(($ac_try" in
11583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11584   *) ac_try_echo=$ac_try;;
11585 esac
11586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11587   (eval "$ac_try") 2>&5
11588   ac_status=$?
11589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590   (exit $ac_status); }; } &&
11591          { ac_try='test -s conftest$ac_exeext'
11592   { (case "(($ac_try" in
11593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11594   *) ac_try_echo=$ac_try;;
11595 esac
11596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11597   (eval "$ac_try") 2>&5
11598   ac_status=$?
11599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600   (exit $ac_status); }; }; then
11601   eval "$as_ac_var=yes"
11602 else
11603   echo "$as_me: failed program was:" >&5
11604 sed 's/^/| /' conftest.$ac_ext >&5
11605
11606         eval "$as_ac_var=no"
11607 fi
11608
11609 rm -f core conftest.err conftest.$ac_objext \
11610       conftest$ac_exeext conftest.$ac_ext
11611 fi
11612 ac_res=`eval echo '${'$as_ac_var'}'`
11613                { echo "$as_me:$LINENO: result: $ac_res" >&5
11614 echo "${ECHO_T}$ac_res" >&6; }
11615 if test `eval echo '${'$as_ac_var'}'` = yes; then
11616   cat >>confdefs.h <<_ACEOF
11617 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11618 _ACEOF
11619
11620 fi
11621 done
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11651                   stdio.h unistd.h
11652 do
11653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11655   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11658   echo $ECHO_N "(cached) $ECHO_C" >&6
11659 fi
11660 ac_res=`eval echo '${'$as_ac_Header'}'`
11661                { echo "$as_me:$LINENO: result: $ac_res" >&5
11662 echo "${ECHO_T}$ac_res" >&6; }
11663 else
11664   # Is the header compilable?
11665 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11666 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11667 cat >conftest.$ac_ext <<_ACEOF
11668 /* confdefs.h.  */
11669 _ACEOF
11670 cat confdefs.h >>conftest.$ac_ext
11671 cat >>conftest.$ac_ext <<_ACEOF
11672 /* end confdefs.h.  */
11673 $ac_includes_default
11674 #include <$ac_header>
11675 _ACEOF
11676 rm -f conftest.$ac_objext
11677 if { (ac_try="$ac_compile"
11678 case "(($ac_try" in
11679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680   *) ac_try_echo=$ac_try;;
11681 esac
11682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683   (eval "$ac_compile") 2>conftest.er1
11684   ac_status=$?
11685   grep -v '^ *+' conftest.er1 >conftest.err
11686   rm -f conftest.er1
11687   cat conftest.err >&5
11688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689   (exit $ac_status); } &&
11690          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11691   { (case "(($ac_try" in
11692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11693   *) ac_try_echo=$ac_try;;
11694 esac
11695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11696   (eval "$ac_try") 2>&5
11697   ac_status=$?
11698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699   (exit $ac_status); }; } &&
11700          { ac_try='test -s conftest.$ac_objext'
11701   { (case "(($ac_try" in
11702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11703   *) ac_try_echo=$ac_try;;
11704 esac
11705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11706   (eval "$ac_try") 2>&5
11707   ac_status=$?
11708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709   (exit $ac_status); }; }; then
11710   ac_header_compiler=yes
11711 else
11712   echo "$as_me: failed program was:" >&5
11713 sed 's/^/| /' conftest.$ac_ext >&5
11714
11715         ac_header_compiler=no
11716 fi
11717
11718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11719 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11720 echo "${ECHO_T}$ac_header_compiler" >&6; }
11721
11722 # Is the header present?
11723 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11724 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11725 cat >conftest.$ac_ext <<_ACEOF
11726 /* confdefs.h.  */
11727 _ACEOF
11728 cat confdefs.h >>conftest.$ac_ext
11729 cat >>conftest.$ac_ext <<_ACEOF
11730 /* end confdefs.h.  */
11731 #include <$ac_header>
11732 _ACEOF
11733 if { (ac_try="$ac_cpp conftest.$ac_ext"
11734 case "(($ac_try" in
11735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11736   *) ac_try_echo=$ac_try;;
11737 esac
11738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11739   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11740   ac_status=$?
11741   grep -v '^ *+' conftest.er1 >conftest.err
11742   rm -f conftest.er1
11743   cat conftest.err >&5
11744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745   (exit $ac_status); } >/dev/null; then
11746   if test -s conftest.err; then
11747     ac_cpp_err=$ac_c_preproc_warn_flag
11748     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11749   else
11750     ac_cpp_err=
11751   fi
11752 else
11753   ac_cpp_err=yes
11754 fi
11755 if test -z "$ac_cpp_err"; then
11756   ac_header_preproc=yes
11757 else
11758   echo "$as_me: failed program was:" >&5
11759 sed 's/^/| /' conftest.$ac_ext >&5
11760
11761   ac_header_preproc=no
11762 fi
11763
11764 rm -f conftest.err conftest.$ac_ext
11765 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11766 echo "${ECHO_T}$ac_header_preproc" >&6; }
11767
11768 # So?  What about this header?
11769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11770   yes:no: )
11771     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11772 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11773     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11774 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11775     ac_header_preproc=yes
11776     ;;
11777   no:yes:* )
11778     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11779 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11780     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11781 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11782     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11783 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11784     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11785 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11786     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11787 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11788     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11789 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11790     ( cat <<\_ASBOX
11791 ## ----------------------------------- ##
11792 ## Report this to llvmbugs@cs.uiuc.edu ##
11793 ## ----------------------------------- ##
11794 _ASBOX
11795      ) | sed "s/^/$as_me: WARNING:     /" >&2
11796     ;;
11797 esac
11798 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11801   echo $ECHO_N "(cached) $ECHO_C" >&6
11802 else
11803   eval "$as_ac_Header=\$ac_header_preproc"
11804 fi
11805 ac_res=`eval echo '${'$as_ac_Header'}'`
11806                { echo "$as_me:$LINENO: result: $ac_res" >&5
11807 echo "${ECHO_T}$ac_res" >&6; }
11808
11809 fi
11810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11811   cat >>confdefs.h <<_ACEOF
11812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11813 _ACEOF
11814
11815 fi
11816
11817 done
11818
11819
11820
11821
11822
11823 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11824 do
11825 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11827   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11830   echo $ECHO_N "(cached) $ECHO_C" >&6
11831 fi
11832 ac_res=`eval echo '${'$as_ac_Header'}'`
11833                { echo "$as_me:$LINENO: result: $ac_res" >&5
11834 echo "${ECHO_T}$ac_res" >&6; }
11835 else
11836   # Is the header compilable?
11837 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11838 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11839 cat >conftest.$ac_ext <<_ACEOF
11840 /* confdefs.h.  */
11841 _ACEOF
11842 cat confdefs.h >>conftest.$ac_ext
11843 cat >>conftest.$ac_ext <<_ACEOF
11844 /* end confdefs.h.  */
11845 $ac_includes_default
11846 #include <$ac_header>
11847 _ACEOF
11848 rm -f conftest.$ac_objext
11849 if { (ac_try="$ac_compile"
11850 case "(($ac_try" in
11851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852   *) ac_try_echo=$ac_try;;
11853 esac
11854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855   (eval "$ac_compile") 2>conftest.er1
11856   ac_status=$?
11857   grep -v '^ *+' conftest.er1 >conftest.err
11858   rm -f conftest.er1
11859   cat conftest.err >&5
11860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861   (exit $ac_status); } &&
11862          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11863   { (case "(($ac_try" in
11864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11865   *) ac_try_echo=$ac_try;;
11866 esac
11867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11868   (eval "$ac_try") 2>&5
11869   ac_status=$?
11870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871   (exit $ac_status); }; } &&
11872          { ac_try='test -s conftest.$ac_objext'
11873   { (case "(($ac_try" in
11874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875   *) ac_try_echo=$ac_try;;
11876 esac
11877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878   (eval "$ac_try") 2>&5
11879   ac_status=$?
11880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881   (exit $ac_status); }; }; then
11882   ac_header_compiler=yes
11883 else
11884   echo "$as_me: failed program was:" >&5
11885 sed 's/^/| /' conftest.$ac_ext >&5
11886
11887         ac_header_compiler=no
11888 fi
11889
11890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11891 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11892 echo "${ECHO_T}$ac_header_compiler" >&6; }
11893
11894 # Is the header present?
11895 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11897 cat >conftest.$ac_ext <<_ACEOF
11898 /* confdefs.h.  */
11899 _ACEOF
11900 cat confdefs.h >>conftest.$ac_ext
11901 cat >>conftest.$ac_ext <<_ACEOF
11902 /* end confdefs.h.  */
11903 #include <$ac_header>
11904 _ACEOF
11905 if { (ac_try="$ac_cpp conftest.$ac_ext"
11906 case "(($ac_try" in
11907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11908   *) ac_try_echo=$ac_try;;
11909 esac
11910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11911   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11912   ac_status=$?
11913   grep -v '^ *+' conftest.er1 >conftest.err
11914   rm -f conftest.er1
11915   cat conftest.err >&5
11916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917   (exit $ac_status); } >/dev/null; then
11918   if test -s conftest.err; then
11919     ac_cpp_err=$ac_c_preproc_warn_flag
11920     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11921   else
11922     ac_cpp_err=
11923   fi
11924 else
11925   ac_cpp_err=yes
11926 fi
11927 if test -z "$ac_cpp_err"; then
11928   ac_header_preproc=yes
11929 else
11930   echo "$as_me: failed program was:" >&5
11931 sed 's/^/| /' conftest.$ac_ext >&5
11932
11933   ac_header_preproc=no
11934 fi
11935
11936 rm -f conftest.err conftest.$ac_ext
11937 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11938 echo "${ECHO_T}$ac_header_preproc" >&6; }
11939
11940 # So?  What about this header?
11941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11942   yes:no: )
11943     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11944 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11945     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11946 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11947     ac_header_preproc=yes
11948     ;;
11949   no:yes:* )
11950     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11951 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11952     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11953 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11954     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11955 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11956     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11957 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11958     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11959 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11960     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11961 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11962     ( cat <<\_ASBOX
11963 ## ----------------------------------- ##
11964 ## Report this to llvmbugs@cs.uiuc.edu ##
11965 ## ----------------------------------- ##
11966 _ASBOX
11967      ) | sed "s/^/$as_me: WARNING:     /" >&2
11968     ;;
11969 esac
11970 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11973   echo $ECHO_N "(cached) $ECHO_C" >&6
11974 else
11975   eval "$as_ac_Header=\$ac_header_preproc"
11976 fi
11977 ac_res=`eval echo '${'$as_ac_Header'}'`
11978                { echo "$as_me:$LINENO: result: $ac_res" >&5
11979 echo "${ECHO_T}$ac_res" >&6; }
11980
11981 fi
11982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11983   cat >>confdefs.h <<_ACEOF
11984 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11985 _ACEOF
11986
11987 fi
11988
11989 done
11990
11991
11992
11993 for ac_header in string.h strings.h
11994 do
11995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11997   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12000   echo $ECHO_N "(cached) $ECHO_C" >&6
12001 fi
12002 ac_res=`eval echo '${'$as_ac_Header'}'`
12003                { echo "$as_me:$LINENO: result: $ac_res" >&5
12004 echo "${ECHO_T}$ac_res" >&6; }
12005 else
12006   # Is the header compilable?
12007 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12008 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12009 cat >conftest.$ac_ext <<_ACEOF
12010 /* confdefs.h.  */
12011 _ACEOF
12012 cat confdefs.h >>conftest.$ac_ext
12013 cat >>conftest.$ac_ext <<_ACEOF
12014 /* end confdefs.h.  */
12015 $ac_includes_default
12016 #include <$ac_header>
12017 _ACEOF
12018 rm -f conftest.$ac_objext
12019 if { (ac_try="$ac_compile"
12020 case "(($ac_try" in
12021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12022   *) ac_try_echo=$ac_try;;
12023 esac
12024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12025   (eval "$ac_compile") 2>conftest.er1
12026   ac_status=$?
12027   grep -v '^ *+' conftest.er1 >conftest.err
12028   rm -f conftest.er1
12029   cat conftest.err >&5
12030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031   (exit $ac_status); } &&
12032          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12033   { (case "(($ac_try" in
12034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12035   *) ac_try_echo=$ac_try;;
12036 esac
12037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12038   (eval "$ac_try") 2>&5
12039   ac_status=$?
12040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041   (exit $ac_status); }; } &&
12042          { ac_try='test -s conftest.$ac_objext'
12043   { (case "(($ac_try" in
12044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12045   *) ac_try_echo=$ac_try;;
12046 esac
12047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12048   (eval "$ac_try") 2>&5
12049   ac_status=$?
12050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051   (exit $ac_status); }; }; then
12052   ac_header_compiler=yes
12053 else
12054   echo "$as_me: failed program was:" >&5
12055 sed 's/^/| /' conftest.$ac_ext >&5
12056
12057         ac_header_compiler=no
12058 fi
12059
12060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12061 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12062 echo "${ECHO_T}$ac_header_compiler" >&6; }
12063
12064 # Is the header present?
12065 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12066 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12067 cat >conftest.$ac_ext <<_ACEOF
12068 /* confdefs.h.  */
12069 _ACEOF
12070 cat confdefs.h >>conftest.$ac_ext
12071 cat >>conftest.$ac_ext <<_ACEOF
12072 /* end confdefs.h.  */
12073 #include <$ac_header>
12074 _ACEOF
12075 if { (ac_try="$ac_cpp conftest.$ac_ext"
12076 case "(($ac_try" in
12077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12078   *) ac_try_echo=$ac_try;;
12079 esac
12080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12081   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12082   ac_status=$?
12083   grep -v '^ *+' conftest.er1 >conftest.err
12084   rm -f conftest.er1
12085   cat conftest.err >&5
12086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087   (exit $ac_status); } >/dev/null; then
12088   if test -s conftest.err; then
12089     ac_cpp_err=$ac_c_preproc_warn_flag
12090     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12091   else
12092     ac_cpp_err=
12093   fi
12094 else
12095   ac_cpp_err=yes
12096 fi
12097 if test -z "$ac_cpp_err"; then
12098   ac_header_preproc=yes
12099 else
12100   echo "$as_me: failed program was:" >&5
12101 sed 's/^/| /' conftest.$ac_ext >&5
12102
12103   ac_header_preproc=no
12104 fi
12105
12106 rm -f conftest.err conftest.$ac_ext
12107 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12108 echo "${ECHO_T}$ac_header_preproc" >&6; }
12109
12110 # So?  What about this header?
12111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12112   yes:no: )
12113     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12114 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12115     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12116 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12117     ac_header_preproc=yes
12118     ;;
12119   no:yes:* )
12120     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12121 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12122     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12123 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12124     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12125 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12126     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12127 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12128     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12129 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12130     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12131 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12132     ( cat <<\_ASBOX
12133 ## ----------------------------------- ##
12134 ## Report this to llvmbugs@cs.uiuc.edu ##
12135 ## ----------------------------------- ##
12136 _ASBOX
12137      ) | sed "s/^/$as_me: WARNING:     /" >&2
12138     ;;
12139 esac
12140 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12143   echo $ECHO_N "(cached) $ECHO_C" >&6
12144 else
12145   eval "$as_ac_Header=\$ac_header_preproc"
12146 fi
12147 ac_res=`eval echo '${'$as_ac_Header'}'`
12148                { echo "$as_me:$LINENO: result: $ac_res" >&5
12149 echo "${ECHO_T}$ac_res" >&6; }
12150
12151 fi
12152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12153   cat >>confdefs.h <<_ACEOF
12154 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12155 _ACEOF
12156  break
12157 fi
12158
12159 done
12160
12161
12162
12163
12164 for ac_func in strchr index
12165 do
12166 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12167 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12169 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12170   echo $ECHO_N "(cached) $ECHO_C" >&6
12171 else
12172   cat >conftest.$ac_ext <<_ACEOF
12173 /* confdefs.h.  */
12174 _ACEOF
12175 cat confdefs.h >>conftest.$ac_ext
12176 cat >>conftest.$ac_ext <<_ACEOF
12177 /* end confdefs.h.  */
12178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12179    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12180 #define $ac_func innocuous_$ac_func
12181
12182 /* System header to define __stub macros and hopefully few prototypes,
12183     which can conflict with char $ac_func (); below.
12184     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12185     <limits.h> exists even on freestanding compilers.  */
12186
12187 #ifdef __STDC__
12188 # include <limits.h>
12189 #else
12190 # include <assert.h>
12191 #endif
12192
12193 #undef $ac_func
12194
12195 /* Override any GCC internal prototype to avoid an error.
12196    Use char because int might match the return type of a GCC
12197    builtin and then its argument prototype would still apply.  */
12198 #ifdef __cplusplus
12199 extern "C"
12200 #endif
12201 char $ac_func ();
12202 /* The GNU C library defines this for functions which it implements
12203     to always fail with ENOSYS.  Some functions are actually named
12204     something starting with __ and the normal name is an alias.  */
12205 #if defined __stub_$ac_func || defined __stub___$ac_func
12206 choke me
12207 #endif
12208
12209 int
12210 main ()
12211 {
12212 return $ac_func ();
12213   ;
12214   return 0;
12215 }
12216 _ACEOF
12217 rm -f conftest.$ac_objext conftest$ac_exeext
12218 if { (ac_try="$ac_link"
12219 case "(($ac_try" in
12220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221   *) ac_try_echo=$ac_try;;
12222 esac
12223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12224   (eval "$ac_link") 2>conftest.er1
12225   ac_status=$?
12226   grep -v '^ *+' conftest.er1 >conftest.err
12227   rm -f conftest.er1
12228   cat conftest.err >&5
12229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230   (exit $ac_status); } &&
12231          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12232   { (case "(($ac_try" in
12233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12234   *) ac_try_echo=$ac_try;;
12235 esac
12236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12237   (eval "$ac_try") 2>&5
12238   ac_status=$?
12239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240   (exit $ac_status); }; } &&
12241          { ac_try='test -s conftest$ac_exeext'
12242   { (case "(($ac_try" in
12243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12244   *) ac_try_echo=$ac_try;;
12245 esac
12246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12247   (eval "$ac_try") 2>&5
12248   ac_status=$?
12249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250   (exit $ac_status); }; }; then
12251   eval "$as_ac_var=yes"
12252 else
12253   echo "$as_me: failed program was:" >&5
12254 sed 's/^/| /' conftest.$ac_ext >&5
12255
12256         eval "$as_ac_var=no"
12257 fi
12258
12259 rm -f core conftest.err conftest.$ac_objext \
12260       conftest$ac_exeext conftest.$ac_ext
12261 fi
12262 ac_res=`eval echo '${'$as_ac_var'}'`
12263                { echo "$as_me:$LINENO: result: $ac_res" >&5
12264 echo "${ECHO_T}$ac_res" >&6; }
12265 if test `eval echo '${'$as_ac_var'}'` = yes; then
12266   cat >>confdefs.h <<_ACEOF
12267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12268 _ACEOF
12269  break
12270 fi
12271 done
12272
12273
12274
12275 for ac_func in strrchr rindex
12276 do
12277 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12278 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12279 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12280 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12281   echo $ECHO_N "(cached) $ECHO_C" >&6
12282 else
12283   cat >conftest.$ac_ext <<_ACEOF
12284 /* confdefs.h.  */
12285 _ACEOF
12286 cat confdefs.h >>conftest.$ac_ext
12287 cat >>conftest.$ac_ext <<_ACEOF
12288 /* end confdefs.h.  */
12289 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12290    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12291 #define $ac_func innocuous_$ac_func
12292
12293 /* System header to define __stub macros and hopefully few prototypes,
12294     which can conflict with char $ac_func (); below.
12295     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12296     <limits.h> exists even on freestanding compilers.  */
12297
12298 #ifdef __STDC__
12299 # include <limits.h>
12300 #else
12301 # include <assert.h>
12302 #endif
12303
12304 #undef $ac_func
12305
12306 /* Override any GCC internal prototype to avoid an error.
12307    Use char because int might match the return type of a GCC
12308    builtin and then its argument prototype would still apply.  */
12309 #ifdef __cplusplus
12310 extern "C"
12311 #endif
12312 char $ac_func ();
12313 /* The GNU C library defines this for functions which it implements
12314     to always fail with ENOSYS.  Some functions are actually named
12315     something starting with __ and the normal name is an alias.  */
12316 #if defined __stub_$ac_func || defined __stub___$ac_func
12317 choke me
12318 #endif
12319
12320 int
12321 main ()
12322 {
12323 return $ac_func ();
12324   ;
12325   return 0;
12326 }
12327 _ACEOF
12328 rm -f conftest.$ac_objext conftest$ac_exeext
12329 if { (ac_try="$ac_link"
12330 case "(($ac_try" in
12331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12332   *) ac_try_echo=$ac_try;;
12333 esac
12334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12335   (eval "$ac_link") 2>conftest.er1
12336   ac_status=$?
12337   grep -v '^ *+' conftest.er1 >conftest.err
12338   rm -f conftest.er1
12339   cat conftest.err >&5
12340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341   (exit $ac_status); } &&
12342          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12343   { (case "(($ac_try" in
12344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12345   *) ac_try_echo=$ac_try;;
12346 esac
12347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12348   (eval "$ac_try") 2>&5
12349   ac_status=$?
12350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351   (exit $ac_status); }; } &&
12352          { ac_try='test -s conftest$ac_exeext'
12353   { (case "(($ac_try" in
12354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12355   *) ac_try_echo=$ac_try;;
12356 esac
12357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12358   (eval "$ac_try") 2>&5
12359   ac_status=$?
12360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361   (exit $ac_status); }; }; then
12362   eval "$as_ac_var=yes"
12363 else
12364   echo "$as_me: failed program was:" >&5
12365 sed 's/^/| /' conftest.$ac_ext >&5
12366
12367         eval "$as_ac_var=no"
12368 fi
12369
12370 rm -f core conftest.err conftest.$ac_objext \
12371       conftest$ac_exeext conftest.$ac_ext
12372 fi
12373 ac_res=`eval echo '${'$as_ac_var'}'`
12374                { echo "$as_me:$LINENO: result: $ac_res" >&5
12375 echo "${ECHO_T}$ac_res" >&6; }
12376 if test `eval echo '${'$as_ac_var'}'` = yes; then
12377   cat >>confdefs.h <<_ACEOF
12378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12379 _ACEOF
12380  break
12381 fi
12382 done
12383
12384
12385
12386 for ac_func in memcpy bcopy
12387 do
12388 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12389 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12391 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12392   echo $ECHO_N "(cached) $ECHO_C" >&6
12393 else
12394   cat >conftest.$ac_ext <<_ACEOF
12395 /* confdefs.h.  */
12396 _ACEOF
12397 cat confdefs.h >>conftest.$ac_ext
12398 cat >>conftest.$ac_ext <<_ACEOF
12399 /* end confdefs.h.  */
12400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12401    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12402 #define $ac_func innocuous_$ac_func
12403
12404 /* System header to define __stub macros and hopefully few prototypes,
12405     which can conflict with char $ac_func (); below.
12406     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12407     <limits.h> exists even on freestanding compilers.  */
12408
12409 #ifdef __STDC__
12410 # include <limits.h>
12411 #else
12412 # include <assert.h>
12413 #endif
12414
12415 #undef $ac_func
12416
12417 /* Override any GCC internal prototype to avoid an error.
12418    Use char because int might match the return type of a GCC
12419    builtin and then its argument prototype would still apply.  */
12420 #ifdef __cplusplus
12421 extern "C"
12422 #endif
12423 char $ac_func ();
12424 /* The GNU C library defines this for functions which it implements
12425     to always fail with ENOSYS.  Some functions are actually named
12426     something starting with __ and the normal name is an alias.  */
12427 #if defined __stub_$ac_func || defined __stub___$ac_func
12428 choke me
12429 #endif
12430
12431 int
12432 main ()
12433 {
12434 return $ac_func ();
12435   ;
12436   return 0;
12437 }
12438 _ACEOF
12439 rm -f conftest.$ac_objext conftest$ac_exeext
12440 if { (ac_try="$ac_link"
12441 case "(($ac_try" in
12442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12443   *) ac_try_echo=$ac_try;;
12444 esac
12445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12446   (eval "$ac_link") 2>conftest.er1
12447   ac_status=$?
12448   grep -v '^ *+' conftest.er1 >conftest.err
12449   rm -f conftest.er1
12450   cat conftest.err >&5
12451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452   (exit $ac_status); } &&
12453          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12454   { (case "(($ac_try" in
12455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12456   *) ac_try_echo=$ac_try;;
12457 esac
12458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12459   (eval "$ac_try") 2>&5
12460   ac_status=$?
12461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462   (exit $ac_status); }; } &&
12463          { ac_try='test -s conftest$ac_exeext'
12464   { (case "(($ac_try" in
12465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12466   *) ac_try_echo=$ac_try;;
12467 esac
12468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12469   (eval "$ac_try") 2>&5
12470   ac_status=$?
12471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472   (exit $ac_status); }; }; then
12473   eval "$as_ac_var=yes"
12474 else
12475   echo "$as_me: failed program was:" >&5
12476 sed 's/^/| /' conftest.$ac_ext >&5
12477
12478         eval "$as_ac_var=no"
12479 fi
12480
12481 rm -f core conftest.err conftest.$ac_objext \
12482       conftest$ac_exeext conftest.$ac_ext
12483 fi
12484 ac_res=`eval echo '${'$as_ac_var'}'`
12485                { echo "$as_me:$LINENO: result: $ac_res" >&5
12486 echo "${ECHO_T}$ac_res" >&6; }
12487 if test `eval echo '${'$as_ac_var'}'` = yes; then
12488   cat >>confdefs.h <<_ACEOF
12489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12490 _ACEOF
12491  break
12492 fi
12493 done
12494
12495
12496
12497 for ac_func in memmove strcmp
12498 do
12499 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12500 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12501 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12502 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12503   echo $ECHO_N "(cached) $ECHO_C" >&6
12504 else
12505   cat >conftest.$ac_ext <<_ACEOF
12506 /* confdefs.h.  */
12507 _ACEOF
12508 cat confdefs.h >>conftest.$ac_ext
12509 cat >>conftest.$ac_ext <<_ACEOF
12510 /* end confdefs.h.  */
12511 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12512    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12513 #define $ac_func innocuous_$ac_func
12514
12515 /* System header to define __stub macros and hopefully few prototypes,
12516     which can conflict with char $ac_func (); below.
12517     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12518     <limits.h> exists even on freestanding compilers.  */
12519
12520 #ifdef __STDC__
12521 # include <limits.h>
12522 #else
12523 # include <assert.h>
12524 #endif
12525
12526 #undef $ac_func
12527
12528 /* Override any GCC internal prototype to avoid an error.
12529    Use char because int might match the return type of a GCC
12530    builtin and then its argument prototype would still apply.  */
12531 #ifdef __cplusplus
12532 extern "C"
12533 #endif
12534 char $ac_func ();
12535 /* The GNU C library defines this for functions which it implements
12536     to always fail with ENOSYS.  Some functions are actually named
12537     something starting with __ and the normal name is an alias.  */
12538 #if defined __stub_$ac_func || defined __stub___$ac_func
12539 choke me
12540 #endif
12541
12542 int
12543 main ()
12544 {
12545 return $ac_func ();
12546   ;
12547   return 0;
12548 }
12549 _ACEOF
12550 rm -f conftest.$ac_objext conftest$ac_exeext
12551 if { (ac_try="$ac_link"
12552 case "(($ac_try" in
12553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12554   *) ac_try_echo=$ac_try;;
12555 esac
12556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12557   (eval "$ac_link") 2>conftest.er1
12558   ac_status=$?
12559   grep -v '^ *+' conftest.er1 >conftest.err
12560   rm -f conftest.er1
12561   cat conftest.err >&5
12562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563   (exit $ac_status); } &&
12564          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12565   { (case "(($ac_try" in
12566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12567   *) ac_try_echo=$ac_try;;
12568 esac
12569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12570   (eval "$ac_try") 2>&5
12571   ac_status=$?
12572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573   (exit $ac_status); }; } &&
12574          { ac_try='test -s conftest$ac_exeext'
12575   { (case "(($ac_try" in
12576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12577   *) ac_try_echo=$ac_try;;
12578 esac
12579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12580   (eval "$ac_try") 2>&5
12581   ac_status=$?
12582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583   (exit $ac_status); }; }; then
12584   eval "$as_ac_var=yes"
12585 else
12586   echo "$as_me: failed program was:" >&5
12587 sed 's/^/| /' conftest.$ac_ext >&5
12588
12589         eval "$as_ac_var=no"
12590 fi
12591
12592 rm -f core conftest.err conftest.$ac_objext \
12593       conftest$ac_exeext conftest.$ac_ext
12594 fi
12595 ac_res=`eval echo '${'$as_ac_var'}'`
12596                { echo "$as_me:$LINENO: result: $ac_res" >&5
12597 echo "${ECHO_T}$ac_res" >&6; }
12598 if test `eval echo '${'$as_ac_var'}'` = yes; then
12599   cat >>confdefs.h <<_ACEOF
12600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12601 _ACEOF
12602
12603 fi
12604 done
12605
12606
12607
12608
12609 for ac_func in closedir opendir readdir
12610 do
12611 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12612 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12613 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12614 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12615   echo $ECHO_N "(cached) $ECHO_C" >&6
12616 else
12617   cat >conftest.$ac_ext <<_ACEOF
12618 /* confdefs.h.  */
12619 _ACEOF
12620 cat confdefs.h >>conftest.$ac_ext
12621 cat >>conftest.$ac_ext <<_ACEOF
12622 /* end confdefs.h.  */
12623 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12624    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12625 #define $ac_func innocuous_$ac_func
12626
12627 /* System header to define __stub macros and hopefully few prototypes,
12628     which can conflict with char $ac_func (); below.
12629     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12630     <limits.h> exists even on freestanding compilers.  */
12631
12632 #ifdef __STDC__
12633 # include <limits.h>
12634 #else
12635 # include <assert.h>
12636 #endif
12637
12638 #undef $ac_func
12639
12640 /* Override any GCC internal prototype to avoid an error.
12641    Use char because int might match the return type of a GCC
12642    builtin and then its argument prototype would still apply.  */
12643 #ifdef __cplusplus
12644 extern "C"
12645 #endif
12646 char $ac_func ();
12647 /* The GNU C library defines this for functions which it implements
12648     to always fail with ENOSYS.  Some functions are actually named
12649     something starting with __ and the normal name is an alias.  */
12650 #if defined __stub_$ac_func || defined __stub___$ac_func
12651 choke me
12652 #endif
12653
12654 int
12655 main ()
12656 {
12657 return $ac_func ();
12658   ;
12659   return 0;
12660 }
12661 _ACEOF
12662 rm -f conftest.$ac_objext conftest$ac_exeext
12663 if { (ac_try="$ac_link"
12664 case "(($ac_try" in
12665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12666   *) ac_try_echo=$ac_try;;
12667 esac
12668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12669   (eval "$ac_link") 2>conftest.er1
12670   ac_status=$?
12671   grep -v '^ *+' conftest.er1 >conftest.err
12672   rm -f conftest.er1
12673   cat conftest.err >&5
12674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675   (exit $ac_status); } &&
12676          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12677   { (case "(($ac_try" in
12678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12679   *) ac_try_echo=$ac_try;;
12680 esac
12681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12682   (eval "$ac_try") 2>&5
12683   ac_status=$?
12684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685   (exit $ac_status); }; } &&
12686          { ac_try='test -s conftest$ac_exeext'
12687   { (case "(($ac_try" in
12688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12689   *) ac_try_echo=$ac_try;;
12690 esac
12691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12692   (eval "$ac_try") 2>&5
12693   ac_status=$?
12694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695   (exit $ac_status); }; }; then
12696   eval "$as_ac_var=yes"
12697 else
12698   echo "$as_me: failed program was:" >&5
12699 sed 's/^/| /' conftest.$ac_ext >&5
12700
12701         eval "$as_ac_var=no"
12702 fi
12703
12704 rm -f core conftest.err conftest.$ac_objext \
12705       conftest$ac_exeext conftest.$ac_ext
12706 fi
12707 ac_res=`eval echo '${'$as_ac_var'}'`
12708                { echo "$as_me:$LINENO: result: $ac_res" >&5
12709 echo "${ECHO_T}$ac_res" >&6; }
12710 if test `eval echo '${'$as_ac_var'}'` = yes; then
12711   cat >>confdefs.h <<_ACEOF
12712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12713 _ACEOF
12714
12715 fi
12716 done
12717
12718
12719
12720 if test "$WITH_LLVMGCCDIR" = "default" ; then
12721   LLVMGCC="llvm-gcc${EXEEXT}"
12722   LLVMGXX="llvm-g++${EXEEXT}"
12723   LLVMGCCCOMMAND="$LLVMGCC"
12724   LLVMGXXCOMMAND="$LLVMGXX"
12725   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12726
12727   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12728
12729   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12730 set dummy $LLVMGCC; ac_word=$2
12731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12733 if test "${ac_cv_path_LLVMGCC+set}" = set; then
12734   echo $ECHO_N "(cached) $ECHO_C" >&6
12735 else
12736   case $LLVMGCC in
12737   [\\/]* | ?:[\\/]*)
12738   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12739   ;;
12740   *)
12741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12742 for as_dir in $PATH
12743 do
12744   IFS=$as_save_IFS
12745   test -z "$as_dir" && as_dir=.
12746   for ac_exec_ext in '' $ac_executable_extensions; do
12747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12748     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
12749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12750     break 2
12751   fi
12752 done
12753 done
12754 IFS=$as_save_IFS
12755
12756   ;;
12757 esac
12758 fi
12759 LLVMGCC=$ac_cv_path_LLVMGCC
12760 if test -n "$LLVMGCC"; then
12761   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12762 echo "${ECHO_T}$LLVMGCC" >&6; }
12763 else
12764   { echo "$as_me:$LINENO: result: no" >&5
12765 echo "${ECHO_T}no" >&6; }
12766 fi
12767
12768
12769   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12770 set dummy $LLVMGXX; ac_word=$2
12771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12773 if test "${ac_cv_path_LLVMGXX+set}" = set; then
12774   echo $ECHO_N "(cached) $ECHO_C" >&6
12775 else
12776   case $LLVMGXX in
12777   [\\/]* | ?:[\\/]*)
12778   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12779   ;;
12780   *)
12781   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12782 for as_dir in $PATH
12783 do
12784   IFS=$as_save_IFS
12785   test -z "$as_dir" && as_dir=.
12786   for ac_exec_ext in '' $ac_executable_extensions; do
12787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12788     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
12789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12790     break 2
12791   fi
12792 done
12793 done
12794 IFS=$as_save_IFS
12795
12796   ;;
12797 esac
12798 fi
12799 LLVMGXX=$ac_cv_path_LLVMGXX
12800 if test -n "$LLVMGXX"; then
12801   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12802 echo "${ECHO_T}$LLVMGXX" >&6; }
12803 else
12804   { echo "$as_me:$LINENO: result: no" >&5
12805 echo "${ECHO_T}no" >&6; }
12806 fi
12807
12808
12809 else
12810   if test -z "$LLVMGCC"; then
12811     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
12812     LLVMGCCCOMMAND="$LLVMGCC"
12813   fi
12814   if test -z "$LLVMGXX"; then
12815     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
12816     LLVMGXXCOMMAND="$LLVMGXX"
12817   fi
12818
12819   LLVMGCC=$LLVMGCC
12820
12821   LLVMGXX=$LLVMGXX
12822
12823   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12824
12825   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12826
12827 fi
12828
12829
12830 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12831 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12832
12833 ICC=no
12834 IXX=no
12835 case $CC in
12836   icc*|icpc*)
12837     ICC=yes
12838     IXX=yes
12839     ;;
12840    *)
12841     ;;
12842 esac
12843
12844 if test "$GCC" != "yes" && test "$ICC" != "yes"
12845 then
12846   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12847 echo "$as_me: error: gcc|icc required but not found" >&2;}
12848    { (exit 1); exit 1; }; }
12849 fi
12850
12851 if test "$GXX" != "yes" && test "$IXX" != "yes"
12852 then
12853   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
12854 echo "$as_me: error: g++|icc required but not found" >&2;}
12855    { (exit 1); exit 1; }; }
12856 fi
12857
12858 if test "$GCC" = "yes"
12859 then
12860   cat >conftest.$ac_ext <<_ACEOF
12861 #if !defined(__GNUC__) || __GNUC__ < 3
12862 #error Unsupported GCC version
12863 #endif
12864
12865 _ACEOF
12866 rm -f conftest.$ac_objext
12867 if { (ac_try="$ac_compile"
12868 case "(($ac_try" in
12869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12870   *) ac_try_echo=$ac_try;;
12871 esac
12872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12873   (eval "$ac_compile") 2>conftest.er1
12874   ac_status=$?
12875   grep -v '^ *+' conftest.er1 >conftest.err
12876   rm -f conftest.er1
12877   cat conftest.err >&5
12878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879   (exit $ac_status); } &&
12880          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12881   { (case "(($ac_try" in
12882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12883   *) ac_try_echo=$ac_try;;
12884 esac
12885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12886   (eval "$ac_try") 2>&5
12887   ac_status=$?
12888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889   (exit $ac_status); }; } &&
12890          { ac_try='test -s conftest.$ac_objext'
12891   { (case "(($ac_try" in
12892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12893   *) ac_try_echo=$ac_try;;
12894 esac
12895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12896   (eval "$ac_try") 2>&5
12897   ac_status=$?
12898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899   (exit $ac_status); }; }; then
12900   :
12901 else
12902   echo "$as_me: failed program was:" >&5
12903 sed 's/^/| /' conftest.$ac_ext >&5
12904
12905         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12906 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12907    { (exit 1); exit 1; }; }
12908 fi
12909
12910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12911 fi
12912
12913 if test -z "$llvm_cv_gnu_make_command"
12914 then
12915   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12916 echo "$as_me: error: GNU Make required but not found" >&2;}
12917    { (exit 1); exit 1; }; }
12918 fi
12919
12920 { echo "$as_me:$LINENO: result: ok" >&5
12921 echo "${ECHO_T}ok" >&6; }
12922
12923 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12924 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12925 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12926
12927 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12928
12929 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12930 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12931
12932
12933
12934 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12935 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12936 if test "${ac_cv_lib_m_sin+set}" = set; then
12937   echo $ECHO_N "(cached) $ECHO_C" >&6
12938 else
12939   ac_check_lib_save_LIBS=$LIBS
12940 LIBS="-lm  $LIBS"
12941 cat >conftest.$ac_ext <<_ACEOF
12942 /* confdefs.h.  */
12943 _ACEOF
12944 cat confdefs.h >>conftest.$ac_ext
12945 cat >>conftest.$ac_ext <<_ACEOF
12946 /* end confdefs.h.  */
12947
12948 /* Override any GCC internal prototype to avoid an error.
12949    Use char because int might match the return type of a GCC
12950    builtin and then its argument prototype would still apply.  */
12951 #ifdef __cplusplus
12952 extern "C"
12953 #endif
12954 char sin ();
12955 int
12956 main ()
12957 {
12958 return sin ();
12959   ;
12960   return 0;
12961 }
12962 _ACEOF
12963 rm -f conftest.$ac_objext conftest$ac_exeext
12964 if { (ac_try="$ac_link"
12965 case "(($ac_try" in
12966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12967   *) ac_try_echo=$ac_try;;
12968 esac
12969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12970   (eval "$ac_link") 2>conftest.er1
12971   ac_status=$?
12972   grep -v '^ *+' conftest.er1 >conftest.err
12973   rm -f conftest.er1
12974   cat conftest.err >&5
12975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976   (exit $ac_status); } &&
12977          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12978   { (case "(($ac_try" in
12979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12980   *) ac_try_echo=$ac_try;;
12981 esac
12982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12983   (eval "$ac_try") 2>&5
12984   ac_status=$?
12985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986   (exit $ac_status); }; } &&
12987          { ac_try='test -s conftest$ac_exeext'
12988   { (case "(($ac_try" in
12989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12990   *) ac_try_echo=$ac_try;;
12991 esac
12992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12993   (eval "$ac_try") 2>&5
12994   ac_status=$?
12995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996   (exit $ac_status); }; }; then
12997   ac_cv_lib_m_sin=yes
12998 else
12999   echo "$as_me: failed program was:" >&5
13000 sed 's/^/| /' conftest.$ac_ext >&5
13001
13002         ac_cv_lib_m_sin=no
13003 fi
13004
13005 rm -f core conftest.err conftest.$ac_objext \
13006       conftest$ac_exeext conftest.$ac_ext
13007 LIBS=$ac_check_lib_save_LIBS
13008 fi
13009 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13010 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13011 if test $ac_cv_lib_m_sin = yes; then
13012   cat >>confdefs.h <<_ACEOF
13013 #define HAVE_LIBM 1
13014 _ACEOF
13015
13016   LIBS="-lm $LIBS"
13017
13018 fi
13019
13020 if test "$llvm_cv_os_type" = "MingW" ; then
13021
13022 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13023 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13024 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13025   echo $ECHO_N "(cached) $ECHO_C" >&6
13026 else
13027   ac_check_lib_save_LIBS=$LIBS
13028 LIBS="-limagehlp  $LIBS"
13029 cat >conftest.$ac_ext <<_ACEOF
13030 /* confdefs.h.  */
13031 _ACEOF
13032 cat confdefs.h >>conftest.$ac_ext
13033 cat >>conftest.$ac_ext <<_ACEOF
13034 /* end confdefs.h.  */
13035
13036
13037 int
13038 main ()
13039 {
13040 return main ();
13041   ;
13042   return 0;
13043 }
13044 _ACEOF
13045 rm -f conftest.$ac_objext conftest$ac_exeext
13046 if { (ac_try="$ac_link"
13047 case "(($ac_try" in
13048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13049   *) ac_try_echo=$ac_try;;
13050 esac
13051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13052   (eval "$ac_link") 2>conftest.er1
13053   ac_status=$?
13054   grep -v '^ *+' conftest.er1 >conftest.err
13055   rm -f conftest.er1
13056   cat conftest.err >&5
13057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058   (exit $ac_status); } &&
13059          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13060   { (case "(($ac_try" in
13061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13062   *) ac_try_echo=$ac_try;;
13063 esac
13064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13065   (eval "$ac_try") 2>&5
13066   ac_status=$?
13067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068   (exit $ac_status); }; } &&
13069          { ac_try='test -s conftest$ac_exeext'
13070   { (case "(($ac_try" in
13071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13072   *) ac_try_echo=$ac_try;;
13073 esac
13074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13075   (eval "$ac_try") 2>&5
13076   ac_status=$?
13077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078   (exit $ac_status); }; }; then
13079   ac_cv_lib_imagehlp_main=yes
13080 else
13081   echo "$as_me: failed program was:" >&5
13082 sed 's/^/| /' conftest.$ac_ext >&5
13083
13084         ac_cv_lib_imagehlp_main=no
13085 fi
13086
13087 rm -f core conftest.err conftest.$ac_objext \
13088       conftest$ac_exeext conftest.$ac_ext
13089 LIBS=$ac_check_lib_save_LIBS
13090 fi
13091 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13092 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13093 if test $ac_cv_lib_imagehlp_main = yes; then
13094   cat >>confdefs.h <<_ACEOF
13095 #define HAVE_LIBIMAGEHLP 1
13096 _ACEOF
13097
13098   LIBS="-limagehlp $LIBS"
13099
13100 fi
13101
13102
13103 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13104 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13105 if test "${ac_cv_lib_psapi_main+set}" = set; then
13106   echo $ECHO_N "(cached) $ECHO_C" >&6
13107 else
13108   ac_check_lib_save_LIBS=$LIBS
13109 LIBS="-lpsapi  $LIBS"
13110 cat >conftest.$ac_ext <<_ACEOF
13111 /* confdefs.h.  */
13112 _ACEOF
13113 cat confdefs.h >>conftest.$ac_ext
13114 cat >>conftest.$ac_ext <<_ACEOF
13115 /* end confdefs.h.  */
13116
13117
13118 int
13119 main ()
13120 {
13121 return main ();
13122   ;
13123   return 0;
13124 }
13125 _ACEOF
13126 rm -f conftest.$ac_objext conftest$ac_exeext
13127 if { (ac_try="$ac_link"
13128 case "(($ac_try" in
13129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13130   *) ac_try_echo=$ac_try;;
13131 esac
13132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13133   (eval "$ac_link") 2>conftest.er1
13134   ac_status=$?
13135   grep -v '^ *+' conftest.er1 >conftest.err
13136   rm -f conftest.er1
13137   cat conftest.err >&5
13138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139   (exit $ac_status); } &&
13140          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13141   { (case "(($ac_try" in
13142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143   *) ac_try_echo=$ac_try;;
13144 esac
13145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13146   (eval "$ac_try") 2>&5
13147   ac_status=$?
13148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149   (exit $ac_status); }; } &&
13150          { ac_try='test -s conftest$ac_exeext'
13151   { (case "(($ac_try" in
13152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13153   *) ac_try_echo=$ac_try;;
13154 esac
13155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13156   (eval "$ac_try") 2>&5
13157   ac_status=$?
13158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159   (exit $ac_status); }; }; then
13160   ac_cv_lib_psapi_main=yes
13161 else
13162   echo "$as_me: failed program was:" >&5
13163 sed 's/^/| /' conftest.$ac_ext >&5
13164
13165         ac_cv_lib_psapi_main=no
13166 fi
13167
13168 rm -f core conftest.err conftest.$ac_objext \
13169       conftest$ac_exeext conftest.$ac_ext
13170 LIBS=$ac_check_lib_save_LIBS
13171 fi
13172 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13173 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13174 if test $ac_cv_lib_psapi_main = yes; then
13175   cat >>confdefs.h <<_ACEOF
13176 #define HAVE_LIBPSAPI 1
13177 _ACEOF
13178
13179   LIBS="-lpsapi $LIBS"
13180
13181 fi
13182
13183 fi
13184
13185 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13186 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13187 if test "${ac_cv_search_dlopen+set}" = set; then
13188   echo $ECHO_N "(cached) $ECHO_C" >&6
13189 else
13190   ac_func_search_save_LIBS=$LIBS
13191 cat >conftest.$ac_ext <<_ACEOF
13192 /* confdefs.h.  */
13193 _ACEOF
13194 cat confdefs.h >>conftest.$ac_ext
13195 cat >>conftest.$ac_ext <<_ACEOF
13196 /* end confdefs.h.  */
13197
13198 /* Override any GCC internal prototype to avoid an error.
13199    Use char because int might match the return type of a GCC
13200    builtin and then its argument prototype would still apply.  */
13201 #ifdef __cplusplus
13202 extern "C"
13203 #endif
13204 char dlopen ();
13205 int
13206 main ()
13207 {
13208 return dlopen ();
13209   ;
13210   return 0;
13211 }
13212 _ACEOF
13213 for ac_lib in '' dl; do
13214   if test -z "$ac_lib"; then
13215     ac_res="none required"
13216   else
13217     ac_res=-l$ac_lib
13218     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13219   fi
13220   rm -f conftest.$ac_objext conftest$ac_exeext
13221 if { (ac_try="$ac_link"
13222 case "(($ac_try" in
13223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13224   *) ac_try_echo=$ac_try;;
13225 esac
13226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13227   (eval "$ac_link") 2>conftest.er1
13228   ac_status=$?
13229   grep -v '^ *+' conftest.er1 >conftest.err
13230   rm -f conftest.er1
13231   cat conftest.err >&5
13232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233   (exit $ac_status); } &&
13234          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13235   { (case "(($ac_try" in
13236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13237   *) ac_try_echo=$ac_try;;
13238 esac
13239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13240   (eval "$ac_try") 2>&5
13241   ac_status=$?
13242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243   (exit $ac_status); }; } &&
13244          { ac_try='test -s conftest$ac_exeext'
13245   { (case "(($ac_try" in
13246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13247   *) ac_try_echo=$ac_try;;
13248 esac
13249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13250   (eval "$ac_try") 2>&5
13251   ac_status=$?
13252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253   (exit $ac_status); }; }; then
13254   ac_cv_search_dlopen=$ac_res
13255 else
13256   echo "$as_me: failed program was:" >&5
13257 sed 's/^/| /' conftest.$ac_ext >&5
13258
13259
13260 fi
13261
13262 rm -f core conftest.err conftest.$ac_objext \
13263       conftest$ac_exeext
13264   if test "${ac_cv_search_dlopen+set}" = set; then
13265   break
13266 fi
13267 done
13268 if test "${ac_cv_search_dlopen+set}" = set; then
13269   :
13270 else
13271   ac_cv_search_dlopen=no
13272 fi
13273 rm conftest.$ac_ext
13274 LIBS=$ac_func_search_save_LIBS
13275 fi
13276 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13277 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13278 ac_res=$ac_cv_search_dlopen
13279 if test "$ac_res" != no; then
13280   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13281
13282 cat >>confdefs.h <<\_ACEOF
13283 #define HAVE_DLOPEN 1
13284 _ACEOF
13285
13286 else
13287   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13288 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13289 fi
13290
13291
13292 if test "$llvm_cv_enable_libffi" = "yes" ; then
13293   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13294 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13295 if test "${ac_cv_search_ffi_call+set}" = set; then
13296   echo $ECHO_N "(cached) $ECHO_C" >&6
13297 else
13298   ac_func_search_save_LIBS=$LIBS
13299 cat >conftest.$ac_ext <<_ACEOF
13300 /* confdefs.h.  */
13301 _ACEOF
13302 cat confdefs.h >>conftest.$ac_ext
13303 cat >>conftest.$ac_ext <<_ACEOF
13304 /* end confdefs.h.  */
13305
13306 /* Override any GCC internal prototype to avoid an error.
13307    Use char because int might match the return type of a GCC
13308    builtin and then its argument prototype would still apply.  */
13309 #ifdef __cplusplus
13310 extern "C"
13311 #endif
13312 char ffi_call ();
13313 int
13314 main ()
13315 {
13316 return ffi_call ();
13317   ;
13318   return 0;
13319 }
13320 _ACEOF
13321 for ac_lib in '' ffi; do
13322   if test -z "$ac_lib"; then
13323     ac_res="none required"
13324   else
13325     ac_res=-l$ac_lib
13326     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13327   fi
13328   rm -f conftest.$ac_objext conftest$ac_exeext
13329 if { (ac_try="$ac_link"
13330 case "(($ac_try" in
13331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13332   *) ac_try_echo=$ac_try;;
13333 esac
13334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13335   (eval "$ac_link") 2>conftest.er1
13336   ac_status=$?
13337   grep -v '^ *+' conftest.er1 >conftest.err
13338   rm -f conftest.er1
13339   cat conftest.err >&5
13340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341   (exit $ac_status); } &&
13342          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13343   { (case "(($ac_try" in
13344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13345   *) ac_try_echo=$ac_try;;
13346 esac
13347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13348   (eval "$ac_try") 2>&5
13349   ac_status=$?
13350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351   (exit $ac_status); }; } &&
13352          { ac_try='test -s conftest$ac_exeext'
13353   { (case "(($ac_try" in
13354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13355   *) ac_try_echo=$ac_try;;
13356 esac
13357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13358   (eval "$ac_try") 2>&5
13359   ac_status=$?
13360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361   (exit $ac_status); }; }; then
13362   ac_cv_search_ffi_call=$ac_res
13363 else
13364   echo "$as_me: failed program was:" >&5
13365 sed 's/^/| /' conftest.$ac_ext >&5
13366
13367
13368 fi
13369
13370 rm -f core conftest.err conftest.$ac_objext \
13371       conftest$ac_exeext
13372   if test "${ac_cv_search_ffi_call+set}" = set; then
13373   break
13374 fi
13375 done
13376 if test "${ac_cv_search_ffi_call+set}" = set; then
13377   :
13378 else
13379   ac_cv_search_ffi_call=no
13380 fi
13381 rm conftest.$ac_ext
13382 LIBS=$ac_func_search_save_LIBS
13383 fi
13384 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13385 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13386 ac_res=$ac_cv_search_ffi_call
13387 if test "$ac_res" != no; then
13388   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13389
13390 cat >>confdefs.h <<\_ACEOF
13391 #define HAVE_FFI_CALL 1
13392 _ACEOF
13393
13394 else
13395   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13396 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13397    { (exit 1); exit 1; }; }
13398 fi
13399
13400 fi
13401
13402 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13403 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13404 if test "${ac_cv_search_mallinfo+set}" = set; then
13405   echo $ECHO_N "(cached) $ECHO_C" >&6
13406 else
13407   ac_func_search_save_LIBS=$LIBS
13408 cat >conftest.$ac_ext <<_ACEOF
13409 /* confdefs.h.  */
13410 _ACEOF
13411 cat confdefs.h >>conftest.$ac_ext
13412 cat >>conftest.$ac_ext <<_ACEOF
13413 /* end confdefs.h.  */
13414
13415 /* Override any GCC internal prototype to avoid an error.
13416    Use char because int might match the return type of a GCC
13417    builtin and then its argument prototype would still apply.  */
13418 #ifdef __cplusplus
13419 extern "C"
13420 #endif
13421 char mallinfo ();
13422 int
13423 main ()
13424 {
13425 return mallinfo ();
13426   ;
13427   return 0;
13428 }
13429 _ACEOF
13430 for ac_lib in '' malloc; do
13431   if test -z "$ac_lib"; then
13432     ac_res="none required"
13433   else
13434     ac_res=-l$ac_lib
13435     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13436   fi
13437   rm -f conftest.$ac_objext conftest$ac_exeext
13438 if { (ac_try="$ac_link"
13439 case "(($ac_try" in
13440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13441   *) ac_try_echo=$ac_try;;
13442 esac
13443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13444   (eval "$ac_link") 2>conftest.er1
13445   ac_status=$?
13446   grep -v '^ *+' conftest.er1 >conftest.err
13447   rm -f conftest.er1
13448   cat conftest.err >&5
13449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450   (exit $ac_status); } &&
13451          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13452   { (case "(($ac_try" in
13453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13454   *) ac_try_echo=$ac_try;;
13455 esac
13456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13457   (eval "$ac_try") 2>&5
13458   ac_status=$?
13459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460   (exit $ac_status); }; } &&
13461          { ac_try='test -s conftest$ac_exeext'
13462   { (case "(($ac_try" in
13463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464   *) ac_try_echo=$ac_try;;
13465 esac
13466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467   (eval "$ac_try") 2>&5
13468   ac_status=$?
13469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470   (exit $ac_status); }; }; then
13471   ac_cv_search_mallinfo=$ac_res
13472 else
13473   echo "$as_me: failed program was:" >&5
13474 sed 's/^/| /' conftest.$ac_ext >&5
13475
13476
13477 fi
13478
13479 rm -f core conftest.err conftest.$ac_objext \
13480       conftest$ac_exeext
13481   if test "${ac_cv_search_mallinfo+set}" = set; then
13482   break
13483 fi
13484 done
13485 if test "${ac_cv_search_mallinfo+set}" = set; then
13486   :
13487 else
13488   ac_cv_search_mallinfo=no
13489 fi
13490 rm conftest.$ac_ext
13491 LIBS=$ac_func_search_save_LIBS
13492 fi
13493 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13494 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13495 ac_res=$ac_cv_search_mallinfo
13496 if test "$ac_res" != no; then
13497   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13498
13499 cat >>confdefs.h <<\_ACEOF
13500 #define HAVE_MALLINFO 1
13501 _ACEOF
13502
13503 fi
13504
13505
13506 if test "$ENABLE_THREADS" -eq 1 ; then
13507
13508 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13509 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13510 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13511   echo $ECHO_N "(cached) $ECHO_C" >&6
13512 else
13513   ac_check_lib_save_LIBS=$LIBS
13514 LIBS="-lpthread  $LIBS"
13515 cat >conftest.$ac_ext <<_ACEOF
13516 /* confdefs.h.  */
13517 _ACEOF
13518 cat confdefs.h >>conftest.$ac_ext
13519 cat >>conftest.$ac_ext <<_ACEOF
13520 /* end confdefs.h.  */
13521
13522 /* Override any GCC internal prototype to avoid an error.
13523    Use char because int might match the return type of a GCC
13524    builtin and then its argument prototype would still apply.  */
13525 #ifdef __cplusplus
13526 extern "C"
13527 #endif
13528 char pthread_mutex_init ();
13529 int
13530 main ()
13531 {
13532 return pthread_mutex_init ();
13533   ;
13534   return 0;
13535 }
13536 _ACEOF
13537 rm -f conftest.$ac_objext conftest$ac_exeext
13538 if { (ac_try="$ac_link"
13539 case "(($ac_try" in
13540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13541   *) ac_try_echo=$ac_try;;
13542 esac
13543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13544   (eval "$ac_link") 2>conftest.er1
13545   ac_status=$?
13546   grep -v '^ *+' conftest.er1 >conftest.err
13547   rm -f conftest.er1
13548   cat conftest.err >&5
13549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550   (exit $ac_status); } &&
13551          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13552   { (case "(($ac_try" in
13553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13554   *) ac_try_echo=$ac_try;;
13555 esac
13556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13557   (eval "$ac_try") 2>&5
13558   ac_status=$?
13559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560   (exit $ac_status); }; } &&
13561          { ac_try='test -s conftest$ac_exeext'
13562   { (case "(($ac_try" in
13563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13564   *) ac_try_echo=$ac_try;;
13565 esac
13566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13567   (eval "$ac_try") 2>&5
13568   ac_status=$?
13569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570   (exit $ac_status); }; }; then
13571   ac_cv_lib_pthread_pthread_mutex_init=yes
13572 else
13573   echo "$as_me: failed program was:" >&5
13574 sed 's/^/| /' conftest.$ac_ext >&5
13575
13576         ac_cv_lib_pthread_pthread_mutex_init=no
13577 fi
13578
13579 rm -f core conftest.err conftest.$ac_objext \
13580       conftest$ac_exeext conftest.$ac_ext
13581 LIBS=$ac_check_lib_save_LIBS
13582 fi
13583 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13584 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13585 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13586   cat >>confdefs.h <<_ACEOF
13587 #define HAVE_LIBPTHREAD 1
13588 _ACEOF
13589
13590   LIBS="-lpthread $LIBS"
13591
13592 fi
13593
13594   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13595 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13596 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13597   echo $ECHO_N "(cached) $ECHO_C" >&6
13598 else
13599   ac_func_search_save_LIBS=$LIBS
13600 cat >conftest.$ac_ext <<_ACEOF
13601 /* confdefs.h.  */
13602 _ACEOF
13603 cat confdefs.h >>conftest.$ac_ext
13604 cat >>conftest.$ac_ext <<_ACEOF
13605 /* end confdefs.h.  */
13606
13607 /* Override any GCC internal prototype to avoid an error.
13608    Use char because int might match the return type of a GCC
13609    builtin and then its argument prototype would still apply.  */
13610 #ifdef __cplusplus
13611 extern "C"
13612 #endif
13613 char pthread_mutex_lock ();
13614 int
13615 main ()
13616 {
13617 return pthread_mutex_lock ();
13618   ;
13619   return 0;
13620 }
13621 _ACEOF
13622 for ac_lib in '' pthread; do
13623   if test -z "$ac_lib"; then
13624     ac_res="none required"
13625   else
13626     ac_res=-l$ac_lib
13627     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13628   fi
13629   rm -f conftest.$ac_objext conftest$ac_exeext
13630 if { (ac_try="$ac_link"
13631 case "(($ac_try" in
13632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13633   *) ac_try_echo=$ac_try;;
13634 esac
13635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13636   (eval "$ac_link") 2>conftest.er1
13637   ac_status=$?
13638   grep -v '^ *+' conftest.er1 >conftest.err
13639   rm -f conftest.er1
13640   cat conftest.err >&5
13641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642   (exit $ac_status); } &&
13643          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13644   { (case "(($ac_try" in
13645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13646   *) ac_try_echo=$ac_try;;
13647 esac
13648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13649   (eval "$ac_try") 2>&5
13650   ac_status=$?
13651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652   (exit $ac_status); }; } &&
13653          { ac_try='test -s conftest$ac_exeext'
13654   { (case "(($ac_try" in
13655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13656   *) ac_try_echo=$ac_try;;
13657 esac
13658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13659   (eval "$ac_try") 2>&5
13660   ac_status=$?
13661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662   (exit $ac_status); }; }; then
13663   ac_cv_search_pthread_mutex_lock=$ac_res
13664 else
13665   echo "$as_me: failed program was:" >&5
13666 sed 's/^/| /' conftest.$ac_ext >&5
13667
13668
13669 fi
13670
13671 rm -f core conftest.err conftest.$ac_objext \
13672       conftest$ac_exeext
13673   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13674   break
13675 fi
13676 done
13677 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13678   :
13679 else
13680   ac_cv_search_pthread_mutex_lock=no
13681 fi
13682 rm conftest.$ac_ext
13683 LIBS=$ac_func_search_save_LIBS
13684 fi
13685 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13686 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13687 ac_res=$ac_cv_search_pthread_mutex_lock
13688 if test "$ac_res" != no; then
13689   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13690
13691 cat >>confdefs.h <<\_ACEOF
13692 #define HAVE_PTHREAD_MUTEX_LOCK 1
13693 _ACEOF
13694
13695 fi
13696
13697   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13698 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13699 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13700   echo $ECHO_N "(cached) $ECHO_C" >&6
13701 else
13702   ac_func_search_save_LIBS=$LIBS
13703 cat >conftest.$ac_ext <<_ACEOF
13704 /* confdefs.h.  */
13705 _ACEOF
13706 cat confdefs.h >>conftest.$ac_ext
13707 cat >>conftest.$ac_ext <<_ACEOF
13708 /* end confdefs.h.  */
13709
13710 /* Override any GCC internal prototype to avoid an error.
13711    Use char because int might match the return type of a GCC
13712    builtin and then its argument prototype would still apply.  */
13713 #ifdef __cplusplus
13714 extern "C"
13715 #endif
13716 char pthread_rwlock_init ();
13717 int
13718 main ()
13719 {
13720 return pthread_rwlock_init ();
13721   ;
13722   return 0;
13723 }
13724 _ACEOF
13725 for ac_lib in '' pthread; do
13726   if test -z "$ac_lib"; then
13727     ac_res="none required"
13728   else
13729     ac_res=-l$ac_lib
13730     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13731   fi
13732   rm -f conftest.$ac_objext conftest$ac_exeext
13733 if { (ac_try="$ac_link"
13734 case "(($ac_try" in
13735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13736   *) ac_try_echo=$ac_try;;
13737 esac
13738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13739   (eval "$ac_link") 2>conftest.er1
13740   ac_status=$?
13741   grep -v '^ *+' conftest.er1 >conftest.err
13742   rm -f conftest.er1
13743   cat conftest.err >&5
13744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745   (exit $ac_status); } &&
13746          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13747   { (case "(($ac_try" in
13748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749   *) ac_try_echo=$ac_try;;
13750 esac
13751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13752   (eval "$ac_try") 2>&5
13753   ac_status=$?
13754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755   (exit $ac_status); }; } &&
13756          { ac_try='test -s conftest$ac_exeext'
13757   { (case "(($ac_try" in
13758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13759   *) ac_try_echo=$ac_try;;
13760 esac
13761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13762   (eval "$ac_try") 2>&5
13763   ac_status=$?
13764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765   (exit $ac_status); }; }; then
13766   ac_cv_search_pthread_rwlock_init=$ac_res
13767 else
13768   echo "$as_me: failed program was:" >&5
13769 sed 's/^/| /' conftest.$ac_ext >&5
13770
13771
13772 fi
13773
13774 rm -f core conftest.err conftest.$ac_objext \
13775       conftest$ac_exeext
13776   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13777   break
13778 fi
13779 done
13780 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13781   :
13782 else
13783   ac_cv_search_pthread_rwlock_init=no
13784 fi
13785 rm conftest.$ac_ext
13786 LIBS=$ac_func_search_save_LIBS
13787 fi
13788 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13789 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13790 ac_res=$ac_cv_search_pthread_rwlock_init
13791 if test "$ac_res" != no; then
13792   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13793
13794 cat >>confdefs.h <<\_ACEOF
13795 #define HAVE_PTHREAD_RWLOCK_INIT 1
13796 _ACEOF
13797
13798 fi
13799
13800   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13801 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13802 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13803   echo $ECHO_N "(cached) $ECHO_C" >&6
13804 else
13805   ac_func_search_save_LIBS=$LIBS
13806 cat >conftest.$ac_ext <<_ACEOF
13807 /* confdefs.h.  */
13808 _ACEOF
13809 cat confdefs.h >>conftest.$ac_ext
13810 cat >>conftest.$ac_ext <<_ACEOF
13811 /* end confdefs.h.  */
13812
13813 /* Override any GCC internal prototype to avoid an error.
13814    Use char because int might match the return type of a GCC
13815    builtin and then its argument prototype would still apply.  */
13816 #ifdef __cplusplus
13817 extern "C"
13818 #endif
13819 char pthread_getspecific ();
13820 int
13821 main ()
13822 {
13823 return pthread_getspecific ();
13824   ;
13825   return 0;
13826 }
13827 _ACEOF
13828 for ac_lib in '' pthread; do
13829   if test -z "$ac_lib"; then
13830     ac_res="none required"
13831   else
13832     ac_res=-l$ac_lib
13833     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13834   fi
13835   rm -f conftest.$ac_objext conftest$ac_exeext
13836 if { (ac_try="$ac_link"
13837 case "(($ac_try" in
13838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13839   *) ac_try_echo=$ac_try;;
13840 esac
13841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13842   (eval "$ac_link") 2>conftest.er1
13843   ac_status=$?
13844   grep -v '^ *+' conftest.er1 >conftest.err
13845   rm -f conftest.er1
13846   cat conftest.err >&5
13847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848   (exit $ac_status); } &&
13849          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13850   { (case "(($ac_try" in
13851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13852   *) ac_try_echo=$ac_try;;
13853 esac
13854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13855   (eval "$ac_try") 2>&5
13856   ac_status=$?
13857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858   (exit $ac_status); }; } &&
13859          { ac_try='test -s conftest$ac_exeext'
13860   { (case "(($ac_try" in
13861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13862   *) ac_try_echo=$ac_try;;
13863 esac
13864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13865   (eval "$ac_try") 2>&5
13866   ac_status=$?
13867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868   (exit $ac_status); }; }; then
13869   ac_cv_search_pthread_getspecific=$ac_res
13870 else
13871   echo "$as_me: failed program was:" >&5
13872 sed 's/^/| /' conftest.$ac_ext >&5
13873
13874
13875 fi
13876
13877 rm -f core conftest.err conftest.$ac_objext \
13878       conftest$ac_exeext
13879   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13880   break
13881 fi
13882 done
13883 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13884   :
13885 else
13886   ac_cv_search_pthread_getspecific=no
13887 fi
13888 rm conftest.$ac_ext
13889 LIBS=$ac_func_search_save_LIBS
13890 fi
13891 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13892 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13893 ac_res=$ac_cv_search_pthread_getspecific
13894 if test "$ac_res" != no; then
13895   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13896
13897 cat >>confdefs.h <<\_ACEOF
13898 #define HAVE_PTHREAD_GETSPECIFIC 1
13899 _ACEOF
13900
13901 fi
13902
13903 fi
13904
13905
13906 # Check whether --with-udis86 was given.
13907 if test "${with_udis86+set}" = set; then
13908   withval=$with_udis86;
13909       USE_UDIS86=1
13910
13911       case "$withval" in
13912         /usr/lib|yes) ;;
13913         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13914       esac
13915
13916 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13917 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13918 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13919   echo $ECHO_N "(cached) $ECHO_C" >&6
13920 else
13921   ac_check_lib_save_LIBS=$LIBS
13922 LIBS="-ludis86  $LIBS"
13923 cat >conftest.$ac_ext <<_ACEOF
13924 /* confdefs.h.  */
13925 _ACEOF
13926 cat confdefs.h >>conftest.$ac_ext
13927 cat >>conftest.$ac_ext <<_ACEOF
13928 /* end confdefs.h.  */
13929
13930 /* Override any GCC internal prototype to avoid an error.
13931    Use char because int might match the return type of a GCC
13932    builtin and then its argument prototype would still apply.  */
13933 #ifdef __cplusplus
13934 extern "C"
13935 #endif
13936 char ud_init ();
13937 int
13938 main ()
13939 {
13940 return ud_init ();
13941   ;
13942   return 0;
13943 }
13944 _ACEOF
13945 rm -f conftest.$ac_objext conftest$ac_exeext
13946 if { (ac_try="$ac_link"
13947 case "(($ac_try" in
13948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13949   *) ac_try_echo=$ac_try;;
13950 esac
13951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13952   (eval "$ac_link") 2>conftest.er1
13953   ac_status=$?
13954   grep -v '^ *+' conftest.er1 >conftest.err
13955   rm -f conftest.er1
13956   cat conftest.err >&5
13957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958   (exit $ac_status); } &&
13959          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13960   { (case "(($ac_try" in
13961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13962   *) ac_try_echo=$ac_try;;
13963 esac
13964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13965   (eval "$ac_try") 2>&5
13966   ac_status=$?
13967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968   (exit $ac_status); }; } &&
13969          { ac_try='test -s conftest$ac_exeext'
13970   { (case "(($ac_try" in
13971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13972   *) ac_try_echo=$ac_try;;
13973 esac
13974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13975   (eval "$ac_try") 2>&5
13976   ac_status=$?
13977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978   (exit $ac_status); }; }; then
13979   ac_cv_lib_udis86_ud_init=yes
13980 else
13981   echo "$as_me: failed program was:" >&5
13982 sed 's/^/| /' conftest.$ac_ext >&5
13983
13984         ac_cv_lib_udis86_ud_init=no
13985 fi
13986
13987 rm -f core conftest.err conftest.$ac_objext \
13988       conftest$ac_exeext conftest.$ac_ext
13989 LIBS=$ac_check_lib_save_LIBS
13990 fi
13991 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13992 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13993 if test $ac_cv_lib_udis86_ud_init = yes; then
13994   cat >>confdefs.h <<_ACEOF
13995 #define HAVE_LIBUDIS86 1
13996 _ACEOF
13997
13998   LIBS="-ludis86 $LIBS"
13999
14000 else
14001
14002         echo "Error! You need to have libudis86 around."
14003         exit -1
14004
14005 fi
14006
14007
14008 else
14009   USE_UDIS86=0
14010
14011 fi
14012
14013
14014 cat >>confdefs.h <<_ACEOF
14015 #define USE_UDIS86 $USE_UDIS86
14016 _ACEOF
14017
14018
14019
14020 # Check whether --with-oprofile was given.
14021 if test "${with_oprofile+set}" = set; then
14022   withval=$with_oprofile;
14023       USE_OPROFILE=1
14024
14025       case "$withval" in
14026         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14027         no) llvm_cv_oppath=
14028             USE_OPROFILE=0
14029  ;;
14030         *) llvm_cv_oppath="${withval}/lib/oprofile"
14031            CPPFLAGS="-I${withval}/include";;
14032       esac
14033       if test -n "$llvm_cv_oppath" ; then
14034         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14035                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14036 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14037 if test "${ac_cv_search_bfd_init+set}" = set; then
14038   echo $ECHO_N "(cached) $ECHO_C" >&6
14039 else
14040   ac_func_search_save_LIBS=$LIBS
14041 cat >conftest.$ac_ext <<_ACEOF
14042 /* confdefs.h.  */
14043 _ACEOF
14044 cat confdefs.h >>conftest.$ac_ext
14045 cat >>conftest.$ac_ext <<_ACEOF
14046 /* end confdefs.h.  */
14047
14048 /* Override any GCC internal prototype to avoid an error.
14049    Use char because int might match the return type of a GCC
14050    builtin and then its argument prototype would still apply.  */
14051 #ifdef __cplusplus
14052 extern "C"
14053 #endif
14054 char bfd_init ();
14055 int
14056 main ()
14057 {
14058 return bfd_init ();
14059   ;
14060   return 0;
14061 }
14062 _ACEOF
14063 for ac_lib in '' bfd; do
14064   if test -z "$ac_lib"; then
14065     ac_res="none required"
14066   else
14067     ac_res=-l$ac_lib
14068     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14069   fi
14070   rm -f conftest.$ac_objext conftest$ac_exeext
14071 if { (ac_try="$ac_link"
14072 case "(($ac_try" in
14073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14074   *) ac_try_echo=$ac_try;;
14075 esac
14076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14077   (eval "$ac_link") 2>conftest.er1
14078   ac_status=$?
14079   grep -v '^ *+' conftest.er1 >conftest.err
14080   rm -f conftest.er1
14081   cat conftest.err >&5
14082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083   (exit $ac_status); } &&
14084          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14085   { (case "(($ac_try" in
14086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14087   *) ac_try_echo=$ac_try;;
14088 esac
14089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14090   (eval "$ac_try") 2>&5
14091   ac_status=$?
14092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093   (exit $ac_status); }; } &&
14094          { ac_try='test -s conftest$ac_exeext'
14095   { (case "(($ac_try" in
14096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14097   *) ac_try_echo=$ac_try;;
14098 esac
14099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14100   (eval "$ac_try") 2>&5
14101   ac_status=$?
14102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103   (exit $ac_status); }; }; then
14104   ac_cv_search_bfd_init=$ac_res
14105 else
14106   echo "$as_me: failed program was:" >&5
14107 sed 's/^/| /' conftest.$ac_ext >&5
14108
14109
14110 fi
14111
14112 rm -f core conftest.err conftest.$ac_objext \
14113       conftest$ac_exeext
14114   if test "${ac_cv_search_bfd_init+set}" = set; then
14115   break
14116 fi
14117 done
14118 if test "${ac_cv_search_bfd_init+set}" = set; then
14119   :
14120 else
14121   ac_cv_search_bfd_init=no
14122 fi
14123 rm conftest.$ac_ext
14124 LIBS=$ac_func_search_save_LIBS
14125 fi
14126 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14127 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14128 ac_res=$ac_cv_search_bfd_init
14129 if test "$ac_res" != no; then
14130   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14131
14132 fi
14133
14134         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14135 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14136 if test "${ac_cv_search_op_open_agent+set}" = set; then
14137   echo $ECHO_N "(cached) $ECHO_C" >&6
14138 else
14139   ac_func_search_save_LIBS=$LIBS
14140 cat >conftest.$ac_ext <<_ACEOF
14141 /* confdefs.h.  */
14142 _ACEOF
14143 cat confdefs.h >>conftest.$ac_ext
14144 cat >>conftest.$ac_ext <<_ACEOF
14145 /* end confdefs.h.  */
14146
14147 /* Override any GCC internal prototype to avoid an error.
14148    Use char because int might match the return type of a GCC
14149    builtin and then its argument prototype would still apply.  */
14150 #ifdef __cplusplus
14151 extern "C"
14152 #endif
14153 char op_open_agent ();
14154 int
14155 main ()
14156 {
14157 return op_open_agent ();
14158   ;
14159   return 0;
14160 }
14161 _ACEOF
14162 for ac_lib in '' opagent; do
14163   if test -z "$ac_lib"; then
14164     ac_res="none required"
14165   else
14166     ac_res=-l$ac_lib
14167     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14168   fi
14169   rm -f conftest.$ac_objext conftest$ac_exeext
14170 if { (ac_try="$ac_link"
14171 case "(($ac_try" in
14172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14173   *) ac_try_echo=$ac_try;;
14174 esac
14175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14176   (eval "$ac_link") 2>conftest.er1
14177   ac_status=$?
14178   grep -v '^ *+' conftest.er1 >conftest.err
14179   rm -f conftest.er1
14180   cat conftest.err >&5
14181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182   (exit $ac_status); } &&
14183          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14184   { (case "(($ac_try" in
14185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14186   *) ac_try_echo=$ac_try;;
14187 esac
14188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14189   (eval "$ac_try") 2>&5
14190   ac_status=$?
14191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192   (exit $ac_status); }; } &&
14193          { ac_try='test -s conftest$ac_exeext'
14194   { (case "(($ac_try" in
14195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14196   *) ac_try_echo=$ac_try;;
14197 esac
14198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14199   (eval "$ac_try") 2>&5
14200   ac_status=$?
14201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202   (exit $ac_status); }; }; then
14203   ac_cv_search_op_open_agent=$ac_res
14204 else
14205   echo "$as_me: failed program was:" >&5
14206 sed 's/^/| /' conftest.$ac_ext >&5
14207
14208
14209 fi
14210
14211 rm -f core conftest.err conftest.$ac_objext \
14212       conftest$ac_exeext
14213   if test "${ac_cv_search_op_open_agent+set}" = set; then
14214   break
14215 fi
14216 done
14217 if test "${ac_cv_search_op_open_agent+set}" = set; then
14218   :
14219 else
14220   ac_cv_search_op_open_agent=no
14221 fi
14222 rm conftest.$ac_ext
14223 LIBS=$ac_func_search_save_LIBS
14224 fi
14225 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14226 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14227 ac_res=$ac_cv_search_op_open_agent
14228 if test "$ac_res" != no; then
14229   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14230
14231 else
14232
14233           echo "Error! You need to have libopagent around."
14234           exit -1
14235
14236 fi
14237
14238         if test "${ac_cv_header_opagent_h+set}" = set; then
14239   { echo "$as_me:$LINENO: checking for opagent.h" >&5
14240 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14241 if test "${ac_cv_header_opagent_h+set}" = set; then
14242   echo $ECHO_N "(cached) $ECHO_C" >&6
14243 fi
14244 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14245 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14246 else
14247   # Is the header compilable?
14248 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14249 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14250 cat >conftest.$ac_ext <<_ACEOF
14251 /* confdefs.h.  */
14252 _ACEOF
14253 cat confdefs.h >>conftest.$ac_ext
14254 cat >>conftest.$ac_ext <<_ACEOF
14255 /* end confdefs.h.  */
14256 $ac_includes_default
14257 #include <opagent.h>
14258 _ACEOF
14259 rm -f conftest.$ac_objext
14260 if { (ac_try="$ac_compile"
14261 case "(($ac_try" in
14262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14263   *) ac_try_echo=$ac_try;;
14264 esac
14265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14266   (eval "$ac_compile") 2>conftest.er1
14267   ac_status=$?
14268   grep -v '^ *+' conftest.er1 >conftest.err
14269   rm -f conftest.er1
14270   cat conftest.err >&5
14271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272   (exit $ac_status); } &&
14273          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14274   { (case "(($ac_try" in
14275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14276   *) ac_try_echo=$ac_try;;
14277 esac
14278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14279   (eval "$ac_try") 2>&5
14280   ac_status=$?
14281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282   (exit $ac_status); }; } &&
14283          { ac_try='test -s conftest.$ac_objext'
14284   { (case "(($ac_try" in
14285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14286   *) ac_try_echo=$ac_try;;
14287 esac
14288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14289   (eval "$ac_try") 2>&5
14290   ac_status=$?
14291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292   (exit $ac_status); }; }; then
14293   ac_header_compiler=yes
14294 else
14295   echo "$as_me: failed program was:" >&5
14296 sed 's/^/| /' conftest.$ac_ext >&5
14297
14298         ac_header_compiler=no
14299 fi
14300
14301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14302 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14303 echo "${ECHO_T}$ac_header_compiler" >&6; }
14304
14305 # Is the header present?
14306 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14307 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14308 cat >conftest.$ac_ext <<_ACEOF
14309 /* confdefs.h.  */
14310 _ACEOF
14311 cat confdefs.h >>conftest.$ac_ext
14312 cat >>conftest.$ac_ext <<_ACEOF
14313 /* end confdefs.h.  */
14314 #include <opagent.h>
14315 _ACEOF
14316 if { (ac_try="$ac_cpp conftest.$ac_ext"
14317 case "(($ac_try" in
14318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14319   *) ac_try_echo=$ac_try;;
14320 esac
14321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14322   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14323   ac_status=$?
14324   grep -v '^ *+' conftest.er1 >conftest.err
14325   rm -f conftest.er1
14326   cat conftest.err >&5
14327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328   (exit $ac_status); } >/dev/null; then
14329   if test -s conftest.err; then
14330     ac_cpp_err=$ac_c_preproc_warn_flag
14331     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14332   else
14333     ac_cpp_err=
14334   fi
14335 else
14336   ac_cpp_err=yes
14337 fi
14338 if test -z "$ac_cpp_err"; then
14339   ac_header_preproc=yes
14340 else
14341   echo "$as_me: failed program was:" >&5
14342 sed 's/^/| /' conftest.$ac_ext >&5
14343
14344   ac_header_preproc=no
14345 fi
14346
14347 rm -f conftest.err conftest.$ac_ext
14348 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14349 echo "${ECHO_T}$ac_header_preproc" >&6; }
14350
14351 # So?  What about this header?
14352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14353   yes:no: )
14354     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14355 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14356     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14357 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14358     ac_header_preproc=yes
14359     ;;
14360   no:yes:* )
14361     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14362 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14363     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
14364 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
14365     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14366 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14367     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
14368 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14369     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14370 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14371     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14372 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14373     ( cat <<\_ASBOX
14374 ## ----------------------------------- ##
14375 ## Report this to llvmbugs@cs.uiuc.edu ##
14376 ## ----------------------------------- ##
14377 _ASBOX
14378      ) | sed "s/^/$as_me: WARNING:     /" >&2
14379     ;;
14380 esac
14381 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14382 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14383 if test "${ac_cv_header_opagent_h+set}" = set; then
14384   echo $ECHO_N "(cached) $ECHO_C" >&6
14385 else
14386   ac_cv_header_opagent_h=$ac_header_preproc
14387 fi
14388 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14389 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14390
14391 fi
14392 if test $ac_cv_header_opagent_h = yes; then
14393   :
14394 else
14395
14396           echo "Error! You need to have opagent.h around."
14397           exit -1
14398
14399 fi
14400
14401
14402       fi
14403
14404 else
14405
14406       USE_OPROFILE=0
14407
14408
14409 fi
14410
14411
14412 cat >>confdefs.h <<_ACEOF
14413 #define USE_OPROFILE $USE_OPROFILE
14414 _ACEOF
14415
14416
14417
14418
14419
14420
14421
14422
14423 ac_header_dirent=no
14424 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14425   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14426 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14427 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14429   echo $ECHO_N "(cached) $ECHO_C" >&6
14430 else
14431   cat >conftest.$ac_ext <<_ACEOF
14432 /* confdefs.h.  */
14433 _ACEOF
14434 cat confdefs.h >>conftest.$ac_ext
14435 cat >>conftest.$ac_ext <<_ACEOF
14436 /* end confdefs.h.  */
14437 #include <sys/types.h>
14438 #include <$ac_hdr>
14439
14440 int
14441 main ()
14442 {
14443 if ((DIR *) 0)
14444 return 0;
14445   ;
14446   return 0;
14447 }
14448 _ACEOF
14449 rm -f conftest.$ac_objext
14450 if { (ac_try="$ac_compile"
14451 case "(($ac_try" in
14452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14453   *) ac_try_echo=$ac_try;;
14454 esac
14455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14456   (eval "$ac_compile") 2>conftest.er1
14457   ac_status=$?
14458   grep -v '^ *+' conftest.er1 >conftest.err
14459   rm -f conftest.er1
14460   cat conftest.err >&5
14461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462   (exit $ac_status); } &&
14463          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14464   { (case "(($ac_try" in
14465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14466   *) ac_try_echo=$ac_try;;
14467 esac
14468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14469   (eval "$ac_try") 2>&5
14470   ac_status=$?
14471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472   (exit $ac_status); }; } &&
14473          { ac_try='test -s conftest.$ac_objext'
14474   { (case "(($ac_try" in
14475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14476   *) ac_try_echo=$ac_try;;
14477 esac
14478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14479   (eval "$ac_try") 2>&5
14480   ac_status=$?
14481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482   (exit $ac_status); }; }; then
14483   eval "$as_ac_Header=yes"
14484 else
14485   echo "$as_me: failed program was:" >&5
14486 sed 's/^/| /' conftest.$ac_ext >&5
14487
14488         eval "$as_ac_Header=no"
14489 fi
14490
14491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14492 fi
14493 ac_res=`eval echo '${'$as_ac_Header'}'`
14494                { echo "$as_me:$LINENO: result: $ac_res" >&5
14495 echo "${ECHO_T}$ac_res" >&6; }
14496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14497   cat >>confdefs.h <<_ACEOF
14498 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14499 _ACEOF
14500
14501 ac_header_dirent=$ac_hdr; break
14502 fi
14503
14504 done
14505 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14506 if test $ac_header_dirent = dirent.h; then
14507   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14508 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14509 if test "${ac_cv_search_opendir+set}" = set; then
14510   echo $ECHO_N "(cached) $ECHO_C" >&6
14511 else
14512   ac_func_search_save_LIBS=$LIBS
14513 cat >conftest.$ac_ext <<_ACEOF
14514 /* confdefs.h.  */
14515 _ACEOF
14516 cat confdefs.h >>conftest.$ac_ext
14517 cat >>conftest.$ac_ext <<_ACEOF
14518 /* end confdefs.h.  */
14519
14520 /* Override any GCC internal prototype to avoid an error.
14521    Use char because int might match the return type of a GCC
14522    builtin and then its argument prototype would still apply.  */
14523 #ifdef __cplusplus
14524 extern "C"
14525 #endif
14526 char opendir ();
14527 int
14528 main ()
14529 {
14530 return opendir ();
14531   ;
14532   return 0;
14533 }
14534 _ACEOF
14535 for ac_lib in '' dir; do
14536   if test -z "$ac_lib"; then
14537     ac_res="none required"
14538   else
14539     ac_res=-l$ac_lib
14540     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14541   fi
14542   rm -f conftest.$ac_objext conftest$ac_exeext
14543 if { (ac_try="$ac_link"
14544 case "(($ac_try" in
14545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14546   *) ac_try_echo=$ac_try;;
14547 esac
14548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14549   (eval "$ac_link") 2>conftest.er1
14550   ac_status=$?
14551   grep -v '^ *+' conftest.er1 >conftest.err
14552   rm -f conftest.er1
14553   cat conftest.err >&5
14554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555   (exit $ac_status); } &&
14556          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14557   { (case "(($ac_try" in
14558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14559   *) ac_try_echo=$ac_try;;
14560 esac
14561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14562   (eval "$ac_try") 2>&5
14563   ac_status=$?
14564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565   (exit $ac_status); }; } &&
14566          { ac_try='test -s conftest$ac_exeext'
14567   { (case "(($ac_try" in
14568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14569   *) ac_try_echo=$ac_try;;
14570 esac
14571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14572   (eval "$ac_try") 2>&5
14573   ac_status=$?
14574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575   (exit $ac_status); }; }; then
14576   ac_cv_search_opendir=$ac_res
14577 else
14578   echo "$as_me: failed program was:" >&5
14579 sed 's/^/| /' conftest.$ac_ext >&5
14580
14581
14582 fi
14583
14584 rm -f core conftest.err conftest.$ac_objext \
14585       conftest$ac_exeext
14586   if test "${ac_cv_search_opendir+set}" = set; then
14587   break
14588 fi
14589 done
14590 if test "${ac_cv_search_opendir+set}" = set; then
14591   :
14592 else
14593   ac_cv_search_opendir=no
14594 fi
14595 rm conftest.$ac_ext
14596 LIBS=$ac_func_search_save_LIBS
14597 fi
14598 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14599 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14600 ac_res=$ac_cv_search_opendir
14601 if test "$ac_res" != no; then
14602   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14603
14604 fi
14605
14606 else
14607   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14608 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14609 if test "${ac_cv_search_opendir+set}" = set; then
14610   echo $ECHO_N "(cached) $ECHO_C" >&6
14611 else
14612   ac_func_search_save_LIBS=$LIBS
14613 cat >conftest.$ac_ext <<_ACEOF
14614 /* confdefs.h.  */
14615 _ACEOF
14616 cat confdefs.h >>conftest.$ac_ext
14617 cat >>conftest.$ac_ext <<_ACEOF
14618 /* end confdefs.h.  */
14619
14620 /* Override any GCC internal prototype to avoid an error.
14621    Use char because int might match the return type of a GCC
14622    builtin and then its argument prototype would still apply.  */
14623 #ifdef __cplusplus
14624 extern "C"
14625 #endif
14626 char opendir ();
14627 int
14628 main ()
14629 {
14630 return opendir ();
14631   ;
14632   return 0;
14633 }
14634 _ACEOF
14635 for ac_lib in '' x; do
14636   if test -z "$ac_lib"; then
14637     ac_res="none required"
14638   else
14639     ac_res=-l$ac_lib
14640     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14641   fi
14642   rm -f conftest.$ac_objext conftest$ac_exeext
14643 if { (ac_try="$ac_link"
14644 case "(($ac_try" in
14645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14646   *) ac_try_echo=$ac_try;;
14647 esac
14648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14649   (eval "$ac_link") 2>conftest.er1
14650   ac_status=$?
14651   grep -v '^ *+' conftest.er1 >conftest.err
14652   rm -f conftest.er1
14653   cat conftest.err >&5
14654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655   (exit $ac_status); } &&
14656          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14657   { (case "(($ac_try" in
14658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14659   *) ac_try_echo=$ac_try;;
14660 esac
14661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14662   (eval "$ac_try") 2>&5
14663   ac_status=$?
14664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665   (exit $ac_status); }; } &&
14666          { ac_try='test -s conftest$ac_exeext'
14667   { (case "(($ac_try" in
14668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14669   *) ac_try_echo=$ac_try;;
14670 esac
14671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14672   (eval "$ac_try") 2>&5
14673   ac_status=$?
14674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675   (exit $ac_status); }; }; then
14676   ac_cv_search_opendir=$ac_res
14677 else
14678   echo "$as_me: failed program was:" >&5
14679 sed 's/^/| /' conftest.$ac_ext >&5
14680
14681
14682 fi
14683
14684 rm -f core conftest.err conftest.$ac_objext \
14685       conftest$ac_exeext
14686   if test "${ac_cv_search_opendir+set}" = set; then
14687   break
14688 fi
14689 done
14690 if test "${ac_cv_search_opendir+set}" = set; then
14691   :
14692 else
14693   ac_cv_search_opendir=no
14694 fi
14695 rm conftest.$ac_ext
14696 LIBS=$ac_func_search_save_LIBS
14697 fi
14698 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14699 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14700 ac_res=$ac_cv_search_opendir
14701 if test "$ac_res" != no; then
14702   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14703
14704 fi
14705
14706 fi
14707
14708 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14709 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14710 if test "${ac_cv_header_mmap_anon+set}" = set; then
14711   echo $ECHO_N "(cached) $ECHO_C" >&6
14712 else
14713    ac_ext=c
14714 ac_cpp='$CPP $CPPFLAGS'
14715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14718
14719   cat >conftest.$ac_ext <<_ACEOF
14720 /* confdefs.h.  */
14721 _ACEOF
14722 cat confdefs.h >>conftest.$ac_ext
14723 cat >>conftest.$ac_ext <<_ACEOF
14724 /* end confdefs.h.  */
14725 #include <sys/mman.h>
14726 #include <unistd.h>
14727 #include <fcntl.h>
14728 int
14729 main ()
14730 {
14731 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14732   ;
14733   return 0;
14734 }
14735 _ACEOF
14736 rm -f conftest.$ac_objext
14737 if { (ac_try="$ac_compile"
14738 case "(($ac_try" in
14739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14740   *) ac_try_echo=$ac_try;;
14741 esac
14742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14743   (eval "$ac_compile") 2>conftest.er1
14744   ac_status=$?
14745   grep -v '^ *+' conftest.er1 >conftest.err
14746   rm -f conftest.er1
14747   cat conftest.err >&5
14748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749   (exit $ac_status); } &&
14750          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14751   { (case "(($ac_try" in
14752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753   *) ac_try_echo=$ac_try;;
14754 esac
14755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14756   (eval "$ac_try") 2>&5
14757   ac_status=$?
14758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759   (exit $ac_status); }; } &&
14760          { ac_try='test -s conftest.$ac_objext'
14761   { (case "(($ac_try" in
14762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14763   *) ac_try_echo=$ac_try;;
14764 esac
14765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14766   (eval "$ac_try") 2>&5
14767   ac_status=$?
14768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769   (exit $ac_status); }; }; then
14770   ac_cv_header_mmap_anon=yes
14771 else
14772   echo "$as_me: failed program was:" >&5
14773 sed 's/^/| /' conftest.$ac_ext >&5
14774
14775         ac_cv_header_mmap_anon=no
14776 fi
14777
14778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14779   ac_ext=c
14780 ac_cpp='$CPP $CPPFLAGS'
14781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14784
14785
14786 fi
14787 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14788 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14789 if test "$ac_cv_header_mmap_anon" = yes; then
14790
14791 cat >>confdefs.h <<\_ACEOF
14792 #define HAVE_MMAP_ANONYMOUS 1
14793 _ACEOF
14794
14795 fi
14796
14797 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14798 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14799 if test "${ac_cv_header_stat_broken+set}" = set; then
14800   echo $ECHO_N "(cached) $ECHO_C" >&6
14801 else
14802   cat >conftest.$ac_ext <<_ACEOF
14803 /* confdefs.h.  */
14804 _ACEOF
14805 cat confdefs.h >>conftest.$ac_ext
14806 cat >>conftest.$ac_ext <<_ACEOF
14807 /* end confdefs.h.  */
14808 #include <sys/types.h>
14809 #include <sys/stat.h>
14810
14811 #if defined S_ISBLK && defined S_IFDIR
14812 # if S_ISBLK (S_IFDIR)
14813 You lose.
14814 # endif
14815 #endif
14816
14817 #if defined S_ISBLK && defined S_IFCHR
14818 # if S_ISBLK (S_IFCHR)
14819 You lose.
14820 # endif
14821 #endif
14822
14823 #if defined S_ISLNK && defined S_IFREG
14824 # if S_ISLNK (S_IFREG)
14825 You lose.
14826 # endif
14827 #endif
14828
14829 #if defined S_ISSOCK && defined S_IFREG
14830 # if S_ISSOCK (S_IFREG)
14831 You lose.
14832 # endif
14833 #endif
14834
14835 _ACEOF
14836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14837   $EGREP "You lose" >/dev/null 2>&1; then
14838   ac_cv_header_stat_broken=yes
14839 else
14840   ac_cv_header_stat_broken=no
14841 fi
14842 rm -f conftest*
14843
14844 fi
14845 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14846 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14847 if test $ac_cv_header_stat_broken = yes; then
14848
14849 cat >>confdefs.h <<\_ACEOF
14850 #define STAT_MACROS_BROKEN 1
14851 _ACEOF
14852
14853 fi
14854
14855 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14856 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14857 if test "${ac_cv_header_stdc+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 <stdlib.h>
14867 #include <stdarg.h>
14868 #include <string.h>
14869 #include <float.h>
14870
14871 int
14872 main ()
14873 {
14874
14875   ;
14876   return 0;
14877 }
14878 _ACEOF
14879 rm -f conftest.$ac_objext
14880 if { (ac_try="$ac_compile"
14881 case "(($ac_try" in
14882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14883   *) ac_try_echo=$ac_try;;
14884 esac
14885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14886   (eval "$ac_compile") 2>conftest.er1
14887   ac_status=$?
14888   grep -v '^ *+' conftest.er1 >conftest.err
14889   rm -f conftest.er1
14890   cat conftest.err >&5
14891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892   (exit $ac_status); } &&
14893          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14894   { (case "(($ac_try" in
14895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14896   *) ac_try_echo=$ac_try;;
14897 esac
14898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14899   (eval "$ac_try") 2>&5
14900   ac_status=$?
14901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902   (exit $ac_status); }; } &&
14903          { ac_try='test -s conftest.$ac_objext'
14904   { (case "(($ac_try" in
14905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14906   *) ac_try_echo=$ac_try;;
14907 esac
14908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14909   (eval "$ac_try") 2>&5
14910   ac_status=$?
14911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912   (exit $ac_status); }; }; then
14913   ac_cv_header_stdc=yes
14914 else
14915   echo "$as_me: failed program was:" >&5
14916 sed 's/^/| /' conftest.$ac_ext >&5
14917
14918         ac_cv_header_stdc=no
14919 fi
14920
14921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14922
14923 if test $ac_cv_header_stdc = yes; then
14924   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14925   cat >conftest.$ac_ext <<_ACEOF
14926 /* confdefs.h.  */
14927 _ACEOF
14928 cat confdefs.h >>conftest.$ac_ext
14929 cat >>conftest.$ac_ext <<_ACEOF
14930 /* end confdefs.h.  */
14931 #include <string.h>
14932
14933 _ACEOF
14934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14935   $EGREP "memchr" >/dev/null 2>&1; then
14936   :
14937 else
14938   ac_cv_header_stdc=no
14939 fi
14940 rm -f conftest*
14941
14942 fi
14943
14944 if test $ac_cv_header_stdc = yes; then
14945   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14946   cat >conftest.$ac_ext <<_ACEOF
14947 /* confdefs.h.  */
14948 _ACEOF
14949 cat confdefs.h >>conftest.$ac_ext
14950 cat >>conftest.$ac_ext <<_ACEOF
14951 /* end confdefs.h.  */
14952 #include <stdlib.h>
14953
14954 _ACEOF
14955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14956   $EGREP "free" >/dev/null 2>&1; then
14957   :
14958 else
14959   ac_cv_header_stdc=no
14960 fi
14961 rm -f conftest*
14962
14963 fi
14964
14965 if test $ac_cv_header_stdc = yes; then
14966   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14967   if test "$cross_compiling" = yes; then
14968   :
14969 else
14970   cat >conftest.$ac_ext <<_ACEOF
14971 /* confdefs.h.  */
14972 _ACEOF
14973 cat confdefs.h >>conftest.$ac_ext
14974 cat >>conftest.$ac_ext <<_ACEOF
14975 /* end confdefs.h.  */
14976 #include <ctype.h>
14977 #include <stdlib.h>
14978 #if ((' ' & 0x0FF) == 0x020)
14979 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14980 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14981 #else
14982 # define ISLOWER(c) \
14983                    (('a' <= (c) && (c) <= 'i') \
14984                      || ('j' <= (c) && (c) <= 'r') \
14985                      || ('s' <= (c) && (c) <= 'z'))
14986 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14987 #endif
14988
14989 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14990 int
14991 main ()
14992 {
14993   int i;
14994   for (i = 0; i < 256; i++)
14995     if (XOR (islower (i), ISLOWER (i))
14996         || toupper (i) != TOUPPER (i))
14997       return 2;
14998   return 0;
14999 }
15000 _ACEOF
15001 rm -f conftest$ac_exeext
15002 if { (ac_try="$ac_link"
15003 case "(($ac_try" in
15004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15005   *) ac_try_echo=$ac_try;;
15006 esac
15007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15008   (eval "$ac_link") 2>&5
15009   ac_status=$?
15010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15012   { (case "(($ac_try" in
15013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15014   *) ac_try_echo=$ac_try;;
15015 esac
15016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15017   (eval "$ac_try") 2>&5
15018   ac_status=$?
15019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020   (exit $ac_status); }; }; then
15021   :
15022 else
15023   echo "$as_me: program exited with status $ac_status" >&5
15024 echo "$as_me: failed program was:" >&5
15025 sed 's/^/| /' conftest.$ac_ext >&5
15026
15027 ( exit $ac_status )
15028 ac_cv_header_stdc=no
15029 fi
15030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15031 fi
15032
15033
15034 fi
15035 fi
15036 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15037 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15038 if test $ac_cv_header_stdc = yes; then
15039
15040 cat >>confdefs.h <<\_ACEOF
15041 #define STDC_HEADERS 1
15042 _ACEOF
15043
15044 fi
15045
15046 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15047 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15048 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15049   echo $ECHO_N "(cached) $ECHO_C" >&6
15050 else
15051   cat >conftest.$ac_ext <<_ACEOF
15052 /* confdefs.h.  */
15053 _ACEOF
15054 cat confdefs.h >>conftest.$ac_ext
15055 cat >>conftest.$ac_ext <<_ACEOF
15056 /* end confdefs.h.  */
15057 #include <sys/types.h>
15058 #include <sys/wait.h>
15059 #ifndef WEXITSTATUS
15060 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15061 #endif
15062 #ifndef WIFEXITED
15063 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15064 #endif
15065
15066 int
15067 main ()
15068 {
15069   int s;
15070   wait (&s);
15071   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15072   ;
15073   return 0;
15074 }
15075 _ACEOF
15076 rm -f conftest.$ac_objext
15077 if { (ac_try="$ac_compile"
15078 case "(($ac_try" in
15079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15080   *) ac_try_echo=$ac_try;;
15081 esac
15082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15083   (eval "$ac_compile") 2>conftest.er1
15084   ac_status=$?
15085   grep -v '^ *+' conftest.er1 >conftest.err
15086   rm -f conftest.er1
15087   cat conftest.err >&5
15088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089   (exit $ac_status); } &&
15090          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15091   { (case "(($ac_try" in
15092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093   *) ac_try_echo=$ac_try;;
15094 esac
15095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096   (eval "$ac_try") 2>&5
15097   ac_status=$?
15098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099   (exit $ac_status); }; } &&
15100          { ac_try='test -s conftest.$ac_objext'
15101   { (case "(($ac_try" in
15102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15103   *) ac_try_echo=$ac_try;;
15104 esac
15105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15106   (eval "$ac_try") 2>&5
15107   ac_status=$?
15108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109   (exit $ac_status); }; }; then
15110   ac_cv_header_sys_wait_h=yes
15111 else
15112   echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15114
15115         ac_cv_header_sys_wait_h=no
15116 fi
15117
15118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15119 fi
15120 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15121 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15122 if test $ac_cv_header_sys_wait_h = yes; then
15123
15124 cat >>confdefs.h <<\_ACEOF
15125 #define HAVE_SYS_WAIT_H 1
15126 _ACEOF
15127
15128 fi
15129
15130 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15131 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15132 if test "${ac_cv_header_time+set}" = set; then
15133   echo $ECHO_N "(cached) $ECHO_C" >&6
15134 else
15135   cat >conftest.$ac_ext <<_ACEOF
15136 /* confdefs.h.  */
15137 _ACEOF
15138 cat confdefs.h >>conftest.$ac_ext
15139 cat >>conftest.$ac_ext <<_ACEOF
15140 /* end confdefs.h.  */
15141 #include <sys/types.h>
15142 #include <sys/time.h>
15143 #include <time.h>
15144
15145 int
15146 main ()
15147 {
15148 if ((struct tm *) 0)
15149 return 0;
15150   ;
15151   return 0;
15152 }
15153 _ACEOF
15154 rm -f conftest.$ac_objext
15155 if { (ac_try="$ac_compile"
15156 case "(($ac_try" in
15157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158   *) ac_try_echo=$ac_try;;
15159 esac
15160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161   (eval "$ac_compile") 2>conftest.er1
15162   ac_status=$?
15163   grep -v '^ *+' conftest.er1 >conftest.err
15164   rm -f conftest.er1
15165   cat conftest.err >&5
15166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167   (exit $ac_status); } &&
15168          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15169   { (case "(($ac_try" in
15170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15171   *) ac_try_echo=$ac_try;;
15172 esac
15173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15174   (eval "$ac_try") 2>&5
15175   ac_status=$?
15176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177   (exit $ac_status); }; } &&
15178          { ac_try='test -s conftest.$ac_objext'
15179   { (case "(($ac_try" in
15180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15181   *) ac_try_echo=$ac_try;;
15182 esac
15183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15184   (eval "$ac_try") 2>&5
15185   ac_status=$?
15186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187   (exit $ac_status); }; }; then
15188   ac_cv_header_time=yes
15189 else
15190   echo "$as_me: failed program was:" >&5
15191 sed 's/^/| /' conftest.$ac_ext >&5
15192
15193         ac_cv_header_time=no
15194 fi
15195
15196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15197 fi
15198 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15199 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15200 if test $ac_cv_header_time = yes; then
15201
15202 cat >>confdefs.h <<\_ACEOF
15203 #define TIME_WITH_SYS_TIME 1
15204 _ACEOF
15205
15206 fi
15207
15208
15209
15210
15211
15212
15213
15214
15215 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15216 do
15217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15219   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15222   echo $ECHO_N "(cached) $ECHO_C" >&6
15223 fi
15224 ac_res=`eval echo '${'$as_ac_Header'}'`
15225                { echo "$as_me:$LINENO: result: $ac_res" >&5
15226 echo "${ECHO_T}$ac_res" >&6; }
15227 else
15228   # Is the header compilable?
15229 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15230 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15231 cat >conftest.$ac_ext <<_ACEOF
15232 /* confdefs.h.  */
15233 _ACEOF
15234 cat confdefs.h >>conftest.$ac_ext
15235 cat >>conftest.$ac_ext <<_ACEOF
15236 /* end confdefs.h.  */
15237 $ac_includes_default
15238 #include <$ac_header>
15239 _ACEOF
15240 rm -f conftest.$ac_objext
15241 if { (ac_try="$ac_compile"
15242 case "(($ac_try" in
15243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15244   *) ac_try_echo=$ac_try;;
15245 esac
15246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15247   (eval "$ac_compile") 2>conftest.er1
15248   ac_status=$?
15249   grep -v '^ *+' conftest.er1 >conftest.err
15250   rm -f conftest.er1
15251   cat conftest.err >&5
15252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253   (exit $ac_status); } &&
15254          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15255   { (case "(($ac_try" in
15256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15257   *) ac_try_echo=$ac_try;;
15258 esac
15259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15260   (eval "$ac_try") 2>&5
15261   ac_status=$?
15262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263   (exit $ac_status); }; } &&
15264          { ac_try='test -s conftest.$ac_objext'
15265   { (case "(($ac_try" in
15266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15267   *) ac_try_echo=$ac_try;;
15268 esac
15269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15270   (eval "$ac_try") 2>&5
15271   ac_status=$?
15272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273   (exit $ac_status); }; }; then
15274   ac_header_compiler=yes
15275 else
15276   echo "$as_me: failed program was:" >&5
15277 sed 's/^/| /' conftest.$ac_ext >&5
15278
15279         ac_header_compiler=no
15280 fi
15281
15282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15283 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15284 echo "${ECHO_T}$ac_header_compiler" >&6; }
15285
15286 # Is the header present?
15287 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15289 cat >conftest.$ac_ext <<_ACEOF
15290 /* confdefs.h.  */
15291 _ACEOF
15292 cat confdefs.h >>conftest.$ac_ext
15293 cat >>conftest.$ac_ext <<_ACEOF
15294 /* end confdefs.h.  */
15295 #include <$ac_header>
15296 _ACEOF
15297 if { (ac_try="$ac_cpp conftest.$ac_ext"
15298 case "(($ac_try" in
15299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15300   *) ac_try_echo=$ac_try;;
15301 esac
15302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15303   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15304   ac_status=$?
15305   grep -v '^ *+' conftest.er1 >conftest.err
15306   rm -f conftest.er1
15307   cat conftest.err >&5
15308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309   (exit $ac_status); } >/dev/null; then
15310   if test -s conftest.err; then
15311     ac_cpp_err=$ac_c_preproc_warn_flag
15312     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15313   else
15314     ac_cpp_err=
15315   fi
15316 else
15317   ac_cpp_err=yes
15318 fi
15319 if test -z "$ac_cpp_err"; then
15320   ac_header_preproc=yes
15321 else
15322   echo "$as_me: failed program was:" >&5
15323 sed 's/^/| /' conftest.$ac_ext >&5
15324
15325   ac_header_preproc=no
15326 fi
15327
15328 rm -f conftest.err conftest.$ac_ext
15329 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15330 echo "${ECHO_T}$ac_header_preproc" >&6; }
15331
15332 # So?  What about this header?
15333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15334   yes:no: )
15335     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15337     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15338 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15339     ac_header_preproc=yes
15340     ;;
15341   no:yes:* )
15342     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15343 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15344     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15345 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15346     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15347 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15348     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15349 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15350     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15351 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15352     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15353 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15354     ( cat <<\_ASBOX
15355 ## ----------------------------------- ##
15356 ## Report this to llvmbugs@cs.uiuc.edu ##
15357 ## ----------------------------------- ##
15358 _ASBOX
15359      ) | sed "s/^/$as_me: WARNING:     /" >&2
15360     ;;
15361 esac
15362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15365   echo $ECHO_N "(cached) $ECHO_C" >&6
15366 else
15367   eval "$as_ac_Header=\$ac_header_preproc"
15368 fi
15369 ac_res=`eval echo '${'$as_ac_Header'}'`
15370                { echo "$as_me:$LINENO: result: $ac_res" >&5
15371 echo "${ECHO_T}$ac_res" >&6; }
15372
15373 fi
15374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15375   cat >>confdefs.h <<_ACEOF
15376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15377 _ACEOF
15378
15379 fi
15380
15381 done
15382
15383
15384
15385
15386
15387
15388
15389 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15390 do
15391 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15393   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15396   echo $ECHO_N "(cached) $ECHO_C" >&6
15397 fi
15398 ac_res=`eval echo '${'$as_ac_Header'}'`
15399                { echo "$as_me:$LINENO: result: $ac_res" >&5
15400 echo "${ECHO_T}$ac_res" >&6; }
15401 else
15402   # Is the header compilable?
15403 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15405 cat >conftest.$ac_ext <<_ACEOF
15406 /* confdefs.h.  */
15407 _ACEOF
15408 cat confdefs.h >>conftest.$ac_ext
15409 cat >>conftest.$ac_ext <<_ACEOF
15410 /* end confdefs.h.  */
15411 $ac_includes_default
15412 #include <$ac_header>
15413 _ACEOF
15414 rm -f conftest.$ac_objext
15415 if { (ac_try="$ac_compile"
15416 case "(($ac_try" in
15417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15418   *) ac_try_echo=$ac_try;;
15419 esac
15420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15421   (eval "$ac_compile") 2>conftest.er1
15422   ac_status=$?
15423   grep -v '^ *+' conftest.er1 >conftest.err
15424   rm -f conftest.er1
15425   cat conftest.err >&5
15426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427   (exit $ac_status); } &&
15428          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15429   { (case "(($ac_try" in
15430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15431   *) ac_try_echo=$ac_try;;
15432 esac
15433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15434   (eval "$ac_try") 2>&5
15435   ac_status=$?
15436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437   (exit $ac_status); }; } &&
15438          { ac_try='test -s conftest.$ac_objext'
15439   { (case "(($ac_try" in
15440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15441   *) ac_try_echo=$ac_try;;
15442 esac
15443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15444   (eval "$ac_try") 2>&5
15445   ac_status=$?
15446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447   (exit $ac_status); }; }; then
15448   ac_header_compiler=yes
15449 else
15450   echo "$as_me: failed program was:" >&5
15451 sed 's/^/| /' conftest.$ac_ext >&5
15452
15453         ac_header_compiler=no
15454 fi
15455
15456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15457 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15458 echo "${ECHO_T}$ac_header_compiler" >&6; }
15459
15460 # Is the header present?
15461 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15462 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15463 cat >conftest.$ac_ext <<_ACEOF
15464 /* confdefs.h.  */
15465 _ACEOF
15466 cat confdefs.h >>conftest.$ac_ext
15467 cat >>conftest.$ac_ext <<_ACEOF
15468 /* end confdefs.h.  */
15469 #include <$ac_header>
15470 _ACEOF
15471 if { (ac_try="$ac_cpp conftest.$ac_ext"
15472 case "(($ac_try" in
15473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15474   *) ac_try_echo=$ac_try;;
15475 esac
15476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15477   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15478   ac_status=$?
15479   grep -v '^ *+' conftest.er1 >conftest.err
15480   rm -f conftest.er1
15481   cat conftest.err >&5
15482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483   (exit $ac_status); } >/dev/null; then
15484   if test -s conftest.err; then
15485     ac_cpp_err=$ac_c_preproc_warn_flag
15486     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15487   else
15488     ac_cpp_err=
15489   fi
15490 else
15491   ac_cpp_err=yes
15492 fi
15493 if test -z "$ac_cpp_err"; then
15494   ac_header_preproc=yes
15495 else
15496   echo "$as_me: failed program was:" >&5
15497 sed 's/^/| /' conftest.$ac_ext >&5
15498
15499   ac_header_preproc=no
15500 fi
15501
15502 rm -f conftest.err conftest.$ac_ext
15503 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15504 echo "${ECHO_T}$ac_header_preproc" >&6; }
15505
15506 # So?  What about this header?
15507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15508   yes:no: )
15509     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15511     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15513     ac_header_preproc=yes
15514     ;;
15515   no:yes:* )
15516     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15518     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15519 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15520     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15522     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15523 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15524     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15526     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15528     ( cat <<\_ASBOX
15529 ## ----------------------------------- ##
15530 ## Report this to llvmbugs@cs.uiuc.edu ##
15531 ## ----------------------------------- ##
15532 _ASBOX
15533      ) | sed "s/^/$as_me: WARNING:     /" >&2
15534     ;;
15535 esac
15536 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15539   echo $ECHO_N "(cached) $ECHO_C" >&6
15540 else
15541   eval "$as_ac_Header=\$ac_header_preproc"
15542 fi
15543 ac_res=`eval echo '${'$as_ac_Header'}'`
15544                { echo "$as_me:$LINENO: result: $ac_res" >&5
15545 echo "${ECHO_T}$ac_res" >&6; }
15546
15547 fi
15548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15549   cat >>confdefs.h <<_ACEOF
15550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15551 _ACEOF
15552
15553 fi
15554
15555 done
15556
15557
15558
15559 for ac_header in utime.h windows.h
15560 do
15561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15563   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15566   echo $ECHO_N "(cached) $ECHO_C" >&6
15567 fi
15568 ac_res=`eval echo '${'$as_ac_Header'}'`
15569                { echo "$as_me:$LINENO: result: $ac_res" >&5
15570 echo "${ECHO_T}$ac_res" >&6; }
15571 else
15572   # Is the header compilable?
15573 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15575 cat >conftest.$ac_ext <<_ACEOF
15576 /* confdefs.h.  */
15577 _ACEOF
15578 cat confdefs.h >>conftest.$ac_ext
15579 cat >>conftest.$ac_ext <<_ACEOF
15580 /* end confdefs.h.  */
15581 $ac_includes_default
15582 #include <$ac_header>
15583 _ACEOF
15584 rm -f conftest.$ac_objext
15585 if { (ac_try="$ac_compile"
15586 case "(($ac_try" in
15587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15588   *) ac_try_echo=$ac_try;;
15589 esac
15590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15591   (eval "$ac_compile") 2>conftest.er1
15592   ac_status=$?
15593   grep -v '^ *+' conftest.er1 >conftest.err
15594   rm -f conftest.er1
15595   cat conftest.err >&5
15596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597   (exit $ac_status); } &&
15598          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15599   { (case "(($ac_try" in
15600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15601   *) ac_try_echo=$ac_try;;
15602 esac
15603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15604   (eval "$ac_try") 2>&5
15605   ac_status=$?
15606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607   (exit $ac_status); }; } &&
15608          { ac_try='test -s conftest.$ac_objext'
15609   { (case "(($ac_try" in
15610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15611   *) ac_try_echo=$ac_try;;
15612 esac
15613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15614   (eval "$ac_try") 2>&5
15615   ac_status=$?
15616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617   (exit $ac_status); }; }; then
15618   ac_header_compiler=yes
15619 else
15620   echo "$as_me: failed program was:" >&5
15621 sed 's/^/| /' conftest.$ac_ext >&5
15622
15623         ac_header_compiler=no
15624 fi
15625
15626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15627 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15628 echo "${ECHO_T}$ac_header_compiler" >&6; }
15629
15630 # Is the header present?
15631 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15632 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15633 cat >conftest.$ac_ext <<_ACEOF
15634 /* confdefs.h.  */
15635 _ACEOF
15636 cat confdefs.h >>conftest.$ac_ext
15637 cat >>conftest.$ac_ext <<_ACEOF
15638 /* end confdefs.h.  */
15639 #include <$ac_header>
15640 _ACEOF
15641 if { (ac_try="$ac_cpp conftest.$ac_ext"
15642 case "(($ac_try" in
15643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15644   *) ac_try_echo=$ac_try;;
15645 esac
15646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15647   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15648   ac_status=$?
15649   grep -v '^ *+' conftest.er1 >conftest.err
15650   rm -f conftest.er1
15651   cat conftest.err >&5
15652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653   (exit $ac_status); } >/dev/null; then
15654   if test -s conftest.err; then
15655     ac_cpp_err=$ac_c_preproc_warn_flag
15656     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15657   else
15658     ac_cpp_err=
15659   fi
15660 else
15661   ac_cpp_err=yes
15662 fi
15663 if test -z "$ac_cpp_err"; then
15664   ac_header_preproc=yes
15665 else
15666   echo "$as_me: failed program was:" >&5
15667 sed 's/^/| /' conftest.$ac_ext >&5
15668
15669   ac_header_preproc=no
15670 fi
15671
15672 rm -f conftest.err conftest.$ac_ext
15673 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15674 echo "${ECHO_T}$ac_header_preproc" >&6; }
15675
15676 # So?  What about this header?
15677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15678   yes:no: )
15679     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15680 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15681     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15682 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15683     ac_header_preproc=yes
15684     ;;
15685   no:yes:* )
15686     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15688     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15689 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15690     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15691 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15692     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15693 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15694     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15696     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15697 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15698     ( cat <<\_ASBOX
15699 ## ----------------------------------- ##
15700 ## Report this to llvmbugs@cs.uiuc.edu ##
15701 ## ----------------------------------- ##
15702 _ASBOX
15703      ) | sed "s/^/$as_me: WARNING:     /" >&2
15704     ;;
15705 esac
15706 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15709   echo $ECHO_N "(cached) $ECHO_C" >&6
15710 else
15711   eval "$as_ac_Header=\$ac_header_preproc"
15712 fi
15713 ac_res=`eval echo '${'$as_ac_Header'}'`
15714                { echo "$as_me:$LINENO: result: $ac_res" >&5
15715 echo "${ECHO_T}$ac_res" >&6; }
15716
15717 fi
15718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15719   cat >>confdefs.h <<_ACEOF
15720 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15721 _ACEOF
15722
15723 fi
15724
15725 done
15726
15727
15728
15729
15730
15731 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
15732 do
15733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15735   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15738   echo $ECHO_N "(cached) $ECHO_C" >&6
15739 fi
15740 ac_res=`eval echo '${'$as_ac_Header'}'`
15741                { echo "$as_me:$LINENO: result: $ac_res" >&5
15742 echo "${ECHO_T}$ac_res" >&6; }
15743 else
15744   # Is the header compilable?
15745 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15746 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15747 cat >conftest.$ac_ext <<_ACEOF
15748 /* confdefs.h.  */
15749 _ACEOF
15750 cat confdefs.h >>conftest.$ac_ext
15751 cat >>conftest.$ac_ext <<_ACEOF
15752 /* end confdefs.h.  */
15753 $ac_includes_default
15754 #include <$ac_header>
15755 _ACEOF
15756 rm -f conftest.$ac_objext
15757 if { (ac_try="$ac_compile"
15758 case "(($ac_try" in
15759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15760   *) ac_try_echo=$ac_try;;
15761 esac
15762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15763   (eval "$ac_compile") 2>conftest.er1
15764   ac_status=$?
15765   grep -v '^ *+' conftest.er1 >conftest.err
15766   rm -f conftest.er1
15767   cat conftest.err >&5
15768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769   (exit $ac_status); } &&
15770          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15771   { (case "(($ac_try" in
15772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15773   *) ac_try_echo=$ac_try;;
15774 esac
15775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15776   (eval "$ac_try") 2>&5
15777   ac_status=$?
15778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779   (exit $ac_status); }; } &&
15780          { ac_try='test -s conftest.$ac_objext'
15781   { (case "(($ac_try" in
15782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15783   *) ac_try_echo=$ac_try;;
15784 esac
15785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15786   (eval "$ac_try") 2>&5
15787   ac_status=$?
15788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789   (exit $ac_status); }; }; then
15790   ac_header_compiler=yes
15791 else
15792   echo "$as_me: failed program was:" >&5
15793 sed 's/^/| /' conftest.$ac_ext >&5
15794
15795         ac_header_compiler=no
15796 fi
15797
15798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15799 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15800 echo "${ECHO_T}$ac_header_compiler" >&6; }
15801
15802 # Is the header present?
15803 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15805 cat >conftest.$ac_ext <<_ACEOF
15806 /* confdefs.h.  */
15807 _ACEOF
15808 cat confdefs.h >>conftest.$ac_ext
15809 cat >>conftest.$ac_ext <<_ACEOF
15810 /* end confdefs.h.  */
15811 #include <$ac_header>
15812 _ACEOF
15813 if { (ac_try="$ac_cpp conftest.$ac_ext"
15814 case "(($ac_try" in
15815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15816   *) ac_try_echo=$ac_try;;
15817 esac
15818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15819   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15820   ac_status=$?
15821   grep -v '^ *+' conftest.er1 >conftest.err
15822   rm -f conftest.er1
15823   cat conftest.err >&5
15824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825   (exit $ac_status); } >/dev/null; then
15826   if test -s conftest.err; then
15827     ac_cpp_err=$ac_c_preproc_warn_flag
15828     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15829   else
15830     ac_cpp_err=
15831   fi
15832 else
15833   ac_cpp_err=yes
15834 fi
15835 if test -z "$ac_cpp_err"; then
15836   ac_header_preproc=yes
15837 else
15838   echo "$as_me: failed program was:" >&5
15839 sed 's/^/| /' conftest.$ac_ext >&5
15840
15841   ac_header_preproc=no
15842 fi
15843
15844 rm -f conftest.err conftest.$ac_ext
15845 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15846 echo "${ECHO_T}$ac_header_preproc" >&6; }
15847
15848 # So?  What about this header?
15849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15850   yes:no: )
15851     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15853     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15855     ac_header_preproc=yes
15856     ;;
15857   no:yes:* )
15858     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15860     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15861 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15862     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15864     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15865 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15866     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15868     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15870     ( cat <<\_ASBOX
15871 ## ----------------------------------- ##
15872 ## Report this to llvmbugs@cs.uiuc.edu ##
15873 ## ----------------------------------- ##
15874 _ASBOX
15875      ) | sed "s/^/$as_me: WARNING:     /" >&2
15876     ;;
15877 esac
15878 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15881   echo $ECHO_N "(cached) $ECHO_C" >&6
15882 else
15883   eval "$as_ac_Header=\$ac_header_preproc"
15884 fi
15885 ac_res=`eval echo '${'$as_ac_Header'}'`
15886                { echo "$as_me:$LINENO: result: $ac_res" >&5
15887 echo "${ECHO_T}$ac_res" >&6; }
15888
15889 fi
15890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15891   cat >>confdefs.h <<_ACEOF
15892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15893 _ACEOF
15894
15895 fi
15896
15897 done
15898
15899
15900
15901
15902
15903 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15904 do
15905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15907   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15910   echo $ECHO_N "(cached) $ECHO_C" >&6
15911 fi
15912 ac_res=`eval echo '${'$as_ac_Header'}'`
15913                { echo "$as_me:$LINENO: result: $ac_res" >&5
15914 echo "${ECHO_T}$ac_res" >&6; }
15915 else
15916   # Is the header compilable?
15917 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15918 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15919 cat >conftest.$ac_ext <<_ACEOF
15920 /* confdefs.h.  */
15921 _ACEOF
15922 cat confdefs.h >>conftest.$ac_ext
15923 cat >>conftest.$ac_ext <<_ACEOF
15924 /* end confdefs.h.  */
15925 $ac_includes_default
15926 #include <$ac_header>
15927 _ACEOF
15928 rm -f conftest.$ac_objext
15929 if { (ac_try="$ac_compile"
15930 case "(($ac_try" in
15931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15932   *) ac_try_echo=$ac_try;;
15933 esac
15934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15935   (eval "$ac_compile") 2>conftest.er1
15936   ac_status=$?
15937   grep -v '^ *+' conftest.er1 >conftest.err
15938   rm -f conftest.er1
15939   cat conftest.err >&5
15940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941   (exit $ac_status); } &&
15942          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15943   { (case "(($ac_try" in
15944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15945   *) ac_try_echo=$ac_try;;
15946 esac
15947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15948   (eval "$ac_try") 2>&5
15949   ac_status=$?
15950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951   (exit $ac_status); }; } &&
15952          { ac_try='test -s conftest.$ac_objext'
15953   { (case "(($ac_try" in
15954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15955   *) ac_try_echo=$ac_try;;
15956 esac
15957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15958   (eval "$ac_try") 2>&5
15959   ac_status=$?
15960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961   (exit $ac_status); }; }; then
15962   ac_header_compiler=yes
15963 else
15964   echo "$as_me: failed program was:" >&5
15965 sed 's/^/| /' conftest.$ac_ext >&5
15966
15967         ac_header_compiler=no
15968 fi
15969
15970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15971 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15972 echo "${ECHO_T}$ac_header_compiler" >&6; }
15973
15974 # Is the header present?
15975 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15976 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15977 cat >conftest.$ac_ext <<_ACEOF
15978 /* confdefs.h.  */
15979 _ACEOF
15980 cat confdefs.h >>conftest.$ac_ext
15981 cat >>conftest.$ac_ext <<_ACEOF
15982 /* end confdefs.h.  */
15983 #include <$ac_header>
15984 _ACEOF
15985 if { (ac_try="$ac_cpp conftest.$ac_ext"
15986 case "(($ac_try" in
15987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15988   *) ac_try_echo=$ac_try;;
15989 esac
15990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15991   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15992   ac_status=$?
15993   grep -v '^ *+' conftest.er1 >conftest.err
15994   rm -f conftest.er1
15995   cat conftest.err >&5
15996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997   (exit $ac_status); } >/dev/null; then
15998   if test -s conftest.err; then
15999     ac_cpp_err=$ac_c_preproc_warn_flag
16000     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16001   else
16002     ac_cpp_err=
16003   fi
16004 else
16005   ac_cpp_err=yes
16006 fi
16007 if test -z "$ac_cpp_err"; then
16008   ac_header_preproc=yes
16009 else
16010   echo "$as_me: failed program was:" >&5
16011 sed 's/^/| /' conftest.$ac_ext >&5
16012
16013   ac_header_preproc=no
16014 fi
16015
16016 rm -f conftest.err conftest.$ac_ext
16017 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16018 echo "${ECHO_T}$ac_header_preproc" >&6; }
16019
16020 # So?  What about this header?
16021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16022   yes:no: )
16023     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16024 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16025     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16026 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16027     ac_header_preproc=yes
16028     ;;
16029   no:yes:* )
16030     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16032     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16033 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16034     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16035 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16036     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16037 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16038     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16040     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16041 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16042     ( cat <<\_ASBOX
16043 ## ----------------------------------- ##
16044 ## Report this to llvmbugs@cs.uiuc.edu ##
16045 ## ----------------------------------- ##
16046 _ASBOX
16047      ) | sed "s/^/$as_me: WARNING:     /" >&2
16048     ;;
16049 esac
16050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16053   echo $ECHO_N "(cached) $ECHO_C" >&6
16054 else
16055   eval "$as_ac_Header=\$ac_header_preproc"
16056 fi
16057 ac_res=`eval echo '${'$as_ac_Header'}'`
16058                { echo "$as_me:$LINENO: result: $ac_res" >&5
16059 echo "${ECHO_T}$ac_res" >&6; }
16060
16061 fi
16062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16063   cat >>confdefs.h <<_ACEOF
16064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16065 _ACEOF
16066
16067 fi
16068
16069 done
16070
16071 if test "$ENABLE_THREADS" -eq 1 ; then
16072
16073 for ac_header in pthread.h
16074 do
16075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16077   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16080   echo $ECHO_N "(cached) $ECHO_C" >&6
16081 fi
16082 ac_res=`eval echo '${'$as_ac_Header'}'`
16083                { echo "$as_me:$LINENO: result: $ac_res" >&5
16084 echo "${ECHO_T}$ac_res" >&6; }
16085 else
16086   # Is the header compilable?
16087 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16089 cat >conftest.$ac_ext <<_ACEOF
16090 /* confdefs.h.  */
16091 _ACEOF
16092 cat confdefs.h >>conftest.$ac_ext
16093 cat >>conftest.$ac_ext <<_ACEOF
16094 /* end confdefs.h.  */
16095 $ac_includes_default
16096 #include <$ac_header>
16097 _ACEOF
16098 rm -f conftest.$ac_objext
16099 if { (ac_try="$ac_compile"
16100 case "(($ac_try" in
16101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16102   *) ac_try_echo=$ac_try;;
16103 esac
16104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16105   (eval "$ac_compile") 2>conftest.er1
16106   ac_status=$?
16107   grep -v '^ *+' conftest.er1 >conftest.err
16108   rm -f conftest.er1
16109   cat conftest.err >&5
16110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111   (exit $ac_status); } &&
16112          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16113   { (case "(($ac_try" in
16114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16115   *) ac_try_echo=$ac_try;;
16116 esac
16117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16118   (eval "$ac_try") 2>&5
16119   ac_status=$?
16120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121   (exit $ac_status); }; } &&
16122          { ac_try='test -s conftest.$ac_objext'
16123   { (case "(($ac_try" in
16124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16125   *) ac_try_echo=$ac_try;;
16126 esac
16127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16128   (eval "$ac_try") 2>&5
16129   ac_status=$?
16130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131   (exit $ac_status); }; }; then
16132   ac_header_compiler=yes
16133 else
16134   echo "$as_me: failed program was:" >&5
16135 sed 's/^/| /' conftest.$ac_ext >&5
16136
16137         ac_header_compiler=no
16138 fi
16139
16140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16141 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16142 echo "${ECHO_T}$ac_header_compiler" >&6; }
16143
16144 # Is the header present?
16145 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16146 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16147 cat >conftest.$ac_ext <<_ACEOF
16148 /* confdefs.h.  */
16149 _ACEOF
16150 cat confdefs.h >>conftest.$ac_ext
16151 cat >>conftest.$ac_ext <<_ACEOF
16152 /* end confdefs.h.  */
16153 #include <$ac_header>
16154 _ACEOF
16155 if { (ac_try="$ac_cpp conftest.$ac_ext"
16156 case "(($ac_try" in
16157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16158   *) ac_try_echo=$ac_try;;
16159 esac
16160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16161   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16162   ac_status=$?
16163   grep -v '^ *+' conftest.er1 >conftest.err
16164   rm -f conftest.er1
16165   cat conftest.err >&5
16166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167   (exit $ac_status); } >/dev/null; then
16168   if test -s conftest.err; then
16169     ac_cpp_err=$ac_c_preproc_warn_flag
16170     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16171   else
16172     ac_cpp_err=
16173   fi
16174 else
16175   ac_cpp_err=yes
16176 fi
16177 if test -z "$ac_cpp_err"; then
16178   ac_header_preproc=yes
16179 else
16180   echo "$as_me: failed program was:" >&5
16181 sed 's/^/| /' conftest.$ac_ext >&5
16182
16183   ac_header_preproc=no
16184 fi
16185
16186 rm -f conftest.err conftest.$ac_ext
16187 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16188 echo "${ECHO_T}$ac_header_preproc" >&6; }
16189
16190 # So?  What about this header?
16191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16192   yes:no: )
16193     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16194 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16195     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16196 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16197     ac_header_preproc=yes
16198     ;;
16199   no:yes:* )
16200     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16201 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16202     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16203 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16204     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16205 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16206     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16207 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16208     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16209 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16210     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16211 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16212     ( cat <<\_ASBOX
16213 ## ----------------------------------- ##
16214 ## Report this to llvmbugs@cs.uiuc.edu ##
16215 ## ----------------------------------- ##
16216 _ASBOX
16217      ) | sed "s/^/$as_me: WARNING:     /" >&2
16218     ;;
16219 esac
16220 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16223   echo $ECHO_N "(cached) $ECHO_C" >&6
16224 else
16225   eval "$as_ac_Header=\$ac_header_preproc"
16226 fi
16227 ac_res=`eval echo '${'$as_ac_Header'}'`
16228                { echo "$as_me:$LINENO: result: $ac_res" >&5
16229 echo "${ECHO_T}$ac_res" >&6; }
16230
16231 fi
16232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16233   cat >>confdefs.h <<_ACEOF
16234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16235 _ACEOF
16236  HAVE_PTHREAD=1
16237
16238 else
16239   HAVE_PTHREAD=0
16240
16241 fi
16242
16243 done
16244
16245 else
16246   HAVE_PTHREAD=0
16247
16248 fi
16249
16250 if test "$llvm_cv_enable_libffi" = "yes" ; then
16251
16252
16253 for ac_header in ffi.h ffi/ffi.h
16254 do
16255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16257   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16260   echo $ECHO_N "(cached) $ECHO_C" >&6
16261 fi
16262 ac_res=`eval echo '${'$as_ac_Header'}'`
16263                { echo "$as_me:$LINENO: result: $ac_res" >&5
16264 echo "${ECHO_T}$ac_res" >&6; }
16265 else
16266   # Is the header compilable?
16267 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16268 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16269 cat >conftest.$ac_ext <<_ACEOF
16270 /* confdefs.h.  */
16271 _ACEOF
16272 cat confdefs.h >>conftest.$ac_ext
16273 cat >>conftest.$ac_ext <<_ACEOF
16274 /* end confdefs.h.  */
16275 $ac_includes_default
16276 #include <$ac_header>
16277 _ACEOF
16278 rm -f conftest.$ac_objext
16279 if { (ac_try="$ac_compile"
16280 case "(($ac_try" in
16281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16282   *) ac_try_echo=$ac_try;;
16283 esac
16284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16285   (eval "$ac_compile") 2>conftest.er1
16286   ac_status=$?
16287   grep -v '^ *+' conftest.er1 >conftest.err
16288   rm -f conftest.er1
16289   cat conftest.err >&5
16290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291   (exit $ac_status); } &&
16292          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16293   { (case "(($ac_try" in
16294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16295   *) ac_try_echo=$ac_try;;
16296 esac
16297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16298   (eval "$ac_try") 2>&5
16299   ac_status=$?
16300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301   (exit $ac_status); }; } &&
16302          { ac_try='test -s conftest.$ac_objext'
16303   { (case "(($ac_try" in
16304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16305   *) ac_try_echo=$ac_try;;
16306 esac
16307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16308   (eval "$ac_try") 2>&5
16309   ac_status=$?
16310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311   (exit $ac_status); }; }; then
16312   ac_header_compiler=yes
16313 else
16314   echo "$as_me: failed program was:" >&5
16315 sed 's/^/| /' conftest.$ac_ext >&5
16316
16317         ac_header_compiler=no
16318 fi
16319
16320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16321 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16322 echo "${ECHO_T}$ac_header_compiler" >&6; }
16323
16324 # Is the header present?
16325 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16326 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16327 cat >conftest.$ac_ext <<_ACEOF
16328 /* confdefs.h.  */
16329 _ACEOF
16330 cat confdefs.h >>conftest.$ac_ext
16331 cat >>conftest.$ac_ext <<_ACEOF
16332 /* end confdefs.h.  */
16333 #include <$ac_header>
16334 _ACEOF
16335 if { (ac_try="$ac_cpp conftest.$ac_ext"
16336 case "(($ac_try" in
16337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16338   *) ac_try_echo=$ac_try;;
16339 esac
16340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16341   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16342   ac_status=$?
16343   grep -v '^ *+' conftest.er1 >conftest.err
16344   rm -f conftest.er1
16345   cat conftest.err >&5
16346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347   (exit $ac_status); } >/dev/null; then
16348   if test -s conftest.err; then
16349     ac_cpp_err=$ac_c_preproc_warn_flag
16350     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16351   else
16352     ac_cpp_err=
16353   fi
16354 else
16355   ac_cpp_err=yes
16356 fi
16357 if test -z "$ac_cpp_err"; then
16358   ac_header_preproc=yes
16359 else
16360   echo "$as_me: failed program was:" >&5
16361 sed 's/^/| /' conftest.$ac_ext >&5
16362
16363   ac_header_preproc=no
16364 fi
16365
16366 rm -f conftest.err conftest.$ac_ext
16367 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16368 echo "${ECHO_T}$ac_header_preproc" >&6; }
16369
16370 # So?  What about this header?
16371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16372   yes:no: )
16373     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16374 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16375     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16376 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16377     ac_header_preproc=yes
16378     ;;
16379   no:yes:* )
16380     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16381 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16382     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16383 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16384     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16385 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16386     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16387 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16388     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16389 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16390     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16391 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16392     ( cat <<\_ASBOX
16393 ## ----------------------------------- ##
16394 ## Report this to llvmbugs@cs.uiuc.edu ##
16395 ## ----------------------------------- ##
16396 _ASBOX
16397      ) | sed "s/^/$as_me: WARNING:     /" >&2
16398     ;;
16399 esac
16400 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16403   echo $ECHO_N "(cached) $ECHO_C" >&6
16404 else
16405   eval "$as_ac_Header=\$ac_header_preproc"
16406 fi
16407 ac_res=`eval echo '${'$as_ac_Header'}'`
16408                { echo "$as_me:$LINENO: result: $ac_res" >&5
16409 echo "${ECHO_T}$ac_res" >&6; }
16410
16411 fi
16412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16413   cat >>confdefs.h <<_ACEOF
16414 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16415 _ACEOF
16416
16417 fi
16418
16419 done
16420
16421 fi
16422
16423
16424
16425
16426   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16427 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16428 if test "${ac_cv_huge_val_sanity+set}" = set; then
16429   echo $ECHO_N "(cached) $ECHO_C" >&6
16430 else
16431
16432     ac_ext=cpp
16433 ac_cpp='$CXXCPP $CPPFLAGS'
16434 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16435 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16436 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16437
16438     CXXFLAGS=-pedantic
16439     if test "$cross_compiling" = yes; then
16440   ac_cv_huge_val_sanity=yes
16441 else
16442   cat >conftest.$ac_ext <<_ACEOF
16443 /* confdefs.h.  */
16444 _ACEOF
16445 cat confdefs.h >>conftest.$ac_ext
16446 cat >>conftest.$ac_ext <<_ACEOF
16447 /* end confdefs.h.  */
16448 #include <math.h>
16449 int
16450 main ()
16451 {
16452 double x = HUGE_VAL; return x != x;
16453   ;
16454   return 0;
16455 }
16456 _ACEOF
16457 rm -f conftest$ac_exeext
16458 if { (ac_try="$ac_link"
16459 case "(($ac_try" in
16460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16461   *) ac_try_echo=$ac_try;;
16462 esac
16463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16464   (eval "$ac_link") 2>&5
16465   ac_status=$?
16466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16468   { (case "(($ac_try" in
16469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16470   *) ac_try_echo=$ac_try;;
16471 esac
16472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16473   (eval "$ac_try") 2>&5
16474   ac_status=$?
16475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476   (exit $ac_status); }; }; then
16477   ac_cv_huge_val_sanity=yes
16478 else
16479   echo "$as_me: program exited with status $ac_status" >&5
16480 echo "$as_me: failed program was:" >&5
16481 sed 's/^/| /' conftest.$ac_ext >&5
16482
16483 ( exit $ac_status )
16484 ac_cv_huge_val_sanity=no
16485 fi
16486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16487 fi
16488
16489
16490     ac_ext=c
16491 ac_cpp='$CPP $CPPFLAGS'
16492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16495
16496
16497 fi
16498 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16499 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16500   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16501
16502
16503 { echo "$as_me:$LINENO: checking for pid_t" >&5
16504 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16505 if test "${ac_cv_type_pid_t+set}" = set; then
16506   echo $ECHO_N "(cached) $ECHO_C" >&6
16507 else
16508   cat >conftest.$ac_ext <<_ACEOF
16509 /* confdefs.h.  */
16510 _ACEOF
16511 cat confdefs.h >>conftest.$ac_ext
16512 cat >>conftest.$ac_ext <<_ACEOF
16513 /* end confdefs.h.  */
16514 $ac_includes_default
16515 typedef pid_t ac__type_new_;
16516 int
16517 main ()
16518 {
16519 if ((ac__type_new_ *) 0)
16520   return 0;
16521 if (sizeof (ac__type_new_))
16522   return 0;
16523   ;
16524   return 0;
16525 }
16526 _ACEOF
16527 rm -f conftest.$ac_objext
16528 if { (ac_try="$ac_compile"
16529 case "(($ac_try" in
16530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16531   *) ac_try_echo=$ac_try;;
16532 esac
16533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16534   (eval "$ac_compile") 2>conftest.er1
16535   ac_status=$?
16536   grep -v '^ *+' conftest.er1 >conftest.err
16537   rm -f conftest.er1
16538   cat conftest.err >&5
16539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540   (exit $ac_status); } &&
16541          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16542   { (case "(($ac_try" in
16543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16544   *) ac_try_echo=$ac_try;;
16545 esac
16546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16547   (eval "$ac_try") 2>&5
16548   ac_status=$?
16549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550   (exit $ac_status); }; } &&
16551          { ac_try='test -s conftest.$ac_objext'
16552   { (case "(($ac_try" in
16553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16554   *) ac_try_echo=$ac_try;;
16555 esac
16556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16557   (eval "$ac_try") 2>&5
16558   ac_status=$?
16559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560   (exit $ac_status); }; }; then
16561   ac_cv_type_pid_t=yes
16562 else
16563   echo "$as_me: failed program was:" >&5
16564 sed 's/^/| /' conftest.$ac_ext >&5
16565
16566         ac_cv_type_pid_t=no
16567 fi
16568
16569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16570 fi
16571 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16572 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16573 if test $ac_cv_type_pid_t = yes; then
16574   :
16575 else
16576
16577 cat >>confdefs.h <<_ACEOF
16578 #define pid_t int
16579 _ACEOF
16580
16581 fi
16582
16583 { echo "$as_me:$LINENO: checking for size_t" >&5
16584 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16585 if test "${ac_cv_type_size_t+set}" = set; then
16586   echo $ECHO_N "(cached) $ECHO_C" >&6
16587 else
16588   cat >conftest.$ac_ext <<_ACEOF
16589 /* confdefs.h.  */
16590 _ACEOF
16591 cat confdefs.h >>conftest.$ac_ext
16592 cat >>conftest.$ac_ext <<_ACEOF
16593 /* end confdefs.h.  */
16594 $ac_includes_default
16595 typedef size_t ac__type_new_;
16596 int
16597 main ()
16598 {
16599 if ((ac__type_new_ *) 0)
16600   return 0;
16601 if (sizeof (ac__type_new_))
16602   return 0;
16603   ;
16604   return 0;
16605 }
16606 _ACEOF
16607 rm -f conftest.$ac_objext
16608 if { (ac_try="$ac_compile"
16609 case "(($ac_try" in
16610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16611   *) ac_try_echo=$ac_try;;
16612 esac
16613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16614   (eval "$ac_compile") 2>conftest.er1
16615   ac_status=$?
16616   grep -v '^ *+' conftest.er1 >conftest.err
16617   rm -f conftest.er1
16618   cat conftest.err >&5
16619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620   (exit $ac_status); } &&
16621          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16622   { (case "(($ac_try" in
16623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16624   *) ac_try_echo=$ac_try;;
16625 esac
16626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16627   (eval "$ac_try") 2>&5
16628   ac_status=$?
16629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630   (exit $ac_status); }; } &&
16631          { ac_try='test -s conftest.$ac_objext'
16632   { (case "(($ac_try" in
16633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634   *) ac_try_echo=$ac_try;;
16635 esac
16636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637   (eval "$ac_try") 2>&5
16638   ac_status=$?
16639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640   (exit $ac_status); }; }; then
16641   ac_cv_type_size_t=yes
16642 else
16643   echo "$as_me: failed program was:" >&5
16644 sed 's/^/| /' conftest.$ac_ext >&5
16645
16646         ac_cv_type_size_t=no
16647 fi
16648
16649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16650 fi
16651 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16652 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16653 if test $ac_cv_type_size_t = yes; then
16654   :
16655 else
16656
16657 cat >>confdefs.h <<_ACEOF
16658 #define size_t unsigned int
16659 _ACEOF
16660
16661 fi
16662
16663
16664 cat >>confdefs.h <<_ACEOF
16665 #define RETSIGTYPE void
16666 _ACEOF
16667
16668 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16669 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16670 if test "${ac_cv_struct_tm+set}" = set; then
16671   echo $ECHO_N "(cached) $ECHO_C" >&6
16672 else
16673   cat >conftest.$ac_ext <<_ACEOF
16674 /* confdefs.h.  */
16675 _ACEOF
16676 cat confdefs.h >>conftest.$ac_ext
16677 cat >>conftest.$ac_ext <<_ACEOF
16678 /* end confdefs.h.  */
16679 #include <sys/types.h>
16680 #include <time.h>
16681
16682 int
16683 main ()
16684 {
16685 struct tm *tp; tp->tm_sec;
16686   ;
16687   return 0;
16688 }
16689 _ACEOF
16690 rm -f conftest.$ac_objext
16691 if { (ac_try="$ac_compile"
16692 case "(($ac_try" in
16693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16694   *) ac_try_echo=$ac_try;;
16695 esac
16696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16697   (eval "$ac_compile") 2>conftest.er1
16698   ac_status=$?
16699   grep -v '^ *+' conftest.er1 >conftest.err
16700   rm -f conftest.er1
16701   cat conftest.err >&5
16702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703   (exit $ac_status); } &&
16704          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16705   { (case "(($ac_try" in
16706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16707   *) ac_try_echo=$ac_try;;
16708 esac
16709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16710   (eval "$ac_try") 2>&5
16711   ac_status=$?
16712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713   (exit $ac_status); }; } &&
16714          { ac_try='test -s conftest.$ac_objext'
16715   { (case "(($ac_try" in
16716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16717   *) ac_try_echo=$ac_try;;
16718 esac
16719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16720   (eval "$ac_try") 2>&5
16721   ac_status=$?
16722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723   (exit $ac_status); }; }; then
16724   ac_cv_struct_tm=time.h
16725 else
16726   echo "$as_me: failed program was:" >&5
16727 sed 's/^/| /' conftest.$ac_ext >&5
16728
16729         ac_cv_struct_tm=sys/time.h
16730 fi
16731
16732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16733 fi
16734 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16735 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16736 if test $ac_cv_struct_tm = sys/time.h; then
16737
16738 cat >>confdefs.h <<\_ACEOF
16739 #define TM_IN_SYS_TIME 1
16740 _ACEOF
16741
16742 fi
16743
16744 { echo "$as_me:$LINENO: checking for int64_t" >&5
16745 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16746 if test "${ac_cv_type_int64_t+set}" = set; then
16747   echo $ECHO_N "(cached) $ECHO_C" >&6
16748 else
16749   cat >conftest.$ac_ext <<_ACEOF
16750 /* confdefs.h.  */
16751 _ACEOF
16752 cat confdefs.h >>conftest.$ac_ext
16753 cat >>conftest.$ac_ext <<_ACEOF
16754 /* end confdefs.h.  */
16755 $ac_includes_default
16756 typedef int64_t ac__type_new_;
16757 int
16758 main ()
16759 {
16760 if ((ac__type_new_ *) 0)
16761   return 0;
16762 if (sizeof (ac__type_new_))
16763   return 0;
16764   ;
16765   return 0;
16766 }
16767 _ACEOF
16768 rm -f conftest.$ac_objext
16769 if { (ac_try="$ac_compile"
16770 case "(($ac_try" in
16771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16772   *) ac_try_echo=$ac_try;;
16773 esac
16774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16775   (eval "$ac_compile") 2>conftest.er1
16776   ac_status=$?
16777   grep -v '^ *+' conftest.er1 >conftest.err
16778   rm -f conftest.er1
16779   cat conftest.err >&5
16780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781   (exit $ac_status); } &&
16782          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16783   { (case "(($ac_try" in
16784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16785   *) ac_try_echo=$ac_try;;
16786 esac
16787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16788   (eval "$ac_try") 2>&5
16789   ac_status=$?
16790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791   (exit $ac_status); }; } &&
16792          { ac_try='test -s conftest.$ac_objext'
16793   { (case "(($ac_try" in
16794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16795   *) ac_try_echo=$ac_try;;
16796 esac
16797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16798   (eval "$ac_try") 2>&5
16799   ac_status=$?
16800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801   (exit $ac_status); }; }; then
16802   ac_cv_type_int64_t=yes
16803 else
16804   echo "$as_me: failed program was:" >&5
16805 sed 's/^/| /' conftest.$ac_ext >&5
16806
16807         ac_cv_type_int64_t=no
16808 fi
16809
16810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16811 fi
16812 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16813 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16814 if test $ac_cv_type_int64_t = yes; then
16815
16816 cat >>confdefs.h <<_ACEOF
16817 #define HAVE_INT64_T 1
16818 _ACEOF
16819
16820
16821 else
16822   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16823 echo "$as_me: error: Type int64_t required but not found" >&2;}
16824    { (exit 1); exit 1; }; }
16825 fi
16826
16827 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16828 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16829 if test "${ac_cv_type_uint64_t+set}" = set; then
16830   echo $ECHO_N "(cached) $ECHO_C" >&6
16831 else
16832   cat >conftest.$ac_ext <<_ACEOF
16833 /* confdefs.h.  */
16834 _ACEOF
16835 cat confdefs.h >>conftest.$ac_ext
16836 cat >>conftest.$ac_ext <<_ACEOF
16837 /* end confdefs.h.  */
16838 $ac_includes_default
16839 typedef uint64_t ac__type_new_;
16840 int
16841 main ()
16842 {
16843 if ((ac__type_new_ *) 0)
16844   return 0;
16845 if (sizeof (ac__type_new_))
16846   return 0;
16847   ;
16848   return 0;
16849 }
16850 _ACEOF
16851 rm -f conftest.$ac_objext
16852 if { (ac_try="$ac_compile"
16853 case "(($ac_try" in
16854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855   *) ac_try_echo=$ac_try;;
16856 esac
16857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16858   (eval "$ac_compile") 2>conftest.er1
16859   ac_status=$?
16860   grep -v '^ *+' conftest.er1 >conftest.err
16861   rm -f conftest.er1
16862   cat conftest.err >&5
16863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864   (exit $ac_status); } &&
16865          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16866   { (case "(($ac_try" in
16867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16868   *) ac_try_echo=$ac_try;;
16869 esac
16870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16871   (eval "$ac_try") 2>&5
16872   ac_status=$?
16873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874   (exit $ac_status); }; } &&
16875          { ac_try='test -s conftest.$ac_objext'
16876   { (case "(($ac_try" in
16877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16878   *) ac_try_echo=$ac_try;;
16879 esac
16880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16881   (eval "$ac_try") 2>&5
16882   ac_status=$?
16883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884   (exit $ac_status); }; }; then
16885   ac_cv_type_uint64_t=yes
16886 else
16887   echo "$as_me: failed program was:" >&5
16888 sed 's/^/| /' conftest.$ac_ext >&5
16889
16890         ac_cv_type_uint64_t=no
16891 fi
16892
16893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16894 fi
16895 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16896 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16897 if test $ac_cv_type_uint64_t = yes; then
16898
16899 cat >>confdefs.h <<_ACEOF
16900 #define HAVE_UINT64_T 1
16901 _ACEOF
16902
16903
16904 else
16905   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16906 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16907 if test "${ac_cv_type_u_int64_t+set}" = set; then
16908   echo $ECHO_N "(cached) $ECHO_C" >&6
16909 else
16910   cat >conftest.$ac_ext <<_ACEOF
16911 /* confdefs.h.  */
16912 _ACEOF
16913 cat confdefs.h >>conftest.$ac_ext
16914 cat >>conftest.$ac_ext <<_ACEOF
16915 /* end confdefs.h.  */
16916 $ac_includes_default
16917 typedef u_int64_t ac__type_new_;
16918 int
16919 main ()
16920 {
16921 if ((ac__type_new_ *) 0)
16922   return 0;
16923 if (sizeof (ac__type_new_))
16924   return 0;
16925   ;
16926   return 0;
16927 }
16928 _ACEOF
16929 rm -f conftest.$ac_objext
16930 if { (ac_try="$ac_compile"
16931 case "(($ac_try" in
16932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16933   *) ac_try_echo=$ac_try;;
16934 esac
16935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16936   (eval "$ac_compile") 2>conftest.er1
16937   ac_status=$?
16938   grep -v '^ *+' conftest.er1 >conftest.err
16939   rm -f conftest.er1
16940   cat conftest.err >&5
16941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942   (exit $ac_status); } &&
16943          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16944   { (case "(($ac_try" in
16945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16946   *) ac_try_echo=$ac_try;;
16947 esac
16948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16949   (eval "$ac_try") 2>&5
16950   ac_status=$?
16951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952   (exit $ac_status); }; } &&
16953          { ac_try='test -s conftest.$ac_objext'
16954   { (case "(($ac_try" in
16955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16956   *) ac_try_echo=$ac_try;;
16957 esac
16958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16959   (eval "$ac_try") 2>&5
16960   ac_status=$?
16961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962   (exit $ac_status); }; }; then
16963   ac_cv_type_u_int64_t=yes
16964 else
16965   echo "$as_me: failed program was:" >&5
16966 sed 's/^/| /' conftest.$ac_ext >&5
16967
16968         ac_cv_type_u_int64_t=no
16969 fi
16970
16971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16972 fi
16973 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16974 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16975 if test $ac_cv_type_u_int64_t = yes; then
16976
16977 cat >>confdefs.h <<_ACEOF
16978 #define HAVE_U_INT64_T 1
16979 _ACEOF
16980
16981
16982 else
16983   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16984 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16985    { (exit 1); exit 1; }; }
16986 fi
16987
16988 fi
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17000 do
17001 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17002 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17004 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17005   echo $ECHO_N "(cached) $ECHO_C" >&6
17006 else
17007   cat >conftest.$ac_ext <<_ACEOF
17008 /* confdefs.h.  */
17009 _ACEOF
17010 cat confdefs.h >>conftest.$ac_ext
17011 cat >>conftest.$ac_ext <<_ACEOF
17012 /* end confdefs.h.  */
17013 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17014    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17015 #define $ac_func innocuous_$ac_func
17016
17017 /* System header to define __stub macros and hopefully few prototypes,
17018     which can conflict with char $ac_func (); below.
17019     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17020     <limits.h> exists even on freestanding compilers.  */
17021
17022 #ifdef __STDC__
17023 # include <limits.h>
17024 #else
17025 # include <assert.h>
17026 #endif
17027
17028 #undef $ac_func
17029
17030 /* Override any GCC internal prototype to avoid an error.
17031    Use char because int might match the return type of a GCC
17032    builtin and then its argument prototype would still apply.  */
17033 #ifdef __cplusplus
17034 extern "C"
17035 #endif
17036 char $ac_func ();
17037 /* The GNU C library defines this for functions which it implements
17038     to always fail with ENOSYS.  Some functions are actually named
17039     something starting with __ and the normal name is an alias.  */
17040 #if defined __stub_$ac_func || defined __stub___$ac_func
17041 choke me
17042 #endif
17043
17044 int
17045 main ()
17046 {
17047 return $ac_func ();
17048   ;
17049   return 0;
17050 }
17051 _ACEOF
17052 rm -f conftest.$ac_objext conftest$ac_exeext
17053 if { (ac_try="$ac_link"
17054 case "(($ac_try" in
17055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17056   *) ac_try_echo=$ac_try;;
17057 esac
17058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17059   (eval "$ac_link") 2>conftest.er1
17060   ac_status=$?
17061   grep -v '^ *+' conftest.er1 >conftest.err
17062   rm -f conftest.er1
17063   cat conftest.err >&5
17064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065   (exit $ac_status); } &&
17066          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17067   { (case "(($ac_try" in
17068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17069   *) ac_try_echo=$ac_try;;
17070 esac
17071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17072   (eval "$ac_try") 2>&5
17073   ac_status=$?
17074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075   (exit $ac_status); }; } &&
17076          { ac_try='test -s conftest$ac_exeext'
17077   { (case "(($ac_try" in
17078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17079   *) ac_try_echo=$ac_try;;
17080 esac
17081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17082   (eval "$ac_try") 2>&5
17083   ac_status=$?
17084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085   (exit $ac_status); }; }; then
17086   eval "$as_ac_var=yes"
17087 else
17088   echo "$as_me: failed program was:" >&5
17089 sed 's/^/| /' conftest.$ac_ext >&5
17090
17091         eval "$as_ac_var=no"
17092 fi
17093
17094 rm -f core conftest.err conftest.$ac_objext \
17095       conftest$ac_exeext conftest.$ac_ext
17096 fi
17097 ac_res=`eval echo '${'$as_ac_var'}'`
17098                { echo "$as_me:$LINENO: result: $ac_res" >&5
17099 echo "${ECHO_T}$ac_res" >&6; }
17100 if test `eval echo '${'$as_ac_var'}'` = yes; then
17101   cat >>confdefs.h <<_ACEOF
17102 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17103 _ACEOF
17104
17105 fi
17106 done
17107
17108
17109
17110
17111
17112 for ac_func in powf fmodf strtof round
17113 do
17114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17115 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17117 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17118   echo $ECHO_N "(cached) $ECHO_C" >&6
17119 else
17120   cat >conftest.$ac_ext <<_ACEOF
17121 /* confdefs.h.  */
17122 _ACEOF
17123 cat confdefs.h >>conftest.$ac_ext
17124 cat >>conftest.$ac_ext <<_ACEOF
17125 /* end confdefs.h.  */
17126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17127    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17128 #define $ac_func innocuous_$ac_func
17129
17130 /* System header to define __stub macros and hopefully few prototypes,
17131     which can conflict with char $ac_func (); below.
17132     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17133     <limits.h> exists even on freestanding compilers.  */
17134
17135 #ifdef __STDC__
17136 # include <limits.h>
17137 #else
17138 # include <assert.h>
17139 #endif
17140
17141 #undef $ac_func
17142
17143 /* Override any GCC internal prototype to avoid an error.
17144    Use char because int might match the return type of a GCC
17145    builtin and then its argument prototype would still apply.  */
17146 #ifdef __cplusplus
17147 extern "C"
17148 #endif
17149 char $ac_func ();
17150 /* The GNU C library defines this for functions which it implements
17151     to always fail with ENOSYS.  Some functions are actually named
17152     something starting with __ and the normal name is an alias.  */
17153 #if defined __stub_$ac_func || defined __stub___$ac_func
17154 choke me
17155 #endif
17156
17157 int
17158 main ()
17159 {
17160 return $ac_func ();
17161   ;
17162   return 0;
17163 }
17164 _ACEOF
17165 rm -f conftest.$ac_objext conftest$ac_exeext
17166 if { (ac_try="$ac_link"
17167 case "(($ac_try" in
17168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17169   *) ac_try_echo=$ac_try;;
17170 esac
17171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17172   (eval "$ac_link") 2>conftest.er1
17173   ac_status=$?
17174   grep -v '^ *+' conftest.er1 >conftest.err
17175   rm -f conftest.er1
17176   cat conftest.err >&5
17177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178   (exit $ac_status); } &&
17179          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17180   { (case "(($ac_try" in
17181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17182   *) ac_try_echo=$ac_try;;
17183 esac
17184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17185   (eval "$ac_try") 2>&5
17186   ac_status=$?
17187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188   (exit $ac_status); }; } &&
17189          { ac_try='test -s conftest$ac_exeext'
17190   { (case "(($ac_try" in
17191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192   *) ac_try_echo=$ac_try;;
17193 esac
17194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17195   (eval "$ac_try") 2>&5
17196   ac_status=$?
17197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198   (exit $ac_status); }; }; then
17199   eval "$as_ac_var=yes"
17200 else
17201   echo "$as_me: failed program was:" >&5
17202 sed 's/^/| /' conftest.$ac_ext >&5
17203
17204         eval "$as_ac_var=no"
17205 fi
17206
17207 rm -f core conftest.err conftest.$ac_objext \
17208       conftest$ac_exeext conftest.$ac_ext
17209 fi
17210 ac_res=`eval echo '${'$as_ac_var'}'`
17211                { echo "$as_me:$LINENO: result: $ac_res" >&5
17212 echo "${ECHO_T}$ac_res" >&6; }
17213 if test `eval echo '${'$as_ac_var'}'` = yes; then
17214   cat >>confdefs.h <<_ACEOF
17215 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17216 _ACEOF
17217
17218 fi
17219 done
17220
17221
17222
17223
17224
17225
17226 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17227 do
17228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17229 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17231 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17232   echo $ECHO_N "(cached) $ECHO_C" >&6
17233 else
17234   cat >conftest.$ac_ext <<_ACEOF
17235 /* confdefs.h.  */
17236 _ACEOF
17237 cat confdefs.h >>conftest.$ac_ext
17238 cat >>conftest.$ac_ext <<_ACEOF
17239 /* end confdefs.h.  */
17240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17241    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17242 #define $ac_func innocuous_$ac_func
17243
17244 /* System header to define __stub macros and hopefully few prototypes,
17245     which can conflict with char $ac_func (); below.
17246     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17247     <limits.h> exists even on freestanding compilers.  */
17248
17249 #ifdef __STDC__
17250 # include <limits.h>
17251 #else
17252 # include <assert.h>
17253 #endif
17254
17255 #undef $ac_func
17256
17257 /* Override any GCC internal prototype to avoid an error.
17258    Use char because int might match the return type of a GCC
17259    builtin and then its argument prototype would still apply.  */
17260 #ifdef __cplusplus
17261 extern "C"
17262 #endif
17263 char $ac_func ();
17264 /* The GNU C library defines this for functions which it implements
17265     to always fail with ENOSYS.  Some functions are actually named
17266     something starting with __ and the normal name is an alias.  */
17267 #if defined __stub_$ac_func || defined __stub___$ac_func
17268 choke me
17269 #endif
17270
17271 int
17272 main ()
17273 {
17274 return $ac_func ();
17275   ;
17276   return 0;
17277 }
17278 _ACEOF
17279 rm -f conftest.$ac_objext conftest$ac_exeext
17280 if { (ac_try="$ac_link"
17281 case "(($ac_try" in
17282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17283   *) ac_try_echo=$ac_try;;
17284 esac
17285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17286   (eval "$ac_link") 2>conftest.er1
17287   ac_status=$?
17288   grep -v '^ *+' conftest.er1 >conftest.err
17289   rm -f conftest.er1
17290   cat conftest.err >&5
17291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292   (exit $ac_status); } &&
17293          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17294   { (case "(($ac_try" in
17295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17296   *) ac_try_echo=$ac_try;;
17297 esac
17298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17299   (eval "$ac_try") 2>&5
17300   ac_status=$?
17301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302   (exit $ac_status); }; } &&
17303          { ac_try='test -s conftest$ac_exeext'
17304   { (case "(($ac_try" in
17305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17306   *) ac_try_echo=$ac_try;;
17307 esac
17308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17309   (eval "$ac_try") 2>&5
17310   ac_status=$?
17311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312   (exit $ac_status); }; }; then
17313   eval "$as_ac_var=yes"
17314 else
17315   echo "$as_me: failed program was:" >&5
17316 sed 's/^/| /' conftest.$ac_ext >&5
17317
17318         eval "$as_ac_var=no"
17319 fi
17320
17321 rm -f core conftest.err conftest.$ac_objext \
17322       conftest$ac_exeext conftest.$ac_ext
17323 fi
17324 ac_res=`eval echo '${'$as_ac_var'}'`
17325                { echo "$as_me:$LINENO: result: $ac_res" >&5
17326 echo "${ECHO_T}$ac_res" >&6; }
17327 if test `eval echo '${'$as_ac_var'}'` = yes; then
17328   cat >>confdefs.h <<_ACEOF
17329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17330 _ACEOF
17331
17332 fi
17333 done
17334
17335
17336
17337
17338 for ac_func in isatty mkdtemp mkstemp
17339 do
17340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17341 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17343 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17344   echo $ECHO_N "(cached) $ECHO_C" >&6
17345 else
17346   cat >conftest.$ac_ext <<_ACEOF
17347 /* confdefs.h.  */
17348 _ACEOF
17349 cat confdefs.h >>conftest.$ac_ext
17350 cat >>conftest.$ac_ext <<_ACEOF
17351 /* end confdefs.h.  */
17352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17353    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17354 #define $ac_func innocuous_$ac_func
17355
17356 /* System header to define __stub macros and hopefully few prototypes,
17357     which can conflict with char $ac_func (); below.
17358     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17359     <limits.h> exists even on freestanding compilers.  */
17360
17361 #ifdef __STDC__
17362 # include <limits.h>
17363 #else
17364 # include <assert.h>
17365 #endif
17366
17367 #undef $ac_func
17368
17369 /* Override any GCC internal prototype to avoid an error.
17370    Use char because int might match the return type of a GCC
17371    builtin and then its argument prototype would still apply.  */
17372 #ifdef __cplusplus
17373 extern "C"
17374 #endif
17375 char $ac_func ();
17376 /* The GNU C library defines this for functions which it implements
17377     to always fail with ENOSYS.  Some functions are actually named
17378     something starting with __ and the normal name is an alias.  */
17379 #if defined __stub_$ac_func || defined __stub___$ac_func
17380 choke me
17381 #endif
17382
17383 int
17384 main ()
17385 {
17386 return $ac_func ();
17387   ;
17388   return 0;
17389 }
17390 _ACEOF
17391 rm -f conftest.$ac_objext conftest$ac_exeext
17392 if { (ac_try="$ac_link"
17393 case "(($ac_try" in
17394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17395   *) ac_try_echo=$ac_try;;
17396 esac
17397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17398   (eval "$ac_link") 2>conftest.er1
17399   ac_status=$?
17400   grep -v '^ *+' conftest.er1 >conftest.err
17401   rm -f conftest.er1
17402   cat conftest.err >&5
17403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404   (exit $ac_status); } &&
17405          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17415          { ac_try='test -s conftest$ac_exeext'
17416   { (case "(($ac_try" in
17417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17418   *) ac_try_echo=$ac_try;;
17419 esac
17420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17421   (eval "$ac_try") 2>&5
17422   ac_status=$?
17423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424   (exit $ac_status); }; }; then
17425   eval "$as_ac_var=yes"
17426 else
17427   echo "$as_me: failed program was:" >&5
17428 sed 's/^/| /' conftest.$ac_ext >&5
17429
17430         eval "$as_ac_var=no"
17431 fi
17432
17433 rm -f core conftest.err conftest.$ac_objext \
17434       conftest$ac_exeext conftest.$ac_ext
17435 fi
17436 ac_res=`eval echo '${'$as_ac_var'}'`
17437                { echo "$as_me:$LINENO: result: $ac_res" >&5
17438 echo "${ECHO_T}$ac_res" >&6; }
17439 if test `eval echo '${'$as_ac_var'}'` = yes; then
17440   cat >>confdefs.h <<_ACEOF
17441 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17442 _ACEOF
17443
17444 fi
17445 done
17446
17447
17448
17449
17450
17451
17452 for ac_func in mktemp realpath sbrk setrlimit strdup
17453 do
17454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17455 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17457 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17458   echo $ECHO_N "(cached) $ECHO_C" >&6
17459 else
17460   cat >conftest.$ac_ext <<_ACEOF
17461 /* confdefs.h.  */
17462 _ACEOF
17463 cat confdefs.h >>conftest.$ac_ext
17464 cat >>conftest.$ac_ext <<_ACEOF
17465 /* end confdefs.h.  */
17466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17467    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17468 #define $ac_func innocuous_$ac_func
17469
17470 /* System header to define __stub macros and hopefully few prototypes,
17471     which can conflict with char $ac_func (); below.
17472     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17473     <limits.h> exists even on freestanding compilers.  */
17474
17475 #ifdef __STDC__
17476 # include <limits.h>
17477 #else
17478 # include <assert.h>
17479 #endif
17480
17481 #undef $ac_func
17482
17483 /* Override any GCC internal prototype to avoid an error.
17484    Use char because int might match the return type of a GCC
17485    builtin and then its argument prototype would still apply.  */
17486 #ifdef __cplusplus
17487 extern "C"
17488 #endif
17489 char $ac_func ();
17490 /* The GNU C library defines this for functions which it implements
17491     to always fail with ENOSYS.  Some functions are actually named
17492     something starting with __ and the normal name is an alias.  */
17493 #if defined __stub_$ac_func || defined __stub___$ac_func
17494 choke me
17495 #endif
17496
17497 int
17498 main ()
17499 {
17500 return $ac_func ();
17501   ;
17502   return 0;
17503 }
17504 _ACEOF
17505 rm -f conftest.$ac_objext conftest$ac_exeext
17506 if { (ac_try="$ac_link"
17507 case "(($ac_try" in
17508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17509   *) ac_try_echo=$ac_try;;
17510 esac
17511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17512   (eval "$ac_link") 2>conftest.er1
17513   ac_status=$?
17514   grep -v '^ *+' conftest.er1 >conftest.err
17515   rm -f conftest.er1
17516   cat conftest.err >&5
17517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518   (exit $ac_status); } &&
17519          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17520   { (case "(($ac_try" in
17521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17522   *) ac_try_echo=$ac_try;;
17523 esac
17524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17525   (eval "$ac_try") 2>&5
17526   ac_status=$?
17527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528   (exit $ac_status); }; } &&
17529          { ac_try='test -s conftest$ac_exeext'
17530   { (case "(($ac_try" in
17531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17532   *) ac_try_echo=$ac_try;;
17533 esac
17534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17535   (eval "$ac_try") 2>&5
17536   ac_status=$?
17537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538   (exit $ac_status); }; }; then
17539   eval "$as_ac_var=yes"
17540 else
17541   echo "$as_me: failed program was:" >&5
17542 sed 's/^/| /' conftest.$ac_ext >&5
17543
17544         eval "$as_ac_var=no"
17545 fi
17546
17547 rm -f core conftest.err conftest.$ac_objext \
17548       conftest$ac_exeext conftest.$ac_ext
17549 fi
17550 ac_res=`eval echo '${'$as_ac_var'}'`
17551                { echo "$as_me:$LINENO: result: $ac_res" >&5
17552 echo "${ECHO_T}$ac_res" >&6; }
17553 if test `eval echo '${'$as_ac_var'}'` = yes; then
17554   cat >>confdefs.h <<_ACEOF
17555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17556 _ACEOF
17557
17558 fi
17559 done
17560
17561
17562
17563
17564
17565 for ac_func in strerror strerror_r strerror_s setenv
17566 do
17567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17568 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17570 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17571   echo $ECHO_N "(cached) $ECHO_C" >&6
17572 else
17573   cat >conftest.$ac_ext <<_ACEOF
17574 /* confdefs.h.  */
17575 _ACEOF
17576 cat confdefs.h >>conftest.$ac_ext
17577 cat >>conftest.$ac_ext <<_ACEOF
17578 /* end confdefs.h.  */
17579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17580    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17581 #define $ac_func innocuous_$ac_func
17582
17583 /* System header to define __stub macros and hopefully few prototypes,
17584     which can conflict with char $ac_func (); below.
17585     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17586     <limits.h> exists even on freestanding compilers.  */
17587
17588 #ifdef __STDC__
17589 # include <limits.h>
17590 #else
17591 # include <assert.h>
17592 #endif
17593
17594 #undef $ac_func
17595
17596 /* Override any GCC internal prototype to avoid an error.
17597    Use char because int might match the return type of a GCC
17598    builtin and then its argument prototype would still apply.  */
17599 #ifdef __cplusplus
17600 extern "C"
17601 #endif
17602 char $ac_func ();
17603 /* The GNU C library defines this for functions which it implements
17604     to always fail with ENOSYS.  Some functions are actually named
17605     something starting with __ and the normal name is an alias.  */
17606 #if defined __stub_$ac_func || defined __stub___$ac_func
17607 choke me
17608 #endif
17609
17610 int
17611 main ()
17612 {
17613 return $ac_func ();
17614   ;
17615   return 0;
17616 }
17617 _ACEOF
17618 rm -f conftest.$ac_objext conftest$ac_exeext
17619 if { (ac_try="$ac_link"
17620 case "(($ac_try" in
17621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17622   *) ac_try_echo=$ac_try;;
17623 esac
17624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17625   (eval "$ac_link") 2>conftest.er1
17626   ac_status=$?
17627   grep -v '^ *+' conftest.er1 >conftest.err
17628   rm -f conftest.er1
17629   cat conftest.err >&5
17630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631   (exit $ac_status); } &&
17632          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17633   { (case "(($ac_try" in
17634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17635   *) ac_try_echo=$ac_try;;
17636 esac
17637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17638   (eval "$ac_try") 2>&5
17639   ac_status=$?
17640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641   (exit $ac_status); }; } &&
17642          { ac_try='test -s conftest$ac_exeext'
17643   { (case "(($ac_try" in
17644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17645   *) ac_try_echo=$ac_try;;
17646 esac
17647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17648   (eval "$ac_try") 2>&5
17649   ac_status=$?
17650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651   (exit $ac_status); }; }; then
17652   eval "$as_ac_var=yes"
17653 else
17654   echo "$as_me: failed program was:" >&5
17655 sed 's/^/| /' conftest.$ac_ext >&5
17656
17657         eval "$as_ac_var=no"
17658 fi
17659
17660 rm -f core conftest.err conftest.$ac_objext \
17661       conftest$ac_exeext conftest.$ac_ext
17662 fi
17663 ac_res=`eval echo '${'$as_ac_var'}'`
17664                { echo "$as_me:$LINENO: result: $ac_res" >&5
17665 echo "${ECHO_T}$ac_res" >&6; }
17666 if test `eval echo '${'$as_ac_var'}'` = yes; then
17667   cat >>confdefs.h <<_ACEOF
17668 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17669 _ACEOF
17670
17671 fi
17672 done
17673
17674
17675
17676
17677
17678 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17679 do
17680 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17681 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17682 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17683 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17684   echo $ECHO_N "(cached) $ECHO_C" >&6
17685 else
17686   cat >conftest.$ac_ext <<_ACEOF
17687 /* confdefs.h.  */
17688 _ACEOF
17689 cat confdefs.h >>conftest.$ac_ext
17690 cat >>conftest.$ac_ext <<_ACEOF
17691 /* end confdefs.h.  */
17692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17693    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17694 #define $ac_func innocuous_$ac_func
17695
17696 /* System header to define __stub macros and hopefully few prototypes,
17697     which can conflict with char $ac_func (); below.
17698     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17699     <limits.h> exists even on freestanding compilers.  */
17700
17701 #ifdef __STDC__
17702 # include <limits.h>
17703 #else
17704 # include <assert.h>
17705 #endif
17706
17707 #undef $ac_func
17708
17709 /* Override any GCC internal prototype to avoid an error.
17710    Use char because int might match the return type of a GCC
17711    builtin and then its argument prototype would still apply.  */
17712 #ifdef __cplusplus
17713 extern "C"
17714 #endif
17715 char $ac_func ();
17716 /* The GNU C library defines this for functions which it implements
17717     to always fail with ENOSYS.  Some functions are actually named
17718     something starting with __ and the normal name is an alias.  */
17719 #if defined __stub_$ac_func || defined __stub___$ac_func
17720 choke me
17721 #endif
17722
17723 int
17724 main ()
17725 {
17726 return $ac_func ();
17727   ;
17728   return 0;
17729 }
17730 _ACEOF
17731 rm -f conftest.$ac_objext conftest$ac_exeext
17732 if { (ac_try="$ac_link"
17733 case "(($ac_try" in
17734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735   *) ac_try_echo=$ac_try;;
17736 esac
17737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738   (eval "$ac_link") 2>conftest.er1
17739   ac_status=$?
17740   grep -v '^ *+' conftest.er1 >conftest.err
17741   rm -f conftest.er1
17742   cat conftest.err >&5
17743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744   (exit $ac_status); } &&
17745          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17746   { (case "(($ac_try" in
17747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17748   *) ac_try_echo=$ac_try;;
17749 esac
17750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17751   (eval "$ac_try") 2>&5
17752   ac_status=$?
17753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754   (exit $ac_status); }; } &&
17755          { ac_try='test -s conftest$ac_exeext'
17756   { (case "(($ac_try" in
17757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17758   *) ac_try_echo=$ac_try;;
17759 esac
17760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17761   (eval "$ac_try") 2>&5
17762   ac_status=$?
17763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764   (exit $ac_status); }; }; then
17765   eval "$as_ac_var=yes"
17766 else
17767   echo "$as_me: failed program was:" >&5
17768 sed 's/^/| /' conftest.$ac_ext >&5
17769
17770         eval "$as_ac_var=no"
17771 fi
17772
17773 rm -f core conftest.err conftest.$ac_objext \
17774       conftest$ac_exeext conftest.$ac_ext
17775 fi
17776 ac_res=`eval echo '${'$as_ac_var'}'`
17777                { echo "$as_me:$LINENO: result: $ac_res" >&5
17778 echo "${ECHO_T}$ac_res" >&6; }
17779 if test `eval echo '${'$as_ac_var'}'` = yes; then
17780   cat >>confdefs.h <<_ACEOF
17781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17782 _ACEOF
17783
17784 fi
17785 done
17786
17787
17788
17789
17790
17791 for ac_func in setjmp longjmp sigsetjmp siglongjmp
17792 do
17793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17794 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17796 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17797   echo $ECHO_N "(cached) $ECHO_C" >&6
17798 else
17799   cat >conftest.$ac_ext <<_ACEOF
17800 /* confdefs.h.  */
17801 _ACEOF
17802 cat confdefs.h >>conftest.$ac_ext
17803 cat >>conftest.$ac_ext <<_ACEOF
17804 /* end confdefs.h.  */
17805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17806    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17807 #define $ac_func innocuous_$ac_func
17808
17809 /* System header to define __stub macros and hopefully few prototypes,
17810     which can conflict with char $ac_func (); below.
17811     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17812     <limits.h> exists even on freestanding compilers.  */
17813
17814 #ifdef __STDC__
17815 # include <limits.h>
17816 #else
17817 # include <assert.h>
17818 #endif
17819
17820 #undef $ac_func
17821
17822 /* Override any GCC internal prototype to avoid an error.
17823    Use char because int might match the return type of a GCC
17824    builtin and then its argument prototype would still apply.  */
17825 #ifdef __cplusplus
17826 extern "C"
17827 #endif
17828 char $ac_func ();
17829 /* The GNU C library defines this for functions which it implements
17830     to always fail with ENOSYS.  Some functions are actually named
17831     something starting with __ and the normal name is an alias.  */
17832 #if defined __stub_$ac_func || defined __stub___$ac_func
17833 choke me
17834 #endif
17835
17836 int
17837 main ()
17838 {
17839 return $ac_func ();
17840   ;
17841   return 0;
17842 }
17843 _ACEOF
17844 rm -f conftest.$ac_objext conftest$ac_exeext
17845 if { (ac_try="$ac_link"
17846 case "(($ac_try" in
17847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17848   *) ac_try_echo=$ac_try;;
17849 esac
17850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17851   (eval "$ac_link") 2>conftest.er1
17852   ac_status=$?
17853   grep -v '^ *+' conftest.er1 >conftest.err
17854   rm -f conftest.er1
17855   cat conftest.err >&5
17856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857   (exit $ac_status); } &&
17858          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17859   { (case "(($ac_try" in
17860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17861   *) ac_try_echo=$ac_try;;
17862 esac
17863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17864   (eval "$ac_try") 2>&5
17865   ac_status=$?
17866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867   (exit $ac_status); }; } &&
17868          { ac_try='test -s conftest$ac_exeext'
17869   { (case "(($ac_try" in
17870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17871   *) ac_try_echo=$ac_try;;
17872 esac
17873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17874   (eval "$ac_try") 2>&5
17875   ac_status=$?
17876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877   (exit $ac_status); }; }; then
17878   eval "$as_ac_var=yes"
17879 else
17880   echo "$as_me: failed program was:" >&5
17881 sed 's/^/| /' conftest.$ac_ext >&5
17882
17883         eval "$as_ac_var=no"
17884 fi
17885
17886 rm -f core conftest.err conftest.$ac_objext \
17887       conftest$ac_exeext conftest.$ac_ext
17888 fi
17889 ac_res=`eval echo '${'$as_ac_var'}'`
17890                { echo "$as_me:$LINENO: result: $ac_res" >&5
17891 echo "${ECHO_T}$ac_res" >&6; }
17892 if test `eval echo '${'$as_ac_var'}'` = yes; then
17893   cat >>confdefs.h <<_ACEOF
17894 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17895 _ACEOF
17896
17897 fi
17898 done
17899
17900 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17901 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17902 if test "${llvm_cv_c_printf_a+set}" = set; then
17903   echo $ECHO_N "(cached) $ECHO_C" >&6
17904 else
17905   ac_ext=c
17906 ac_cpp='$CPP $CPPFLAGS'
17907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17910
17911  if test "$cross_compiling" = yes; then
17912   llvmac_cv_c_printf_a=no
17913 else
17914   cat >conftest.$ac_ext <<_ACEOF
17915
17916   /* confdefs.h.  */
17917 _ACEOF
17918 cat confdefs.h >>conftest.$ac_ext
17919 cat >>conftest.$ac_ext <<_ACEOF
17920 /* end confdefs.h.  */
17921
17922 #include <stdio.h>
17923 #include <stdlib.h>
17924
17925 int
17926 main ()
17927 {
17928
17929 volatile double A, B;
17930 char Buffer[100];
17931 A = 1;
17932 A /= 10.0;
17933 sprintf(Buffer, "%a", A);
17934 B = atof(Buffer);
17935 if (A != B)
17936   return (1);
17937 if (A != 0x1.999999999999ap-4)
17938   return (1);
17939 return (0);
17940   ;
17941   return 0;
17942 }
17943 _ACEOF
17944 rm -f conftest$ac_exeext
17945 if { (ac_try="$ac_link"
17946 case "(($ac_try" in
17947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17948   *) ac_try_echo=$ac_try;;
17949 esac
17950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17951   (eval "$ac_link") 2>&5
17952   ac_status=$?
17953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17955   { (case "(($ac_try" in
17956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17957   *) ac_try_echo=$ac_try;;
17958 esac
17959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17960   (eval "$ac_try") 2>&5
17961   ac_status=$?
17962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963   (exit $ac_status); }; }; then
17964   llvm_cv_c_printf_a=yes
17965 else
17966   echo "$as_me: program exited with status $ac_status" >&5
17967 echo "$as_me: failed program was:" >&5
17968 sed 's/^/| /' conftest.$ac_ext >&5
17969
17970 ( exit $ac_status )
17971 llvmac_cv_c_printf_a=no
17972 fi
17973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17974 fi
17975
17976
17977  ac_ext=c
17978 ac_cpp='$CPP $CPPFLAGS'
17979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17982
17983 fi
17984 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17985 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17986  if test "$llvm_cv_c_printf_a" = "yes"; then
17987
17988 cat >>confdefs.h <<\_ACEOF
17989 #define HAVE_PRINTF_A 1
17990 _ACEOF
17991
17992  fi
17993
17994
17995 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17996 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17997 if test "${ac_cv_func_rand48+set}" = set; then
17998   echo $ECHO_N "(cached) $ECHO_C" >&6
17999 else
18000   ac_ext=cpp
18001 ac_cpp='$CXXCPP $CPPFLAGS'
18002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18005
18006    cat >conftest.$ac_ext <<_ACEOF
18007 /* confdefs.h.  */
18008 _ACEOF
18009 cat confdefs.h >>conftest.$ac_ext
18010 cat >>conftest.$ac_ext <<_ACEOF
18011 /* end confdefs.h.  */
18012 #include <stdlib.h>
18013 int
18014 main ()
18015 {
18016 srand48(0);lrand48();drand48();
18017   ;
18018   return 0;
18019 }
18020 _ACEOF
18021 rm -f conftest.$ac_objext
18022 if { (ac_try="$ac_compile"
18023 case "(($ac_try" in
18024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18025   *) ac_try_echo=$ac_try;;
18026 esac
18027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18028   (eval "$ac_compile") 2>conftest.er1
18029   ac_status=$?
18030   grep -v '^ *+' conftest.er1 >conftest.err
18031   rm -f conftest.er1
18032   cat conftest.err >&5
18033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034   (exit $ac_status); } &&
18035          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18036   { (case "(($ac_try" in
18037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18038   *) ac_try_echo=$ac_try;;
18039 esac
18040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18041   (eval "$ac_try") 2>&5
18042   ac_status=$?
18043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044   (exit $ac_status); }; } &&
18045          { ac_try='test -s conftest.$ac_objext'
18046   { (case "(($ac_try" in
18047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18048   *) ac_try_echo=$ac_try;;
18049 esac
18050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18051   (eval "$ac_try") 2>&5
18052   ac_status=$?
18053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054   (exit $ac_status); }; }; then
18055   ac_cv_func_rand48=yes
18056 else
18057   echo "$as_me: failed program was:" >&5
18058 sed 's/^/| /' conftest.$ac_ext >&5
18059
18060         ac_cv_func_rand48=no
18061 fi
18062
18063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18064   ac_ext=c
18065 ac_cpp='$CPP $CPPFLAGS'
18066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18069
18070 fi
18071 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18072 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18073
18074 if test "$ac_cv_func_rand48" = "yes" ; then
18075
18076 cat >>confdefs.h <<\_ACEOF
18077 #define HAVE_RAND48 1
18078 _ACEOF
18079
18080 fi
18081
18082
18083
18084 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18085 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18086 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18087   echo $ECHO_N "(cached) $ECHO_C" >&6
18088 else
18089   ac_ext=cpp
18090 ac_cpp='$CXXCPP $CPPFLAGS'
18091 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18092 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18093 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18094
18095    cat >conftest.$ac_ext <<_ACEOF
18096 /* confdefs.h.  */
18097 _ACEOF
18098 cat confdefs.h >>conftest.$ac_ext
18099 cat >>conftest.$ac_ext <<_ACEOF
18100 /* end confdefs.h.  */
18101 #include <math.h>
18102 int
18103 main ()
18104 {
18105 float f; isnan(f);
18106   ;
18107   return 0;
18108 }
18109 _ACEOF
18110 rm -f conftest.$ac_objext
18111 if { (ac_try="$ac_compile"
18112 case "(($ac_try" in
18113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18114   *) ac_try_echo=$ac_try;;
18115 esac
18116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18117   (eval "$ac_compile") 2>conftest.er1
18118   ac_status=$?
18119   grep -v '^ *+' conftest.er1 >conftest.err
18120   rm -f conftest.er1
18121   cat conftest.err >&5
18122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123   (exit $ac_status); } &&
18124          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18125   { (case "(($ac_try" in
18126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18127   *) ac_try_echo=$ac_try;;
18128 esac
18129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18130   (eval "$ac_try") 2>&5
18131   ac_status=$?
18132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133   (exit $ac_status); }; } &&
18134          { ac_try='test -s conftest.$ac_objext'
18135   { (case "(($ac_try" in
18136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18137   *) ac_try_echo=$ac_try;;
18138 esac
18139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18140   (eval "$ac_try") 2>&5
18141   ac_status=$?
18142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143   (exit $ac_status); }; }; then
18144   ac_cv_func_isnan_in_math_h=yes
18145 else
18146   echo "$as_me: failed program was:" >&5
18147 sed 's/^/| /' conftest.$ac_ext >&5
18148
18149         ac_cv_func_isnan_in_math_h=no
18150 fi
18151
18152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18153   ac_ext=c
18154 ac_cpp='$CPP $CPPFLAGS'
18155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18158
18159 fi
18160 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18161 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18162
18163
18164 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18165
18166 cat >>confdefs.h <<\_ACEOF
18167 #define HAVE_ISNAN_IN_MATH_H 1
18168 _ACEOF
18169
18170 fi
18171
18172 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18173 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18174 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18175   echo $ECHO_N "(cached) $ECHO_C" >&6
18176 else
18177   ac_ext=cpp
18178 ac_cpp='$CXXCPP $CPPFLAGS'
18179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18182
18183    cat >conftest.$ac_ext <<_ACEOF
18184 /* confdefs.h.  */
18185 _ACEOF
18186 cat confdefs.h >>conftest.$ac_ext
18187 cat >>conftest.$ac_ext <<_ACEOF
18188 /* end confdefs.h.  */
18189 #include <cmath>
18190 int
18191 main ()
18192 {
18193 float f; isnan(f);
18194   ;
18195   return 0;
18196 }
18197 _ACEOF
18198 rm -f conftest.$ac_objext
18199 if { (ac_try="$ac_compile"
18200 case "(($ac_try" in
18201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18202   *) ac_try_echo=$ac_try;;
18203 esac
18204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18205   (eval "$ac_compile") 2>conftest.er1
18206   ac_status=$?
18207   grep -v '^ *+' conftest.er1 >conftest.err
18208   rm -f conftest.er1
18209   cat conftest.err >&5
18210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211   (exit $ac_status); } &&
18212          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18213   { (case "(($ac_try" in
18214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18215   *) ac_try_echo=$ac_try;;
18216 esac
18217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18218   (eval "$ac_try") 2>&5
18219   ac_status=$?
18220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221   (exit $ac_status); }; } &&
18222          { ac_try='test -s conftest.$ac_objext'
18223   { (case "(($ac_try" in
18224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18225   *) ac_try_echo=$ac_try;;
18226 esac
18227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18228   (eval "$ac_try") 2>&5
18229   ac_status=$?
18230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231   (exit $ac_status); }; }; then
18232   ac_cv_func_isnan_in_cmath=yes
18233 else
18234   echo "$as_me: failed program was:" >&5
18235 sed 's/^/| /' conftest.$ac_ext >&5
18236
18237         ac_cv_func_isnan_in_cmath=no
18238 fi
18239
18240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18241   ac_ext=c
18242 ac_cpp='$CPP $CPPFLAGS'
18243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18246
18247 fi
18248 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18249 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
18250
18251 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18252
18253 cat >>confdefs.h <<\_ACEOF
18254 #define HAVE_ISNAN_IN_CMATH 1
18255 _ACEOF
18256
18257 fi
18258
18259 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18260 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18261 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18262   echo $ECHO_N "(cached) $ECHO_C" >&6
18263 else
18264   ac_ext=cpp
18265 ac_cpp='$CXXCPP $CPPFLAGS'
18266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18269
18270    cat >conftest.$ac_ext <<_ACEOF
18271 /* confdefs.h.  */
18272 _ACEOF
18273 cat confdefs.h >>conftest.$ac_ext
18274 cat >>conftest.$ac_ext <<_ACEOF
18275 /* end confdefs.h.  */
18276 #include <cmath>
18277 int
18278 main ()
18279 {
18280 float f; std::isnan(f);
18281   ;
18282   return 0;
18283 }
18284 _ACEOF
18285 rm -f conftest.$ac_objext
18286 if { (ac_try="$ac_compile"
18287 case "(($ac_try" in
18288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18289   *) ac_try_echo=$ac_try;;
18290 esac
18291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18292   (eval "$ac_compile") 2>conftest.er1
18293   ac_status=$?
18294   grep -v '^ *+' conftest.er1 >conftest.err
18295   rm -f conftest.er1
18296   cat conftest.err >&5
18297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298   (exit $ac_status); } &&
18299          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18300   { (case "(($ac_try" in
18301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18302   *) ac_try_echo=$ac_try;;
18303 esac
18304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18305   (eval "$ac_try") 2>&5
18306   ac_status=$?
18307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308   (exit $ac_status); }; } &&
18309          { ac_try='test -s conftest.$ac_objext'
18310   { (case "(($ac_try" in
18311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18312   *) ac_try_echo=$ac_try;;
18313 esac
18314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18315   (eval "$ac_try") 2>&5
18316   ac_status=$?
18317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318   (exit $ac_status); }; }; then
18319   ac_cv_func_std_isnan_in_cmath=yes
18320 else
18321   echo "$as_me: failed program was:" >&5
18322 sed 's/^/| /' conftest.$ac_ext >&5
18323
18324         ac_cv_func_std_isnan_in_cmath=no
18325 fi
18326
18327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18328   ac_ext=c
18329 ac_cpp='$CPP $CPPFLAGS'
18330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18333
18334 fi
18335 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18336 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
18337
18338 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
18339
18340 cat >>confdefs.h <<\_ACEOF
18341 #define HAVE_STD_ISNAN_IN_CMATH 1
18342 _ACEOF
18343
18344 fi
18345
18346
18347 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18348 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18349 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18350   echo $ECHO_N "(cached) $ECHO_C" >&6
18351 else
18352   ac_ext=cpp
18353 ac_cpp='$CXXCPP $CPPFLAGS'
18354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18357
18358    cat >conftest.$ac_ext <<_ACEOF
18359 /* confdefs.h.  */
18360 _ACEOF
18361 cat confdefs.h >>conftest.$ac_ext
18362 cat >>conftest.$ac_ext <<_ACEOF
18363 /* end confdefs.h.  */
18364 #include <math.h>
18365 int
18366 main ()
18367 {
18368 float f; isinf(f);
18369   ;
18370   return 0;
18371 }
18372 _ACEOF
18373 rm -f conftest.$ac_objext
18374 if { (ac_try="$ac_compile"
18375 case "(($ac_try" in
18376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18377   *) ac_try_echo=$ac_try;;
18378 esac
18379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18380   (eval "$ac_compile") 2>conftest.er1
18381   ac_status=$?
18382   grep -v '^ *+' conftest.er1 >conftest.err
18383   rm -f conftest.er1
18384   cat conftest.err >&5
18385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386   (exit $ac_status); } &&
18387          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18388   { (case "(($ac_try" in
18389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18390   *) ac_try_echo=$ac_try;;
18391 esac
18392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18393   (eval "$ac_try") 2>&5
18394   ac_status=$?
18395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396   (exit $ac_status); }; } &&
18397          { ac_try='test -s conftest.$ac_objext'
18398   { (case "(($ac_try" in
18399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18400   *) ac_try_echo=$ac_try;;
18401 esac
18402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18403   (eval "$ac_try") 2>&5
18404   ac_status=$?
18405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406   (exit $ac_status); }; }; then
18407   ac_cv_func_isinf_in_math_h=yes
18408 else
18409   echo "$as_me: failed program was:" >&5
18410 sed 's/^/| /' conftest.$ac_ext >&5
18411
18412         ac_cv_func_isinf_in_math_h=no
18413 fi
18414
18415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18416   ac_ext=c
18417 ac_cpp='$CPP $CPPFLAGS'
18418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18421
18422 fi
18423 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18424 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
18425
18426 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
18427
18428 cat >>confdefs.h <<\_ACEOF
18429 #define HAVE_ISINF_IN_MATH_H 1
18430 _ACEOF
18431
18432 fi
18433
18434 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18435 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18436 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18437   echo $ECHO_N "(cached) $ECHO_C" >&6
18438 else
18439   ac_ext=cpp
18440 ac_cpp='$CXXCPP $CPPFLAGS'
18441 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18442 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18443 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18444
18445    cat >conftest.$ac_ext <<_ACEOF
18446 /* confdefs.h.  */
18447 _ACEOF
18448 cat confdefs.h >>conftest.$ac_ext
18449 cat >>conftest.$ac_ext <<_ACEOF
18450 /* end confdefs.h.  */
18451 #include <cmath>
18452 int
18453 main ()
18454 {
18455 float f; isinf(f);
18456   ;
18457   return 0;
18458 }
18459 _ACEOF
18460 rm -f conftest.$ac_objext
18461 if { (ac_try="$ac_compile"
18462 case "(($ac_try" in
18463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18464   *) ac_try_echo=$ac_try;;
18465 esac
18466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18467   (eval "$ac_compile") 2>conftest.er1
18468   ac_status=$?
18469   grep -v '^ *+' conftest.er1 >conftest.err
18470   rm -f conftest.er1
18471   cat conftest.err >&5
18472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473   (exit $ac_status); } &&
18474          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18475   { (case "(($ac_try" in
18476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18477   *) ac_try_echo=$ac_try;;
18478 esac
18479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18480   (eval "$ac_try") 2>&5
18481   ac_status=$?
18482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483   (exit $ac_status); }; } &&
18484          { ac_try='test -s conftest.$ac_objext'
18485   { (case "(($ac_try" in
18486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18487   *) ac_try_echo=$ac_try;;
18488 esac
18489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18490   (eval "$ac_try") 2>&5
18491   ac_status=$?
18492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493   (exit $ac_status); }; }; then
18494   ac_cv_func_isinf_in_cmath=yes
18495 else
18496   echo "$as_me: failed program was:" >&5
18497 sed 's/^/| /' conftest.$ac_ext >&5
18498
18499         ac_cv_func_isinf_in_cmath=no
18500 fi
18501
18502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18503   ac_ext=c
18504 ac_cpp='$CPP $CPPFLAGS'
18505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18508
18509 fi
18510 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18511 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18512
18513 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18514
18515 cat >>confdefs.h <<\_ACEOF
18516 #define HAVE_ISINF_IN_CMATH 1
18517 _ACEOF
18518
18519 fi
18520
18521 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18522 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18523 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18524   echo $ECHO_N "(cached) $ECHO_C" >&6
18525 else
18526   ac_ext=cpp
18527 ac_cpp='$CXXCPP $CPPFLAGS'
18528 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18529 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18530 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18531
18532    cat >conftest.$ac_ext <<_ACEOF
18533 /* confdefs.h.  */
18534 _ACEOF
18535 cat confdefs.h >>conftest.$ac_ext
18536 cat >>conftest.$ac_ext <<_ACEOF
18537 /* end confdefs.h.  */
18538 #include <cmath>
18539 int
18540 main ()
18541 {
18542 float f; std::isinf(f)}
18543   ;
18544   return 0;
18545 }
18546 _ACEOF
18547 rm -f conftest.$ac_objext
18548 if { (ac_try="$ac_compile"
18549 case "(($ac_try" in
18550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18551   *) ac_try_echo=$ac_try;;
18552 esac
18553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18554   (eval "$ac_compile") 2>conftest.er1
18555   ac_status=$?
18556   grep -v '^ *+' conftest.er1 >conftest.err
18557   rm -f conftest.er1
18558   cat conftest.err >&5
18559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560   (exit $ac_status); } &&
18561          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18562   { (case "(($ac_try" in
18563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18564   *) ac_try_echo=$ac_try;;
18565 esac
18566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18567   (eval "$ac_try") 2>&5
18568   ac_status=$?
18569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570   (exit $ac_status); }; } &&
18571          { ac_try='test -s conftest.$ac_objext'
18572   { (case "(($ac_try" in
18573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18574   *) ac_try_echo=$ac_try;;
18575 esac
18576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18577   (eval "$ac_try") 2>&5
18578   ac_status=$?
18579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580   (exit $ac_status); }; }; then
18581   ac_cv_func_std_isinf_in_cmath=yes
18582 else
18583   echo "$as_me: failed program was:" >&5
18584 sed 's/^/| /' conftest.$ac_ext >&5
18585
18586         ac_cv_func_std_isinf_in_cmath=no
18587 fi
18588
18589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18590   ac_ext=c
18591 ac_cpp='$CPP $CPPFLAGS'
18592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18595
18596 fi
18597 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18598 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
18599
18600 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18601
18602 cat >>confdefs.h <<\_ACEOF
18603 #define HAVE_STD_ISINF_IN_CMATH 1
18604 _ACEOF
18605
18606 fi
18607
18608 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18609 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18610 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18611   echo $ECHO_N "(cached) $ECHO_C" >&6
18612 else
18613   ac_ext=cpp
18614 ac_cpp='$CXXCPP $CPPFLAGS'
18615 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18616 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18617 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18618
18619    cat >conftest.$ac_ext <<_ACEOF
18620 /* confdefs.h.  */
18621 _ACEOF
18622 cat confdefs.h >>conftest.$ac_ext
18623 cat >>conftest.$ac_ext <<_ACEOF
18624 /* end confdefs.h.  */
18625 #include <ieeefp.h>
18626 int
18627 main ()
18628 {
18629 float f; finite(f);
18630   ;
18631   return 0;
18632 }
18633 _ACEOF
18634 rm -f conftest.$ac_objext
18635 if { (ac_try="$ac_compile"
18636 case "(($ac_try" in
18637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18638   *) ac_try_echo=$ac_try;;
18639 esac
18640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18641   (eval "$ac_compile") 2>conftest.er1
18642   ac_status=$?
18643   grep -v '^ *+' conftest.er1 >conftest.err
18644   rm -f conftest.er1
18645   cat conftest.err >&5
18646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647   (exit $ac_status); } &&
18648          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18649   { (case "(($ac_try" in
18650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18651   *) ac_try_echo=$ac_try;;
18652 esac
18653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18654   (eval "$ac_try") 2>&5
18655   ac_status=$?
18656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657   (exit $ac_status); }; } &&
18658          { ac_try='test -s conftest.$ac_objext'
18659   { (case "(($ac_try" in
18660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18661   *) ac_try_echo=$ac_try;;
18662 esac
18663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18664   (eval "$ac_try") 2>&5
18665   ac_status=$?
18666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667   (exit $ac_status); }; }; then
18668   ac_cv_func_finite_in_ieeefp_h=yes
18669 else
18670   echo "$as_me: failed program was:" >&5
18671 sed 's/^/| /' conftest.$ac_ext >&5
18672
18673         ac_cv_func_finite_in_ieeefp_h=no
18674 fi
18675
18676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18677   ac_ext=c
18678 ac_cpp='$CPP $CPPFLAGS'
18679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18682
18683 fi
18684 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18685 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
18686
18687 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18688
18689 cat >>confdefs.h <<\_ACEOF
18690 #define HAVE_FINITE_IN_IEEEFP_H 1
18691 _ACEOF
18692
18693 fi
18694
18695
18696
18697 if test "$llvm_cv_platform_type" = "Unix" ; then
18698
18699
18700 for ac_header in stdlib.h unistd.h
18701 do
18702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18704   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18707   echo $ECHO_N "(cached) $ECHO_C" >&6
18708 fi
18709 ac_res=`eval echo '${'$as_ac_Header'}'`
18710                { echo "$as_me:$LINENO: result: $ac_res" >&5
18711 echo "${ECHO_T}$ac_res" >&6; }
18712 else
18713   # Is the header compilable?
18714 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18715 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18716 cat >conftest.$ac_ext <<_ACEOF
18717 /* confdefs.h.  */
18718 _ACEOF
18719 cat confdefs.h >>conftest.$ac_ext
18720 cat >>conftest.$ac_ext <<_ACEOF
18721 /* end confdefs.h.  */
18722 $ac_includes_default
18723 #include <$ac_header>
18724 _ACEOF
18725 rm -f conftest.$ac_objext
18726 if { (ac_try="$ac_compile"
18727 case "(($ac_try" in
18728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18729   *) ac_try_echo=$ac_try;;
18730 esac
18731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18732   (eval "$ac_compile") 2>conftest.er1
18733   ac_status=$?
18734   grep -v '^ *+' conftest.er1 >conftest.err
18735   rm -f conftest.er1
18736   cat conftest.err >&5
18737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738   (exit $ac_status); } &&
18739          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18740   { (case "(($ac_try" in
18741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18742   *) ac_try_echo=$ac_try;;
18743 esac
18744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18745   (eval "$ac_try") 2>&5
18746   ac_status=$?
18747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748   (exit $ac_status); }; } &&
18749          { ac_try='test -s conftest.$ac_objext'
18750   { (case "(($ac_try" in
18751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18752   *) ac_try_echo=$ac_try;;
18753 esac
18754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18755   (eval "$ac_try") 2>&5
18756   ac_status=$?
18757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758   (exit $ac_status); }; }; then
18759   ac_header_compiler=yes
18760 else
18761   echo "$as_me: failed program was:" >&5
18762 sed 's/^/| /' conftest.$ac_ext >&5
18763
18764         ac_header_compiler=no
18765 fi
18766
18767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18768 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18769 echo "${ECHO_T}$ac_header_compiler" >&6; }
18770
18771 # Is the header present?
18772 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18773 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18774 cat >conftest.$ac_ext <<_ACEOF
18775 /* confdefs.h.  */
18776 _ACEOF
18777 cat confdefs.h >>conftest.$ac_ext
18778 cat >>conftest.$ac_ext <<_ACEOF
18779 /* end confdefs.h.  */
18780 #include <$ac_header>
18781 _ACEOF
18782 if { (ac_try="$ac_cpp conftest.$ac_ext"
18783 case "(($ac_try" in
18784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18785   *) ac_try_echo=$ac_try;;
18786 esac
18787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18788   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18789   ac_status=$?
18790   grep -v '^ *+' conftest.er1 >conftest.err
18791   rm -f conftest.er1
18792   cat conftest.err >&5
18793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794   (exit $ac_status); } >/dev/null; then
18795   if test -s conftest.err; then
18796     ac_cpp_err=$ac_c_preproc_warn_flag
18797     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18798   else
18799     ac_cpp_err=
18800   fi
18801 else
18802   ac_cpp_err=yes
18803 fi
18804 if test -z "$ac_cpp_err"; then
18805   ac_header_preproc=yes
18806 else
18807   echo "$as_me: failed program was:" >&5
18808 sed 's/^/| /' conftest.$ac_ext >&5
18809
18810   ac_header_preproc=no
18811 fi
18812
18813 rm -f conftest.err conftest.$ac_ext
18814 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18815 echo "${ECHO_T}$ac_header_preproc" >&6; }
18816
18817 # So?  What about this header?
18818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18819   yes:no: )
18820     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18822     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18824     ac_header_preproc=yes
18825     ;;
18826   no:yes:* )
18827     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18829     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18830 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18831     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18833     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18834 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18835     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18837     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18839     ( cat <<\_ASBOX
18840 ## ----------------------------------- ##
18841 ## Report this to llvmbugs@cs.uiuc.edu ##
18842 ## ----------------------------------- ##
18843 _ASBOX
18844      ) | sed "s/^/$as_me: WARNING:     /" >&2
18845     ;;
18846 esac
18847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18850   echo $ECHO_N "(cached) $ECHO_C" >&6
18851 else
18852   eval "$as_ac_Header=\$ac_header_preproc"
18853 fi
18854 ac_res=`eval echo '${'$as_ac_Header'}'`
18855                { echo "$as_me:$LINENO: result: $ac_res" >&5
18856 echo "${ECHO_T}$ac_res" >&6; }
18857
18858 fi
18859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18860   cat >>confdefs.h <<_ACEOF
18861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18862 _ACEOF
18863
18864 fi
18865
18866 done
18867
18868
18869 for ac_func in getpagesize
18870 do
18871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18872 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18874 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18875   echo $ECHO_N "(cached) $ECHO_C" >&6
18876 else
18877   cat >conftest.$ac_ext <<_ACEOF
18878 /* confdefs.h.  */
18879 _ACEOF
18880 cat confdefs.h >>conftest.$ac_ext
18881 cat >>conftest.$ac_ext <<_ACEOF
18882 /* end confdefs.h.  */
18883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18884    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18885 #define $ac_func innocuous_$ac_func
18886
18887 /* System header to define __stub macros and hopefully few prototypes,
18888     which can conflict with char $ac_func (); below.
18889     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18890     <limits.h> exists even on freestanding compilers.  */
18891
18892 #ifdef __STDC__
18893 # include <limits.h>
18894 #else
18895 # include <assert.h>
18896 #endif
18897
18898 #undef $ac_func
18899
18900 /* Override any GCC internal prototype to avoid an error.
18901    Use char because int might match the return type of a GCC
18902    builtin and then its argument prototype would still apply.  */
18903 #ifdef __cplusplus
18904 extern "C"
18905 #endif
18906 char $ac_func ();
18907 /* The GNU C library defines this for functions which it implements
18908     to always fail with ENOSYS.  Some functions are actually named
18909     something starting with __ and the normal name is an alias.  */
18910 #if defined __stub_$ac_func || defined __stub___$ac_func
18911 choke me
18912 #endif
18913
18914 int
18915 main ()
18916 {
18917 return $ac_func ();
18918   ;
18919   return 0;
18920 }
18921 _ACEOF
18922 rm -f conftest.$ac_objext conftest$ac_exeext
18923 if { (ac_try="$ac_link"
18924 case "(($ac_try" in
18925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18926   *) ac_try_echo=$ac_try;;
18927 esac
18928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18929   (eval "$ac_link") 2>conftest.er1
18930   ac_status=$?
18931   grep -v '^ *+' conftest.er1 >conftest.err
18932   rm -f conftest.er1
18933   cat conftest.err >&5
18934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935   (exit $ac_status); } &&
18936          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18937   { (case "(($ac_try" in
18938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18939   *) ac_try_echo=$ac_try;;
18940 esac
18941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18942   (eval "$ac_try") 2>&5
18943   ac_status=$?
18944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945   (exit $ac_status); }; } &&
18946          { ac_try='test -s conftest$ac_exeext'
18947   { (case "(($ac_try" in
18948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18949   *) ac_try_echo=$ac_try;;
18950 esac
18951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18952   (eval "$ac_try") 2>&5
18953   ac_status=$?
18954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955   (exit $ac_status); }; }; then
18956   eval "$as_ac_var=yes"
18957 else
18958   echo "$as_me: failed program was:" >&5
18959 sed 's/^/| /' conftest.$ac_ext >&5
18960
18961         eval "$as_ac_var=no"
18962 fi
18963
18964 rm -f core conftest.err conftest.$ac_objext \
18965       conftest$ac_exeext conftest.$ac_ext
18966 fi
18967 ac_res=`eval echo '${'$as_ac_var'}'`
18968                { echo "$as_me:$LINENO: result: $ac_res" >&5
18969 echo "${ECHO_T}$ac_res" >&6; }
18970 if test `eval echo '${'$as_ac_var'}'` = yes; then
18971   cat >>confdefs.h <<_ACEOF
18972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18973 _ACEOF
18974
18975 fi
18976 done
18977
18978 { echo "$as_me:$LINENO: checking for working mmap" >&5
18979 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
18980 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
18981   echo $ECHO_N "(cached) $ECHO_C" >&6
18982 else
18983   if test "$cross_compiling" = yes; then
18984   ac_cv_func_mmap_fixed_mapped=no
18985 else
18986   cat >conftest.$ac_ext <<_ACEOF
18987 /* confdefs.h.  */
18988 _ACEOF
18989 cat confdefs.h >>conftest.$ac_ext
18990 cat >>conftest.$ac_ext <<_ACEOF
18991 /* end confdefs.h.  */
18992 $ac_includes_default
18993 /* malloc might have been renamed as rpl_malloc. */
18994 #undef malloc
18995
18996 /* Thanks to Mike Haertel and Jim Avera for this test.
18997    Here is a matrix of mmap possibilities:
18998         mmap private not fixed
18999         mmap private fixed at somewhere currently unmapped
19000         mmap private fixed at somewhere already mapped
19001         mmap shared not fixed
19002         mmap shared fixed at somewhere currently unmapped
19003         mmap shared fixed at somewhere already mapped
19004    For private mappings, we should verify that changes cannot be read()
19005    back from the file, nor mmap's back from the file at a different
19006    address.  (There have been systems where private was not correctly
19007    implemented like the infamous i386 svr4.0, and systems where the
19008    VM page cache was not coherent with the file system buffer cache
19009    like early versions of FreeBSD and possibly contemporary NetBSD.)
19010    For shared mappings, we should conversely verify that changes get
19011    propagated back to all the places they're supposed to be.
19012
19013    Grep wants private fixed already mapped.
19014    The main things grep needs to know about mmap are:
19015    * does it exist and is it safe to write into the mmap'd area
19016    * how to use it (BSD variants)  */
19017
19018 #include <fcntl.h>
19019 #include <sys/mman.h>
19020
19021 #if !STDC_HEADERS && !HAVE_STDLIB_H
19022 char *malloc ();
19023 #endif
19024
19025 /* This mess was copied from the GNU getpagesize.h.  */
19026 #if !HAVE_GETPAGESIZE
19027 /* Assume that all systems that can run configure have sys/param.h.  */
19028 # if !HAVE_SYS_PARAM_H
19029 #  define HAVE_SYS_PARAM_H 1
19030 # endif
19031
19032 # ifdef _SC_PAGESIZE
19033 #  define getpagesize() sysconf(_SC_PAGESIZE)
19034 # else /* no _SC_PAGESIZE */
19035 #  if HAVE_SYS_PARAM_H
19036 #   include <sys/param.h>
19037 #   ifdef EXEC_PAGESIZE
19038 #    define getpagesize() EXEC_PAGESIZE
19039 #   else /* no EXEC_PAGESIZE */
19040 #    ifdef NBPG
19041 #     define getpagesize() NBPG * CLSIZE
19042 #     ifndef CLSIZE
19043 #      define CLSIZE 1
19044 #     endif /* no CLSIZE */
19045 #    else /* no NBPG */
19046 #     ifdef NBPC
19047 #      define getpagesize() NBPC
19048 #     else /* no NBPC */
19049 #      ifdef PAGESIZE
19050 #       define getpagesize() PAGESIZE
19051 #      endif /* PAGESIZE */
19052 #     endif /* no NBPC */
19053 #    endif /* no NBPG */
19054 #   endif /* no EXEC_PAGESIZE */
19055 #  else /* no HAVE_SYS_PARAM_H */
19056 #   define getpagesize() 8192   /* punt totally */
19057 #  endif /* no HAVE_SYS_PARAM_H */
19058 # endif /* no _SC_PAGESIZE */
19059
19060 #endif /* no HAVE_GETPAGESIZE */
19061
19062 int
19063 main ()
19064 {
19065   char *data, *data2, *data3;
19066   int i, pagesize;
19067   int fd;
19068
19069   pagesize = getpagesize ();
19070
19071   /* First, make a file with some known garbage in it. */
19072   data = (char *) malloc (pagesize);
19073   if (!data)
19074     return 1;
19075   for (i = 0; i < pagesize; ++i)
19076     *(data + i) = rand ();
19077   umask (0);
19078   fd = creat ("conftest.mmap", 0600);
19079   if (fd < 0)
19080     return 1;
19081   if (write (fd, data, pagesize) != pagesize)
19082     return 1;
19083   close (fd);
19084
19085   /* Next, try to mmap the file at a fixed address which already has
19086      something else allocated at it.  If we can, also make sure that
19087      we see the same garbage.  */
19088   fd = open ("conftest.mmap", O_RDWR);
19089   if (fd < 0)
19090     return 1;
19091   data2 = (char *) malloc (2 * pagesize);
19092   if (!data2)
19093     return 1;
19094   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19095   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19096                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
19097     return 1;
19098   for (i = 0; i < pagesize; ++i)
19099     if (*(data + i) != *(data2 + i))
19100       return 1;
19101
19102   /* Finally, make sure that changes to the mapped area do not
19103      percolate back to the file as seen by read().  (This is a bug on
19104      some variants of i386 svr4.0.)  */
19105   for (i = 0; i < pagesize; ++i)
19106     *(data2 + i) = *(data2 + i) + 1;
19107   data3 = (char *) malloc (pagesize);
19108   if (!data3)
19109     return 1;
19110   if (read (fd, data3, pagesize) != pagesize)
19111     return 1;
19112   for (i = 0; i < pagesize; ++i)
19113     if (*(data + i) != *(data3 + i))
19114       return 1;
19115   close (fd);
19116   return 0;
19117 }
19118 _ACEOF
19119 rm -f conftest$ac_exeext
19120 if { (ac_try="$ac_link"
19121 case "(($ac_try" in
19122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19123   *) ac_try_echo=$ac_try;;
19124 esac
19125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19126   (eval "$ac_link") 2>&5
19127   ac_status=$?
19128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19130   { (case "(($ac_try" in
19131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19132   *) ac_try_echo=$ac_try;;
19133 esac
19134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19135   (eval "$ac_try") 2>&5
19136   ac_status=$?
19137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138   (exit $ac_status); }; }; then
19139   ac_cv_func_mmap_fixed_mapped=yes
19140 else
19141   echo "$as_me: program exited with status $ac_status" >&5
19142 echo "$as_me: failed program was:" >&5
19143 sed 's/^/| /' conftest.$ac_ext >&5
19144
19145 ( exit $ac_status )
19146 ac_cv_func_mmap_fixed_mapped=no
19147 fi
19148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19149 fi
19150
19151
19152 fi
19153 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19154 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19155 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19156
19157 cat >>confdefs.h <<\_ACEOF
19158 #define HAVE_MMAP 1
19159 _ACEOF
19160
19161 fi
19162 rm -f conftest.mmap
19163
19164   { echo "$as_me:$LINENO: checking for mmap of files" >&5
19165 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19166 if test "${ac_cv_func_mmap_file+set}" = set; then
19167   echo $ECHO_N "(cached) $ECHO_C" >&6
19168 else
19169    ac_ext=c
19170 ac_cpp='$CPP $CPPFLAGS'
19171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19174
19175   if test "$cross_compiling" = yes; then
19176   ac_cv_func_mmap_file=no
19177 else
19178   cat >conftest.$ac_ext <<_ACEOF
19179
19180     /* confdefs.h.  */
19181 _ACEOF
19182 cat confdefs.h >>conftest.$ac_ext
19183 cat >>conftest.$ac_ext <<_ACEOF
19184 /* end confdefs.h.  */
19185
19186 #include <sys/types.h>
19187 #include <sys/mman.h>
19188 #include <fcntl.h>
19189
19190 int
19191 main ()
19192 {
19193
19194   int fd;
19195   fd = creat ("foo",0777);
19196   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19197   unlink ("foo");
19198   return (fd != (int) MAP_FAILED);
19199   ;
19200   return 0;
19201 }
19202 _ACEOF
19203 rm -f conftest$ac_exeext
19204 if { (ac_try="$ac_link"
19205 case "(($ac_try" in
19206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19207   *) ac_try_echo=$ac_try;;
19208 esac
19209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19210   (eval "$ac_link") 2>&5
19211   ac_status=$?
19212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19214   { (case "(($ac_try" in
19215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19216   *) ac_try_echo=$ac_try;;
19217 esac
19218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19219   (eval "$ac_try") 2>&5
19220   ac_status=$?
19221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222   (exit $ac_status); }; }; then
19223   ac_cv_func_mmap_file=yes
19224 else
19225   echo "$as_me: program exited with status $ac_status" >&5
19226 echo "$as_me: failed program was:" >&5
19227 sed 's/^/| /' conftest.$ac_ext >&5
19228
19229 ( exit $ac_status )
19230 ac_cv_func_mmap_file=no
19231 fi
19232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19233 fi
19234
19235
19236   ac_ext=c
19237 ac_cpp='$CPP $CPPFLAGS'
19238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19241
19242
19243 fi
19244 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19245 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
19246 if test "$ac_cv_func_mmap_file" = yes; then
19247
19248 cat >>confdefs.h <<\_ACEOF
19249 #define HAVE_MMAP_FILE
19250 _ACEOF
19251
19252    MMAP_FILE=yes
19253
19254 fi
19255
19256   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19257 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19258 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19259   echo $ECHO_N "(cached) $ECHO_C" >&6
19260 else
19261   if test "$llvm_cv_os_type" = "Interix" ; then
19262    ac_cv_need_dev_zero_for_mmap=yes
19263  else
19264    ac_cv_need_dev_zero_for_mmap=no
19265  fi
19266
19267 fi
19268 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19269 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
19270 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19271
19272 cat >>confdefs.h <<\_ACEOF
19273 #define NEED_DEV_ZERO_FOR_MMAP 1
19274 _ACEOF
19275
19276 fi
19277
19278   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19279   then
19280     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19281 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
19282   fi
19283   if test "$ac_cv_func_mmap_file" = "no"
19284   then
19285     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19286 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
19287   fi
19288 fi
19289
19290 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19291 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19292 cat >conftest.$ac_ext <<_ACEOF
19293 /* confdefs.h.  */
19294 _ACEOF
19295 cat confdefs.h >>conftest.$ac_ext
19296 cat >>conftest.$ac_ext <<_ACEOF
19297 /* end confdefs.h.  */
19298 int main() {
19299         volatile unsigned long val = 1;
19300         __sync_synchronize();
19301         __sync_val_compare_and_swap(&val, 1, 0);
19302         __sync_add_and_fetch(&val, 1);
19303         __sync_sub_and_fetch(&val, 1);
19304         return 0;
19305       }
19306
19307 _ACEOF
19308 rm -f conftest.$ac_objext conftest$ac_exeext
19309 if { (ac_try="$ac_link"
19310 case "(($ac_try" in
19311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19312   *) ac_try_echo=$ac_try;;
19313 esac
19314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19315   (eval "$ac_link") 2>conftest.er1
19316   ac_status=$?
19317   grep -v '^ *+' conftest.er1 >conftest.err
19318   rm -f conftest.er1
19319   cat conftest.err >&5
19320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321   (exit $ac_status); } &&
19322          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19323   { (case "(($ac_try" in
19324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19325   *) ac_try_echo=$ac_try;;
19326 esac
19327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19328   (eval "$ac_try") 2>&5
19329   ac_status=$?
19330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331   (exit $ac_status); }; } &&
19332          { ac_try='test -s conftest$ac_exeext'
19333   { (case "(($ac_try" in
19334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19335   *) ac_try_echo=$ac_try;;
19336 esac
19337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19338   (eval "$ac_try") 2>&5
19339   ac_status=$?
19340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341   (exit $ac_status); }; }; then
19342   { echo "$as_me:$LINENO: result: yes" >&5
19343 echo "${ECHO_T}yes" >&6; }
19344
19345 cat >>confdefs.h <<\_ACEOF
19346 #define LLVM_MULTITHREADED 1
19347 _ACEOF
19348
19349 else
19350   echo "$as_me: failed program was:" >&5
19351 sed 's/^/| /' conftest.$ac_ext >&5
19352
19353         { echo "$as_me:$LINENO: result: no" >&5
19354 echo "${ECHO_T}no" >&6; }
19355
19356 cat >>confdefs.h <<\_ACEOF
19357 #define LLVM_MULTITHREADED 0
19358 _ACEOF
19359
19360   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19361 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
19362 fi
19363
19364 rm -f core conftest.err conftest.$ac_objext \
19365       conftest$ac_exeext conftest.$ac_ext
19366
19367
19368
19369 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
19370   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19371 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19372 if test "${llvm_cv_linux_mixed+set}" = set; then
19373   echo $ECHO_N "(cached) $ECHO_C" >&6
19374 else
19375    ac_ext=c
19376 ac_cpp='$CPP $CPPFLAGS'
19377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19380
19381   cat >conftest.$ac_ext <<_ACEOF
19382 /* confdefs.h.  */
19383 _ACEOF
19384 cat confdefs.h >>conftest.$ac_ext
19385 cat >>conftest.$ac_ext <<_ACEOF
19386 /* end confdefs.h.  */
19387 #ifndef __x86_64__
19388        error: Not x86-64 even if uname says so!
19389       #endif
19390
19391 int
19392 main ()
19393 {
19394
19395   ;
19396   return 0;
19397 }
19398 _ACEOF
19399 rm -f conftest.$ac_objext
19400 if { (ac_try="$ac_compile"
19401 case "(($ac_try" in
19402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19403   *) ac_try_echo=$ac_try;;
19404 esac
19405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19406   (eval "$ac_compile") 2>conftest.er1
19407   ac_status=$?
19408   grep -v '^ *+' conftest.er1 >conftest.err
19409   rm -f conftest.er1
19410   cat conftest.err >&5
19411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412   (exit $ac_status); } &&
19413          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19414   { (case "(($ac_try" in
19415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19416   *) ac_try_echo=$ac_try;;
19417 esac
19418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19419   (eval "$ac_try") 2>&5
19420   ac_status=$?
19421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422   (exit $ac_status); }; } &&
19423          { ac_try='test -s conftest.$ac_objext'
19424   { (case "(($ac_try" in
19425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19426   *) ac_try_echo=$ac_try;;
19427 esac
19428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19429   (eval "$ac_try") 2>&5
19430   ac_status=$?
19431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432   (exit $ac_status); }; }; then
19433   llvm_cv_linux_mixed=no
19434 else
19435   echo "$as_me: failed program was:" >&5
19436 sed 's/^/| /' conftest.$ac_ext >&5
19437
19438         llvm_cv_linux_mixed=yes
19439 fi
19440
19441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19442   ac_ext=c
19443 ac_cpp='$CPP $CPPFLAGS'
19444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19447
19448
19449 fi
19450 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19451 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19452
19453   if test "$llvm_cv_linux_mixed" = "yes"; then
19454     llvm_cv_target_arch="x86"
19455     ARCH="x86"
19456   fi
19457 fi
19458
19459
19460 for ac_func in __dso_handle
19461 do
19462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19463 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19465 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19466   echo $ECHO_N "(cached) $ECHO_C" >&6
19467 else
19468   cat >conftest.$ac_ext <<_ACEOF
19469 /* confdefs.h.  */
19470 _ACEOF
19471 cat confdefs.h >>conftest.$ac_ext
19472 cat >>conftest.$ac_ext <<_ACEOF
19473 /* end confdefs.h.  */
19474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19475    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19476 #define $ac_func innocuous_$ac_func
19477
19478 /* System header to define __stub macros and hopefully few prototypes,
19479     which can conflict with char $ac_func (); below.
19480     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19481     <limits.h> exists even on freestanding compilers.  */
19482
19483 #ifdef __STDC__
19484 # include <limits.h>
19485 #else
19486 # include <assert.h>
19487 #endif
19488
19489 #undef $ac_func
19490
19491 /* Override any GCC internal prototype to avoid an error.
19492    Use char because int might match the return type of a GCC
19493    builtin and then its argument prototype would still apply.  */
19494 #ifdef __cplusplus
19495 extern "C"
19496 #endif
19497 char $ac_func ();
19498 /* The GNU C library defines this for functions which it implements
19499     to always fail with ENOSYS.  Some functions are actually named
19500     something starting with __ and the normal name is an alias.  */
19501 #if defined __stub_$ac_func || defined __stub___$ac_func
19502 choke me
19503 #endif
19504
19505 int
19506 main ()
19507 {
19508 return $ac_func ();
19509   ;
19510   return 0;
19511 }
19512 _ACEOF
19513 rm -f conftest.$ac_objext conftest$ac_exeext
19514 if { (ac_try="$ac_link"
19515 case "(($ac_try" in
19516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19517   *) ac_try_echo=$ac_try;;
19518 esac
19519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19520   (eval "$ac_link") 2>conftest.er1
19521   ac_status=$?
19522   grep -v '^ *+' conftest.er1 >conftest.err
19523   rm -f conftest.er1
19524   cat conftest.err >&5
19525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526   (exit $ac_status); } &&
19527          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19528   { (case "(($ac_try" in
19529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19530   *) ac_try_echo=$ac_try;;
19531 esac
19532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19533   (eval "$ac_try") 2>&5
19534   ac_status=$?
19535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536   (exit $ac_status); }; } &&
19537          { ac_try='test -s conftest$ac_exeext'
19538   { (case "(($ac_try" in
19539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19540   *) ac_try_echo=$ac_try;;
19541 esac
19542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19543   (eval "$ac_try") 2>&5
19544   ac_status=$?
19545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546   (exit $ac_status); }; }; then
19547   eval "$as_ac_var=yes"
19548 else
19549   echo "$as_me: failed program was:" >&5
19550 sed 's/^/| /' conftest.$ac_ext >&5
19551
19552         eval "$as_ac_var=no"
19553 fi
19554
19555 rm -f core conftest.err conftest.$ac_objext \
19556       conftest$ac_exeext conftest.$ac_ext
19557 fi
19558 ac_res=`eval echo '${'$as_ac_var'}'`
19559                { echo "$as_me:$LINENO: result: $ac_res" >&5
19560 echo "${ECHO_T}$ac_res" >&6; }
19561 if test `eval echo '${'$as_ac_var'}'` = yes; then
19562   cat >>confdefs.h <<_ACEOF
19563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19564 _ACEOF
19565
19566 fi
19567 done
19568
19569
19570 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19571 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19572 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19573   echo $ECHO_N "(cached) $ECHO_C" >&6
19574 else
19575   llvm_cv_llvmgcc_sanity="no"
19576 if test -x "$LLVMGCC" ; then
19577   cp /dev/null conftest.c
19578   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19579       grep 'target datalayout =' > /dev/null 2>&1
19580   if test $? -eq 0 ; then
19581     llvm_cv_llvmgcc_sanity="yes"
19582   fi
19583   rm conftest.c
19584 fi
19585 fi
19586 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
19587 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
19588
19589 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
19590   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
19591 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
19592   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
19593   LLVMCC1=$llvmcc1path
19594
19595   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
19596   LLVMCC1PLUS=$llvmcc1pluspath
19597
19598   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19599   LLVMGCCDIR=$llvmgccdir
19600
19601   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
19602   LLVMGCCLIBEXEC=$llvmgcclibexec
19603
19604   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
19605   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
19606   LLVMGCC_VERSION=$llvmgccversion
19607
19608   LLVMGCC_MAJVERS=$llvmgccmajvers
19609
19610   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
19611   LLVMGCC_LANGS=$llvmgcclangs
19612
19613   { echo "$as_me:$LINENO: result: ok" >&5
19614 echo "${ECHO_T}ok" >&6; }
19615 fi
19616
19617 SHLIBEXT=$libltdl_cv_shlibext
19618
19619
19620 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
19621
19622
19623 # Translate the various configuration directories and other basic
19624 # information into substitutions that will end up in Makefile.config.in
19625 # that these configured values can be used by the makefiles
19626 if test "${prefix}" = "NONE" ; then
19627   prefix="/usr/local"
19628 fi
19629 eval LLVM_PREFIX="${prefix}";
19630 eval LLVM_BINDIR="${prefix}/bin";
19631 eval LLVM_LIBDIR="${prefix}/lib";
19632 eval LLVM_DATADIR="${prefix}/share/llvm";
19633 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
19634 eval LLVM_ETCDIR="${prefix}/etc/llvm";
19635 eval LLVM_INCLUDEDIR="${prefix}/include";
19636 eval LLVM_INFODIR="${prefix}/info";
19637 eval LLVM_MANDIR="${prefix}/man";
19638 LLVM_CONFIGTIME=`date`
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650 # Place the various directores into the config.h file as #defines so that we
19651 # can know about the installation paths within LLVM.
19652
19653 cat >>confdefs.h <<_ACEOF
19654 #define LLVM_PREFIX "$LLVM_PREFIX"
19655 _ACEOF
19656
19657
19658 cat >>confdefs.h <<_ACEOF
19659 #define LLVM_BINDIR "$LLVM_BINDIR"
19660 _ACEOF
19661
19662
19663 cat >>confdefs.h <<_ACEOF
19664 #define LLVM_LIBDIR "$LLVM_LIBDIR"
19665 _ACEOF
19666
19667
19668 cat >>confdefs.h <<_ACEOF
19669 #define LLVM_DATADIR "$LLVM_DATADIR"
19670 _ACEOF
19671
19672
19673 cat >>confdefs.h <<_ACEOF
19674 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
19675 _ACEOF
19676
19677
19678 cat >>confdefs.h <<_ACEOF
19679 #define LLVM_ETCDIR "$LLVM_ETCDIR"
19680 _ACEOF
19681
19682
19683 cat >>confdefs.h <<_ACEOF
19684 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19685 _ACEOF
19686
19687
19688 cat >>confdefs.h <<_ACEOF
19689 #define LLVM_INFODIR "$LLVM_INFODIR"
19690 _ACEOF
19691
19692
19693 cat >>confdefs.h <<_ACEOF
19694 #define LLVM_MANDIR "$LLVM_MANDIR"
19695 _ACEOF
19696
19697
19698 cat >>confdefs.h <<_ACEOF
19699 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19700 _ACEOF
19701
19702
19703 cat >>confdefs.h <<_ACEOF
19704 #define LLVM_HOSTTRIPLE "$host"
19705 _ACEOF
19706
19707
19708 # Determine which bindings to build.
19709 if test "$BINDINGS_TO_BUILD" = auto ; then
19710   BINDINGS_TO_BUILD=""
19711   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19712     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19713   fi
19714 fi
19715 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19716
19717
19718 # This isn't really configurey, but it avoids having to repeat the list in
19719 # other files.
19720 ALL_BINDINGS=ocaml
19721
19722
19723 # Do any work necessary to ensure that bindings have what they need.
19724 binding_prereqs_failed=0
19725 for a_binding in $BINDINGS_TO_BUILD ; do
19726   case "$a_binding" in
19727   ocaml)
19728     if test "x$OCAMLC" = x ; then
19729       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19730 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
19731       binding_prereqs_failed=1
19732     fi
19733     if test "x$OCAMLDEP" = x ; then
19734       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19735 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
19736       binding_prereqs_failed=1
19737     fi
19738     if test "x$OCAMLOPT" = x ; then
19739       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19740 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
19741           fi
19742     if test "x$with_ocaml_libdir" != xauto ; then
19743       OCAML_LIBDIR=$with_ocaml_libdir
19744
19745     else
19746       ocaml_stdlib="`"$OCAMLC" -where`"
19747       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19748       then
19749         # ocaml stdlib is beneath our prefix; use stdlib
19750         OCAML_LIBDIR=$ocaml_stdlib
19751
19752       else
19753         # ocaml stdlib is outside our prefix; use libdir/ocaml
19754         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
19755
19756       fi
19757     fi
19758     ;;
19759   esac
19760 done
19761 if test "$binding_prereqs_failed" = 1 ; then
19762   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19763 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19764    { (exit 1); exit 1; }; }
19765 fi
19766
19767 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19768 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19769 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19770   echo $ECHO_N "(cached) $ECHO_C" >&6
19771 else
19772    ac_ext=cpp
19773 ac_cpp='$CXXCPP $CPPFLAGS'
19774 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19775 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19776 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19777
19778   oldcxxflags="$CXXFLAGS"
19779   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
19780   cat >conftest.$ac_ext <<_ACEOF
19781 /* confdefs.h.  */
19782 _ACEOF
19783 cat confdefs.h >>conftest.$ac_ext
19784 cat >>conftest.$ac_ext <<_ACEOF
19785 /* end confdefs.h.  */
19786
19787 int
19788 main ()
19789 {
19790
19791   ;
19792   return 0;
19793 }
19794 _ACEOF
19795 rm -f conftest.$ac_objext
19796 if { (ac_try="$ac_compile"
19797 case "(($ac_try" in
19798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799   *) ac_try_echo=$ac_try;;
19800 esac
19801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19802   (eval "$ac_compile") 2>conftest.er1
19803   ac_status=$?
19804   grep -v '^ *+' conftest.er1 >conftest.err
19805   rm -f conftest.er1
19806   cat conftest.err >&5
19807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808   (exit $ac_status); } &&
19809          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19810   { (case "(($ac_try" in
19811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19812   *) ac_try_echo=$ac_try;;
19813 esac
19814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19815   (eval "$ac_try") 2>&5
19816   ac_status=$?
19817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818   (exit $ac_status); }; } &&
19819          { ac_try='test -s conftest.$ac_objext'
19820   { (case "(($ac_try" in
19821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19822   *) ac_try_echo=$ac_try;;
19823 esac
19824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19825   (eval "$ac_try") 2>&5
19826   ac_status=$?
19827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828   (exit $ac_status); }; }; then
19829   llvm_cv_cxx_visibility_inlines_hidden=yes
19830 else
19831   echo "$as_me: failed program was:" >&5
19832 sed 's/^/| /' conftest.$ac_ext >&5
19833
19834         llvm_cv_cxx_visibility_inlines_hidden=no
19835 fi
19836
19837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19838   CXXFLAGS="$oldcxxflags"
19839   ac_ext=c
19840 ac_cpp='$CPP $CPPFLAGS'
19841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19844
19845
19846 fi
19847 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19848 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
19849 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19850   ENABLE_VISIBILITY_INLINES_HIDDEN=1
19851
19852 else
19853   ENABLE_VISIBILITY_INLINES_HIDDEN=0
19854
19855 fi
19856
19857
19858 if test "$llvm_cv_link_use_r" = "yes" ; then
19859   RPATH="-Wl,-R"
19860 else
19861   RPATH="-Wl,-rpath"
19862 fi
19863
19864
19865 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
19866   RDYNAMIC="-Wl,-export-dynamic"
19867 else
19868   RDYNAMIC=""
19869 fi
19870
19871
19872
19873 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
19874
19875 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19876
19877 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19878
19879 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19880
19881 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19882
19883 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
19884
19885
19886 ac_config_files="$ac_config_files Makefile.config"
19887
19888
19889 ac_config_files="$ac_config_files llvm.spec"
19890
19891
19892 ac_config_files="$ac_config_files docs/doxygen.cfg"
19893
19894
19895 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
19896
19897
19898 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
19899
19900
19901 ac_config_commands="$ac_config_commands setup"
19902
19903 ac_config_commands="$ac_config_commands Makefile"
19904
19905
19906 ac_config_commands="$ac_config_commands Makefile.common"
19907
19908
19909 ac_config_commands="$ac_config_commands examples/Makefile"
19910
19911
19912 ac_config_commands="$ac_config_commands lib/Makefile"
19913
19914
19915 ac_config_commands="$ac_config_commands runtime/Makefile"
19916
19917
19918 ac_config_commands="$ac_config_commands test/Makefile"
19919
19920
19921 ac_config_commands="$ac_config_commands test/Makefile.tests"
19922
19923
19924 ac_config_commands="$ac_config_commands unittests/Makefile"
19925
19926
19927 ac_config_commands="$ac_config_commands tools/Makefile"
19928
19929
19930 ac_config_commands="$ac_config_commands utils/Makefile"
19931
19932
19933 ac_config_commands="$ac_config_commands projects/Makefile"
19934
19935
19936 ac_config_commands="$ac_config_commands bindings/Makefile"
19937
19938
19939 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
19940
19941
19942
19943 cat >confcache <<\_ACEOF
19944 # This file is a shell script that caches the results of configure
19945 # tests run on this system so they can be shared between configure
19946 # scripts and configure runs, see configure's option --config-cache.
19947 # It is not useful on other systems.  If it contains results you don't
19948 # want to keep, you may remove or edit it.
19949 #
19950 # config.status only pays attention to the cache file if you give it
19951 # the --recheck option to rerun configure.
19952 #
19953 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19954 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19955 # following values.
19956
19957 _ACEOF
19958
19959 # The following way of writing the cache mishandles newlines in values,
19960 # but we know of no workaround that is simple, portable, and efficient.
19961 # So, we kill variables containing newlines.
19962 # Ultrix sh set writes to stderr and can't be redirected directly,
19963 # and sets the high bit in the cache file unless we assign to the vars.
19964 (
19965   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19966     eval ac_val=\$$ac_var
19967     case $ac_val in #(
19968     *${as_nl}*)
19969       case $ac_var in #(
19970       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19971 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19972       esac
19973       case $ac_var in #(
19974       _ | IFS | as_nl) ;; #(
19975       *) $as_unset $ac_var ;;
19976       esac ;;
19977     esac
19978   done
19979
19980   (set) 2>&1 |
19981     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19982     *${as_nl}ac_space=\ *)
19983       # `set' does not quote correctly, so add quotes (double-quote
19984       # substitution turns \\\\ into \\, and sed turns \\ into \).
19985       sed -n \
19986         "s/'/'\\\\''/g;
19987           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19988       ;; #(
19989     *)
19990       # `set' quotes correctly as required by POSIX, so do not add quotes.
19991       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19992       ;;
19993     esac |
19994     sort
19995 ) |
19996   sed '
19997      /^ac_cv_env_/b end
19998      t clear
19999      :clear
20000      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20001      t end
20002      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20003      :end' >>confcache
20004 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20005   if test -w "$cache_file"; then
20006     test "x$cache_file" != "x/dev/null" &&
20007       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20008 echo "$as_me: updating cache $cache_file" >&6;}
20009     cat confcache >$cache_file
20010   else
20011     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20012 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20013   fi
20014 fi
20015 rm -f confcache
20016
20017 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20018 # Let make expand exec_prefix.
20019 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20020
20021 DEFS=-DHAVE_CONFIG_H
20022
20023 ac_libobjs=
20024 ac_ltlibobjs=
20025 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20026   # 1. Remove the extension, and $U if already installed.
20027   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20028   ac_i=`echo "$ac_i" | sed "$ac_script"`
20029   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20030   #    will be set to the directory where LIBOBJS objects are built.
20031   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20032   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20033 done
20034 LIBOBJS=$ac_libobjs
20035
20036 LTLIBOBJS=$ac_ltlibobjs
20037
20038
20039 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20040   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20041 Usually this means the macro was only invoked conditionally." >&5
20042 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20043 Usually this means the macro was only invoked conditionally." >&2;}
20044    { (exit 1); exit 1; }; }
20045 fi
20046 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20047   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20048 Usually this means the macro was only invoked conditionally." >&5
20049 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20050 Usually this means the macro was only invoked conditionally." >&2;}
20051    { (exit 1); exit 1; }; }
20052 fi
20053
20054 : ${CONFIG_STATUS=./config.status}
20055 ac_clean_files_save=$ac_clean_files
20056 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20057 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20058 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20059 cat >$CONFIG_STATUS <<_ACEOF
20060 #! $SHELL
20061 # Generated by $as_me.
20062 # Run this file to recreate the current configuration.
20063 # Compiler output produced by configure, useful for debugging
20064 # configure, is in config.log if it exists.
20065
20066 debug=false
20067 ac_cs_recheck=false
20068 ac_cs_silent=false
20069 SHELL=\${CONFIG_SHELL-$SHELL}
20070 _ACEOF
20071
20072 cat >>$CONFIG_STATUS <<\_ACEOF
20073 ## --------------------- ##
20074 ## M4sh Initialization.  ##
20075 ## --------------------- ##
20076
20077 # Be Bourne compatible
20078 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20079   emulate sh
20080   NULLCMD=:
20081   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20082   # is contrary to our usage.  Disable this feature.
20083   alias -g '${1+"$@"}'='"$@"'
20084   setopt NO_GLOB_SUBST
20085 else
20086   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20087 fi
20088 BIN_SH=xpg4; export BIN_SH # for Tru64
20089 DUALCASE=1; export DUALCASE # for MKS sh
20090
20091
20092 # PATH needs CR
20093 # Avoid depending upon Character Ranges.
20094 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20095 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20096 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20097 as_cr_digits='0123456789'
20098 as_cr_alnum=$as_cr_Letters$as_cr_digits
20099
20100 # The user is always right.
20101 if test "${PATH_SEPARATOR+set}" != set; then
20102   echo "#! /bin/sh" >conf$$.sh
20103   echo  "exit 0"   >>conf$$.sh
20104   chmod +x conf$$.sh
20105   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20106     PATH_SEPARATOR=';'
20107   else
20108     PATH_SEPARATOR=:
20109   fi
20110   rm -f conf$$.sh
20111 fi
20112
20113 # Support unset when possible.
20114 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20115   as_unset=unset
20116 else
20117   as_unset=false
20118 fi
20119
20120
20121 # IFS
20122 # We need space, tab and new line, in precisely that order.  Quoting is
20123 # there to prevent editors from complaining about space-tab.
20124 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20125 # splitting by setting IFS to empty value.)
20126 as_nl='
20127 '
20128 IFS=" ""        $as_nl"
20129
20130 # Find who we are.  Look in the path if we contain no directory separator.
20131 case $0 in
20132   *[\\/]* ) as_myself=$0 ;;
20133   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20134 for as_dir in $PATH
20135 do
20136   IFS=$as_save_IFS
20137   test -z "$as_dir" && as_dir=.
20138   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20139 done
20140 IFS=$as_save_IFS
20141
20142      ;;
20143 esac
20144 # We did not find ourselves, most probably we were run as `sh COMMAND'
20145 # in which case we are not to be found in the path.
20146 if test "x$as_myself" = x; then
20147   as_myself=$0
20148 fi
20149 if test ! -f "$as_myself"; then
20150   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20151   { (exit 1); exit 1; }
20152 fi
20153
20154 # Work around bugs in pre-3.0 UWIN ksh.
20155 for as_var in ENV MAIL MAILPATH
20156 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20157 done
20158 PS1='$ '
20159 PS2='> '
20160 PS4='+ '
20161
20162 # NLS nuisances.
20163 for as_var in \
20164   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20165   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20166   LC_TELEPHONE LC_TIME
20167 do
20168   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20169     eval $as_var=C; export $as_var
20170   else
20171     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20172   fi
20173 done
20174
20175 # Required to use basename.
20176 if expr a : '\(a\)' >/dev/null 2>&1 &&
20177    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20178   as_expr=expr
20179 else
20180   as_expr=false
20181 fi
20182
20183 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20184   as_basename=basename
20185 else
20186   as_basename=false
20187 fi
20188
20189
20190 # Name of the executable.
20191 as_me=`$as_basename -- "$0" ||
20192 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20193          X"$0" : 'X\(//\)$' \| \
20194          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20195 echo X/"$0" |
20196     sed '/^.*\/\([^/][^/]*\)\/*$/{
20197             s//\1/
20198             q
20199           }
20200           /^X\/\(\/\/\)$/{
20201             s//\1/
20202             q
20203           }
20204           /^X\/\(\/\).*/{
20205             s//\1/
20206             q
20207           }
20208           s/.*/./; q'`
20209
20210 # CDPATH.
20211 $as_unset CDPATH
20212
20213
20214
20215   as_lineno_1=$LINENO
20216   as_lineno_2=$LINENO
20217   test "x$as_lineno_1" != "x$as_lineno_2" &&
20218   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20219
20220   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20221   # uniformly replaced by the line number.  The first 'sed' inserts a
20222   # line-number line after each line using $LINENO; the second 'sed'
20223   # does the real work.  The second script uses 'N' to pair each
20224   # line-number line with the line containing $LINENO, and appends
20225   # trailing '-' during substitution so that $LINENO is not a special
20226   # case at line end.
20227   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20228   # scripts with optimization help from Paolo Bonzini.  Blame Lee
20229   # E. McMahon (1931-1989) for sed's syntax.  :-)
20230   sed -n '
20231     p
20232     /[$]LINENO/=
20233   ' <$as_myself |
20234     sed '
20235       s/[$]LINENO.*/&-/
20236       t lineno
20237       b
20238       :lineno
20239       N
20240       :loop
20241       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20242       t loop
20243       s/-\n.*//
20244     ' >$as_me.lineno &&
20245   chmod +x "$as_me.lineno" ||
20246     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20247    { (exit 1); exit 1; }; }
20248
20249   # Don't try to exec as it changes $[0], causing all sort of problems
20250   # (the dirname of $[0] is not the place where we might find the
20251   # original and so on.  Autoconf is especially sensitive to this).
20252   . "./$as_me.lineno"
20253   # Exit status is that of the last command.
20254   exit
20255 }
20256
20257
20258 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20259   as_dirname=dirname
20260 else
20261   as_dirname=false
20262 fi
20263
20264 ECHO_C= ECHO_N= ECHO_T=
20265 case `echo -n x` in
20266 -n*)
20267   case `echo 'x\c'` in
20268   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20269   *)   ECHO_C='\c';;
20270   esac;;
20271 *)
20272   ECHO_N='-n';;
20273 esac
20274
20275 if expr a : '\(a\)' >/dev/null 2>&1 &&
20276    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20277   as_expr=expr
20278 else
20279   as_expr=false
20280 fi
20281
20282 rm -f conf$$ conf$$.exe conf$$.file
20283 if test -d conf$$.dir; then
20284   rm -f conf$$.dir/conf$$.file
20285 else
20286   rm -f conf$$.dir
20287   mkdir conf$$.dir
20288 fi
20289 echo >conf$$.file
20290 if ln -s conf$$.file conf$$ 2>/dev/null; then
20291   as_ln_s='ln -s'
20292   # ... but there are two gotchas:
20293   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20294   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20295   # In both cases, we have to default to `cp -p'.
20296   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20297     as_ln_s='cp -p'
20298 elif ln conf$$.file conf$$ 2>/dev/null; then
20299   as_ln_s=ln
20300 else
20301   as_ln_s='cp -p'
20302 fi
20303 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20304 rmdir conf$$.dir 2>/dev/null
20305
20306 if mkdir -p . 2>/dev/null; then
20307   as_mkdir_p=:
20308 else
20309   test -d ./-p && rmdir ./-p
20310   as_mkdir_p=false
20311 fi
20312
20313 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
20314 # systems may use methods other than mode bits to determine executability.
20315 cat >conf$$.file <<_ASEOF
20316 #! /bin/sh
20317 exit 0
20318 _ASEOF
20319 chmod +x conf$$.file
20320 if test -x conf$$.file >/dev/null 2>&1; then
20321   as_executable_p="test -x"
20322 else
20323   as_executable_p=:
20324 fi
20325 rm -f conf$$.file
20326
20327 # Sed expression to map a string onto a valid CPP name.
20328 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20329
20330 # Sed expression to map a string onto a valid variable name.
20331 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20332
20333
20334 exec 6>&1
20335
20336 # Save the log message, to keep $[0] and so on meaningful, and to
20337 # report actual input values of CONFIG_FILES etc. instead of their
20338 # values after options handling.
20339 ac_log="
20340 This file was extended by llvm $as_me 2.7svn, which was
20341 generated by GNU Autoconf 2.60.  Invocation command line was
20342
20343   CONFIG_FILES    = $CONFIG_FILES
20344   CONFIG_HEADERS  = $CONFIG_HEADERS
20345   CONFIG_LINKS    = $CONFIG_LINKS
20346   CONFIG_COMMANDS = $CONFIG_COMMANDS
20347   $ $0 $@
20348
20349 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20350 "
20351
20352 _ACEOF
20353
20354 cat >>$CONFIG_STATUS <<_ACEOF
20355 # Files that config.status was made for.
20356 config_files="$ac_config_files"
20357 config_headers="$ac_config_headers"
20358 config_commands="$ac_config_commands"
20359
20360 _ACEOF
20361
20362 cat >>$CONFIG_STATUS <<\_ACEOF
20363 ac_cs_usage="\
20364 \`$as_me' instantiates files from templates according to the
20365 current configuration.
20366
20367 Usage: $0 [OPTIONS] [FILE]...
20368
20369   -h, --help       print this help, then exit
20370   -V, --version    print version number, then exit
20371   -q, --quiet      do not print progress messages
20372   -d, --debug      don't remove temporary files
20373       --recheck    update $as_me by reconfiguring in the same conditions
20374   --file=FILE[:TEMPLATE]
20375                    instantiate the configuration file FILE
20376   --header=FILE[:TEMPLATE]
20377                    instantiate the configuration header FILE
20378
20379 Configuration files:
20380 $config_files
20381
20382 Configuration headers:
20383 $config_headers
20384
20385 Configuration commands:
20386 $config_commands
20387
20388 Report bugs to <bug-autoconf@gnu.org>."
20389
20390 _ACEOF
20391 cat >>$CONFIG_STATUS <<_ACEOF
20392 ac_cs_version="\\
20393 llvm config.status 2.7svn
20394 configured by $0, generated by GNU Autoconf 2.60,
20395   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20396
20397 Copyright (C) 2006 Free Software Foundation, Inc.
20398 This config.status script is free software; the Free Software Foundation
20399 gives unlimited permission to copy, distribute and modify it."
20400
20401 ac_pwd='$ac_pwd'
20402 srcdir='$srcdir'
20403 INSTALL='$INSTALL'
20404 _ACEOF
20405
20406 cat >>$CONFIG_STATUS <<\_ACEOF
20407 # If no file are specified by the user, then we need to provide default
20408 # value.  By we need to know if files were specified by the user.
20409 ac_need_defaults=:
20410 while test $# != 0
20411 do
20412   case $1 in
20413   --*=*)
20414     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20415     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20416     ac_shift=:
20417     ;;
20418   *)
20419     ac_option=$1
20420     ac_optarg=$2
20421     ac_shift=shift
20422     ;;
20423   esac
20424
20425   case $ac_option in
20426   # Handling of the options.
20427   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20428     ac_cs_recheck=: ;;
20429   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20430     echo "$ac_cs_version"; exit ;;
20431   --debug | --debu | --deb | --de | --d | -d )
20432     debug=: ;;
20433   --file | --fil | --fi | --f )
20434     $ac_shift
20435     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20436     ac_need_defaults=false;;
20437   --header | --heade | --head | --hea )
20438     $ac_shift
20439     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20440     ac_need_defaults=false;;
20441   --he | --h)
20442     # Conflict between --help and --header
20443     { echo "$as_me: error: ambiguous option: $1
20444 Try \`$0 --help' for more information." >&2
20445    { (exit 1); exit 1; }; };;
20446   --help | --hel | -h )
20447     echo "$ac_cs_usage"; exit ;;
20448   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20449   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20450     ac_cs_silent=: ;;
20451
20452   # This is an error.
20453   -*) { echo "$as_me: error: unrecognized option: $1
20454 Try \`$0 --help' for more information." >&2
20455    { (exit 1); exit 1; }; } ;;
20456
20457   *) ac_config_targets="$ac_config_targets $1"
20458      ac_need_defaults=false ;;
20459
20460   esac
20461   shift
20462 done
20463
20464 ac_configure_extra_args=
20465
20466 if $ac_cs_silent; then
20467   exec 6>/dev/null
20468   ac_configure_extra_args="$ac_configure_extra_args --silent"
20469 fi
20470
20471 _ACEOF
20472 cat >>$CONFIG_STATUS <<_ACEOF
20473 if \$ac_cs_recheck; then
20474   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20475   CONFIG_SHELL=$SHELL
20476   export CONFIG_SHELL
20477   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20478 fi
20479
20480 _ACEOF
20481 cat >>$CONFIG_STATUS <<\_ACEOF
20482 exec 5>>config.log
20483 {
20484   echo
20485   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20486 ## Running $as_me. ##
20487 _ASBOX
20488   echo "$ac_log"
20489 } >&5
20490
20491 _ACEOF
20492 cat >>$CONFIG_STATUS <<_ACEOF
20493 #
20494 # INIT-COMMANDS
20495 #
20496 llvm_src="${srcdir}"
20497
20498 _ACEOF
20499
20500 cat >>$CONFIG_STATUS <<\_ACEOF
20501
20502 # Handling of arguments.
20503 for ac_config_target in $ac_config_targets
20504 do
20505   case $ac_config_target in
20506     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20507     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20508     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20509     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20510     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20511     "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
20512     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20513     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20514     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
20515     "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
20516     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20517     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20518     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20519     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20520     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20521     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20522     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
20523     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20524     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
20525     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
20526     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20527     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20528     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
20529     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20530     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20531
20532   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20533 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20534    { (exit 1); exit 1; }; };;
20535   esac
20536 done
20537
20538
20539 # If the user did not use the arguments to specify the items to instantiate,
20540 # then the envvar interface is used.  Set only those that are not.
20541 # We use the long form for the default assignment because of an extremely
20542 # bizarre bug on SunOS 4.1.3.
20543 if $ac_need_defaults; then
20544   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20545   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20546   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20547 fi
20548
20549 # Have a temporary directory for convenience.  Make it in the build tree
20550 # simply because there is no reason against having it here, and in addition,
20551 # creating and moving files from /tmp can sometimes cause problems.
20552 # Hook for its removal unless debugging.
20553 # Note that there is a small window in which the directory will not be cleaned:
20554 # after its creation but before its name has been assigned to `$tmp'.
20555 $debug ||
20556 {
20557   tmp=
20558   trap 'exit_status=$?
20559   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20560 ' 0
20561   trap '{ (exit 1); exit 1; }' 1 2 13 15
20562 }
20563 # Create a (secure) tmp directory for tmp files.
20564
20565 {
20566   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20567   test -n "$tmp" && test -d "$tmp"
20568 }  ||
20569 {
20570   tmp=./conf$$-$RANDOM
20571   (umask 077 && mkdir "$tmp")
20572 } ||
20573 {
20574    echo "$me: cannot create a temporary directory in ." >&2
20575    { (exit 1); exit 1; }
20576 }
20577
20578 #
20579 # Set up the sed scripts for CONFIG_FILES section.
20580 #
20581
20582 # No need to generate the scripts if there are no CONFIG_FILES.
20583 # This happens for instance when ./config.status config.h
20584 if test -n "$CONFIG_FILES"; then
20585
20586 _ACEOF
20587
20588
20589
20590 ac_delim='%!_!# '
20591 for ac_last_try in false false false false false :; do
20592   cat >conf$$subs.sed <<_ACEOF
20593 SHELL!$SHELL$ac_delim
20594 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20595 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20596 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20597 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20598 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20599 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20600 exec_prefix!$exec_prefix$ac_delim
20601 prefix!$prefix$ac_delim
20602 program_transform_name!$program_transform_name$ac_delim
20603 bindir!$bindir$ac_delim
20604 sbindir!$sbindir$ac_delim
20605 libexecdir!$libexecdir$ac_delim
20606 datarootdir!$datarootdir$ac_delim
20607 datadir!$datadir$ac_delim
20608 sysconfdir!$sysconfdir$ac_delim
20609 sharedstatedir!$sharedstatedir$ac_delim
20610 localstatedir!$localstatedir$ac_delim
20611 includedir!$includedir$ac_delim
20612 oldincludedir!$oldincludedir$ac_delim
20613 docdir!$docdir$ac_delim
20614 infodir!$infodir$ac_delim
20615 htmldir!$htmldir$ac_delim
20616 dvidir!$dvidir$ac_delim
20617 pdfdir!$pdfdir$ac_delim
20618 psdir!$psdir$ac_delim
20619 libdir!$libdir$ac_delim
20620 localedir!$localedir$ac_delim
20621 mandir!$mandir$ac_delim
20622 DEFS!$DEFS$ac_delim
20623 ECHO_C!$ECHO_C$ac_delim
20624 ECHO_N!$ECHO_N$ac_delim
20625 ECHO_T!$ECHO_T$ac_delim
20626 LIBS!$LIBS$ac_delim
20627 build_alias!$build_alias$ac_delim
20628 host_alias!$host_alias$ac_delim
20629 target_alias!$target_alias$ac_delim
20630 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20631 subdirs!$subdirs$ac_delim
20632 build!$build$ac_delim
20633 build_cpu!$build_cpu$ac_delim
20634 build_vendor!$build_vendor$ac_delim
20635 build_os!$build_os$ac_delim
20636 host!$host$ac_delim
20637 host_cpu!$host_cpu$ac_delim
20638 host_vendor!$host_vendor$ac_delim
20639 host_os!$host_os$ac_delim
20640 target!$target$ac_delim
20641 target_cpu!$target_cpu$ac_delim
20642 target_vendor!$target_vendor$ac_delim
20643 target_os!$target_os$ac_delim
20644 OS!$OS$ac_delim
20645 HOST_OS!$HOST_OS$ac_delim
20646 TARGET_OS!$TARGET_OS$ac_delim
20647 LINKALL!$LINKALL$ac_delim
20648 NOLINKALL!$NOLINKALL$ac_delim
20649 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20650 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20651 ARCH!$ARCH$ac_delim
20652 ENDIAN!$ENDIAN$ac_delim
20653 CC!$CC$ac_delim
20654 CFLAGS!$CFLAGS$ac_delim
20655 LDFLAGS!$LDFLAGS$ac_delim
20656 CPPFLAGS!$CPPFLAGS$ac_delim
20657 ac_ct_CC!$ac_ct_CC$ac_delim
20658 EXEEXT!$EXEEXT$ac_delim
20659 OBJEXT!$OBJEXT$ac_delim
20660 CPP!$CPP$ac_delim
20661 GREP!$GREP$ac_delim
20662 EGREP!$EGREP$ac_delim
20663 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20664 BUILD_CC!$BUILD_CC$ac_delim
20665 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20666 BUILD_CXX!$BUILD_CXX$ac_delim
20667 CVSBUILD!$CVSBUILD$ac_delim
20668 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20669 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20670 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20671 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20672 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20673 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20674 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20675 JIT!$JIT$ac_delim
20676 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20677 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20678 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20679 ENABLE_PIC!$ENABLE_PIC$ac_delim
20680 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
20681 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20682 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20683 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20684 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20685 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20686 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
20687 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
20688 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
20689 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
20690 _ACEOF
20691
20692   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20693     break
20694   elif $ac_last_try; then
20695     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20696 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20697    { (exit 1); exit 1; }; }
20698   else
20699     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20700   fi
20701 done
20702
20703 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20704 if test -n "$ac_eof"; then
20705   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20706   ac_eof=`expr $ac_eof + 1`
20707 fi
20708
20709 cat >>$CONFIG_STATUS <<_ACEOF
20710 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20711 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20712 _ACEOF
20713 sed '
20714 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20715 s/^/s,@/; s/!/@,|#_!!_#|/
20716 :n
20717 t n
20718 s/'"$ac_delim"'$/,g/; t
20719 s/$/\\/; p
20720 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20721 ' >>$CONFIG_STATUS <conf$$subs.sed
20722 rm -f conf$$subs.sed
20723 cat >>$CONFIG_STATUS <<_ACEOF
20724 CEOF$ac_eof
20725 _ACEOF
20726
20727
20728 ac_delim='%!_!# '
20729 for ac_last_try in false false false false false :; do
20730   cat >conf$$subs.sed <<_ACEOF
20731 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
20732 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
20733 CXX!$CXX$ac_delim
20734 CXXFLAGS!$CXXFLAGS$ac_delim
20735 ac_ct_CXX!$ac_ct_CXX$ac_delim
20736 NM!$NM$ac_delim
20737 ifGNUmake!$ifGNUmake$ac_delim
20738 LN_S!$LN_S$ac_delim
20739 CMP!$CMP$ac_delim
20740 CP!$CP$ac_delim
20741 DATE!$DATE$ac_delim
20742 FIND!$FIND$ac_delim
20743 MKDIR!$MKDIR$ac_delim
20744 MV!$MV$ac_delim
20745 RANLIB!$RANLIB$ac_delim
20746 AR!$AR$ac_delim
20747 RM!$RM$ac_delim
20748 SED!$SED$ac_delim
20749 TAR!$TAR$ac_delim
20750 BINPWD!$BINPWD$ac_delim
20751 GRAPHVIZ!$GRAPHVIZ$ac_delim
20752 DOT!$DOT$ac_delim
20753 FDP!$FDP$ac_delim
20754 NEATO!$NEATO$ac_delim
20755 TWOPI!$TWOPI$ac_delim
20756 CIRCO!$CIRCO$ac_delim
20757 GV!$GV$ac_delim
20758 DOTTY!$DOTTY$ac_delim
20759 PERL!$PERL$ac_delim
20760 HAVE_PERL!$HAVE_PERL$ac_delim
20761 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20762 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20763 INSTALL_DATA!$INSTALL_DATA$ac_delim
20764 BZIP2!$BZIP2$ac_delim
20765 DOXYGEN!$DOXYGEN$ac_delim
20766 GROFF!$GROFF$ac_delim
20767 GZIP!$GZIP$ac_delim
20768 POD2HTML!$POD2HTML$ac_delim
20769 POD2MAN!$POD2MAN$ac_delim
20770 RUNTEST!$RUNTEST$ac_delim
20771 TCLSH!$TCLSH$ac_delim
20772 ZIP!$ZIP$ac_delim
20773 OCAMLC!$OCAMLC$ac_delim
20774 OCAMLOPT!$OCAMLOPT$ac_delim
20775 OCAMLDEP!$OCAMLDEP$ac_delim
20776 OCAMLDOC!$OCAMLDOC$ac_delim
20777 GAS!$GAS$ac_delim
20778 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
20779 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
20780 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
20781 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
20782 LIBADD_DL!$LIBADD_DL$ac_delim
20783 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
20784 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
20785 LLVMGCC!$LLVMGCC$ac_delim
20786 LLVMGXX!$LLVMGXX$ac_delim
20787 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20788 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
20789 USE_UDIS86!$USE_UDIS86$ac_delim
20790 USE_OPROFILE!$USE_OPROFILE$ac_delim
20791 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
20792 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20793 MMAP_FILE!$MMAP_FILE$ac_delim
20794 LLVMCC1!$LLVMCC1$ac_delim
20795 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
20796 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
20797 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
20798 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
20799 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
20800 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
20801 SHLIBEXT!$SHLIBEXT$ac_delim
20802 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
20803 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20804 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
20805 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
20806 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20807 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20808 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
20809 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
20810 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20811 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20812 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
20813 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20814 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
20815 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20816 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
20817 RPATH!$RPATH$ac_delim
20818 RDYNAMIC!$RDYNAMIC$ac_delim
20819 LIBOBJS!$LIBOBJS$ac_delim
20820 LTLIBOBJS!$LTLIBOBJS$ac_delim
20821 _ACEOF
20822
20823   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
20824     break
20825   elif $ac_last_try; then
20826     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20827 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20828    { (exit 1); exit 1; }; }
20829   else
20830     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20831   fi
20832 done
20833
20834 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20835 if test -n "$ac_eof"; then
20836   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20837   ac_eof=`expr $ac_eof + 1`
20838 fi
20839
20840 cat >>$CONFIG_STATUS <<_ACEOF
20841 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20842 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20843 _ACEOF
20844 sed '
20845 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20846 s/^/s,@/; s/!/@,|#_!!_#|/
20847 :n
20848 t n
20849 s/'"$ac_delim"'$/,g/; t
20850 s/$/\\/; p
20851 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20852 ' >>$CONFIG_STATUS <conf$$subs.sed
20853 rm -f conf$$subs.sed
20854 cat >>$CONFIG_STATUS <<_ACEOF
20855 :end
20856 s/|#_!!_#|//g
20857 CEOF$ac_eof
20858 _ACEOF
20859
20860
20861 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20862 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20863 # trailing colons and then remove the whole line if VPATH becomes empty
20864 # (actually we leave an empty line to preserve line numbers).
20865 if test "x$srcdir" = x.; then
20866   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20867 s/:*\$(srcdir):*/:/
20868 s/:*\${srcdir}:*/:/
20869 s/:*@srcdir@:*/:/
20870 s/^\([^=]*=[     ]*\):*/\1/
20871 s/:*$//
20872 s/^[^=]*=[       ]*$//
20873 }'
20874 fi
20875
20876 cat >>$CONFIG_STATUS <<\_ACEOF
20877 fi # test -n "$CONFIG_FILES"
20878
20879
20880 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
20881 do
20882   case $ac_tag in
20883   :[FHLC]) ac_mode=$ac_tag; continue;;
20884   esac
20885   case $ac_mode$ac_tag in
20886   :[FHL]*:*);;
20887   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20888 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20889    { (exit 1); exit 1; }; };;
20890   :[FH]-) ac_tag=-:-;;
20891   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20892   esac
20893   ac_save_IFS=$IFS
20894   IFS=:
20895   set x $ac_tag
20896   IFS=$ac_save_IFS
20897   shift
20898   ac_file=$1
20899   shift
20900
20901   case $ac_mode in
20902   :L) ac_source=$1;;
20903   :[FH])
20904     ac_file_inputs=
20905     for ac_f
20906     do
20907       case $ac_f in
20908       -) ac_f="$tmp/stdin";;
20909       *) # Look for the file first in the build tree, then in the source tree
20910          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20911          # because $ac_f cannot contain `:'.
20912          test -f "$ac_f" ||
20913            case $ac_f in
20914            [\\/$]*) false;;
20915            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20916            esac ||
20917            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20918 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20919    { (exit 1); exit 1; }; };;
20920       esac
20921       ac_file_inputs="$ac_file_inputs $ac_f"
20922     done
20923
20924     # Let's still pretend it is `configure' which instantiates (i.e., don't
20925     # use $as_me), people would be surprised to read:
20926     #    /* config.h.  Generated by config.status.  */
20927     configure_input="Generated from "`IFS=:
20928           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20929     if test x"$ac_file" != x-; then
20930       configure_input="$ac_file.  $configure_input"
20931       { echo "$as_me:$LINENO: creating $ac_file" >&5
20932 echo "$as_me: creating $ac_file" >&6;}
20933     fi
20934
20935     case $ac_tag in
20936     *:-:* | *:-) cat >"$tmp/stdin";;
20937     esac
20938     ;;
20939   esac
20940
20941   ac_dir=`$as_dirname -- "$ac_file" ||
20942 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20943          X"$ac_file" : 'X\(//\)[^/]' \| \
20944          X"$ac_file" : 'X\(//\)$' \| \
20945          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20946 echo X"$ac_file" |
20947     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20948             s//\1/
20949             q
20950           }
20951           /^X\(\/\/\)[^/].*/{
20952             s//\1/
20953             q
20954           }
20955           /^X\(\/\/\)$/{
20956             s//\1/
20957             q
20958           }
20959           /^X\(\/\).*/{
20960             s//\1/
20961             q
20962           }
20963           s/.*/./; q'`
20964   { as_dir="$ac_dir"
20965   case $as_dir in #(
20966   -*) as_dir=./$as_dir;;
20967   esac
20968   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20969     as_dirs=
20970     while :; do
20971       case $as_dir in #(
20972       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20973       *) as_qdir=$as_dir;;
20974       esac
20975       as_dirs="'$as_qdir' $as_dirs"
20976       as_dir=`$as_dirname -- "$as_dir" ||
20977 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20978          X"$as_dir" : 'X\(//\)[^/]' \| \
20979          X"$as_dir" : 'X\(//\)$' \| \
20980          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20981 echo X"$as_dir" |
20982     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20983             s//\1/
20984             q
20985           }
20986           /^X\(\/\/\)[^/].*/{
20987             s//\1/
20988             q
20989           }
20990           /^X\(\/\/\)$/{
20991             s//\1/
20992             q
20993           }
20994           /^X\(\/\).*/{
20995             s//\1/
20996             q
20997           }
20998           s/.*/./; q'`
20999       test -d "$as_dir" && break
21000     done
21001     test -z "$as_dirs" || eval "mkdir $as_dirs"
21002   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21003 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21004    { (exit 1); exit 1; }; }; }
21005   ac_builddir=.
21006
21007 case "$ac_dir" in
21008 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21009 *)
21010   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21011   # A ".." for each directory in $ac_dir_suffix.
21012   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21013   case $ac_top_builddir_sub in
21014   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21015   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21016   esac ;;
21017 esac
21018 ac_abs_top_builddir=$ac_pwd
21019 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21020 # for backward compatibility:
21021 ac_top_builddir=$ac_top_build_prefix
21022
21023 case $srcdir in
21024   .)  # We are building in place.
21025     ac_srcdir=.
21026     ac_top_srcdir=$ac_top_builddir_sub
21027     ac_abs_top_srcdir=$ac_pwd ;;
21028   [\\/]* | ?:[\\/]* )  # Absolute name.
21029     ac_srcdir=$srcdir$ac_dir_suffix;
21030     ac_top_srcdir=$srcdir
21031     ac_abs_top_srcdir=$srcdir ;;
21032   *) # Relative name.
21033     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21034     ac_top_srcdir=$ac_top_build_prefix$srcdir
21035     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21036 esac
21037 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21038
21039
21040   case $ac_mode in
21041   :F)
21042   #
21043   # CONFIG_FILE
21044   #
21045
21046   case $INSTALL in
21047   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21048   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21049   esac
21050 _ACEOF
21051
21052 cat >>$CONFIG_STATUS <<\_ACEOF
21053 # If the template does not know about datarootdir, expand it.
21054 # FIXME: This hack should be removed a few years after 2.60.
21055 ac_datarootdir_hack=; ac_datarootdir_seen=
21056
21057 case `sed -n '/datarootdir/ {
21058   p
21059   q
21060 }
21061 /@datadir@/p
21062 /@docdir@/p
21063 /@infodir@/p
21064 /@localedir@/p
21065 /@mandir@/p
21066 ' $ac_file_inputs` in
21067 *datarootdir*) ac_datarootdir_seen=yes;;
21068 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21069   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21070 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21071 _ACEOF
21072 cat >>$CONFIG_STATUS <<_ACEOF
21073   ac_datarootdir_hack='
21074   s&@datadir@&$datadir&g
21075   s&@docdir@&$docdir&g
21076   s&@infodir@&$infodir&g
21077   s&@localedir@&$localedir&g
21078   s&@mandir@&$mandir&g
21079     s&\\\${datarootdir}&$datarootdir&g' ;;
21080 esac
21081 _ACEOF
21082
21083 # Neutralize VPATH when `$srcdir' = `.'.
21084 # Shell code in configure.ac might set extrasub.
21085 # FIXME: do we really want to maintain this feature?
21086 cat >>$CONFIG_STATUS <<_ACEOF
21087   sed "$ac_vpsub
21088 $extrasub
21089 _ACEOF
21090 cat >>$CONFIG_STATUS <<\_ACEOF
21091 :t
21092 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21093 s&@configure_input@&$configure_input&;t t
21094 s&@top_builddir@&$ac_top_builddir_sub&;t t
21095 s&@srcdir@&$ac_srcdir&;t t
21096 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21097 s&@top_srcdir@&$ac_top_srcdir&;t t
21098 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21099 s&@builddir@&$ac_builddir&;t t
21100 s&@abs_builddir@&$ac_abs_builddir&;t t
21101 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21102 s&@INSTALL@&$ac_INSTALL&;t t
21103 $ac_datarootdir_hack
21104 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21105
21106 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21107   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21108   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21109   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21110 which seems to be undefined.  Please make sure it is defined." >&5
21111 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21112 which seems to be undefined.  Please make sure it is defined." >&2;}
21113
21114   rm -f "$tmp/stdin"
21115   case $ac_file in
21116   -) cat "$tmp/out"; rm -f "$tmp/out";;
21117   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21118   esac
21119  ;;
21120   :H)
21121   #
21122   # CONFIG_HEADER
21123   #
21124 _ACEOF
21125
21126 # Transform confdefs.h into a sed script `conftest.defines', that
21127 # substitutes the proper values into config.h.in to produce config.h.
21128 rm -f conftest.defines conftest.tail
21129 # First, append a space to every undef/define line, to ease matching.
21130 echo 's/$/ /' >conftest.defines
21131 # Then, protect against being on the right side of a sed subst, or in
21132 # an unquoted here document, in config.status.  If some macros were
21133 # called several times there might be several #defines for the same
21134 # symbol, which is useless.  But do not sort them, since the last
21135 # AC_DEFINE must be honored.
21136 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21137 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21138 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21139 # PARAMS is the parameter list in the macro definition--in most cases, it's
21140 # just an empty string.
21141 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
21142 ac_dB='\\)[      (].*,\\1define\\2'
21143 ac_dC=' '
21144 ac_dD=' ,'
21145
21146 uniq confdefs.h |
21147   sed -n '
21148         t rset
21149         :rset
21150         s/^[     ]*#[    ]*define[       ][      ]*//
21151         t ok
21152         d
21153         :ok
21154         s/[\\&,]/\\&/g
21155         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21156         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21157   ' >>conftest.defines
21158
21159 # Remove the space that was appended to ease matching.
21160 # Then replace #undef with comments.  This is necessary, for
21161 # example, in the case of _POSIX_SOURCE, which is predefined and required
21162 # on some systems where configure will not decide to define it.
21163 # (The regexp can be short, since the line contains either #define or #undef.)
21164 echo 's/ $//
21165 s,^[     #]*u.*,/* & */,' >>conftest.defines
21166
21167 # Break up conftest.defines:
21168 ac_max_sed_lines=50
21169
21170 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21171 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21172 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21173 # et cetera.
21174 ac_in='$ac_file_inputs'
21175 ac_out='"$tmp/out1"'
21176 ac_nxt='"$tmp/out2"'
21177
21178 while :
21179 do
21180   # Write a here document:
21181     cat >>$CONFIG_STATUS <<_ACEOF
21182     # First, check the format of the line:
21183     cat >"\$tmp/defines.sed" <<\\CEOF
21184 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
21185 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
21186 b
21187 :def
21188 _ACEOF
21189   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21190   echo 'CEOF
21191     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21192   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21193   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21194   grep . conftest.tail >/dev/null || break
21195   rm -f conftest.defines
21196   mv conftest.tail conftest.defines
21197 done
21198 rm -f conftest.defines conftest.tail
21199
21200 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21201 cat >>$CONFIG_STATUS <<\_ACEOF
21202   if test x"$ac_file" != x-; then
21203     echo "/* $configure_input  */" >"$tmp/config.h"
21204     cat "$ac_result" >>"$tmp/config.h"
21205     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21206       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21207 echo "$as_me: $ac_file is unchanged" >&6;}
21208     else
21209       rm -f $ac_file
21210       mv "$tmp/config.h" $ac_file
21211     fi
21212   else
21213     echo "/* $configure_input  */"
21214     cat "$ac_result"
21215   fi
21216   rm -f "$tmp/out12"
21217  ;;
21218
21219   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21220 echo "$as_me: executing $ac_file commands" >&6;}
21221  ;;
21222   esac
21223
21224
21225   case $ac_file$ac_mode in
21226     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
21227    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
21228     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
21229    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
21230     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
21231    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
21232     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
21233    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
21234     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
21235    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
21236     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
21237    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
21238     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
21239    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
21240     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
21241    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
21242     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
21243    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
21244     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
21245    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
21246     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
21247    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
21248     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
21249    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
21250     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
21251    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
21252
21253   esac
21254 done # for ac_tag
21255
21256
21257 { (exit 0); exit 0; }
21258 _ACEOF
21259 chmod +x $CONFIG_STATUS
21260 ac_clean_files=$ac_clean_files_save
21261
21262
21263 # configure is writing to config.log, and then calls config.status.
21264 # config.status does its own redirection, appending to config.log.
21265 # Unfortunately, on DOS this fails, as config.log is still kept open
21266 # by configure, so config.status won't be able to write to it; its
21267 # output is simply discarded.  So we exec the FD to /dev/null,
21268 # effectively closing config.log, so it can be properly (re)opened and
21269 # appended to by config.status.  When coming back to configure, we
21270 # need to make the FD available again.
21271 if test "$no_create" != yes; then
21272   ac_cs_success=:
21273   ac_config_status_args=
21274   test "$silent" = yes &&
21275     ac_config_status_args="$ac_config_status_args --quiet"
21276   exec 5>/dev/null
21277   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21278   exec 5>>config.log
21279   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21280   # would make configure fail if this is the last instruction.
21281   $ac_cs_success || { (exit 1); exit 1; }
21282 fi
21283
21284 #
21285 # CONFIG_SUBDIRS section.
21286 #
21287 if test "$no_recursion" != yes; then
21288
21289   # Remove --cache-file and --srcdir arguments so they do not pile up.
21290   ac_sub_configure_args=
21291   ac_prev=
21292   eval "set x $ac_configure_args"
21293   shift
21294   for ac_arg
21295   do
21296     if test -n "$ac_prev"; then
21297       ac_prev=
21298       continue
21299     fi
21300     case $ac_arg in
21301     -cache-file | --cache-file | --cache-fil | --cache-fi \
21302     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21303       ac_prev=cache_file ;;
21304     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21305     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21306     | --c=*)
21307       ;;
21308     --config-cache | -C)
21309       ;;
21310     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21311       ac_prev=srcdir ;;
21312     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21313       ;;
21314     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21315       ac_prev=prefix ;;
21316     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21317       ;;
21318     *)
21319       case $ac_arg in
21320       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21321       esac
21322       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
21323     esac
21324   done
21325
21326   # Always prepend --prefix to ensure using the same prefix
21327   # in subdir configurations.
21328   ac_arg="--prefix=$prefix"
21329   case $ac_arg in
21330   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21331   esac
21332   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
21333
21334   ac_popdir=`pwd`
21335   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21336
21337     # Do not complain, so a configure script can configure whichever
21338     # parts of a large source tree are present.
21339     test -d "$srcdir/$ac_dir" || continue
21340
21341     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21342     echo "$as_me:$LINENO: $ac_msg" >&5
21343     echo "$ac_msg" >&6
21344     { as_dir="$ac_dir"
21345   case $as_dir in #(
21346   -*) as_dir=./$as_dir;;
21347   esac
21348   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21349     as_dirs=
21350     while :; do
21351       case $as_dir in #(
21352       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21353       *) as_qdir=$as_dir;;
21354       esac
21355       as_dirs="'$as_qdir' $as_dirs"
21356       as_dir=`$as_dirname -- "$as_dir" ||
21357 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21358          X"$as_dir" : 'X\(//\)[^/]' \| \
21359          X"$as_dir" : 'X\(//\)$' \| \
21360          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21361 echo X"$as_dir" |
21362     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21363             s//\1/
21364             q
21365           }
21366           /^X\(\/\/\)[^/].*/{
21367             s//\1/
21368             q
21369           }
21370           /^X\(\/\/\)$/{
21371             s//\1/
21372             q
21373           }
21374           /^X\(\/\).*/{
21375             s//\1/
21376             q
21377           }
21378           s/.*/./; q'`
21379       test -d "$as_dir" && break
21380     done
21381     test -z "$as_dirs" || eval "mkdir $as_dirs"
21382   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21383 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21384    { (exit 1); exit 1; }; }; }
21385     ac_builddir=.
21386
21387 case "$ac_dir" in
21388 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21389 *)
21390   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21391   # A ".." for each directory in $ac_dir_suffix.
21392   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21393   case $ac_top_builddir_sub in
21394   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21395   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21396   esac ;;
21397 esac
21398 ac_abs_top_builddir=$ac_pwd
21399 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21400 # for backward compatibility:
21401 ac_top_builddir=$ac_top_build_prefix
21402
21403 case $srcdir in
21404   .)  # We are building in place.
21405     ac_srcdir=.
21406     ac_top_srcdir=$ac_top_builddir_sub
21407     ac_abs_top_srcdir=$ac_pwd ;;
21408   [\\/]* | ?:[\\/]* )  # Absolute name.
21409     ac_srcdir=$srcdir$ac_dir_suffix;
21410     ac_top_srcdir=$srcdir
21411     ac_abs_top_srcdir=$srcdir ;;
21412   *) # Relative name.
21413     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21414     ac_top_srcdir=$ac_top_build_prefix$srcdir
21415     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21416 esac
21417 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21418
21419
21420     cd "$ac_dir"
21421
21422     # Check for guested configure; otherwise get Cygnus style configure.
21423     if test -f "$ac_srcdir/configure.gnu"; then
21424       ac_sub_configure=$ac_srcdir/configure.gnu
21425     elif test -f "$ac_srcdir/configure"; then
21426       ac_sub_configure=$ac_srcdir/configure
21427     elif test -f "$ac_srcdir/configure.in"; then
21428       # This should be Cygnus configure.
21429       ac_sub_configure=$ac_aux_dir/configure
21430     else
21431       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21432 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21433       ac_sub_configure=
21434     fi
21435
21436     # The recursion is here.
21437     if test -n "$ac_sub_configure"; then
21438       # Make the cache file name correct relative to the subdirectory.
21439       case $cache_file in
21440       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21441       *) # Relative name.
21442         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21443       esac
21444
21445       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21446 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21447       # The eval makes quoting arguments work.
21448       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21449            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21450         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21451 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21452    { (exit 1); exit 1; }; }
21453     fi
21454
21455     cd "$ac_popdir"
21456   done
21457 fi
21458