Kill off LLVMGCCARCH and LLVMGCC_VERSION make variables.
[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 TARGETS_TO_BUILD
693 LLVM_ENUM_TARGETS
694 LLVM_ENUM_ASM_PRINTERS
695 LLVM_ENUM_ASM_PARSERS
696 LLVM_ENUM_DISASSEMBLERS
697 ENABLE_CBE_PRINTF_A
698 OPTIMIZE_OPTION
699 EXTRA_OPTIONS
700 BINUTILS_INCDIR
701 ENABLE_LLVMC_DYNAMIC
702 ENABLE_LLVMC_DYNAMIC_PLUGINS
703 CXX
704 CXXFLAGS
705 ac_ct_CXX
706 NM
707 ifGNUmake
708 LN_S
709 CMP
710 CP
711 DATE
712 FIND
713 MKDIR
714 MV
715 RANLIB
716 AR
717 RM
718 SED
719 TAR
720 BINPWD
721 GRAPHVIZ
722 DOT
723 FDP
724 NEATO
725 TWOPI
726 CIRCO
727 GV
728 DOTTY
729 PERL
730 HAVE_PERL
731 INSTALL_PROGRAM
732 INSTALL_SCRIPT
733 INSTALL_DATA
734 BZIP2
735 DOXYGEN
736 GROFF
737 GZIP
738 POD2HTML
739 POD2MAN
740 RUNTEST
741 TCLSH
742 ZIP
743 OCAMLC
744 OCAMLOPT
745 OCAMLDEP
746 OCAMLDOC
747 GAS
748 INSTALL_LTDL_TRUE
749 INSTALL_LTDL_FALSE
750 CONVENIENCE_LTDL_TRUE
751 CONVENIENCE_LTDL_FALSE
752 LIBADD_DL
753 LLVMGCCCOMMAND
754 LLVMGXXCOMMAND
755 LLVMGCC
756 LLVMGXX
757 NO_VARIADIC_MACROS
758 NO_MISSING_FIELD_INITIALIZERS
759 USE_UDIS86
760 USE_OPROFILE
761 HAVE_PTHREAD
762 HUGE_VAL_SANITY
763 MMAP_FILE
764 LLVMCC1
765 LLVMCC1PLUS
766 LLVMGCCDIR
767 LLVMGCCLIBEXEC
768 LLVMGCC_LANGS
769 SHLIBEXT
770 LLVM_PREFIX
771 LLVM_BINDIR
772 LLVM_LIBDIR
773 LLVM_DATADIR
774 LLVM_DOCSDIR
775 LLVM_ETCDIR
776 LLVM_INCLUDEDIR
777 LLVM_INFODIR
778 LLVM_MANDIR
779 LLVM_CONFIGTIME
780 BINDINGS_TO_BUILD
781 ALL_BINDINGS
782 OCAML_LIBDIR
783 ENABLE_VISIBILITY_INLINES_HIDDEN
784 RPATH
785 RDYNAMIC
786 LIBOBJS
787 LTLIBOBJS'
788 ac_subst_files=''
789       ac_precious_vars='build_alias
790 host_alias
791 target_alias
792 CC
793 CFLAGS
794 LDFLAGS
795 CPPFLAGS
796 CPP
797 CXX
798 CXXFLAGS
799 CCC'
800 ac_subdirs_all='projects/sample
801 projects/privbracket
802 projects/llvm-stacker
803 projects/llvm-test
804 projects/test-suite
805 projects/llvm-reopt
806 projects/llvm-gcc
807 projects/llvm-java
808 projects/llvm-tv
809 projects/llvm-poolalloc
810 projects/poolalloc
811 projects/llvm-kernel'
812
813 # Initialize some variables set by options.
814 ac_init_help=
815 ac_init_version=false
816 # The variables have the same names as the options, with
817 # dashes changed to underlines.
818 cache_file=/dev/null
819 exec_prefix=NONE
820 no_create=
821 no_recursion=
822 prefix=NONE
823 program_prefix=NONE
824 program_suffix=NONE
825 program_transform_name=s,x,x,
826 silent=
827 site=
828 srcdir=
829 verbose=
830 x_includes=NONE
831 x_libraries=NONE
832
833 # Installation directory options.
834 # These are left unexpanded so users can "make install exec_prefix=/foo"
835 # and all the variables that are supposed to be based on exec_prefix
836 # by default will actually change.
837 # Use braces instead of parens because sh, perl, etc. also accept them.
838 # (The list follows the same order as the GNU Coding Standards.)
839 bindir='${exec_prefix}/bin'
840 sbindir='${exec_prefix}/sbin'
841 libexecdir='${exec_prefix}/libexec'
842 datarootdir='${prefix}/share'
843 datadir='${datarootdir}'
844 sysconfdir='${prefix}/etc'
845 sharedstatedir='${prefix}/com'
846 localstatedir='${prefix}/var'
847 includedir='${prefix}/include'
848 oldincludedir='/usr/include'
849 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
850 infodir='${datarootdir}/info'
851 htmldir='${docdir}'
852 dvidir='${docdir}'
853 pdfdir='${docdir}'
854 psdir='${docdir}'
855 libdir='${exec_prefix}/lib'
856 localedir='${datarootdir}/locale'
857 mandir='${datarootdir}/man'
858
859 ac_prev=
860 ac_dashdash=
861 for ac_option
862 do
863   # If the previous option needs an argument, assign it.
864   if test -n "$ac_prev"; then
865     eval $ac_prev=\$ac_option
866     ac_prev=
867     continue
868   fi
869
870   case $ac_option in
871   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
872   *)    ac_optarg=yes ;;
873   esac
874
875   # Accept the important Cygnus configure options, so we can diagnose typos.
876
877   case $ac_dashdash$ac_option in
878   --)
879     ac_dashdash=yes ;;
880
881   -bindir | --bindir | --bindi | --bind | --bin | --bi)
882     ac_prev=bindir ;;
883   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
884     bindir=$ac_optarg ;;
885
886   -build | --build | --buil | --bui | --bu)
887     ac_prev=build_alias ;;
888   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
889     build_alias=$ac_optarg ;;
890
891   -cache-file | --cache-file | --cache-fil | --cache-fi \
892   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893     ac_prev=cache_file ;;
894   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
896     cache_file=$ac_optarg ;;
897
898   --config-cache | -C)
899     cache_file=config.cache ;;
900
901   -datadir | --datadir | --datadi | --datad)
902     ac_prev=datadir ;;
903   -datadir=* | --datadir=* | --datadi=* | --datad=*)
904     datadir=$ac_optarg ;;
905
906   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907   | --dataroo | --dataro | --datar)
908     ac_prev=datarootdir ;;
909   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911     datarootdir=$ac_optarg ;;
912
913   -disable-* | --disable-*)
914     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
915     # Reject names that are not valid shell variable names.
916     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
917       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
918    { (exit 1); exit 1; }; }
919     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
920     eval enable_$ac_feature=no ;;
921
922   -docdir | --docdir | --docdi | --doc | --do)
923     ac_prev=docdir ;;
924   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
925     docdir=$ac_optarg ;;
926
927   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
928     ac_prev=dvidir ;;
929   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
930     dvidir=$ac_optarg ;;
931
932   -enable-* | --enable-*)
933     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
934     # Reject names that are not valid shell variable names.
935     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
936       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
937    { (exit 1); exit 1; }; }
938     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
939     eval enable_$ac_feature=\$ac_optarg ;;
940
941   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
942   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
943   | --exec | --exe | --ex)
944     ac_prev=exec_prefix ;;
945   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
946   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
947   | --exec=* | --exe=* | --ex=*)
948     exec_prefix=$ac_optarg ;;
949
950   -gas | --gas | --ga | --g)
951     # Obsolete; use --with-gas.
952     with_gas=yes ;;
953
954   -help | --help | --hel | --he | -h)
955     ac_init_help=long ;;
956   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
957     ac_init_help=recursive ;;
958   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
959     ac_init_help=short ;;
960
961   -host | --host | --hos | --ho)
962     ac_prev=host_alias ;;
963   -host=* | --host=* | --hos=* | --ho=*)
964     host_alias=$ac_optarg ;;
965
966   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
967     ac_prev=htmldir ;;
968   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
969   | --ht=*)
970     htmldir=$ac_optarg ;;
971
972   -includedir | --includedir | --includedi | --included | --include \
973   | --includ | --inclu | --incl | --inc)
974     ac_prev=includedir ;;
975   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
976   | --includ=* | --inclu=* | --incl=* | --inc=*)
977     includedir=$ac_optarg ;;
978
979   -infodir | --infodir | --infodi | --infod | --info | --inf)
980     ac_prev=infodir ;;
981   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
982     infodir=$ac_optarg ;;
983
984   -libdir | --libdir | --libdi | --libd)
985     ac_prev=libdir ;;
986   -libdir=* | --libdir=* | --libdi=* | --libd=*)
987     libdir=$ac_optarg ;;
988
989   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
990   | --libexe | --libex | --libe)
991     ac_prev=libexecdir ;;
992   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
993   | --libexe=* | --libex=* | --libe=*)
994     libexecdir=$ac_optarg ;;
995
996   -localedir | --localedir | --localedi | --localed | --locale)
997     ac_prev=localedir ;;
998   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
999     localedir=$ac_optarg ;;
1000
1001   -localstatedir | --localstatedir | --localstatedi | --localstated \
1002   | --localstate | --localstat | --localsta | --localst | --locals)
1003     ac_prev=localstatedir ;;
1004   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1005   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1006     localstatedir=$ac_optarg ;;
1007
1008   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1009     ac_prev=mandir ;;
1010   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1011     mandir=$ac_optarg ;;
1012
1013   -nfp | --nfp | --nf)
1014     # Obsolete; use --without-fp.
1015     with_fp=no ;;
1016
1017   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1018   | --no-cr | --no-c | -n)
1019     no_create=yes ;;
1020
1021   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1022   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1023     no_recursion=yes ;;
1024
1025   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1026   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1027   | --oldin | --oldi | --old | --ol | --o)
1028     ac_prev=oldincludedir ;;
1029   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1030   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1031   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1032     oldincludedir=$ac_optarg ;;
1033
1034   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1035     ac_prev=prefix ;;
1036   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1037     prefix=$ac_optarg ;;
1038
1039   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1040   | --program-pre | --program-pr | --program-p)
1041     ac_prev=program_prefix ;;
1042   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1043   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1044     program_prefix=$ac_optarg ;;
1045
1046   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1047   | --program-suf | --program-su | --program-s)
1048     ac_prev=program_suffix ;;
1049   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1050   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1051     program_suffix=$ac_optarg ;;
1052
1053   -program-transform-name | --program-transform-name \
1054   | --program-transform-nam | --program-transform-na \
1055   | --program-transform-n | --program-transform- \
1056   | --program-transform | --program-transfor \
1057   | --program-transfo | --program-transf \
1058   | --program-trans | --program-tran \
1059   | --progr-tra | --program-tr | --program-t)
1060     ac_prev=program_transform_name ;;
1061   -program-transform-name=* | --program-transform-name=* \
1062   | --program-transform-nam=* | --program-transform-na=* \
1063   | --program-transform-n=* | --program-transform-=* \
1064   | --program-transform=* | --program-transfor=* \
1065   | --program-transfo=* | --program-transf=* \
1066   | --program-trans=* | --program-tran=* \
1067   | --progr-tra=* | --program-tr=* | --program-t=*)
1068     program_transform_name=$ac_optarg ;;
1069
1070   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1071     ac_prev=pdfdir ;;
1072   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1073     pdfdir=$ac_optarg ;;
1074
1075   -psdir | --psdir | --psdi | --psd | --ps)
1076     ac_prev=psdir ;;
1077   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1078     psdir=$ac_optarg ;;
1079
1080   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081   | -silent | --silent | --silen | --sile | --sil)
1082     silent=yes ;;
1083
1084   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1085     ac_prev=sbindir ;;
1086   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1087   | --sbi=* | --sb=*)
1088     sbindir=$ac_optarg ;;
1089
1090   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1091   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1092   | --sharedst | --shareds | --shared | --share | --shar \
1093   | --sha | --sh)
1094     ac_prev=sharedstatedir ;;
1095   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1096   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1097   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1098   | --sha=* | --sh=*)
1099     sharedstatedir=$ac_optarg ;;
1100
1101   -site | --site | --sit)
1102     ac_prev=site ;;
1103   -site=* | --site=* | --sit=*)
1104     site=$ac_optarg ;;
1105
1106   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1107     ac_prev=srcdir ;;
1108   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1109     srcdir=$ac_optarg ;;
1110
1111   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1112   | --syscon | --sysco | --sysc | --sys | --sy)
1113     ac_prev=sysconfdir ;;
1114   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1115   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1116     sysconfdir=$ac_optarg ;;
1117
1118   -target | --target | --targe | --targ | --tar | --ta | --t)
1119     ac_prev=target_alias ;;
1120   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1121     target_alias=$ac_optarg ;;
1122
1123   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1124     verbose=yes ;;
1125
1126   -version | --version | --versio | --versi | --vers | -V)
1127     ac_init_version=: ;;
1128
1129   -with-* | --with-*)
1130     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1131     # Reject names that are not valid shell variable names.
1132     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1133       { echo "$as_me: error: invalid package name: $ac_package" >&2
1134    { (exit 1); exit 1; }; }
1135     ac_package=`echo $ac_package| sed 's/-/_/g'`
1136     eval with_$ac_package=\$ac_optarg ;;
1137
1138   -without-* | --without-*)
1139     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1140     # Reject names that are not valid shell variable names.
1141     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1142       { echo "$as_me: error: invalid package name: $ac_package" >&2
1143    { (exit 1); exit 1; }; }
1144     ac_package=`echo $ac_package | sed 's/-/_/g'`
1145     eval with_$ac_package=no ;;
1146
1147   --x)
1148     # Obsolete; use --with-x.
1149     with_x=yes ;;
1150
1151   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1152   | --x-incl | --x-inc | --x-in | --x-i)
1153     ac_prev=x_includes ;;
1154   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1155   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1156     x_includes=$ac_optarg ;;
1157
1158   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1159   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1160     ac_prev=x_libraries ;;
1161   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1162   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1163     x_libraries=$ac_optarg ;;
1164
1165   -*) { echo "$as_me: error: unrecognized option: $ac_option
1166 Try \`$0 --help' for more information." >&2
1167    { (exit 1); exit 1; }; }
1168     ;;
1169
1170   *=*)
1171     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1172     # Reject names that are not valid shell variable names.
1173     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1174       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1175    { (exit 1); exit 1; }; }
1176     eval $ac_envvar=\$ac_optarg
1177     export $ac_envvar ;;
1178
1179   *)
1180     # FIXME: should be removed in autoconf 3.0.
1181     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1182     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1183       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1184     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1185     ;;
1186
1187   esac
1188 done
1189
1190 if test -n "$ac_prev"; then
1191   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1192   { echo "$as_me: error: missing argument to $ac_option" >&2
1193    { (exit 1); exit 1; }; }
1194 fi
1195
1196 # Be sure to have absolute directory names.
1197 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1198                 datadir sysconfdir sharedstatedir localstatedir includedir \
1199                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1200                 libdir localedir mandir
1201 do
1202   eval ac_val=\$$ac_var
1203   case $ac_val in
1204     [\\/$]* | ?:[\\/]* )  continue;;
1205     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1206   esac
1207   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1208    { (exit 1); exit 1; }; }
1209 done
1210
1211 # There might be people who depend on the old broken behavior: `$host'
1212 # used to hold the argument of --host etc.
1213 # FIXME: To remove some day.
1214 build=$build_alias
1215 host=$host_alias
1216 target=$target_alias
1217
1218 # FIXME: To remove some day.
1219 if test "x$host_alias" != x; then
1220   if test "x$build_alias" = x; then
1221     cross_compiling=maybe
1222     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1223     If a cross compiler is detected then cross compile mode will be used." >&2
1224   elif test "x$build_alias" != "x$host_alias"; then
1225     cross_compiling=yes
1226   fi
1227 fi
1228
1229 ac_tool_prefix=
1230 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1231
1232 test "$silent" = yes && exec 6>/dev/null
1233
1234
1235 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1236 ac_ls_di=`ls -di .` &&
1237 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1238   { echo "$as_me: error: Working directory cannot be determined" >&2
1239    { (exit 1); exit 1; }; }
1240 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1241   { echo "$as_me: error: pwd does not report name of working directory" >&2
1242    { (exit 1); exit 1; }; }
1243
1244
1245 # Find the source files, if location was not specified.
1246 if test -z "$srcdir"; then
1247   ac_srcdir_defaulted=yes
1248   # Try the directory containing this script, then the parent directory.
1249   ac_confdir=`$as_dirname -- "$0" ||
1250 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1251          X"$0" : 'X\(//\)[^/]' \| \
1252          X"$0" : 'X\(//\)$' \| \
1253          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1254 echo X"$0" |
1255     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1256             s//\1/
1257             q
1258           }
1259           /^X\(\/\/\)[^/].*/{
1260             s//\1/
1261             q
1262           }
1263           /^X\(\/\/\)$/{
1264             s//\1/
1265             q
1266           }
1267           /^X\(\/\).*/{
1268             s//\1/
1269             q
1270           }
1271           s/.*/./; q'`
1272   srcdir=$ac_confdir
1273   if test ! -r "$srcdir/$ac_unique_file"; then
1274     srcdir=..
1275   fi
1276 else
1277   ac_srcdir_defaulted=no
1278 fi
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1280   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1281   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1282    { (exit 1); exit 1; }; }
1283 fi
1284 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1285 ac_abs_confdir=`(
1286         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1287    { (exit 1); exit 1; }; }
1288         pwd)`
1289 # When building in place, set srcdir=.
1290 if test "$ac_abs_confdir" = "$ac_pwd"; then
1291   srcdir=.
1292 fi
1293 # Remove unnecessary trailing slashes from srcdir.
1294 # Double slashes in file names in object file debugging info
1295 # mess up M-x gdb in Emacs.
1296 case $srcdir in
1297 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1298 esac
1299 for ac_var in $ac_precious_vars; do
1300   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1301   eval ac_env_${ac_var}_value=\$${ac_var}
1302   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1303   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1304 done
1305
1306 #
1307 # Report the --help message.
1308 #
1309 if test "$ac_init_help" = "long"; then
1310   # Omit some internal or obsolete options to make the list less imposing.
1311   # This message is too long to be a string in the A/UX 3.1 sh.
1312   cat <<_ACEOF
1313 \`configure' configures llvm 2.7svn to adapt to many kinds of systems.
1314
1315 Usage: $0 [OPTION]... [VAR=VALUE]...
1316
1317 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1318 VAR=VALUE.  See below for descriptions of some of the useful variables.
1319
1320 Defaults for the options are specified in brackets.
1321
1322 Configuration:
1323   -h, --help              display this help and exit
1324       --help=short        display options specific to this package
1325       --help=recursive    display the short help of all the included packages
1326   -V, --version           display version information and exit
1327   -q, --quiet, --silent   do not print \`checking...' messages
1328       --cache-file=FILE   cache test results in FILE [disabled]
1329   -C, --config-cache      alias for \`--cache-file=config.cache'
1330   -n, --no-create         do not create output files
1331       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1332
1333 Installation directories:
1334   --prefix=PREFIX         install architecture-independent files in PREFIX
1335                           [$ac_default_prefix]
1336   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1337                           [PREFIX]
1338
1339 By default, \`make install' will install all the files in
1340 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1341 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1342 for instance \`--prefix=\$HOME'.
1343
1344 For better control, use the options below.
1345
1346 Fine tuning of the installation directories:
1347   --bindir=DIR           user executables [EPREFIX/bin]
1348   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1349   --libexecdir=DIR       program executables [EPREFIX/libexec]
1350   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1351   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1352   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1353   --libdir=DIR           object code libraries [EPREFIX/lib]
1354   --includedir=DIR       C header files [PREFIX/include]
1355   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1356   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1357   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1358   --infodir=DIR          info documentation [DATAROOTDIR/info]
1359   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1360   --mandir=DIR           man documentation [DATAROOTDIR/man]
1361   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1362   --htmldir=DIR          html documentation [DOCDIR]
1363   --dvidir=DIR           dvi documentation [DOCDIR]
1364   --pdfdir=DIR           pdf documentation [DOCDIR]
1365   --psdir=DIR            ps documentation [DOCDIR]
1366 _ACEOF
1367
1368   cat <<\_ACEOF
1369
1370 System types:
1371   --build=BUILD     configure for building on BUILD [guessed]
1372   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1373   --target=TARGET   configure for building compilers for TARGET [HOST]
1374 _ACEOF
1375 fi
1376
1377 if test -n "$ac_init_help"; then
1378   case $ac_init_help in
1379      short | recursive ) echo "Configuration of llvm 2.7svn:";;
1380    esac
1381   cat <<\_ACEOF
1382
1383 Optional Features:
1384   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1385   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1386   --enable-optimized      Compile with optimizations enabled (default is NO)
1387   --enable-profiling      Compile with profiling enabled (default is NO)
1388   --enable-assertions     Compile with assertion checks enabled (default is
1389                           YES)
1390   --enable-expensive-checks
1391                           Compile with expensive debug checks enabled (default
1392                           is NO)
1393   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1394                           NO)
1395   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1396                           optimization is on and YES if it's off)
1397   --enable-jit            Enable Just In Time Compiling (default is YES)
1398   --enable-doxygen        Build doxygen documentation (default is NO)
1399   --enable-threads        Use threads if available (default is YES)
1400   --enable-pic            Build LLVM with Position Independent Code (default
1401                           is YES)
1402   --enable-targets        Build specific host targets: all or
1403                           target1,target2,... Valid targets are: host, x86,
1404                           x86_64, sparc, powerpc, alpha, arm, mips, spu,
1405                           pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1406                           and cpp (default=all)
1407   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1408                           %a (default is YES)
1409   --enable-bindings       Build specific language bindings:
1410                           all,auto,none,{binding-name} (default=auto)
1411   --enable-libffi         Check for the presence of libffi (default is NO)
1412   --enable-llvmc-dynamic  Link LLVMC dynamically (default is NO, unless on
1413                           Win32)
1414   --enable-llvmc-dynamic-plugins
1415                           Enable dynamic LLVMC plugins (default is YES)
1416   --enable-ltdl-install   install libltdl
1417
1418 Optional Packages:
1419   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1420   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1421   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1422                           searches PATH)
1423   --with-llvmgcc          Specify location of llvm-gcc driver (default
1424                           searches PATH)
1425   --with-llvmgxx          Specify location of llvm-g++ driver (default
1426                           searches PATH)
1427   --with-optimize-option  Select the compiler options to use for optimized
1428                           builds
1429   --with-extra-options    Specify additional options to compile LLVM with
1430   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1431                           is stdlib)
1432   --with-c-include-dirs   Colon separated list of directories clang will
1433                           search for headers
1434   --with-cxx-include-root Directory with the libstdc++ headers.
1435   --with-cxx-include-arch Architecture of the libstdc++ headers.
1436   --with-cxx-include-32bit-dir
1437                           32 bit multilib dir.
1438   --with-cxx-include-64bit-dir
1439                           64 bit multilib directory.
1440   --with-binutils-include Specify path to binutils/include/ containing
1441                           plugin-api.h file for gold plugin.
1442   --with-tclinclude       directory where tcl headers are
1443   --with-udis86=<path>    Use udis86 external x86 disassembler library
1444   --with-oprofile=<prefix>
1445                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1446
1447 Some influential environment variables:
1448   CC          C compiler command
1449   CFLAGS      C compiler flags
1450   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1451               nonstandard directory <lib dir>
1452   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1453               you have headers in a nonstandard directory <include dir>
1454   CPP         C preprocessor
1455   CXX         C++ compiler command
1456   CXXFLAGS    C++ compiler flags
1457
1458 Use these variables to override the choices made by `configure' or to help
1459 it to find libraries and programs with nonstandard names/locations.
1460
1461 Report bugs to <llvmbugs@cs.uiuc.edu>.
1462 _ACEOF
1463 ac_status=$?
1464 fi
1465
1466 if test "$ac_init_help" = "recursive"; then
1467   # If there are subdirs, report their specific --help.
1468   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1469     test -d "$ac_dir" || continue
1470     ac_builddir=.
1471
1472 case "$ac_dir" in
1473 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 *)
1475   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1476   # A ".." for each directory in $ac_dir_suffix.
1477   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1478   case $ac_top_builddir_sub in
1479   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1481   esac ;;
1482 esac
1483 ac_abs_top_builddir=$ac_pwd
1484 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1485 # for backward compatibility:
1486 ac_top_builddir=$ac_top_build_prefix
1487
1488 case $srcdir in
1489   .)  # We are building in place.
1490     ac_srcdir=.
1491     ac_top_srcdir=$ac_top_builddir_sub
1492     ac_abs_top_srcdir=$ac_pwd ;;
1493   [\\/]* | ?:[\\/]* )  # Absolute name.
1494     ac_srcdir=$srcdir$ac_dir_suffix;
1495     ac_top_srcdir=$srcdir
1496     ac_abs_top_srcdir=$srcdir ;;
1497   *) # Relative name.
1498     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1499     ac_top_srcdir=$ac_top_build_prefix$srcdir
1500     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1501 esac
1502 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1503
1504     cd "$ac_dir" || { ac_status=$?; continue; }
1505     # Check for guested configure.
1506     if test -f "$ac_srcdir/configure.gnu"; then
1507       echo &&
1508       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1509     elif test -f "$ac_srcdir/configure"; then
1510       echo &&
1511       $SHELL "$ac_srcdir/configure" --help=recursive
1512     else
1513       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1514     fi || ac_status=$?
1515     cd "$ac_pwd" || { ac_status=$?; break; }
1516   done
1517 fi
1518
1519 test -n "$ac_init_help" && exit $ac_status
1520 if $ac_init_version; then
1521   cat <<\_ACEOF
1522 llvm configure 2.7svn
1523 generated by GNU Autoconf 2.60
1524
1525 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1526 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1527 This configure script is free software; the Free Software Foundation
1528 gives unlimited permission to copy, distribute and modify it.
1529
1530 Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1531 _ACEOF
1532   exit
1533 fi
1534 cat >config.log <<_ACEOF
1535 This file contains any messages produced by compilers while
1536 running configure, to aid debugging if configure makes a mistake.
1537
1538 It was created by llvm $as_me 2.7svn, which was
1539 generated by GNU Autoconf 2.60.  Invocation command line was
1540
1541   $ $0 $@
1542
1543 _ACEOF
1544 exec 5>>config.log
1545 {
1546 cat <<_ASUNAME
1547 ## --------- ##
1548 ## Platform. ##
1549 ## --------- ##
1550
1551 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1552 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1553 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1554 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1555 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1556
1557 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1558 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1559
1560 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1561 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1562 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1563 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1564 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1565 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1566 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1567
1568 _ASUNAME
1569
1570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1571 for as_dir in $PATH
1572 do
1573   IFS=$as_save_IFS
1574   test -z "$as_dir" && as_dir=.
1575   echo "PATH: $as_dir"
1576 done
1577 IFS=$as_save_IFS
1578
1579 } >&5
1580
1581 cat >&5 <<_ACEOF
1582
1583
1584 ## ----------- ##
1585 ## Core tests. ##
1586 ## ----------- ##
1587
1588 _ACEOF
1589
1590
1591 # Keep a trace of the command line.
1592 # Strip out --no-create and --no-recursion so they do not pile up.
1593 # Strip out --silent because we don't want to record it for future runs.
1594 # Also quote any args containing shell meta-characters.
1595 # Make two passes to allow for proper duplicate-argument suppression.
1596 ac_configure_args=
1597 ac_configure_args0=
1598 ac_configure_args1=
1599 ac_must_keep_next=false
1600 for ac_pass in 1 2
1601 do
1602   for ac_arg
1603   do
1604     case $ac_arg in
1605     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1606     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1607     | -silent | --silent | --silen | --sile | --sil)
1608       continue ;;
1609     *\'*)
1610       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1611     esac
1612     case $ac_pass in
1613     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1614     2)
1615       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1616       if test $ac_must_keep_next = true; then
1617         ac_must_keep_next=false # Got value, back to normal.
1618       else
1619         case $ac_arg in
1620           *=* | --config-cache | -C | -disable-* | --disable-* \
1621           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1622           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1623           | -with-* | --with-* | -without-* | --without-* | --x)
1624             case "$ac_configure_args0 " in
1625               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1626             esac
1627             ;;
1628           -* ) ac_must_keep_next=true ;;
1629         esac
1630       fi
1631       ac_configure_args="$ac_configure_args '$ac_arg'"
1632       ;;
1633     esac
1634   done
1635 done
1636 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1637 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1638
1639 # When interrupted or exit'd, cleanup temporary files, and complete
1640 # config.log.  We remove comments because anyway the quotes in there
1641 # would cause problems or look ugly.
1642 # WARNING: Use '\'' to represent an apostrophe within the trap.
1643 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1644 trap 'exit_status=$?
1645   # Save into config.log some information that might help in debugging.
1646   {
1647     echo
1648
1649     cat <<\_ASBOX
1650 ## ---------------- ##
1651 ## Cache variables. ##
1652 ## ---------------- ##
1653 _ASBOX
1654     echo
1655     # The following way of writing the cache mishandles newlines in values,
1656 (
1657   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1658     eval ac_val=\$$ac_var
1659     case $ac_val in #(
1660     *${as_nl}*)
1661       case $ac_var in #(
1662       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1663 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1664       esac
1665       case $ac_var in #(
1666       _ | IFS | as_nl) ;; #(
1667       *) $as_unset $ac_var ;;
1668       esac ;;
1669     esac
1670   done
1671   (set) 2>&1 |
1672     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1673     *${as_nl}ac_space=\ *)
1674       sed -n \
1675         "s/'\''/'\''\\\\'\'''\''/g;
1676           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1677       ;; #(
1678     *)
1679       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1680       ;;
1681     esac |
1682     sort
1683 )
1684     echo
1685
1686     cat <<\_ASBOX
1687 ## ----------------- ##
1688 ## Output variables. ##
1689 ## ----------------- ##
1690 _ASBOX
1691     echo
1692     for ac_var in $ac_subst_vars
1693     do
1694       eval ac_val=\$$ac_var
1695       case $ac_val in
1696       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1697       esac
1698       echo "$ac_var='\''$ac_val'\''"
1699     done | sort
1700     echo
1701
1702     if test -n "$ac_subst_files"; then
1703       cat <<\_ASBOX
1704 ## ------------------- ##
1705 ## File substitutions. ##
1706 ## ------------------- ##
1707 _ASBOX
1708       echo
1709       for ac_var in $ac_subst_files
1710       do
1711         eval ac_val=\$$ac_var
1712         case $ac_val in
1713         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1714         esac
1715         echo "$ac_var='\''$ac_val'\''"
1716       done | sort
1717       echo
1718     fi
1719
1720     if test -s confdefs.h; then
1721       cat <<\_ASBOX
1722 ## ----------- ##
1723 ## confdefs.h. ##
1724 ## ----------- ##
1725 _ASBOX
1726       echo
1727       cat confdefs.h
1728       echo
1729     fi
1730     test "$ac_signal" != 0 &&
1731       echo "$as_me: caught signal $ac_signal"
1732     echo "$as_me: exit $exit_status"
1733   } >&5
1734   rm -f core *.core core.conftest.* &&
1735     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1736     exit $exit_status
1737 ' 0
1738 for ac_signal in 1 2 13 15; do
1739   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1740 done
1741 ac_signal=0
1742
1743 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1744 rm -f -r conftest* confdefs.h
1745
1746 # Predefined preprocessor variables.
1747
1748 cat >>confdefs.h <<_ACEOF
1749 #define PACKAGE_NAME "$PACKAGE_NAME"
1750 _ACEOF
1751
1752
1753 cat >>confdefs.h <<_ACEOF
1754 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1755 _ACEOF
1756
1757
1758 cat >>confdefs.h <<_ACEOF
1759 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1760 _ACEOF
1761
1762
1763 cat >>confdefs.h <<_ACEOF
1764 #define PACKAGE_STRING "$PACKAGE_STRING"
1765 _ACEOF
1766
1767
1768 cat >>confdefs.h <<_ACEOF
1769 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1770 _ACEOF
1771
1772
1773 # Let the site file select an alternate cache file if it wants to.
1774 # Prefer explicitly selected file to automatically selected ones.
1775 if test -n "$CONFIG_SITE"; then
1776   set x "$CONFIG_SITE"
1777 elif test "x$prefix" != xNONE; then
1778   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1779 else
1780   set x "$ac_default_prefix/share/config.site" \
1781         "$ac_default_prefix/etc/config.site"
1782 fi
1783 shift
1784 for ac_site_file
1785 do
1786   if test -r "$ac_site_file"; then
1787     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1788 echo "$as_me: loading site script $ac_site_file" >&6;}
1789     sed 's/^/| /' "$ac_site_file" >&5
1790     . "$ac_site_file"
1791   fi
1792 done
1793
1794 if test -r "$cache_file"; then
1795   # Some versions of bash will fail to source /dev/null (special
1796   # files actually), so we avoid doing that.
1797   if test -f "$cache_file"; then
1798     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1799 echo "$as_me: loading cache $cache_file" >&6;}
1800     case $cache_file in
1801       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1802       *)                      . "./$cache_file";;
1803     esac
1804   fi
1805 else
1806   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1807 echo "$as_me: creating cache $cache_file" >&6;}
1808   >$cache_file
1809 fi
1810
1811 # Check that the precious variables saved in the cache have kept the same
1812 # value.
1813 ac_cache_corrupted=false
1814 for ac_var in $ac_precious_vars; do
1815   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1816   eval ac_new_set=\$ac_env_${ac_var}_set
1817   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1818   eval ac_new_val=\$ac_env_${ac_var}_value
1819   case $ac_old_set,$ac_new_set in
1820     set,)
1821       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1822 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1823       ac_cache_corrupted=: ;;
1824     ,set)
1825       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1826 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1827       ac_cache_corrupted=: ;;
1828     ,);;
1829     *)
1830       if test "x$ac_old_val" != "x$ac_new_val"; then
1831         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1832 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1833         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1834 echo "$as_me:   former value:  $ac_old_val" >&2;}
1835         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1836 echo "$as_me:   current value: $ac_new_val" >&2;}
1837         ac_cache_corrupted=:
1838       fi;;
1839   esac
1840   # Pass precious variables to config.status.
1841   if test "$ac_new_set" = set; then
1842     case $ac_new_val in
1843     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1844     *) ac_arg=$ac_var=$ac_new_val ;;
1845     esac
1846     case " $ac_configure_args " in
1847       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1848       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1849     esac
1850   fi
1851 done
1852 if $ac_cache_corrupted; then
1853   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1854 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1855   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1856 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1857    { (exit 1); exit 1; }; }
1858 fi
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884 ac_ext=c
1885 ac_cpp='$CPP $CPPFLAGS'
1886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1889
1890
1891
1892 LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
1893
1894
1895
1896
1897
1898
1899
1900 ac_aux_dir=
1901 for ac_dir in autoconf "$srcdir"/autoconf; do
1902   if test -f "$ac_dir/install-sh"; then
1903     ac_aux_dir=$ac_dir
1904     ac_install_sh="$ac_aux_dir/install-sh -c"
1905     break
1906   elif test -f "$ac_dir/install.sh"; then
1907     ac_aux_dir=$ac_dir
1908     ac_install_sh="$ac_aux_dir/install.sh -c"
1909     break
1910   elif test -f "$ac_dir/shtool"; then
1911     ac_aux_dir=$ac_dir
1912     ac_install_sh="$ac_aux_dir/shtool install -c"
1913     break
1914   fi
1915 done
1916 if test -z "$ac_aux_dir"; then
1917   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1918 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1919    { (exit 1); exit 1; }; }
1920 fi
1921
1922 # These three variables are undocumented and unsupported,
1923 # and are intended to be withdrawn in a future Autoconf release.
1924 # They can cause serious problems if a builder's source tree is in a directory
1925 # whose full name contains unusual characters.
1926 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1927 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1928 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1929
1930
1931
1932 if test ${srcdir} != "." ; then
1933   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1934     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1935 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1936    { (exit 1); exit 1; }; }
1937   fi
1938 fi
1939
1940 for i in `ls ${srcdir}/projects`
1941 do
1942   if test -d ${srcdir}/projects/${i} ; then
1943     case ${i} in
1944       CVS) ;;
1945       sample)       subdirs="$subdirs projects/sample"
1946     ;;
1947       privbracket)  subdirs="$subdirs projects/privbracket"
1948  ;;
1949       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1950  ;;
1951       # llvm-test is the old name of the test-suite, kept here for backwards
1952       # compatibility
1953       llvm-test)    subdirs="$subdirs projects/llvm-test"
1954  ;;
1955       test-suite)   subdirs="$subdirs projects/test-suite"
1956  ;;
1957       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
1958 ;;
1959       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
1960   ;;
1961       llvm-java)    subdirs="$subdirs projects/llvm-java"
1962  ;;
1963       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
1964    ;;
1965       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
1966  ;;
1967       poolalloc)    subdirs="$subdirs projects/poolalloc"
1968  ;;
1969       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
1970  ;;
1971       *)
1972         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1973 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1974         ;;
1975     esac
1976   fi
1977 done
1978
1979
1980 # Make sure we can run config.sub.
1981 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1982   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1983 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1984    { (exit 1); exit 1; }; }
1985
1986 { echo "$as_me:$LINENO: checking build system type" >&5
1987 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1988 if test "${ac_cv_build+set}" = set; then
1989   echo $ECHO_N "(cached) $ECHO_C" >&6
1990 else
1991   ac_build_alias=$build_alias
1992 test "x$ac_build_alias" = x &&
1993   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1994 test "x$ac_build_alias" = x &&
1995   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1996 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1997    { (exit 1); exit 1; }; }
1998 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1999   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2000 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2001    { (exit 1); exit 1; }; }
2002
2003 fi
2004 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2005 echo "${ECHO_T}$ac_cv_build" >&6; }
2006 case $ac_cv_build in
2007 *-*-*) ;;
2008 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2009 echo "$as_me: error: invalid value of canonical build" >&2;}
2010    { (exit 1); exit 1; }; };;
2011 esac
2012 build=$ac_cv_build
2013 ac_save_IFS=$IFS; IFS='-'
2014 set x $ac_cv_build
2015 shift
2016 build_cpu=$1
2017 build_vendor=$2
2018 shift; shift
2019 # Remember, the first character of IFS is used to create $*,
2020 # except with old shells:
2021 build_os=$*
2022 IFS=$ac_save_IFS
2023 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2024
2025
2026 { echo "$as_me:$LINENO: checking host system type" >&5
2027 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2028 if test "${ac_cv_host+set}" = set; then
2029   echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
2031   if test "x$host_alias" = x; then
2032   ac_cv_host=$ac_cv_build
2033 else
2034   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2035     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2036 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2037    { (exit 1); exit 1; }; }
2038 fi
2039
2040 fi
2041 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2042 echo "${ECHO_T}$ac_cv_host" >&6; }
2043 case $ac_cv_host in
2044 *-*-*) ;;
2045 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2046 echo "$as_me: error: invalid value of canonical host" >&2;}
2047    { (exit 1); exit 1; }; };;
2048 esac
2049 host=$ac_cv_host
2050 ac_save_IFS=$IFS; IFS='-'
2051 set x $ac_cv_host
2052 shift
2053 host_cpu=$1
2054 host_vendor=$2
2055 shift; shift
2056 # Remember, the first character of IFS is used to create $*,
2057 # except with old shells:
2058 host_os=$*
2059 IFS=$ac_save_IFS
2060 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2061
2062
2063 { echo "$as_me:$LINENO: checking target system type" >&5
2064 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2065 if test "${ac_cv_target+set}" = set; then
2066   echo $ECHO_N "(cached) $ECHO_C" >&6
2067 else
2068   if test "x$target_alias" = x; then
2069   ac_cv_target=$ac_cv_host
2070 else
2071   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2072     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2073 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2074    { (exit 1); exit 1; }; }
2075 fi
2076
2077 fi
2078 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2079 echo "${ECHO_T}$ac_cv_target" >&6; }
2080 case $ac_cv_target in
2081 *-*-*) ;;
2082 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2083 echo "$as_me: error: invalid value of canonical target" >&2;}
2084    { (exit 1); exit 1; }; };;
2085 esac
2086 target=$ac_cv_target
2087 ac_save_IFS=$IFS; IFS='-'
2088 set x $ac_cv_target
2089 shift
2090 target_cpu=$1
2091 target_vendor=$2
2092 shift; shift
2093 # Remember, the first character of IFS is used to create $*,
2094 # except with old shells:
2095 target_os=$*
2096 IFS=$ac_save_IFS
2097 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2098
2099
2100 # The aliases save the names the user supplied, while $host etc.
2101 # will get canonicalized.
2102 test -n "$target_alias" &&
2103   test "$program_prefix$program_suffix$program_transform_name" = \
2104     NONENONEs,x,x, &&
2105   program_prefix=${target_alias}-
2106
2107 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2108 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2109 if test "${llvm_cv_os_type+set}" = set; then
2110   echo $ECHO_N "(cached) $ECHO_C" >&6
2111 else
2112   case $host in
2113   *-*-aix*)
2114     llvm_cv_link_all_option="-Wl,--whole-archive"
2115     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2116     llvm_cv_os_type="AIX"
2117     llvm_cv_platform_type="Unix" ;;
2118   *-*-irix*)
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="IRIX"
2122     llvm_cv_platform_type="Unix" ;;
2123   *-*-cygwin*)
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="Cygwin"
2127     llvm_cv_platform_type="Unix" ;;
2128   *-*-darwin*)
2129     llvm_cv_link_all_option="-Wl,-all_load"
2130     llvm_cv_no_link_all_option="-Wl,-noall_load"
2131     llvm_cv_os_type="Darwin"
2132     llvm_cv_platform_type="Unix" ;;
2133   *-*-freebsd*)
2134     llvm_cv_link_all_option="-Wl,--whole-archive"
2135     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2136     llvm_cv_os_type="FreeBSD"
2137     llvm_cv_platform_type="Unix" ;;
2138   *-*-openbsd*)
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="OpenBSD"
2142     llvm_cv_platform_type="Unix" ;;
2143   *-*-netbsd*)
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="NetBSD"
2147     llvm_cv_platform_type="Unix" ;;
2148   *-*-dragonfly*)
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="DragonFly"
2152     llvm_cv_platform_type="Unix" ;;
2153   *-*-hpux*)
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="HP-UX"
2157     llvm_cv_platform_type="Unix" ;;
2158   *-*-interix*)
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="Interix"
2162     llvm_cv_platform_type="Unix" ;;
2163   *-*-linux*)
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="Linux"
2167     llvm_cv_platform_type="Unix" ;;
2168   *-*-solaris*)
2169     llvm_cv_link_all_option="-Wl,-z,allextract"
2170     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2171     llvm_cv_os_type="SunOS"
2172     llvm_cv_platform_type="Unix" ;;
2173   *-*-auroraux*)
2174     llvm_cv_link_all_option="-Wl,-z,allextract"
2175     llvm_cv_link_all_option="-Wl,-z,defaultextract"
2176     llvm_cv_os_type="AuroraUX"
2177     llvm_cv_platform_type="Unix" ;;
2178   *-*-win32*)
2179     llvm_cv_link_all_option="-Wl,--whole-archive"
2180     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2181     llvm_cv_os_type="Win32"
2182     llvm_cv_platform_type="Win32" ;;
2183   *-*-mingw*)
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="MingW"
2187     llvm_cv_platform_type="Win32" ;;
2188   *-*-haiku*)
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="Haiku"
2192     llvm_cv_platform_type="Unix" ;;
2193   *-unknown-eabi*)
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="Freestanding"
2197     llvm_cv_platform_type="Unix" ;;
2198   *-unknown-elf*)
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   *)
2204     llvm_cv_link_all_option=""
2205     llvm_cv_no_link_all_option=""
2206     llvm_cv_os_type="Unknown"
2207     llvm_cv_platform_type="Unknown" ;;
2208 esac
2209 fi
2210 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2211 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2212
2213 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2214 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2215 if test "${llvm_cv_target_os_type+set}" = set; then
2216   echo $ECHO_N "(cached) $ECHO_C" >&6
2217 else
2218   case $target in
2219   *-*-aix*)
2220     llvm_cv_target_os_type="AIX" ;;
2221   *-*-irix*)
2222     llvm_cv_target_os_type="IRIX" ;;
2223   *-*-cygwin*)
2224     llvm_cv_target_os_type="Cygwin" ;;
2225   *-*-darwin*)
2226     llvm_cv_target_os_type="Darwin" ;;
2227   *-*-freebsd*)
2228     llvm_cv_target_os_type="FreeBSD" ;;
2229   *-*-openbsd*)
2230     llvm_cv_target_os_type="OpenBSD" ;;
2231   *-*-netbsd*)
2232     llvm_cv_target_os_type="NetBSD" ;;
2233   *-*-dragonfly*)
2234     llvm_cv_target_os_type="DragonFly" ;;
2235   *-*-hpux*)
2236     llvm_cv_target_os_type="HP-UX" ;;
2237   *-*-interix*)
2238     llvm_cv_target_os_type="Interix" ;;
2239   *-*-linux*)
2240     llvm_cv_target_os_type="Linux" ;;
2241   *-*-solaris*)
2242     llvm_cv_target_os_type="SunOS" ;;
2243   *-*-auroraux*)
2244     llvm_cv_target_os_type="AuroraUX" ;;
2245   *-*-win32*)
2246     llvm_cv_target_os_type="Win32" ;;
2247   *-*-mingw*)
2248     llvm_cv_target_os_type="MingW" ;;
2249   *-*-haiku*)
2250     llvm_cv_target_os_type="Haiku" ;;
2251   *-unknown-eabi*)
2252     llvm_cv_target_os_type="Freestanding" ;;
2253   *)
2254     llvm_cv_target_os_type="Unknown" ;;
2255 esac
2256 fi
2257 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2258 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2259
2260 if test "$llvm_cv_os_type" = "Unknown" ; then
2261   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2262 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2263    { (exit 1); exit 1; }; }
2264 fi
2265
2266 OS=$llvm_cv_os_type
2267
2268 HOST_OS=$llvm_cv_os_type
2269
2270 TARGET_OS=$llvm_cv_target_os_type
2271
2272
2273 LINKALL=$llvm_cv_link_all_option
2274
2275 NOLINKALL=$llvm_cv_no_link_all_option
2276
2277
2278 case $llvm_cv_platform_type in
2279   Unix)
2280
2281 cat >>confdefs.h <<\_ACEOF
2282 #define LLVM_ON_UNIX 1
2283 _ACEOF
2284
2285     LLVM_ON_UNIX=1
2286
2287     LLVM_ON_WIN32=0
2288
2289     ;;
2290   Win32)
2291
2292 cat >>confdefs.h <<\_ACEOF
2293 #define LLVM_ON_WIN32 1
2294 _ACEOF
2295
2296     LLVM_ON_UNIX=0
2297
2298     LLVM_ON_WIN32=1
2299
2300     ;;
2301 esac
2302
2303 { echo "$as_me:$LINENO: checking target architecture" >&5
2304 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2305 if test "${llvm_cv_target_arch+set}" = set; then
2306   echo $ECHO_N "(cached) $ECHO_C" >&6
2307 else
2308   case $target in
2309   i?86-*)                 llvm_cv_target_arch="x86" ;;
2310   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2311   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2312   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2313   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2314   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2315   mips-*)                 llvm_cv_target_arch="Mips" ;;
2316   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2317   xcore-*)                llvm_cv_target_arch="XCore" ;;
2318   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2319   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
2320   bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
2321   *)                      llvm_cv_target_arch="Unknown" ;;
2322 esac
2323 fi
2324 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2325 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2326
2327 if test "$llvm_cv_target_arch" = "Unknown" ; then
2328   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2329 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2330 fi
2331
2332 # Determine the LLVM native architecture for the target
2333 case "$llvm_cv_target_arch" in
2334     x86)     LLVM_NATIVE_ARCH="X86" ;;
2335     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2336     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2337 esac
2338
2339 ARCH=$llvm_cv_target_arch
2340
2341
2342 ac_ext=c
2343 ac_cpp='$CPP $CPPFLAGS'
2344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2347 if test -n "$ac_tool_prefix"; then
2348   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2349 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2352 if test "${ac_cv_prog_CC+set}" = set; then
2353   echo $ECHO_N "(cached) $ECHO_C" >&6
2354 else
2355   if test -n "$CC"; then
2356   ac_cv_prog_CC="$CC" # Let the user override the test.
2357 else
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 for as_dir in $PATH
2360 do
2361   IFS=$as_save_IFS
2362   test -z "$as_dir" && as_dir=.
2363   for ac_exec_ext in '' $ac_executable_extensions; do
2364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2365     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2367     break 2
2368   fi
2369 done
2370 done
2371 IFS=$as_save_IFS
2372
2373 fi
2374 fi
2375 CC=$ac_cv_prog_CC
2376 if test -n "$CC"; then
2377   { echo "$as_me:$LINENO: result: $CC" >&5
2378 echo "${ECHO_T}$CC" >&6; }
2379 else
2380   { echo "$as_me:$LINENO: result: no" >&5
2381 echo "${ECHO_T}no" >&6; }
2382 fi
2383
2384
2385 fi
2386 if test -z "$ac_cv_prog_CC"; then
2387   ac_ct_CC=$CC
2388   # Extract the first word of "gcc", so it can be a program name with args.
2389 set dummy gcc; ac_word=$2
2390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2392 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2393   echo $ECHO_N "(cached) $ECHO_C" >&6
2394 else
2395   if test -n "$ac_ct_CC"; then
2396   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2397 else
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399 for as_dir in $PATH
2400 do
2401   IFS=$as_save_IFS
2402   test -z "$as_dir" && as_dir=.
2403   for ac_exec_ext in '' $ac_executable_extensions; do
2404   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2405     ac_cv_prog_ac_ct_CC="gcc"
2406     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2407     break 2
2408   fi
2409 done
2410 done
2411 IFS=$as_save_IFS
2412
2413 fi
2414 fi
2415 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2416 if test -n "$ac_ct_CC"; then
2417   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2418 echo "${ECHO_T}$ac_ct_CC" >&6; }
2419 else
2420   { echo "$as_me:$LINENO: result: no" >&5
2421 echo "${ECHO_T}no" >&6; }
2422 fi
2423
2424   if test "x$ac_ct_CC" = x; then
2425     CC=""
2426   else
2427     case $cross_compiling:$ac_tool_warned in
2428 yes:)
2429 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2430 whose name does not start with the host triplet.  If you think this
2431 configuration is useful to you, please write to autoconf@gnu.org." >&5
2432 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2433 whose name does not start with the host triplet.  If you think this
2434 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2435 ac_tool_warned=yes ;;
2436 esac
2437     CC=$ac_ct_CC
2438   fi
2439 else
2440   CC="$ac_cv_prog_CC"
2441 fi
2442
2443 if test -z "$CC"; then
2444           if test -n "$ac_tool_prefix"; then
2445     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2446 set dummy ${ac_tool_prefix}cc; ac_word=$2
2447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2449 if test "${ac_cv_prog_CC+set}" = set; then
2450   echo $ECHO_N "(cached) $ECHO_C" >&6
2451 else
2452   if test -n "$CC"; then
2453   ac_cv_prog_CC="$CC" # Let the user override the test.
2454 else
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 for as_dir in $PATH
2457 do
2458   IFS=$as_save_IFS
2459   test -z "$as_dir" && as_dir=.
2460   for ac_exec_ext in '' $ac_executable_extensions; do
2461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2462     ac_cv_prog_CC="${ac_tool_prefix}cc"
2463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464     break 2
2465   fi
2466 done
2467 done
2468 IFS=$as_save_IFS
2469
2470 fi
2471 fi
2472 CC=$ac_cv_prog_CC
2473 if test -n "$CC"; then
2474   { echo "$as_me:$LINENO: result: $CC" >&5
2475 echo "${ECHO_T}$CC" >&6; }
2476 else
2477   { echo "$as_me:$LINENO: result: no" >&5
2478 echo "${ECHO_T}no" >&6; }
2479 fi
2480
2481
2482   fi
2483 fi
2484 if test -z "$CC"; then
2485   # Extract the first word of "cc", so it can be a program name with args.
2486 set dummy cc; ac_word=$2
2487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2489 if test "${ac_cv_prog_CC+set}" = set; then
2490   echo $ECHO_N "(cached) $ECHO_C" >&6
2491 else
2492   if test -n "$CC"; then
2493   ac_cv_prog_CC="$CC" # Let the user override the test.
2494 else
2495   ac_prog_rejected=no
2496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497 for as_dir in $PATH
2498 do
2499   IFS=$as_save_IFS
2500   test -z "$as_dir" && as_dir=.
2501   for ac_exec_ext in '' $ac_executable_extensions; do
2502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2503     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2504        ac_prog_rejected=yes
2505        continue
2506      fi
2507     ac_cv_prog_CC="cc"
2508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2509     break 2
2510   fi
2511 done
2512 done
2513 IFS=$as_save_IFS
2514
2515 if test $ac_prog_rejected = yes; then
2516   # We found a bogon in the path, so make sure we never use it.
2517   set dummy $ac_cv_prog_CC
2518   shift
2519   if test $# != 0; then
2520     # We chose a different compiler from the bogus one.
2521     # However, it has the same basename, so the bogon will be chosen
2522     # first if we set CC to just the basename; use the full file name.
2523     shift
2524     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2525   fi
2526 fi
2527 fi
2528 fi
2529 CC=$ac_cv_prog_CC
2530 if test -n "$CC"; then
2531   { echo "$as_me:$LINENO: result: $CC" >&5
2532 echo "${ECHO_T}$CC" >&6; }
2533 else
2534   { echo "$as_me:$LINENO: result: no" >&5
2535 echo "${ECHO_T}no" >&6; }
2536 fi
2537
2538
2539 fi
2540 if test -z "$CC"; then
2541   if test -n "$ac_tool_prefix"; then
2542   for ac_prog in cl.exe
2543   do
2544     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2545 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2548 if test "${ac_cv_prog_CC+set}" = set; then
2549   echo $ECHO_N "(cached) $ECHO_C" >&6
2550 else
2551   if test -n "$CC"; then
2552   ac_cv_prog_CC="$CC" # Let the user override the test.
2553 else
2554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555 for as_dir in $PATH
2556 do
2557   IFS=$as_save_IFS
2558   test -z "$as_dir" && as_dir=.
2559   for ac_exec_ext in '' $ac_executable_extensions; do
2560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2561     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2562     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2563     break 2
2564   fi
2565 done
2566 done
2567 IFS=$as_save_IFS
2568
2569 fi
2570 fi
2571 CC=$ac_cv_prog_CC
2572 if test -n "$CC"; then
2573   { echo "$as_me:$LINENO: result: $CC" >&5
2574 echo "${ECHO_T}$CC" >&6; }
2575 else
2576   { echo "$as_me:$LINENO: result: no" >&5
2577 echo "${ECHO_T}no" >&6; }
2578 fi
2579
2580
2581     test -n "$CC" && break
2582   done
2583 fi
2584 if test -z "$CC"; then
2585   ac_ct_CC=$CC
2586   for ac_prog in cl.exe
2587 do
2588   # Extract the first word of "$ac_prog", so it can be a program name with args.
2589 set dummy $ac_prog; ac_word=$2
2590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2592 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2593   echo $ECHO_N "(cached) $ECHO_C" >&6
2594 else
2595   if test -n "$ac_ct_CC"; then
2596   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2597 else
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 for as_dir in $PATH
2600 do
2601   IFS=$as_save_IFS
2602   test -z "$as_dir" && as_dir=.
2603   for ac_exec_ext in '' $ac_executable_extensions; do
2604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2605     ac_cv_prog_ac_ct_CC="$ac_prog"
2606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2607     break 2
2608   fi
2609 done
2610 done
2611 IFS=$as_save_IFS
2612
2613 fi
2614 fi
2615 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2616 if test -n "$ac_ct_CC"; then
2617   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2618 echo "${ECHO_T}$ac_ct_CC" >&6; }
2619 else
2620   { echo "$as_me:$LINENO: result: no" >&5
2621 echo "${ECHO_T}no" >&6; }
2622 fi
2623
2624
2625   test -n "$ac_ct_CC" && break
2626 done
2627
2628   if test "x$ac_ct_CC" = x; then
2629     CC=""
2630   else
2631     case $cross_compiling:$ac_tool_warned in
2632 yes:)
2633 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2634 whose name does not start with the host triplet.  If you think this
2635 configuration is useful to you, please write to autoconf@gnu.org." >&5
2636 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2637 whose name does not start with the host triplet.  If you think this
2638 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2639 ac_tool_warned=yes ;;
2640 esac
2641     CC=$ac_ct_CC
2642   fi
2643 fi
2644
2645 fi
2646
2647
2648 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2649 See \`config.log' for more details." >&5
2650 echo "$as_me: error: no acceptable C compiler found in \$PATH
2651 See \`config.log' for more details." >&2;}
2652    { (exit 1); exit 1; }; }
2653
2654 # Provide some information about the compiler.
2655 echo "$as_me:$LINENO: checking for C compiler version" >&5
2656 ac_compiler=`set X $ac_compile; echo $2`
2657 { (ac_try="$ac_compiler --version >&5"
2658 case "(($ac_try" in
2659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2660   *) ac_try_echo=$ac_try;;
2661 esac
2662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2663   (eval "$ac_compiler --version >&5") 2>&5
2664   ac_status=$?
2665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666   (exit $ac_status); }
2667 { (ac_try="$ac_compiler -v >&5"
2668 case "(($ac_try" in
2669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2670   *) ac_try_echo=$ac_try;;
2671 esac
2672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2673   (eval "$ac_compiler -v >&5") 2>&5
2674   ac_status=$?
2675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676   (exit $ac_status); }
2677 { (ac_try="$ac_compiler -V >&5"
2678 case "(($ac_try" in
2679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2680   *) ac_try_echo=$ac_try;;
2681 esac
2682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2683   (eval "$ac_compiler -V >&5") 2>&5
2684   ac_status=$?
2685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686   (exit $ac_status); }
2687
2688 cat >conftest.$ac_ext <<_ACEOF
2689 /* confdefs.h.  */
2690 _ACEOF
2691 cat confdefs.h >>conftest.$ac_ext
2692 cat >>conftest.$ac_ext <<_ACEOF
2693 /* end confdefs.h.  */
2694
2695 int
2696 main ()
2697 {
2698
2699   ;
2700   return 0;
2701 }
2702 _ACEOF
2703 ac_clean_files_save=$ac_clean_files
2704 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2705 # Try to create an executable without -o first, disregard a.out.
2706 # It will help us diagnose broken compilers, and finding out an intuition
2707 # of exeext.
2708 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2709 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2710 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2711 #
2712 # List of possible output files, starting from the most likely.
2713 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2714 # only as a last resort.  b.out is created by i960 compilers.
2715 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2716 #
2717 # The IRIX 6 linker writes into existing files which may not be
2718 # executable, retaining their permissions.  Remove them first so a
2719 # subsequent execution test works.
2720 ac_rmfiles=
2721 for ac_file in $ac_files
2722 do
2723   case $ac_file in
2724     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2725     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2726   esac
2727 done
2728 rm -f $ac_rmfiles
2729
2730 if { (ac_try="$ac_link_default"
2731 case "(($ac_try" in
2732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733   *) ac_try_echo=$ac_try;;
2734 esac
2735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2736   (eval "$ac_link_default") 2>&5
2737   ac_status=$?
2738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739   (exit $ac_status); }; then
2740   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2741 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2742 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2743 # so that the user can short-circuit this test for compilers unknown to
2744 # Autoconf.
2745 for ac_file in $ac_files
2746 do
2747   test -f "$ac_file" || continue
2748   case $ac_file in
2749     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2750         ;;
2751     [ab].out )
2752         # We found the default executable, but exeext='' is most
2753         # certainly right.
2754         break;;
2755     *.* )
2756         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2757         then :; else
2758            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2759         fi
2760         # We set ac_cv_exeext here because the later test for it is not
2761         # safe: cross compilers may not add the suffix if given an `-o'
2762         # argument, so we may need to know it at that point already.
2763         # Even if this section looks crufty: it has the advantage of
2764         # actually working.
2765         break;;
2766     * )
2767         break;;
2768   esac
2769 done
2770 test "$ac_cv_exeext" = no && ac_cv_exeext=
2771
2772 else
2773   echo "$as_me: failed program was:" >&5
2774 sed 's/^/| /' conftest.$ac_ext >&5
2775
2776 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2777 See \`config.log' for more details." >&5
2778 echo "$as_me: error: C compiler cannot create executables
2779 See \`config.log' for more details." >&2;}
2780    { (exit 77); exit 77; }; }
2781 fi
2782
2783 ac_exeext=$ac_cv_exeext
2784 { echo "$as_me:$LINENO: result: $ac_file" >&5
2785 echo "${ECHO_T}$ac_file" >&6; }
2786
2787 # Check that the compiler produces executables we can run.  If not, either
2788 # the compiler is broken, or we cross compile.
2789 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2790 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2791 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2792 # If not cross compiling, check that we can run a simple program.
2793 if test "$cross_compiling" != yes; then
2794   if { ac_try='./$ac_file'
2795   { (case "(($ac_try" in
2796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797   *) ac_try_echo=$ac_try;;
2798 esac
2799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2800   (eval "$ac_try") 2>&5
2801   ac_status=$?
2802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803   (exit $ac_status); }; }; then
2804     cross_compiling=no
2805   else
2806     if test "$cross_compiling" = maybe; then
2807         cross_compiling=yes
2808     else
2809         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2810 If you meant to cross compile, use \`--host'.
2811 See \`config.log' for more details." >&5
2812 echo "$as_me: error: cannot run C compiled programs.
2813 If you meant to cross compile, use \`--host'.
2814 See \`config.log' for more details." >&2;}
2815    { (exit 1); exit 1; }; }
2816     fi
2817   fi
2818 fi
2819 { echo "$as_me:$LINENO: result: yes" >&5
2820 echo "${ECHO_T}yes" >&6; }
2821
2822 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2823 ac_clean_files=$ac_clean_files_save
2824 # Check that the compiler produces executables we can run.  If not, either
2825 # the compiler is broken, or we cross compile.
2826 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2827 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2828 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2829 echo "${ECHO_T}$cross_compiling" >&6; }
2830
2831 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2832 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2833 if { (ac_try="$ac_link"
2834 case "(($ac_try" in
2835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2836   *) ac_try_echo=$ac_try;;
2837 esac
2838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2839   (eval "$ac_link") 2>&5
2840   ac_status=$?
2841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842   (exit $ac_status); }; then
2843   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2844 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2845 # work properly (i.e., refer to `conftest.exe'), while it won't with
2846 # `rm'.
2847 for ac_file in conftest.exe conftest conftest.*; do
2848   test -f "$ac_file" || continue
2849   case $ac_file in
2850     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2851     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2852           break;;
2853     * ) break;;
2854   esac
2855 done
2856 else
2857   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2858 See \`config.log' for more details." >&5
2859 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2860 See \`config.log' for more details." >&2;}
2861    { (exit 1); exit 1; }; }
2862 fi
2863
2864 rm -f conftest$ac_cv_exeext
2865 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2866 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2867
2868 rm -f conftest.$ac_ext
2869 EXEEXT=$ac_cv_exeext
2870 ac_exeext=$EXEEXT
2871 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2872 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2873 if test "${ac_cv_objext+set}" = set; then
2874   echo $ECHO_N "(cached) $ECHO_C" >&6
2875 else
2876   cat >conftest.$ac_ext <<_ACEOF
2877 /* confdefs.h.  */
2878 _ACEOF
2879 cat confdefs.h >>conftest.$ac_ext
2880 cat >>conftest.$ac_ext <<_ACEOF
2881 /* end confdefs.h.  */
2882
2883 int
2884 main ()
2885 {
2886
2887   ;
2888   return 0;
2889 }
2890 _ACEOF
2891 rm -f conftest.o conftest.obj
2892 if { (ac_try="$ac_compile"
2893 case "(($ac_try" in
2894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895   *) ac_try_echo=$ac_try;;
2896 esac
2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898   (eval "$ac_compile") 2>&5
2899   ac_status=$?
2900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901   (exit $ac_status); }; then
2902   for ac_file in conftest.o conftest.obj conftest.*; do
2903   test -f "$ac_file" || continue;
2904   case $ac_file in
2905     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2906     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2907        break;;
2908   esac
2909 done
2910 else
2911   echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.$ac_ext >&5
2913
2914 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2915 See \`config.log' for more details." >&5
2916 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2917 See \`config.log' for more details." >&2;}
2918    { (exit 1); exit 1; }; }
2919 fi
2920
2921 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2922 fi
2923 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2924 echo "${ECHO_T}$ac_cv_objext" >&6; }
2925 OBJEXT=$ac_cv_objext
2926 ac_objext=$OBJEXT
2927 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2928 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2929 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2930   echo $ECHO_N "(cached) $ECHO_C" >&6
2931 else
2932   cat >conftest.$ac_ext <<_ACEOF
2933 /* confdefs.h.  */
2934 _ACEOF
2935 cat confdefs.h >>conftest.$ac_ext
2936 cat >>conftest.$ac_ext <<_ACEOF
2937 /* end confdefs.h.  */
2938
2939 int
2940 main ()
2941 {
2942 #ifndef __GNUC__
2943        choke me
2944 #endif
2945
2946   ;
2947   return 0;
2948 }
2949 _ACEOF
2950 rm -f conftest.$ac_objext
2951 if { (ac_try="$ac_compile"
2952 case "(($ac_try" in
2953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954   *) ac_try_echo=$ac_try;;
2955 esac
2956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957   (eval "$ac_compile") 2>conftest.er1
2958   ac_status=$?
2959   grep -v '^ *+' conftest.er1 >conftest.err
2960   rm -f conftest.er1
2961   cat conftest.err >&5
2962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963   (exit $ac_status); } &&
2964          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2965   { (case "(($ac_try" in
2966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967   *) ac_try_echo=$ac_try;;
2968 esac
2969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970   (eval "$ac_try") 2>&5
2971   ac_status=$?
2972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973   (exit $ac_status); }; } &&
2974          { ac_try='test -s conftest.$ac_objext'
2975   { (case "(($ac_try" in
2976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977   *) ac_try_echo=$ac_try;;
2978 esac
2979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980   (eval "$ac_try") 2>&5
2981   ac_status=$?
2982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983   (exit $ac_status); }; }; then
2984   ac_compiler_gnu=yes
2985 else
2986   echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.$ac_ext >&5
2988
2989         ac_compiler_gnu=no
2990 fi
2991
2992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2993 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2994
2995 fi
2996 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2997 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2998 GCC=`test $ac_compiler_gnu = yes && echo yes`
2999 ac_test_CFLAGS=${CFLAGS+set}
3000 ac_save_CFLAGS=$CFLAGS
3001 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3002 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3003 if test "${ac_cv_prog_cc_g+set}" = set; then
3004   echo $ECHO_N "(cached) $ECHO_C" >&6
3005 else
3006   ac_save_c_werror_flag=$ac_c_werror_flag
3007    ac_c_werror_flag=yes
3008    ac_cv_prog_cc_g=no
3009    CFLAGS="-g"
3010    cat >conftest.$ac_ext <<_ACEOF
3011 /* confdefs.h.  */
3012 _ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h.  */
3016
3017 int
3018 main ()
3019 {
3020
3021   ;
3022   return 0;
3023 }
3024 _ACEOF
3025 rm -f conftest.$ac_objext
3026 if { (ac_try="$ac_compile"
3027 case "(($ac_try" in
3028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029   *) ac_try_echo=$ac_try;;
3030 esac
3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032   (eval "$ac_compile") 2>conftest.er1
3033   ac_status=$?
3034   grep -v '^ *+' conftest.er1 >conftest.err
3035   rm -f conftest.er1
3036   cat conftest.err >&5
3037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038   (exit $ac_status); } &&
3039          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3040   { (case "(($ac_try" in
3041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042   *) ac_try_echo=$ac_try;;
3043 esac
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045   (eval "$ac_try") 2>&5
3046   ac_status=$?
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); }; } &&
3049          { ac_try='test -s conftest.$ac_objext'
3050   { (case "(($ac_try" in
3051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052   *) ac_try_echo=$ac_try;;
3053 esac
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055   (eval "$ac_try") 2>&5
3056   ac_status=$?
3057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058   (exit $ac_status); }; }; then
3059   ac_cv_prog_cc_g=yes
3060 else
3061   echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3063
3064         CFLAGS=""
3065       cat >conftest.$ac_ext <<_ACEOF
3066 /* confdefs.h.  */
3067 _ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h.  */
3071
3072 int
3073 main ()
3074 {
3075
3076   ;
3077   return 0;
3078 }
3079 _ACEOF
3080 rm -f conftest.$ac_objext
3081 if { (ac_try="$ac_compile"
3082 case "(($ac_try" in
3083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084   *) ac_try_echo=$ac_try;;
3085 esac
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087   (eval "$ac_compile") 2>conftest.er1
3088   ac_status=$?
3089   grep -v '^ *+' conftest.er1 >conftest.err
3090   rm -f conftest.er1
3091   cat conftest.err >&5
3092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); } &&
3094          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3095   { (case "(($ac_try" in
3096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097   *) ac_try_echo=$ac_try;;
3098 esac
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100   (eval "$ac_try") 2>&5
3101   ac_status=$?
3102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103   (exit $ac_status); }; } &&
3104          { ac_try='test -s conftest.$ac_objext'
3105   { (case "(($ac_try" in
3106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107   *) ac_try_echo=$ac_try;;
3108 esac
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110   (eval "$ac_try") 2>&5
3111   ac_status=$?
3112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113   (exit $ac_status); }; }; then
3114   :
3115 else
3116   echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3118
3119         ac_c_werror_flag=$ac_save_c_werror_flag
3120          CFLAGS="-g"
3121          cat >conftest.$ac_ext <<_ACEOF
3122 /* confdefs.h.  */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h.  */
3127
3128 int
3129 main ()
3130 {
3131
3132   ;
3133   return 0;
3134 }
3135 _ACEOF
3136 rm -f conftest.$ac_objext
3137 if { (ac_try="$ac_compile"
3138 case "(($ac_try" in
3139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140   *) ac_try_echo=$ac_try;;
3141 esac
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143   (eval "$ac_compile") 2>conftest.er1
3144   ac_status=$?
3145   grep -v '^ *+' conftest.er1 >conftest.err
3146   rm -f conftest.er1
3147   cat conftest.err >&5
3148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149   (exit $ac_status); } &&
3150          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3151   { (case "(($ac_try" in
3152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153   *) ac_try_echo=$ac_try;;
3154 esac
3155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156   (eval "$ac_try") 2>&5
3157   ac_status=$?
3158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159   (exit $ac_status); }; } &&
3160          { ac_try='test -s conftest.$ac_objext'
3161   { (case "(($ac_try" in
3162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163   *) ac_try_echo=$ac_try;;
3164 esac
3165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166   (eval "$ac_try") 2>&5
3167   ac_status=$?
3168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169   (exit $ac_status); }; }; then
3170   ac_cv_prog_cc_g=yes
3171 else
3172   echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3174
3175
3176 fi
3177
3178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3179 fi
3180
3181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3182 fi
3183
3184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3185    ac_c_werror_flag=$ac_save_c_werror_flag
3186 fi
3187 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3188 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3189 if test "$ac_test_CFLAGS" = set; then
3190   CFLAGS=$ac_save_CFLAGS
3191 elif test $ac_cv_prog_cc_g = yes; then
3192   if test "$GCC" = yes; then
3193     CFLAGS="-g -O2"
3194   else
3195     CFLAGS="-g"
3196   fi
3197 else
3198   if test "$GCC" = yes; then
3199     CFLAGS="-O2"
3200   else
3201     CFLAGS=
3202   fi
3203 fi
3204 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3205 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3206 if test "${ac_cv_prog_cc_c89+set}" = set; then
3207   echo $ECHO_N "(cached) $ECHO_C" >&6
3208 else
3209   ac_cv_prog_cc_c89=no
3210 ac_save_CC=$CC
3211 cat >conftest.$ac_ext <<_ACEOF
3212 /* confdefs.h.  */
3213 _ACEOF
3214 cat confdefs.h >>conftest.$ac_ext
3215 cat >>conftest.$ac_ext <<_ACEOF
3216 /* end confdefs.h.  */
3217 #include <stdarg.h>
3218 #include <stdio.h>
3219 #include <sys/types.h>
3220 #include <sys/stat.h>
3221 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3222 struct buf { int x; };
3223 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3224 static char *e (p, i)
3225      char **p;
3226      int i;
3227 {
3228   return p[i];
3229 }
3230 static char *f (char * (*g) (char **, int), char **p, ...)
3231 {
3232   char *s;
3233   va_list v;
3234   va_start (v,p);
3235   s = g (p, va_arg (v,int));
3236   va_end (v);
3237   return s;
3238 }
3239
3240 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3241    function prototypes and stuff, but not '\xHH' hex character constants.
3242    These don't provoke an error unfortunately, instead are silently treated
3243    as 'x'.  The following induces an error, until -std is added to get
3244    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3245    array size at least.  It's necessary to write '\x00'==0 to get something
3246    that's true only with -std.  */
3247 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3248
3249 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3250    inside strings and character constants.  */
3251 #define FOO(x) 'x'
3252 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3253
3254 int test (int i, double x);
3255 struct s1 {int (*f) (int a);};
3256 struct s2 {int (*f) (double a);};
3257 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3258 int argc;
3259 char **argv;
3260 int
3261 main ()
3262 {
3263 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3264   ;
3265   return 0;
3266 }
3267 _ACEOF
3268 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3269         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3270 do
3271   CC="$ac_save_CC $ac_arg"
3272   rm -f conftest.$ac_objext
3273 if { (ac_try="$ac_compile"
3274 case "(($ac_try" in
3275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276   *) ac_try_echo=$ac_try;;
3277 esac
3278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3279   (eval "$ac_compile") 2>conftest.er1
3280   ac_status=$?
3281   grep -v '^ *+' conftest.er1 >conftest.err
3282   rm -f conftest.er1
3283   cat conftest.err >&5
3284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285   (exit $ac_status); } &&
3286          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3287   { (case "(($ac_try" in
3288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289   *) ac_try_echo=$ac_try;;
3290 esac
3291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292   (eval "$ac_try") 2>&5
3293   ac_status=$?
3294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295   (exit $ac_status); }; } &&
3296          { ac_try='test -s conftest.$ac_objext'
3297   { (case "(($ac_try" in
3298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299   *) ac_try_echo=$ac_try;;
3300 esac
3301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3302   (eval "$ac_try") 2>&5
3303   ac_status=$?
3304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305   (exit $ac_status); }; }; then
3306   ac_cv_prog_cc_c89=$ac_arg
3307 else
3308   echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3310
3311
3312 fi
3313
3314 rm -f core conftest.err conftest.$ac_objext
3315   test "x$ac_cv_prog_cc_c89" != "xno" && break
3316 done
3317 rm -f conftest.$ac_ext
3318 CC=$ac_save_CC
3319
3320 fi
3321 # AC_CACHE_VAL
3322 case "x$ac_cv_prog_cc_c89" in
3323   x)
3324     { echo "$as_me:$LINENO: result: none needed" >&5
3325 echo "${ECHO_T}none needed" >&6; } ;;
3326   xno)
3327     { echo "$as_me:$LINENO: result: unsupported" >&5
3328 echo "${ECHO_T}unsupported" >&6; } ;;
3329   *)
3330     CC="$CC $ac_cv_prog_cc_c89"
3331     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3332 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3333 esac
3334
3335
3336 ac_ext=c
3337 ac_cpp='$CPP $CPPFLAGS'
3338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3341
3342
3343 ac_ext=c
3344 ac_cpp='$CPP $CPPFLAGS'
3345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3348 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3349 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3350 # On Suns, sometimes $CPP names a directory.
3351 if test -n "$CPP" && test -d "$CPP"; then
3352   CPP=
3353 fi
3354 if test -z "$CPP"; then
3355   if test "${ac_cv_prog_CPP+set}" = set; then
3356   echo $ECHO_N "(cached) $ECHO_C" >&6
3357 else
3358       # Double quotes because CPP needs to be expanded
3359     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3360     do
3361       ac_preproc_ok=false
3362 for ac_c_preproc_warn_flag in '' yes
3363 do
3364   # Use a header file that comes with gcc, so configuring glibc
3365   # with a fresh cross-compiler works.
3366   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3367   # <limits.h> exists even on freestanding compilers.
3368   # On the NeXT, cc -E runs the code through the compiler's parser,
3369   # not just through cpp. "Syntax error" is here to catch this case.
3370   cat >conftest.$ac_ext <<_ACEOF
3371 /* confdefs.h.  */
3372 _ACEOF
3373 cat confdefs.h >>conftest.$ac_ext
3374 cat >>conftest.$ac_ext <<_ACEOF
3375 /* end confdefs.h.  */
3376 #ifdef __STDC__
3377 # include <limits.h>
3378 #else
3379 # include <assert.h>
3380 #endif
3381                      Syntax error
3382 _ACEOF
3383 if { (ac_try="$ac_cpp conftest.$ac_ext"
3384 case "(($ac_try" in
3385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386   *) ac_try_echo=$ac_try;;
3387 esac
3388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3389   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3390   ac_status=$?
3391   grep -v '^ *+' conftest.er1 >conftest.err
3392   rm -f conftest.er1
3393   cat conftest.err >&5
3394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395   (exit $ac_status); } >/dev/null; then
3396   if test -s conftest.err; then
3397     ac_cpp_err=$ac_c_preproc_warn_flag
3398     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3399   else
3400     ac_cpp_err=
3401   fi
3402 else
3403   ac_cpp_err=yes
3404 fi
3405 if test -z "$ac_cpp_err"; then
3406   :
3407 else
3408   echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3410
3411   # Broken: fails on valid input.
3412 continue
3413 fi
3414
3415 rm -f conftest.err conftest.$ac_ext
3416
3417   # OK, works on sane cases.  Now check whether nonexistent headers
3418   # can be detected and how.
3419   cat >conftest.$ac_ext <<_ACEOF
3420 /* confdefs.h.  */
3421 _ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h.  */
3425 #include <ac_nonexistent.h>
3426 _ACEOF
3427 if { (ac_try="$ac_cpp conftest.$ac_ext"
3428 case "(($ac_try" in
3429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430   *) ac_try_echo=$ac_try;;
3431 esac
3432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3434   ac_status=$?
3435   grep -v '^ *+' conftest.er1 >conftest.err
3436   rm -f conftest.er1
3437   cat conftest.err >&5
3438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439   (exit $ac_status); } >/dev/null; then
3440   if test -s conftest.err; then
3441     ac_cpp_err=$ac_c_preproc_warn_flag
3442     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3443   else
3444     ac_cpp_err=
3445   fi
3446 else
3447   ac_cpp_err=yes
3448 fi
3449 if test -z "$ac_cpp_err"; then
3450   # Broken: success on invalid input.
3451 continue
3452 else
3453   echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3455
3456   # Passes both tests.
3457 ac_preproc_ok=:
3458 break
3459 fi
3460
3461 rm -f conftest.err conftest.$ac_ext
3462
3463 done
3464 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3465 rm -f conftest.err conftest.$ac_ext
3466 if $ac_preproc_ok; then
3467   break
3468 fi
3469
3470     done
3471     ac_cv_prog_CPP=$CPP
3472
3473 fi
3474   CPP=$ac_cv_prog_CPP
3475 else
3476   ac_cv_prog_CPP=$CPP
3477 fi
3478 { echo "$as_me:$LINENO: result: $CPP" >&5
3479 echo "${ECHO_T}$CPP" >&6; }
3480 ac_preproc_ok=false
3481 for ac_c_preproc_warn_flag in '' yes
3482 do
3483   # Use a header file that comes with gcc, so configuring glibc
3484   # with a fresh cross-compiler works.
3485   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3486   # <limits.h> exists even on freestanding compilers.
3487   # On the NeXT, cc -E runs the code through the compiler's parser,
3488   # not just through cpp. "Syntax error" is here to catch this case.
3489   cat >conftest.$ac_ext <<_ACEOF
3490 /* confdefs.h.  */
3491 _ACEOF
3492 cat confdefs.h >>conftest.$ac_ext
3493 cat >>conftest.$ac_ext <<_ACEOF
3494 /* end confdefs.h.  */
3495 #ifdef __STDC__
3496 # include <limits.h>
3497 #else
3498 # include <assert.h>
3499 #endif
3500                      Syntax error
3501 _ACEOF
3502 if { (ac_try="$ac_cpp conftest.$ac_ext"
3503 case "(($ac_try" in
3504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505   *) ac_try_echo=$ac_try;;
3506 esac
3507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3508   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3509   ac_status=$?
3510   grep -v '^ *+' conftest.er1 >conftest.err
3511   rm -f conftest.er1
3512   cat conftest.err >&5
3513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514   (exit $ac_status); } >/dev/null; then
3515   if test -s conftest.err; then
3516     ac_cpp_err=$ac_c_preproc_warn_flag
3517     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3518   else
3519     ac_cpp_err=
3520   fi
3521 else
3522   ac_cpp_err=yes
3523 fi
3524 if test -z "$ac_cpp_err"; then
3525   :
3526 else
3527   echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.$ac_ext >&5
3529
3530   # Broken: fails on valid input.
3531 continue
3532 fi
3533
3534 rm -f conftest.err conftest.$ac_ext
3535
3536   # OK, works on sane cases.  Now check whether nonexistent headers
3537   # can be detected and how.
3538   cat >conftest.$ac_ext <<_ACEOF
3539 /* confdefs.h.  */
3540 _ACEOF
3541 cat confdefs.h >>conftest.$ac_ext
3542 cat >>conftest.$ac_ext <<_ACEOF
3543 /* end confdefs.h.  */
3544 #include <ac_nonexistent.h>
3545 _ACEOF
3546 if { (ac_try="$ac_cpp conftest.$ac_ext"
3547 case "(($ac_try" in
3548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549   *) ac_try_echo=$ac_try;;
3550 esac
3551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3553   ac_status=$?
3554   grep -v '^ *+' conftest.er1 >conftest.err
3555   rm -f conftest.er1
3556   cat conftest.err >&5
3557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558   (exit $ac_status); } >/dev/null; then
3559   if test -s conftest.err; then
3560     ac_cpp_err=$ac_c_preproc_warn_flag
3561     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3562   else
3563     ac_cpp_err=
3564   fi
3565 else
3566   ac_cpp_err=yes
3567 fi
3568 if test -z "$ac_cpp_err"; then
3569   # Broken: success on invalid input.
3570 continue
3571 else
3572   echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3574
3575   # Passes both tests.
3576 ac_preproc_ok=:
3577 break
3578 fi
3579
3580 rm -f conftest.err conftest.$ac_ext
3581
3582 done
3583 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3584 rm -f conftest.err conftest.$ac_ext
3585 if $ac_preproc_ok; then
3586   :
3587 else
3588   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3589 See \`config.log' for more details." >&5
3590 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3591 See \`config.log' for more details." >&2;}
3592    { (exit 1); exit 1; }; }
3593 fi
3594
3595 ac_ext=c
3596 ac_cpp='$CPP $CPPFLAGS'
3597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3600
3601
3602 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3603 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3604 if test "${ac_cv_path_GREP+set}" = set; then
3605   echo $ECHO_N "(cached) $ECHO_C" >&6
3606 else
3607   # Extract the first word of "grep ggrep" to use in msg output
3608 if test -z "$GREP"; then
3609 set dummy grep ggrep; ac_prog_name=$2
3610 if test "${ac_cv_path_GREP+set}" = set; then
3611   echo $ECHO_N "(cached) $ECHO_C" >&6
3612 else
3613   ac_path_GREP_found=false
3614 # Loop through the user's path and test for each of PROGNAME-LIST
3615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3617 do
3618   IFS=$as_save_IFS
3619   test -z "$as_dir" && as_dir=.
3620   for ac_prog in grep ggrep; do
3621   for ac_exec_ext in '' $ac_executable_extensions; do
3622     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3623     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3624     # Check for GNU ac_path_GREP and select it if it is found.
3625   # Check for GNU $ac_path_GREP
3626 case `"$ac_path_GREP" --version 2>&1` in
3627 *GNU*)
3628   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3629 *)
3630   ac_count=0
3631   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3632   while :
3633   do
3634     cat "conftest.in" "conftest.in" >"conftest.tmp"
3635     mv "conftest.tmp" "conftest.in"
3636     cp "conftest.in" "conftest.nl"
3637     echo 'GREP' >> "conftest.nl"
3638     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3639     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3640     ac_count=`expr $ac_count + 1`
3641     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3642       # Best one so far, save it but keep looking for a better one
3643       ac_cv_path_GREP="$ac_path_GREP"
3644       ac_path_GREP_max=$ac_count
3645     fi
3646     # 10*(2^10) chars as input seems more than enough
3647     test $ac_count -gt 10 && break
3648   done
3649   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3650 esac
3651
3652
3653     $ac_path_GREP_found && break 3
3654   done
3655 done
3656
3657 done
3658 IFS=$as_save_IFS
3659
3660
3661 fi
3662
3663 GREP="$ac_cv_path_GREP"
3664 if test -z "$GREP"; then
3665   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3666 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3667    { (exit 1); exit 1; }; }
3668 fi
3669
3670 else
3671   ac_cv_path_GREP=$GREP
3672 fi
3673
3674
3675 fi
3676 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3677 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3678  GREP="$ac_cv_path_GREP"
3679
3680
3681 { echo "$as_me:$LINENO: checking for egrep" >&5
3682 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3683 if test "${ac_cv_path_EGREP+set}" = set; then
3684   echo $ECHO_N "(cached) $ECHO_C" >&6
3685 else
3686   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3687    then ac_cv_path_EGREP="$GREP -E"
3688    else
3689      # Extract the first word of "egrep" to use in msg output
3690 if test -z "$EGREP"; then
3691 set dummy egrep; ac_prog_name=$2
3692 if test "${ac_cv_path_EGREP+set}" = set; then
3693   echo $ECHO_N "(cached) $ECHO_C" >&6
3694 else
3695   ac_path_EGREP_found=false
3696 # Loop through the user's path and test for each of PROGNAME-LIST
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3699 do
3700   IFS=$as_save_IFS
3701   test -z "$as_dir" && as_dir=.
3702   for ac_prog in egrep; do
3703   for ac_exec_ext in '' $ac_executable_extensions; do
3704     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3705     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3706     # Check for GNU ac_path_EGREP and select it if it is found.
3707   # Check for GNU $ac_path_EGREP
3708 case `"$ac_path_EGREP" --version 2>&1` in
3709 *GNU*)
3710   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3711 *)
3712   ac_count=0
3713   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3714   while :
3715   do
3716     cat "conftest.in" "conftest.in" >"conftest.tmp"
3717     mv "conftest.tmp" "conftest.in"
3718     cp "conftest.in" "conftest.nl"
3719     echo 'EGREP' >> "conftest.nl"
3720     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3721     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3722     ac_count=`expr $ac_count + 1`
3723     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3724       # Best one so far, save it but keep looking for a better one
3725       ac_cv_path_EGREP="$ac_path_EGREP"
3726       ac_path_EGREP_max=$ac_count
3727     fi
3728     # 10*(2^10) chars as input seems more than enough
3729     test $ac_count -gt 10 && break
3730   done
3731   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3732 esac
3733
3734
3735     $ac_path_EGREP_found && break 3
3736   done
3737 done
3738
3739 done
3740 IFS=$as_save_IFS
3741
3742
3743 fi
3744
3745 EGREP="$ac_cv_path_EGREP"
3746 if test -z "$EGREP"; then
3747   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3748 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3749    { (exit 1); exit 1; }; }
3750 fi
3751
3752 else
3753   ac_cv_path_EGREP=$EGREP
3754 fi
3755
3756
3757    fi
3758 fi
3759 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3760 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3761  EGREP="$ac_cv_path_EGREP"
3762
3763
3764 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3765 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3766 if test "${ac_cv_header_stdc+set}" = set; then
3767   echo $ECHO_N "(cached) $ECHO_C" >&6
3768 else
3769   cat >conftest.$ac_ext <<_ACEOF
3770 /* confdefs.h.  */
3771 _ACEOF
3772 cat confdefs.h >>conftest.$ac_ext
3773 cat >>conftest.$ac_ext <<_ACEOF
3774 /* end confdefs.h.  */
3775 #include <stdlib.h>
3776 #include <stdarg.h>
3777 #include <string.h>
3778 #include <float.h>
3779
3780 int
3781 main ()
3782 {
3783
3784   ;
3785   return 0;
3786 }
3787 _ACEOF
3788 rm -f conftest.$ac_objext
3789 if { (ac_try="$ac_compile"
3790 case "(($ac_try" in
3791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792   *) ac_try_echo=$ac_try;;
3793 esac
3794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3795   (eval "$ac_compile") 2>conftest.er1
3796   ac_status=$?
3797   grep -v '^ *+' conftest.er1 >conftest.err
3798   rm -f conftest.er1
3799   cat conftest.err >&5
3800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801   (exit $ac_status); } &&
3802          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3803   { (case "(($ac_try" in
3804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805   *) ac_try_echo=$ac_try;;
3806 esac
3807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3808   (eval "$ac_try") 2>&5
3809   ac_status=$?
3810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811   (exit $ac_status); }; } &&
3812          { ac_try='test -s conftest.$ac_objext'
3813   { (case "(($ac_try" in
3814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815   *) ac_try_echo=$ac_try;;
3816 esac
3817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3818   (eval "$ac_try") 2>&5
3819   ac_status=$?
3820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821   (exit $ac_status); }; }; then
3822   ac_cv_header_stdc=yes
3823 else
3824   echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3826
3827         ac_cv_header_stdc=no
3828 fi
3829
3830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3831
3832 if test $ac_cv_header_stdc = yes; then
3833   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3834   cat >conftest.$ac_ext <<_ACEOF
3835 /* confdefs.h.  */
3836 _ACEOF
3837 cat confdefs.h >>conftest.$ac_ext
3838 cat >>conftest.$ac_ext <<_ACEOF
3839 /* end confdefs.h.  */
3840 #include <string.h>
3841
3842 _ACEOF
3843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3844   $EGREP "memchr" >/dev/null 2>&1; then
3845   :
3846 else
3847   ac_cv_header_stdc=no
3848 fi
3849 rm -f conftest*
3850
3851 fi
3852
3853 if test $ac_cv_header_stdc = yes; then
3854   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3855   cat >conftest.$ac_ext <<_ACEOF
3856 /* confdefs.h.  */
3857 _ACEOF
3858 cat confdefs.h >>conftest.$ac_ext
3859 cat >>conftest.$ac_ext <<_ACEOF
3860 /* end confdefs.h.  */
3861 #include <stdlib.h>
3862
3863 _ACEOF
3864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3865   $EGREP "free" >/dev/null 2>&1; then
3866   :
3867 else
3868   ac_cv_header_stdc=no
3869 fi
3870 rm -f conftest*
3871
3872 fi
3873
3874 if test $ac_cv_header_stdc = yes; then
3875   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3876   if test "$cross_compiling" = yes; then
3877   :
3878 else
3879   cat >conftest.$ac_ext <<_ACEOF
3880 /* confdefs.h.  */
3881 _ACEOF
3882 cat confdefs.h >>conftest.$ac_ext
3883 cat >>conftest.$ac_ext <<_ACEOF
3884 /* end confdefs.h.  */
3885 #include <ctype.h>
3886 #include <stdlib.h>
3887 #if ((' ' & 0x0FF) == 0x020)
3888 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3889 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3890 #else
3891 # define ISLOWER(c) \
3892                    (('a' <= (c) && (c) <= 'i') \
3893                      || ('j' <= (c) && (c) <= 'r') \
3894                      || ('s' <= (c) && (c) <= 'z'))
3895 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3896 #endif
3897
3898 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3899 int
3900 main ()
3901 {
3902   int i;
3903   for (i = 0; i < 256; i++)
3904     if (XOR (islower (i), ISLOWER (i))
3905         || toupper (i) != TOUPPER (i))
3906       return 2;
3907   return 0;
3908 }
3909 _ACEOF
3910 rm -f conftest$ac_exeext
3911 if { (ac_try="$ac_link"
3912 case "(($ac_try" in
3913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914   *) ac_try_echo=$ac_try;;
3915 esac
3916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3917   (eval "$ac_link") 2>&5
3918   ac_status=$?
3919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3921   { (case "(($ac_try" in
3922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3923   *) ac_try_echo=$ac_try;;
3924 esac
3925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3926   (eval "$ac_try") 2>&5
3927   ac_status=$?
3928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929   (exit $ac_status); }; }; then
3930   :
3931 else
3932   echo "$as_me: program exited with status $ac_status" >&5
3933 echo "$as_me: failed program was:" >&5
3934 sed 's/^/| /' conftest.$ac_ext >&5
3935
3936 ( exit $ac_status )
3937 ac_cv_header_stdc=no
3938 fi
3939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3940 fi
3941
3942
3943 fi
3944 fi
3945 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3946 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3947 if test $ac_cv_header_stdc = yes; then
3948
3949 cat >>confdefs.h <<\_ACEOF
3950 #define STDC_HEADERS 1
3951 _ACEOF
3952
3953 fi
3954
3955 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3966                   inttypes.h stdint.h unistd.h
3967 do
3968 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3969 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3972   echo $ECHO_N "(cached) $ECHO_C" >&6
3973 else
3974   cat >conftest.$ac_ext <<_ACEOF
3975 /* confdefs.h.  */
3976 _ACEOF
3977 cat confdefs.h >>conftest.$ac_ext
3978 cat >>conftest.$ac_ext <<_ACEOF
3979 /* end confdefs.h.  */
3980 $ac_includes_default
3981
3982 #include <$ac_header>
3983 _ACEOF
3984 rm -f conftest.$ac_objext
3985 if { (ac_try="$ac_compile"
3986 case "(($ac_try" in
3987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988   *) ac_try_echo=$ac_try;;
3989 esac
3990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3991   (eval "$ac_compile") 2>conftest.er1
3992   ac_status=$?
3993   grep -v '^ *+' conftest.er1 >conftest.err
3994   rm -f conftest.er1
3995   cat conftest.err >&5
3996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997   (exit $ac_status); } &&
3998          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3999   { (case "(($ac_try" in
4000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001   *) ac_try_echo=$ac_try;;
4002 esac
4003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4004   (eval "$ac_try") 2>&5
4005   ac_status=$?
4006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007   (exit $ac_status); }; } &&
4008          { ac_try='test -s conftest.$ac_objext'
4009   { (case "(($ac_try" in
4010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011   *) ac_try_echo=$ac_try;;
4012 esac
4013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4014   (eval "$ac_try") 2>&5
4015   ac_status=$?
4016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017   (exit $ac_status); }; }; then
4018   eval "$as_ac_Header=yes"
4019 else
4020   echo "$as_me: failed program was:" >&5
4021 sed 's/^/| /' conftest.$ac_ext >&5
4022
4023         eval "$as_ac_Header=no"
4024 fi
4025
4026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4027 fi
4028 ac_res=`eval echo '${'$as_ac_Header'}'`
4029                { echo "$as_me:$LINENO: result: $ac_res" >&5
4030 echo "${ECHO_T}$ac_res" >&6; }
4031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4032   cat >>confdefs.h <<_ACEOF
4033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4034 _ACEOF
4035
4036 fi
4037
4038 done
4039
4040
4041 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4042 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4043 if test "${ac_cv_c_bigendian+set}" = set; then
4044   echo $ECHO_N "(cached) $ECHO_C" >&6
4045 else
4046   # See if sys/param.h defines the BYTE_ORDER macro.
4047 cat >conftest.$ac_ext <<_ACEOF
4048 /* confdefs.h.  */
4049 _ACEOF
4050 cat confdefs.h >>conftest.$ac_ext
4051 cat >>conftest.$ac_ext <<_ACEOF
4052 /* end confdefs.h.  */
4053 #include <sys/types.h>
4054 #include <sys/param.h>
4055
4056 int
4057 main ()
4058 {
4059 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4060  bogus endian macros
4061 #endif
4062
4063   ;
4064   return 0;
4065 }
4066 _ACEOF
4067 rm -f conftest.$ac_objext
4068 if { (ac_try="$ac_compile"
4069 case "(($ac_try" in
4070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071   *) ac_try_echo=$ac_try;;
4072 esac
4073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4074   (eval "$ac_compile") 2>conftest.er1
4075   ac_status=$?
4076   grep -v '^ *+' conftest.er1 >conftest.err
4077   rm -f conftest.er1
4078   cat conftest.err >&5
4079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080   (exit $ac_status); } &&
4081          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4082   { (case "(($ac_try" in
4083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084   *) ac_try_echo=$ac_try;;
4085 esac
4086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087   (eval "$ac_try") 2>&5
4088   ac_status=$?
4089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090   (exit $ac_status); }; } &&
4091          { ac_try='test -s conftest.$ac_objext'
4092   { (case "(($ac_try" in
4093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094   *) ac_try_echo=$ac_try;;
4095 esac
4096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4097   (eval "$ac_try") 2>&5
4098   ac_status=$?
4099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100   (exit $ac_status); }; }; then
4101   # It does; now see whether it defined to BIG_ENDIAN or not.
4102 cat >conftest.$ac_ext <<_ACEOF
4103 /* confdefs.h.  */
4104 _ACEOF
4105 cat confdefs.h >>conftest.$ac_ext
4106 cat >>conftest.$ac_ext <<_ACEOF
4107 /* end confdefs.h.  */
4108 #include <sys/types.h>
4109 #include <sys/param.h>
4110
4111 int
4112 main ()
4113 {
4114 #if BYTE_ORDER != BIG_ENDIAN
4115  not big endian
4116 #endif
4117
4118   ;
4119   return 0;
4120 }
4121 _ACEOF
4122 rm -f conftest.$ac_objext
4123 if { (ac_try="$ac_compile"
4124 case "(($ac_try" in
4125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4126   *) ac_try_echo=$ac_try;;
4127 esac
4128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4129   (eval "$ac_compile") 2>conftest.er1
4130   ac_status=$?
4131   grep -v '^ *+' conftest.er1 >conftest.err
4132   rm -f conftest.er1
4133   cat conftest.err >&5
4134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135   (exit $ac_status); } &&
4136          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4137   { (case "(($ac_try" in
4138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139   *) ac_try_echo=$ac_try;;
4140 esac
4141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142   (eval "$ac_try") 2>&5
4143   ac_status=$?
4144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145   (exit $ac_status); }; } &&
4146          { ac_try='test -s conftest.$ac_objext'
4147   { (case "(($ac_try" in
4148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149   *) ac_try_echo=$ac_try;;
4150 esac
4151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152   (eval "$ac_try") 2>&5
4153   ac_status=$?
4154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155   (exit $ac_status); }; }; then
4156   ac_cv_c_bigendian=yes
4157 else
4158   echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4160
4161         ac_cv_c_bigendian=no
4162 fi
4163
4164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4165 else
4166   echo "$as_me: failed program was:" >&5
4167 sed 's/^/| /' conftest.$ac_ext >&5
4168
4169         # It does not; compile a test program.
4170 if test "$cross_compiling" = yes; then
4171   # try to guess the endianness by grepping values into an object file
4172   ac_cv_c_bigendian=unknown
4173   cat >conftest.$ac_ext <<_ACEOF
4174 /* confdefs.h.  */
4175 _ACEOF
4176 cat confdefs.h >>conftest.$ac_ext
4177 cat >>conftest.$ac_ext <<_ACEOF
4178 /* end confdefs.h.  */
4179 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4180 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4181 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4182 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4183 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4184 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4185 int
4186 main ()
4187 {
4188  _ascii (); _ebcdic ();
4189   ;
4190   return 0;
4191 }
4192 _ACEOF
4193 rm -f conftest.$ac_objext
4194 if { (ac_try="$ac_compile"
4195 case "(($ac_try" in
4196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4197   *) ac_try_echo=$ac_try;;
4198 esac
4199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4200   (eval "$ac_compile") 2>conftest.er1
4201   ac_status=$?
4202   grep -v '^ *+' conftest.er1 >conftest.err
4203   rm -f conftest.er1
4204   cat conftest.err >&5
4205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206   (exit $ac_status); } &&
4207          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4208   { (case "(($ac_try" in
4209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210   *) ac_try_echo=$ac_try;;
4211 esac
4212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4213   (eval "$ac_try") 2>&5
4214   ac_status=$?
4215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216   (exit $ac_status); }; } &&
4217          { ac_try='test -s conftest.$ac_objext'
4218   { (case "(($ac_try" in
4219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220   *) ac_try_echo=$ac_try;;
4221 esac
4222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223   (eval "$ac_try") 2>&5
4224   ac_status=$?
4225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226   (exit $ac_status); }; }; then
4227   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4228   ac_cv_c_bigendian=yes
4229 fi
4230 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4231   if test "$ac_cv_c_bigendian" = unknown; then
4232     ac_cv_c_bigendian=no
4233   else
4234     # finding both strings is unlikely to happen, but who knows?
4235     ac_cv_c_bigendian=unknown
4236   fi
4237 fi
4238 else
4239   echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4241
4242
4243 fi
4244
4245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4246 else
4247   cat >conftest.$ac_ext <<_ACEOF
4248 /* confdefs.h.  */
4249 _ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h.  */
4253 $ac_includes_default
4254 int
4255 main ()
4256 {
4257
4258   /* Are we little or big endian?  From Harbison&Steele.  */
4259   union
4260   {
4261     long int l;
4262     char c[sizeof (long int)];
4263   } u;
4264   u.l = 1;
4265   return u.c[sizeof (long int) - 1] == 1;
4266
4267   ;
4268   return 0;
4269 }
4270 _ACEOF
4271 rm -f conftest$ac_exeext
4272 if { (ac_try="$ac_link"
4273 case "(($ac_try" in
4274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275   *) ac_try_echo=$ac_try;;
4276 esac
4277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4278   (eval "$ac_link") 2>&5
4279   ac_status=$?
4280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4282   { (case "(($ac_try" in
4283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284   *) ac_try_echo=$ac_try;;
4285 esac
4286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4287   (eval "$ac_try") 2>&5
4288   ac_status=$?
4289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290   (exit $ac_status); }; }; then
4291   ac_cv_c_bigendian=no
4292 else
4293   echo "$as_me: program exited with status $ac_status" >&5
4294 echo "$as_me: failed program was:" >&5
4295 sed 's/^/| /' conftest.$ac_ext >&5
4296
4297 ( exit $ac_status )
4298 ac_cv_c_bigendian=yes
4299 fi
4300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4301 fi
4302
4303
4304 fi
4305
4306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4307 fi
4308 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4309 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4310 case $ac_cv_c_bigendian in
4311   yes)
4312     ENDIAN=big
4313  ;;
4314   no)
4315     ENDIAN=little
4316  ;;
4317   *)
4318     { { echo "$as_me:$LINENO: error: unknown endianness
4319 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4320 echo "$as_me: error: unknown endianness
4321 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4322    { (exit 1); exit 1; }; } ;;
4323 esac
4324
4325
4326 if test "$cross_compiling" = yes; then
4327   LLVM_CROSS_COMPILING=1
4328
4329
4330 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4331 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4332 if test "${ac_cv_build_exeext+set}" = set; then
4333   echo $ECHO_N "(cached) $ECHO_C" >&6
4334 else
4335   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4336   ac_cv_build_exeext=.exe
4337 else
4338   ac_build_prefix=${build_alias}-
4339
4340   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4341 set dummy ${ac_build_prefix}gcc; ac_word=$2
4342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4344 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4345   echo $ECHO_N "(cached) $ECHO_C" >&6
4346 else
4347   if test -n "$BUILD_CC"; then
4348   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4349 else
4350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351 for as_dir in $PATH
4352 do
4353   IFS=$as_save_IFS
4354   test -z "$as_dir" && as_dir=.
4355   for ac_exec_ext in '' $ac_executable_extensions; do
4356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4357     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4359     break 2
4360   fi
4361 done
4362 done
4363 IFS=$as_save_IFS
4364
4365 fi
4366 fi
4367 BUILD_CC=$ac_cv_prog_BUILD_CC
4368 if test -n "$BUILD_CC"; then
4369   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4370 echo "${ECHO_T}$BUILD_CC" >&6; }
4371 else
4372   { echo "$as_me:$LINENO: result: no" >&5
4373 echo "${ECHO_T}no" >&6; }
4374 fi
4375
4376
4377   if test -z "$BUILD_CC"; then
4378      # Extract the first word of "gcc", so it can be a program name with args.
4379 set dummy gcc; ac_word=$2
4380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4382 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4383   echo $ECHO_N "(cached) $ECHO_C" >&6
4384 else
4385   if test -n "$BUILD_CC"; then
4386   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4387 else
4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389 for as_dir in $PATH
4390 do
4391   IFS=$as_save_IFS
4392   test -z "$as_dir" && as_dir=.
4393   for ac_exec_ext in '' $ac_executable_extensions; do
4394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4395     ac_cv_prog_BUILD_CC="gcc"
4396     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4397     break 2
4398   fi
4399 done
4400 done
4401 IFS=$as_save_IFS
4402
4403 fi
4404 fi
4405 BUILD_CC=$ac_cv_prog_BUILD_CC
4406 if test -n "$BUILD_CC"; then
4407   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4408 echo "${ECHO_T}$BUILD_CC" >&6; }
4409 else
4410   { echo "$as_me:$LINENO: result: no" >&5
4411 echo "${ECHO_T}no" >&6; }
4412 fi
4413
4414
4415      if test -z "$BUILD_CC"; then
4416        # Extract the first word of "cc", so it can be a program name with args.
4417 set dummy cc; ac_word=$2
4418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4420 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4421   echo $ECHO_N "(cached) $ECHO_C" >&6
4422 else
4423   if test -n "$BUILD_CC"; then
4424   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4425 else
4426   ac_prog_rejected=no
4427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428 for as_dir in $PATH
4429 do
4430   IFS=$as_save_IFS
4431   test -z "$as_dir" && as_dir=.
4432   for ac_exec_ext in '' $ac_executable_extensions; do
4433   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4434     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4435        ac_prog_rejected=yes
4436        continue
4437      fi
4438     ac_cv_prog_BUILD_CC="cc"
4439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4440     break 2
4441   fi
4442 done
4443 done
4444 IFS=$as_save_IFS
4445
4446 if test $ac_prog_rejected = yes; then
4447   # We found a bogon in the path, so make sure we never use it.
4448   set dummy $ac_cv_prog_BUILD_CC
4449   shift
4450   if test $# != 0; then
4451     # We chose a different compiler from the bogus one.
4452     # However, it has the same basename, so the bogon will be chosen
4453     # first if we set BUILD_CC to just the basename; use the full file name.
4454     shift
4455     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4456   fi
4457 fi
4458 fi
4459 fi
4460 BUILD_CC=$ac_cv_prog_BUILD_CC
4461 if test -n "$BUILD_CC"; then
4462   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4463 echo "${ECHO_T}$BUILD_CC" >&6; }
4464 else
4465   { echo "$as_me:$LINENO: result: no" >&5
4466 echo "${ECHO_T}no" >&6; }
4467 fi
4468
4469
4470      fi
4471   fi
4472   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4473 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4474    { (exit 1); exit 1; }; }
4475   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4476   rm -f conftest*
4477   echo 'int main () { return 0; }' > conftest.$ac_ext
4478   ac_cv_build_exeext=
4479   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4480   (eval $ac_build_link) 2>&5
4481   ac_status=$?
4482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483   (exit $ac_status); }; then
4484     for file in conftest.*; do
4485       case $file in
4486       *.c | *.o | *.obj | *.dSYM) ;;
4487       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4488       esac
4489     done
4490   else
4491     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4492 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4493    { (exit 1); exit 1; }; }
4494   fi
4495   rm -f conftest*
4496   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4497 fi
4498 fi
4499
4500 BUILD_EXEEXT=""
4501 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4502 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4503 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4504 ac_build_exeext=$BUILD_EXEEXT
4505
4506   ac_build_prefix=${build_alias}-
4507   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4508 set dummy ${ac_build_prefix}g++; ac_word=$2
4509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4511 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4512   echo $ECHO_N "(cached) $ECHO_C" >&6
4513 else
4514   if test -n "$BUILD_CXX"; then
4515   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4516 else
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH
4519 do
4520   IFS=$as_save_IFS
4521   test -z "$as_dir" && as_dir=.
4522   for ac_exec_ext in '' $ac_executable_extensions; do
4523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4524     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4525     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4526     break 2
4527   fi
4528 done
4529 done
4530 IFS=$as_save_IFS
4531
4532 fi
4533 fi
4534 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4535 if test -n "$BUILD_CXX"; then
4536   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4537 echo "${ECHO_T}$BUILD_CXX" >&6; }
4538 else
4539   { echo "$as_me:$LINENO: result: no" >&5
4540 echo "${ECHO_T}no" >&6; }
4541 fi
4542
4543
4544   if test -z "$BUILD_CXX"; then
4545      # Extract the first word of "g++", so it can be a program name with args.
4546 set dummy g++; ac_word=$2
4547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4549 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4550   echo $ECHO_N "(cached) $ECHO_C" >&6
4551 else
4552   if test -n "$BUILD_CXX"; then
4553   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4554 else
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 for as_dir in $PATH
4557 do
4558   IFS=$as_save_IFS
4559   test -z "$as_dir" && as_dir=.
4560   for ac_exec_ext in '' $ac_executable_extensions; do
4561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4562     ac_cv_prog_BUILD_CXX="g++"
4563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4564     break 2
4565   fi
4566 done
4567 done
4568 IFS=$as_save_IFS
4569
4570 fi
4571 fi
4572 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4573 if test -n "$BUILD_CXX"; then
4574   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4575 echo "${ECHO_T}$BUILD_CXX" >&6; }
4576 else
4577   { echo "$as_me:$LINENO: result: no" >&5
4578 echo "${ECHO_T}no" >&6; }
4579 fi
4580
4581
4582      if test -z "$BUILD_CXX"; then
4583        # Extract the first word of "c++", so it can be a program name with args.
4584 set dummy c++; ac_word=$2
4585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4587 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4588   echo $ECHO_N "(cached) $ECHO_C" >&6
4589 else
4590   if test -n "$BUILD_CXX"; then
4591   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4592 else
4593   ac_prog_rejected=no
4594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 for as_dir in $PATH
4596 do
4597   IFS=$as_save_IFS
4598   test -z "$as_dir" && as_dir=.
4599   for ac_exec_ext in '' $ac_executable_extensions; do
4600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4601     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4602        ac_prog_rejected=yes
4603        continue
4604      fi
4605     ac_cv_prog_BUILD_CXX="c++"
4606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4607     break 2
4608   fi
4609 done
4610 done
4611 IFS=$as_save_IFS
4612
4613 if test $ac_prog_rejected = yes; then
4614   # We found a bogon in the path, so make sure we never use it.
4615   set dummy $ac_cv_prog_BUILD_CXX
4616   shift
4617   if test $# != 0; then
4618     # We chose a different compiler from the bogus one.
4619     # However, it has the same basename, so the bogon will be chosen
4620     # first if we set BUILD_CXX to just the basename; use the full file name.
4621     shift
4622     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4623   fi
4624 fi
4625 fi
4626 fi
4627 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4628 if test -n "$BUILD_CXX"; then
4629   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4630 echo "${ECHO_T}$BUILD_CXX" >&6; }
4631 else
4632   { echo "$as_me:$LINENO: result: no" >&5
4633 echo "${ECHO_T}no" >&6; }
4634 fi
4635
4636
4637      fi
4638   fi
4639 else
4640   LLVM_CROSS_COMPILING=0
4641
4642 fi
4643
4644 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4645   cvsbuild="yes"
4646   optimize="no"
4647   CVSBUILD=CVSBUILD=1
4648
4649 else
4650   cvsbuild="no"
4651   optimize="yes"
4652 fi
4653
4654
4655 # Check whether --enable-optimized was given.
4656 if test "${enable_optimized+set}" = set; then
4657   enableval=$enable_optimized;
4658 else
4659   enableval=$optimize
4660 fi
4661
4662 if test ${enableval} = "no" ; then
4663   ENABLE_OPTIMIZED=
4664
4665 else
4666   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4667
4668 fi
4669
4670 # Check whether --enable-profiling was given.
4671 if test "${enable_profiling+set}" = set; then
4672   enableval=$enable_profiling;
4673 else
4674   enableval="no"
4675 fi
4676
4677 if test ${enableval} = "no" ; then
4678   ENABLE_PROFILING=
4679
4680 else
4681   ENABLE_PROFILING=ENABLE_PROFILING=1
4682
4683 fi
4684
4685 # Check whether --enable-assertions was given.
4686 if test "${enable_assertions+set}" = set; then
4687   enableval=$enable_assertions;
4688 else
4689   enableval="yes"
4690 fi
4691
4692 if test ${enableval} = "yes" ; then
4693   DISABLE_ASSERTIONS=
4694
4695 else
4696   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4697
4698 fi
4699
4700 # Check whether --enable-expensive-checks was given.
4701 if test "${enable_expensive_checks+set}" = set; then
4702   enableval=$enable_expensive_checks;
4703 else
4704   enableval="no"
4705 fi
4706
4707 if test ${enableval} = "yes" ; then
4708   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4709
4710   EXPENSIVE_CHECKS=yes
4711
4712 else
4713   ENABLE_EXPENSIVE_CHECKS=
4714
4715   EXPENSIVE_CHECKS=no
4716
4717 fi
4718
4719 # Check whether --enable-debug-runtime was given.
4720 if test "${enable_debug_runtime+set}" = set; then
4721   enableval=$enable_debug_runtime;
4722 else
4723   enableval=no
4724 fi
4725
4726 if test ${enableval} = "no" ; then
4727   DEBUG_RUNTIME=
4728
4729 else
4730   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4731
4732 fi
4733
4734 # Check whether --enable-debug-symbols was given.
4735 if test "${enable_debug_symbols+set}" = set; then
4736   enableval=$enable_debug_symbols;
4737 else
4738   enableval=no
4739 fi
4740
4741 if test ${enableval} = "no" ; then
4742   DEBUG_SYMBOLS=
4743
4744 else
4745   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4746
4747 fi
4748
4749 # Check whether --enable-jit was given.
4750 if test "${enable_jit+set}" = set; then
4751   enableval=$enable_jit;
4752 else
4753   enableval=default
4754 fi
4755
4756 if test ${enableval} = "no"
4757 then
4758   JIT=
4759
4760 else
4761   case "$llvm_cv_target_arch" in
4762     x86)         TARGET_HAS_JIT=1
4763  ;;
4764     Sparc)       TARGET_HAS_JIT=0
4765  ;;
4766     PowerPC)     TARGET_HAS_JIT=1
4767  ;;
4768     x86_64)      TARGET_HAS_JIT=1
4769  ;;
4770     Alpha)       TARGET_HAS_JIT=1
4771  ;;
4772     ARM)         TARGET_HAS_JIT=1
4773  ;;
4774     Mips)        TARGET_HAS_JIT=0
4775  ;;
4776     PIC16)       TARGET_HAS_JIT=0
4777  ;;
4778     XCore)       TARGET_HAS_JIT=0
4779  ;;
4780     MSP430)      TARGET_HAS_JIT=0
4781  ;;
4782     SystemZ)     TARGET_HAS_JIT=0
4783  ;;
4784     Blackfin)    TARGET_HAS_JIT=0
4785  ;;
4786     *)           TARGET_HAS_JIT=0
4787  ;;
4788   esac
4789 fi
4790
4791 # Check whether --enable-doxygen was given.
4792 if test "${enable_doxygen+set}" = set; then
4793   enableval=$enable_doxygen;
4794 else
4795   enableval=default
4796 fi
4797
4798 case "$enableval" in
4799   yes) ENABLE_DOXYGEN=1
4800  ;;
4801   no)  ENABLE_DOXYGEN=0
4802  ;;
4803   default) ENABLE_DOXYGEN=0
4804  ;;
4805   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4806 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4807    { (exit 1); exit 1; }; } ;;
4808 esac
4809
4810 # Check whether --enable-threads was given.
4811 if test "${enable_threads+set}" = set; then
4812   enableval=$enable_threads;
4813 else
4814   enableval=default
4815 fi
4816
4817 case "$enableval" in
4818   yes) ENABLE_THREADS=1
4819  ;;
4820   no)  ENABLE_THREADS=0
4821  ;;
4822   default) ENABLE_THREADS=1
4823  ;;
4824   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4825 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4826    { (exit 1); exit 1; }; } ;;
4827 esac
4828
4829 cat >>confdefs.h <<_ACEOF
4830 #define ENABLE_THREADS $ENABLE_THREADS
4831 _ACEOF
4832
4833
4834 # Check whether --enable-pic was given.
4835 if test "${enable_pic+set}" = set; then
4836   enableval=$enable_pic;
4837 else
4838   enableval=default
4839 fi
4840
4841 case "$enableval" in
4842   yes) ENABLE_PIC=1
4843  ;;
4844   no)  ENABLE_PIC=0
4845  ;;
4846   default) ENABLE_PIC=1
4847  ;;
4848   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4849 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4850    { (exit 1); exit 1; }; } ;;
4851 esac
4852
4853 cat >>confdefs.h <<_ACEOF
4854 #define ENABLE_PIC $ENABLE_PIC
4855 _ACEOF
4856
4857
4858 TARGETS_TO_BUILD=""
4859 # Check whether --enable-targets was given.
4860 if test "${enable_targets+set}" = set; then
4861   enableval=$enable_targets;
4862 else
4863   enableval=all
4864 fi
4865
4866 if test "$enableval" = host-only ; then
4867   enableval=host
4868 fi
4869 case "$enableval" in
4870   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
4871   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4872       case "$a_target" in
4873         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4874         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4875         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4876         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4877         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4878         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4879         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4880         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4881         pic16)    TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4882         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4883         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4884         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4885         blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4886         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4887         msil)     TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4888         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4889         host) case "$llvm_cv_target_arch" in
4890             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4891             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4892             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4893             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4894             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4895             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4896             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4897             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4898             PIC16)       TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4899             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4900             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4901             s390x)       TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4902             Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4903             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4904 echo "$as_me: error: Can not set target to build" >&2;}
4905    { (exit 1); exit 1; }; } ;;
4906           esac ;;
4907         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4908 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4909    { (exit 1); exit 1; }; } ;;
4910       esac
4911   done
4912   ;;
4913 esac
4914 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4915
4916
4917 # Determine whether we are building LLVM support for the native architecture.
4918 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4919 for a_target in $TARGETS_TO_BUILD; do
4920   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4921     LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4922
4923 cat >>confdefs.h <<_ACEOF
4924 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4925 _ACEOF
4926
4927   fi
4928 done
4929
4930 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4931 # target feature def files.
4932 LLVM_ENUM_TARGETS=""
4933 LLVM_ENUM_ASM_PRINTERS=""
4934 LLVM_ENUM_ASM_PARSERS=""
4935 LLVM_ENUM_DISASSEMBLERS=""
4936 for target_to_build in $TARGETS_TO_BUILD; do
4937   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4938   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4939     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4940   fi
4941   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
4942     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
4943   fi
4944   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
4945     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
4946   fi
4947 done
4948
4949
4950
4951
4952
4953 # Check whether --enable-cbe-printf-a was given.
4954 if test "${enable_cbe_printf_a+set}" = set; then
4955   enableval=$enable_cbe_printf_a;
4956 else
4957   enableval=default
4958 fi
4959
4960 case "$enableval" in
4961   yes) ENABLE_CBE_PRINTF_A=1
4962  ;;
4963   no)  ENABLE_CBE_PRINTF_A=0
4964  ;;
4965   default)  ENABLE_CBE_PRINTF_A=1
4966  ;;
4967   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4968 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4969    { (exit 1); exit 1; }; } ;;
4970 esac
4971
4972 cat >>confdefs.h <<_ACEOF
4973 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4974 _ACEOF
4975
4976
4977
4978 # Check whether --with-llvmgccdir was given.
4979 if test "${with_llvmgccdir+set}" = set; then
4980   withval=$with_llvmgccdir;
4981 else
4982   withval=default
4983 fi
4984
4985 case "$withval" in
4986   default) WITH_LLVMGCCDIR=default ;;
4987   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4988   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4989 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4990    { (exit 1); exit 1; }; } ;;
4991 esac
4992
4993
4994 # Check whether --with-llvmgcc was given.
4995 if test "${with_llvmgcc+set}" = set; then
4996   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4997       WITH_LLVMGCCDIR=""
4998 fi
4999
5000
5001
5002 # Check whether --with-llvmgxx was given.
5003 if test "${with_llvmgxx+set}" = set; then
5004   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5005     WITH_LLVMGCCDIR=""
5006 fi
5007
5008
5009 if test -n "$LLVMGCC"; then
5010    LLVMGCCCOMMAND="$LLVMGCC"
5011 fi
5012
5013 if test -n "$LLVMGXX"; then
5014    LLVMGXXCOMMAND="$LLVMGXX"
5015 fi
5016
5017 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5018    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5019 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5020    { (exit 1); exit 1; }; };
5021 fi
5022
5023 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5024    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5025 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5026    { (exit 1); exit 1; }; };
5027 fi
5028
5029
5030 # Check whether --with-optimize-option was given.
5031 if test "${with_optimize_option+set}" = set; then
5032   withval=$with_optimize_option;
5033 else
5034   withval=default
5035 fi
5036
5037 { echo "$as_me:$LINENO: checking optimization flags" >&5
5038 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5039 case "$withval" in
5040   default)
5041     case "$llvm_cv_os_type" in
5042     MingW) optimize_option=-O3 ;;
5043     *)     optimize_option=-O2 ;;
5044     esac ;;
5045   *) optimize_option="$withval" ;;
5046 esac
5047 OPTIMIZE_OPTION=$optimize_option
5048
5049 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5050 echo "${ECHO_T}$optimize_option" >&6; }
5051
5052
5053 # Check whether --with-extra-options was given.
5054 if test "${with_extra_options+set}" = set; then
5055   withval=$with_extra_options;
5056 else
5057   withval=default
5058 fi
5059
5060 case "$withval" in
5061   default) EXTRA_OPTIONS= ;;
5062   *) EXTRA_OPTIONS=$withval ;;
5063 esac
5064 EXTRA_OPTIONS=$EXTRA_OPTIONS
5065
5066
5067 # Check whether --enable-bindings was given.
5068 if test "${enable_bindings+set}" = set; then
5069   enableval=$enable_bindings;
5070 else
5071   enableval=default
5072 fi
5073
5074 BINDINGS_TO_BUILD=""
5075 case "$enableval" in
5076   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5077   all ) BINDINGS_TO_BUILD="ocaml" ;;
5078   none | no) BINDINGS_TO_BUILD="" ;;
5079   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5080       case "$a_binding" in
5081         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5082         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5083 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5084    { (exit 1); exit 1; }; } ;;
5085       esac
5086   done
5087   ;;
5088 esac
5089
5090
5091 # Check whether --with-ocaml-libdir was given.
5092 if test "${with_ocaml_libdir+set}" = set; then
5093   withval=$with_ocaml_libdir;
5094 else
5095   withval=auto
5096 fi
5097
5098 case "$withval" in
5099   auto) with_ocaml_libdir="$withval" ;;
5100   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5101   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5102 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5103    { (exit 1); exit 1; }; } ;;
5104 esac
5105
5106
5107 # Check whether --with-c-include-dirs was given.
5108 if test "${with_c_include_dirs+set}" = set; then
5109   withval=$with_c_include_dirs;
5110 else
5111   withval=""
5112 fi
5113
5114
5115 cat >>confdefs.h <<_ACEOF
5116 #define C_INCLUDE_DIRS "$withval"
5117 _ACEOF
5118
5119
5120
5121 # Check whether --with-cxx-include-root was given.
5122 if test "${with_cxx_include_root+set}" = set; then
5123   withval=$with_cxx_include_root;
5124 else
5125   withval=""
5126 fi
5127
5128
5129 cat >>confdefs.h <<_ACEOF
5130 #define CXX_INCLUDE_ROOT "$withval"
5131 _ACEOF
5132
5133
5134
5135 # Check whether --with-cxx-include-arch was given.
5136 if test "${with_cxx_include_arch+set}" = set; then
5137   withval=$with_cxx_include_arch;
5138 else
5139   withval=""
5140 fi
5141
5142
5143 cat >>confdefs.h <<_ACEOF
5144 #define CXX_INCLUDE_ARCH "$withval"
5145 _ACEOF
5146
5147
5148
5149 # Check whether --with-cxx-include-32bit-dir was given.
5150 if test "${with_cxx_include_32bit_dir+set}" = set; then
5151   withval=$with_cxx_include_32bit_dir;
5152 else
5153   withval=""
5154 fi
5155
5156
5157 cat >>confdefs.h <<_ACEOF
5158 #define CXX_INCLUDE_32BIT_DIR "$withval"
5159 _ACEOF
5160
5161
5162
5163 # Check whether --with-cxx-include-64bit-dir was given.
5164 if test "${with_cxx_include_64bit_dir+set}" = set; then
5165   withval=$with_cxx_include_64bit_dir;
5166 else
5167   withval=""
5168 fi
5169
5170
5171 cat >>confdefs.h <<_ACEOF
5172 #define CXX_INCLUDE_64BIT_DIR "$withval"
5173 _ACEOF
5174
5175
5176
5177 # Check whether --with-binutils-include was given.
5178 if test "${with_binutils_include+set}" = set; then
5179   withval=$with_binutils_include;
5180 else
5181   withval=default
5182 fi
5183
5184 case "$withval" in
5185   default) WITH_BINUTILS_INCDIR=default ;;
5186   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5187   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5188 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5189    { (exit 1); exit 1; }; } ;;
5190 esac
5191 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5192   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5193
5194   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5195      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5196      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5197 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5198    { (exit 1); exit 1; }; };
5199   fi
5200 fi
5201
5202 # Check whether --enable-libffi was given.
5203 if test "${enable_libffi+set}" = set; then
5204   enableval=$enable_libffi; case "$enableval" in
5205     yes) llvm_cv_enable_libffi="yes" ;;
5206     no)  llvm_cv_enable_libffi="no"  ;;
5207     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5208 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5209    { (exit 1); exit 1; }; } ;;
5210   esac
5211 else
5212   llvm_cv_enable_libffi=no
5213 fi
5214
5215
5216 if test "$llvm_cv_os_type" = "Win32" ; then
5217    llvmc_dynamic="yes"
5218 else
5219    llvmc_dynamic="no"
5220 fi
5221
5222 # Check whether --enable-llvmc-dynamic was given.
5223 if test "${enable_llvmc_dynamic+set}" = set; then
5224   enableval=$enable_llvmc_dynamic;
5225 else
5226   enableval=$llvmc_dynamic
5227 fi
5228
5229 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5230    ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5231
5232 else
5233    ENABLE_LLVMC_DYNAMIC=
5234
5235 fi
5236
5237 # Check whether --enable-llvmc-dynamic-plugins was given.
5238 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5239   enableval=$enable_llvmc_dynamic_plugins;
5240 else
5241   enableval=yes
5242 fi
5243
5244 if test ${enableval} = "yes" ; then
5245    ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5246
5247 else
5248    ENABLE_LLVMC_DYNAMIC_PLUGINS=
5249
5250 fi
5251
5252
5253 ac_ext=c
5254 ac_cpp='$CPP $CPPFLAGS'
5255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5258 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5259 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5260 # On Suns, sometimes $CPP names a directory.
5261 if test -n "$CPP" && test -d "$CPP"; then
5262   CPP=
5263 fi
5264 if test -z "$CPP"; then
5265   if test "${ac_cv_prog_CPP+set}" = set; then
5266   echo $ECHO_N "(cached) $ECHO_C" >&6
5267 else
5268       # Double quotes because CPP needs to be expanded
5269     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5270     do
5271       ac_preproc_ok=false
5272 for ac_c_preproc_warn_flag in '' yes
5273 do
5274   # Use a header file that comes with gcc, so configuring glibc
5275   # with a fresh cross-compiler works.
5276   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5277   # <limits.h> exists even on freestanding compilers.
5278   # On the NeXT, cc -E runs the code through the compiler's parser,
5279   # not just through cpp. "Syntax error" is here to catch this case.
5280   cat >conftest.$ac_ext <<_ACEOF
5281 /* confdefs.h.  */
5282 _ACEOF
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h.  */
5286 #ifdef __STDC__
5287 # include <limits.h>
5288 #else
5289 # include <assert.h>
5290 #endif
5291                      Syntax error
5292 _ACEOF
5293 if { (ac_try="$ac_cpp conftest.$ac_ext"
5294 case "(($ac_try" in
5295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296   *) ac_try_echo=$ac_try;;
5297 esac
5298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5299   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5300   ac_status=$?
5301   grep -v '^ *+' conftest.er1 >conftest.err
5302   rm -f conftest.er1
5303   cat conftest.err >&5
5304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305   (exit $ac_status); } >/dev/null; then
5306   if test -s conftest.err; then
5307     ac_cpp_err=$ac_c_preproc_warn_flag
5308     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5309   else
5310     ac_cpp_err=
5311   fi
5312 else
5313   ac_cpp_err=yes
5314 fi
5315 if test -z "$ac_cpp_err"; then
5316   :
5317 else
5318   echo "$as_me: failed program was:" >&5
5319 sed 's/^/| /' conftest.$ac_ext >&5
5320
5321   # Broken: fails on valid input.
5322 continue
5323 fi
5324
5325 rm -f conftest.err conftest.$ac_ext
5326
5327   # OK, works on sane cases.  Now check whether nonexistent headers
5328   # can be detected and how.
5329   cat >conftest.$ac_ext <<_ACEOF
5330 /* confdefs.h.  */
5331 _ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h.  */
5335 #include <ac_nonexistent.h>
5336 _ACEOF
5337 if { (ac_try="$ac_cpp conftest.$ac_ext"
5338 case "(($ac_try" in
5339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340   *) ac_try_echo=$ac_try;;
5341 esac
5342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5343   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5344   ac_status=$?
5345   grep -v '^ *+' conftest.er1 >conftest.err
5346   rm -f conftest.er1
5347   cat conftest.err >&5
5348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349   (exit $ac_status); } >/dev/null; then
5350   if test -s conftest.err; then
5351     ac_cpp_err=$ac_c_preproc_warn_flag
5352     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5353   else
5354     ac_cpp_err=
5355   fi
5356 else
5357   ac_cpp_err=yes
5358 fi
5359 if test -z "$ac_cpp_err"; then
5360   # Broken: success on invalid input.
5361 continue
5362 else
5363   echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5365
5366   # Passes both tests.
5367 ac_preproc_ok=:
5368 break
5369 fi
5370
5371 rm -f conftest.err conftest.$ac_ext
5372
5373 done
5374 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5375 rm -f conftest.err conftest.$ac_ext
5376 if $ac_preproc_ok; then
5377   break
5378 fi
5379
5380     done
5381     ac_cv_prog_CPP=$CPP
5382
5383 fi
5384   CPP=$ac_cv_prog_CPP
5385 else
5386   ac_cv_prog_CPP=$CPP
5387 fi
5388 { echo "$as_me:$LINENO: result: $CPP" >&5
5389 echo "${ECHO_T}$CPP" >&6; }
5390 ac_preproc_ok=false
5391 for ac_c_preproc_warn_flag in '' yes
5392 do
5393   # Use a header file that comes with gcc, so configuring glibc
5394   # with a fresh cross-compiler works.
5395   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5396   # <limits.h> exists even on freestanding compilers.
5397   # On the NeXT, cc -E runs the code through the compiler's parser,
5398   # not just through cpp. "Syntax error" is here to catch this case.
5399   cat >conftest.$ac_ext <<_ACEOF
5400 /* confdefs.h.  */
5401 _ACEOF
5402 cat confdefs.h >>conftest.$ac_ext
5403 cat >>conftest.$ac_ext <<_ACEOF
5404 /* end confdefs.h.  */
5405 #ifdef __STDC__
5406 # include <limits.h>
5407 #else
5408 # include <assert.h>
5409 #endif
5410                      Syntax error
5411 _ACEOF
5412 if { (ac_try="$ac_cpp conftest.$ac_ext"
5413 case "(($ac_try" in
5414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5415   *) ac_try_echo=$ac_try;;
5416 esac
5417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5418   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5419   ac_status=$?
5420   grep -v '^ *+' conftest.er1 >conftest.err
5421   rm -f conftest.er1
5422   cat conftest.err >&5
5423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424   (exit $ac_status); } >/dev/null; then
5425   if test -s conftest.err; then
5426     ac_cpp_err=$ac_c_preproc_warn_flag
5427     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5428   else
5429     ac_cpp_err=
5430   fi
5431 else
5432   ac_cpp_err=yes
5433 fi
5434 if test -z "$ac_cpp_err"; then
5435   :
5436 else
5437   echo "$as_me: failed program was:" >&5
5438 sed 's/^/| /' conftest.$ac_ext >&5
5439
5440   # Broken: fails on valid input.
5441 continue
5442 fi
5443
5444 rm -f conftest.err conftest.$ac_ext
5445
5446   # OK, works on sane cases.  Now check whether nonexistent headers
5447   # can be detected and how.
5448   cat >conftest.$ac_ext <<_ACEOF
5449 /* confdefs.h.  */
5450 _ACEOF
5451 cat confdefs.h >>conftest.$ac_ext
5452 cat >>conftest.$ac_ext <<_ACEOF
5453 /* end confdefs.h.  */
5454 #include <ac_nonexistent.h>
5455 _ACEOF
5456 if { (ac_try="$ac_cpp conftest.$ac_ext"
5457 case "(($ac_try" in
5458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5459   *) ac_try_echo=$ac_try;;
5460 esac
5461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5462   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5463   ac_status=$?
5464   grep -v '^ *+' conftest.er1 >conftest.err
5465   rm -f conftest.er1
5466   cat conftest.err >&5
5467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468   (exit $ac_status); } >/dev/null; then
5469   if test -s conftest.err; then
5470     ac_cpp_err=$ac_c_preproc_warn_flag
5471     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5472   else
5473     ac_cpp_err=
5474   fi
5475 else
5476   ac_cpp_err=yes
5477 fi
5478 if test -z "$ac_cpp_err"; then
5479   # Broken: success on invalid input.
5480 continue
5481 else
5482   echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5484
5485   # Passes both tests.
5486 ac_preproc_ok=:
5487 break
5488 fi
5489
5490 rm -f conftest.err conftest.$ac_ext
5491
5492 done
5493 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5494 rm -f conftest.err conftest.$ac_ext
5495 if $ac_preproc_ok; then
5496   :
5497 else
5498   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5499 See \`config.log' for more details." >&5
5500 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5501 See \`config.log' for more details." >&2;}
5502    { (exit 1); exit 1; }; }
5503 fi
5504
5505 ac_ext=c
5506 ac_cpp='$CPP $CPPFLAGS'
5507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5510
5511 ac_ext=c
5512 ac_cpp='$CPP $CPPFLAGS'
5513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5516 if test -n "$ac_tool_prefix"; then
5517   for ac_prog in gcc
5518   do
5519     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5523 if test "${ac_cv_prog_CC+set}" = set; then
5524   echo $ECHO_N "(cached) $ECHO_C" >&6
5525 else
5526   if test -n "$CC"; then
5527   ac_cv_prog_CC="$CC" # Let the user override the test.
5528 else
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 for as_dir in $PATH
5531 do
5532   IFS=$as_save_IFS
5533   test -z "$as_dir" && as_dir=.
5534   for ac_exec_ext in '' $ac_executable_extensions; do
5535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5536     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5538     break 2
5539   fi
5540 done
5541 done
5542 IFS=$as_save_IFS
5543
5544 fi
5545 fi
5546 CC=$ac_cv_prog_CC
5547 if test -n "$CC"; then
5548   { echo "$as_me:$LINENO: result: $CC" >&5
5549 echo "${ECHO_T}$CC" >&6; }
5550 else
5551   { echo "$as_me:$LINENO: result: no" >&5
5552 echo "${ECHO_T}no" >&6; }
5553 fi
5554
5555
5556     test -n "$CC" && break
5557   done
5558 fi
5559 if test -z "$CC"; then
5560   ac_ct_CC=$CC
5561   for ac_prog in gcc
5562 do
5563   # Extract the first word of "$ac_prog", so it can be a program name with args.
5564 set dummy $ac_prog; ac_word=$2
5565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5568   echo $ECHO_N "(cached) $ECHO_C" >&6
5569 else
5570   if test -n "$ac_ct_CC"; then
5571   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5572 else
5573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574 for as_dir in $PATH
5575 do
5576   IFS=$as_save_IFS
5577   test -z "$as_dir" && as_dir=.
5578   for ac_exec_ext in '' $ac_executable_extensions; do
5579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5580     ac_cv_prog_ac_ct_CC="$ac_prog"
5581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5582     break 2
5583   fi
5584 done
5585 done
5586 IFS=$as_save_IFS
5587
5588 fi
5589 fi
5590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5591 if test -n "$ac_ct_CC"; then
5592   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5593 echo "${ECHO_T}$ac_ct_CC" >&6; }
5594 else
5595   { echo "$as_me:$LINENO: result: no" >&5
5596 echo "${ECHO_T}no" >&6; }
5597 fi
5598
5599
5600   test -n "$ac_ct_CC" && break
5601 done
5602
5603   if test "x$ac_ct_CC" = x; then
5604     CC=""
5605   else
5606     case $cross_compiling:$ac_tool_warned in
5607 yes:)
5608 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5609 whose name does not start with the host triplet.  If you think this
5610 configuration is useful to you, please write to autoconf@gnu.org." >&5
5611 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5612 whose name does not start with the host triplet.  If you think this
5613 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5614 ac_tool_warned=yes ;;
5615 esac
5616     CC=$ac_ct_CC
5617   fi
5618 fi
5619
5620
5621 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5622 See \`config.log' for more details." >&5
5623 echo "$as_me: error: no acceptable C compiler found in \$PATH
5624 See \`config.log' for more details." >&2;}
5625    { (exit 1); exit 1; }; }
5626
5627 # Provide some information about the compiler.
5628 echo "$as_me:$LINENO: checking for C compiler version" >&5
5629 ac_compiler=`set X $ac_compile; echo $2`
5630 { (ac_try="$ac_compiler --version >&5"
5631 case "(($ac_try" in
5632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633   *) ac_try_echo=$ac_try;;
5634 esac
5635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636   (eval "$ac_compiler --version >&5") 2>&5
5637   ac_status=$?
5638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639   (exit $ac_status); }
5640 { (ac_try="$ac_compiler -v >&5"
5641 case "(($ac_try" in
5642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643   *) ac_try_echo=$ac_try;;
5644 esac
5645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5646   (eval "$ac_compiler -v >&5") 2>&5
5647   ac_status=$?
5648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649   (exit $ac_status); }
5650 { (ac_try="$ac_compiler -V >&5"
5651 case "(($ac_try" in
5652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5653   *) ac_try_echo=$ac_try;;
5654 esac
5655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5656   (eval "$ac_compiler -V >&5") 2>&5
5657   ac_status=$?
5658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659   (exit $ac_status); }
5660
5661 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5662 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5663 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5664   echo $ECHO_N "(cached) $ECHO_C" >&6
5665 else
5666   cat >conftest.$ac_ext <<_ACEOF
5667 /* confdefs.h.  */
5668 _ACEOF
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h.  */
5672
5673 int
5674 main ()
5675 {
5676 #ifndef __GNUC__
5677        choke me
5678 #endif
5679
5680   ;
5681   return 0;
5682 }
5683 _ACEOF
5684 rm -f conftest.$ac_objext
5685 if { (ac_try="$ac_compile"
5686 case "(($ac_try" in
5687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5688   *) ac_try_echo=$ac_try;;
5689 esac
5690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5691   (eval "$ac_compile") 2>conftest.er1
5692   ac_status=$?
5693   grep -v '^ *+' conftest.er1 >conftest.err
5694   rm -f conftest.er1
5695   cat conftest.err >&5
5696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697   (exit $ac_status); } &&
5698          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5699   { (case "(($ac_try" in
5700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701   *) ac_try_echo=$ac_try;;
5702 esac
5703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5704   (eval "$ac_try") 2>&5
5705   ac_status=$?
5706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707   (exit $ac_status); }; } &&
5708          { ac_try='test -s conftest.$ac_objext'
5709   { (case "(($ac_try" in
5710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5711   *) ac_try_echo=$ac_try;;
5712 esac
5713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5714   (eval "$ac_try") 2>&5
5715   ac_status=$?
5716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717   (exit $ac_status); }; }; then
5718   ac_compiler_gnu=yes
5719 else
5720   echo "$as_me: failed program was:" >&5
5721 sed 's/^/| /' conftest.$ac_ext >&5
5722
5723         ac_compiler_gnu=no
5724 fi
5725
5726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5727 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5728
5729 fi
5730 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5731 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5732 GCC=`test $ac_compiler_gnu = yes && echo yes`
5733 ac_test_CFLAGS=${CFLAGS+set}
5734 ac_save_CFLAGS=$CFLAGS
5735 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5736 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5737 if test "${ac_cv_prog_cc_g+set}" = set; then
5738   echo $ECHO_N "(cached) $ECHO_C" >&6
5739 else
5740   ac_save_c_werror_flag=$ac_c_werror_flag
5741    ac_c_werror_flag=yes
5742    ac_cv_prog_cc_g=no
5743    CFLAGS="-g"
5744    cat >conftest.$ac_ext <<_ACEOF
5745 /* confdefs.h.  */
5746 _ACEOF
5747 cat confdefs.h >>conftest.$ac_ext
5748 cat >>conftest.$ac_ext <<_ACEOF
5749 /* end confdefs.h.  */
5750
5751 int
5752 main ()
5753 {
5754
5755   ;
5756   return 0;
5757 }
5758 _ACEOF
5759 rm -f conftest.$ac_objext
5760 if { (ac_try="$ac_compile"
5761 case "(($ac_try" in
5762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5763   *) ac_try_echo=$ac_try;;
5764 esac
5765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5766   (eval "$ac_compile") 2>conftest.er1
5767   ac_status=$?
5768   grep -v '^ *+' conftest.er1 >conftest.err
5769   rm -f conftest.er1
5770   cat conftest.err >&5
5771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772   (exit $ac_status); } &&
5773          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5774   { (case "(($ac_try" in
5775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776   *) ac_try_echo=$ac_try;;
5777 esac
5778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779   (eval "$ac_try") 2>&5
5780   ac_status=$?
5781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782   (exit $ac_status); }; } &&
5783          { ac_try='test -s conftest.$ac_objext'
5784   { (case "(($ac_try" in
5785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5786   *) ac_try_echo=$ac_try;;
5787 esac
5788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5789   (eval "$ac_try") 2>&5
5790   ac_status=$?
5791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792   (exit $ac_status); }; }; then
5793   ac_cv_prog_cc_g=yes
5794 else
5795   echo "$as_me: failed program was:" >&5
5796 sed 's/^/| /' conftest.$ac_ext >&5
5797
5798         CFLAGS=""
5799       cat >conftest.$ac_ext <<_ACEOF
5800 /* confdefs.h.  */
5801 _ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h.  */
5805
5806 int
5807 main ()
5808 {
5809
5810   ;
5811   return 0;
5812 }
5813 _ACEOF
5814 rm -f conftest.$ac_objext
5815 if { (ac_try="$ac_compile"
5816 case "(($ac_try" in
5817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818   *) ac_try_echo=$ac_try;;
5819 esac
5820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821   (eval "$ac_compile") 2>conftest.er1
5822   ac_status=$?
5823   grep -v '^ *+' conftest.er1 >conftest.err
5824   rm -f conftest.er1
5825   cat conftest.err >&5
5826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827   (exit $ac_status); } &&
5828          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5829   { (case "(($ac_try" in
5830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5831   *) ac_try_echo=$ac_try;;
5832 esac
5833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5834   (eval "$ac_try") 2>&5
5835   ac_status=$?
5836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837   (exit $ac_status); }; } &&
5838          { ac_try='test -s conftest.$ac_objext'
5839   { (case "(($ac_try" in
5840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5841   *) ac_try_echo=$ac_try;;
5842 esac
5843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5844   (eval "$ac_try") 2>&5
5845   ac_status=$?
5846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847   (exit $ac_status); }; }; then
5848   :
5849 else
5850   echo "$as_me: failed program was:" >&5
5851 sed 's/^/| /' conftest.$ac_ext >&5
5852
5853         ac_c_werror_flag=$ac_save_c_werror_flag
5854          CFLAGS="-g"
5855          cat >conftest.$ac_ext <<_ACEOF
5856 /* confdefs.h.  */
5857 _ACEOF
5858 cat confdefs.h >>conftest.$ac_ext
5859 cat >>conftest.$ac_ext <<_ACEOF
5860 /* end confdefs.h.  */
5861
5862 int
5863 main ()
5864 {
5865
5866   ;
5867   return 0;
5868 }
5869 _ACEOF
5870 rm -f conftest.$ac_objext
5871 if { (ac_try="$ac_compile"
5872 case "(($ac_try" in
5873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5874   *) ac_try_echo=$ac_try;;
5875 esac
5876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5877   (eval "$ac_compile") 2>conftest.er1
5878   ac_status=$?
5879   grep -v '^ *+' conftest.er1 >conftest.err
5880   rm -f conftest.er1
5881   cat conftest.err >&5
5882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883   (exit $ac_status); } &&
5884          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5885   { (case "(($ac_try" in
5886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5887   *) ac_try_echo=$ac_try;;
5888 esac
5889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5890   (eval "$ac_try") 2>&5
5891   ac_status=$?
5892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893   (exit $ac_status); }; } &&
5894          { ac_try='test -s conftest.$ac_objext'
5895   { (case "(($ac_try" in
5896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5897   *) ac_try_echo=$ac_try;;
5898 esac
5899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5900   (eval "$ac_try") 2>&5
5901   ac_status=$?
5902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903   (exit $ac_status); }; }; then
5904   ac_cv_prog_cc_g=yes
5905 else
5906   echo "$as_me: failed program was:" >&5
5907 sed 's/^/| /' conftest.$ac_ext >&5
5908
5909
5910 fi
5911
5912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5913 fi
5914
5915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5916 fi
5917
5918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5919    ac_c_werror_flag=$ac_save_c_werror_flag
5920 fi
5921 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5922 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5923 if test "$ac_test_CFLAGS" = set; then
5924   CFLAGS=$ac_save_CFLAGS
5925 elif test $ac_cv_prog_cc_g = yes; then
5926   if test "$GCC" = yes; then
5927     CFLAGS="-g -O2"
5928   else
5929     CFLAGS="-g"
5930   fi
5931 else
5932   if test "$GCC" = yes; then
5933     CFLAGS="-O2"
5934   else
5935     CFLAGS=
5936   fi
5937 fi
5938 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5939 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5940 if test "${ac_cv_prog_cc_c89+set}" = set; then
5941   echo $ECHO_N "(cached) $ECHO_C" >&6
5942 else
5943   ac_cv_prog_cc_c89=no
5944 ac_save_CC=$CC
5945 cat >conftest.$ac_ext <<_ACEOF
5946 /* confdefs.h.  */
5947 _ACEOF
5948 cat confdefs.h >>conftest.$ac_ext
5949 cat >>conftest.$ac_ext <<_ACEOF
5950 /* end confdefs.h.  */
5951 #include <stdarg.h>
5952 #include <stdio.h>
5953 #include <sys/types.h>
5954 #include <sys/stat.h>
5955 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5956 struct buf { int x; };
5957 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5958 static char *e (p, i)
5959      char **p;
5960      int i;
5961 {
5962   return p[i];
5963 }
5964 static char *f (char * (*g) (char **, int), char **p, ...)
5965 {
5966   char *s;
5967   va_list v;
5968   va_start (v,p);
5969   s = g (p, va_arg (v,int));
5970   va_end (v);
5971   return s;
5972 }
5973
5974 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5975    function prototypes and stuff, but not '\xHH' hex character constants.
5976    These don't provoke an error unfortunately, instead are silently treated
5977    as 'x'.  The following induces an error, until -std is added to get
5978    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5979    array size at least.  It's necessary to write '\x00'==0 to get something
5980    that's true only with -std.  */
5981 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5982
5983 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5984    inside strings and character constants.  */
5985 #define FOO(x) 'x'
5986 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5987
5988 int test (int i, double x);
5989 struct s1 {int (*f) (int a);};
5990 struct s2 {int (*f) (double a);};
5991 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5992 int argc;
5993 char **argv;
5994 int
5995 main ()
5996 {
5997 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5998   ;
5999   return 0;
6000 }
6001 _ACEOF
6002 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6003         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6004 do
6005   CC="$ac_save_CC $ac_arg"
6006   rm -f conftest.$ac_objext
6007 if { (ac_try="$ac_compile"
6008 case "(($ac_try" in
6009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010   *) ac_try_echo=$ac_try;;
6011 esac
6012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6013   (eval "$ac_compile") 2>conftest.er1
6014   ac_status=$?
6015   grep -v '^ *+' conftest.er1 >conftest.err
6016   rm -f conftest.er1
6017   cat conftest.err >&5
6018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019   (exit $ac_status); } &&
6020          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6021   { (case "(($ac_try" in
6022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6023   *) ac_try_echo=$ac_try;;
6024 esac
6025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6026   (eval "$ac_try") 2>&5
6027   ac_status=$?
6028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029   (exit $ac_status); }; } &&
6030          { ac_try='test -s conftest.$ac_objext'
6031   { (case "(($ac_try" in
6032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6033   *) ac_try_echo=$ac_try;;
6034 esac
6035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6036   (eval "$ac_try") 2>&5
6037   ac_status=$?
6038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039   (exit $ac_status); }; }; then
6040   ac_cv_prog_cc_c89=$ac_arg
6041 else
6042   echo "$as_me: failed program was:" >&5
6043 sed 's/^/| /' conftest.$ac_ext >&5
6044
6045
6046 fi
6047
6048 rm -f core conftest.err conftest.$ac_objext
6049   test "x$ac_cv_prog_cc_c89" != "xno" && break
6050 done
6051 rm -f conftest.$ac_ext
6052 CC=$ac_save_CC
6053
6054 fi
6055 # AC_CACHE_VAL
6056 case "x$ac_cv_prog_cc_c89" in
6057   x)
6058     { echo "$as_me:$LINENO: result: none needed" >&5
6059 echo "${ECHO_T}none needed" >&6; } ;;
6060   xno)
6061     { echo "$as_me:$LINENO: result: unsupported" >&5
6062 echo "${ECHO_T}unsupported" >&6; } ;;
6063   *)
6064     CC="$CC $ac_cv_prog_cc_c89"
6065     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6066 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6067 esac
6068
6069
6070 ac_ext=c
6071 ac_cpp='$CPP $CPPFLAGS'
6072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6075
6076 ac_ext=cpp
6077 ac_cpp='$CXXCPP $CPPFLAGS'
6078 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6079 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6080 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6081 if test -z "$CXX"; then
6082   if test -n "$CCC"; then
6083     CXX=$CCC
6084   else
6085     if test -n "$ac_tool_prefix"; then
6086   for ac_prog in g++
6087   do
6088     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6089 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6092 if test "${ac_cv_prog_CXX+set}" = set; then
6093   echo $ECHO_N "(cached) $ECHO_C" >&6
6094 else
6095   if test -n "$CXX"; then
6096   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6097 else
6098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099 for as_dir in $PATH
6100 do
6101   IFS=$as_save_IFS
6102   test -z "$as_dir" && as_dir=.
6103   for ac_exec_ext in '' $ac_executable_extensions; do
6104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6105     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6107     break 2
6108   fi
6109 done
6110 done
6111 IFS=$as_save_IFS
6112
6113 fi
6114 fi
6115 CXX=$ac_cv_prog_CXX
6116 if test -n "$CXX"; then
6117   { echo "$as_me:$LINENO: result: $CXX" >&5
6118 echo "${ECHO_T}$CXX" >&6; }
6119 else
6120   { echo "$as_me:$LINENO: result: no" >&5
6121 echo "${ECHO_T}no" >&6; }
6122 fi
6123
6124
6125     test -n "$CXX" && break
6126   done
6127 fi
6128 if test -z "$CXX"; then
6129   ac_ct_CXX=$CXX
6130   for ac_prog in g++
6131 do
6132   # Extract the first word of "$ac_prog", so it can be a program name with args.
6133 set dummy $ac_prog; ac_word=$2
6134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6136 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6137   echo $ECHO_N "(cached) $ECHO_C" >&6
6138 else
6139   if test -n "$ac_ct_CXX"; then
6140   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6141 else
6142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143 for as_dir in $PATH
6144 do
6145   IFS=$as_save_IFS
6146   test -z "$as_dir" && as_dir=.
6147   for ac_exec_ext in '' $ac_executable_extensions; do
6148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6149     ac_cv_prog_ac_ct_CXX="$ac_prog"
6150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6151     break 2
6152   fi
6153 done
6154 done
6155 IFS=$as_save_IFS
6156
6157 fi
6158 fi
6159 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6160 if test -n "$ac_ct_CXX"; then
6161   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6162 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6163 else
6164   { echo "$as_me:$LINENO: result: no" >&5
6165 echo "${ECHO_T}no" >&6; }
6166 fi
6167
6168
6169   test -n "$ac_ct_CXX" && break
6170 done
6171
6172   if test "x$ac_ct_CXX" = x; then
6173     CXX="g++"
6174   else
6175     case $cross_compiling:$ac_tool_warned in
6176 yes:)
6177 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6178 whose name does not start with the host triplet.  If you think this
6179 configuration is useful to you, please write to autoconf@gnu.org." >&5
6180 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6181 whose name does not start with the host triplet.  If you think this
6182 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6183 ac_tool_warned=yes ;;
6184 esac
6185     CXX=$ac_ct_CXX
6186   fi
6187 fi
6188
6189   fi
6190 fi
6191 # Provide some information about the compiler.
6192 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6193 ac_compiler=`set X $ac_compile; echo $2`
6194 { (ac_try="$ac_compiler --version >&5"
6195 case "(($ac_try" in
6196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6197   *) ac_try_echo=$ac_try;;
6198 esac
6199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6200   (eval "$ac_compiler --version >&5") 2>&5
6201   ac_status=$?
6202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203   (exit $ac_status); }
6204 { (ac_try="$ac_compiler -v >&5"
6205 case "(($ac_try" in
6206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6207   *) ac_try_echo=$ac_try;;
6208 esac
6209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6210   (eval "$ac_compiler -v >&5") 2>&5
6211   ac_status=$?
6212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213   (exit $ac_status); }
6214 { (ac_try="$ac_compiler -V >&5"
6215 case "(($ac_try" in
6216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6217   *) ac_try_echo=$ac_try;;
6218 esac
6219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6220   (eval "$ac_compiler -V >&5") 2>&5
6221   ac_status=$?
6222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223   (exit $ac_status); }
6224
6225 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6226 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6227 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6228   echo $ECHO_N "(cached) $ECHO_C" >&6
6229 else
6230   cat >conftest.$ac_ext <<_ACEOF
6231 /* confdefs.h.  */
6232 _ACEOF
6233 cat confdefs.h >>conftest.$ac_ext
6234 cat >>conftest.$ac_ext <<_ACEOF
6235 /* end confdefs.h.  */
6236
6237 int
6238 main ()
6239 {
6240 #ifndef __GNUC__
6241        choke me
6242 #endif
6243
6244   ;
6245   return 0;
6246 }
6247 _ACEOF
6248 rm -f conftest.$ac_objext
6249 if { (ac_try="$ac_compile"
6250 case "(($ac_try" in
6251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6252   *) ac_try_echo=$ac_try;;
6253 esac
6254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6255   (eval "$ac_compile") 2>conftest.er1
6256   ac_status=$?
6257   grep -v '^ *+' conftest.er1 >conftest.err
6258   rm -f conftest.er1
6259   cat conftest.err >&5
6260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261   (exit $ac_status); } &&
6262          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6263   { (case "(($ac_try" in
6264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6265   *) ac_try_echo=$ac_try;;
6266 esac
6267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6268   (eval "$ac_try") 2>&5
6269   ac_status=$?
6270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271   (exit $ac_status); }; } &&
6272          { ac_try='test -s conftest.$ac_objext'
6273   { (case "(($ac_try" in
6274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6275   *) ac_try_echo=$ac_try;;
6276 esac
6277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6278   (eval "$ac_try") 2>&5
6279   ac_status=$?
6280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281   (exit $ac_status); }; }; then
6282   ac_compiler_gnu=yes
6283 else
6284   echo "$as_me: failed program was:" >&5
6285 sed 's/^/| /' conftest.$ac_ext >&5
6286
6287         ac_compiler_gnu=no
6288 fi
6289
6290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6291 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6292
6293 fi
6294 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6295 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6296 GXX=`test $ac_compiler_gnu = yes && echo yes`
6297 ac_test_CXXFLAGS=${CXXFLAGS+set}
6298 ac_save_CXXFLAGS=$CXXFLAGS
6299 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6300 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6301 if test "${ac_cv_prog_cxx_g+set}" = set; then
6302   echo $ECHO_N "(cached) $ECHO_C" >&6
6303 else
6304   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6305    ac_cxx_werror_flag=yes
6306    ac_cv_prog_cxx_g=no
6307    CXXFLAGS="-g"
6308    cat >conftest.$ac_ext <<_ACEOF
6309 /* confdefs.h.  */
6310 _ACEOF
6311 cat confdefs.h >>conftest.$ac_ext
6312 cat >>conftest.$ac_ext <<_ACEOF
6313 /* end confdefs.h.  */
6314
6315 int
6316 main ()
6317 {
6318
6319   ;
6320   return 0;
6321 }
6322 _ACEOF
6323 rm -f conftest.$ac_objext
6324 if { (ac_try="$ac_compile"
6325 case "(($ac_try" in
6326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6327   *) ac_try_echo=$ac_try;;
6328 esac
6329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6330   (eval "$ac_compile") 2>conftest.er1
6331   ac_status=$?
6332   grep -v '^ *+' conftest.er1 >conftest.err
6333   rm -f conftest.er1
6334   cat conftest.err >&5
6335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336   (exit $ac_status); } &&
6337          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6338   { (case "(($ac_try" in
6339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340   *) ac_try_echo=$ac_try;;
6341 esac
6342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6343   (eval "$ac_try") 2>&5
6344   ac_status=$?
6345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346   (exit $ac_status); }; } &&
6347          { ac_try='test -s conftest.$ac_objext'
6348   { (case "(($ac_try" in
6349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6350   *) ac_try_echo=$ac_try;;
6351 esac
6352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6353   (eval "$ac_try") 2>&5
6354   ac_status=$?
6355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356   (exit $ac_status); }; }; then
6357   ac_cv_prog_cxx_g=yes
6358 else
6359   echo "$as_me: failed program was:" >&5
6360 sed 's/^/| /' conftest.$ac_ext >&5
6361
6362         CXXFLAGS=""
6363       cat >conftest.$ac_ext <<_ACEOF
6364 /* confdefs.h.  */
6365 _ACEOF
6366 cat confdefs.h >>conftest.$ac_ext
6367 cat >>conftest.$ac_ext <<_ACEOF
6368 /* end confdefs.h.  */
6369
6370 int
6371 main ()
6372 {
6373
6374   ;
6375   return 0;
6376 }
6377 _ACEOF
6378 rm -f conftest.$ac_objext
6379 if { (ac_try="$ac_compile"
6380 case "(($ac_try" in
6381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6382   *) ac_try_echo=$ac_try;;
6383 esac
6384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6385   (eval "$ac_compile") 2>conftest.er1
6386   ac_status=$?
6387   grep -v '^ *+' conftest.er1 >conftest.err
6388   rm -f conftest.er1
6389   cat conftest.err >&5
6390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391   (exit $ac_status); } &&
6392          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6393   { (case "(($ac_try" in
6394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6395   *) ac_try_echo=$ac_try;;
6396 esac
6397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6398   (eval "$ac_try") 2>&5
6399   ac_status=$?
6400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401   (exit $ac_status); }; } &&
6402          { ac_try='test -s conftest.$ac_objext'
6403   { (case "(($ac_try" in
6404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6405   *) ac_try_echo=$ac_try;;
6406 esac
6407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6408   (eval "$ac_try") 2>&5
6409   ac_status=$?
6410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411   (exit $ac_status); }; }; then
6412   :
6413 else
6414   echo "$as_me: failed program was:" >&5
6415 sed 's/^/| /' conftest.$ac_ext >&5
6416
6417         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6418          CXXFLAGS="-g"
6419          cat >conftest.$ac_ext <<_ACEOF
6420 /* confdefs.h.  */
6421 _ACEOF
6422 cat confdefs.h >>conftest.$ac_ext
6423 cat >>conftest.$ac_ext <<_ACEOF
6424 /* end confdefs.h.  */
6425
6426 int
6427 main ()
6428 {
6429
6430   ;
6431   return 0;
6432 }
6433 _ACEOF
6434 rm -f conftest.$ac_objext
6435 if { (ac_try="$ac_compile"
6436 case "(($ac_try" in
6437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6438   *) ac_try_echo=$ac_try;;
6439 esac
6440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6441   (eval "$ac_compile") 2>conftest.er1
6442   ac_status=$?
6443   grep -v '^ *+' conftest.er1 >conftest.err
6444   rm -f conftest.er1
6445   cat conftest.err >&5
6446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447   (exit $ac_status); } &&
6448          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6449   { (case "(($ac_try" in
6450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6451   *) ac_try_echo=$ac_try;;
6452 esac
6453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6454   (eval "$ac_try") 2>&5
6455   ac_status=$?
6456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457   (exit $ac_status); }; } &&
6458          { ac_try='test -s conftest.$ac_objext'
6459   { (case "(($ac_try" in
6460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6461   *) ac_try_echo=$ac_try;;
6462 esac
6463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6464   (eval "$ac_try") 2>&5
6465   ac_status=$?
6466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467   (exit $ac_status); }; }; then
6468   ac_cv_prog_cxx_g=yes
6469 else
6470   echo "$as_me: failed program was:" >&5
6471 sed 's/^/| /' conftest.$ac_ext >&5
6472
6473
6474 fi
6475
6476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6477 fi
6478
6479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6480 fi
6481
6482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6483    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6484 fi
6485 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6486 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6487 if test "$ac_test_CXXFLAGS" = set; then
6488   CXXFLAGS=$ac_save_CXXFLAGS
6489 elif test $ac_cv_prog_cxx_g = yes; then
6490   if test "$GXX" = yes; then
6491     CXXFLAGS="-g -O2"
6492   else
6493     CXXFLAGS="-g"
6494   fi
6495 else
6496   if test "$GXX" = yes; then
6497     CXXFLAGS="-O2"
6498   else
6499     CXXFLAGS=
6500   fi
6501 fi
6502 ac_ext=c
6503 ac_cpp='$CPP $CPPFLAGS'
6504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6507
6508
6509 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6510 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6511 if test "${lt_cv_path_NM+set}" = set; then
6512   echo $ECHO_N "(cached) $ECHO_C" >&6
6513 else
6514   if test -n "$NM"; then
6515   # Let the user override the test.
6516   lt_cv_path_NM="$NM"
6517 else
6518   lt_nm_to_check="${ac_tool_prefix}nm"
6519   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6520     lt_nm_to_check="$lt_nm_to_check nm"
6521   fi
6522   for lt_tmp_nm in $lt_nm_to_check; do
6523     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6524     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6525       IFS="$lt_save_ifs"
6526       test -z "$ac_dir" && ac_dir=.
6527       tmp_nm="$ac_dir/$lt_tmp_nm"
6528       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6529         # Check to see if the nm accepts a BSD-compat flag.
6530         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6531         #   nm: unknown option "B" ignored
6532         # Tru64's nm complains that /dev/null is an invalid object file
6533         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6534         */dev/null* | *'Invalid file or object type'*)
6535           lt_cv_path_NM="$tmp_nm -B"
6536           break
6537           ;;
6538         *)
6539           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6540           */dev/null*)
6541             lt_cv_path_NM="$tmp_nm -p"
6542             break
6543             ;;
6544           *)
6545             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6546             continue # so that we can try to find one that supports BSD flags
6547             ;;
6548           esac
6549           ;;
6550         esac
6551       fi
6552     done
6553     IFS="$lt_save_ifs"
6554   done
6555   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6556 fi
6557 fi
6558 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6559 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6560 NM="$lt_cv_path_NM"
6561
6562
6563
6564 { echo "$as_me:$LINENO: checking for GNU make" >&5
6565 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6566 if test "${llvm_cv_gnu_make_command+set}" = set; then
6567   echo $ECHO_N "(cached) $ECHO_C" >&6
6568 else
6569   llvm_cv_gnu_make_command=''
6570  for a in "$MAKE" make gmake gnumake ; do
6571   if test -z "$a" ; then continue ; fi ;
6572   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6573   then
6574    llvm_cv_gnu_make_command=$a ;
6575    break;
6576   fi
6577  done
6578 fi
6579 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6580 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6581  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6582    ifGNUmake='' ;
6583  else
6584    ifGNUmake='#' ;
6585    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6586 echo "${ECHO_T}\"Not found\"" >&6; };
6587  fi
6588
6589
6590 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6591 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6592 LN_S=$as_ln_s
6593 if test "$LN_S" = "ln -s"; then
6594   { echo "$as_me:$LINENO: result: yes" >&5
6595 echo "${ECHO_T}yes" >&6; }
6596 else
6597   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6598 echo "${ECHO_T}no, using $LN_S" >&6; }
6599 fi
6600
6601 # Extract the first word of "cmp", so it can be a program name with args.
6602 set dummy cmp; ac_word=$2
6603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6605 if test "${ac_cv_path_CMP+set}" = set; then
6606   echo $ECHO_N "(cached) $ECHO_C" >&6
6607 else
6608   case $CMP in
6609   [\\/]* | ?:[\\/]*)
6610   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6611   ;;
6612   *)
6613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614 for as_dir in $PATH
6615 do
6616   IFS=$as_save_IFS
6617   test -z "$as_dir" && as_dir=.
6618   for ac_exec_ext in '' $ac_executable_extensions; do
6619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6620     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6621     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6622     break 2
6623   fi
6624 done
6625 done
6626 IFS=$as_save_IFS
6627
6628   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6629   ;;
6630 esac
6631 fi
6632 CMP=$ac_cv_path_CMP
6633 if test -n "$CMP"; then
6634   { echo "$as_me:$LINENO: result: $CMP" >&5
6635 echo "${ECHO_T}$CMP" >&6; }
6636 else
6637   { echo "$as_me:$LINENO: result: no" >&5
6638 echo "${ECHO_T}no" >&6; }
6639 fi
6640
6641
6642 # Extract the first word of "cp", so it can be a program name with args.
6643 set dummy cp; ac_word=$2
6644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6646 if test "${ac_cv_path_CP+set}" = set; then
6647   echo $ECHO_N "(cached) $ECHO_C" >&6
6648 else
6649   case $CP in
6650   [\\/]* | ?:[\\/]*)
6651   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6652   ;;
6653   *)
6654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655 for as_dir in $PATH
6656 do
6657   IFS=$as_save_IFS
6658   test -z "$as_dir" && as_dir=.
6659   for ac_exec_ext in '' $ac_executable_extensions; do
6660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6661     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6663     break 2
6664   fi
6665 done
6666 done
6667 IFS=$as_save_IFS
6668
6669   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6670   ;;
6671 esac
6672 fi
6673 CP=$ac_cv_path_CP
6674 if test -n "$CP"; then
6675   { echo "$as_me:$LINENO: result: $CP" >&5
6676 echo "${ECHO_T}$CP" >&6; }
6677 else
6678   { echo "$as_me:$LINENO: result: no" >&5
6679 echo "${ECHO_T}no" >&6; }
6680 fi
6681
6682
6683 # Extract the first word of "date", so it can be a program name with args.
6684 set dummy date; ac_word=$2
6685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6687 if test "${ac_cv_path_DATE+set}" = set; then
6688   echo $ECHO_N "(cached) $ECHO_C" >&6
6689 else
6690   case $DATE in
6691   [\\/]* | ?:[\\/]*)
6692   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6693   ;;
6694   *)
6695   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696 for as_dir in $PATH
6697 do
6698   IFS=$as_save_IFS
6699   test -z "$as_dir" && as_dir=.
6700   for ac_exec_ext in '' $ac_executable_extensions; do
6701   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6702     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6703     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6704     break 2
6705   fi
6706 done
6707 done
6708 IFS=$as_save_IFS
6709
6710   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6711   ;;
6712 esac
6713 fi
6714 DATE=$ac_cv_path_DATE
6715 if test -n "$DATE"; then
6716   { echo "$as_me:$LINENO: result: $DATE" >&5
6717 echo "${ECHO_T}$DATE" >&6; }
6718 else
6719   { echo "$as_me:$LINENO: result: no" >&5
6720 echo "${ECHO_T}no" >&6; }
6721 fi
6722
6723
6724 # Extract the first word of "find", so it can be a program name with args.
6725 set dummy find; ac_word=$2
6726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6728 if test "${ac_cv_path_FIND+set}" = set; then
6729   echo $ECHO_N "(cached) $ECHO_C" >&6
6730 else
6731   case $FIND in
6732   [\\/]* | ?:[\\/]*)
6733   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6734   ;;
6735   *)
6736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737 for as_dir in $PATH
6738 do
6739   IFS=$as_save_IFS
6740   test -z "$as_dir" && as_dir=.
6741   for ac_exec_ext in '' $ac_executable_extensions; do
6742   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6743     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6744     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6745     break 2
6746   fi
6747 done
6748 done
6749 IFS=$as_save_IFS
6750
6751   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6752   ;;
6753 esac
6754 fi
6755 FIND=$ac_cv_path_FIND
6756 if test -n "$FIND"; then
6757   { echo "$as_me:$LINENO: result: $FIND" >&5
6758 echo "${ECHO_T}$FIND" >&6; }
6759 else
6760   { echo "$as_me:$LINENO: result: no" >&5
6761 echo "${ECHO_T}no" >&6; }
6762 fi
6763
6764
6765 # Extract the first word of "grep", so it can be a program name with args.
6766 set dummy grep; ac_word=$2
6767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6769 if test "${ac_cv_path_GREP+set}" = set; then
6770   echo $ECHO_N "(cached) $ECHO_C" >&6
6771 else
6772   case $GREP in
6773   [\\/]* | ?:[\\/]*)
6774   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6775   ;;
6776   *)
6777   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 for as_dir in $PATH
6779 do
6780   IFS=$as_save_IFS
6781   test -z "$as_dir" && as_dir=.
6782   for ac_exec_ext in '' $ac_executable_extensions; do
6783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6784     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6786     break 2
6787   fi
6788 done
6789 done
6790 IFS=$as_save_IFS
6791
6792   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6793   ;;
6794 esac
6795 fi
6796 GREP=$ac_cv_path_GREP
6797 if test -n "$GREP"; then
6798   { echo "$as_me:$LINENO: result: $GREP" >&5
6799 echo "${ECHO_T}$GREP" >&6; }
6800 else
6801   { echo "$as_me:$LINENO: result: no" >&5
6802 echo "${ECHO_T}no" >&6; }
6803 fi
6804
6805
6806 # Extract the first word of "mkdir", so it can be a program name with args.
6807 set dummy mkdir; ac_word=$2
6808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6810 if test "${ac_cv_path_MKDIR+set}" = set; then
6811   echo $ECHO_N "(cached) $ECHO_C" >&6
6812 else
6813   case $MKDIR in
6814   [\\/]* | ?:[\\/]*)
6815   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6816   ;;
6817   *)
6818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 for as_dir in $PATH
6820 do
6821   IFS=$as_save_IFS
6822   test -z "$as_dir" && as_dir=.
6823   for ac_exec_ext in '' $ac_executable_extensions; do
6824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6825     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6827     break 2
6828   fi
6829 done
6830 done
6831 IFS=$as_save_IFS
6832
6833   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6834   ;;
6835 esac
6836 fi
6837 MKDIR=$ac_cv_path_MKDIR
6838 if test -n "$MKDIR"; then
6839   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6840 echo "${ECHO_T}$MKDIR" >&6; }
6841 else
6842   { echo "$as_me:$LINENO: result: no" >&5
6843 echo "${ECHO_T}no" >&6; }
6844 fi
6845
6846
6847 # Extract the first word of "mv", so it can be a program name with args.
6848 set dummy mv; ac_word=$2
6849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6851 if test "${ac_cv_path_MV+set}" = set; then
6852   echo $ECHO_N "(cached) $ECHO_C" >&6
6853 else
6854   case $MV in
6855   [\\/]* | ?:[\\/]*)
6856   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6857   ;;
6858   *)
6859   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 for as_dir in $PATH
6861 do
6862   IFS=$as_save_IFS
6863   test -z "$as_dir" && as_dir=.
6864   for ac_exec_ext in '' $ac_executable_extensions; do
6865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6866     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6868     break 2
6869   fi
6870 done
6871 done
6872 IFS=$as_save_IFS
6873
6874   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6875   ;;
6876 esac
6877 fi
6878 MV=$ac_cv_path_MV
6879 if test -n "$MV"; then
6880   { echo "$as_me:$LINENO: result: $MV" >&5
6881 echo "${ECHO_T}$MV" >&6; }
6882 else
6883   { echo "$as_me:$LINENO: result: no" >&5
6884 echo "${ECHO_T}no" >&6; }
6885 fi
6886
6887
6888 if test -n "$ac_tool_prefix"; then
6889   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6890 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6893 if test "${ac_cv_prog_RANLIB+set}" = set; then
6894   echo $ECHO_N "(cached) $ECHO_C" >&6
6895 else
6896   if test -n "$RANLIB"; then
6897   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6898 else
6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 for as_dir in $PATH
6901 do
6902   IFS=$as_save_IFS
6903   test -z "$as_dir" && as_dir=.
6904   for ac_exec_ext in '' $ac_executable_extensions; do
6905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6906     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6908     break 2
6909   fi
6910 done
6911 done
6912 IFS=$as_save_IFS
6913
6914 fi
6915 fi
6916 RANLIB=$ac_cv_prog_RANLIB
6917 if test -n "$RANLIB"; then
6918   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6919 echo "${ECHO_T}$RANLIB" >&6; }
6920 else
6921   { echo "$as_me:$LINENO: result: no" >&5
6922 echo "${ECHO_T}no" >&6; }
6923 fi
6924
6925
6926 fi
6927 if test -z "$ac_cv_prog_RANLIB"; then
6928   ac_ct_RANLIB=$RANLIB
6929   # Extract the first word of "ranlib", so it can be a program name with args.
6930 set dummy ranlib; ac_word=$2
6931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6933 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6934   echo $ECHO_N "(cached) $ECHO_C" >&6
6935 else
6936   if test -n "$ac_ct_RANLIB"; then
6937   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6938 else
6939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940 for as_dir in $PATH
6941 do
6942   IFS=$as_save_IFS
6943   test -z "$as_dir" && as_dir=.
6944   for ac_exec_ext in '' $ac_executable_extensions; do
6945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6946     ac_cv_prog_ac_ct_RANLIB="ranlib"
6947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6948     break 2
6949   fi
6950 done
6951 done
6952 IFS=$as_save_IFS
6953
6954 fi
6955 fi
6956 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6957 if test -n "$ac_ct_RANLIB"; then
6958   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6959 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6960 else
6961   { echo "$as_me:$LINENO: result: no" >&5
6962 echo "${ECHO_T}no" >&6; }
6963 fi
6964
6965   if test "x$ac_ct_RANLIB" = x; then
6966     RANLIB=":"
6967   else
6968     case $cross_compiling:$ac_tool_warned in
6969 yes:)
6970 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6971 whose name does not start with the host triplet.  If you think this
6972 configuration is useful to you, please write to autoconf@gnu.org." >&5
6973 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6974 whose name does not start with the host triplet.  If you think this
6975 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6976 ac_tool_warned=yes ;;
6977 esac
6978     RANLIB=$ac_ct_RANLIB
6979   fi
6980 else
6981   RANLIB="$ac_cv_prog_RANLIB"
6982 fi
6983
6984 if test -n "$ac_tool_prefix"; then
6985   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6986 set dummy ${ac_tool_prefix}ar; ac_word=$2
6987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6989 if test "${ac_cv_prog_AR+set}" = set; then
6990   echo $ECHO_N "(cached) $ECHO_C" >&6
6991 else
6992   if test -n "$AR"; then
6993   ac_cv_prog_AR="$AR" # Let the user override the test.
6994 else
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 for as_dir in $PATH
6997 do
6998   IFS=$as_save_IFS
6999   test -z "$as_dir" && as_dir=.
7000   for ac_exec_ext in '' $ac_executable_extensions; do
7001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7002     ac_cv_prog_AR="${ac_tool_prefix}ar"
7003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7004     break 2
7005   fi
7006 done
7007 done
7008 IFS=$as_save_IFS
7009
7010 fi
7011 fi
7012 AR=$ac_cv_prog_AR
7013 if test -n "$AR"; then
7014   { echo "$as_me:$LINENO: result: $AR" >&5
7015 echo "${ECHO_T}$AR" >&6; }
7016 else
7017   { echo "$as_me:$LINENO: result: no" >&5
7018 echo "${ECHO_T}no" >&6; }
7019 fi
7020
7021
7022 fi
7023 if test -z "$ac_cv_prog_AR"; then
7024   ac_ct_AR=$AR
7025   # Extract the first word of "ar", so it can be a program name with args.
7026 set dummy ar; ac_word=$2
7027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7029 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7030   echo $ECHO_N "(cached) $ECHO_C" >&6
7031 else
7032   if test -n "$ac_ct_AR"; then
7033   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7034 else
7035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036 for as_dir in $PATH
7037 do
7038   IFS=$as_save_IFS
7039   test -z "$as_dir" && as_dir=.
7040   for ac_exec_ext in '' $ac_executable_extensions; do
7041   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7042     ac_cv_prog_ac_ct_AR="ar"
7043     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7044     break 2
7045   fi
7046 done
7047 done
7048 IFS=$as_save_IFS
7049
7050 fi
7051 fi
7052 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7053 if test -n "$ac_ct_AR"; then
7054   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7055 echo "${ECHO_T}$ac_ct_AR" >&6; }
7056 else
7057   { echo "$as_me:$LINENO: result: no" >&5
7058 echo "${ECHO_T}no" >&6; }
7059 fi
7060
7061   if test "x$ac_ct_AR" = x; then
7062     AR="false"
7063   else
7064     case $cross_compiling:$ac_tool_warned in
7065 yes:)
7066 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7067 whose name does not start with the host triplet.  If you think this
7068 configuration is useful to you, please write to autoconf@gnu.org." >&5
7069 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7070 whose name does not start with the host triplet.  If you think this
7071 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7072 ac_tool_warned=yes ;;
7073 esac
7074     AR=$ac_ct_AR
7075   fi
7076 else
7077   AR="$ac_cv_prog_AR"
7078 fi
7079
7080 # Extract the first word of "rm", so it can be a program name with args.
7081 set dummy rm; ac_word=$2
7082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7084 if test "${ac_cv_path_RM+set}" = set; then
7085   echo $ECHO_N "(cached) $ECHO_C" >&6
7086 else
7087   case $RM in
7088   [\\/]* | ?:[\\/]*)
7089   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7090   ;;
7091   *)
7092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 for as_dir in $PATH
7094 do
7095   IFS=$as_save_IFS
7096   test -z "$as_dir" && as_dir=.
7097   for ac_exec_ext in '' $ac_executable_extensions; do
7098   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7099     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7101     break 2
7102   fi
7103 done
7104 done
7105 IFS=$as_save_IFS
7106
7107   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7108   ;;
7109 esac
7110 fi
7111 RM=$ac_cv_path_RM
7112 if test -n "$RM"; then
7113   { echo "$as_me:$LINENO: result: $RM" >&5
7114 echo "${ECHO_T}$RM" >&6; }
7115 else
7116   { echo "$as_me:$LINENO: result: no" >&5
7117 echo "${ECHO_T}no" >&6; }
7118 fi
7119
7120
7121 # Extract the first word of "sed", so it can be a program name with args.
7122 set dummy sed; ac_word=$2
7123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7125 if test "${ac_cv_path_SED+set}" = set; then
7126   echo $ECHO_N "(cached) $ECHO_C" >&6
7127 else
7128   case $SED in
7129   [\\/]* | ?:[\\/]*)
7130   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7131   ;;
7132   *)
7133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 for as_dir in $PATH
7135 do
7136   IFS=$as_save_IFS
7137   test -z "$as_dir" && as_dir=.
7138   for ac_exec_ext in '' $ac_executable_extensions; do
7139   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7140     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7142     break 2
7143   fi
7144 done
7145 done
7146 IFS=$as_save_IFS
7147
7148   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7149   ;;
7150 esac
7151 fi
7152 SED=$ac_cv_path_SED
7153 if test -n "$SED"; then
7154   { echo "$as_me:$LINENO: result: $SED" >&5
7155 echo "${ECHO_T}$SED" >&6; }
7156 else
7157   { echo "$as_me:$LINENO: result: no" >&5
7158 echo "${ECHO_T}no" >&6; }
7159 fi
7160
7161
7162 # Extract the first word of "tar", so it can be a program name with args.
7163 set dummy tar; ac_word=$2
7164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7166 if test "${ac_cv_path_TAR+set}" = set; then
7167   echo $ECHO_N "(cached) $ECHO_C" >&6
7168 else
7169   case $TAR in
7170   [\\/]* | ?:[\\/]*)
7171   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7172   ;;
7173   *)
7174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175 for as_dir in $PATH
7176 do
7177   IFS=$as_save_IFS
7178   test -z "$as_dir" && as_dir=.
7179   for ac_exec_ext in '' $ac_executable_extensions; do
7180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7181     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7183     break 2
7184   fi
7185 done
7186 done
7187 IFS=$as_save_IFS
7188
7189   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7190   ;;
7191 esac
7192 fi
7193 TAR=$ac_cv_path_TAR
7194 if test -n "$TAR"; then
7195   { echo "$as_me:$LINENO: result: $TAR" >&5
7196 echo "${ECHO_T}$TAR" >&6; }
7197 else
7198   { echo "$as_me:$LINENO: result: no" >&5
7199 echo "${ECHO_T}no" >&6; }
7200 fi
7201
7202
7203 # Extract the first word of "pwd", so it can be a program name with args.
7204 set dummy pwd; ac_word=$2
7205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7207 if test "${ac_cv_path_BINPWD+set}" = set; then
7208   echo $ECHO_N "(cached) $ECHO_C" >&6
7209 else
7210   case $BINPWD in
7211   [\\/]* | ?:[\\/]*)
7212   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7213   ;;
7214   *)
7215   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 for as_dir in $PATH
7217 do
7218   IFS=$as_save_IFS
7219   test -z "$as_dir" && as_dir=.
7220   for ac_exec_ext in '' $ac_executable_extensions; do
7221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7222     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7223     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7224     break 2
7225   fi
7226 done
7227 done
7228 IFS=$as_save_IFS
7229
7230   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7231   ;;
7232 esac
7233 fi
7234 BINPWD=$ac_cv_path_BINPWD
7235 if test -n "$BINPWD"; then
7236   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7237 echo "${ECHO_T}$BINPWD" >&6; }
7238 else
7239   { echo "$as_me:$LINENO: result: no" >&5
7240 echo "${ECHO_T}no" >&6; }
7241 fi
7242
7243
7244
7245 # Extract the first word of "Graphviz", so it can be a program name with args.
7246 set dummy Graphviz; ac_word=$2
7247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7249 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7250   echo $ECHO_N "(cached) $ECHO_C" >&6
7251 else
7252   case $GRAPHVIZ in
7253   [\\/]* | ?:[\\/]*)
7254   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7255   ;;
7256   *)
7257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258 for as_dir in $PATH
7259 do
7260   IFS=$as_save_IFS
7261   test -z "$as_dir" && as_dir=.
7262   for ac_exec_ext in '' $ac_executable_extensions; do
7263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7264     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7266     break 2
7267   fi
7268 done
7269 done
7270 IFS=$as_save_IFS
7271
7272   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7273   ;;
7274 esac
7275 fi
7276 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7277 if test -n "$GRAPHVIZ"; then
7278   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7279 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7280 else
7281   { echo "$as_me:$LINENO: result: no" >&5
7282 echo "${ECHO_T}no" >&6; }
7283 fi
7284
7285
7286 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7287
7288 cat >>confdefs.h <<\_ACEOF
7289 #define HAVE_GRAPHVIZ 1
7290 _ACEOF
7291
7292     if test "$llvm_cv_os_type" = "MingW" ; then
7293     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7294   fi
7295
7296 cat >>confdefs.h <<_ACEOF
7297 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7298 _ACEOF
7299
7300 fi
7301 # Extract the first word of "dot", so it can be a program name with args.
7302 set dummy dot; ac_word=$2
7303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7305 if test "${ac_cv_path_DOT+set}" = set; then
7306   echo $ECHO_N "(cached) $ECHO_C" >&6
7307 else
7308   case $DOT in
7309   [\\/]* | ?:[\\/]*)
7310   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7311   ;;
7312   *)
7313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 for as_dir in $PATH
7315 do
7316   IFS=$as_save_IFS
7317   test -z "$as_dir" && as_dir=.
7318   for ac_exec_ext in '' $ac_executable_extensions; do
7319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7320     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7321     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7322     break 2
7323   fi
7324 done
7325 done
7326 IFS=$as_save_IFS
7327
7328   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7329   ;;
7330 esac
7331 fi
7332 DOT=$ac_cv_path_DOT
7333 if test -n "$DOT"; then
7334   { echo "$as_me:$LINENO: result: $DOT" >&5
7335 echo "${ECHO_T}$DOT" >&6; }
7336 else
7337   { echo "$as_me:$LINENO: result: no" >&5
7338 echo "${ECHO_T}no" >&6; }
7339 fi
7340
7341
7342 if test "$DOT" != "echo dot" ; then
7343
7344 cat >>confdefs.h <<\_ACEOF
7345 #define HAVE_DOT 1
7346 _ACEOF
7347
7348     if test "$llvm_cv_os_type" = "MingW" ; then
7349     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7350   fi
7351
7352 cat >>confdefs.h <<_ACEOF
7353 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7354 _ACEOF
7355
7356 fi
7357 # Extract the first word of "fdp", so it can be a program name with args.
7358 set dummy fdp; ac_word=$2
7359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7361 if test "${ac_cv_path_FDP+set}" = set; then
7362   echo $ECHO_N "(cached) $ECHO_C" >&6
7363 else
7364   case $FDP in
7365   [\\/]* | ?:[\\/]*)
7366   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7367   ;;
7368   *)
7369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370 for as_dir in $PATH
7371 do
7372   IFS=$as_save_IFS
7373   test -z "$as_dir" && as_dir=.
7374   for ac_exec_ext in '' $ac_executable_extensions; do
7375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7376     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7377     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7378     break 2
7379   fi
7380 done
7381 done
7382 IFS=$as_save_IFS
7383
7384   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7385   ;;
7386 esac
7387 fi
7388 FDP=$ac_cv_path_FDP
7389 if test -n "$FDP"; then
7390   { echo "$as_me:$LINENO: result: $FDP" >&5
7391 echo "${ECHO_T}$FDP" >&6; }
7392 else
7393   { echo "$as_me:$LINENO: result: no" >&5
7394 echo "${ECHO_T}no" >&6; }
7395 fi
7396
7397
7398 if test "$FDP" != "echo fdp" ; then
7399
7400 cat >>confdefs.h <<\_ACEOF
7401 #define HAVE_FDP 1
7402 _ACEOF
7403
7404     if test "$llvm_cv_os_type" = "MingW" ; then
7405     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7406   fi
7407
7408 cat >>confdefs.h <<_ACEOF
7409 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7410 _ACEOF
7411
7412 fi
7413 # Extract the first word of "neato", so it can be a program name with args.
7414 set dummy neato; ac_word=$2
7415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7417 if test "${ac_cv_path_NEATO+set}" = set; then
7418   echo $ECHO_N "(cached) $ECHO_C" >&6
7419 else
7420   case $NEATO in
7421   [\\/]* | ?:[\\/]*)
7422   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7423   ;;
7424   *)
7425   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426 for as_dir in $PATH
7427 do
7428   IFS=$as_save_IFS
7429   test -z "$as_dir" && as_dir=.
7430   for ac_exec_ext in '' $ac_executable_extensions; do
7431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7432     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7434     break 2
7435   fi
7436 done
7437 done
7438 IFS=$as_save_IFS
7439
7440   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7441   ;;
7442 esac
7443 fi
7444 NEATO=$ac_cv_path_NEATO
7445 if test -n "$NEATO"; then
7446   { echo "$as_me:$LINENO: result: $NEATO" >&5
7447 echo "${ECHO_T}$NEATO" >&6; }
7448 else
7449   { echo "$as_me:$LINENO: result: no" >&5
7450 echo "${ECHO_T}no" >&6; }
7451 fi
7452
7453
7454 if test "$NEATO" != "echo neato" ; then
7455
7456 cat >>confdefs.h <<\_ACEOF
7457 #define HAVE_NEATO 1
7458 _ACEOF
7459
7460     if test "$llvm_cv_os_type" = "MingW" ; then
7461     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7462   fi
7463
7464 cat >>confdefs.h <<_ACEOF
7465 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7466 _ACEOF
7467
7468 fi
7469 # Extract the first word of "twopi", so it can be a program name with args.
7470 set dummy twopi; ac_word=$2
7471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7473 if test "${ac_cv_path_TWOPI+set}" = set; then
7474   echo $ECHO_N "(cached) $ECHO_C" >&6
7475 else
7476   case $TWOPI in
7477   [\\/]* | ?:[\\/]*)
7478   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7479   ;;
7480   *)
7481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7482 for as_dir in $PATH
7483 do
7484   IFS=$as_save_IFS
7485   test -z "$as_dir" && as_dir=.
7486   for ac_exec_ext in '' $ac_executable_extensions; do
7487   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7488     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7490     break 2
7491   fi
7492 done
7493 done
7494 IFS=$as_save_IFS
7495
7496   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7497   ;;
7498 esac
7499 fi
7500 TWOPI=$ac_cv_path_TWOPI
7501 if test -n "$TWOPI"; then
7502   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7503 echo "${ECHO_T}$TWOPI" >&6; }
7504 else
7505   { echo "$as_me:$LINENO: result: no" >&5
7506 echo "${ECHO_T}no" >&6; }
7507 fi
7508
7509
7510 if test "$TWOPI" != "echo twopi" ; then
7511
7512 cat >>confdefs.h <<\_ACEOF
7513 #define HAVE_TWOPI 1
7514 _ACEOF
7515
7516     if test "$llvm_cv_os_type" = "MingW" ; then
7517     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7518   fi
7519
7520 cat >>confdefs.h <<_ACEOF
7521 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7522 _ACEOF
7523
7524 fi
7525 # Extract the first word of "circo", so it can be a program name with args.
7526 set dummy circo; ac_word=$2
7527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7529 if test "${ac_cv_path_CIRCO+set}" = set; then
7530   echo $ECHO_N "(cached) $ECHO_C" >&6
7531 else
7532   case $CIRCO in
7533   [\\/]* | ?:[\\/]*)
7534   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7535   ;;
7536   *)
7537   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538 for as_dir in $PATH
7539 do
7540   IFS=$as_save_IFS
7541   test -z "$as_dir" && as_dir=.
7542   for ac_exec_ext in '' $ac_executable_extensions; do
7543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7544     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7546     break 2
7547   fi
7548 done
7549 done
7550 IFS=$as_save_IFS
7551
7552   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7553   ;;
7554 esac
7555 fi
7556 CIRCO=$ac_cv_path_CIRCO
7557 if test -n "$CIRCO"; then
7558   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7559 echo "${ECHO_T}$CIRCO" >&6; }
7560 else
7561   { echo "$as_me:$LINENO: result: no" >&5
7562 echo "${ECHO_T}no" >&6; }
7563 fi
7564
7565
7566 if test "$CIRCO" != "echo circo" ; then
7567
7568 cat >>confdefs.h <<\_ACEOF
7569 #define HAVE_CIRCO 1
7570 _ACEOF
7571
7572     if test "$llvm_cv_os_type" = "MingW" ; then
7573     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7574   fi
7575
7576 cat >>confdefs.h <<_ACEOF
7577 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7578 _ACEOF
7579
7580 fi
7581 for ac_prog in gv gsview32
7582 do
7583   # Extract the first word of "$ac_prog", so it can be a program name with args.
7584 set dummy $ac_prog; ac_word=$2
7585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7587 if test "${ac_cv_path_GV+set}" = set; then
7588   echo $ECHO_N "(cached) $ECHO_C" >&6
7589 else
7590   case $GV in
7591   [\\/]* | ?:[\\/]*)
7592   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7593   ;;
7594   *)
7595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 for as_dir in $PATH
7597 do
7598   IFS=$as_save_IFS
7599   test -z "$as_dir" && as_dir=.
7600   for ac_exec_ext in '' $ac_executable_extensions; do
7601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7602     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7604     break 2
7605   fi
7606 done
7607 done
7608 IFS=$as_save_IFS
7609
7610   ;;
7611 esac
7612 fi
7613 GV=$ac_cv_path_GV
7614 if test -n "$GV"; then
7615   { echo "$as_me:$LINENO: result: $GV" >&5
7616 echo "${ECHO_T}$GV" >&6; }
7617 else
7618   { echo "$as_me:$LINENO: result: no" >&5
7619 echo "${ECHO_T}no" >&6; }
7620 fi
7621
7622
7623   test -n "$GV" && break
7624 done
7625 test -n "$GV" || GV="echo gv"
7626
7627 if test "$GV" != "echo gv" ; then
7628
7629 cat >>confdefs.h <<\_ACEOF
7630 #define HAVE_GV 1
7631 _ACEOF
7632
7633     if test "$llvm_cv_os_type" = "MingW" ; then
7634     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7635   fi
7636
7637 cat >>confdefs.h <<_ACEOF
7638 #define LLVM_PATH_GV "$GV${EXEEXT}"
7639 _ACEOF
7640
7641 fi
7642 # Extract the first word of "dotty", so it can be a program name with args.
7643 set dummy dotty; ac_word=$2
7644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7646 if test "${ac_cv_path_DOTTY+set}" = set; then
7647   echo $ECHO_N "(cached) $ECHO_C" >&6
7648 else
7649   case $DOTTY in
7650   [\\/]* | ?:[\\/]*)
7651   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7652   ;;
7653   *)
7654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655 for as_dir in $PATH
7656 do
7657   IFS=$as_save_IFS
7658   test -z "$as_dir" && as_dir=.
7659   for ac_exec_ext in '' $ac_executable_extensions; do
7660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7661     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7663     break 2
7664   fi
7665 done
7666 done
7667 IFS=$as_save_IFS
7668
7669   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7670   ;;
7671 esac
7672 fi
7673 DOTTY=$ac_cv_path_DOTTY
7674 if test -n "$DOTTY"; then
7675   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7676 echo "${ECHO_T}$DOTTY" >&6; }
7677 else
7678   { echo "$as_me:$LINENO: result: no" >&5
7679 echo "${ECHO_T}no" >&6; }
7680 fi
7681
7682
7683 if test "$DOTTY" != "echo dotty" ; then
7684
7685 cat >>confdefs.h <<\_ACEOF
7686 #define HAVE_DOTTY 1
7687 _ACEOF
7688
7689     if test "$llvm_cv_os_type" = "MingW" ; then
7690     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7691   fi
7692
7693 cat >>confdefs.h <<_ACEOF
7694 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7695 _ACEOF
7696
7697 fi
7698
7699
7700 # Extract the first word of "perl", so it can be a program name with args.
7701 set dummy perl; ac_word=$2
7702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7704 if test "${ac_cv_path_PERL+set}" = set; then
7705   echo $ECHO_N "(cached) $ECHO_C" >&6
7706 else
7707   case $PERL in
7708   [\\/]* | ?:[\\/]*)
7709   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7710   ;;
7711   *)
7712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7713 for as_dir in $PATH
7714 do
7715   IFS=$as_save_IFS
7716   test -z "$as_dir" && as_dir=.
7717   for ac_exec_ext in '' $ac_executable_extensions; do
7718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7719     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7720     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7721     break 2
7722   fi
7723 done
7724 done
7725 IFS=$as_save_IFS
7726
7727   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7728   ;;
7729 esac
7730 fi
7731 PERL=$ac_cv_path_PERL
7732 if test -n "$PERL"; then
7733   { echo "$as_me:$LINENO: result: $PERL" >&5
7734 echo "${ECHO_T}$PERL" >&6; }
7735 else
7736   { echo "$as_me:$LINENO: result: no" >&5
7737 echo "${ECHO_T}no" >&6; }
7738 fi
7739
7740
7741 if test "$PERL" != "none"; then
7742   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7743 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7744   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7745     { echo "$as_me:$LINENO: result: yes" >&5
7746 echo "${ECHO_T}yes" >&6; }
7747   else
7748     PERL=none
7749     { echo "$as_me:$LINENO: result: not found" >&5
7750 echo "${ECHO_T}not found" >&6; }
7751   fi
7752 fi
7753
7754
7755 if test x"$PERL" = xnone; then
7756    HAVE_PERL=0
7757
7758    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7759 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7760    { (exit 1); exit 1; }; }
7761 else
7762    HAVE_PERL=1
7763
7764 fi
7765
7766 # Find a good install program.  We prefer a C program (faster),
7767 # so one script is as good as another.  But avoid the broken or
7768 # incompatible versions:
7769 # SysV /etc/install, /usr/sbin/install
7770 # SunOS /usr/etc/install
7771 # IRIX /sbin/install
7772 # AIX /bin/install
7773 # AmigaOS /C/install, which installs bootblocks on floppy discs
7774 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7775 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7776 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7777 # OS/2's system install, which has a completely different semantic
7778 # ./install, which can be erroneously created by make from ./install.sh.
7779 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7780 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7781 if test -z "$INSTALL"; then
7782 if test "${ac_cv_path_install+set}" = set; then
7783   echo $ECHO_N "(cached) $ECHO_C" >&6
7784 else
7785   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786 for as_dir in $PATH
7787 do
7788   IFS=$as_save_IFS
7789   test -z "$as_dir" && as_dir=.
7790   # Account for people who put trailing slashes in PATH elements.
7791 case $as_dir/ in
7792   ./ | .// | /cC/* | \
7793   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7794   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7795   /usr/ucb/* ) ;;
7796   *)
7797     # OSF1 and SCO ODT 3.0 have their own names for install.
7798     # Don't use installbsd from OSF since it installs stuff as root
7799     # by default.
7800     for ac_prog in ginstall scoinst install; do
7801       for ac_exec_ext in '' $ac_executable_extensions; do
7802         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7803           if test $ac_prog = install &&
7804             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7805             # AIX install.  It has an incompatible calling convention.
7806             :
7807           elif test $ac_prog = install &&
7808             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7809             # program-specific install script used by HP pwplus--don't use.
7810             :
7811           else
7812             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7813             break 3
7814           fi
7815         fi
7816       done
7817     done
7818     ;;
7819 esac
7820 done
7821 IFS=$as_save_IFS
7822
7823
7824 fi
7825   if test "${ac_cv_path_install+set}" = set; then
7826     INSTALL=$ac_cv_path_install
7827   else
7828     # As a last resort, use the slow shell script.  Don't cache a
7829     # value for INSTALL within a source directory, because that will
7830     # break other packages using the cache if that directory is
7831     # removed, or if the value is a relative name.
7832     INSTALL=$ac_install_sh
7833   fi
7834 fi
7835 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7836 echo "${ECHO_T}$INSTALL" >&6; }
7837
7838 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7839 # It thinks the first close brace ends the variable substitution.
7840 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7841
7842 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7843
7844 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7845
7846
7847 # Extract the first word of "bzip2", so it can be a program name with args.
7848 set dummy bzip2; ac_word=$2
7849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7851 if test "${ac_cv_path_BZIP2+set}" = set; then
7852   echo $ECHO_N "(cached) $ECHO_C" >&6
7853 else
7854   case $BZIP2 in
7855   [\\/]* | ?:[\\/]*)
7856   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7857   ;;
7858   *)
7859   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7860 for as_dir in $PATH
7861 do
7862   IFS=$as_save_IFS
7863   test -z "$as_dir" && as_dir=.
7864   for ac_exec_ext in '' $ac_executable_extensions; do
7865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7866     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7868     break 2
7869   fi
7870 done
7871 done
7872 IFS=$as_save_IFS
7873
7874   ;;
7875 esac
7876 fi
7877 BZIP2=$ac_cv_path_BZIP2
7878 if test -n "$BZIP2"; then
7879   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7880 echo "${ECHO_T}$BZIP2" >&6; }
7881 else
7882   { echo "$as_me:$LINENO: result: no" >&5
7883 echo "${ECHO_T}no" >&6; }
7884 fi
7885
7886
7887 # Extract the first word of "doxygen", so it can be a program name with args.
7888 set dummy doxygen; ac_word=$2
7889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7891 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7892   echo $ECHO_N "(cached) $ECHO_C" >&6
7893 else
7894   case $DOXYGEN in
7895   [\\/]* | ?:[\\/]*)
7896   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7897   ;;
7898   *)
7899   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900 for as_dir in $PATH
7901 do
7902   IFS=$as_save_IFS
7903   test -z "$as_dir" && as_dir=.
7904   for ac_exec_ext in '' $ac_executable_extensions; do
7905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7906     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7908     break 2
7909   fi
7910 done
7911 done
7912 IFS=$as_save_IFS
7913
7914   ;;
7915 esac
7916 fi
7917 DOXYGEN=$ac_cv_path_DOXYGEN
7918 if test -n "$DOXYGEN"; then
7919   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7920 echo "${ECHO_T}$DOXYGEN" >&6; }
7921 else
7922   { echo "$as_me:$LINENO: result: no" >&5
7923 echo "${ECHO_T}no" >&6; }
7924 fi
7925
7926
7927 # Extract the first word of "groff", so it can be a program name with args.
7928 set dummy groff; ac_word=$2
7929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7931 if test "${ac_cv_path_GROFF+set}" = set; then
7932   echo $ECHO_N "(cached) $ECHO_C" >&6
7933 else
7934   case $GROFF in
7935   [\\/]* | ?:[\\/]*)
7936   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7937   ;;
7938   *)
7939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7940 for as_dir in $PATH
7941 do
7942   IFS=$as_save_IFS
7943   test -z "$as_dir" && as_dir=.
7944   for ac_exec_ext in '' $ac_executable_extensions; do
7945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7946     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7948     break 2
7949   fi
7950 done
7951 done
7952 IFS=$as_save_IFS
7953
7954   ;;
7955 esac
7956 fi
7957 GROFF=$ac_cv_path_GROFF
7958 if test -n "$GROFF"; then
7959   { echo "$as_me:$LINENO: result: $GROFF" >&5
7960 echo "${ECHO_T}$GROFF" >&6; }
7961 else
7962   { echo "$as_me:$LINENO: result: no" >&5
7963 echo "${ECHO_T}no" >&6; }
7964 fi
7965
7966
7967 # Extract the first word of "gzip", so it can be a program name with args.
7968 set dummy gzip; ac_word=$2
7969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7971 if test "${ac_cv_path_GZIP+set}" = set; then
7972   echo $ECHO_N "(cached) $ECHO_C" >&6
7973 else
7974   case $GZIP in
7975   [\\/]* | ?:[\\/]*)
7976   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7977   ;;
7978   *)
7979   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7980 for as_dir in $PATH
7981 do
7982   IFS=$as_save_IFS
7983   test -z "$as_dir" && as_dir=.
7984   for ac_exec_ext in '' $ac_executable_extensions; do
7985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7986     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7988     break 2
7989   fi
7990 done
7991 done
7992 IFS=$as_save_IFS
7993
7994   ;;
7995 esac
7996 fi
7997 GZIP=$ac_cv_path_GZIP
7998 if test -n "$GZIP"; then
7999   { echo "$as_me:$LINENO: result: $GZIP" >&5
8000 echo "${ECHO_T}$GZIP" >&6; }
8001 else
8002   { echo "$as_me:$LINENO: result: no" >&5
8003 echo "${ECHO_T}no" >&6; }
8004 fi
8005
8006
8007 # Extract the first word of "pod2html", so it can be a program name with args.
8008 set dummy pod2html; ac_word=$2
8009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8011 if test "${ac_cv_path_POD2HTML+set}" = set; then
8012   echo $ECHO_N "(cached) $ECHO_C" >&6
8013 else
8014   case $POD2HTML in
8015   [\\/]* | ?:[\\/]*)
8016   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8017   ;;
8018   *)
8019   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020 for as_dir in $PATH
8021 do
8022   IFS=$as_save_IFS
8023   test -z "$as_dir" && as_dir=.
8024   for ac_exec_ext in '' $ac_executable_extensions; do
8025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8026     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8028     break 2
8029   fi
8030 done
8031 done
8032 IFS=$as_save_IFS
8033
8034   ;;
8035 esac
8036 fi
8037 POD2HTML=$ac_cv_path_POD2HTML
8038 if test -n "$POD2HTML"; then
8039   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8040 echo "${ECHO_T}$POD2HTML" >&6; }
8041 else
8042   { echo "$as_me:$LINENO: result: no" >&5
8043 echo "${ECHO_T}no" >&6; }
8044 fi
8045
8046
8047 # Extract the first word of "pod2man", so it can be a program name with args.
8048 set dummy pod2man; ac_word=$2
8049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8051 if test "${ac_cv_path_POD2MAN+set}" = set; then
8052   echo $ECHO_N "(cached) $ECHO_C" >&6
8053 else
8054   case $POD2MAN in
8055   [\\/]* | ?:[\\/]*)
8056   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8057   ;;
8058   *)
8059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060 for as_dir in $PATH
8061 do
8062   IFS=$as_save_IFS
8063   test -z "$as_dir" && as_dir=.
8064   for ac_exec_ext in '' $ac_executable_extensions; do
8065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8066     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8068     break 2
8069   fi
8070 done
8071 done
8072 IFS=$as_save_IFS
8073
8074   ;;
8075 esac
8076 fi
8077 POD2MAN=$ac_cv_path_POD2MAN
8078 if test -n "$POD2MAN"; then
8079   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8080 echo "${ECHO_T}$POD2MAN" >&6; }
8081 else
8082   { echo "$as_me:$LINENO: result: no" >&5
8083 echo "${ECHO_T}no" >&6; }
8084 fi
8085
8086
8087 # Extract the first word of "runtest", so it can be a program name with args.
8088 set dummy runtest; ac_word=$2
8089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8091 if test "${ac_cv_path_RUNTEST+set}" = set; then
8092   echo $ECHO_N "(cached) $ECHO_C" >&6
8093 else
8094   case $RUNTEST in
8095   [\\/]* | ?:[\\/]*)
8096   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8097   ;;
8098   *)
8099   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8100 for as_dir in $PATH
8101 do
8102   IFS=$as_save_IFS
8103   test -z "$as_dir" && as_dir=.
8104   for ac_exec_ext in '' $ac_executable_extensions; do
8105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8106     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8107     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8108     break 2
8109   fi
8110 done
8111 done
8112 IFS=$as_save_IFS
8113
8114   ;;
8115 esac
8116 fi
8117 RUNTEST=$ac_cv_path_RUNTEST
8118 if test -n "$RUNTEST"; then
8119   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8120 echo "${ECHO_T}$RUNTEST" >&6; }
8121 else
8122   { echo "$as_me:$LINENO: result: no" >&5
8123 echo "${ECHO_T}no" >&6; }
8124 fi
8125
8126
8127
8128 no_itcl=true
8129 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8130 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8131
8132 # Check whether --with-tclinclude was given.
8133 if test "${with_tclinclude+set}" = set; then
8134   withval=$with_tclinclude; with_tclinclude=${withval}
8135 else
8136   with_tclinclude=''
8137 fi
8138
8139 if test "${ac_cv_path_tclsh+set}" = set; then
8140   echo $ECHO_N "(cached) $ECHO_C" >&6
8141 else
8142
8143 if test x"${with_tclinclude}" != x ; then
8144   if test -f ${with_tclinclude}/tclsh ; then
8145     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8146   elif test -f ${with_tclinclude}/src/tclsh ; then
8147     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8148   else
8149     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8150 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8151    { (exit 1); exit 1; }; }
8152   fi
8153 fi
8154 fi
8155
8156
8157 if test x"${ac_cv_path_tclsh}" = x ; then
8158   { echo "$as_me:$LINENO: result: none" >&5
8159 echo "${ECHO_T}none" >&6; }
8160   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
8161 do
8162   # Extract the first word of "$ac_prog", so it can be a program name with args.
8163 set dummy $ac_prog; ac_word=$2
8164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8166 if test "${ac_cv_path_TCLSH+set}" = set; then
8167   echo $ECHO_N "(cached) $ECHO_C" >&6
8168 else
8169   case $TCLSH in
8170   [\\/]* | ?:[\\/]*)
8171   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8172   ;;
8173   *)
8174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8175 for as_dir in $PATH
8176 do
8177   IFS=$as_save_IFS
8178   test -z "$as_dir" && as_dir=.
8179   for ac_exec_ext in '' $ac_executable_extensions; do
8180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8181     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8183     break 2
8184   fi
8185 done
8186 done
8187 IFS=$as_save_IFS
8188
8189   ;;
8190 esac
8191 fi
8192 TCLSH=$ac_cv_path_TCLSH
8193 if test -n "$TCLSH"; then
8194   { echo "$as_me:$LINENO: result: $TCLSH" >&5
8195 echo "${ECHO_T}$TCLSH" >&6; }
8196 else
8197   { echo "$as_me:$LINENO: result: no" >&5
8198 echo "${ECHO_T}no" >&6; }
8199 fi
8200
8201
8202   test -n "$TCLSH" && break
8203 done
8204
8205   if test x"${TCLSH}" = x ; then
8206     ac_cv_path_tclsh='';
8207   else
8208     ac_cv_path_tclsh="${TCLSH}";
8209   fi
8210 else
8211   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8212 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8213   TCLSH="${ac_cv_path_tclsh}"
8214
8215 fi
8216
8217 # Extract the first word of "zip", so it can be a program name with args.
8218 set dummy zip; ac_word=$2
8219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8221 if test "${ac_cv_path_ZIP+set}" = set; then
8222   echo $ECHO_N "(cached) $ECHO_C" >&6
8223 else
8224   case $ZIP in
8225   [\\/]* | ?:[\\/]*)
8226   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8227   ;;
8228   *)
8229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8230 for as_dir in $PATH
8231 do
8232   IFS=$as_save_IFS
8233   test -z "$as_dir" && as_dir=.
8234   for ac_exec_ext in '' $ac_executable_extensions; do
8235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8236     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8237     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8238     break 2
8239   fi
8240 done
8241 done
8242 IFS=$as_save_IFS
8243
8244   ;;
8245 esac
8246 fi
8247 ZIP=$ac_cv_path_ZIP
8248 if test -n "$ZIP"; then
8249   { echo "$as_me:$LINENO: result: $ZIP" >&5
8250 echo "${ECHO_T}$ZIP" >&6; }
8251 else
8252   { echo "$as_me:$LINENO: result: no" >&5
8253 echo "${ECHO_T}no" >&6; }
8254 fi
8255
8256
8257 for ac_prog in ocamlc
8258 do
8259   # Extract the first word of "$ac_prog", so it can be a program name with args.
8260 set dummy $ac_prog; ac_word=$2
8261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8263 if test "${ac_cv_path_OCAMLC+set}" = set; then
8264   echo $ECHO_N "(cached) $ECHO_C" >&6
8265 else
8266   case $OCAMLC in
8267   [\\/]* | ?:[\\/]*)
8268   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8269   ;;
8270   *)
8271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272 for as_dir in $PATH
8273 do
8274   IFS=$as_save_IFS
8275   test -z "$as_dir" && as_dir=.
8276   for ac_exec_ext in '' $ac_executable_extensions; do
8277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8278     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8280     break 2
8281   fi
8282 done
8283 done
8284 IFS=$as_save_IFS
8285
8286   ;;
8287 esac
8288 fi
8289 OCAMLC=$ac_cv_path_OCAMLC
8290 if test -n "$OCAMLC"; then
8291   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8292 echo "${ECHO_T}$OCAMLC" >&6; }
8293 else
8294   { echo "$as_me:$LINENO: result: no" >&5
8295 echo "${ECHO_T}no" >&6; }
8296 fi
8297
8298
8299   test -n "$OCAMLC" && break
8300 done
8301
8302 for ac_prog in ocamlopt
8303 do
8304   # Extract the first word of "$ac_prog", so it can be a program name with args.
8305 set dummy $ac_prog; ac_word=$2
8306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8308 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8309   echo $ECHO_N "(cached) $ECHO_C" >&6
8310 else
8311   case $OCAMLOPT in
8312   [\\/]* | ?:[\\/]*)
8313   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8314   ;;
8315   *)
8316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8317 for as_dir in $PATH
8318 do
8319   IFS=$as_save_IFS
8320   test -z "$as_dir" && as_dir=.
8321   for ac_exec_ext in '' $ac_executable_extensions; do
8322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8323     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8324     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8325     break 2
8326   fi
8327 done
8328 done
8329 IFS=$as_save_IFS
8330
8331   ;;
8332 esac
8333 fi
8334 OCAMLOPT=$ac_cv_path_OCAMLOPT
8335 if test -n "$OCAMLOPT"; then
8336   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8337 echo "${ECHO_T}$OCAMLOPT" >&6; }
8338 else
8339   { echo "$as_me:$LINENO: result: no" >&5
8340 echo "${ECHO_T}no" >&6; }
8341 fi
8342
8343
8344   test -n "$OCAMLOPT" && break
8345 done
8346
8347 for ac_prog in ocamldep
8348 do
8349   # Extract the first word of "$ac_prog", so it can be a program name with args.
8350 set dummy $ac_prog; ac_word=$2
8351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8353 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8354   echo $ECHO_N "(cached) $ECHO_C" >&6
8355 else
8356   case $OCAMLDEP in
8357   [\\/]* | ?:[\\/]*)
8358   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8359   ;;
8360   *)
8361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362 for as_dir in $PATH
8363 do
8364   IFS=$as_save_IFS
8365   test -z "$as_dir" && as_dir=.
8366   for ac_exec_ext in '' $ac_executable_extensions; do
8367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8368     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8369     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8370     break 2
8371   fi
8372 done
8373 done
8374 IFS=$as_save_IFS
8375
8376   ;;
8377 esac
8378 fi
8379 OCAMLDEP=$ac_cv_path_OCAMLDEP
8380 if test -n "$OCAMLDEP"; then
8381   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8382 echo "${ECHO_T}$OCAMLDEP" >&6; }
8383 else
8384   { echo "$as_me:$LINENO: result: no" >&5
8385 echo "${ECHO_T}no" >&6; }
8386 fi
8387
8388
8389   test -n "$OCAMLDEP" && break
8390 done
8391
8392 for ac_prog in ocamldoc
8393 do
8394   # Extract the first word of "$ac_prog", so it can be a program name with args.
8395 set dummy $ac_prog; ac_word=$2
8396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8398 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8399   echo $ECHO_N "(cached) $ECHO_C" >&6
8400 else
8401   case $OCAMLDOC in
8402   [\\/]* | ?:[\\/]*)
8403   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8404   ;;
8405   *)
8406   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8407 for as_dir in $PATH
8408 do
8409   IFS=$as_save_IFS
8410   test -z "$as_dir" && as_dir=.
8411   for ac_exec_ext in '' $ac_executable_extensions; do
8412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8413     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8415     break 2
8416   fi
8417 done
8418 done
8419 IFS=$as_save_IFS
8420
8421   ;;
8422 esac
8423 fi
8424 OCAMLDOC=$ac_cv_path_OCAMLDOC
8425 if test -n "$OCAMLDOC"; then
8426   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8427 echo "${ECHO_T}$OCAMLDOC" >&6; }
8428 else
8429   { echo "$as_me:$LINENO: result: no" >&5
8430 echo "${ECHO_T}no" >&6; }
8431 fi
8432
8433
8434   test -n "$OCAMLDOC" && break
8435 done
8436
8437 for ac_prog in gas as
8438 do
8439   # Extract the first word of "$ac_prog", so it can be a program name with args.
8440 set dummy $ac_prog; ac_word=$2
8441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8443 if test "${ac_cv_path_GAS+set}" = set; then
8444   echo $ECHO_N "(cached) $ECHO_C" >&6
8445 else
8446   case $GAS in
8447   [\\/]* | ?:[\\/]*)
8448   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8449   ;;
8450   *)
8451   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8452 for as_dir in $PATH
8453 do
8454   IFS=$as_save_IFS
8455   test -z "$as_dir" && as_dir=.
8456   for ac_exec_ext in '' $ac_executable_extensions; do
8457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8458     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8459     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8460     break 2
8461   fi
8462 done
8463 done
8464 IFS=$as_save_IFS
8465
8466   ;;
8467 esac
8468 fi
8469 GAS=$ac_cv_path_GAS
8470 if test -n "$GAS"; then
8471   { echo "$as_me:$LINENO: result: $GAS" >&5
8472 echo "${ECHO_T}$GAS" >&6; }
8473 else
8474   { echo "$as_me:$LINENO: result: no" >&5
8475 echo "${ECHO_T}no" >&6; }
8476 fi
8477
8478
8479   test -n "$GAS" && break
8480 done
8481
8482
8483 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8484 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8485 if test "${llvm_cv_link_use_r+set}" = set; then
8486   echo $ECHO_N "(cached) $ECHO_C" >&6
8487 else
8488    ac_ext=c
8489 ac_cpp='$CPP $CPPFLAGS'
8490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8493
8494   oldcflags="$CFLAGS"
8495   CFLAGS="$CFLAGS -Wl,-R."
8496   cat >conftest.$ac_ext <<_ACEOF
8497 /* confdefs.h.  */
8498 _ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h.  */
8502
8503 int
8504 main ()
8505 {
8506 int main() { return 0; }
8507   ;
8508   return 0;
8509 }
8510 _ACEOF
8511 rm -f conftest.$ac_objext conftest$ac_exeext
8512 if { (ac_try="$ac_link"
8513 case "(($ac_try" in
8514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8515   *) ac_try_echo=$ac_try;;
8516 esac
8517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8518   (eval "$ac_link") 2>conftest.er1
8519   ac_status=$?
8520   grep -v '^ *+' conftest.er1 >conftest.err
8521   rm -f conftest.er1
8522   cat conftest.err >&5
8523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524   (exit $ac_status); } &&
8525          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8526   { (case "(($ac_try" in
8527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8528   *) ac_try_echo=$ac_try;;
8529 esac
8530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8531   (eval "$ac_try") 2>&5
8532   ac_status=$?
8533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534   (exit $ac_status); }; } &&
8535          { ac_try='test -s conftest$ac_exeext'
8536   { (case "(($ac_try" in
8537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8538   *) ac_try_echo=$ac_try;;
8539 esac
8540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8541   (eval "$ac_try") 2>&5
8542   ac_status=$?
8543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544   (exit $ac_status); }; }; then
8545   llvm_cv_link_use_r=yes
8546 else
8547   echo "$as_me: failed program was:" >&5
8548 sed 's/^/| /' conftest.$ac_ext >&5
8549
8550         llvm_cv_link_use_r=no
8551 fi
8552
8553 rm -f core conftest.err conftest.$ac_objext \
8554       conftest$ac_exeext conftest.$ac_ext
8555   CFLAGS="$oldcflags"
8556   ac_ext=c
8557 ac_cpp='$CPP $CPPFLAGS'
8558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8561
8562
8563 fi
8564 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8565 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8566 if test "$llvm_cv_link_use_r" = yes ; then
8567
8568 cat >>confdefs.h <<\_ACEOF
8569 #define HAVE_LINK_R 1
8570 _ACEOF
8571
8572   fi
8573
8574
8575 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8576 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8577 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8578   echo $ECHO_N "(cached) $ECHO_C" >&6
8579 else
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   oldcflags="$CFLAGS"
8587   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8588   cat >conftest.$ac_ext <<_ACEOF
8589 /* confdefs.h.  */
8590 _ACEOF
8591 cat confdefs.h >>conftest.$ac_ext
8592 cat >>conftest.$ac_ext <<_ACEOF
8593 /* end confdefs.h.  */
8594
8595 int
8596 main ()
8597 {
8598 int main() { return 0; }
8599   ;
8600   return 0;
8601 }
8602 _ACEOF
8603 rm -f conftest.$ac_objext conftest$ac_exeext
8604 if { (ac_try="$ac_link"
8605 case "(($ac_try" in
8606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8607   *) ac_try_echo=$ac_try;;
8608 esac
8609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8610   (eval "$ac_link") 2>conftest.er1
8611   ac_status=$?
8612   grep -v '^ *+' conftest.er1 >conftest.err
8613   rm -f conftest.er1
8614   cat conftest.err >&5
8615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616   (exit $ac_status); } &&
8617          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8618   { (case "(($ac_try" in
8619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8620   *) ac_try_echo=$ac_try;;
8621 esac
8622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8623   (eval "$ac_try") 2>&5
8624   ac_status=$?
8625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626   (exit $ac_status); }; } &&
8627          { ac_try='test -s conftest$ac_exeext'
8628   { (case "(($ac_try" in
8629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8630   *) ac_try_echo=$ac_try;;
8631 esac
8632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633   (eval "$ac_try") 2>&5
8634   ac_status=$?
8635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636   (exit $ac_status); }; }; then
8637   llvm_cv_link_use_export_dynamic=yes
8638 else
8639   echo "$as_me: failed program was:" >&5
8640 sed 's/^/| /' conftest.$ac_ext >&5
8641
8642         llvm_cv_link_use_export_dynamic=no
8643 fi
8644
8645 rm -f core conftest.err conftest.$ac_objext \
8646       conftest$ac_exeext conftest.$ac_ext
8647   CFLAGS="$oldcflags"
8648   ac_ext=c
8649 ac_cpp='$CPP $CPPFLAGS'
8650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8653
8654
8655 fi
8656 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8657 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8658 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8659
8660 cat >>confdefs.h <<\_ACEOF
8661 #define HAVE_LINK_EXPORT_DYNAMIC 1
8662 _ACEOF
8663
8664   fi
8665
8666
8667
8668
8669 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8670 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8671 if test "${ac_cv_c_const+set}" = set; then
8672   echo $ECHO_N "(cached) $ECHO_C" >&6
8673 else
8674   cat >conftest.$ac_ext <<_ACEOF
8675 /* confdefs.h.  */
8676 _ACEOF
8677 cat confdefs.h >>conftest.$ac_ext
8678 cat >>conftest.$ac_ext <<_ACEOF
8679 /* end confdefs.h.  */
8680
8681 int
8682 main ()
8683 {
8684 /* FIXME: Include the comments suggested by Paul. */
8685 #ifndef __cplusplus
8686   /* Ultrix mips cc rejects this.  */
8687   typedef int charset[2];
8688   const charset x;
8689   /* SunOS 4.1.1 cc rejects this.  */
8690   char const *const *ccp;
8691   char **p;
8692   /* NEC SVR4.0.2 mips cc rejects this.  */
8693   struct point {int x, y;};
8694   static struct point const zero = {0,0};
8695   /* AIX XL C 1.02.0.0 rejects this.
8696      It does not let you subtract one const X* pointer from another in
8697      an arm of an if-expression whose if-part is not a constant
8698      expression */
8699   const char *g = "string";
8700   ccp = &g + (g ? g-g : 0);
8701   /* HPUX 7.0 cc rejects these. */
8702   ++ccp;
8703   p = (char**) ccp;
8704   ccp = (char const *const *) p;
8705   { /* SCO 3.2v4 cc rejects this.  */
8706     char *t;
8707     char const *s = 0 ? (char *) 0 : (char const *) 0;
8708
8709     *t++ = 0;
8710     if (s) return 0;
8711   }
8712   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8713     int x[] = {25, 17};
8714     const int *foo = &x[0];
8715     ++foo;
8716   }
8717   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8718     typedef const int *iptr;
8719     iptr p = 0;
8720     ++p;
8721   }
8722   { /* AIX XL C 1.02.0.0 rejects this saying
8723        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8724     struct s { int j; const int *ap[3]; };
8725     struct s *b; b->j = 5;
8726   }
8727   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8728     const int foo = 10;
8729     if (!foo) return 0;
8730   }
8731   return !x[0] && !zero.x;
8732 #endif
8733
8734   ;
8735   return 0;
8736 }
8737 _ACEOF
8738 rm -f conftest.$ac_objext
8739 if { (ac_try="$ac_compile"
8740 case "(($ac_try" in
8741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8742   *) ac_try_echo=$ac_try;;
8743 esac
8744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8745   (eval "$ac_compile") 2>conftest.er1
8746   ac_status=$?
8747   grep -v '^ *+' conftest.er1 >conftest.err
8748   rm -f conftest.er1
8749   cat conftest.err >&5
8750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751   (exit $ac_status); } &&
8752          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8753   { (case "(($ac_try" in
8754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8755   *) ac_try_echo=$ac_try;;
8756 esac
8757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8758   (eval "$ac_try") 2>&5
8759   ac_status=$?
8760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761   (exit $ac_status); }; } &&
8762          { ac_try='test -s conftest.$ac_objext'
8763   { (case "(($ac_try" in
8764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8765   *) ac_try_echo=$ac_try;;
8766 esac
8767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8768   (eval "$ac_try") 2>&5
8769   ac_status=$?
8770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771   (exit $ac_status); }; }; then
8772   ac_cv_c_const=yes
8773 else
8774   echo "$as_me: failed program was:" >&5
8775 sed 's/^/| /' conftest.$ac_ext >&5
8776
8777         ac_cv_c_const=no
8778 fi
8779
8780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8781 fi
8782 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8783 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8784 if test $ac_cv_c_const = no; then
8785
8786 cat >>confdefs.h <<\_ACEOF
8787 #define const
8788 _ACEOF
8789
8790 fi
8791
8792
8793
8794
8795
8796
8797 ac_header_dirent=no
8798 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8799   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8800 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8801 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8803   echo $ECHO_N "(cached) $ECHO_C" >&6
8804 else
8805   cat >conftest.$ac_ext <<_ACEOF
8806 /* confdefs.h.  */
8807 _ACEOF
8808 cat confdefs.h >>conftest.$ac_ext
8809 cat >>conftest.$ac_ext <<_ACEOF
8810 /* end confdefs.h.  */
8811 #include <sys/types.h>
8812 #include <$ac_hdr>
8813
8814 int
8815 main ()
8816 {
8817 if ((DIR *) 0)
8818 return 0;
8819   ;
8820   return 0;
8821 }
8822 _ACEOF
8823 rm -f conftest.$ac_objext
8824 if { (ac_try="$ac_compile"
8825 case "(($ac_try" in
8826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8827   *) ac_try_echo=$ac_try;;
8828 esac
8829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8830   (eval "$ac_compile") 2>conftest.er1
8831   ac_status=$?
8832   grep -v '^ *+' conftest.er1 >conftest.err
8833   rm -f conftest.er1
8834   cat conftest.err >&5
8835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836   (exit $ac_status); } &&
8837          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8838   { (case "(($ac_try" in
8839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8840   *) ac_try_echo=$ac_try;;
8841 esac
8842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8843   (eval "$ac_try") 2>&5
8844   ac_status=$?
8845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846   (exit $ac_status); }; } &&
8847          { ac_try='test -s conftest.$ac_objext'
8848   { (case "(($ac_try" in
8849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8850   *) ac_try_echo=$ac_try;;
8851 esac
8852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8853   (eval "$ac_try") 2>&5
8854   ac_status=$?
8855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856   (exit $ac_status); }; }; then
8857   eval "$as_ac_Header=yes"
8858 else
8859   echo "$as_me: failed program was:" >&5
8860 sed 's/^/| /' conftest.$ac_ext >&5
8861
8862         eval "$as_ac_Header=no"
8863 fi
8864
8865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8866 fi
8867 ac_res=`eval echo '${'$as_ac_Header'}'`
8868                { echo "$as_me:$LINENO: result: $ac_res" >&5
8869 echo "${ECHO_T}$ac_res" >&6; }
8870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8871   cat >>confdefs.h <<_ACEOF
8872 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8873 _ACEOF
8874
8875 ac_header_dirent=$ac_hdr; break
8876 fi
8877
8878 done
8879 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8880 if test $ac_header_dirent = dirent.h; then
8881   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8882 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8883 if test "${ac_cv_search_opendir+set}" = set; then
8884   echo $ECHO_N "(cached) $ECHO_C" >&6
8885 else
8886   ac_func_search_save_LIBS=$LIBS
8887 cat >conftest.$ac_ext <<_ACEOF
8888 /* confdefs.h.  */
8889 _ACEOF
8890 cat confdefs.h >>conftest.$ac_ext
8891 cat >>conftest.$ac_ext <<_ACEOF
8892 /* end confdefs.h.  */
8893
8894 /* Override any GCC internal prototype to avoid an error.
8895    Use char because int might match the return type of a GCC
8896    builtin and then its argument prototype would still apply.  */
8897 #ifdef __cplusplus
8898 extern "C"
8899 #endif
8900 char opendir ();
8901 int
8902 main ()
8903 {
8904 return opendir ();
8905   ;
8906   return 0;
8907 }
8908 _ACEOF
8909 for ac_lib in '' dir; do
8910   if test -z "$ac_lib"; then
8911     ac_res="none required"
8912   else
8913     ac_res=-l$ac_lib
8914     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8915   fi
8916   rm -f conftest.$ac_objext conftest$ac_exeext
8917 if { (ac_try="$ac_link"
8918 case "(($ac_try" in
8919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8920   *) ac_try_echo=$ac_try;;
8921 esac
8922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8923   (eval "$ac_link") 2>conftest.er1
8924   ac_status=$?
8925   grep -v '^ *+' conftest.er1 >conftest.err
8926   rm -f conftest.er1
8927   cat conftest.err >&5
8928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929   (exit $ac_status); } &&
8930          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8931   { (case "(($ac_try" in
8932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8933   *) ac_try_echo=$ac_try;;
8934 esac
8935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8936   (eval "$ac_try") 2>&5
8937   ac_status=$?
8938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939   (exit $ac_status); }; } &&
8940          { ac_try='test -s conftest$ac_exeext'
8941   { (case "(($ac_try" in
8942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8943   *) ac_try_echo=$ac_try;;
8944 esac
8945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8946   (eval "$ac_try") 2>&5
8947   ac_status=$?
8948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949   (exit $ac_status); }; }; then
8950   ac_cv_search_opendir=$ac_res
8951 else
8952   echo "$as_me: failed program was:" >&5
8953 sed 's/^/| /' conftest.$ac_ext >&5
8954
8955
8956 fi
8957
8958 rm -f core conftest.err conftest.$ac_objext \
8959       conftest$ac_exeext
8960   if test "${ac_cv_search_opendir+set}" = set; then
8961   break
8962 fi
8963 done
8964 if test "${ac_cv_search_opendir+set}" = set; then
8965   :
8966 else
8967   ac_cv_search_opendir=no
8968 fi
8969 rm conftest.$ac_ext
8970 LIBS=$ac_func_search_save_LIBS
8971 fi
8972 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8973 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8974 ac_res=$ac_cv_search_opendir
8975 if test "$ac_res" != no; then
8976   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8977
8978 fi
8979
8980 else
8981   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8982 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8983 if test "${ac_cv_search_opendir+set}" = set; then
8984   echo $ECHO_N "(cached) $ECHO_C" >&6
8985 else
8986   ac_func_search_save_LIBS=$LIBS
8987 cat >conftest.$ac_ext <<_ACEOF
8988 /* confdefs.h.  */
8989 _ACEOF
8990 cat confdefs.h >>conftest.$ac_ext
8991 cat >>conftest.$ac_ext <<_ACEOF
8992 /* end confdefs.h.  */
8993
8994 /* Override any GCC internal prototype to avoid an error.
8995    Use char because int might match the return type of a GCC
8996    builtin and then its argument prototype would still apply.  */
8997 #ifdef __cplusplus
8998 extern "C"
8999 #endif
9000 char opendir ();
9001 int
9002 main ()
9003 {
9004 return opendir ();
9005   ;
9006   return 0;
9007 }
9008 _ACEOF
9009 for ac_lib in '' x; do
9010   if test -z "$ac_lib"; then
9011     ac_res="none required"
9012   else
9013     ac_res=-l$ac_lib
9014     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9015   fi
9016   rm -f conftest.$ac_objext conftest$ac_exeext
9017 if { (ac_try="$ac_link"
9018 case "(($ac_try" in
9019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9020   *) ac_try_echo=$ac_try;;
9021 esac
9022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9023   (eval "$ac_link") 2>conftest.er1
9024   ac_status=$?
9025   grep -v '^ *+' conftest.er1 >conftest.err
9026   rm -f conftest.er1
9027   cat conftest.err >&5
9028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029   (exit $ac_status); } &&
9030          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9031   { (case "(($ac_try" in
9032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9033   *) ac_try_echo=$ac_try;;
9034 esac
9035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9036   (eval "$ac_try") 2>&5
9037   ac_status=$?
9038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039   (exit $ac_status); }; } &&
9040          { ac_try='test -s conftest$ac_exeext'
9041   { (case "(($ac_try" in
9042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9043   *) ac_try_echo=$ac_try;;
9044 esac
9045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9046   (eval "$ac_try") 2>&5
9047   ac_status=$?
9048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049   (exit $ac_status); }; }; then
9050   ac_cv_search_opendir=$ac_res
9051 else
9052   echo "$as_me: failed program was:" >&5
9053 sed 's/^/| /' conftest.$ac_ext >&5
9054
9055
9056 fi
9057
9058 rm -f core conftest.err conftest.$ac_objext \
9059       conftest$ac_exeext
9060   if test "${ac_cv_search_opendir+set}" = set; then
9061   break
9062 fi
9063 done
9064 if test "${ac_cv_search_opendir+set}" = set; then
9065   :
9066 else
9067   ac_cv_search_opendir=no
9068 fi
9069 rm conftest.$ac_ext
9070 LIBS=$ac_func_search_save_LIBS
9071 fi
9072 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9073 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9074 ac_res=$ac_cv_search_opendir
9075 if test "$ac_res" != no; then
9076   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9077
9078 fi
9079
9080 fi
9081
9082
9083 for ac_header in dlfcn.h
9084 do
9085 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9087   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9090   echo $ECHO_N "(cached) $ECHO_C" >&6
9091 fi
9092 ac_res=`eval echo '${'$as_ac_Header'}'`
9093                { echo "$as_me:$LINENO: result: $ac_res" >&5
9094 echo "${ECHO_T}$ac_res" >&6; }
9095 else
9096   # Is the header compilable?
9097 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9099 cat >conftest.$ac_ext <<_ACEOF
9100 /* confdefs.h.  */
9101 _ACEOF
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h.  */
9105 $ac_includes_default
9106 #include <$ac_header>
9107 _ACEOF
9108 rm -f conftest.$ac_objext
9109 if { (ac_try="$ac_compile"
9110 case "(($ac_try" in
9111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9112   *) ac_try_echo=$ac_try;;
9113 esac
9114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9115   (eval "$ac_compile") 2>conftest.er1
9116   ac_status=$?
9117   grep -v '^ *+' conftest.er1 >conftest.err
9118   rm -f conftest.er1
9119   cat conftest.err >&5
9120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121   (exit $ac_status); } &&
9122          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9123   { (case "(($ac_try" in
9124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9125   *) ac_try_echo=$ac_try;;
9126 esac
9127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9128   (eval "$ac_try") 2>&5
9129   ac_status=$?
9130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131   (exit $ac_status); }; } &&
9132          { ac_try='test -s conftest.$ac_objext'
9133   { (case "(($ac_try" in
9134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9135   *) ac_try_echo=$ac_try;;
9136 esac
9137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9138   (eval "$ac_try") 2>&5
9139   ac_status=$?
9140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141   (exit $ac_status); }; }; then
9142   ac_header_compiler=yes
9143 else
9144   echo "$as_me: failed program was:" >&5
9145 sed 's/^/| /' conftest.$ac_ext >&5
9146
9147         ac_header_compiler=no
9148 fi
9149
9150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9151 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9152 echo "${ECHO_T}$ac_header_compiler" >&6; }
9153
9154 # Is the header present?
9155 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9157 cat >conftest.$ac_ext <<_ACEOF
9158 /* confdefs.h.  */
9159 _ACEOF
9160 cat confdefs.h >>conftest.$ac_ext
9161 cat >>conftest.$ac_ext <<_ACEOF
9162 /* end confdefs.h.  */
9163 #include <$ac_header>
9164 _ACEOF
9165 if { (ac_try="$ac_cpp conftest.$ac_ext"
9166 case "(($ac_try" in
9167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9168   *) ac_try_echo=$ac_try;;
9169 esac
9170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9171   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9172   ac_status=$?
9173   grep -v '^ *+' conftest.er1 >conftest.err
9174   rm -f conftest.er1
9175   cat conftest.err >&5
9176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177   (exit $ac_status); } >/dev/null; then
9178   if test -s conftest.err; then
9179     ac_cpp_err=$ac_c_preproc_warn_flag
9180     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9181   else
9182     ac_cpp_err=
9183   fi
9184 else
9185   ac_cpp_err=yes
9186 fi
9187 if test -z "$ac_cpp_err"; then
9188   ac_header_preproc=yes
9189 else
9190   echo "$as_me: failed program was:" >&5
9191 sed 's/^/| /' conftest.$ac_ext >&5
9192
9193   ac_header_preproc=no
9194 fi
9195
9196 rm -f conftest.err conftest.$ac_ext
9197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9198 echo "${ECHO_T}$ac_header_preproc" >&6; }
9199
9200 # So?  What about this header?
9201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9202   yes:no: )
9203     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9205     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9207     ac_header_preproc=yes
9208     ;;
9209   no:yes:* )
9210     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9212     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9213 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9214     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9215 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9216     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9217 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9218     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9220     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9221 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9222     ( cat <<\_ASBOX
9223 ## ----------------------------------- ##
9224 ## Report this to llvmbugs@cs.uiuc.edu ##
9225 ## ----------------------------------- ##
9226 _ASBOX
9227      ) | sed "s/^/$as_me: WARNING:     /" >&2
9228     ;;
9229 esac
9230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9233   echo $ECHO_N "(cached) $ECHO_C" >&6
9234 else
9235   eval "$as_ac_Header=\$ac_header_preproc"
9236 fi
9237 ac_res=`eval echo '${'$as_ac_Header'}'`
9238                { echo "$as_me:$LINENO: result: $ac_res" >&5
9239 echo "${ECHO_T}$ac_res" >&6; }
9240
9241 fi
9242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9243   cat >>confdefs.h <<_ACEOF
9244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9245 _ACEOF
9246
9247 fi
9248
9249 done
9250
9251 # Check whether --enable-ltdl-install was given.
9252 if test "${enable_ltdl_install+set}" = set; then
9253   enableval=$enable_ltdl_install;
9254 fi
9255
9256
9257
9258
9259 if test x"${enable_ltdl_install-no}" != xno; then
9260   INSTALL_LTDL_TRUE=
9261   INSTALL_LTDL_FALSE='#'
9262 else
9263   INSTALL_LTDL_TRUE='#'
9264   INSTALL_LTDL_FALSE=
9265 fi
9266
9267
9268
9269 if test x"${enable_ltdl_convenience-no}" != xno; then
9270   CONVENIENCE_LTDL_TRUE=
9271   CONVENIENCE_LTDL_FALSE='#'
9272 else
9273   CONVENIENCE_LTDL_TRUE='#'
9274   CONVENIENCE_LTDL_FALSE=
9275 fi
9276
9277
9278 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9279 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9280 library_names_spec=
9281 libname_spec='lib$name'
9282 soname_spec=
9283 shrext_cmds=".so"
9284 postinstall_cmds=
9285 postuninstall_cmds=
9286 finish_cmds=
9287 finish_eval=
9288 shlibpath_var=
9289 shlibpath_overrides_runpath=unknown
9290 version_type=none
9291 dynamic_linker="$host_os ld.so"
9292 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9293 if test "$GCC" = yes; then
9294   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9295   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9296     # if the path contains ";" then we assume it to be the separator
9297     # otherwise default to the standard path separator (i.e. ":") - it is
9298     # assumed that no part of a normal pathname contains ";" but that should
9299     # okay in the real world where ";" in dirpaths is itself problematic.
9300     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9301   else
9302     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9303   fi
9304 else
9305   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9306 fi
9307 need_lib_prefix=unknown
9308 hardcode_into_libs=no
9309
9310 # when you set need_version to no, make sure it does not cause -set_version
9311 # flags to be left without arguments
9312 need_version=unknown
9313
9314 case $host_os in
9315 aix3*)
9316   version_type=linux
9317   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9318   shlibpath_var=LIBPATH
9319
9320   # AIX 3 has no versioning support, so we append a major version to the name.
9321   soname_spec='${libname}${release}${shared_ext}$major'
9322   ;;
9323
9324 aix4* | aix5*)
9325   version_type=linux
9326   need_lib_prefix=no
9327   need_version=no
9328   hardcode_into_libs=yes
9329   if test "$host_cpu" = ia64; then
9330     # AIX 5 supports IA64
9331     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9332     shlibpath_var=LD_LIBRARY_PATH
9333   else
9334     # With GCC up to 2.95.x, collect2 would create an import file
9335     # for dependence libraries.  The import file would start with
9336     # the line `#! .'.  This would cause the generated library to
9337     # depend on `.', always an invalid library.  This was fixed in
9338     # development snapshots of GCC prior to 3.0.
9339     case $host_os in
9340       aix4 | aix4.[01] | aix4.[01].*)
9341       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9342            echo ' yes '
9343            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9344         :
9345       else
9346         can_build_shared=no
9347       fi
9348       ;;
9349     esac
9350     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9351     # soname into executable. Probably we can add versioning support to
9352     # collect2, so additional links can be useful in future.
9353     if test "$aix_use_runtimelinking" = yes; then
9354       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9355       # instead of lib<name>.a to let people know that these are not
9356       # typical AIX shared libraries.
9357       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9358     else
9359       # We preserve .a as extension for shared libraries through AIX4.2
9360       # and later when we are not doing run time linking.
9361       library_names_spec='${libname}${release}.a $libname.a'
9362       soname_spec='${libname}${release}${shared_ext}$major'
9363     fi
9364     shlibpath_var=LIBPATH
9365   fi
9366   ;;
9367
9368 amigaos*)
9369   library_names_spec='$libname.ixlibrary $libname.a'
9370   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9371   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'
9372   ;;
9373
9374 beos*)
9375   library_names_spec='${libname}${shared_ext}'
9376   dynamic_linker="$host_os ld.so"
9377   shlibpath_var=LIBRARY_PATH
9378   ;;
9379
9380 bsdi[45]*)
9381   version_type=linux
9382   need_version=no
9383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9384   soname_spec='${libname}${release}${shared_ext}$major'
9385   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9386   shlibpath_var=LD_LIBRARY_PATH
9387   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9388   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9389   # the default ld.so.conf also contains /usr/contrib/lib and
9390   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9391   # libtool to hard-code these into programs
9392   ;;
9393
9394 cygwin* | mingw* | pw32*)
9395   version_type=windows
9396   shrext_cmds=".dll"
9397   need_version=no
9398   need_lib_prefix=no
9399
9400   case $GCC,$host_os in
9401   yes,cygwin* | yes,mingw* | yes,pw32*)
9402     library_names_spec='$libname.dll.a'
9403     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9404     postinstall_cmds='base_file=`basename \${file}`~
9405       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9406       dldir=$destdir/`dirname \$dlpath`~
9407       test -d \$dldir || mkdir -p \$dldir~
9408       $install_prog $dir/$dlname \$dldir/$dlname~
9409       chmod a+x \$dldir/$dlname'
9410     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9411       dlpath=$dir/\$dldll~
9412        $rm \$dlpath'
9413     shlibpath_overrides_runpath=yes
9414
9415     case $host_os in
9416     cygwin*)
9417       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9418       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9419       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9420       ;;
9421     mingw*)
9422       # MinGW DLLs use traditional 'lib' prefix
9423       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9424       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9425       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9426         # It is most probably a Windows format PATH printed by
9427         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9428         # path with ; separators, and with drive letters. We can handle the
9429         # drive letters (cygwin fileutils understands them), so leave them,
9430         # especially as we might pass files found there to a mingw objdump,
9431         # which wouldn't understand a cygwinified path. Ahh.
9432         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9433       else
9434         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9435       fi
9436       ;;
9437     pw32*)
9438       # pw32 DLLs use 'pw' prefix rather than 'lib'
9439       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9440       ;;
9441     esac
9442     ;;
9443
9444   *)
9445     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9446     ;;
9447   esac
9448   dynamic_linker='Win32 ld.exe'
9449   # FIXME: first we should search . and the directory the executable is in
9450   shlibpath_var=PATH
9451   ;;
9452
9453 darwin* | rhapsody*)
9454   dynamic_linker="$host_os dyld"
9455   version_type=darwin
9456   need_lib_prefix=no
9457   need_version=no
9458   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9459   soname_spec='${libname}${release}${major}$shared_ext'
9460   shlibpath_overrides_runpath=yes
9461   shlibpath_var=DYLD_LIBRARY_PATH
9462   shrext_cmds='.dylib'
9463   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9464   if test "$GCC" = yes; then
9465     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"`
9466   else
9467     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9468   fi
9469   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9470   ;;
9471
9472 dgux*)
9473   version_type=linux
9474   need_lib_prefix=no
9475   need_version=no
9476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9477   soname_spec='${libname}${release}${shared_ext}$major'
9478   shlibpath_var=LD_LIBRARY_PATH
9479   ;;
9480
9481 freebsd1*)
9482   dynamic_linker=no
9483   ;;
9484
9485 kfreebsd*-gnu)
9486   version_type=linux
9487   need_lib_prefix=no
9488   need_version=no
9489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9490   soname_spec='${libname}${release}${shared_ext}$major'
9491   shlibpath_var=LD_LIBRARY_PATH
9492   shlibpath_overrides_runpath=no
9493   hardcode_into_libs=yes
9494   dynamic_linker='GNU ld.so'
9495   ;;
9496
9497 freebsd* | dragonfly*)
9498   # DragonFly does not have aout.  When/if they implement a new
9499   # versioning mechanism, adjust this.
9500   if test -x /usr/bin/objformat; then
9501     objformat=`/usr/bin/objformat`
9502   else
9503     case $host_os in
9504     freebsd[123]*) objformat=aout ;;
9505     *) objformat=elf ;;
9506     esac
9507   fi
9508   version_type=freebsd-$objformat
9509   case $version_type in
9510     freebsd-elf*)
9511       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9512       need_version=no
9513       need_lib_prefix=no
9514       ;;
9515     freebsd-*)
9516       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9517       need_version=yes
9518       ;;
9519   esac
9520   shlibpath_var=LD_LIBRARY_PATH
9521   case $host_os in
9522   freebsd2*)
9523     shlibpath_overrides_runpath=yes
9524     ;;
9525   freebsd3.[01]* | freebsdelf3.[01]*)
9526     shlibpath_overrides_runpath=yes
9527     hardcode_into_libs=yes
9528     ;;
9529   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9530   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9531     shlibpath_overrides_runpath=no
9532     hardcode_into_libs=yes
9533     ;;
9534   freebsd*) # from 4.6 on
9535     shlibpath_overrides_runpath=yes
9536     hardcode_into_libs=yes
9537     ;;
9538   esac
9539   ;;
9540
9541 gnu*)
9542   version_type=linux
9543   need_lib_prefix=no
9544   need_version=no
9545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9546   soname_spec='${libname}${release}${shared_ext}$major'
9547   shlibpath_var=LD_LIBRARY_PATH
9548   hardcode_into_libs=yes
9549   ;;
9550
9551 hpux9* | hpux10* | hpux11*)
9552   # Give a soname corresponding to the major version so that dld.sl refuses to
9553   # link against other versions.
9554   version_type=sunos
9555   need_lib_prefix=no
9556   need_version=no
9557   case $host_cpu in
9558   ia64*)
9559     shrext_cmds='.so'
9560     hardcode_into_libs=yes
9561     dynamic_linker="$host_os dld.so"
9562     shlibpath_var=LD_LIBRARY_PATH
9563     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9564     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9565     soname_spec='${libname}${release}${shared_ext}$major'
9566     if test "X$HPUX_IA64_MODE" = X32; then
9567       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9568     else
9569       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9570     fi
9571     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9572     ;;
9573    hppa*64*)
9574      shrext_cmds='.sl'
9575      hardcode_into_libs=yes
9576      dynamic_linker="$host_os dld.sl"
9577      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9578      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9579      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9580      soname_spec='${libname}${release}${shared_ext}$major'
9581      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9582      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9583      ;;
9584    *)
9585     shrext_cmds='.sl'
9586     dynamic_linker="$host_os dld.sl"
9587     shlibpath_var=SHLIB_PATH
9588     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9589     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9590     soname_spec='${libname}${release}${shared_ext}$major'
9591     ;;
9592   esac
9593   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9594   postinstall_cmds='chmod 555 $lib'
9595   ;;
9596
9597 interix3*)
9598   version_type=linux
9599   need_lib_prefix=no
9600   need_version=no
9601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9602   soname_spec='${libname}${release}${shared_ext}$major'
9603   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9604   shlibpath_var=LD_LIBRARY_PATH
9605   shlibpath_overrides_runpath=no
9606   hardcode_into_libs=yes
9607   ;;
9608
9609 irix5* | irix6* | nonstopux*)
9610   case $host_os in
9611     nonstopux*) version_type=nonstopux ;;
9612     *)
9613         if test "$lt_cv_prog_gnu_ld" = yes; then
9614                 version_type=linux
9615         else
9616                 version_type=irix
9617         fi ;;
9618   esac
9619   need_lib_prefix=no
9620   need_version=no
9621   soname_spec='${libname}${release}${shared_ext}$major'
9622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9623   case $host_os in
9624   irix5* | nonstopux*)
9625     libsuff= shlibsuff=
9626     ;;
9627   *)
9628     case $LD in # libtool.m4 will add one of these switches to LD
9629     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9630       libsuff= shlibsuff= libmagic=32-bit;;
9631     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9632       libsuff=32 shlibsuff=N32 libmagic=N32;;
9633     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9634       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9635     *) libsuff= shlibsuff= libmagic=never-match;;
9636     esac
9637     ;;
9638   esac
9639   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9640   shlibpath_overrides_runpath=no
9641   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9642   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9643   hardcode_into_libs=yes
9644   ;;
9645
9646 # No shared lib support for Linux oldld, aout, or coff.
9647 linux*oldld* | linux*aout* | linux*coff*)
9648   dynamic_linker=no
9649   ;;
9650
9651 # This must be Linux ELF.
9652 linux*)
9653   version_type=linux
9654   need_lib_prefix=no
9655   need_version=no
9656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9657   soname_spec='${libname}${release}${shared_ext}$major'
9658   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9659   shlibpath_var=LD_LIBRARY_PATH
9660   shlibpath_overrides_runpath=no
9661   # This implies no fast_install, which is unacceptable.
9662   # Some rework will be needed to allow for fast_install
9663   # before this can be enabled.
9664   hardcode_into_libs=yes
9665
9666   # Append ld.so.conf contents to the search path
9667   if test -f /etc/ld.so.conf; then
9668     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' ' '`
9669     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9670   fi
9671
9672   # We used to test for /lib/ld.so.1 and disable shared libraries on
9673   # powerpc, because MkLinux only supported shared libraries with the
9674   # GNU dynamic linker.  Since this was broken with cross compilers,
9675   # most powerpc-linux boxes support dynamic linking these days and
9676   # people can always --disable-shared, the test was removed, and we
9677   # assume the GNU/Linux dynamic linker is in use.
9678   dynamic_linker='GNU/Linux ld.so'
9679   ;;
9680
9681 knetbsd*-gnu)
9682   version_type=linux
9683   need_lib_prefix=no
9684   need_version=no
9685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9686   soname_spec='${libname}${release}${shared_ext}$major'
9687   shlibpath_var=LD_LIBRARY_PATH
9688   shlibpath_overrides_runpath=no
9689   hardcode_into_libs=yes
9690   dynamic_linker='GNU ld.so'
9691   ;;
9692
9693 netbsd*)
9694   version_type=sunos
9695   need_lib_prefix=no
9696   need_version=no
9697   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9698     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9699     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9700     dynamic_linker='NetBSD (a.out) ld.so'
9701   else
9702     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9703     soname_spec='${libname}${release}${shared_ext}$major'
9704     dynamic_linker='NetBSD ld.elf_so'
9705   fi
9706   shlibpath_var=LD_LIBRARY_PATH
9707   shlibpath_overrides_runpath=yes
9708   hardcode_into_libs=yes
9709   ;;
9710
9711 newsos6)
9712   version_type=linux
9713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9714   shlibpath_var=LD_LIBRARY_PATH
9715   shlibpath_overrides_runpath=yes
9716   ;;
9717
9718 nto-qnx*)
9719   version_type=linux
9720   need_lib_prefix=no
9721   need_version=no
9722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9723   soname_spec='${libname}${release}${shared_ext}$major'
9724   shlibpath_var=LD_LIBRARY_PATH
9725   shlibpath_overrides_runpath=yes
9726   ;;
9727
9728 openbsd*)
9729   version_type=sunos
9730   sys_lib_dlsearch_path_spec="/usr/lib"
9731   need_lib_prefix=no
9732   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9733   case $host_os in
9734     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9735     *)                         need_version=no  ;;
9736   esac
9737   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9738   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9739   shlibpath_var=LD_LIBRARY_PATH
9740   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9741     case $host_os in
9742       openbsd2.[89] | openbsd2.[89].*)
9743         shlibpath_overrides_runpath=no
9744         ;;
9745       *)
9746         shlibpath_overrides_runpath=yes
9747         ;;
9748       esac
9749   else
9750     shlibpath_overrides_runpath=yes
9751   fi
9752   ;;
9753
9754 os2*)
9755   libname_spec='$name'
9756   shrext_cmds=".dll"
9757   need_lib_prefix=no
9758   library_names_spec='$libname${shared_ext} $libname.a'
9759   dynamic_linker='OS/2 ld.exe'
9760   shlibpath_var=LIBPATH
9761   ;;
9762
9763 osf3* | osf4* | osf5*)
9764   version_type=osf
9765   need_lib_prefix=no
9766   need_version=no
9767   soname_spec='${libname}${release}${shared_ext}$major'
9768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9769   shlibpath_var=LD_LIBRARY_PATH
9770   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9771   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9772   ;;
9773
9774 solaris*)
9775   version_type=linux
9776   need_lib_prefix=no
9777   need_version=no
9778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9779   soname_spec='${libname}${release}${shared_ext}$major'
9780   shlibpath_var=LD_LIBRARY_PATH
9781   shlibpath_overrides_runpath=yes
9782   hardcode_into_libs=yes
9783   # ldd complains unless libraries are executable
9784   postinstall_cmds='chmod +x $lib'
9785   ;;
9786
9787 sunos4*)
9788   version_type=sunos
9789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9790   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9791   shlibpath_var=LD_LIBRARY_PATH
9792   shlibpath_overrides_runpath=yes
9793   if test "$with_gnu_ld" = yes; then
9794     need_lib_prefix=no
9795   fi
9796   need_version=yes
9797   ;;
9798
9799 sysv4 | sysv4.3*)
9800   version_type=linux
9801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9802   soname_spec='${libname}${release}${shared_ext}$major'
9803   shlibpath_var=LD_LIBRARY_PATH
9804   case $host_vendor in
9805     sni)
9806       shlibpath_overrides_runpath=no
9807       need_lib_prefix=no
9808       export_dynamic_flag_spec='${wl}-Blargedynsym'
9809       runpath_var=LD_RUN_PATH
9810       ;;
9811     siemens)
9812       need_lib_prefix=no
9813       ;;
9814     motorola)
9815       need_lib_prefix=no
9816       need_version=no
9817       shlibpath_overrides_runpath=no
9818       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9819       ;;
9820   esac
9821   ;;
9822
9823 sysv4*MP*)
9824   if test -d /usr/nec ;then
9825     version_type=linux
9826     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9827     soname_spec='$libname${shared_ext}.$major'
9828     shlibpath_var=LD_LIBRARY_PATH
9829   fi
9830   ;;
9831
9832 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9833   version_type=freebsd-elf
9834   need_lib_prefix=no
9835   need_version=no
9836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9837   soname_spec='${libname}${release}${shared_ext}$major'
9838   shlibpath_var=LD_LIBRARY_PATH
9839   hardcode_into_libs=yes
9840   if test "$with_gnu_ld" = yes; then
9841     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9842     shlibpath_overrides_runpath=no
9843   else
9844     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9845     shlibpath_overrides_runpath=yes
9846     case $host_os in
9847       sco3.2v5*)
9848         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9849         ;;
9850     esac
9851   fi
9852   sys_lib_dlsearch_path_spec='/usr/lib'
9853   ;;
9854
9855 uts4*)
9856   version_type=linux
9857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9858   soname_spec='${libname}${release}${shared_ext}$major'
9859   shlibpath_var=LD_LIBRARY_PATH
9860   ;;
9861
9862 *)
9863   dynamic_linker=no
9864   ;;
9865 esac
9866 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9867 echo "${ECHO_T}$dynamic_linker" >&6; }
9868 test "$dynamic_linker" = no && can_build_shared=no
9869
9870 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9871 if test "$GCC" = yes; then
9872   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9873 fi
9874
9875
9876 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9877 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9878 if test "${libltdl_cv_shlibext+set}" = set; then
9879   echo $ECHO_N "(cached) $ECHO_C" >&6
9880 else
9881
9882 module=yes
9883 eval libltdl_cv_shlibext=$shrext_cmds
9884
9885 fi
9886 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9887 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9888 if test -n "$libltdl_cv_shlibext"; then
9889
9890 cat >>confdefs.h <<_ACEOF
9891 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9892 _ACEOF
9893
9894 fi
9895
9896
9897 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9898 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9899 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9900   echo $ECHO_N "(cached) $ECHO_C" >&6
9901 else
9902   libltdl_cv_shlibpath_var="$shlibpath_var"
9903 fi
9904 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9905 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9906 if test -n "$libltdl_cv_shlibpath_var"; then
9907
9908 cat >>confdefs.h <<_ACEOF
9909 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9910 _ACEOF
9911
9912 fi
9913
9914
9915 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9916 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9917 if test "${libltdl_cv_sys_search_path+set}" = set; then
9918   echo $ECHO_N "(cached) $ECHO_C" >&6
9919 else
9920   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9921 fi
9922 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9923 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9924 if test -n "$libltdl_cv_sys_search_path"; then
9925   sys_search_path=
9926   for dir in $libltdl_cv_sys_search_path; do
9927     if test -z "$sys_search_path"; then
9928       sys_search_path="$dir"
9929     else
9930       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9931     fi
9932   done
9933
9934 cat >>confdefs.h <<_ACEOF
9935 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9936 _ACEOF
9937
9938 fi
9939
9940 { echo "$as_me:$LINENO: checking for objdir" >&5
9941 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9942 if test "${libltdl_cv_objdir+set}" = set; then
9943   echo $ECHO_N "(cached) $ECHO_C" >&6
9944 else
9945   libltdl_cv_objdir="$objdir"
9946   if test -n "$objdir"; then
9947     :
9948   else
9949     rm -f .libs 2>/dev/null
9950     mkdir .libs 2>/dev/null
9951     if test -d .libs; then
9952       libltdl_cv_objdir=.libs
9953     else
9954       # MS-DOS does not allow filenames that begin with a dot.
9955       libltdl_cv_objdir=_libs
9956     fi
9957   rmdir .libs 2>/dev/null
9958   fi
9959
9960 fi
9961 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9962 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9963
9964 cat >>confdefs.h <<_ACEOF
9965 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9966 _ACEOF
9967
9968
9969
9970
9971
9972
9973 # Check for command to grab the raw symbol name followed by C symbol from nm.
9974 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9975 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9976 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9977   echo $ECHO_N "(cached) $ECHO_C" >&6
9978 else
9979
9980 # These are sane defaults that work on at least a few old systems.
9981 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9982
9983 # Character class describing NM global symbol codes.
9984 symcode='[BCDEGRST]'
9985
9986 # Regexp to match symbols that can be accessed directly from C.
9987 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9988
9989 # Transform an extracted symbol line into a proper C declaration
9990 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9991
9992 # Transform an extracted symbol line into symbol name and symbol address
9993 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'"
9994
9995 # Define system-specific variables.
9996 case $host_os in
9997 aix*)
9998   symcode='[BCDT]'
9999   ;;
10000 cygwin* | mingw* | pw32*)
10001   symcode='[ABCDGISTW]'
10002   ;;
10003 hpux*) # Its linker distinguishes data from code symbols
10004   if test "$host_cpu" = ia64; then
10005     symcode='[ABCDEGRST]'
10006   fi
10007   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10008   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'"
10009   ;;
10010 linux*)
10011   if test "$host_cpu" = ia64; then
10012     symcode='[ABCDGIRSTW]'
10013     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10014     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'"
10015   fi
10016   ;;
10017 irix* | nonstopux*)
10018   symcode='[BCDEGRST]'
10019   ;;
10020 osf*)
10021   symcode='[BCDEGQRST]'
10022   ;;
10023 solaris*)
10024   symcode='[BDRT]'
10025   ;;
10026 sco3.2v5*)
10027   symcode='[DT]'
10028   ;;
10029 sysv4.2uw2*)
10030   symcode='[DT]'
10031   ;;
10032 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10033   symcode='[ABDT]'
10034   ;;
10035 sysv4)
10036   symcode='[DFNSTU]'
10037   ;;
10038 esac
10039
10040 # Handle CRLF in mingw tool chain
10041 opt_cr=
10042 case $build_os in
10043 mingw*)
10044   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10045   ;;
10046 esac
10047
10048 # If we're using GNU nm, then use its standard symbol codes.
10049 case `$NM -V 2>&1` in
10050 *GNU* | *'with BFD'*)
10051   symcode='[ABCDGIRSTW]' ;;
10052 esac
10053
10054 # Try without a prefix undercore, then with it.
10055 for ac_symprfx in "" "_"; do
10056
10057   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10058   symxfrm="\\1 $ac_symprfx\\2 \\2"
10059
10060   # Write the raw and C identifiers.
10061   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10062
10063   # Check to see that the pipe works correctly.
10064   pipe_works=no
10065
10066   rm -f conftest*
10067   cat > conftest.$ac_ext <<EOF
10068 #ifdef __cplusplus
10069 extern "C" {
10070 #endif
10071 char nm_test_var;
10072 void nm_test_func(){}
10073 #ifdef __cplusplus
10074 }
10075 #endif
10076 int main(){nm_test_var='a';nm_test_func();return(0);}
10077 EOF
10078
10079   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10080   (eval $ac_compile) 2>&5
10081   ac_status=$?
10082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083   (exit $ac_status); }; then
10084     # Now try to grab the symbols.
10085     nlist=conftest.nm
10086     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10087   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10088   ac_status=$?
10089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090   (exit $ac_status); } && test -s "$nlist"; then
10091       # Try sorting and uniquifying the output.
10092       if sort "$nlist" | uniq > "$nlist"T; then
10093         mv -f "$nlist"T "$nlist"
10094       else
10095         rm -f "$nlist"T
10096       fi
10097
10098       # Make sure that we snagged all the symbols we need.
10099       if grep ' nm_test_var$' "$nlist" >/dev/null; then
10100         if grep ' nm_test_func$' "$nlist" >/dev/null; then
10101           cat <<EOF > conftest.$ac_ext
10102 #ifdef __cplusplus
10103 extern "C" {
10104 #endif
10105
10106 EOF
10107           # Now generate the symbol file.
10108           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10109
10110           cat <<EOF >> conftest.$ac_ext
10111 #if defined (__STDC__) && __STDC__
10112 # define lt_ptr_t void *
10113 #else
10114 # define lt_ptr_t char *
10115 # define const
10116 #endif
10117
10118 /* The mapping between symbol names and symbols. */
10119 const struct {
10120   const char *name;
10121   lt_ptr_t address;
10122 }
10123 lt_preloaded_symbols[] =
10124 {
10125 EOF
10126           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10127           cat <<\EOF >> conftest.$ac_ext
10128   {0, (lt_ptr_t) 0}
10129 };
10130
10131 #ifdef __cplusplus
10132 }
10133 #endif
10134 EOF
10135           # Now try linking the two files.
10136           mv conftest.$ac_objext conftstm.$ac_objext
10137           lt_save_LIBS="$LIBS"
10138           lt_save_CFLAGS="$CFLAGS"
10139           LIBS="conftstm.$ac_objext"
10140           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10141           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10142   (eval $ac_link) 2>&5
10143   ac_status=$?
10144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145   (exit $ac_status); } && test -s conftest${ac_exeext}; then
10146             pipe_works=yes
10147           fi
10148           LIBS="$lt_save_LIBS"
10149           CFLAGS="$lt_save_CFLAGS"
10150         else
10151           echo "cannot find nm_test_func in $nlist" >&5
10152         fi
10153       else
10154         echo "cannot find nm_test_var in $nlist" >&5
10155       fi
10156     else
10157       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10158     fi
10159   else
10160     echo "$progname: failed program was:" >&5
10161     cat conftest.$ac_ext >&5
10162   fi
10163   rm -f conftest* conftst*
10164
10165   # Do not use the global_symbol_pipe unless it works.
10166   if test "$pipe_works" = yes; then
10167     break
10168   else
10169     lt_cv_sys_global_symbol_pipe=
10170   fi
10171 done
10172
10173 fi
10174
10175 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10176   lt_cv_sys_global_symbol_to_cdecl=
10177 fi
10178 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10179   { echo "$as_me:$LINENO: result: failed" >&5
10180 echo "${ECHO_T}failed" >&6; }
10181 else
10182   { echo "$as_me:$LINENO: result: ok" >&5
10183 echo "${ECHO_T}ok" >&6; }
10184 fi
10185
10186
10187 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10188 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10189 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10190   echo $ECHO_N "(cached) $ECHO_C" >&6
10191 else
10192   if test -n "$lt_cv_sys_global_symbol_pipe"; then
10193     libltdl_cv_preloaded_symbols=yes
10194   else
10195     libltdl_cv_preloaded_symbols=no
10196   fi
10197
10198 fi
10199 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10200 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10201 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10202
10203 cat >>confdefs.h <<\_ACEOF
10204 #define HAVE_PRELOADED_SYMBOLS 1
10205 _ACEOF
10206
10207 fi
10208
10209 LIBADD_DL=
10210
10211 ac_ext=c
10212 ac_cpp='$CPP $CPPFLAGS'
10213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10216
10217
10218 { echo "$as_me:$LINENO: checking for shl_load" >&5
10219 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10220 if test "${ac_cv_func_shl_load+set}" = set; then
10221   echo $ECHO_N "(cached) $ECHO_C" >&6
10222 else
10223   cat >conftest.$ac_ext <<_ACEOF
10224 /* confdefs.h.  */
10225 _ACEOF
10226 cat confdefs.h >>conftest.$ac_ext
10227 cat >>conftest.$ac_ext <<_ACEOF
10228 /* end confdefs.h.  */
10229 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10230    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10231 #define shl_load innocuous_shl_load
10232
10233 /* System header to define __stub macros and hopefully few prototypes,
10234     which can conflict with char shl_load (); below.
10235     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10236     <limits.h> exists even on freestanding compilers.  */
10237
10238 #ifdef __STDC__
10239 # include <limits.h>
10240 #else
10241 # include <assert.h>
10242 #endif
10243
10244 #undef shl_load
10245
10246 /* Override any GCC internal prototype to avoid an error.
10247    Use char because int might match the return type of a GCC
10248    builtin and then its argument prototype would still apply.  */
10249 #ifdef __cplusplus
10250 extern "C"
10251 #endif
10252 char shl_load ();
10253 /* The GNU C library defines this for functions which it implements
10254     to always fail with ENOSYS.  Some functions are actually named
10255     something starting with __ and the normal name is an alias.  */
10256 #if defined __stub_shl_load || defined __stub___shl_load
10257 choke me
10258 #endif
10259
10260 int
10261 main ()
10262 {
10263 return shl_load ();
10264   ;
10265   return 0;
10266 }
10267 _ACEOF
10268 rm -f conftest.$ac_objext conftest$ac_exeext
10269 if { (ac_try="$ac_link"
10270 case "(($ac_try" in
10271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10272   *) ac_try_echo=$ac_try;;
10273 esac
10274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10275   (eval "$ac_link") 2>conftest.er1
10276   ac_status=$?
10277   grep -v '^ *+' conftest.er1 >conftest.err
10278   rm -f conftest.er1
10279   cat conftest.err >&5
10280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281   (exit $ac_status); } &&
10282          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10283   { (case "(($ac_try" in
10284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10285   *) ac_try_echo=$ac_try;;
10286 esac
10287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10288   (eval "$ac_try") 2>&5
10289   ac_status=$?
10290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291   (exit $ac_status); }; } &&
10292          { ac_try='test -s conftest$ac_exeext'
10293   { (case "(($ac_try" in
10294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10295   *) ac_try_echo=$ac_try;;
10296 esac
10297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10298   (eval "$ac_try") 2>&5
10299   ac_status=$?
10300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301   (exit $ac_status); }; }; then
10302   ac_cv_func_shl_load=yes
10303 else
10304   echo "$as_me: failed program was:" >&5
10305 sed 's/^/| /' conftest.$ac_ext >&5
10306
10307         ac_cv_func_shl_load=no
10308 fi
10309
10310 rm -f core conftest.err conftest.$ac_objext \
10311       conftest$ac_exeext conftest.$ac_ext
10312 fi
10313 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10314 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10315 if test $ac_cv_func_shl_load = yes; then
10316
10317 cat >>confdefs.h <<\_ACEOF
10318 #define HAVE_SHL_LOAD 1
10319 _ACEOF
10320
10321 else
10322   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10323 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10324 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10325   echo $ECHO_N "(cached) $ECHO_C" >&6
10326 else
10327   ac_check_lib_save_LIBS=$LIBS
10328 LIBS="-ldld  $LIBS"
10329 cat >conftest.$ac_ext <<_ACEOF
10330 /* confdefs.h.  */
10331 _ACEOF
10332 cat confdefs.h >>conftest.$ac_ext
10333 cat >>conftest.$ac_ext <<_ACEOF
10334 /* end confdefs.h.  */
10335
10336 /* Override any GCC internal prototype to avoid an error.
10337    Use char because int might match the return type of a GCC
10338    builtin and then its argument prototype would still apply.  */
10339 #ifdef __cplusplus
10340 extern "C"
10341 #endif
10342 char shl_load ();
10343 int
10344 main ()
10345 {
10346 return shl_load ();
10347   ;
10348   return 0;
10349 }
10350 _ACEOF
10351 rm -f conftest.$ac_objext conftest$ac_exeext
10352 if { (ac_try="$ac_link"
10353 case "(($ac_try" in
10354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10355   *) ac_try_echo=$ac_try;;
10356 esac
10357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10358   (eval "$ac_link") 2>conftest.er1
10359   ac_status=$?
10360   grep -v '^ *+' conftest.er1 >conftest.err
10361   rm -f conftest.er1
10362   cat conftest.err >&5
10363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364   (exit $ac_status); } &&
10365          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10366   { (case "(($ac_try" in
10367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10368   *) ac_try_echo=$ac_try;;
10369 esac
10370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10371   (eval "$ac_try") 2>&5
10372   ac_status=$?
10373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374   (exit $ac_status); }; } &&
10375          { ac_try='test -s conftest$ac_exeext'
10376   { (case "(($ac_try" in
10377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10378   *) ac_try_echo=$ac_try;;
10379 esac
10380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10381   (eval "$ac_try") 2>&5
10382   ac_status=$?
10383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384   (exit $ac_status); }; }; then
10385   ac_cv_lib_dld_shl_load=yes
10386 else
10387   echo "$as_me: failed program was:" >&5
10388 sed 's/^/| /' conftest.$ac_ext >&5
10389
10390         ac_cv_lib_dld_shl_load=no
10391 fi
10392
10393 rm -f core conftest.err conftest.$ac_objext \
10394       conftest$ac_exeext conftest.$ac_ext
10395 LIBS=$ac_check_lib_save_LIBS
10396 fi
10397 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10398 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10399 if test $ac_cv_lib_dld_shl_load = yes; then
10400
10401 cat >>confdefs.h <<\_ACEOF
10402 #define HAVE_SHL_LOAD 1
10403 _ACEOF
10404
10405         LIBADD_DL="$LIBADD_DL -ldld"
10406 else
10407   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10408 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10409 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10410   echo $ECHO_N "(cached) $ECHO_C" >&6
10411 else
10412   ac_check_lib_save_LIBS=$LIBS
10413 LIBS="-ldl  $LIBS"
10414 cat >conftest.$ac_ext <<_ACEOF
10415 /* confdefs.h.  */
10416 _ACEOF
10417 cat confdefs.h >>conftest.$ac_ext
10418 cat >>conftest.$ac_ext <<_ACEOF
10419 /* end confdefs.h.  */
10420
10421 /* Override any GCC internal prototype to avoid an error.
10422    Use char because int might match the return type of a GCC
10423    builtin and then its argument prototype would still apply.  */
10424 #ifdef __cplusplus
10425 extern "C"
10426 #endif
10427 char dlopen ();
10428 int
10429 main ()
10430 {
10431 return dlopen ();
10432   ;
10433   return 0;
10434 }
10435 _ACEOF
10436 rm -f conftest.$ac_objext conftest$ac_exeext
10437 if { (ac_try="$ac_link"
10438 case "(($ac_try" in
10439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10440   *) ac_try_echo=$ac_try;;
10441 esac
10442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10443   (eval "$ac_link") 2>conftest.er1
10444   ac_status=$?
10445   grep -v '^ *+' conftest.er1 >conftest.err
10446   rm -f conftest.er1
10447   cat conftest.err >&5
10448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449   (exit $ac_status); } &&
10450          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10451   { (case "(($ac_try" in
10452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10453   *) ac_try_echo=$ac_try;;
10454 esac
10455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10456   (eval "$ac_try") 2>&5
10457   ac_status=$?
10458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459   (exit $ac_status); }; } &&
10460          { ac_try='test -s conftest$ac_exeext'
10461   { (case "(($ac_try" in
10462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10463   *) ac_try_echo=$ac_try;;
10464 esac
10465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10466   (eval "$ac_try") 2>&5
10467   ac_status=$?
10468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469   (exit $ac_status); }; }; then
10470   ac_cv_lib_dl_dlopen=yes
10471 else
10472   echo "$as_me: failed program was:" >&5
10473 sed 's/^/| /' conftest.$ac_ext >&5
10474
10475         ac_cv_lib_dl_dlopen=no
10476 fi
10477
10478 rm -f core conftest.err conftest.$ac_objext \
10479       conftest$ac_exeext conftest.$ac_ext
10480 LIBS=$ac_check_lib_save_LIBS
10481 fi
10482 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10483 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10484 if test $ac_cv_lib_dl_dlopen = yes; then
10485
10486 cat >>confdefs.h <<\_ACEOF
10487 #define HAVE_LIBDL 1
10488 _ACEOF
10489
10490                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10491 else
10492   cat >conftest.$ac_ext <<_ACEOF
10493 /* confdefs.h.  */
10494 _ACEOF
10495 cat confdefs.h >>conftest.$ac_ext
10496 cat >>conftest.$ac_ext <<_ACEOF
10497 /* end confdefs.h.  */
10498 #if HAVE_DLFCN_H
10499 #  include <dlfcn.h>
10500 #endif
10501
10502 int
10503 main ()
10504 {
10505 dlopen(0, 0);
10506   ;
10507   return 0;
10508 }
10509 _ACEOF
10510 rm -f conftest.$ac_objext conftest$ac_exeext
10511 if { (ac_try="$ac_link"
10512 case "(($ac_try" in
10513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10514   *) ac_try_echo=$ac_try;;
10515 esac
10516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10517   (eval "$ac_link") 2>conftest.er1
10518   ac_status=$?
10519   grep -v '^ *+' conftest.er1 >conftest.err
10520   rm -f conftest.er1
10521   cat conftest.err >&5
10522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523   (exit $ac_status); } &&
10524          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10525   { (case "(($ac_try" in
10526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10527   *) ac_try_echo=$ac_try;;
10528 esac
10529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10530   (eval "$ac_try") 2>&5
10531   ac_status=$?
10532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533   (exit $ac_status); }; } &&
10534          { ac_try='test -s conftest$ac_exeext'
10535   { (case "(($ac_try" in
10536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10537   *) ac_try_echo=$ac_try;;
10538 esac
10539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10540   (eval "$ac_try") 2>&5
10541   ac_status=$?
10542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543   (exit $ac_status); }; }; then
10544
10545 cat >>confdefs.h <<\_ACEOF
10546 #define HAVE_LIBDL 1
10547 _ACEOF
10548  libltdl_cv_func_dlopen="yes"
10549 else
10550   echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.$ac_ext >&5
10552
10553         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10554 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10555 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10556   echo $ECHO_N "(cached) $ECHO_C" >&6
10557 else
10558   ac_check_lib_save_LIBS=$LIBS
10559 LIBS="-lsvld  $LIBS"
10560 cat >conftest.$ac_ext <<_ACEOF
10561 /* confdefs.h.  */
10562 _ACEOF
10563 cat confdefs.h >>conftest.$ac_ext
10564 cat >>conftest.$ac_ext <<_ACEOF
10565 /* end confdefs.h.  */
10566
10567 /* Override any GCC internal prototype to avoid an error.
10568    Use char because int might match the return type of a GCC
10569    builtin and then its argument prototype would still apply.  */
10570 #ifdef __cplusplus
10571 extern "C"
10572 #endif
10573 char dlopen ();
10574 int
10575 main ()
10576 {
10577 return dlopen ();
10578   ;
10579   return 0;
10580 }
10581 _ACEOF
10582 rm -f conftest.$ac_objext conftest$ac_exeext
10583 if { (ac_try="$ac_link"
10584 case "(($ac_try" in
10585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10586   *) ac_try_echo=$ac_try;;
10587 esac
10588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10589   (eval "$ac_link") 2>conftest.er1
10590   ac_status=$?
10591   grep -v '^ *+' conftest.er1 >conftest.err
10592   rm -f conftest.er1
10593   cat conftest.err >&5
10594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595   (exit $ac_status); } &&
10596          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10597   { (case "(($ac_try" in
10598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10599   *) ac_try_echo=$ac_try;;
10600 esac
10601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10602   (eval "$ac_try") 2>&5
10603   ac_status=$?
10604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605   (exit $ac_status); }; } &&
10606          { ac_try='test -s conftest$ac_exeext'
10607   { (case "(($ac_try" in
10608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10609   *) ac_try_echo=$ac_try;;
10610 esac
10611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10612   (eval "$ac_try") 2>&5
10613   ac_status=$?
10614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615   (exit $ac_status); }; }; then
10616   ac_cv_lib_svld_dlopen=yes
10617 else
10618   echo "$as_me: failed program was:" >&5
10619 sed 's/^/| /' conftest.$ac_ext >&5
10620
10621         ac_cv_lib_svld_dlopen=no
10622 fi
10623
10624 rm -f core conftest.err conftest.$ac_objext \
10625       conftest$ac_exeext conftest.$ac_ext
10626 LIBS=$ac_check_lib_save_LIBS
10627 fi
10628 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10629 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10630 if test $ac_cv_lib_svld_dlopen = yes; then
10631
10632 cat >>confdefs.h <<\_ACEOF
10633 #define HAVE_LIBDL 1
10634 _ACEOF
10635
10636                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10637 else
10638   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10639 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10640 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10641   echo $ECHO_N "(cached) $ECHO_C" >&6
10642 else
10643   ac_check_lib_save_LIBS=$LIBS
10644 LIBS="-ldld  $LIBS"
10645 cat >conftest.$ac_ext <<_ACEOF
10646 /* confdefs.h.  */
10647 _ACEOF
10648 cat confdefs.h >>conftest.$ac_ext
10649 cat >>conftest.$ac_ext <<_ACEOF
10650 /* end confdefs.h.  */
10651
10652 /* Override any GCC internal prototype to avoid an error.
10653    Use char because int might match the return type of a GCC
10654    builtin and then its argument prototype would still apply.  */
10655 #ifdef __cplusplus
10656 extern "C"
10657 #endif
10658 char dld_link ();
10659 int
10660 main ()
10661 {
10662 return dld_link ();
10663   ;
10664   return 0;
10665 }
10666 _ACEOF
10667 rm -f conftest.$ac_objext conftest$ac_exeext
10668 if { (ac_try="$ac_link"
10669 case "(($ac_try" in
10670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10671   *) ac_try_echo=$ac_try;;
10672 esac
10673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10674   (eval "$ac_link") 2>conftest.er1
10675   ac_status=$?
10676   grep -v '^ *+' conftest.er1 >conftest.err
10677   rm -f conftest.er1
10678   cat conftest.err >&5
10679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680   (exit $ac_status); } &&
10681          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10682   { (case "(($ac_try" in
10683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10684   *) ac_try_echo=$ac_try;;
10685 esac
10686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10687   (eval "$ac_try") 2>&5
10688   ac_status=$?
10689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690   (exit $ac_status); }; } &&
10691          { ac_try='test -s conftest$ac_exeext'
10692   { (case "(($ac_try" in
10693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10694   *) ac_try_echo=$ac_try;;
10695 esac
10696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10697   (eval "$ac_try") 2>&5
10698   ac_status=$?
10699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700   (exit $ac_status); }; }; then
10701   ac_cv_lib_dld_dld_link=yes
10702 else
10703   echo "$as_me: failed program was:" >&5
10704 sed 's/^/| /' conftest.$ac_ext >&5
10705
10706         ac_cv_lib_dld_dld_link=no
10707 fi
10708
10709 rm -f core conftest.err conftest.$ac_objext \
10710       conftest$ac_exeext conftest.$ac_ext
10711 LIBS=$ac_check_lib_save_LIBS
10712 fi
10713 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10714 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10715 if test $ac_cv_lib_dld_dld_link = yes; then
10716
10717 cat >>confdefs.h <<\_ACEOF
10718 #define HAVE_DLD 1
10719 _ACEOF
10720
10721                 LIBADD_DL="$LIBADD_DL -ldld"
10722 else
10723   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10724 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10725 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10726   echo $ECHO_N "(cached) $ECHO_C" >&6
10727 else
10728   cat >conftest.$ac_ext <<_ACEOF
10729 /* confdefs.h.  */
10730 _ACEOF
10731 cat confdefs.h >>conftest.$ac_ext
10732 cat >>conftest.$ac_ext <<_ACEOF
10733 /* end confdefs.h.  */
10734 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10735    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10736 #define _dyld_func_lookup innocuous__dyld_func_lookup
10737
10738 /* System header to define __stub macros and hopefully few prototypes,
10739     which can conflict with char _dyld_func_lookup (); below.
10740     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10741     <limits.h> exists even on freestanding compilers.  */
10742
10743 #ifdef __STDC__
10744 # include <limits.h>
10745 #else
10746 # include <assert.h>
10747 #endif
10748
10749 #undef _dyld_func_lookup
10750
10751 /* Override any GCC internal prototype to avoid an error.
10752    Use char because int might match the return type of a GCC
10753    builtin and then its argument prototype would still apply.  */
10754 #ifdef __cplusplus
10755 extern "C"
10756 #endif
10757 char _dyld_func_lookup ();
10758 /* The GNU C library defines this for functions which it implements
10759     to always fail with ENOSYS.  Some functions are actually named
10760     something starting with __ and the normal name is an alias.  */
10761 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10762 choke me
10763 #endif
10764
10765 int
10766 main ()
10767 {
10768 return _dyld_func_lookup ();
10769   ;
10770   return 0;
10771 }
10772 _ACEOF
10773 rm -f conftest.$ac_objext conftest$ac_exeext
10774 if { (ac_try="$ac_link"
10775 case "(($ac_try" in
10776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10777   *) ac_try_echo=$ac_try;;
10778 esac
10779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10780   (eval "$ac_link") 2>conftest.er1
10781   ac_status=$?
10782   grep -v '^ *+' conftest.er1 >conftest.err
10783   rm -f conftest.er1
10784   cat conftest.err >&5
10785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786   (exit $ac_status); } &&
10787          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10788   { (case "(($ac_try" in
10789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10790   *) ac_try_echo=$ac_try;;
10791 esac
10792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10793   (eval "$ac_try") 2>&5
10794   ac_status=$?
10795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796   (exit $ac_status); }; } &&
10797          { ac_try='test -s conftest$ac_exeext'
10798   { (case "(($ac_try" in
10799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800   *) ac_try_echo=$ac_try;;
10801 esac
10802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10803   (eval "$ac_try") 2>&5
10804   ac_status=$?
10805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806   (exit $ac_status); }; }; then
10807   ac_cv_func__dyld_func_lookup=yes
10808 else
10809   echo "$as_me: failed program was:" >&5
10810 sed 's/^/| /' conftest.$ac_ext >&5
10811
10812         ac_cv_func__dyld_func_lookup=no
10813 fi
10814
10815 rm -f core conftest.err conftest.$ac_objext \
10816       conftest$ac_exeext conftest.$ac_ext
10817 fi
10818 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10819 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10820 if test $ac_cv_func__dyld_func_lookup = yes; then
10821
10822 cat >>confdefs.h <<\_ACEOF
10823 #define HAVE_DYLD 1
10824 _ACEOF
10825
10826 fi
10827
10828
10829 fi
10830
10831
10832 fi
10833
10834
10835 fi
10836
10837 rm -f core conftest.err conftest.$ac_objext \
10838       conftest$ac_exeext conftest.$ac_ext
10839
10840 fi
10841
10842
10843 fi
10844
10845
10846 fi
10847
10848
10849 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10850 then
10851   lt_save_LIBS="$LIBS"
10852   LIBS="$LIBS $LIBADD_DL"
10853
10854 for ac_func in dlerror
10855 do
10856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10857 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10859 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10860   echo $ECHO_N "(cached) $ECHO_C" >&6
10861 else
10862   cat >conftest.$ac_ext <<_ACEOF
10863 /* confdefs.h.  */
10864 _ACEOF
10865 cat confdefs.h >>conftest.$ac_ext
10866 cat >>conftest.$ac_ext <<_ACEOF
10867 /* end confdefs.h.  */
10868 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10869    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10870 #define $ac_func innocuous_$ac_func
10871
10872 /* System header to define __stub macros and hopefully few prototypes,
10873     which can conflict with char $ac_func (); below.
10874     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10875     <limits.h> exists even on freestanding compilers.  */
10876
10877 #ifdef __STDC__
10878 # include <limits.h>
10879 #else
10880 # include <assert.h>
10881 #endif
10882
10883 #undef $ac_func
10884
10885 /* Override any GCC internal prototype to avoid an error.
10886    Use char because int might match the return type of a GCC
10887    builtin and then its argument prototype would still apply.  */
10888 #ifdef __cplusplus
10889 extern "C"
10890 #endif
10891 char $ac_func ();
10892 /* The GNU C library defines this for functions which it implements
10893     to always fail with ENOSYS.  Some functions are actually named
10894     something starting with __ and the normal name is an alias.  */
10895 #if defined __stub_$ac_func || defined __stub___$ac_func
10896 choke me
10897 #endif
10898
10899 int
10900 main ()
10901 {
10902 return $ac_func ();
10903   ;
10904   return 0;
10905 }
10906 _ACEOF
10907 rm -f conftest.$ac_objext conftest$ac_exeext
10908 if { (ac_try="$ac_link"
10909 case "(($ac_try" in
10910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10911   *) ac_try_echo=$ac_try;;
10912 esac
10913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10914   (eval "$ac_link") 2>conftest.er1
10915   ac_status=$?
10916   grep -v '^ *+' conftest.er1 >conftest.err
10917   rm -f conftest.er1
10918   cat conftest.err >&5
10919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920   (exit $ac_status); } &&
10921          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10922   { (case "(($ac_try" in
10923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10924   *) ac_try_echo=$ac_try;;
10925 esac
10926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10927   (eval "$ac_try") 2>&5
10928   ac_status=$?
10929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930   (exit $ac_status); }; } &&
10931          { ac_try='test -s conftest$ac_exeext'
10932   { (case "(($ac_try" in
10933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10934   *) ac_try_echo=$ac_try;;
10935 esac
10936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10937   (eval "$ac_try") 2>&5
10938   ac_status=$?
10939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940   (exit $ac_status); }; }; then
10941   eval "$as_ac_var=yes"
10942 else
10943   echo "$as_me: failed program was:" >&5
10944 sed 's/^/| /' conftest.$ac_ext >&5
10945
10946         eval "$as_ac_var=no"
10947 fi
10948
10949 rm -f core conftest.err conftest.$ac_objext \
10950       conftest$ac_exeext conftest.$ac_ext
10951 fi
10952 ac_res=`eval echo '${'$as_ac_var'}'`
10953                { echo "$as_me:$LINENO: result: $ac_res" >&5
10954 echo "${ECHO_T}$ac_res" >&6; }
10955 if test `eval echo '${'$as_ac_var'}'` = yes; then
10956   cat >>confdefs.h <<_ACEOF
10957 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10958 _ACEOF
10959
10960 fi
10961 done
10962
10963   LIBS="$lt_save_LIBS"
10964 fi
10965 ac_ext=c
10966 ac_cpp='$CPP $CPPFLAGS'
10967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10970
10971
10972
10973 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10974 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10975 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10976   echo $ECHO_N "(cached) $ECHO_C" >&6
10977 else
10978   ac_cv_sys_symbol_underscore=no
10979   cat > conftest.$ac_ext <<EOF
10980 void nm_test_func(){}
10981 int main(){nm_test_func;return 0;}
10982 EOF
10983   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10984   (eval $ac_compile) 2>&5
10985   ac_status=$?
10986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987   (exit $ac_status); }; then
10988     # Now try to grab the symbols.
10989     ac_nlist=conftest.nm
10990     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10991   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10992   ac_status=$?
10993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994   (exit $ac_status); } && test -s "$ac_nlist"; then
10995       # See whether the symbols have a leading underscore.
10996       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10997         ac_cv_sys_symbol_underscore=yes
10998       else
10999         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11000           :
11001         else
11002           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11003         fi
11004       fi
11005     else
11006       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11007     fi
11008   else
11009     echo "configure: failed program was:" >&5
11010     cat conftest.c >&5
11011   fi
11012   rm -rf conftest*
11013
11014 fi
11015 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11016 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11017
11018
11019 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11020   if test x"$libltdl_cv_func_dlopen" = xyes ||
11021      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11022         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11023 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11024 if test "${libltdl_cv_need_uscore+set}" = set; then
11025   echo $ECHO_N "(cached) $ECHO_C" >&6
11026 else
11027   libltdl_cv_need_uscore=unknown
11028           save_LIBS="$LIBS"
11029           LIBS="$LIBS $LIBADD_DL"
11030           if test "$cross_compiling" = yes; then :
11031   libltdl_cv_need_uscore=cross
11032 else
11033   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11034   lt_status=$lt_dlunknown
11035   cat > conftest.$ac_ext <<EOF
11036 #line 11036 "configure"
11037 #include "confdefs.h"
11038
11039 #if HAVE_DLFCN_H
11040 #include <dlfcn.h>
11041 #endif
11042
11043 #include <stdio.h>
11044
11045 #ifdef RTLD_GLOBAL
11046 #  define LT_DLGLOBAL           RTLD_GLOBAL
11047 #else
11048 #  ifdef DL_GLOBAL
11049 #    define LT_DLGLOBAL         DL_GLOBAL
11050 #  else
11051 #    define LT_DLGLOBAL         0
11052 #  endif
11053 #endif
11054
11055 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11056    find out it does not work in some platform. */
11057 #ifndef LT_DLLAZY_OR_NOW
11058 #  ifdef RTLD_LAZY
11059 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11060 #  else
11061 #    ifdef DL_LAZY
11062 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11063 #    else
11064 #      ifdef RTLD_NOW
11065 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11066 #      else
11067 #        ifdef DL_NOW
11068 #          define LT_DLLAZY_OR_NOW      DL_NOW
11069 #        else
11070 #          define LT_DLLAZY_OR_NOW      0
11071 #        endif
11072 #      endif
11073 #    endif
11074 #  endif
11075 #endif
11076
11077 #ifdef __cplusplus
11078 extern "C" void exit (int);
11079 #endif
11080
11081 void fnord() { int i=42;}
11082 int main ()
11083 {
11084   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11085   int status = $lt_dlunknown;
11086
11087   if (self)
11088     {
11089       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11090       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11091       /* dlclose (self); */
11092     }
11093   else
11094     puts (dlerror ());
11095
11096     exit (status);
11097 }
11098 EOF
11099   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11100   (eval $ac_link) 2>&5
11101   ac_status=$?
11102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11104     (./conftest; exit; ) >&5 2>/dev/null
11105     lt_status=$?
11106     case x$lt_status in
11107       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11108       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11109       x$lt_dlunknown|x*)  ;;
11110     esac
11111   else :
11112     # compilation failed
11113
11114   fi
11115 fi
11116 rm -fr conftest*
11117
11118           LIBS="$save_LIBS"
11119
11120 fi
11121 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11122 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11123   fi
11124 fi
11125
11126 if test x"$libltdl_cv_need_uscore" = xyes; then
11127
11128 cat >>confdefs.h <<\_ACEOF
11129 #define NEED_USCORE 1
11130 _ACEOF
11131
11132 fi
11133
11134
11135 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11136 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11137 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11138   echo $ECHO_N "(cached) $ECHO_C" >&6
11139 else
11140   # PORTME does your system automatically load deplibs for dlopen?
11141   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11142   # For now, we just catch OSes we know something about -- in the
11143   # future, we'll try test this programmatically.
11144   libltdl_cv_sys_dlopen_deplibs=unknown
11145   case "$host_os" in
11146   aix3*|aix4.1.*|aix4.2.*)
11147     # Unknown whether this is true for these versions of AIX, but
11148     # we want this `case' here to explicitly catch those versions.
11149     libltdl_cv_sys_dlopen_deplibs=unknown
11150     ;;
11151   aix[45]*)
11152     libltdl_cv_sys_dlopen_deplibs=yes
11153     ;;
11154   darwin*)
11155     # Assuming the user has installed a libdl from somewhere, this is true
11156     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11157     libltdl_cv_sys_dlopen_deplibs=yes
11158     ;;
11159   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11160     # GNU and its variants, using gnu ld.so (Glibc)
11161     libltdl_cv_sys_dlopen_deplibs=yes
11162     ;;
11163   hpux10*|hpux11*)
11164     libltdl_cv_sys_dlopen_deplibs=yes
11165     ;;
11166   interix*)
11167     libltdl_cv_sys_dlopen_deplibs=yes
11168     ;;
11169   irix[12345]*|irix6.[01]*)
11170     # Catch all versions of IRIX before 6.2, and indicate that we don't
11171     # know how it worked for any of those versions.
11172     libltdl_cv_sys_dlopen_deplibs=unknown
11173     ;;
11174   irix*)
11175     # The case above catches anything before 6.2, and it's known that
11176     # at 6.2 and later dlopen does load deplibs.
11177     libltdl_cv_sys_dlopen_deplibs=yes
11178     ;;
11179   netbsd*)
11180     libltdl_cv_sys_dlopen_deplibs=yes
11181     ;;
11182   openbsd*)
11183     libltdl_cv_sys_dlopen_deplibs=yes
11184     ;;
11185   osf[1234]*)
11186     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11187     # it did *not* use an RPATH in a shared library to find objects the
11188     # library depends on, so we explictly say `no'.
11189     libltdl_cv_sys_dlopen_deplibs=no
11190     ;;
11191   osf5.0|osf5.0a|osf5.1)
11192     # dlopen *does* load deplibs and with the right loader patch applied
11193     # it even uses RPATH in a shared library to search for shared objects
11194     # that the library depends on, but there's no easy way to know if that
11195     # patch is installed.  Since this is the case, all we can really
11196     # say is unknown -- it depends on the patch being installed.  If
11197     # it is, this changes to `yes'.  Without it, it would be `no'.
11198     libltdl_cv_sys_dlopen_deplibs=unknown
11199     ;;
11200   osf*)
11201     # the two cases above should catch all versions of osf <= 5.1.  Read
11202     # the comments above for what we know about them.
11203     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11204     # is used to find them so we can finally say `yes'.
11205     libltdl_cv_sys_dlopen_deplibs=yes
11206     ;;
11207   solaris*)
11208     libltdl_cv_sys_dlopen_deplibs=yes
11209     ;;
11210   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11211     libltdl_cv_sys_dlopen_deplibs=yes
11212     ;;
11213   esac
11214
11215 fi
11216 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11217 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11218 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11219
11220 cat >>confdefs.h <<\_ACEOF
11221 #define LTDL_DLOPEN_DEPLIBS 1
11222 _ACEOF
11223
11224 fi
11225
11226
11227 for ac_header in argz.h
11228 do
11229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11231   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11234   echo $ECHO_N "(cached) $ECHO_C" >&6
11235 fi
11236 ac_res=`eval echo '${'$as_ac_Header'}'`
11237                { echo "$as_me:$LINENO: result: $ac_res" >&5
11238 echo "${ECHO_T}$ac_res" >&6; }
11239 else
11240   # Is the header compilable?
11241 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11242 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11243 cat >conftest.$ac_ext <<_ACEOF
11244 /* confdefs.h.  */
11245 _ACEOF
11246 cat confdefs.h >>conftest.$ac_ext
11247 cat >>conftest.$ac_ext <<_ACEOF
11248 /* end confdefs.h.  */
11249 $ac_includes_default
11250 #include <$ac_header>
11251 _ACEOF
11252 rm -f conftest.$ac_objext
11253 if { (ac_try="$ac_compile"
11254 case "(($ac_try" in
11255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256   *) ac_try_echo=$ac_try;;
11257 esac
11258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259   (eval "$ac_compile") 2>conftest.er1
11260   ac_status=$?
11261   grep -v '^ *+' conftest.er1 >conftest.err
11262   rm -f conftest.er1
11263   cat conftest.err >&5
11264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265   (exit $ac_status); } &&
11266          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11267   { (case "(($ac_try" in
11268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269   *) ac_try_echo=$ac_try;;
11270 esac
11271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272   (eval "$ac_try") 2>&5
11273   ac_status=$?
11274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275   (exit $ac_status); }; } &&
11276          { ac_try='test -s conftest.$ac_objext'
11277   { (case "(($ac_try" in
11278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11279   *) ac_try_echo=$ac_try;;
11280 esac
11281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11282   (eval "$ac_try") 2>&5
11283   ac_status=$?
11284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285   (exit $ac_status); }; }; then
11286   ac_header_compiler=yes
11287 else
11288   echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11290
11291         ac_header_compiler=no
11292 fi
11293
11294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11295 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11296 echo "${ECHO_T}$ac_header_compiler" >&6; }
11297
11298 # Is the header present?
11299 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11300 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11301 cat >conftest.$ac_ext <<_ACEOF
11302 /* confdefs.h.  */
11303 _ACEOF
11304 cat confdefs.h >>conftest.$ac_ext
11305 cat >>conftest.$ac_ext <<_ACEOF
11306 /* end confdefs.h.  */
11307 #include <$ac_header>
11308 _ACEOF
11309 if { (ac_try="$ac_cpp conftest.$ac_ext"
11310 case "(($ac_try" in
11311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11312   *) ac_try_echo=$ac_try;;
11313 esac
11314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11315   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11316   ac_status=$?
11317   grep -v '^ *+' conftest.er1 >conftest.err
11318   rm -f conftest.er1
11319   cat conftest.err >&5
11320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321   (exit $ac_status); } >/dev/null; then
11322   if test -s conftest.err; then
11323     ac_cpp_err=$ac_c_preproc_warn_flag
11324     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11325   else
11326     ac_cpp_err=
11327   fi
11328 else
11329   ac_cpp_err=yes
11330 fi
11331 if test -z "$ac_cpp_err"; then
11332   ac_header_preproc=yes
11333 else
11334   echo "$as_me: failed program was:" >&5
11335 sed 's/^/| /' conftest.$ac_ext >&5
11336
11337   ac_header_preproc=no
11338 fi
11339
11340 rm -f conftest.err conftest.$ac_ext
11341 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11342 echo "${ECHO_T}$ac_header_preproc" >&6; }
11343
11344 # So?  What about this header?
11345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11346   yes:no: )
11347     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11348 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11349     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11351     ac_header_preproc=yes
11352     ;;
11353   no:yes:* )
11354     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11356     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11357 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11358     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11359 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11360     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11361 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11362     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11364     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11365 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11366     ( cat <<\_ASBOX
11367 ## ----------------------------------- ##
11368 ## Report this to llvmbugs@cs.uiuc.edu ##
11369 ## ----------------------------------- ##
11370 _ASBOX
11371      ) | sed "s/^/$as_me: WARNING:     /" >&2
11372     ;;
11373 esac
11374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11377   echo $ECHO_N "(cached) $ECHO_C" >&6
11378 else
11379   eval "$as_ac_Header=\$ac_header_preproc"
11380 fi
11381 ac_res=`eval echo '${'$as_ac_Header'}'`
11382                { echo "$as_me:$LINENO: result: $ac_res" >&5
11383 echo "${ECHO_T}$ac_res" >&6; }
11384
11385 fi
11386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11387   cat >>confdefs.h <<_ACEOF
11388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11389 _ACEOF
11390
11391 fi
11392
11393 done
11394
11395
11396 { echo "$as_me:$LINENO: checking for error_t" >&5
11397 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11398 if test "${ac_cv_type_error_t+set}" = set; then
11399   echo $ECHO_N "(cached) $ECHO_C" >&6
11400 else
11401   cat >conftest.$ac_ext <<_ACEOF
11402 /* confdefs.h.  */
11403 _ACEOF
11404 cat confdefs.h >>conftest.$ac_ext
11405 cat >>conftest.$ac_ext <<_ACEOF
11406 /* end confdefs.h.  */
11407 #if HAVE_ARGZ_H
11408 #  include <argz.h>
11409 #endif
11410
11411 typedef error_t ac__type_new_;
11412 int
11413 main ()
11414 {
11415 if ((ac__type_new_ *) 0)
11416   return 0;
11417 if (sizeof (ac__type_new_))
11418   return 0;
11419   ;
11420   return 0;
11421 }
11422 _ACEOF
11423 rm -f conftest.$ac_objext
11424 if { (ac_try="$ac_compile"
11425 case "(($ac_try" in
11426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11427   *) ac_try_echo=$ac_try;;
11428 esac
11429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11430   (eval "$ac_compile") 2>conftest.er1
11431   ac_status=$?
11432   grep -v '^ *+' conftest.er1 >conftest.err
11433   rm -f conftest.er1
11434   cat conftest.err >&5
11435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436   (exit $ac_status); } &&
11437          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11438   { (case "(($ac_try" in
11439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11440   *) ac_try_echo=$ac_try;;
11441 esac
11442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11443   (eval "$ac_try") 2>&5
11444   ac_status=$?
11445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446   (exit $ac_status); }; } &&
11447          { ac_try='test -s conftest.$ac_objext'
11448   { (case "(($ac_try" in
11449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11450   *) ac_try_echo=$ac_try;;
11451 esac
11452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11453   (eval "$ac_try") 2>&5
11454   ac_status=$?
11455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456   (exit $ac_status); }; }; then
11457   ac_cv_type_error_t=yes
11458 else
11459   echo "$as_me: failed program was:" >&5
11460 sed 's/^/| /' conftest.$ac_ext >&5
11461
11462         ac_cv_type_error_t=no
11463 fi
11464
11465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11466 fi
11467 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11468 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11469 if test $ac_cv_type_error_t = yes; then
11470
11471 cat >>confdefs.h <<_ACEOF
11472 #define HAVE_ERROR_T 1
11473 _ACEOF
11474
11475
11476 else
11477
11478 cat >>confdefs.h <<\_ACEOF
11479 #define error_t int
11480 _ACEOF
11481
11482 fi
11483
11484
11485
11486
11487
11488
11489
11490 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11491 do
11492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11493 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11495 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11496   echo $ECHO_N "(cached) $ECHO_C" >&6
11497 else
11498   cat >conftest.$ac_ext <<_ACEOF
11499 /* confdefs.h.  */
11500 _ACEOF
11501 cat confdefs.h >>conftest.$ac_ext
11502 cat >>conftest.$ac_ext <<_ACEOF
11503 /* end confdefs.h.  */
11504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11505    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11506 #define $ac_func innocuous_$ac_func
11507
11508 /* System header to define __stub macros and hopefully few prototypes,
11509     which can conflict with char $ac_func (); below.
11510     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11511     <limits.h> exists even on freestanding compilers.  */
11512
11513 #ifdef __STDC__
11514 # include <limits.h>
11515 #else
11516 # include <assert.h>
11517 #endif
11518
11519 #undef $ac_func
11520
11521 /* Override any GCC internal prototype to avoid an error.
11522    Use char because int might match the return type of a GCC
11523    builtin and then its argument prototype would still apply.  */
11524 #ifdef __cplusplus
11525 extern "C"
11526 #endif
11527 char $ac_func ();
11528 /* The GNU C library defines this for functions which it implements
11529     to always fail with ENOSYS.  Some functions are actually named
11530     something starting with __ and the normal name is an alias.  */
11531 #if defined __stub_$ac_func || defined __stub___$ac_func
11532 choke me
11533 #endif
11534
11535 int
11536 main ()
11537 {
11538 return $ac_func ();
11539   ;
11540   return 0;
11541 }
11542 _ACEOF
11543 rm -f conftest.$ac_objext conftest$ac_exeext
11544 if { (ac_try="$ac_link"
11545 case "(($ac_try" in
11546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11547   *) ac_try_echo=$ac_try;;
11548 esac
11549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11550   (eval "$ac_link") 2>conftest.er1
11551   ac_status=$?
11552   grep -v '^ *+' conftest.er1 >conftest.err
11553   rm -f conftest.er1
11554   cat conftest.err >&5
11555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556   (exit $ac_status); } &&
11557          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11558   { (case "(($ac_try" in
11559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11560   *) ac_try_echo=$ac_try;;
11561 esac
11562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11563   (eval "$ac_try") 2>&5
11564   ac_status=$?
11565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566   (exit $ac_status); }; } &&
11567          { ac_try='test -s conftest$ac_exeext'
11568   { (case "(($ac_try" in
11569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11570   *) ac_try_echo=$ac_try;;
11571 esac
11572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11573   (eval "$ac_try") 2>&5
11574   ac_status=$?
11575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576   (exit $ac_status); }; }; then
11577   eval "$as_ac_var=yes"
11578 else
11579   echo "$as_me: failed program was:" >&5
11580 sed 's/^/| /' conftest.$ac_ext >&5
11581
11582         eval "$as_ac_var=no"
11583 fi
11584
11585 rm -f core conftest.err conftest.$ac_objext \
11586       conftest$ac_exeext conftest.$ac_ext
11587 fi
11588 ac_res=`eval echo '${'$as_ac_var'}'`
11589                { echo "$as_me:$LINENO: result: $ac_res" >&5
11590 echo "${ECHO_T}$ac_res" >&6; }
11591 if test `eval echo '${'$as_ac_var'}'` = yes; then
11592   cat >>confdefs.h <<_ACEOF
11593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11594 _ACEOF
11595
11596 fi
11597 done
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11627                   stdio.h unistd.h
11628 do
11629 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11631   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11634   echo $ECHO_N "(cached) $ECHO_C" >&6
11635 fi
11636 ac_res=`eval echo '${'$as_ac_Header'}'`
11637                { echo "$as_me:$LINENO: result: $ac_res" >&5
11638 echo "${ECHO_T}$ac_res" >&6; }
11639 else
11640   # Is the header compilable?
11641 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11642 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11643 cat >conftest.$ac_ext <<_ACEOF
11644 /* confdefs.h.  */
11645 _ACEOF
11646 cat confdefs.h >>conftest.$ac_ext
11647 cat >>conftest.$ac_ext <<_ACEOF
11648 /* end confdefs.h.  */
11649 $ac_includes_default
11650 #include <$ac_header>
11651 _ACEOF
11652 rm -f conftest.$ac_objext
11653 if { (ac_try="$ac_compile"
11654 case "(($ac_try" in
11655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11656   *) ac_try_echo=$ac_try;;
11657 esac
11658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11659   (eval "$ac_compile") 2>conftest.er1
11660   ac_status=$?
11661   grep -v '^ *+' conftest.er1 >conftest.err
11662   rm -f conftest.er1
11663   cat conftest.err >&5
11664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665   (exit $ac_status); } &&
11666          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11667   { (case "(($ac_try" in
11668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11669   *) ac_try_echo=$ac_try;;
11670 esac
11671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11672   (eval "$ac_try") 2>&5
11673   ac_status=$?
11674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675   (exit $ac_status); }; } &&
11676          { ac_try='test -s conftest.$ac_objext'
11677   { (case "(($ac_try" in
11678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11679   *) ac_try_echo=$ac_try;;
11680 esac
11681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11682   (eval "$ac_try") 2>&5
11683   ac_status=$?
11684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685   (exit $ac_status); }; }; then
11686   ac_header_compiler=yes
11687 else
11688   echo "$as_me: failed program was:" >&5
11689 sed 's/^/| /' conftest.$ac_ext >&5
11690
11691         ac_header_compiler=no
11692 fi
11693
11694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11695 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11696 echo "${ECHO_T}$ac_header_compiler" >&6; }
11697
11698 # Is the header present?
11699 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11700 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11701 cat >conftest.$ac_ext <<_ACEOF
11702 /* confdefs.h.  */
11703 _ACEOF
11704 cat confdefs.h >>conftest.$ac_ext
11705 cat >>conftest.$ac_ext <<_ACEOF
11706 /* end confdefs.h.  */
11707 #include <$ac_header>
11708 _ACEOF
11709 if { (ac_try="$ac_cpp conftest.$ac_ext"
11710 case "(($ac_try" in
11711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11712   *) ac_try_echo=$ac_try;;
11713 esac
11714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11715   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11716   ac_status=$?
11717   grep -v '^ *+' conftest.er1 >conftest.err
11718   rm -f conftest.er1
11719   cat conftest.err >&5
11720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721   (exit $ac_status); } >/dev/null; then
11722   if test -s conftest.err; then
11723     ac_cpp_err=$ac_c_preproc_warn_flag
11724     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11725   else
11726     ac_cpp_err=
11727   fi
11728 else
11729   ac_cpp_err=yes
11730 fi
11731 if test -z "$ac_cpp_err"; then
11732   ac_header_preproc=yes
11733 else
11734   echo "$as_me: failed program was:" >&5
11735 sed 's/^/| /' conftest.$ac_ext >&5
11736
11737   ac_header_preproc=no
11738 fi
11739
11740 rm -f conftest.err conftest.$ac_ext
11741 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11742 echo "${ECHO_T}$ac_header_preproc" >&6; }
11743
11744 # So?  What about this header?
11745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11746   yes:no: )
11747     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11748 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11749     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11751     ac_header_preproc=yes
11752     ;;
11753   no:yes:* )
11754     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11755 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11756     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11757 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11758     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11759 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11760     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11761 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11762     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11764     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11765 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11766     ( cat <<\_ASBOX
11767 ## ----------------------------------- ##
11768 ## Report this to llvmbugs@cs.uiuc.edu ##
11769 ## ----------------------------------- ##
11770 _ASBOX
11771      ) | sed "s/^/$as_me: WARNING:     /" >&2
11772     ;;
11773 esac
11774 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11777   echo $ECHO_N "(cached) $ECHO_C" >&6
11778 else
11779   eval "$as_ac_Header=\$ac_header_preproc"
11780 fi
11781 ac_res=`eval echo '${'$as_ac_Header'}'`
11782                { echo "$as_me:$LINENO: result: $ac_res" >&5
11783 echo "${ECHO_T}$ac_res" >&6; }
11784
11785 fi
11786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11787   cat >>confdefs.h <<_ACEOF
11788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11789 _ACEOF
11790
11791 fi
11792
11793 done
11794
11795
11796
11797
11798
11799 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11800 do
11801 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11803   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11806   echo $ECHO_N "(cached) $ECHO_C" >&6
11807 fi
11808 ac_res=`eval echo '${'$as_ac_Header'}'`
11809                { echo "$as_me:$LINENO: result: $ac_res" >&5
11810 echo "${ECHO_T}$ac_res" >&6; }
11811 else
11812   # Is the header compilable?
11813 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11814 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11815 cat >conftest.$ac_ext <<_ACEOF
11816 /* confdefs.h.  */
11817 _ACEOF
11818 cat confdefs.h >>conftest.$ac_ext
11819 cat >>conftest.$ac_ext <<_ACEOF
11820 /* end confdefs.h.  */
11821 $ac_includes_default
11822 #include <$ac_header>
11823 _ACEOF
11824 rm -f conftest.$ac_objext
11825 if { (ac_try="$ac_compile"
11826 case "(($ac_try" in
11827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11828   *) ac_try_echo=$ac_try;;
11829 esac
11830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11831   (eval "$ac_compile") 2>conftest.er1
11832   ac_status=$?
11833   grep -v '^ *+' conftest.er1 >conftest.err
11834   rm -f conftest.er1
11835   cat conftest.err >&5
11836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837   (exit $ac_status); } &&
11838          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11839   { (case "(($ac_try" in
11840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11841   *) ac_try_echo=$ac_try;;
11842 esac
11843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11844   (eval "$ac_try") 2>&5
11845   ac_status=$?
11846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847   (exit $ac_status); }; } &&
11848          { ac_try='test -s conftest.$ac_objext'
11849   { (case "(($ac_try" in
11850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11851   *) ac_try_echo=$ac_try;;
11852 esac
11853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11854   (eval "$ac_try") 2>&5
11855   ac_status=$?
11856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857   (exit $ac_status); }; }; then
11858   ac_header_compiler=yes
11859 else
11860   echo "$as_me: failed program was:" >&5
11861 sed 's/^/| /' conftest.$ac_ext >&5
11862
11863         ac_header_compiler=no
11864 fi
11865
11866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11867 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11868 echo "${ECHO_T}$ac_header_compiler" >&6; }
11869
11870 # Is the header present?
11871 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11872 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11873 cat >conftest.$ac_ext <<_ACEOF
11874 /* confdefs.h.  */
11875 _ACEOF
11876 cat confdefs.h >>conftest.$ac_ext
11877 cat >>conftest.$ac_ext <<_ACEOF
11878 /* end confdefs.h.  */
11879 #include <$ac_header>
11880 _ACEOF
11881 if { (ac_try="$ac_cpp conftest.$ac_ext"
11882 case "(($ac_try" in
11883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884   *) ac_try_echo=$ac_try;;
11885 esac
11886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11888   ac_status=$?
11889   grep -v '^ *+' conftest.er1 >conftest.err
11890   rm -f conftest.er1
11891   cat conftest.err >&5
11892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893   (exit $ac_status); } >/dev/null; then
11894   if test -s conftest.err; then
11895     ac_cpp_err=$ac_c_preproc_warn_flag
11896     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11897   else
11898     ac_cpp_err=
11899   fi
11900 else
11901   ac_cpp_err=yes
11902 fi
11903 if test -z "$ac_cpp_err"; then
11904   ac_header_preproc=yes
11905 else
11906   echo "$as_me: failed program was:" >&5
11907 sed 's/^/| /' conftest.$ac_ext >&5
11908
11909   ac_header_preproc=no
11910 fi
11911
11912 rm -f conftest.err conftest.$ac_ext
11913 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11914 echo "${ECHO_T}$ac_header_preproc" >&6; }
11915
11916 # So?  What about this header?
11917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11918   yes:no: )
11919     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11920 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11921     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11922 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11923     ac_header_preproc=yes
11924     ;;
11925   no:yes:* )
11926     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11927 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11928     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11929 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11930     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11931 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11932     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11933 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11934     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11935 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11936     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11937 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11938     ( cat <<\_ASBOX
11939 ## ----------------------------------- ##
11940 ## Report this to llvmbugs@cs.uiuc.edu ##
11941 ## ----------------------------------- ##
11942 _ASBOX
11943      ) | sed "s/^/$as_me: WARNING:     /" >&2
11944     ;;
11945 esac
11946 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11949   echo $ECHO_N "(cached) $ECHO_C" >&6
11950 else
11951   eval "$as_ac_Header=\$ac_header_preproc"
11952 fi
11953 ac_res=`eval echo '${'$as_ac_Header'}'`
11954                { echo "$as_me:$LINENO: result: $ac_res" >&5
11955 echo "${ECHO_T}$ac_res" >&6; }
11956
11957 fi
11958 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11959   cat >>confdefs.h <<_ACEOF
11960 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11961 _ACEOF
11962
11963 fi
11964
11965 done
11966
11967
11968
11969 for ac_header in string.h strings.h
11970 do
11971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11973   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11976   echo $ECHO_N "(cached) $ECHO_C" >&6
11977 fi
11978 ac_res=`eval echo '${'$as_ac_Header'}'`
11979                { echo "$as_me:$LINENO: result: $ac_res" >&5
11980 echo "${ECHO_T}$ac_res" >&6; }
11981 else
11982   # Is the header compilable?
11983 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11984 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11985 cat >conftest.$ac_ext <<_ACEOF
11986 /* confdefs.h.  */
11987 _ACEOF
11988 cat confdefs.h >>conftest.$ac_ext
11989 cat >>conftest.$ac_ext <<_ACEOF
11990 /* end confdefs.h.  */
11991 $ac_includes_default
11992 #include <$ac_header>
11993 _ACEOF
11994 rm -f conftest.$ac_objext
11995 if { (ac_try="$ac_compile"
11996 case "(($ac_try" in
11997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11998   *) ac_try_echo=$ac_try;;
11999 esac
12000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12001   (eval "$ac_compile") 2>conftest.er1
12002   ac_status=$?
12003   grep -v '^ *+' conftest.er1 >conftest.err
12004   rm -f conftest.er1
12005   cat conftest.err >&5
12006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007   (exit $ac_status); } &&
12008          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12009   { (case "(($ac_try" in
12010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12011   *) ac_try_echo=$ac_try;;
12012 esac
12013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12014   (eval "$ac_try") 2>&5
12015   ac_status=$?
12016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017   (exit $ac_status); }; } &&
12018          { ac_try='test -s conftest.$ac_objext'
12019   { (case "(($ac_try" in
12020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12021   *) ac_try_echo=$ac_try;;
12022 esac
12023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12024   (eval "$ac_try") 2>&5
12025   ac_status=$?
12026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027   (exit $ac_status); }; }; then
12028   ac_header_compiler=yes
12029 else
12030   echo "$as_me: failed program was:" >&5
12031 sed 's/^/| /' conftest.$ac_ext >&5
12032
12033         ac_header_compiler=no
12034 fi
12035
12036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12037 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12038 echo "${ECHO_T}$ac_header_compiler" >&6; }
12039
12040 # Is the header present?
12041 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12042 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12043 cat >conftest.$ac_ext <<_ACEOF
12044 /* confdefs.h.  */
12045 _ACEOF
12046 cat confdefs.h >>conftest.$ac_ext
12047 cat >>conftest.$ac_ext <<_ACEOF
12048 /* end confdefs.h.  */
12049 #include <$ac_header>
12050 _ACEOF
12051 if { (ac_try="$ac_cpp conftest.$ac_ext"
12052 case "(($ac_try" in
12053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12054   *) ac_try_echo=$ac_try;;
12055 esac
12056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12057   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12058   ac_status=$?
12059   grep -v '^ *+' conftest.er1 >conftest.err
12060   rm -f conftest.er1
12061   cat conftest.err >&5
12062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063   (exit $ac_status); } >/dev/null; then
12064   if test -s conftest.err; then
12065     ac_cpp_err=$ac_c_preproc_warn_flag
12066     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12067   else
12068     ac_cpp_err=
12069   fi
12070 else
12071   ac_cpp_err=yes
12072 fi
12073 if test -z "$ac_cpp_err"; then
12074   ac_header_preproc=yes
12075 else
12076   echo "$as_me: failed program was:" >&5
12077 sed 's/^/| /' conftest.$ac_ext >&5
12078
12079   ac_header_preproc=no
12080 fi
12081
12082 rm -f conftest.err conftest.$ac_ext
12083 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12084 echo "${ECHO_T}$ac_header_preproc" >&6; }
12085
12086 # So?  What about this header?
12087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12088   yes:no: )
12089     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12090 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12091     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12092 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12093     ac_header_preproc=yes
12094     ;;
12095   no:yes:* )
12096     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12097 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12098     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12099 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12100     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12101 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12102     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12103 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12104     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12105 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12106     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12107 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12108     ( cat <<\_ASBOX
12109 ## ----------------------------------- ##
12110 ## Report this to llvmbugs@cs.uiuc.edu ##
12111 ## ----------------------------------- ##
12112 _ASBOX
12113      ) | sed "s/^/$as_me: WARNING:     /" >&2
12114     ;;
12115 esac
12116 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12119   echo $ECHO_N "(cached) $ECHO_C" >&6
12120 else
12121   eval "$as_ac_Header=\$ac_header_preproc"
12122 fi
12123 ac_res=`eval echo '${'$as_ac_Header'}'`
12124                { echo "$as_me:$LINENO: result: $ac_res" >&5
12125 echo "${ECHO_T}$ac_res" >&6; }
12126
12127 fi
12128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12129   cat >>confdefs.h <<_ACEOF
12130 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12131 _ACEOF
12132  break
12133 fi
12134
12135 done
12136
12137
12138
12139
12140 for ac_func in strchr index
12141 do
12142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12143 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12145 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12146   echo $ECHO_N "(cached) $ECHO_C" >&6
12147 else
12148   cat >conftest.$ac_ext <<_ACEOF
12149 /* confdefs.h.  */
12150 _ACEOF
12151 cat confdefs.h >>conftest.$ac_ext
12152 cat >>conftest.$ac_ext <<_ACEOF
12153 /* end confdefs.h.  */
12154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12155    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12156 #define $ac_func innocuous_$ac_func
12157
12158 /* System header to define __stub macros and hopefully few prototypes,
12159     which can conflict with char $ac_func (); below.
12160     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12161     <limits.h> exists even on freestanding compilers.  */
12162
12163 #ifdef __STDC__
12164 # include <limits.h>
12165 #else
12166 # include <assert.h>
12167 #endif
12168
12169 #undef $ac_func
12170
12171 /* Override any GCC internal prototype to avoid an error.
12172    Use char because int might match the return type of a GCC
12173    builtin and then its argument prototype would still apply.  */
12174 #ifdef __cplusplus
12175 extern "C"
12176 #endif
12177 char $ac_func ();
12178 /* The GNU C library defines this for functions which it implements
12179     to always fail with ENOSYS.  Some functions are actually named
12180     something starting with __ and the normal name is an alias.  */
12181 #if defined __stub_$ac_func || defined __stub___$ac_func
12182 choke me
12183 #endif
12184
12185 int
12186 main ()
12187 {
12188 return $ac_func ();
12189   ;
12190   return 0;
12191 }
12192 _ACEOF
12193 rm -f conftest.$ac_objext conftest$ac_exeext
12194 if { (ac_try="$ac_link"
12195 case "(($ac_try" in
12196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197   *) ac_try_echo=$ac_try;;
12198 esac
12199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200   (eval "$ac_link") 2>conftest.er1
12201   ac_status=$?
12202   grep -v '^ *+' conftest.er1 >conftest.err
12203   rm -f conftest.er1
12204   cat conftest.err >&5
12205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206   (exit $ac_status); } &&
12207          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12208   { (case "(($ac_try" in
12209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12210   *) ac_try_echo=$ac_try;;
12211 esac
12212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12213   (eval "$ac_try") 2>&5
12214   ac_status=$?
12215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216   (exit $ac_status); }; } &&
12217          { ac_try='test -s conftest$ac_exeext'
12218   { (case "(($ac_try" in
12219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12220   *) ac_try_echo=$ac_try;;
12221 esac
12222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12223   (eval "$ac_try") 2>&5
12224   ac_status=$?
12225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226   (exit $ac_status); }; }; then
12227   eval "$as_ac_var=yes"
12228 else
12229   echo "$as_me: failed program was:" >&5
12230 sed 's/^/| /' conftest.$ac_ext >&5
12231
12232         eval "$as_ac_var=no"
12233 fi
12234
12235 rm -f core conftest.err conftest.$ac_objext \
12236       conftest$ac_exeext conftest.$ac_ext
12237 fi
12238 ac_res=`eval echo '${'$as_ac_var'}'`
12239                { echo "$as_me:$LINENO: result: $ac_res" >&5
12240 echo "${ECHO_T}$ac_res" >&6; }
12241 if test `eval echo '${'$as_ac_var'}'` = yes; then
12242   cat >>confdefs.h <<_ACEOF
12243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12244 _ACEOF
12245  break
12246 fi
12247 done
12248
12249
12250
12251 for ac_func in strrchr rindex
12252 do
12253 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12254 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12255 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12256 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12257   echo $ECHO_N "(cached) $ECHO_C" >&6
12258 else
12259   cat >conftest.$ac_ext <<_ACEOF
12260 /* confdefs.h.  */
12261 _ACEOF
12262 cat confdefs.h >>conftest.$ac_ext
12263 cat >>conftest.$ac_ext <<_ACEOF
12264 /* end confdefs.h.  */
12265 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12266    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12267 #define $ac_func innocuous_$ac_func
12268
12269 /* System header to define __stub macros and hopefully few prototypes,
12270     which can conflict with char $ac_func (); below.
12271     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12272     <limits.h> exists even on freestanding compilers.  */
12273
12274 #ifdef __STDC__
12275 # include <limits.h>
12276 #else
12277 # include <assert.h>
12278 #endif
12279
12280 #undef $ac_func
12281
12282 /* Override any GCC internal prototype to avoid an error.
12283    Use char because int might match the return type of a GCC
12284    builtin and then its argument prototype would still apply.  */
12285 #ifdef __cplusplus
12286 extern "C"
12287 #endif
12288 char $ac_func ();
12289 /* The GNU C library defines this for functions which it implements
12290     to always fail with ENOSYS.  Some functions are actually named
12291     something starting with __ and the normal name is an alias.  */
12292 #if defined __stub_$ac_func || defined __stub___$ac_func
12293 choke me
12294 #endif
12295
12296 int
12297 main ()
12298 {
12299 return $ac_func ();
12300   ;
12301   return 0;
12302 }
12303 _ACEOF
12304 rm -f conftest.$ac_objext conftest$ac_exeext
12305 if { (ac_try="$ac_link"
12306 case "(($ac_try" in
12307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12308   *) ac_try_echo=$ac_try;;
12309 esac
12310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12311   (eval "$ac_link") 2>conftest.er1
12312   ac_status=$?
12313   grep -v '^ *+' conftest.er1 >conftest.err
12314   rm -f conftest.er1
12315   cat conftest.err >&5
12316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317   (exit $ac_status); } &&
12318          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12319   { (case "(($ac_try" in
12320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12321   *) ac_try_echo=$ac_try;;
12322 esac
12323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12324   (eval "$ac_try") 2>&5
12325   ac_status=$?
12326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327   (exit $ac_status); }; } &&
12328          { ac_try='test -s conftest$ac_exeext'
12329   { (case "(($ac_try" in
12330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12331   *) ac_try_echo=$ac_try;;
12332 esac
12333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12334   (eval "$ac_try") 2>&5
12335   ac_status=$?
12336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337   (exit $ac_status); }; }; then
12338   eval "$as_ac_var=yes"
12339 else
12340   echo "$as_me: failed program was:" >&5
12341 sed 's/^/| /' conftest.$ac_ext >&5
12342
12343         eval "$as_ac_var=no"
12344 fi
12345
12346 rm -f core conftest.err conftest.$ac_objext \
12347       conftest$ac_exeext conftest.$ac_ext
12348 fi
12349 ac_res=`eval echo '${'$as_ac_var'}'`
12350                { echo "$as_me:$LINENO: result: $ac_res" >&5
12351 echo "${ECHO_T}$ac_res" >&6; }
12352 if test `eval echo '${'$as_ac_var'}'` = yes; then
12353   cat >>confdefs.h <<_ACEOF
12354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12355 _ACEOF
12356  break
12357 fi
12358 done
12359
12360
12361
12362 for ac_func in memcpy bcopy
12363 do
12364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12365 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12367 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12368   echo $ECHO_N "(cached) $ECHO_C" >&6
12369 else
12370   cat >conftest.$ac_ext <<_ACEOF
12371 /* confdefs.h.  */
12372 _ACEOF
12373 cat confdefs.h >>conftest.$ac_ext
12374 cat >>conftest.$ac_ext <<_ACEOF
12375 /* end confdefs.h.  */
12376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12377    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12378 #define $ac_func innocuous_$ac_func
12379
12380 /* System header to define __stub macros and hopefully few prototypes,
12381     which can conflict with char $ac_func (); below.
12382     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12383     <limits.h> exists even on freestanding compilers.  */
12384
12385 #ifdef __STDC__
12386 # include <limits.h>
12387 #else
12388 # include <assert.h>
12389 #endif
12390
12391 #undef $ac_func
12392
12393 /* Override any GCC internal prototype to avoid an error.
12394    Use char because int might match the return type of a GCC
12395    builtin and then its argument prototype would still apply.  */
12396 #ifdef __cplusplus
12397 extern "C"
12398 #endif
12399 char $ac_func ();
12400 /* The GNU C library defines this for functions which it implements
12401     to always fail with ENOSYS.  Some functions are actually named
12402     something starting with __ and the normal name is an alias.  */
12403 #if defined __stub_$ac_func || defined __stub___$ac_func
12404 choke me
12405 #endif
12406
12407 int
12408 main ()
12409 {
12410 return $ac_func ();
12411   ;
12412   return 0;
12413 }
12414 _ACEOF
12415 rm -f conftest.$ac_objext conftest$ac_exeext
12416 if { (ac_try="$ac_link"
12417 case "(($ac_try" in
12418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12419   *) ac_try_echo=$ac_try;;
12420 esac
12421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12422   (eval "$ac_link") 2>conftest.er1
12423   ac_status=$?
12424   grep -v '^ *+' conftest.er1 >conftest.err
12425   rm -f conftest.er1
12426   cat conftest.err >&5
12427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428   (exit $ac_status); } &&
12429          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12430   { (case "(($ac_try" in
12431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12432   *) ac_try_echo=$ac_try;;
12433 esac
12434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12435   (eval "$ac_try") 2>&5
12436   ac_status=$?
12437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438   (exit $ac_status); }; } &&
12439          { ac_try='test -s conftest$ac_exeext'
12440   { (case "(($ac_try" in
12441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12442   *) ac_try_echo=$ac_try;;
12443 esac
12444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12445   (eval "$ac_try") 2>&5
12446   ac_status=$?
12447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448   (exit $ac_status); }; }; then
12449   eval "$as_ac_var=yes"
12450 else
12451   echo "$as_me: failed program was:" >&5
12452 sed 's/^/| /' conftest.$ac_ext >&5
12453
12454         eval "$as_ac_var=no"
12455 fi
12456
12457 rm -f core conftest.err conftest.$ac_objext \
12458       conftest$ac_exeext conftest.$ac_ext
12459 fi
12460 ac_res=`eval echo '${'$as_ac_var'}'`
12461                { echo "$as_me:$LINENO: result: $ac_res" >&5
12462 echo "${ECHO_T}$ac_res" >&6; }
12463 if test `eval echo '${'$as_ac_var'}'` = yes; then
12464   cat >>confdefs.h <<_ACEOF
12465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12466 _ACEOF
12467  break
12468 fi
12469 done
12470
12471
12472
12473 for ac_func in memmove strcmp
12474 do
12475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12476 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12478 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12479   echo $ECHO_N "(cached) $ECHO_C" >&6
12480 else
12481   cat >conftest.$ac_ext <<_ACEOF
12482 /* confdefs.h.  */
12483 _ACEOF
12484 cat confdefs.h >>conftest.$ac_ext
12485 cat >>conftest.$ac_ext <<_ACEOF
12486 /* end confdefs.h.  */
12487 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12488    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12489 #define $ac_func innocuous_$ac_func
12490
12491 /* System header to define __stub macros and hopefully few prototypes,
12492     which can conflict with char $ac_func (); below.
12493     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12494     <limits.h> exists even on freestanding compilers.  */
12495
12496 #ifdef __STDC__
12497 # include <limits.h>
12498 #else
12499 # include <assert.h>
12500 #endif
12501
12502 #undef $ac_func
12503
12504 /* Override any GCC internal prototype to avoid an error.
12505    Use char because int might match the return type of a GCC
12506    builtin and then its argument prototype would still apply.  */
12507 #ifdef __cplusplus
12508 extern "C"
12509 #endif
12510 char $ac_func ();
12511 /* The GNU C library defines this for functions which it implements
12512     to always fail with ENOSYS.  Some functions are actually named
12513     something starting with __ and the normal name is an alias.  */
12514 #if defined __stub_$ac_func || defined __stub___$ac_func
12515 choke me
12516 #endif
12517
12518 int
12519 main ()
12520 {
12521 return $ac_func ();
12522   ;
12523   return 0;
12524 }
12525 _ACEOF
12526 rm -f conftest.$ac_objext conftest$ac_exeext
12527 if { (ac_try="$ac_link"
12528 case "(($ac_try" in
12529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530   *) ac_try_echo=$ac_try;;
12531 esac
12532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12533   (eval "$ac_link") 2>conftest.er1
12534   ac_status=$?
12535   grep -v '^ *+' conftest.er1 >conftest.err
12536   rm -f conftest.er1
12537   cat conftest.err >&5
12538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539   (exit $ac_status); } &&
12540          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12541   { (case "(($ac_try" in
12542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543   *) ac_try_echo=$ac_try;;
12544 esac
12545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12546   (eval "$ac_try") 2>&5
12547   ac_status=$?
12548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549   (exit $ac_status); }; } &&
12550          { ac_try='test -s conftest$ac_exeext'
12551   { (case "(($ac_try" in
12552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553   *) ac_try_echo=$ac_try;;
12554 esac
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556   (eval "$ac_try") 2>&5
12557   ac_status=$?
12558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559   (exit $ac_status); }; }; then
12560   eval "$as_ac_var=yes"
12561 else
12562   echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12564
12565         eval "$as_ac_var=no"
12566 fi
12567
12568 rm -f core conftest.err conftest.$ac_objext \
12569       conftest$ac_exeext conftest.$ac_ext
12570 fi
12571 ac_res=`eval echo '${'$as_ac_var'}'`
12572                { echo "$as_me:$LINENO: result: $ac_res" >&5
12573 echo "${ECHO_T}$ac_res" >&6; }
12574 if test `eval echo '${'$as_ac_var'}'` = yes; then
12575   cat >>confdefs.h <<_ACEOF
12576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12577 _ACEOF
12578
12579 fi
12580 done
12581
12582
12583
12584
12585 for ac_func in closedir opendir readdir
12586 do
12587 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12588 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12589 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12590 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12591   echo $ECHO_N "(cached) $ECHO_C" >&6
12592 else
12593   cat >conftest.$ac_ext <<_ACEOF
12594 /* confdefs.h.  */
12595 _ACEOF
12596 cat confdefs.h >>conftest.$ac_ext
12597 cat >>conftest.$ac_ext <<_ACEOF
12598 /* end confdefs.h.  */
12599 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12600    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12601 #define $ac_func innocuous_$ac_func
12602
12603 /* System header to define __stub macros and hopefully few prototypes,
12604     which can conflict with char $ac_func (); below.
12605     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12606     <limits.h> exists even on freestanding compilers.  */
12607
12608 #ifdef __STDC__
12609 # include <limits.h>
12610 #else
12611 # include <assert.h>
12612 #endif
12613
12614 #undef $ac_func
12615
12616 /* Override any GCC internal prototype to avoid an error.
12617    Use char because int might match the return type of a GCC
12618    builtin and then its argument prototype would still apply.  */
12619 #ifdef __cplusplus
12620 extern "C"
12621 #endif
12622 char $ac_func ();
12623 /* The GNU C library defines this for functions which it implements
12624     to always fail with ENOSYS.  Some functions are actually named
12625     something starting with __ and the normal name is an alias.  */
12626 #if defined __stub_$ac_func || defined __stub___$ac_func
12627 choke me
12628 #endif
12629
12630 int
12631 main ()
12632 {
12633 return $ac_func ();
12634   ;
12635   return 0;
12636 }
12637 _ACEOF
12638 rm -f conftest.$ac_objext conftest$ac_exeext
12639 if { (ac_try="$ac_link"
12640 case "(($ac_try" in
12641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642   *) ac_try_echo=$ac_try;;
12643 esac
12644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645   (eval "$ac_link") 2>conftest.er1
12646   ac_status=$?
12647   grep -v '^ *+' conftest.er1 >conftest.err
12648   rm -f conftest.er1
12649   cat conftest.err >&5
12650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651   (exit $ac_status); } &&
12652          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12653   { (case "(($ac_try" in
12654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12655   *) ac_try_echo=$ac_try;;
12656 esac
12657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12658   (eval "$ac_try") 2>&5
12659   ac_status=$?
12660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661   (exit $ac_status); }; } &&
12662          { ac_try='test -s conftest$ac_exeext'
12663   { (case "(($ac_try" in
12664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12665   *) ac_try_echo=$ac_try;;
12666 esac
12667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12668   (eval "$ac_try") 2>&5
12669   ac_status=$?
12670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671   (exit $ac_status); }; }; then
12672   eval "$as_ac_var=yes"
12673 else
12674   echo "$as_me: failed program was:" >&5
12675 sed 's/^/| /' conftest.$ac_ext >&5
12676
12677         eval "$as_ac_var=no"
12678 fi
12679
12680 rm -f core conftest.err conftest.$ac_objext \
12681       conftest$ac_exeext conftest.$ac_ext
12682 fi
12683 ac_res=`eval echo '${'$as_ac_var'}'`
12684                { echo "$as_me:$LINENO: result: $ac_res" >&5
12685 echo "${ECHO_T}$ac_res" >&6; }
12686 if test `eval echo '${'$as_ac_var'}'` = yes; then
12687   cat >>confdefs.h <<_ACEOF
12688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12689 _ACEOF
12690
12691 fi
12692 done
12693
12694
12695
12696 if test "$WITH_LLVMGCCDIR" = "default" ; then
12697   LLVMGCC="llvm-gcc${EXEEXT}"
12698   LLVMGXX="llvm-g++${EXEEXT}"
12699   LLVMGCCCOMMAND="$LLVMGCC"
12700   LLVMGXXCOMMAND="$LLVMGXX"
12701   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12702
12703   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12704
12705   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12706 set dummy $LLVMGCC; ac_word=$2
12707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12709 if test "${ac_cv_path_LLVMGCC+set}" = set; then
12710   echo $ECHO_N "(cached) $ECHO_C" >&6
12711 else
12712   case $LLVMGCC in
12713   [\\/]* | ?:[\\/]*)
12714   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12715   ;;
12716   *)
12717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12718 for as_dir in $PATH
12719 do
12720   IFS=$as_save_IFS
12721   test -z "$as_dir" && as_dir=.
12722   for ac_exec_ext in '' $ac_executable_extensions; do
12723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12724     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
12725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12726     break 2
12727   fi
12728 done
12729 done
12730 IFS=$as_save_IFS
12731
12732   ;;
12733 esac
12734 fi
12735 LLVMGCC=$ac_cv_path_LLVMGCC
12736 if test -n "$LLVMGCC"; then
12737   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12738 echo "${ECHO_T}$LLVMGCC" >&6; }
12739 else
12740   { echo "$as_me:$LINENO: result: no" >&5
12741 echo "${ECHO_T}no" >&6; }
12742 fi
12743
12744
12745   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12746 set dummy $LLVMGXX; ac_word=$2
12747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12749 if test "${ac_cv_path_LLVMGXX+set}" = set; then
12750   echo $ECHO_N "(cached) $ECHO_C" >&6
12751 else
12752   case $LLVMGXX in
12753   [\\/]* | ?:[\\/]*)
12754   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12755   ;;
12756   *)
12757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12758 for as_dir in $PATH
12759 do
12760   IFS=$as_save_IFS
12761   test -z "$as_dir" && as_dir=.
12762   for ac_exec_ext in '' $ac_executable_extensions; do
12763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12764     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
12765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12766     break 2
12767   fi
12768 done
12769 done
12770 IFS=$as_save_IFS
12771
12772   ;;
12773 esac
12774 fi
12775 LLVMGXX=$ac_cv_path_LLVMGXX
12776 if test -n "$LLVMGXX"; then
12777   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12778 echo "${ECHO_T}$LLVMGXX" >&6; }
12779 else
12780   { echo "$as_me:$LINENO: result: no" >&5
12781 echo "${ECHO_T}no" >&6; }
12782 fi
12783
12784
12785 else
12786   if test -z "$LLVMGCC"; then
12787     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
12788     LLVMGCCCOMMAND="$LLVMGCC"
12789   fi
12790   if test -z "$LLVMGXX"; then
12791     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
12792     LLVMGXXCOMMAND="$LLVMGXX"
12793   fi
12794
12795   LLVMGCC=$LLVMGCC
12796
12797   LLVMGXX=$LLVMGXX
12798
12799   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12800
12801   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12802
12803 fi
12804
12805
12806 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12807 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12808
12809 ICC=no
12810 IXX=no
12811 case $CC in
12812   icc*|icpc*)
12813     ICC=yes
12814     IXX=yes
12815     ;;
12816    *)
12817     ;;
12818 esac
12819
12820 if test "$GCC" != "yes" && test "$ICC" != "yes"
12821 then
12822   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12823 echo "$as_me: error: gcc|icc required but not found" >&2;}
12824    { (exit 1); exit 1; }; }
12825 fi
12826
12827 if test "$GXX" != "yes" && test "$IXX" != "yes"
12828 then
12829   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
12830 echo "$as_me: error: g++|icc required but not found" >&2;}
12831    { (exit 1); exit 1; }; }
12832 fi
12833
12834 if test "$GCC" = "yes"
12835 then
12836   cat >conftest.$ac_ext <<_ACEOF
12837 #if !defined(__GNUC__) || __GNUC__ < 3
12838 #error Unsupported GCC version
12839 #endif
12840
12841 _ACEOF
12842 rm -f conftest.$ac_objext
12843 if { (ac_try="$ac_compile"
12844 case "(($ac_try" in
12845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12846   *) ac_try_echo=$ac_try;;
12847 esac
12848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12849   (eval "$ac_compile") 2>conftest.er1
12850   ac_status=$?
12851   grep -v '^ *+' conftest.er1 >conftest.err
12852   rm -f conftest.er1
12853   cat conftest.err >&5
12854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855   (exit $ac_status); } &&
12856          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12857   { (case "(($ac_try" in
12858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12859   *) ac_try_echo=$ac_try;;
12860 esac
12861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12862   (eval "$ac_try") 2>&5
12863   ac_status=$?
12864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865   (exit $ac_status); }; } &&
12866          { ac_try='test -s conftest.$ac_objext'
12867   { (case "(($ac_try" in
12868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12869   *) ac_try_echo=$ac_try;;
12870 esac
12871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12872   (eval "$ac_try") 2>&5
12873   ac_status=$?
12874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875   (exit $ac_status); }; }; then
12876   :
12877 else
12878   echo "$as_me: failed program was:" >&5
12879 sed 's/^/| /' conftest.$ac_ext >&5
12880
12881         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12882 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12883    { (exit 1); exit 1; }; }
12884 fi
12885
12886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12887 fi
12888
12889 if test -z "$llvm_cv_gnu_make_command"
12890 then
12891   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12892 echo "$as_me: error: GNU Make required but not found" >&2;}
12893    { (exit 1); exit 1; }; }
12894 fi
12895
12896 { echo "$as_me:$LINENO: result: ok" >&5
12897 echo "${ECHO_T}ok" >&6; }
12898
12899 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12900 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12901 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12902
12903 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12904
12905 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12906 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12907
12908
12909
12910 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12911 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12912 if test "${ac_cv_lib_m_sin+set}" = set; then
12913   echo $ECHO_N "(cached) $ECHO_C" >&6
12914 else
12915   ac_check_lib_save_LIBS=$LIBS
12916 LIBS="-lm  $LIBS"
12917 cat >conftest.$ac_ext <<_ACEOF
12918 /* confdefs.h.  */
12919 _ACEOF
12920 cat confdefs.h >>conftest.$ac_ext
12921 cat >>conftest.$ac_ext <<_ACEOF
12922 /* end confdefs.h.  */
12923
12924 /* Override any GCC internal prototype to avoid an error.
12925    Use char because int might match the return type of a GCC
12926    builtin and then its argument prototype would still apply.  */
12927 #ifdef __cplusplus
12928 extern "C"
12929 #endif
12930 char sin ();
12931 int
12932 main ()
12933 {
12934 return sin ();
12935   ;
12936   return 0;
12937 }
12938 _ACEOF
12939 rm -f conftest.$ac_objext conftest$ac_exeext
12940 if { (ac_try="$ac_link"
12941 case "(($ac_try" in
12942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12943   *) ac_try_echo=$ac_try;;
12944 esac
12945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12946   (eval "$ac_link") 2>conftest.er1
12947   ac_status=$?
12948   grep -v '^ *+' conftest.er1 >conftest.err
12949   rm -f conftest.er1
12950   cat conftest.err >&5
12951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952   (exit $ac_status); } &&
12953          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12954   { (case "(($ac_try" in
12955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12956   *) ac_try_echo=$ac_try;;
12957 esac
12958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12959   (eval "$ac_try") 2>&5
12960   ac_status=$?
12961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962   (exit $ac_status); }; } &&
12963          { ac_try='test -s conftest$ac_exeext'
12964   { (case "(($ac_try" in
12965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12966   *) ac_try_echo=$ac_try;;
12967 esac
12968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12969   (eval "$ac_try") 2>&5
12970   ac_status=$?
12971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972   (exit $ac_status); }; }; then
12973   ac_cv_lib_m_sin=yes
12974 else
12975   echo "$as_me: failed program was:" >&5
12976 sed 's/^/| /' conftest.$ac_ext >&5
12977
12978         ac_cv_lib_m_sin=no
12979 fi
12980
12981 rm -f core conftest.err conftest.$ac_objext \
12982       conftest$ac_exeext conftest.$ac_ext
12983 LIBS=$ac_check_lib_save_LIBS
12984 fi
12985 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12986 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12987 if test $ac_cv_lib_m_sin = yes; then
12988   cat >>confdefs.h <<_ACEOF
12989 #define HAVE_LIBM 1
12990 _ACEOF
12991
12992   LIBS="-lm $LIBS"
12993
12994 fi
12995
12996 if test "$llvm_cv_os_type" = "MingW" ; then
12997
12998 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12999 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13000 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13001   echo $ECHO_N "(cached) $ECHO_C" >&6
13002 else
13003   ac_check_lib_save_LIBS=$LIBS
13004 LIBS="-limagehlp  $LIBS"
13005 cat >conftest.$ac_ext <<_ACEOF
13006 /* confdefs.h.  */
13007 _ACEOF
13008 cat confdefs.h >>conftest.$ac_ext
13009 cat >>conftest.$ac_ext <<_ACEOF
13010 /* end confdefs.h.  */
13011
13012
13013 int
13014 main ()
13015 {
13016 return main ();
13017   ;
13018   return 0;
13019 }
13020 _ACEOF
13021 rm -f conftest.$ac_objext conftest$ac_exeext
13022 if { (ac_try="$ac_link"
13023 case "(($ac_try" in
13024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13025   *) ac_try_echo=$ac_try;;
13026 esac
13027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13028   (eval "$ac_link") 2>conftest.er1
13029   ac_status=$?
13030   grep -v '^ *+' conftest.er1 >conftest.err
13031   rm -f conftest.er1
13032   cat conftest.err >&5
13033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034   (exit $ac_status); } &&
13035          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13036   { (case "(($ac_try" in
13037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13038   *) ac_try_echo=$ac_try;;
13039 esac
13040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13041   (eval "$ac_try") 2>&5
13042   ac_status=$?
13043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044   (exit $ac_status); }; } &&
13045          { ac_try='test -s conftest$ac_exeext'
13046   { (case "(($ac_try" in
13047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13048   *) ac_try_echo=$ac_try;;
13049 esac
13050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13051   (eval "$ac_try") 2>&5
13052   ac_status=$?
13053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054   (exit $ac_status); }; }; then
13055   ac_cv_lib_imagehlp_main=yes
13056 else
13057   echo "$as_me: failed program was:" >&5
13058 sed 's/^/| /' conftest.$ac_ext >&5
13059
13060         ac_cv_lib_imagehlp_main=no
13061 fi
13062
13063 rm -f core conftest.err conftest.$ac_objext \
13064       conftest$ac_exeext conftest.$ac_ext
13065 LIBS=$ac_check_lib_save_LIBS
13066 fi
13067 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13068 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13069 if test $ac_cv_lib_imagehlp_main = yes; then
13070   cat >>confdefs.h <<_ACEOF
13071 #define HAVE_LIBIMAGEHLP 1
13072 _ACEOF
13073
13074   LIBS="-limagehlp $LIBS"
13075
13076 fi
13077
13078
13079 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13080 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13081 if test "${ac_cv_lib_psapi_main+set}" = set; then
13082   echo $ECHO_N "(cached) $ECHO_C" >&6
13083 else
13084   ac_check_lib_save_LIBS=$LIBS
13085 LIBS="-lpsapi  $LIBS"
13086 cat >conftest.$ac_ext <<_ACEOF
13087 /* confdefs.h.  */
13088 _ACEOF
13089 cat confdefs.h >>conftest.$ac_ext
13090 cat >>conftest.$ac_ext <<_ACEOF
13091 /* end confdefs.h.  */
13092
13093
13094 int
13095 main ()
13096 {
13097 return main ();
13098   ;
13099   return 0;
13100 }
13101 _ACEOF
13102 rm -f conftest.$ac_objext conftest$ac_exeext
13103 if { (ac_try="$ac_link"
13104 case "(($ac_try" in
13105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13106   *) ac_try_echo=$ac_try;;
13107 esac
13108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13109   (eval "$ac_link") 2>conftest.er1
13110   ac_status=$?
13111   grep -v '^ *+' conftest.er1 >conftest.err
13112   rm -f conftest.er1
13113   cat conftest.err >&5
13114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115   (exit $ac_status); } &&
13116          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13117   { (case "(($ac_try" in
13118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13119   *) ac_try_echo=$ac_try;;
13120 esac
13121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13122   (eval "$ac_try") 2>&5
13123   ac_status=$?
13124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125   (exit $ac_status); }; } &&
13126          { ac_try='test -s conftest$ac_exeext'
13127   { (case "(($ac_try" in
13128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13129   *) ac_try_echo=$ac_try;;
13130 esac
13131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13132   (eval "$ac_try") 2>&5
13133   ac_status=$?
13134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135   (exit $ac_status); }; }; then
13136   ac_cv_lib_psapi_main=yes
13137 else
13138   echo "$as_me: failed program was:" >&5
13139 sed 's/^/| /' conftest.$ac_ext >&5
13140
13141         ac_cv_lib_psapi_main=no
13142 fi
13143
13144 rm -f core conftest.err conftest.$ac_objext \
13145       conftest$ac_exeext conftest.$ac_ext
13146 LIBS=$ac_check_lib_save_LIBS
13147 fi
13148 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13149 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13150 if test $ac_cv_lib_psapi_main = yes; then
13151   cat >>confdefs.h <<_ACEOF
13152 #define HAVE_LIBPSAPI 1
13153 _ACEOF
13154
13155   LIBS="-lpsapi $LIBS"
13156
13157 fi
13158
13159 fi
13160
13161 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13162 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13163 if test "${ac_cv_search_dlopen+set}" = set; then
13164   echo $ECHO_N "(cached) $ECHO_C" >&6
13165 else
13166   ac_func_search_save_LIBS=$LIBS
13167 cat >conftest.$ac_ext <<_ACEOF
13168 /* confdefs.h.  */
13169 _ACEOF
13170 cat confdefs.h >>conftest.$ac_ext
13171 cat >>conftest.$ac_ext <<_ACEOF
13172 /* end confdefs.h.  */
13173
13174 /* Override any GCC internal prototype to avoid an error.
13175    Use char because int might match the return type of a GCC
13176    builtin and then its argument prototype would still apply.  */
13177 #ifdef __cplusplus
13178 extern "C"
13179 #endif
13180 char dlopen ();
13181 int
13182 main ()
13183 {
13184 return dlopen ();
13185   ;
13186   return 0;
13187 }
13188 _ACEOF
13189 for ac_lib in '' dl; do
13190   if test -z "$ac_lib"; then
13191     ac_res="none required"
13192   else
13193     ac_res=-l$ac_lib
13194     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13195   fi
13196   rm -f conftest.$ac_objext conftest$ac_exeext
13197 if { (ac_try="$ac_link"
13198 case "(($ac_try" in
13199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13200   *) ac_try_echo=$ac_try;;
13201 esac
13202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13203   (eval "$ac_link") 2>conftest.er1
13204   ac_status=$?
13205   grep -v '^ *+' conftest.er1 >conftest.err
13206   rm -f conftest.er1
13207   cat conftest.err >&5
13208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209   (exit $ac_status); } &&
13210          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13211   { (case "(($ac_try" in
13212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13213   *) ac_try_echo=$ac_try;;
13214 esac
13215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13216   (eval "$ac_try") 2>&5
13217   ac_status=$?
13218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219   (exit $ac_status); }; } &&
13220          { ac_try='test -s conftest$ac_exeext'
13221   { (case "(($ac_try" in
13222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13223   *) ac_try_echo=$ac_try;;
13224 esac
13225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13226   (eval "$ac_try") 2>&5
13227   ac_status=$?
13228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229   (exit $ac_status); }; }; then
13230   ac_cv_search_dlopen=$ac_res
13231 else
13232   echo "$as_me: failed program was:" >&5
13233 sed 's/^/| /' conftest.$ac_ext >&5
13234
13235
13236 fi
13237
13238 rm -f core conftest.err conftest.$ac_objext \
13239       conftest$ac_exeext
13240   if test "${ac_cv_search_dlopen+set}" = set; then
13241   break
13242 fi
13243 done
13244 if test "${ac_cv_search_dlopen+set}" = set; then
13245   :
13246 else
13247   ac_cv_search_dlopen=no
13248 fi
13249 rm conftest.$ac_ext
13250 LIBS=$ac_func_search_save_LIBS
13251 fi
13252 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13253 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13254 ac_res=$ac_cv_search_dlopen
13255 if test "$ac_res" != no; then
13256   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13257
13258 cat >>confdefs.h <<\_ACEOF
13259 #define HAVE_DLOPEN 1
13260 _ACEOF
13261
13262 else
13263   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13264 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13265 fi
13266
13267
13268 if test "$llvm_cv_enable_libffi" = "yes" ; then
13269   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13270 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13271 if test "${ac_cv_search_ffi_call+set}" = set; then
13272   echo $ECHO_N "(cached) $ECHO_C" >&6
13273 else
13274   ac_func_search_save_LIBS=$LIBS
13275 cat >conftest.$ac_ext <<_ACEOF
13276 /* confdefs.h.  */
13277 _ACEOF
13278 cat confdefs.h >>conftest.$ac_ext
13279 cat >>conftest.$ac_ext <<_ACEOF
13280 /* end confdefs.h.  */
13281
13282 /* Override any GCC internal prototype to avoid an error.
13283    Use char because int might match the return type of a GCC
13284    builtin and then its argument prototype would still apply.  */
13285 #ifdef __cplusplus
13286 extern "C"
13287 #endif
13288 char ffi_call ();
13289 int
13290 main ()
13291 {
13292 return ffi_call ();
13293   ;
13294   return 0;
13295 }
13296 _ACEOF
13297 for ac_lib in '' ffi; do
13298   if test -z "$ac_lib"; then
13299     ac_res="none required"
13300   else
13301     ac_res=-l$ac_lib
13302     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13303   fi
13304   rm -f conftest.$ac_objext conftest$ac_exeext
13305 if { (ac_try="$ac_link"
13306 case "(($ac_try" in
13307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13308   *) ac_try_echo=$ac_try;;
13309 esac
13310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13311   (eval "$ac_link") 2>conftest.er1
13312   ac_status=$?
13313   grep -v '^ *+' conftest.er1 >conftest.err
13314   rm -f conftest.er1
13315   cat conftest.err >&5
13316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317   (exit $ac_status); } &&
13318          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13319   { (case "(($ac_try" in
13320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13321   *) ac_try_echo=$ac_try;;
13322 esac
13323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13324   (eval "$ac_try") 2>&5
13325   ac_status=$?
13326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327   (exit $ac_status); }; } &&
13328          { ac_try='test -s conftest$ac_exeext'
13329   { (case "(($ac_try" in
13330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13331   *) ac_try_echo=$ac_try;;
13332 esac
13333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13334   (eval "$ac_try") 2>&5
13335   ac_status=$?
13336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337   (exit $ac_status); }; }; then
13338   ac_cv_search_ffi_call=$ac_res
13339 else
13340   echo "$as_me: failed program was:" >&5
13341 sed 's/^/| /' conftest.$ac_ext >&5
13342
13343
13344 fi
13345
13346 rm -f core conftest.err conftest.$ac_objext \
13347       conftest$ac_exeext
13348   if test "${ac_cv_search_ffi_call+set}" = set; then
13349   break
13350 fi
13351 done
13352 if test "${ac_cv_search_ffi_call+set}" = set; then
13353   :
13354 else
13355   ac_cv_search_ffi_call=no
13356 fi
13357 rm conftest.$ac_ext
13358 LIBS=$ac_func_search_save_LIBS
13359 fi
13360 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13361 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13362 ac_res=$ac_cv_search_ffi_call
13363 if test "$ac_res" != no; then
13364   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13365
13366 cat >>confdefs.h <<\_ACEOF
13367 #define HAVE_FFI_CALL 1
13368 _ACEOF
13369
13370 else
13371   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13372 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13373    { (exit 1); exit 1; }; }
13374 fi
13375
13376 fi
13377
13378 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13379 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13380 if test "${ac_cv_search_mallinfo+set}" = set; then
13381   echo $ECHO_N "(cached) $ECHO_C" >&6
13382 else
13383   ac_func_search_save_LIBS=$LIBS
13384 cat >conftest.$ac_ext <<_ACEOF
13385 /* confdefs.h.  */
13386 _ACEOF
13387 cat confdefs.h >>conftest.$ac_ext
13388 cat >>conftest.$ac_ext <<_ACEOF
13389 /* end confdefs.h.  */
13390
13391 /* Override any GCC internal prototype to avoid an error.
13392    Use char because int might match the return type of a GCC
13393    builtin and then its argument prototype would still apply.  */
13394 #ifdef __cplusplus
13395 extern "C"
13396 #endif
13397 char mallinfo ();
13398 int
13399 main ()
13400 {
13401 return mallinfo ();
13402   ;
13403   return 0;
13404 }
13405 _ACEOF
13406 for ac_lib in '' malloc; do
13407   if test -z "$ac_lib"; then
13408     ac_res="none required"
13409   else
13410     ac_res=-l$ac_lib
13411     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13412   fi
13413   rm -f conftest.$ac_objext conftest$ac_exeext
13414 if { (ac_try="$ac_link"
13415 case "(($ac_try" in
13416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13417   *) ac_try_echo=$ac_try;;
13418 esac
13419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13420   (eval "$ac_link") 2>conftest.er1
13421   ac_status=$?
13422   grep -v '^ *+' conftest.er1 >conftest.err
13423   rm -f conftest.er1
13424   cat conftest.err >&5
13425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426   (exit $ac_status); } &&
13427          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13428   { (case "(($ac_try" in
13429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13430   *) ac_try_echo=$ac_try;;
13431 esac
13432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13433   (eval "$ac_try") 2>&5
13434   ac_status=$?
13435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436   (exit $ac_status); }; } &&
13437          { ac_try='test -s conftest$ac_exeext'
13438   { (case "(($ac_try" in
13439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440   *) ac_try_echo=$ac_try;;
13441 esac
13442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13443   (eval "$ac_try") 2>&5
13444   ac_status=$?
13445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446   (exit $ac_status); }; }; then
13447   ac_cv_search_mallinfo=$ac_res
13448 else
13449   echo "$as_me: failed program was:" >&5
13450 sed 's/^/| /' conftest.$ac_ext >&5
13451
13452
13453 fi
13454
13455 rm -f core conftest.err conftest.$ac_objext \
13456       conftest$ac_exeext
13457   if test "${ac_cv_search_mallinfo+set}" = set; then
13458   break
13459 fi
13460 done
13461 if test "${ac_cv_search_mallinfo+set}" = set; then
13462   :
13463 else
13464   ac_cv_search_mallinfo=no
13465 fi
13466 rm conftest.$ac_ext
13467 LIBS=$ac_func_search_save_LIBS
13468 fi
13469 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13470 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13471 ac_res=$ac_cv_search_mallinfo
13472 if test "$ac_res" != no; then
13473   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13474
13475 cat >>confdefs.h <<\_ACEOF
13476 #define HAVE_MALLINFO 1
13477 _ACEOF
13478
13479 fi
13480
13481
13482 if test "$ENABLE_THREADS" -eq 1 ; then
13483
13484 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13485 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13486 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13487   echo $ECHO_N "(cached) $ECHO_C" >&6
13488 else
13489   ac_check_lib_save_LIBS=$LIBS
13490 LIBS="-lpthread  $LIBS"
13491 cat >conftest.$ac_ext <<_ACEOF
13492 /* confdefs.h.  */
13493 _ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h.  */
13497
13498 /* Override any GCC internal prototype to avoid an error.
13499    Use char because int might match the return type of a GCC
13500    builtin and then its argument prototype would still apply.  */
13501 #ifdef __cplusplus
13502 extern "C"
13503 #endif
13504 char pthread_mutex_init ();
13505 int
13506 main ()
13507 {
13508 return pthread_mutex_init ();
13509   ;
13510   return 0;
13511 }
13512 _ACEOF
13513 rm -f conftest.$ac_objext conftest$ac_exeext
13514 if { (ac_try="$ac_link"
13515 case "(($ac_try" in
13516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13517   *) ac_try_echo=$ac_try;;
13518 esac
13519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13520   (eval "$ac_link") 2>conftest.er1
13521   ac_status=$?
13522   grep -v '^ *+' conftest.er1 >conftest.err
13523   rm -f conftest.er1
13524   cat conftest.err >&5
13525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526   (exit $ac_status); } &&
13527          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13528   { (case "(($ac_try" in
13529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13530   *) ac_try_echo=$ac_try;;
13531 esac
13532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13533   (eval "$ac_try") 2>&5
13534   ac_status=$?
13535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536   (exit $ac_status); }; } &&
13537          { ac_try='test -s conftest$ac_exeext'
13538   { (case "(($ac_try" in
13539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13540   *) ac_try_echo=$ac_try;;
13541 esac
13542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13543   (eval "$ac_try") 2>&5
13544   ac_status=$?
13545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546   (exit $ac_status); }; }; then
13547   ac_cv_lib_pthread_pthread_mutex_init=yes
13548 else
13549   echo "$as_me: failed program was:" >&5
13550 sed 's/^/| /' conftest.$ac_ext >&5
13551
13552         ac_cv_lib_pthread_pthread_mutex_init=no
13553 fi
13554
13555 rm -f core conftest.err conftest.$ac_objext \
13556       conftest$ac_exeext conftest.$ac_ext
13557 LIBS=$ac_check_lib_save_LIBS
13558 fi
13559 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13560 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13561 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13562   cat >>confdefs.h <<_ACEOF
13563 #define HAVE_LIBPTHREAD 1
13564 _ACEOF
13565
13566   LIBS="-lpthread $LIBS"
13567
13568 fi
13569
13570   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13571 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13572 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13573   echo $ECHO_N "(cached) $ECHO_C" >&6
13574 else
13575   ac_func_search_save_LIBS=$LIBS
13576 cat >conftest.$ac_ext <<_ACEOF
13577 /* confdefs.h.  */
13578 _ACEOF
13579 cat confdefs.h >>conftest.$ac_ext
13580 cat >>conftest.$ac_ext <<_ACEOF
13581 /* end confdefs.h.  */
13582
13583 /* Override any GCC internal prototype to avoid an error.
13584    Use char because int might match the return type of a GCC
13585    builtin and then its argument prototype would still apply.  */
13586 #ifdef __cplusplus
13587 extern "C"
13588 #endif
13589 char pthread_mutex_lock ();
13590 int
13591 main ()
13592 {
13593 return pthread_mutex_lock ();
13594   ;
13595   return 0;
13596 }
13597 _ACEOF
13598 for ac_lib in '' pthread; do
13599   if test -z "$ac_lib"; then
13600     ac_res="none required"
13601   else
13602     ac_res=-l$ac_lib
13603     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13604   fi
13605   rm -f conftest.$ac_objext conftest$ac_exeext
13606 if { (ac_try="$ac_link"
13607 case "(($ac_try" in
13608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13609   *) ac_try_echo=$ac_try;;
13610 esac
13611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13612   (eval "$ac_link") 2>conftest.er1
13613   ac_status=$?
13614   grep -v '^ *+' conftest.er1 >conftest.err
13615   rm -f conftest.er1
13616   cat conftest.err >&5
13617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618   (exit $ac_status); } &&
13619          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13620   { (case "(($ac_try" in
13621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13622   *) ac_try_echo=$ac_try;;
13623 esac
13624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13625   (eval "$ac_try") 2>&5
13626   ac_status=$?
13627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628   (exit $ac_status); }; } &&
13629          { ac_try='test -s conftest$ac_exeext'
13630   { (case "(($ac_try" in
13631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13632   *) ac_try_echo=$ac_try;;
13633 esac
13634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13635   (eval "$ac_try") 2>&5
13636   ac_status=$?
13637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638   (exit $ac_status); }; }; then
13639   ac_cv_search_pthread_mutex_lock=$ac_res
13640 else
13641   echo "$as_me: failed program was:" >&5
13642 sed 's/^/| /' conftest.$ac_ext >&5
13643
13644
13645 fi
13646
13647 rm -f core conftest.err conftest.$ac_objext \
13648       conftest$ac_exeext
13649   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13650   break
13651 fi
13652 done
13653 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13654   :
13655 else
13656   ac_cv_search_pthread_mutex_lock=no
13657 fi
13658 rm conftest.$ac_ext
13659 LIBS=$ac_func_search_save_LIBS
13660 fi
13661 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13662 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13663 ac_res=$ac_cv_search_pthread_mutex_lock
13664 if test "$ac_res" != no; then
13665   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13666
13667 cat >>confdefs.h <<\_ACEOF
13668 #define HAVE_PTHREAD_MUTEX_LOCK 1
13669 _ACEOF
13670
13671 fi
13672
13673   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13674 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13675 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13676   echo $ECHO_N "(cached) $ECHO_C" >&6
13677 else
13678   ac_func_search_save_LIBS=$LIBS
13679 cat >conftest.$ac_ext <<_ACEOF
13680 /* confdefs.h.  */
13681 _ACEOF
13682 cat confdefs.h >>conftest.$ac_ext
13683 cat >>conftest.$ac_ext <<_ACEOF
13684 /* end confdefs.h.  */
13685
13686 /* Override any GCC internal prototype to avoid an error.
13687    Use char because int might match the return type of a GCC
13688    builtin and then its argument prototype would still apply.  */
13689 #ifdef __cplusplus
13690 extern "C"
13691 #endif
13692 char pthread_rwlock_init ();
13693 int
13694 main ()
13695 {
13696 return pthread_rwlock_init ();
13697   ;
13698   return 0;
13699 }
13700 _ACEOF
13701 for ac_lib in '' pthread; do
13702   if test -z "$ac_lib"; then
13703     ac_res="none required"
13704   else
13705     ac_res=-l$ac_lib
13706     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13707   fi
13708   rm -f conftest.$ac_objext conftest$ac_exeext
13709 if { (ac_try="$ac_link"
13710 case "(($ac_try" in
13711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13712   *) ac_try_echo=$ac_try;;
13713 esac
13714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13715   (eval "$ac_link") 2>conftest.er1
13716   ac_status=$?
13717   grep -v '^ *+' conftest.er1 >conftest.err
13718   rm -f conftest.er1
13719   cat conftest.err >&5
13720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721   (exit $ac_status); } &&
13722          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13723   { (case "(($ac_try" in
13724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13725   *) ac_try_echo=$ac_try;;
13726 esac
13727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13728   (eval "$ac_try") 2>&5
13729   ac_status=$?
13730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731   (exit $ac_status); }; } &&
13732          { ac_try='test -s conftest$ac_exeext'
13733   { (case "(($ac_try" in
13734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13735   *) ac_try_echo=$ac_try;;
13736 esac
13737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13738   (eval "$ac_try") 2>&5
13739   ac_status=$?
13740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741   (exit $ac_status); }; }; then
13742   ac_cv_search_pthread_rwlock_init=$ac_res
13743 else
13744   echo "$as_me: failed program was:" >&5
13745 sed 's/^/| /' conftest.$ac_ext >&5
13746
13747
13748 fi
13749
13750 rm -f core conftest.err conftest.$ac_objext \
13751       conftest$ac_exeext
13752   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13753   break
13754 fi
13755 done
13756 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13757   :
13758 else
13759   ac_cv_search_pthread_rwlock_init=no
13760 fi
13761 rm conftest.$ac_ext
13762 LIBS=$ac_func_search_save_LIBS
13763 fi
13764 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13765 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13766 ac_res=$ac_cv_search_pthread_rwlock_init
13767 if test "$ac_res" != no; then
13768   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13769
13770 cat >>confdefs.h <<\_ACEOF
13771 #define HAVE_PTHREAD_RWLOCK_INIT 1
13772 _ACEOF
13773
13774 fi
13775
13776   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13777 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13778 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13779   echo $ECHO_N "(cached) $ECHO_C" >&6
13780 else
13781   ac_func_search_save_LIBS=$LIBS
13782 cat >conftest.$ac_ext <<_ACEOF
13783 /* confdefs.h.  */
13784 _ACEOF
13785 cat confdefs.h >>conftest.$ac_ext
13786 cat >>conftest.$ac_ext <<_ACEOF
13787 /* end confdefs.h.  */
13788
13789 /* Override any GCC internal prototype to avoid an error.
13790    Use char because int might match the return type of a GCC
13791    builtin and then its argument prototype would still apply.  */
13792 #ifdef __cplusplus
13793 extern "C"
13794 #endif
13795 char pthread_getspecific ();
13796 int
13797 main ()
13798 {
13799 return pthread_getspecific ();
13800   ;
13801   return 0;
13802 }
13803 _ACEOF
13804 for ac_lib in '' pthread; do
13805   if test -z "$ac_lib"; then
13806     ac_res="none required"
13807   else
13808     ac_res=-l$ac_lib
13809     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13810   fi
13811   rm -f conftest.$ac_objext conftest$ac_exeext
13812 if { (ac_try="$ac_link"
13813 case "(($ac_try" in
13814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13815   *) ac_try_echo=$ac_try;;
13816 esac
13817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13818   (eval "$ac_link") 2>conftest.er1
13819   ac_status=$?
13820   grep -v '^ *+' conftest.er1 >conftest.err
13821   rm -f conftest.er1
13822   cat conftest.err >&5
13823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824   (exit $ac_status); } &&
13825          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13826   { (case "(($ac_try" in
13827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13828   *) ac_try_echo=$ac_try;;
13829 esac
13830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13831   (eval "$ac_try") 2>&5
13832   ac_status=$?
13833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834   (exit $ac_status); }; } &&
13835          { ac_try='test -s conftest$ac_exeext'
13836   { (case "(($ac_try" in
13837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13838   *) ac_try_echo=$ac_try;;
13839 esac
13840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13841   (eval "$ac_try") 2>&5
13842   ac_status=$?
13843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844   (exit $ac_status); }; }; then
13845   ac_cv_search_pthread_getspecific=$ac_res
13846 else
13847   echo "$as_me: failed program was:" >&5
13848 sed 's/^/| /' conftest.$ac_ext >&5
13849
13850
13851 fi
13852
13853 rm -f core conftest.err conftest.$ac_objext \
13854       conftest$ac_exeext
13855   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13856   break
13857 fi
13858 done
13859 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13860   :
13861 else
13862   ac_cv_search_pthread_getspecific=no
13863 fi
13864 rm conftest.$ac_ext
13865 LIBS=$ac_func_search_save_LIBS
13866 fi
13867 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13868 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13869 ac_res=$ac_cv_search_pthread_getspecific
13870 if test "$ac_res" != no; then
13871   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13872
13873 cat >>confdefs.h <<\_ACEOF
13874 #define HAVE_PTHREAD_GETSPECIFIC 1
13875 _ACEOF
13876
13877 fi
13878
13879 fi
13880
13881
13882 # Check whether --with-udis86 was given.
13883 if test "${with_udis86+set}" = set; then
13884   withval=$with_udis86;
13885       USE_UDIS86=1
13886
13887       case "$withval" in
13888         /usr/lib|yes) ;;
13889         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13890       esac
13891
13892 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13893 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13894 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13895   echo $ECHO_N "(cached) $ECHO_C" >&6
13896 else
13897   ac_check_lib_save_LIBS=$LIBS
13898 LIBS="-ludis86  $LIBS"
13899 cat >conftest.$ac_ext <<_ACEOF
13900 /* confdefs.h.  */
13901 _ACEOF
13902 cat confdefs.h >>conftest.$ac_ext
13903 cat >>conftest.$ac_ext <<_ACEOF
13904 /* end confdefs.h.  */
13905
13906 /* Override any GCC internal prototype to avoid an error.
13907    Use char because int might match the return type of a GCC
13908    builtin and then its argument prototype would still apply.  */
13909 #ifdef __cplusplus
13910 extern "C"
13911 #endif
13912 char ud_init ();
13913 int
13914 main ()
13915 {
13916 return ud_init ();
13917   ;
13918   return 0;
13919 }
13920 _ACEOF
13921 rm -f conftest.$ac_objext conftest$ac_exeext
13922 if { (ac_try="$ac_link"
13923 case "(($ac_try" in
13924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13925   *) ac_try_echo=$ac_try;;
13926 esac
13927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13928   (eval "$ac_link") 2>conftest.er1
13929   ac_status=$?
13930   grep -v '^ *+' conftest.er1 >conftest.err
13931   rm -f conftest.er1
13932   cat conftest.err >&5
13933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934   (exit $ac_status); } &&
13935          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13936   { (case "(($ac_try" in
13937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13938   *) ac_try_echo=$ac_try;;
13939 esac
13940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13941   (eval "$ac_try") 2>&5
13942   ac_status=$?
13943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944   (exit $ac_status); }; } &&
13945          { ac_try='test -s conftest$ac_exeext'
13946   { (case "(($ac_try" in
13947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13948   *) ac_try_echo=$ac_try;;
13949 esac
13950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13951   (eval "$ac_try") 2>&5
13952   ac_status=$?
13953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954   (exit $ac_status); }; }; then
13955   ac_cv_lib_udis86_ud_init=yes
13956 else
13957   echo "$as_me: failed program was:" >&5
13958 sed 's/^/| /' conftest.$ac_ext >&5
13959
13960         ac_cv_lib_udis86_ud_init=no
13961 fi
13962
13963 rm -f core conftest.err conftest.$ac_objext \
13964       conftest$ac_exeext conftest.$ac_ext
13965 LIBS=$ac_check_lib_save_LIBS
13966 fi
13967 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13968 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13969 if test $ac_cv_lib_udis86_ud_init = yes; then
13970   cat >>confdefs.h <<_ACEOF
13971 #define HAVE_LIBUDIS86 1
13972 _ACEOF
13973
13974   LIBS="-ludis86 $LIBS"
13975
13976 else
13977
13978         echo "Error! You need to have libudis86 around."
13979         exit -1
13980
13981 fi
13982
13983
13984 else
13985   USE_UDIS86=0
13986
13987 fi
13988
13989
13990 cat >>confdefs.h <<_ACEOF
13991 #define USE_UDIS86 $USE_UDIS86
13992 _ACEOF
13993
13994
13995
13996 # Check whether --with-oprofile was given.
13997 if test "${with_oprofile+set}" = set; then
13998   withval=$with_oprofile;
13999       USE_OPROFILE=1
14000
14001       case "$withval" in
14002         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14003         no) llvm_cv_oppath=
14004             USE_OPROFILE=0
14005  ;;
14006         *) llvm_cv_oppath="${withval}/lib/oprofile"
14007            CPPFLAGS="-I${withval}/include";;
14008       esac
14009       if test -n "$llvm_cv_oppath" ; then
14010         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14011                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14012 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14013 if test "${ac_cv_search_bfd_init+set}" = set; then
14014   echo $ECHO_N "(cached) $ECHO_C" >&6
14015 else
14016   ac_func_search_save_LIBS=$LIBS
14017 cat >conftest.$ac_ext <<_ACEOF
14018 /* confdefs.h.  */
14019 _ACEOF
14020 cat confdefs.h >>conftest.$ac_ext
14021 cat >>conftest.$ac_ext <<_ACEOF
14022 /* end confdefs.h.  */
14023
14024 /* Override any GCC internal prototype to avoid an error.
14025    Use char because int might match the return type of a GCC
14026    builtin and then its argument prototype would still apply.  */
14027 #ifdef __cplusplus
14028 extern "C"
14029 #endif
14030 char bfd_init ();
14031 int
14032 main ()
14033 {
14034 return bfd_init ();
14035   ;
14036   return 0;
14037 }
14038 _ACEOF
14039 for ac_lib in '' bfd; do
14040   if test -z "$ac_lib"; then
14041     ac_res="none required"
14042   else
14043     ac_res=-l$ac_lib
14044     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14045   fi
14046   rm -f conftest.$ac_objext conftest$ac_exeext
14047 if { (ac_try="$ac_link"
14048 case "(($ac_try" in
14049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14050   *) ac_try_echo=$ac_try;;
14051 esac
14052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14053   (eval "$ac_link") 2>conftest.er1
14054   ac_status=$?
14055   grep -v '^ *+' conftest.er1 >conftest.err
14056   rm -f conftest.er1
14057   cat conftest.err >&5
14058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059   (exit $ac_status); } &&
14060          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14061   { (case "(($ac_try" in
14062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14063   *) ac_try_echo=$ac_try;;
14064 esac
14065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14066   (eval "$ac_try") 2>&5
14067   ac_status=$?
14068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069   (exit $ac_status); }; } &&
14070          { ac_try='test -s conftest$ac_exeext'
14071   { (case "(($ac_try" in
14072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073   *) ac_try_echo=$ac_try;;
14074 esac
14075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076   (eval "$ac_try") 2>&5
14077   ac_status=$?
14078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079   (exit $ac_status); }; }; then
14080   ac_cv_search_bfd_init=$ac_res
14081 else
14082   echo "$as_me: failed program was:" >&5
14083 sed 's/^/| /' conftest.$ac_ext >&5
14084
14085
14086 fi
14087
14088 rm -f core conftest.err conftest.$ac_objext \
14089       conftest$ac_exeext
14090   if test "${ac_cv_search_bfd_init+set}" = set; then
14091   break
14092 fi
14093 done
14094 if test "${ac_cv_search_bfd_init+set}" = set; then
14095   :
14096 else
14097   ac_cv_search_bfd_init=no
14098 fi
14099 rm conftest.$ac_ext
14100 LIBS=$ac_func_search_save_LIBS
14101 fi
14102 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14103 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14104 ac_res=$ac_cv_search_bfd_init
14105 if test "$ac_res" != no; then
14106   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14107
14108 fi
14109
14110         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14111 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14112 if test "${ac_cv_search_op_open_agent+set}" = set; then
14113   echo $ECHO_N "(cached) $ECHO_C" >&6
14114 else
14115   ac_func_search_save_LIBS=$LIBS
14116 cat >conftest.$ac_ext <<_ACEOF
14117 /* confdefs.h.  */
14118 _ACEOF
14119 cat confdefs.h >>conftest.$ac_ext
14120 cat >>conftest.$ac_ext <<_ACEOF
14121 /* end confdefs.h.  */
14122
14123 /* Override any GCC internal prototype to avoid an error.
14124    Use char because int might match the return type of a GCC
14125    builtin and then its argument prototype would still apply.  */
14126 #ifdef __cplusplus
14127 extern "C"
14128 #endif
14129 char op_open_agent ();
14130 int
14131 main ()
14132 {
14133 return op_open_agent ();
14134   ;
14135   return 0;
14136 }
14137 _ACEOF
14138 for ac_lib in '' opagent; do
14139   if test -z "$ac_lib"; then
14140     ac_res="none required"
14141   else
14142     ac_res=-l$ac_lib
14143     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14144   fi
14145   rm -f conftest.$ac_objext conftest$ac_exeext
14146 if { (ac_try="$ac_link"
14147 case "(($ac_try" in
14148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14149   *) ac_try_echo=$ac_try;;
14150 esac
14151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14152   (eval "$ac_link") 2>conftest.er1
14153   ac_status=$?
14154   grep -v '^ *+' conftest.er1 >conftest.err
14155   rm -f conftest.er1
14156   cat conftest.err >&5
14157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158   (exit $ac_status); } &&
14159          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14160   { (case "(($ac_try" in
14161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14162   *) ac_try_echo=$ac_try;;
14163 esac
14164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14165   (eval "$ac_try") 2>&5
14166   ac_status=$?
14167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168   (exit $ac_status); }; } &&
14169          { ac_try='test -s conftest$ac_exeext'
14170   { (case "(($ac_try" in
14171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14172   *) ac_try_echo=$ac_try;;
14173 esac
14174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14175   (eval "$ac_try") 2>&5
14176   ac_status=$?
14177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178   (exit $ac_status); }; }; then
14179   ac_cv_search_op_open_agent=$ac_res
14180 else
14181   echo "$as_me: failed program was:" >&5
14182 sed 's/^/| /' conftest.$ac_ext >&5
14183
14184
14185 fi
14186
14187 rm -f core conftest.err conftest.$ac_objext \
14188       conftest$ac_exeext
14189   if test "${ac_cv_search_op_open_agent+set}" = set; then
14190   break
14191 fi
14192 done
14193 if test "${ac_cv_search_op_open_agent+set}" = set; then
14194   :
14195 else
14196   ac_cv_search_op_open_agent=no
14197 fi
14198 rm conftest.$ac_ext
14199 LIBS=$ac_func_search_save_LIBS
14200 fi
14201 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14202 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14203 ac_res=$ac_cv_search_op_open_agent
14204 if test "$ac_res" != no; then
14205   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14206
14207 else
14208
14209           echo "Error! You need to have libopagent around."
14210           exit -1
14211
14212 fi
14213
14214         if test "${ac_cv_header_opagent_h+set}" = set; then
14215   { echo "$as_me:$LINENO: checking for opagent.h" >&5
14216 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14217 if test "${ac_cv_header_opagent_h+set}" = set; then
14218   echo $ECHO_N "(cached) $ECHO_C" >&6
14219 fi
14220 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14221 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14222 else
14223   # Is the header compilable?
14224 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14225 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14226 cat >conftest.$ac_ext <<_ACEOF
14227 /* confdefs.h.  */
14228 _ACEOF
14229 cat confdefs.h >>conftest.$ac_ext
14230 cat >>conftest.$ac_ext <<_ACEOF
14231 /* end confdefs.h.  */
14232 $ac_includes_default
14233 #include <opagent.h>
14234 _ACEOF
14235 rm -f conftest.$ac_objext
14236 if { (ac_try="$ac_compile"
14237 case "(($ac_try" in
14238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14239   *) ac_try_echo=$ac_try;;
14240 esac
14241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14242   (eval "$ac_compile") 2>conftest.er1
14243   ac_status=$?
14244   grep -v '^ *+' conftest.er1 >conftest.err
14245   rm -f conftest.er1
14246   cat conftest.err >&5
14247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248   (exit $ac_status); } &&
14249          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14250   { (case "(($ac_try" in
14251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14252   *) ac_try_echo=$ac_try;;
14253 esac
14254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14255   (eval "$ac_try") 2>&5
14256   ac_status=$?
14257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258   (exit $ac_status); }; } &&
14259          { ac_try='test -s conftest.$ac_objext'
14260   { (case "(($ac_try" in
14261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14262   *) ac_try_echo=$ac_try;;
14263 esac
14264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14265   (eval "$ac_try") 2>&5
14266   ac_status=$?
14267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268   (exit $ac_status); }; }; then
14269   ac_header_compiler=yes
14270 else
14271   echo "$as_me: failed program was:" >&5
14272 sed 's/^/| /' conftest.$ac_ext >&5
14273
14274         ac_header_compiler=no
14275 fi
14276
14277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14278 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14279 echo "${ECHO_T}$ac_header_compiler" >&6; }
14280
14281 # Is the header present?
14282 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14283 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14284 cat >conftest.$ac_ext <<_ACEOF
14285 /* confdefs.h.  */
14286 _ACEOF
14287 cat confdefs.h >>conftest.$ac_ext
14288 cat >>conftest.$ac_ext <<_ACEOF
14289 /* end confdefs.h.  */
14290 #include <opagent.h>
14291 _ACEOF
14292 if { (ac_try="$ac_cpp conftest.$ac_ext"
14293 case "(($ac_try" in
14294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14295   *) ac_try_echo=$ac_try;;
14296 esac
14297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14298   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14299   ac_status=$?
14300   grep -v '^ *+' conftest.er1 >conftest.err
14301   rm -f conftest.er1
14302   cat conftest.err >&5
14303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304   (exit $ac_status); } >/dev/null; then
14305   if test -s conftest.err; then
14306     ac_cpp_err=$ac_c_preproc_warn_flag
14307     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14308   else
14309     ac_cpp_err=
14310   fi
14311 else
14312   ac_cpp_err=yes
14313 fi
14314 if test -z "$ac_cpp_err"; then
14315   ac_header_preproc=yes
14316 else
14317   echo "$as_me: failed program was:" >&5
14318 sed 's/^/| /' conftest.$ac_ext >&5
14319
14320   ac_header_preproc=no
14321 fi
14322
14323 rm -f conftest.err conftest.$ac_ext
14324 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14325 echo "${ECHO_T}$ac_header_preproc" >&6; }
14326
14327 # So?  What about this header?
14328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14329   yes:no: )
14330     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14331 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14332     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14333 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14334     ac_header_preproc=yes
14335     ;;
14336   no:yes:* )
14337     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14338 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14339     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
14340 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
14341     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14342 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14343     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
14344 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14345     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14346 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14347     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14348 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14349     ( cat <<\_ASBOX
14350 ## ----------------------------------- ##
14351 ## Report this to llvmbugs@cs.uiuc.edu ##
14352 ## ----------------------------------- ##
14353 _ASBOX
14354      ) | sed "s/^/$as_me: WARNING:     /" >&2
14355     ;;
14356 esac
14357 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14358 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14359 if test "${ac_cv_header_opagent_h+set}" = set; then
14360   echo $ECHO_N "(cached) $ECHO_C" >&6
14361 else
14362   ac_cv_header_opagent_h=$ac_header_preproc
14363 fi
14364 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14365 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14366
14367 fi
14368 if test $ac_cv_header_opagent_h = yes; then
14369   :
14370 else
14371
14372           echo "Error! You need to have opagent.h around."
14373           exit -1
14374
14375 fi
14376
14377
14378       fi
14379
14380 else
14381
14382       USE_OPROFILE=0
14383
14384
14385 fi
14386
14387
14388 cat >>confdefs.h <<_ACEOF
14389 #define USE_OPROFILE $USE_OPROFILE
14390 _ACEOF
14391
14392
14393
14394
14395
14396
14397
14398
14399 ac_header_dirent=no
14400 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14401   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14402 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14403 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14405   echo $ECHO_N "(cached) $ECHO_C" >&6
14406 else
14407   cat >conftest.$ac_ext <<_ACEOF
14408 /* confdefs.h.  */
14409 _ACEOF
14410 cat confdefs.h >>conftest.$ac_ext
14411 cat >>conftest.$ac_ext <<_ACEOF
14412 /* end confdefs.h.  */
14413 #include <sys/types.h>
14414 #include <$ac_hdr>
14415
14416 int
14417 main ()
14418 {
14419 if ((DIR *) 0)
14420 return 0;
14421   ;
14422   return 0;
14423 }
14424 _ACEOF
14425 rm -f conftest.$ac_objext
14426 if { (ac_try="$ac_compile"
14427 case "(($ac_try" in
14428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14429   *) ac_try_echo=$ac_try;;
14430 esac
14431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14432   (eval "$ac_compile") 2>conftest.er1
14433   ac_status=$?
14434   grep -v '^ *+' conftest.er1 >conftest.err
14435   rm -f conftest.er1
14436   cat conftest.err >&5
14437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438   (exit $ac_status); } &&
14439          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14440   { (case "(($ac_try" in
14441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14442   *) ac_try_echo=$ac_try;;
14443 esac
14444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14445   (eval "$ac_try") 2>&5
14446   ac_status=$?
14447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448   (exit $ac_status); }; } &&
14449          { ac_try='test -s conftest.$ac_objext'
14450   { (case "(($ac_try" in
14451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14452   *) ac_try_echo=$ac_try;;
14453 esac
14454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14455   (eval "$ac_try") 2>&5
14456   ac_status=$?
14457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458   (exit $ac_status); }; }; then
14459   eval "$as_ac_Header=yes"
14460 else
14461   echo "$as_me: failed program was:" >&5
14462 sed 's/^/| /' conftest.$ac_ext >&5
14463
14464         eval "$as_ac_Header=no"
14465 fi
14466
14467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14468 fi
14469 ac_res=`eval echo '${'$as_ac_Header'}'`
14470                { echo "$as_me:$LINENO: result: $ac_res" >&5
14471 echo "${ECHO_T}$ac_res" >&6; }
14472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14473   cat >>confdefs.h <<_ACEOF
14474 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14475 _ACEOF
14476
14477 ac_header_dirent=$ac_hdr; break
14478 fi
14479
14480 done
14481 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14482 if test $ac_header_dirent = dirent.h; then
14483   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14484 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14485 if test "${ac_cv_search_opendir+set}" = set; then
14486   echo $ECHO_N "(cached) $ECHO_C" >&6
14487 else
14488   ac_func_search_save_LIBS=$LIBS
14489 cat >conftest.$ac_ext <<_ACEOF
14490 /* confdefs.h.  */
14491 _ACEOF
14492 cat confdefs.h >>conftest.$ac_ext
14493 cat >>conftest.$ac_ext <<_ACEOF
14494 /* end confdefs.h.  */
14495
14496 /* Override any GCC internal prototype to avoid an error.
14497    Use char because int might match the return type of a GCC
14498    builtin and then its argument prototype would still apply.  */
14499 #ifdef __cplusplus
14500 extern "C"
14501 #endif
14502 char opendir ();
14503 int
14504 main ()
14505 {
14506 return opendir ();
14507   ;
14508   return 0;
14509 }
14510 _ACEOF
14511 for ac_lib in '' dir; do
14512   if test -z "$ac_lib"; then
14513     ac_res="none required"
14514   else
14515     ac_res=-l$ac_lib
14516     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14517   fi
14518   rm -f conftest.$ac_objext conftest$ac_exeext
14519 if { (ac_try="$ac_link"
14520 case "(($ac_try" in
14521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14522   *) ac_try_echo=$ac_try;;
14523 esac
14524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14525   (eval "$ac_link") 2>conftest.er1
14526   ac_status=$?
14527   grep -v '^ *+' conftest.er1 >conftest.err
14528   rm -f conftest.er1
14529   cat conftest.err >&5
14530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531   (exit $ac_status); } &&
14532          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14533   { (case "(($ac_try" in
14534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14535   *) ac_try_echo=$ac_try;;
14536 esac
14537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14538   (eval "$ac_try") 2>&5
14539   ac_status=$?
14540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541   (exit $ac_status); }; } &&
14542          { ac_try='test -s conftest$ac_exeext'
14543   { (case "(($ac_try" in
14544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14545   *) ac_try_echo=$ac_try;;
14546 esac
14547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14548   (eval "$ac_try") 2>&5
14549   ac_status=$?
14550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551   (exit $ac_status); }; }; then
14552   ac_cv_search_opendir=$ac_res
14553 else
14554   echo "$as_me: failed program was:" >&5
14555 sed 's/^/| /' conftest.$ac_ext >&5
14556
14557
14558 fi
14559
14560 rm -f core conftest.err conftest.$ac_objext \
14561       conftest$ac_exeext
14562   if test "${ac_cv_search_opendir+set}" = set; then
14563   break
14564 fi
14565 done
14566 if test "${ac_cv_search_opendir+set}" = set; then
14567   :
14568 else
14569   ac_cv_search_opendir=no
14570 fi
14571 rm conftest.$ac_ext
14572 LIBS=$ac_func_search_save_LIBS
14573 fi
14574 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14575 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14576 ac_res=$ac_cv_search_opendir
14577 if test "$ac_res" != no; then
14578   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14579
14580 fi
14581
14582 else
14583   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14584 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14585 if test "${ac_cv_search_opendir+set}" = set; then
14586   echo $ECHO_N "(cached) $ECHO_C" >&6
14587 else
14588   ac_func_search_save_LIBS=$LIBS
14589 cat >conftest.$ac_ext <<_ACEOF
14590 /* confdefs.h.  */
14591 _ACEOF
14592 cat confdefs.h >>conftest.$ac_ext
14593 cat >>conftest.$ac_ext <<_ACEOF
14594 /* end confdefs.h.  */
14595
14596 /* Override any GCC internal prototype to avoid an error.
14597    Use char because int might match the return type of a GCC
14598    builtin and then its argument prototype would still apply.  */
14599 #ifdef __cplusplus
14600 extern "C"
14601 #endif
14602 char opendir ();
14603 int
14604 main ()
14605 {
14606 return opendir ();
14607   ;
14608   return 0;
14609 }
14610 _ACEOF
14611 for ac_lib in '' x; do
14612   if test -z "$ac_lib"; then
14613     ac_res="none required"
14614   else
14615     ac_res=-l$ac_lib
14616     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14617   fi
14618   rm -f conftest.$ac_objext conftest$ac_exeext
14619 if { (ac_try="$ac_link"
14620 case "(($ac_try" in
14621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14622   *) ac_try_echo=$ac_try;;
14623 esac
14624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14625   (eval "$ac_link") 2>conftest.er1
14626   ac_status=$?
14627   grep -v '^ *+' conftest.er1 >conftest.err
14628   rm -f conftest.er1
14629   cat conftest.err >&5
14630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631   (exit $ac_status); } &&
14632          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14633   { (case "(($ac_try" in
14634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14635   *) ac_try_echo=$ac_try;;
14636 esac
14637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14638   (eval "$ac_try") 2>&5
14639   ac_status=$?
14640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641   (exit $ac_status); }; } &&
14642          { ac_try='test -s conftest$ac_exeext'
14643   { (case "(($ac_try" in
14644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14645   *) ac_try_echo=$ac_try;;
14646 esac
14647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14648   (eval "$ac_try") 2>&5
14649   ac_status=$?
14650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651   (exit $ac_status); }; }; then
14652   ac_cv_search_opendir=$ac_res
14653 else
14654   echo "$as_me: failed program was:" >&5
14655 sed 's/^/| /' conftest.$ac_ext >&5
14656
14657
14658 fi
14659
14660 rm -f core conftest.err conftest.$ac_objext \
14661       conftest$ac_exeext
14662   if test "${ac_cv_search_opendir+set}" = set; then
14663   break
14664 fi
14665 done
14666 if test "${ac_cv_search_opendir+set}" = set; then
14667   :
14668 else
14669   ac_cv_search_opendir=no
14670 fi
14671 rm conftest.$ac_ext
14672 LIBS=$ac_func_search_save_LIBS
14673 fi
14674 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14675 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14676 ac_res=$ac_cv_search_opendir
14677 if test "$ac_res" != no; then
14678   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14679
14680 fi
14681
14682 fi
14683
14684 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14685 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14686 if test "${ac_cv_header_mmap_anon+set}" = set; then
14687   echo $ECHO_N "(cached) $ECHO_C" >&6
14688 else
14689    ac_ext=c
14690 ac_cpp='$CPP $CPPFLAGS'
14691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14694
14695   cat >conftest.$ac_ext <<_ACEOF
14696 /* confdefs.h.  */
14697 _ACEOF
14698 cat confdefs.h >>conftest.$ac_ext
14699 cat >>conftest.$ac_ext <<_ACEOF
14700 /* end confdefs.h.  */
14701 #include <sys/mman.h>
14702 #include <unistd.h>
14703 #include <fcntl.h>
14704 int
14705 main ()
14706 {
14707 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14708   ;
14709   return 0;
14710 }
14711 _ACEOF
14712 rm -f conftest.$ac_objext
14713 if { (ac_try="$ac_compile"
14714 case "(($ac_try" in
14715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14716   *) ac_try_echo=$ac_try;;
14717 esac
14718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14719   (eval "$ac_compile") 2>conftest.er1
14720   ac_status=$?
14721   grep -v '^ *+' conftest.er1 >conftest.err
14722   rm -f conftest.er1
14723   cat conftest.err >&5
14724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725   (exit $ac_status); } &&
14726          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14727   { (case "(($ac_try" in
14728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14729   *) ac_try_echo=$ac_try;;
14730 esac
14731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14732   (eval "$ac_try") 2>&5
14733   ac_status=$?
14734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735   (exit $ac_status); }; } &&
14736          { ac_try='test -s conftest.$ac_objext'
14737   { (case "(($ac_try" in
14738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14739   *) ac_try_echo=$ac_try;;
14740 esac
14741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14742   (eval "$ac_try") 2>&5
14743   ac_status=$?
14744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745   (exit $ac_status); }; }; then
14746   ac_cv_header_mmap_anon=yes
14747 else
14748   echo "$as_me: failed program was:" >&5
14749 sed 's/^/| /' conftest.$ac_ext >&5
14750
14751         ac_cv_header_mmap_anon=no
14752 fi
14753
14754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14755   ac_ext=c
14756 ac_cpp='$CPP $CPPFLAGS'
14757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14760
14761
14762 fi
14763 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14764 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14765 if test "$ac_cv_header_mmap_anon" = yes; then
14766
14767 cat >>confdefs.h <<\_ACEOF
14768 #define HAVE_MMAP_ANONYMOUS 1
14769 _ACEOF
14770
14771 fi
14772
14773 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14774 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14775 if test "${ac_cv_header_stat_broken+set}" = set; then
14776   echo $ECHO_N "(cached) $ECHO_C" >&6
14777 else
14778   cat >conftest.$ac_ext <<_ACEOF
14779 /* confdefs.h.  */
14780 _ACEOF
14781 cat confdefs.h >>conftest.$ac_ext
14782 cat >>conftest.$ac_ext <<_ACEOF
14783 /* end confdefs.h.  */
14784 #include <sys/types.h>
14785 #include <sys/stat.h>
14786
14787 #if defined S_ISBLK && defined S_IFDIR
14788 # if S_ISBLK (S_IFDIR)
14789 You lose.
14790 # endif
14791 #endif
14792
14793 #if defined S_ISBLK && defined S_IFCHR
14794 # if S_ISBLK (S_IFCHR)
14795 You lose.
14796 # endif
14797 #endif
14798
14799 #if defined S_ISLNK && defined S_IFREG
14800 # if S_ISLNK (S_IFREG)
14801 You lose.
14802 # endif
14803 #endif
14804
14805 #if defined S_ISSOCK && defined S_IFREG
14806 # if S_ISSOCK (S_IFREG)
14807 You lose.
14808 # endif
14809 #endif
14810
14811 _ACEOF
14812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14813   $EGREP "You lose" >/dev/null 2>&1; then
14814   ac_cv_header_stat_broken=yes
14815 else
14816   ac_cv_header_stat_broken=no
14817 fi
14818 rm -f conftest*
14819
14820 fi
14821 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14822 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14823 if test $ac_cv_header_stat_broken = yes; then
14824
14825 cat >>confdefs.h <<\_ACEOF
14826 #define STAT_MACROS_BROKEN 1
14827 _ACEOF
14828
14829 fi
14830
14831 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14832 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14833 if test "${ac_cv_header_stdc+set}" = set; then
14834   echo $ECHO_N "(cached) $ECHO_C" >&6
14835 else
14836   cat >conftest.$ac_ext <<_ACEOF
14837 /* confdefs.h.  */
14838 _ACEOF
14839 cat confdefs.h >>conftest.$ac_ext
14840 cat >>conftest.$ac_ext <<_ACEOF
14841 /* end confdefs.h.  */
14842 #include <stdlib.h>
14843 #include <stdarg.h>
14844 #include <string.h>
14845 #include <float.h>
14846
14847 int
14848 main ()
14849 {
14850
14851   ;
14852   return 0;
14853 }
14854 _ACEOF
14855 rm -f conftest.$ac_objext
14856 if { (ac_try="$ac_compile"
14857 case "(($ac_try" in
14858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14859   *) ac_try_echo=$ac_try;;
14860 esac
14861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14862   (eval "$ac_compile") 2>conftest.er1
14863   ac_status=$?
14864   grep -v '^ *+' conftest.er1 >conftest.err
14865   rm -f conftest.er1
14866   cat conftest.err >&5
14867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868   (exit $ac_status); } &&
14869          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14870   { (case "(($ac_try" in
14871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14872   *) ac_try_echo=$ac_try;;
14873 esac
14874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14875   (eval "$ac_try") 2>&5
14876   ac_status=$?
14877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878   (exit $ac_status); }; } &&
14879          { ac_try='test -s conftest.$ac_objext'
14880   { (case "(($ac_try" in
14881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882   *) ac_try_echo=$ac_try;;
14883 esac
14884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885   (eval "$ac_try") 2>&5
14886   ac_status=$?
14887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888   (exit $ac_status); }; }; then
14889   ac_cv_header_stdc=yes
14890 else
14891   echo "$as_me: failed program was:" >&5
14892 sed 's/^/| /' conftest.$ac_ext >&5
14893
14894         ac_cv_header_stdc=no
14895 fi
14896
14897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14898
14899 if test $ac_cv_header_stdc = yes; then
14900   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14901   cat >conftest.$ac_ext <<_ACEOF
14902 /* confdefs.h.  */
14903 _ACEOF
14904 cat confdefs.h >>conftest.$ac_ext
14905 cat >>conftest.$ac_ext <<_ACEOF
14906 /* end confdefs.h.  */
14907 #include <string.h>
14908
14909 _ACEOF
14910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14911   $EGREP "memchr" >/dev/null 2>&1; then
14912   :
14913 else
14914   ac_cv_header_stdc=no
14915 fi
14916 rm -f conftest*
14917
14918 fi
14919
14920 if test $ac_cv_header_stdc = yes; then
14921   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14922   cat >conftest.$ac_ext <<_ACEOF
14923 /* confdefs.h.  */
14924 _ACEOF
14925 cat confdefs.h >>conftest.$ac_ext
14926 cat >>conftest.$ac_ext <<_ACEOF
14927 /* end confdefs.h.  */
14928 #include <stdlib.h>
14929
14930 _ACEOF
14931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14932   $EGREP "free" >/dev/null 2>&1; then
14933   :
14934 else
14935   ac_cv_header_stdc=no
14936 fi
14937 rm -f conftest*
14938
14939 fi
14940
14941 if test $ac_cv_header_stdc = yes; then
14942   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14943   if test "$cross_compiling" = yes; then
14944   :
14945 else
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 <ctype.h>
14953 #include <stdlib.h>
14954 #if ((' ' & 0x0FF) == 0x020)
14955 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14956 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14957 #else
14958 # define ISLOWER(c) \
14959                    (('a' <= (c) && (c) <= 'i') \
14960                      || ('j' <= (c) && (c) <= 'r') \
14961                      || ('s' <= (c) && (c) <= 'z'))
14962 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14963 #endif
14964
14965 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14966 int
14967 main ()
14968 {
14969   int i;
14970   for (i = 0; i < 256; i++)
14971     if (XOR (islower (i), ISLOWER (i))
14972         || toupper (i) != TOUPPER (i))
14973       return 2;
14974   return 0;
14975 }
14976 _ACEOF
14977 rm -f conftest$ac_exeext
14978 if { (ac_try="$ac_link"
14979 case "(($ac_try" in
14980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14981   *) ac_try_echo=$ac_try;;
14982 esac
14983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14984   (eval "$ac_link") 2>&5
14985   ac_status=$?
14986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14988   { (case "(($ac_try" in
14989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14990   *) ac_try_echo=$ac_try;;
14991 esac
14992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14993   (eval "$ac_try") 2>&5
14994   ac_status=$?
14995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996   (exit $ac_status); }; }; then
14997   :
14998 else
14999   echo "$as_me: program exited with status $ac_status" >&5
15000 echo "$as_me: failed program was:" >&5
15001 sed 's/^/| /' conftest.$ac_ext >&5
15002
15003 ( exit $ac_status )
15004 ac_cv_header_stdc=no
15005 fi
15006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15007 fi
15008
15009
15010 fi
15011 fi
15012 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15013 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15014 if test $ac_cv_header_stdc = yes; then
15015
15016 cat >>confdefs.h <<\_ACEOF
15017 #define STDC_HEADERS 1
15018 _ACEOF
15019
15020 fi
15021
15022 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15023 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15024 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15025   echo $ECHO_N "(cached) $ECHO_C" >&6
15026 else
15027   cat >conftest.$ac_ext <<_ACEOF
15028 /* confdefs.h.  */
15029 _ACEOF
15030 cat confdefs.h >>conftest.$ac_ext
15031 cat >>conftest.$ac_ext <<_ACEOF
15032 /* end confdefs.h.  */
15033 #include <sys/types.h>
15034 #include <sys/wait.h>
15035 #ifndef WEXITSTATUS
15036 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15037 #endif
15038 #ifndef WIFEXITED
15039 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15040 #endif
15041
15042 int
15043 main ()
15044 {
15045   int s;
15046   wait (&s);
15047   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15048   ;
15049   return 0;
15050 }
15051 _ACEOF
15052 rm -f conftest.$ac_objext
15053 if { (ac_try="$ac_compile"
15054 case "(($ac_try" in
15055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15056   *) ac_try_echo=$ac_try;;
15057 esac
15058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15059   (eval "$ac_compile") 2>conftest.er1
15060   ac_status=$?
15061   grep -v '^ *+' conftest.er1 >conftest.err
15062   rm -f conftest.er1
15063   cat conftest.err >&5
15064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065   (exit $ac_status); } &&
15066          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15067   { (case "(($ac_try" in
15068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15069   *) ac_try_echo=$ac_try;;
15070 esac
15071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15072   (eval "$ac_try") 2>&5
15073   ac_status=$?
15074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075   (exit $ac_status); }; } &&
15076          { ac_try='test -s conftest.$ac_objext'
15077   { (case "(($ac_try" in
15078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15079   *) ac_try_echo=$ac_try;;
15080 esac
15081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15082   (eval "$ac_try") 2>&5
15083   ac_status=$?
15084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085   (exit $ac_status); }; }; then
15086   ac_cv_header_sys_wait_h=yes
15087 else
15088   echo "$as_me: failed program was:" >&5
15089 sed 's/^/| /' conftest.$ac_ext >&5
15090
15091         ac_cv_header_sys_wait_h=no
15092 fi
15093
15094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15095 fi
15096 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15097 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15098 if test $ac_cv_header_sys_wait_h = yes; then
15099
15100 cat >>confdefs.h <<\_ACEOF
15101 #define HAVE_SYS_WAIT_H 1
15102 _ACEOF
15103
15104 fi
15105
15106 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15107 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15108 if test "${ac_cv_header_time+set}" = set; then
15109   echo $ECHO_N "(cached) $ECHO_C" >&6
15110 else
15111   cat >conftest.$ac_ext <<_ACEOF
15112 /* confdefs.h.  */
15113 _ACEOF
15114 cat confdefs.h >>conftest.$ac_ext
15115 cat >>conftest.$ac_ext <<_ACEOF
15116 /* end confdefs.h.  */
15117 #include <sys/types.h>
15118 #include <sys/time.h>
15119 #include <time.h>
15120
15121 int
15122 main ()
15123 {
15124 if ((struct tm *) 0)
15125 return 0;
15126   ;
15127   return 0;
15128 }
15129 _ACEOF
15130 rm -f conftest.$ac_objext
15131 if { (ac_try="$ac_compile"
15132 case "(($ac_try" in
15133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15134   *) ac_try_echo=$ac_try;;
15135 esac
15136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15137   (eval "$ac_compile") 2>conftest.er1
15138   ac_status=$?
15139   grep -v '^ *+' conftest.er1 >conftest.err
15140   rm -f conftest.er1
15141   cat conftest.err >&5
15142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143   (exit $ac_status); } &&
15144          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15145   { (case "(($ac_try" in
15146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15147   *) ac_try_echo=$ac_try;;
15148 esac
15149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15150   (eval "$ac_try") 2>&5
15151   ac_status=$?
15152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153   (exit $ac_status); }; } &&
15154          { ac_try='test -s conftest.$ac_objext'
15155   { (case "(($ac_try" in
15156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15157   *) ac_try_echo=$ac_try;;
15158 esac
15159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15160   (eval "$ac_try") 2>&5
15161   ac_status=$?
15162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163   (exit $ac_status); }; }; then
15164   ac_cv_header_time=yes
15165 else
15166   echo "$as_me: failed program was:" >&5
15167 sed 's/^/| /' conftest.$ac_ext >&5
15168
15169         ac_cv_header_time=no
15170 fi
15171
15172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15173 fi
15174 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15175 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15176 if test $ac_cv_header_time = yes; then
15177
15178 cat >>confdefs.h <<\_ACEOF
15179 #define TIME_WITH_SYS_TIME 1
15180 _ACEOF
15181
15182 fi
15183
15184
15185
15186
15187
15188
15189
15190
15191 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15192 do
15193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15195   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15198   echo $ECHO_N "(cached) $ECHO_C" >&6
15199 fi
15200 ac_res=`eval echo '${'$as_ac_Header'}'`
15201                { echo "$as_me:$LINENO: result: $ac_res" >&5
15202 echo "${ECHO_T}$ac_res" >&6; }
15203 else
15204   # Is the header compilable?
15205 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15207 cat >conftest.$ac_ext <<_ACEOF
15208 /* confdefs.h.  */
15209 _ACEOF
15210 cat confdefs.h >>conftest.$ac_ext
15211 cat >>conftest.$ac_ext <<_ACEOF
15212 /* end confdefs.h.  */
15213 $ac_includes_default
15214 #include <$ac_header>
15215 _ACEOF
15216 rm -f conftest.$ac_objext
15217 if { (ac_try="$ac_compile"
15218 case "(($ac_try" in
15219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15220   *) ac_try_echo=$ac_try;;
15221 esac
15222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15223   (eval "$ac_compile") 2>conftest.er1
15224   ac_status=$?
15225   grep -v '^ *+' conftest.er1 >conftest.err
15226   rm -f conftest.er1
15227   cat conftest.err >&5
15228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229   (exit $ac_status); } &&
15230          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15231   { (case "(($ac_try" in
15232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15233   *) ac_try_echo=$ac_try;;
15234 esac
15235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15236   (eval "$ac_try") 2>&5
15237   ac_status=$?
15238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239   (exit $ac_status); }; } &&
15240          { ac_try='test -s conftest.$ac_objext'
15241   { (case "(($ac_try" in
15242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15243   *) ac_try_echo=$ac_try;;
15244 esac
15245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15246   (eval "$ac_try") 2>&5
15247   ac_status=$?
15248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249   (exit $ac_status); }; }; then
15250   ac_header_compiler=yes
15251 else
15252   echo "$as_me: failed program was:" >&5
15253 sed 's/^/| /' conftest.$ac_ext >&5
15254
15255         ac_header_compiler=no
15256 fi
15257
15258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15259 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15260 echo "${ECHO_T}$ac_header_compiler" >&6; }
15261
15262 # Is the header present?
15263 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15265 cat >conftest.$ac_ext <<_ACEOF
15266 /* confdefs.h.  */
15267 _ACEOF
15268 cat confdefs.h >>conftest.$ac_ext
15269 cat >>conftest.$ac_ext <<_ACEOF
15270 /* end confdefs.h.  */
15271 #include <$ac_header>
15272 _ACEOF
15273 if { (ac_try="$ac_cpp conftest.$ac_ext"
15274 case "(($ac_try" in
15275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276   *) ac_try_echo=$ac_try;;
15277 esac
15278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15279   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15280   ac_status=$?
15281   grep -v '^ *+' conftest.er1 >conftest.err
15282   rm -f conftest.er1
15283   cat conftest.err >&5
15284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285   (exit $ac_status); } >/dev/null; then
15286   if test -s conftest.err; then
15287     ac_cpp_err=$ac_c_preproc_warn_flag
15288     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15289   else
15290     ac_cpp_err=
15291   fi
15292 else
15293   ac_cpp_err=yes
15294 fi
15295 if test -z "$ac_cpp_err"; then
15296   ac_header_preproc=yes
15297 else
15298   echo "$as_me: failed program was:" >&5
15299 sed 's/^/| /' conftest.$ac_ext >&5
15300
15301   ac_header_preproc=no
15302 fi
15303
15304 rm -f conftest.err conftest.$ac_ext
15305 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15306 echo "${ECHO_T}$ac_header_preproc" >&6; }
15307
15308 # So?  What about this header?
15309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15310   yes:no: )
15311     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15312 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15313     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15314 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15315     ac_header_preproc=yes
15316     ;;
15317   no:yes:* )
15318     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15319 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15320     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15321 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15322     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15323 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15324     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15325 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15326     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15328     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15329 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15330     ( cat <<\_ASBOX
15331 ## ----------------------------------- ##
15332 ## Report this to llvmbugs@cs.uiuc.edu ##
15333 ## ----------------------------------- ##
15334 _ASBOX
15335      ) | sed "s/^/$as_me: WARNING:     /" >&2
15336     ;;
15337 esac
15338 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15341   echo $ECHO_N "(cached) $ECHO_C" >&6
15342 else
15343   eval "$as_ac_Header=\$ac_header_preproc"
15344 fi
15345 ac_res=`eval echo '${'$as_ac_Header'}'`
15346                { echo "$as_me:$LINENO: result: $ac_res" >&5
15347 echo "${ECHO_T}$ac_res" >&6; }
15348
15349 fi
15350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15351   cat >>confdefs.h <<_ACEOF
15352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15353 _ACEOF
15354
15355 fi
15356
15357 done
15358
15359
15360
15361
15362
15363
15364
15365 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15366 do
15367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15369   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15372   echo $ECHO_N "(cached) $ECHO_C" >&6
15373 fi
15374 ac_res=`eval echo '${'$as_ac_Header'}'`
15375                { echo "$as_me:$LINENO: result: $ac_res" >&5
15376 echo "${ECHO_T}$ac_res" >&6; }
15377 else
15378   # Is the header compilable?
15379 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15381 cat >conftest.$ac_ext <<_ACEOF
15382 /* confdefs.h.  */
15383 _ACEOF
15384 cat confdefs.h >>conftest.$ac_ext
15385 cat >>conftest.$ac_ext <<_ACEOF
15386 /* end confdefs.h.  */
15387 $ac_includes_default
15388 #include <$ac_header>
15389 _ACEOF
15390 rm -f conftest.$ac_objext
15391 if { (ac_try="$ac_compile"
15392 case "(($ac_try" in
15393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15394   *) ac_try_echo=$ac_try;;
15395 esac
15396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15397   (eval "$ac_compile") 2>conftest.er1
15398   ac_status=$?
15399   grep -v '^ *+' conftest.er1 >conftest.err
15400   rm -f conftest.er1
15401   cat conftest.err >&5
15402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403   (exit $ac_status); } &&
15404          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15405   { (case "(($ac_try" in
15406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15407   *) ac_try_echo=$ac_try;;
15408 esac
15409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15410   (eval "$ac_try") 2>&5
15411   ac_status=$?
15412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413   (exit $ac_status); }; } &&
15414          { ac_try='test -s conftest.$ac_objext'
15415   { (case "(($ac_try" in
15416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15417   *) ac_try_echo=$ac_try;;
15418 esac
15419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15420   (eval "$ac_try") 2>&5
15421   ac_status=$?
15422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423   (exit $ac_status); }; }; then
15424   ac_header_compiler=yes
15425 else
15426   echo "$as_me: failed program was:" >&5
15427 sed 's/^/| /' conftest.$ac_ext >&5
15428
15429         ac_header_compiler=no
15430 fi
15431
15432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15433 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15434 echo "${ECHO_T}$ac_header_compiler" >&6; }
15435
15436 # Is the header present?
15437 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15439 cat >conftest.$ac_ext <<_ACEOF
15440 /* confdefs.h.  */
15441 _ACEOF
15442 cat confdefs.h >>conftest.$ac_ext
15443 cat >>conftest.$ac_ext <<_ACEOF
15444 /* end confdefs.h.  */
15445 #include <$ac_header>
15446 _ACEOF
15447 if { (ac_try="$ac_cpp conftest.$ac_ext"
15448 case "(($ac_try" in
15449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15450   *) ac_try_echo=$ac_try;;
15451 esac
15452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15453   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15454   ac_status=$?
15455   grep -v '^ *+' conftest.er1 >conftest.err
15456   rm -f conftest.er1
15457   cat conftest.err >&5
15458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459   (exit $ac_status); } >/dev/null; then
15460   if test -s conftest.err; then
15461     ac_cpp_err=$ac_c_preproc_warn_flag
15462     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15463   else
15464     ac_cpp_err=
15465   fi
15466 else
15467   ac_cpp_err=yes
15468 fi
15469 if test -z "$ac_cpp_err"; then
15470   ac_header_preproc=yes
15471 else
15472   echo "$as_me: failed program was:" >&5
15473 sed 's/^/| /' conftest.$ac_ext >&5
15474
15475   ac_header_preproc=no
15476 fi
15477
15478 rm -f conftest.err conftest.$ac_ext
15479 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15480 echo "${ECHO_T}$ac_header_preproc" >&6; }
15481
15482 # So?  What about this header?
15483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15484   yes:no: )
15485     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15486 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15487     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15488 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15489     ac_header_preproc=yes
15490     ;;
15491   no:yes:* )
15492     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15493 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15494     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15495 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15496     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15497 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15498     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15499 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15500     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15501 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15502     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15503 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15504     ( cat <<\_ASBOX
15505 ## ----------------------------------- ##
15506 ## Report this to llvmbugs@cs.uiuc.edu ##
15507 ## ----------------------------------- ##
15508 _ASBOX
15509      ) | sed "s/^/$as_me: WARNING:     /" >&2
15510     ;;
15511 esac
15512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15515   echo $ECHO_N "(cached) $ECHO_C" >&6
15516 else
15517   eval "$as_ac_Header=\$ac_header_preproc"
15518 fi
15519 ac_res=`eval echo '${'$as_ac_Header'}'`
15520                { echo "$as_me:$LINENO: result: $ac_res" >&5
15521 echo "${ECHO_T}$ac_res" >&6; }
15522
15523 fi
15524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15525   cat >>confdefs.h <<_ACEOF
15526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15527 _ACEOF
15528
15529 fi
15530
15531 done
15532
15533
15534
15535 for ac_header in utime.h windows.h
15536 do
15537 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15539   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15542   echo $ECHO_N "(cached) $ECHO_C" >&6
15543 fi
15544 ac_res=`eval echo '${'$as_ac_Header'}'`
15545                { echo "$as_me:$LINENO: result: $ac_res" >&5
15546 echo "${ECHO_T}$ac_res" >&6; }
15547 else
15548   # Is the header compilable?
15549 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15550 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15551 cat >conftest.$ac_ext <<_ACEOF
15552 /* confdefs.h.  */
15553 _ACEOF
15554 cat confdefs.h >>conftest.$ac_ext
15555 cat >>conftest.$ac_ext <<_ACEOF
15556 /* end confdefs.h.  */
15557 $ac_includes_default
15558 #include <$ac_header>
15559 _ACEOF
15560 rm -f conftest.$ac_objext
15561 if { (ac_try="$ac_compile"
15562 case "(($ac_try" in
15563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15564   *) ac_try_echo=$ac_try;;
15565 esac
15566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15567   (eval "$ac_compile") 2>conftest.er1
15568   ac_status=$?
15569   grep -v '^ *+' conftest.er1 >conftest.err
15570   rm -f conftest.er1
15571   cat conftest.err >&5
15572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573   (exit $ac_status); } &&
15574          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15575   { (case "(($ac_try" in
15576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15577   *) ac_try_echo=$ac_try;;
15578 esac
15579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15580   (eval "$ac_try") 2>&5
15581   ac_status=$?
15582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583   (exit $ac_status); }; } &&
15584          { ac_try='test -s conftest.$ac_objext'
15585   { (case "(($ac_try" in
15586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15587   *) ac_try_echo=$ac_try;;
15588 esac
15589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15590   (eval "$ac_try") 2>&5
15591   ac_status=$?
15592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593   (exit $ac_status); }; }; then
15594   ac_header_compiler=yes
15595 else
15596   echo "$as_me: failed program was:" >&5
15597 sed 's/^/| /' conftest.$ac_ext >&5
15598
15599         ac_header_compiler=no
15600 fi
15601
15602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15603 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15604 echo "${ECHO_T}$ac_header_compiler" >&6; }
15605
15606 # Is the header present?
15607 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15608 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15609 cat >conftest.$ac_ext <<_ACEOF
15610 /* confdefs.h.  */
15611 _ACEOF
15612 cat confdefs.h >>conftest.$ac_ext
15613 cat >>conftest.$ac_ext <<_ACEOF
15614 /* end confdefs.h.  */
15615 #include <$ac_header>
15616 _ACEOF
15617 if { (ac_try="$ac_cpp conftest.$ac_ext"
15618 case "(($ac_try" in
15619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15620   *) ac_try_echo=$ac_try;;
15621 esac
15622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15623   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15624   ac_status=$?
15625   grep -v '^ *+' conftest.er1 >conftest.err
15626   rm -f conftest.er1
15627   cat conftest.err >&5
15628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629   (exit $ac_status); } >/dev/null; then
15630   if test -s conftest.err; then
15631     ac_cpp_err=$ac_c_preproc_warn_flag
15632     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15633   else
15634     ac_cpp_err=
15635   fi
15636 else
15637   ac_cpp_err=yes
15638 fi
15639 if test -z "$ac_cpp_err"; then
15640   ac_header_preproc=yes
15641 else
15642   echo "$as_me: failed program was:" >&5
15643 sed 's/^/| /' conftest.$ac_ext >&5
15644
15645   ac_header_preproc=no
15646 fi
15647
15648 rm -f conftest.err conftest.$ac_ext
15649 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15650 echo "${ECHO_T}$ac_header_preproc" >&6; }
15651
15652 # So?  What about this header?
15653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15654   yes:no: )
15655     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15657     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15659     ac_header_preproc=yes
15660     ;;
15661   no:yes:* )
15662     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15664     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15665 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15666     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15667 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15668     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15669 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15670     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15672     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15673 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15674     ( cat <<\_ASBOX
15675 ## ----------------------------------- ##
15676 ## Report this to llvmbugs@cs.uiuc.edu ##
15677 ## ----------------------------------- ##
15678 _ASBOX
15679      ) | sed "s/^/$as_me: WARNING:     /" >&2
15680     ;;
15681 esac
15682 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15685   echo $ECHO_N "(cached) $ECHO_C" >&6
15686 else
15687   eval "$as_ac_Header=\$ac_header_preproc"
15688 fi
15689 ac_res=`eval echo '${'$as_ac_Header'}'`
15690                { echo "$as_me:$LINENO: result: $ac_res" >&5
15691 echo "${ECHO_T}$ac_res" >&6; }
15692
15693 fi
15694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15695   cat >>confdefs.h <<_ACEOF
15696 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15697 _ACEOF
15698
15699 fi
15700
15701 done
15702
15703
15704
15705
15706
15707 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
15708 do
15709 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15711   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15714   echo $ECHO_N "(cached) $ECHO_C" >&6
15715 fi
15716 ac_res=`eval echo '${'$as_ac_Header'}'`
15717                { echo "$as_me:$LINENO: result: $ac_res" >&5
15718 echo "${ECHO_T}$ac_res" >&6; }
15719 else
15720   # Is the header compilable?
15721 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15722 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15723 cat >conftest.$ac_ext <<_ACEOF
15724 /* confdefs.h.  */
15725 _ACEOF
15726 cat confdefs.h >>conftest.$ac_ext
15727 cat >>conftest.$ac_ext <<_ACEOF
15728 /* end confdefs.h.  */
15729 $ac_includes_default
15730 #include <$ac_header>
15731 _ACEOF
15732 rm -f conftest.$ac_objext
15733 if { (ac_try="$ac_compile"
15734 case "(($ac_try" in
15735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15736   *) ac_try_echo=$ac_try;;
15737 esac
15738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15739   (eval "$ac_compile") 2>conftest.er1
15740   ac_status=$?
15741   grep -v '^ *+' conftest.er1 >conftest.err
15742   rm -f conftest.er1
15743   cat conftest.err >&5
15744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745   (exit $ac_status); } &&
15746          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15747   { (case "(($ac_try" in
15748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15749   *) ac_try_echo=$ac_try;;
15750 esac
15751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15752   (eval "$ac_try") 2>&5
15753   ac_status=$?
15754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755   (exit $ac_status); }; } &&
15756          { ac_try='test -s conftest.$ac_objext'
15757   { (case "(($ac_try" in
15758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15759   *) ac_try_echo=$ac_try;;
15760 esac
15761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15762   (eval "$ac_try") 2>&5
15763   ac_status=$?
15764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765   (exit $ac_status); }; }; then
15766   ac_header_compiler=yes
15767 else
15768   echo "$as_me: failed program was:" >&5
15769 sed 's/^/| /' conftest.$ac_ext >&5
15770
15771         ac_header_compiler=no
15772 fi
15773
15774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15775 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15776 echo "${ECHO_T}$ac_header_compiler" >&6; }
15777
15778 # Is the header present?
15779 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15780 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15781 cat >conftest.$ac_ext <<_ACEOF
15782 /* confdefs.h.  */
15783 _ACEOF
15784 cat confdefs.h >>conftest.$ac_ext
15785 cat >>conftest.$ac_ext <<_ACEOF
15786 /* end confdefs.h.  */
15787 #include <$ac_header>
15788 _ACEOF
15789 if { (ac_try="$ac_cpp conftest.$ac_ext"
15790 case "(($ac_try" in
15791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15792   *) ac_try_echo=$ac_try;;
15793 esac
15794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15795   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15796   ac_status=$?
15797   grep -v '^ *+' conftest.er1 >conftest.err
15798   rm -f conftest.er1
15799   cat conftest.err >&5
15800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801   (exit $ac_status); } >/dev/null; then
15802   if test -s conftest.err; then
15803     ac_cpp_err=$ac_c_preproc_warn_flag
15804     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15805   else
15806     ac_cpp_err=
15807   fi
15808 else
15809   ac_cpp_err=yes
15810 fi
15811 if test -z "$ac_cpp_err"; then
15812   ac_header_preproc=yes
15813 else
15814   echo "$as_me: failed program was:" >&5
15815 sed 's/^/| /' conftest.$ac_ext >&5
15816
15817   ac_header_preproc=no
15818 fi
15819
15820 rm -f conftest.err conftest.$ac_ext
15821 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15822 echo "${ECHO_T}$ac_header_preproc" >&6; }
15823
15824 # So?  What about this header?
15825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15826   yes:no: )
15827     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15828 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15829     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15830 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15831     ac_header_preproc=yes
15832     ;;
15833   no:yes:* )
15834     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15835 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15836     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15837 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15838     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15839 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15840     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15841 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15842     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15843 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15844     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15845 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15846     ( cat <<\_ASBOX
15847 ## ----------------------------------- ##
15848 ## Report this to llvmbugs@cs.uiuc.edu ##
15849 ## ----------------------------------- ##
15850 _ASBOX
15851      ) | sed "s/^/$as_me: WARNING:     /" >&2
15852     ;;
15853 esac
15854 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15857   echo $ECHO_N "(cached) $ECHO_C" >&6
15858 else
15859   eval "$as_ac_Header=\$ac_header_preproc"
15860 fi
15861 ac_res=`eval echo '${'$as_ac_Header'}'`
15862                { echo "$as_me:$LINENO: result: $ac_res" >&5
15863 echo "${ECHO_T}$ac_res" >&6; }
15864
15865 fi
15866 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15867   cat >>confdefs.h <<_ACEOF
15868 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15869 _ACEOF
15870
15871 fi
15872
15873 done
15874
15875
15876
15877
15878
15879 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15880 do
15881 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15883   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15886   echo $ECHO_N "(cached) $ECHO_C" >&6
15887 fi
15888 ac_res=`eval echo '${'$as_ac_Header'}'`
15889                { echo "$as_me:$LINENO: result: $ac_res" >&5
15890 echo "${ECHO_T}$ac_res" >&6; }
15891 else
15892   # Is the header compilable?
15893 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15894 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15895 cat >conftest.$ac_ext <<_ACEOF
15896 /* confdefs.h.  */
15897 _ACEOF
15898 cat confdefs.h >>conftest.$ac_ext
15899 cat >>conftest.$ac_ext <<_ACEOF
15900 /* end confdefs.h.  */
15901 $ac_includes_default
15902 #include <$ac_header>
15903 _ACEOF
15904 rm -f conftest.$ac_objext
15905 if { (ac_try="$ac_compile"
15906 case "(($ac_try" in
15907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15908   *) ac_try_echo=$ac_try;;
15909 esac
15910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15911   (eval "$ac_compile") 2>conftest.er1
15912   ac_status=$?
15913   grep -v '^ *+' conftest.er1 >conftest.err
15914   rm -f conftest.er1
15915   cat conftest.err >&5
15916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917   (exit $ac_status); } &&
15918          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15919   { (case "(($ac_try" in
15920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15921   *) ac_try_echo=$ac_try;;
15922 esac
15923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15924   (eval "$ac_try") 2>&5
15925   ac_status=$?
15926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927   (exit $ac_status); }; } &&
15928          { ac_try='test -s conftest.$ac_objext'
15929   { (case "(($ac_try" in
15930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15931   *) ac_try_echo=$ac_try;;
15932 esac
15933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15934   (eval "$ac_try") 2>&5
15935   ac_status=$?
15936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937   (exit $ac_status); }; }; then
15938   ac_header_compiler=yes
15939 else
15940   echo "$as_me: failed program was:" >&5
15941 sed 's/^/| /' conftest.$ac_ext >&5
15942
15943         ac_header_compiler=no
15944 fi
15945
15946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15947 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15948 echo "${ECHO_T}$ac_header_compiler" >&6; }
15949
15950 # Is the header present?
15951 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15952 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15953 cat >conftest.$ac_ext <<_ACEOF
15954 /* confdefs.h.  */
15955 _ACEOF
15956 cat confdefs.h >>conftest.$ac_ext
15957 cat >>conftest.$ac_ext <<_ACEOF
15958 /* end confdefs.h.  */
15959 #include <$ac_header>
15960 _ACEOF
15961 if { (ac_try="$ac_cpp conftest.$ac_ext"
15962 case "(($ac_try" in
15963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15964   *) ac_try_echo=$ac_try;;
15965 esac
15966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15967   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15968   ac_status=$?
15969   grep -v '^ *+' conftest.er1 >conftest.err
15970   rm -f conftest.er1
15971   cat conftest.err >&5
15972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973   (exit $ac_status); } >/dev/null; then
15974   if test -s conftest.err; then
15975     ac_cpp_err=$ac_c_preproc_warn_flag
15976     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15977   else
15978     ac_cpp_err=
15979   fi
15980 else
15981   ac_cpp_err=yes
15982 fi
15983 if test -z "$ac_cpp_err"; then
15984   ac_header_preproc=yes
15985 else
15986   echo "$as_me: failed program was:" >&5
15987 sed 's/^/| /' conftest.$ac_ext >&5
15988
15989   ac_header_preproc=no
15990 fi
15991
15992 rm -f conftest.err conftest.$ac_ext
15993 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15994 echo "${ECHO_T}$ac_header_preproc" >&6; }
15995
15996 # So?  What about this header?
15997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15998   yes:no: )
15999     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16000 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16001     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16002 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16003     ac_header_preproc=yes
16004     ;;
16005   no:yes:* )
16006     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16007 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16008     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16009 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16010     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16011 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16012     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16013 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16014     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16016     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16017 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16018     ( cat <<\_ASBOX
16019 ## ----------------------------------- ##
16020 ## Report this to llvmbugs@cs.uiuc.edu ##
16021 ## ----------------------------------- ##
16022 _ASBOX
16023      ) | sed "s/^/$as_me: WARNING:     /" >&2
16024     ;;
16025 esac
16026 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16029   echo $ECHO_N "(cached) $ECHO_C" >&6
16030 else
16031   eval "$as_ac_Header=\$ac_header_preproc"
16032 fi
16033 ac_res=`eval echo '${'$as_ac_Header'}'`
16034                { echo "$as_me:$LINENO: result: $ac_res" >&5
16035 echo "${ECHO_T}$ac_res" >&6; }
16036
16037 fi
16038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16039   cat >>confdefs.h <<_ACEOF
16040 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16041 _ACEOF
16042
16043 fi
16044
16045 done
16046
16047 if test "$ENABLE_THREADS" -eq 1 ; then
16048
16049 for ac_header in pthread.h
16050 do
16051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16053   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16056   echo $ECHO_N "(cached) $ECHO_C" >&6
16057 fi
16058 ac_res=`eval echo '${'$as_ac_Header'}'`
16059                { echo "$as_me:$LINENO: result: $ac_res" >&5
16060 echo "${ECHO_T}$ac_res" >&6; }
16061 else
16062   # Is the header compilable?
16063 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16064 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16065 cat >conftest.$ac_ext <<_ACEOF
16066 /* confdefs.h.  */
16067 _ACEOF
16068 cat confdefs.h >>conftest.$ac_ext
16069 cat >>conftest.$ac_ext <<_ACEOF
16070 /* end confdefs.h.  */
16071 $ac_includes_default
16072 #include <$ac_header>
16073 _ACEOF
16074 rm -f conftest.$ac_objext
16075 if { (ac_try="$ac_compile"
16076 case "(($ac_try" in
16077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16078   *) ac_try_echo=$ac_try;;
16079 esac
16080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16081   (eval "$ac_compile") 2>conftest.er1
16082   ac_status=$?
16083   grep -v '^ *+' conftest.er1 >conftest.err
16084   rm -f conftest.er1
16085   cat conftest.err >&5
16086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087   (exit $ac_status); } &&
16088          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16089   { (case "(($ac_try" in
16090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16091   *) ac_try_echo=$ac_try;;
16092 esac
16093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16094   (eval "$ac_try") 2>&5
16095   ac_status=$?
16096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097   (exit $ac_status); }; } &&
16098          { ac_try='test -s conftest.$ac_objext'
16099   { (case "(($ac_try" in
16100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16101   *) ac_try_echo=$ac_try;;
16102 esac
16103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16104   (eval "$ac_try") 2>&5
16105   ac_status=$?
16106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107   (exit $ac_status); }; }; then
16108   ac_header_compiler=yes
16109 else
16110   echo "$as_me: failed program was:" >&5
16111 sed 's/^/| /' conftest.$ac_ext >&5
16112
16113         ac_header_compiler=no
16114 fi
16115
16116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16117 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16118 echo "${ECHO_T}$ac_header_compiler" >&6; }
16119
16120 # Is the header present?
16121 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16123 cat >conftest.$ac_ext <<_ACEOF
16124 /* confdefs.h.  */
16125 _ACEOF
16126 cat confdefs.h >>conftest.$ac_ext
16127 cat >>conftest.$ac_ext <<_ACEOF
16128 /* end confdefs.h.  */
16129 #include <$ac_header>
16130 _ACEOF
16131 if { (ac_try="$ac_cpp conftest.$ac_ext"
16132 case "(($ac_try" in
16133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134   *) ac_try_echo=$ac_try;;
16135 esac
16136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16138   ac_status=$?
16139   grep -v '^ *+' conftest.er1 >conftest.err
16140   rm -f conftest.er1
16141   cat conftest.err >&5
16142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143   (exit $ac_status); } >/dev/null; then
16144   if test -s conftest.err; then
16145     ac_cpp_err=$ac_c_preproc_warn_flag
16146     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16147   else
16148     ac_cpp_err=
16149   fi
16150 else
16151   ac_cpp_err=yes
16152 fi
16153 if test -z "$ac_cpp_err"; then
16154   ac_header_preproc=yes
16155 else
16156   echo "$as_me: failed program was:" >&5
16157 sed 's/^/| /' conftest.$ac_ext >&5
16158
16159   ac_header_preproc=no
16160 fi
16161
16162 rm -f conftest.err conftest.$ac_ext
16163 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16164 echo "${ECHO_T}$ac_header_preproc" >&6; }
16165
16166 # So?  What about this header?
16167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16168   yes:no: )
16169     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16171     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16172 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16173     ac_header_preproc=yes
16174     ;;
16175   no:yes:* )
16176     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16177 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16178     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16179 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16180     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16181 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16182     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16183 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16184     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16186     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16187 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16188     ( cat <<\_ASBOX
16189 ## ----------------------------------- ##
16190 ## Report this to llvmbugs@cs.uiuc.edu ##
16191 ## ----------------------------------- ##
16192 _ASBOX
16193      ) | sed "s/^/$as_me: WARNING:     /" >&2
16194     ;;
16195 esac
16196 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16199   echo $ECHO_N "(cached) $ECHO_C" >&6
16200 else
16201   eval "$as_ac_Header=\$ac_header_preproc"
16202 fi
16203 ac_res=`eval echo '${'$as_ac_Header'}'`
16204                { echo "$as_me:$LINENO: result: $ac_res" >&5
16205 echo "${ECHO_T}$ac_res" >&6; }
16206
16207 fi
16208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16209   cat >>confdefs.h <<_ACEOF
16210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16211 _ACEOF
16212  HAVE_PTHREAD=1
16213
16214 else
16215   HAVE_PTHREAD=0
16216
16217 fi
16218
16219 done
16220
16221 else
16222   HAVE_PTHREAD=0
16223
16224 fi
16225
16226 if test "$llvm_cv_enable_libffi" = "yes" ; then
16227
16228
16229 for ac_header in ffi.h ffi/ffi.h
16230 do
16231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16233   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16236   echo $ECHO_N "(cached) $ECHO_C" >&6
16237 fi
16238 ac_res=`eval echo '${'$as_ac_Header'}'`
16239                { echo "$as_me:$LINENO: result: $ac_res" >&5
16240 echo "${ECHO_T}$ac_res" >&6; }
16241 else
16242   # Is the header compilable?
16243 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16245 cat >conftest.$ac_ext <<_ACEOF
16246 /* confdefs.h.  */
16247 _ACEOF
16248 cat confdefs.h >>conftest.$ac_ext
16249 cat >>conftest.$ac_ext <<_ACEOF
16250 /* end confdefs.h.  */
16251 $ac_includes_default
16252 #include <$ac_header>
16253 _ACEOF
16254 rm -f conftest.$ac_objext
16255 if { (ac_try="$ac_compile"
16256 case "(($ac_try" in
16257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16258   *) ac_try_echo=$ac_try;;
16259 esac
16260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16261   (eval "$ac_compile") 2>conftest.er1
16262   ac_status=$?
16263   grep -v '^ *+' conftest.er1 >conftest.err
16264   rm -f conftest.er1
16265   cat conftest.err >&5
16266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267   (exit $ac_status); } &&
16268          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16269   { (case "(($ac_try" in
16270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16271   *) ac_try_echo=$ac_try;;
16272 esac
16273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16274   (eval "$ac_try") 2>&5
16275   ac_status=$?
16276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277   (exit $ac_status); }; } &&
16278          { ac_try='test -s conftest.$ac_objext'
16279   { (case "(($ac_try" in
16280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16281   *) ac_try_echo=$ac_try;;
16282 esac
16283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16284   (eval "$ac_try") 2>&5
16285   ac_status=$?
16286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287   (exit $ac_status); }; }; then
16288   ac_header_compiler=yes
16289 else
16290   echo "$as_me: failed program was:" >&5
16291 sed 's/^/| /' conftest.$ac_ext >&5
16292
16293         ac_header_compiler=no
16294 fi
16295
16296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16297 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16298 echo "${ECHO_T}$ac_header_compiler" >&6; }
16299
16300 # Is the header present?
16301 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16303 cat >conftest.$ac_ext <<_ACEOF
16304 /* confdefs.h.  */
16305 _ACEOF
16306 cat confdefs.h >>conftest.$ac_ext
16307 cat >>conftest.$ac_ext <<_ACEOF
16308 /* end confdefs.h.  */
16309 #include <$ac_header>
16310 _ACEOF
16311 if { (ac_try="$ac_cpp conftest.$ac_ext"
16312 case "(($ac_try" in
16313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16314   *) ac_try_echo=$ac_try;;
16315 esac
16316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16317   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16318   ac_status=$?
16319   grep -v '^ *+' conftest.er1 >conftest.err
16320   rm -f conftest.er1
16321   cat conftest.err >&5
16322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323   (exit $ac_status); } >/dev/null; then
16324   if test -s conftest.err; then
16325     ac_cpp_err=$ac_c_preproc_warn_flag
16326     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16327   else
16328     ac_cpp_err=
16329   fi
16330 else
16331   ac_cpp_err=yes
16332 fi
16333 if test -z "$ac_cpp_err"; then
16334   ac_header_preproc=yes
16335 else
16336   echo "$as_me: failed program was:" >&5
16337 sed 's/^/| /' conftest.$ac_ext >&5
16338
16339   ac_header_preproc=no
16340 fi
16341
16342 rm -f conftest.err conftest.$ac_ext
16343 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16344 echo "${ECHO_T}$ac_header_preproc" >&6; }
16345
16346 # So?  What about this header?
16347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16348   yes:no: )
16349     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16351     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16353     ac_header_preproc=yes
16354     ;;
16355   no:yes:* )
16356     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16358     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16359 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16360     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16362     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16363 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16364     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16366     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16368     ( cat <<\_ASBOX
16369 ## ----------------------------------- ##
16370 ## Report this to llvmbugs@cs.uiuc.edu ##
16371 ## ----------------------------------- ##
16372 _ASBOX
16373      ) | sed "s/^/$as_me: WARNING:     /" >&2
16374     ;;
16375 esac
16376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16379   echo $ECHO_N "(cached) $ECHO_C" >&6
16380 else
16381   eval "$as_ac_Header=\$ac_header_preproc"
16382 fi
16383 ac_res=`eval echo '${'$as_ac_Header'}'`
16384                { echo "$as_me:$LINENO: result: $ac_res" >&5
16385 echo "${ECHO_T}$ac_res" >&6; }
16386
16387 fi
16388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16389   cat >>confdefs.h <<_ACEOF
16390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16391 _ACEOF
16392
16393 fi
16394
16395 done
16396
16397 fi
16398
16399
16400
16401
16402   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16403 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16404 if test "${ac_cv_huge_val_sanity+set}" = set; then
16405   echo $ECHO_N "(cached) $ECHO_C" >&6
16406 else
16407
16408     ac_ext=cpp
16409 ac_cpp='$CXXCPP $CPPFLAGS'
16410 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16411 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16412 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16413
16414     CXXFLAGS=-pedantic
16415     if test "$cross_compiling" = yes; then
16416   ac_cv_huge_val_sanity=yes
16417 else
16418   cat >conftest.$ac_ext <<_ACEOF
16419 /* confdefs.h.  */
16420 _ACEOF
16421 cat confdefs.h >>conftest.$ac_ext
16422 cat >>conftest.$ac_ext <<_ACEOF
16423 /* end confdefs.h.  */
16424 #include <math.h>
16425 int
16426 main ()
16427 {
16428 double x = HUGE_VAL; return x != x;
16429   ;
16430   return 0;
16431 }
16432 _ACEOF
16433 rm -f conftest$ac_exeext
16434 if { (ac_try="$ac_link"
16435 case "(($ac_try" in
16436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16437   *) ac_try_echo=$ac_try;;
16438 esac
16439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16440   (eval "$ac_link") 2>&5
16441   ac_status=$?
16442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16444   { (case "(($ac_try" in
16445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16446   *) ac_try_echo=$ac_try;;
16447 esac
16448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16449   (eval "$ac_try") 2>&5
16450   ac_status=$?
16451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452   (exit $ac_status); }; }; then
16453   ac_cv_huge_val_sanity=yes
16454 else
16455   echo "$as_me: program exited with status $ac_status" >&5
16456 echo "$as_me: failed program was:" >&5
16457 sed 's/^/| /' conftest.$ac_ext >&5
16458
16459 ( exit $ac_status )
16460 ac_cv_huge_val_sanity=no
16461 fi
16462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16463 fi
16464
16465
16466     ac_ext=c
16467 ac_cpp='$CPP $CPPFLAGS'
16468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16471
16472
16473 fi
16474 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16475 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16476   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16477
16478
16479 { echo "$as_me:$LINENO: checking for pid_t" >&5
16480 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16481 if test "${ac_cv_type_pid_t+set}" = set; then
16482   echo $ECHO_N "(cached) $ECHO_C" >&6
16483 else
16484   cat >conftest.$ac_ext <<_ACEOF
16485 /* confdefs.h.  */
16486 _ACEOF
16487 cat confdefs.h >>conftest.$ac_ext
16488 cat >>conftest.$ac_ext <<_ACEOF
16489 /* end confdefs.h.  */
16490 $ac_includes_default
16491 typedef pid_t ac__type_new_;
16492 int
16493 main ()
16494 {
16495 if ((ac__type_new_ *) 0)
16496   return 0;
16497 if (sizeof (ac__type_new_))
16498   return 0;
16499   ;
16500   return 0;
16501 }
16502 _ACEOF
16503 rm -f conftest.$ac_objext
16504 if { (ac_try="$ac_compile"
16505 case "(($ac_try" in
16506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16507   *) ac_try_echo=$ac_try;;
16508 esac
16509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16510   (eval "$ac_compile") 2>conftest.er1
16511   ac_status=$?
16512   grep -v '^ *+' conftest.er1 >conftest.err
16513   rm -f conftest.er1
16514   cat conftest.err >&5
16515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516   (exit $ac_status); } &&
16517          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16518   { (case "(($ac_try" in
16519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16520   *) ac_try_echo=$ac_try;;
16521 esac
16522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16523   (eval "$ac_try") 2>&5
16524   ac_status=$?
16525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526   (exit $ac_status); }; } &&
16527          { ac_try='test -s conftest.$ac_objext'
16528   { (case "(($ac_try" in
16529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16530   *) ac_try_echo=$ac_try;;
16531 esac
16532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16533   (eval "$ac_try") 2>&5
16534   ac_status=$?
16535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536   (exit $ac_status); }; }; then
16537   ac_cv_type_pid_t=yes
16538 else
16539   echo "$as_me: failed program was:" >&5
16540 sed 's/^/| /' conftest.$ac_ext >&5
16541
16542         ac_cv_type_pid_t=no
16543 fi
16544
16545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16546 fi
16547 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16548 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16549 if test $ac_cv_type_pid_t = yes; then
16550   :
16551 else
16552
16553 cat >>confdefs.h <<_ACEOF
16554 #define pid_t int
16555 _ACEOF
16556
16557 fi
16558
16559 { echo "$as_me:$LINENO: checking for size_t" >&5
16560 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16561 if test "${ac_cv_type_size_t+set}" = set; then
16562   echo $ECHO_N "(cached) $ECHO_C" >&6
16563 else
16564   cat >conftest.$ac_ext <<_ACEOF
16565 /* confdefs.h.  */
16566 _ACEOF
16567 cat confdefs.h >>conftest.$ac_ext
16568 cat >>conftest.$ac_ext <<_ACEOF
16569 /* end confdefs.h.  */
16570 $ac_includes_default
16571 typedef size_t ac__type_new_;
16572 int
16573 main ()
16574 {
16575 if ((ac__type_new_ *) 0)
16576   return 0;
16577 if (sizeof (ac__type_new_))
16578   return 0;
16579   ;
16580   return 0;
16581 }
16582 _ACEOF
16583 rm -f conftest.$ac_objext
16584 if { (ac_try="$ac_compile"
16585 case "(($ac_try" in
16586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16587   *) ac_try_echo=$ac_try;;
16588 esac
16589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16590   (eval "$ac_compile") 2>conftest.er1
16591   ac_status=$?
16592   grep -v '^ *+' conftest.er1 >conftest.err
16593   rm -f conftest.er1
16594   cat conftest.err >&5
16595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596   (exit $ac_status); } &&
16597          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16598   { (case "(($ac_try" in
16599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16600   *) ac_try_echo=$ac_try;;
16601 esac
16602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16603   (eval "$ac_try") 2>&5
16604   ac_status=$?
16605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606   (exit $ac_status); }; } &&
16607          { ac_try='test -s conftest.$ac_objext'
16608   { (case "(($ac_try" in
16609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16610   *) ac_try_echo=$ac_try;;
16611 esac
16612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16613   (eval "$ac_try") 2>&5
16614   ac_status=$?
16615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616   (exit $ac_status); }; }; then
16617   ac_cv_type_size_t=yes
16618 else
16619   echo "$as_me: failed program was:" >&5
16620 sed 's/^/| /' conftest.$ac_ext >&5
16621
16622         ac_cv_type_size_t=no
16623 fi
16624
16625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16626 fi
16627 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16628 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16629 if test $ac_cv_type_size_t = yes; then
16630   :
16631 else
16632
16633 cat >>confdefs.h <<_ACEOF
16634 #define size_t unsigned int
16635 _ACEOF
16636
16637 fi
16638
16639
16640 cat >>confdefs.h <<_ACEOF
16641 #define RETSIGTYPE void
16642 _ACEOF
16643
16644 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16645 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16646 if test "${ac_cv_struct_tm+set}" = set; then
16647   echo $ECHO_N "(cached) $ECHO_C" >&6
16648 else
16649   cat >conftest.$ac_ext <<_ACEOF
16650 /* confdefs.h.  */
16651 _ACEOF
16652 cat confdefs.h >>conftest.$ac_ext
16653 cat >>conftest.$ac_ext <<_ACEOF
16654 /* end confdefs.h.  */
16655 #include <sys/types.h>
16656 #include <time.h>
16657
16658 int
16659 main ()
16660 {
16661 struct tm *tp; tp->tm_sec;
16662   ;
16663   return 0;
16664 }
16665 _ACEOF
16666 rm -f conftest.$ac_objext
16667 if { (ac_try="$ac_compile"
16668 case "(($ac_try" in
16669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16670   *) ac_try_echo=$ac_try;;
16671 esac
16672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16673   (eval "$ac_compile") 2>conftest.er1
16674   ac_status=$?
16675   grep -v '^ *+' conftest.er1 >conftest.err
16676   rm -f conftest.er1
16677   cat conftest.err >&5
16678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679   (exit $ac_status); } &&
16680          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16681   { (case "(($ac_try" in
16682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16683   *) ac_try_echo=$ac_try;;
16684 esac
16685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16686   (eval "$ac_try") 2>&5
16687   ac_status=$?
16688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689   (exit $ac_status); }; } &&
16690          { ac_try='test -s conftest.$ac_objext'
16691   { (case "(($ac_try" in
16692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16693   *) ac_try_echo=$ac_try;;
16694 esac
16695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16696   (eval "$ac_try") 2>&5
16697   ac_status=$?
16698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699   (exit $ac_status); }; }; then
16700   ac_cv_struct_tm=time.h
16701 else
16702   echo "$as_me: failed program was:" >&5
16703 sed 's/^/| /' conftest.$ac_ext >&5
16704
16705         ac_cv_struct_tm=sys/time.h
16706 fi
16707
16708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16709 fi
16710 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16711 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16712 if test $ac_cv_struct_tm = sys/time.h; then
16713
16714 cat >>confdefs.h <<\_ACEOF
16715 #define TM_IN_SYS_TIME 1
16716 _ACEOF
16717
16718 fi
16719
16720 { echo "$as_me:$LINENO: checking for int64_t" >&5
16721 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16722 if test "${ac_cv_type_int64_t+set}" = set; then
16723   echo $ECHO_N "(cached) $ECHO_C" >&6
16724 else
16725   cat >conftest.$ac_ext <<_ACEOF
16726 /* confdefs.h.  */
16727 _ACEOF
16728 cat confdefs.h >>conftest.$ac_ext
16729 cat >>conftest.$ac_ext <<_ACEOF
16730 /* end confdefs.h.  */
16731 $ac_includes_default
16732 typedef int64_t ac__type_new_;
16733 int
16734 main ()
16735 {
16736 if ((ac__type_new_ *) 0)
16737   return 0;
16738 if (sizeof (ac__type_new_))
16739   return 0;
16740   ;
16741   return 0;
16742 }
16743 _ACEOF
16744 rm -f conftest.$ac_objext
16745 if { (ac_try="$ac_compile"
16746 case "(($ac_try" in
16747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16748   *) ac_try_echo=$ac_try;;
16749 esac
16750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16751   (eval "$ac_compile") 2>conftest.er1
16752   ac_status=$?
16753   grep -v '^ *+' conftest.er1 >conftest.err
16754   rm -f conftest.er1
16755   cat conftest.err >&5
16756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757   (exit $ac_status); } &&
16758          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16759   { (case "(($ac_try" in
16760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16761   *) ac_try_echo=$ac_try;;
16762 esac
16763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16764   (eval "$ac_try") 2>&5
16765   ac_status=$?
16766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767   (exit $ac_status); }; } &&
16768          { ac_try='test -s conftest.$ac_objext'
16769   { (case "(($ac_try" in
16770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16771   *) ac_try_echo=$ac_try;;
16772 esac
16773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16774   (eval "$ac_try") 2>&5
16775   ac_status=$?
16776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777   (exit $ac_status); }; }; then
16778   ac_cv_type_int64_t=yes
16779 else
16780   echo "$as_me: failed program was:" >&5
16781 sed 's/^/| /' conftest.$ac_ext >&5
16782
16783         ac_cv_type_int64_t=no
16784 fi
16785
16786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16787 fi
16788 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16789 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16790 if test $ac_cv_type_int64_t = yes; then
16791
16792 cat >>confdefs.h <<_ACEOF
16793 #define HAVE_INT64_T 1
16794 _ACEOF
16795
16796
16797 else
16798   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16799 echo "$as_me: error: Type int64_t required but not found" >&2;}
16800    { (exit 1); exit 1; }; }
16801 fi
16802
16803 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16804 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16805 if test "${ac_cv_type_uint64_t+set}" = set; then
16806   echo $ECHO_N "(cached) $ECHO_C" >&6
16807 else
16808   cat >conftest.$ac_ext <<_ACEOF
16809 /* confdefs.h.  */
16810 _ACEOF
16811 cat confdefs.h >>conftest.$ac_ext
16812 cat >>conftest.$ac_ext <<_ACEOF
16813 /* end confdefs.h.  */
16814 $ac_includes_default
16815 typedef uint64_t ac__type_new_;
16816 int
16817 main ()
16818 {
16819 if ((ac__type_new_ *) 0)
16820   return 0;
16821 if (sizeof (ac__type_new_))
16822   return 0;
16823   ;
16824   return 0;
16825 }
16826 _ACEOF
16827 rm -f conftest.$ac_objext
16828 if { (ac_try="$ac_compile"
16829 case "(($ac_try" in
16830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16831   *) ac_try_echo=$ac_try;;
16832 esac
16833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16834   (eval "$ac_compile") 2>conftest.er1
16835   ac_status=$?
16836   grep -v '^ *+' conftest.er1 >conftest.err
16837   rm -f conftest.er1
16838   cat conftest.err >&5
16839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840   (exit $ac_status); } &&
16841          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16842   { (case "(($ac_try" in
16843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16844   *) ac_try_echo=$ac_try;;
16845 esac
16846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16847   (eval "$ac_try") 2>&5
16848   ac_status=$?
16849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850   (exit $ac_status); }; } &&
16851          { ac_try='test -s conftest.$ac_objext'
16852   { (case "(($ac_try" in
16853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16854   *) ac_try_echo=$ac_try;;
16855 esac
16856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16857   (eval "$ac_try") 2>&5
16858   ac_status=$?
16859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860   (exit $ac_status); }; }; then
16861   ac_cv_type_uint64_t=yes
16862 else
16863   echo "$as_me: failed program was:" >&5
16864 sed 's/^/| /' conftest.$ac_ext >&5
16865
16866         ac_cv_type_uint64_t=no
16867 fi
16868
16869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16870 fi
16871 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16872 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16873 if test $ac_cv_type_uint64_t = yes; then
16874
16875 cat >>confdefs.h <<_ACEOF
16876 #define HAVE_UINT64_T 1
16877 _ACEOF
16878
16879
16880 else
16881   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16882 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16883 if test "${ac_cv_type_u_int64_t+set}" = set; then
16884   echo $ECHO_N "(cached) $ECHO_C" >&6
16885 else
16886   cat >conftest.$ac_ext <<_ACEOF
16887 /* confdefs.h.  */
16888 _ACEOF
16889 cat confdefs.h >>conftest.$ac_ext
16890 cat >>conftest.$ac_ext <<_ACEOF
16891 /* end confdefs.h.  */
16892 $ac_includes_default
16893 typedef u_int64_t ac__type_new_;
16894 int
16895 main ()
16896 {
16897 if ((ac__type_new_ *) 0)
16898   return 0;
16899 if (sizeof (ac__type_new_))
16900   return 0;
16901   ;
16902   return 0;
16903 }
16904 _ACEOF
16905 rm -f conftest.$ac_objext
16906 if { (ac_try="$ac_compile"
16907 case "(($ac_try" in
16908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16909   *) ac_try_echo=$ac_try;;
16910 esac
16911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16912   (eval "$ac_compile") 2>conftest.er1
16913   ac_status=$?
16914   grep -v '^ *+' conftest.er1 >conftest.err
16915   rm -f conftest.er1
16916   cat conftest.err >&5
16917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918   (exit $ac_status); } &&
16919          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16920   { (case "(($ac_try" in
16921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16922   *) ac_try_echo=$ac_try;;
16923 esac
16924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16925   (eval "$ac_try") 2>&5
16926   ac_status=$?
16927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928   (exit $ac_status); }; } &&
16929          { ac_try='test -s conftest.$ac_objext'
16930   { (case "(($ac_try" in
16931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16932   *) ac_try_echo=$ac_try;;
16933 esac
16934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16935   (eval "$ac_try") 2>&5
16936   ac_status=$?
16937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938   (exit $ac_status); }; }; then
16939   ac_cv_type_u_int64_t=yes
16940 else
16941   echo "$as_me: failed program was:" >&5
16942 sed 's/^/| /' conftest.$ac_ext >&5
16943
16944         ac_cv_type_u_int64_t=no
16945 fi
16946
16947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16948 fi
16949 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16950 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16951 if test $ac_cv_type_u_int64_t = yes; then
16952
16953 cat >>confdefs.h <<_ACEOF
16954 #define HAVE_U_INT64_T 1
16955 _ACEOF
16956
16957
16958 else
16959   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16960 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16961    { (exit 1); exit 1; }; }
16962 fi
16963
16964 fi
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16976 do
16977 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16978 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16980 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16981   echo $ECHO_N "(cached) $ECHO_C" >&6
16982 else
16983   cat >conftest.$ac_ext <<_ACEOF
16984 /* confdefs.h.  */
16985 _ACEOF
16986 cat confdefs.h >>conftest.$ac_ext
16987 cat >>conftest.$ac_ext <<_ACEOF
16988 /* end confdefs.h.  */
16989 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16990    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16991 #define $ac_func innocuous_$ac_func
16992
16993 /* System header to define __stub macros and hopefully few prototypes,
16994     which can conflict with char $ac_func (); below.
16995     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16996     <limits.h> exists even on freestanding compilers.  */
16997
16998 #ifdef __STDC__
16999 # include <limits.h>
17000 #else
17001 # include <assert.h>
17002 #endif
17003
17004 #undef $ac_func
17005
17006 /* Override any GCC internal prototype to avoid an error.
17007    Use char because int might match the return type of a GCC
17008    builtin and then its argument prototype would still apply.  */
17009 #ifdef __cplusplus
17010 extern "C"
17011 #endif
17012 char $ac_func ();
17013 /* The GNU C library defines this for functions which it implements
17014     to always fail with ENOSYS.  Some functions are actually named
17015     something starting with __ and the normal name is an alias.  */
17016 #if defined __stub_$ac_func || defined __stub___$ac_func
17017 choke me
17018 #endif
17019
17020 int
17021 main ()
17022 {
17023 return $ac_func ();
17024   ;
17025   return 0;
17026 }
17027 _ACEOF
17028 rm -f conftest.$ac_objext conftest$ac_exeext
17029 if { (ac_try="$ac_link"
17030 case "(($ac_try" in
17031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17032   *) ac_try_echo=$ac_try;;
17033 esac
17034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17035   (eval "$ac_link") 2>conftest.er1
17036   ac_status=$?
17037   grep -v '^ *+' conftest.er1 >conftest.err
17038   rm -f conftest.er1
17039   cat conftest.err >&5
17040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041   (exit $ac_status); } &&
17042          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17043   { (case "(($ac_try" in
17044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17045   *) ac_try_echo=$ac_try;;
17046 esac
17047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17048   (eval "$ac_try") 2>&5
17049   ac_status=$?
17050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051   (exit $ac_status); }; } &&
17052          { ac_try='test -s conftest$ac_exeext'
17053   { (case "(($ac_try" in
17054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17055   *) ac_try_echo=$ac_try;;
17056 esac
17057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17058   (eval "$ac_try") 2>&5
17059   ac_status=$?
17060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061   (exit $ac_status); }; }; then
17062   eval "$as_ac_var=yes"
17063 else
17064   echo "$as_me: failed program was:" >&5
17065 sed 's/^/| /' conftest.$ac_ext >&5
17066
17067         eval "$as_ac_var=no"
17068 fi
17069
17070 rm -f core conftest.err conftest.$ac_objext \
17071       conftest$ac_exeext conftest.$ac_ext
17072 fi
17073 ac_res=`eval echo '${'$as_ac_var'}'`
17074                { echo "$as_me:$LINENO: result: $ac_res" >&5
17075 echo "${ECHO_T}$ac_res" >&6; }
17076 if test `eval echo '${'$as_ac_var'}'` = yes; then
17077   cat >>confdefs.h <<_ACEOF
17078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17079 _ACEOF
17080
17081 fi
17082 done
17083
17084
17085
17086
17087
17088 for ac_func in powf fmodf strtof round
17089 do
17090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17091 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17093 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17094   echo $ECHO_N "(cached) $ECHO_C" >&6
17095 else
17096   cat >conftest.$ac_ext <<_ACEOF
17097 /* confdefs.h.  */
17098 _ACEOF
17099 cat confdefs.h >>conftest.$ac_ext
17100 cat >>conftest.$ac_ext <<_ACEOF
17101 /* end confdefs.h.  */
17102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17103    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17104 #define $ac_func innocuous_$ac_func
17105
17106 /* System header to define __stub macros and hopefully few prototypes,
17107     which can conflict with char $ac_func (); below.
17108     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17109     <limits.h> exists even on freestanding compilers.  */
17110
17111 #ifdef __STDC__
17112 # include <limits.h>
17113 #else
17114 # include <assert.h>
17115 #endif
17116
17117 #undef $ac_func
17118
17119 /* Override any GCC internal prototype to avoid an error.
17120    Use char because int might match the return type of a GCC
17121    builtin and then its argument prototype would still apply.  */
17122 #ifdef __cplusplus
17123 extern "C"
17124 #endif
17125 char $ac_func ();
17126 /* The GNU C library defines this for functions which it implements
17127     to always fail with ENOSYS.  Some functions are actually named
17128     something starting with __ and the normal name is an alias.  */
17129 #if defined __stub_$ac_func || defined __stub___$ac_func
17130 choke me
17131 #endif
17132
17133 int
17134 main ()
17135 {
17136 return $ac_func ();
17137   ;
17138   return 0;
17139 }
17140 _ACEOF
17141 rm -f conftest.$ac_objext conftest$ac_exeext
17142 if { (ac_try="$ac_link"
17143 case "(($ac_try" in
17144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17145   *) ac_try_echo=$ac_try;;
17146 esac
17147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17148   (eval "$ac_link") 2>conftest.er1
17149   ac_status=$?
17150   grep -v '^ *+' conftest.er1 >conftest.err
17151   rm -f conftest.er1
17152   cat conftest.err >&5
17153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154   (exit $ac_status); } &&
17155          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17156   { (case "(($ac_try" in
17157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17158   *) ac_try_echo=$ac_try;;
17159 esac
17160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17161   (eval "$ac_try") 2>&5
17162   ac_status=$?
17163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164   (exit $ac_status); }; } &&
17165          { ac_try='test -s conftest$ac_exeext'
17166   { (case "(($ac_try" in
17167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17168   *) ac_try_echo=$ac_try;;
17169 esac
17170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17171   (eval "$ac_try") 2>&5
17172   ac_status=$?
17173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174   (exit $ac_status); }; }; then
17175   eval "$as_ac_var=yes"
17176 else
17177   echo "$as_me: failed program was:" >&5
17178 sed 's/^/| /' conftest.$ac_ext >&5
17179
17180         eval "$as_ac_var=no"
17181 fi
17182
17183 rm -f core conftest.err conftest.$ac_objext \
17184       conftest$ac_exeext conftest.$ac_ext
17185 fi
17186 ac_res=`eval echo '${'$as_ac_var'}'`
17187                { echo "$as_me:$LINENO: result: $ac_res" >&5
17188 echo "${ECHO_T}$ac_res" >&6; }
17189 if test `eval echo '${'$as_ac_var'}'` = yes; then
17190   cat >>confdefs.h <<_ACEOF
17191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17192 _ACEOF
17193
17194 fi
17195 done
17196
17197
17198
17199
17200
17201
17202 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17203 do
17204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17205 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17207 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17208   echo $ECHO_N "(cached) $ECHO_C" >&6
17209 else
17210   cat >conftest.$ac_ext <<_ACEOF
17211 /* confdefs.h.  */
17212 _ACEOF
17213 cat confdefs.h >>conftest.$ac_ext
17214 cat >>conftest.$ac_ext <<_ACEOF
17215 /* end confdefs.h.  */
17216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17217    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17218 #define $ac_func innocuous_$ac_func
17219
17220 /* System header to define __stub macros and hopefully few prototypes,
17221     which can conflict with char $ac_func (); below.
17222     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17223     <limits.h> exists even on freestanding compilers.  */
17224
17225 #ifdef __STDC__
17226 # include <limits.h>
17227 #else
17228 # include <assert.h>
17229 #endif
17230
17231 #undef $ac_func
17232
17233 /* Override any GCC internal prototype to avoid an error.
17234    Use char because int might match the return type of a GCC
17235    builtin and then its argument prototype would still apply.  */
17236 #ifdef __cplusplus
17237 extern "C"
17238 #endif
17239 char $ac_func ();
17240 /* The GNU C library defines this for functions which it implements
17241     to always fail with ENOSYS.  Some functions are actually named
17242     something starting with __ and the normal name is an alias.  */
17243 #if defined __stub_$ac_func || defined __stub___$ac_func
17244 choke me
17245 #endif
17246
17247 int
17248 main ()
17249 {
17250 return $ac_func ();
17251   ;
17252   return 0;
17253 }
17254 _ACEOF
17255 rm -f conftest.$ac_objext conftest$ac_exeext
17256 if { (ac_try="$ac_link"
17257 case "(($ac_try" in
17258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17259   *) ac_try_echo=$ac_try;;
17260 esac
17261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17262   (eval "$ac_link") 2>conftest.er1
17263   ac_status=$?
17264   grep -v '^ *+' conftest.er1 >conftest.err
17265   rm -f conftest.er1
17266   cat conftest.err >&5
17267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268   (exit $ac_status); } &&
17269          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17270   { (case "(($ac_try" in
17271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17272   *) ac_try_echo=$ac_try;;
17273 esac
17274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17275   (eval "$ac_try") 2>&5
17276   ac_status=$?
17277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278   (exit $ac_status); }; } &&
17279          { ac_try='test -s conftest$ac_exeext'
17280   { (case "(($ac_try" in
17281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17282   *) ac_try_echo=$ac_try;;
17283 esac
17284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17285   (eval "$ac_try") 2>&5
17286   ac_status=$?
17287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288   (exit $ac_status); }; }; then
17289   eval "$as_ac_var=yes"
17290 else
17291   echo "$as_me: failed program was:" >&5
17292 sed 's/^/| /' conftest.$ac_ext >&5
17293
17294         eval "$as_ac_var=no"
17295 fi
17296
17297 rm -f core conftest.err conftest.$ac_objext \
17298       conftest$ac_exeext conftest.$ac_ext
17299 fi
17300 ac_res=`eval echo '${'$as_ac_var'}'`
17301                { echo "$as_me:$LINENO: result: $ac_res" >&5
17302 echo "${ECHO_T}$ac_res" >&6; }
17303 if test `eval echo '${'$as_ac_var'}'` = yes; then
17304   cat >>confdefs.h <<_ACEOF
17305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17306 _ACEOF
17307
17308 fi
17309 done
17310
17311
17312
17313
17314 for ac_func in isatty mkdtemp mkstemp
17315 do
17316 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17317 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17319 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17320   echo $ECHO_N "(cached) $ECHO_C" >&6
17321 else
17322   cat >conftest.$ac_ext <<_ACEOF
17323 /* confdefs.h.  */
17324 _ACEOF
17325 cat confdefs.h >>conftest.$ac_ext
17326 cat >>conftest.$ac_ext <<_ACEOF
17327 /* end confdefs.h.  */
17328 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17329    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17330 #define $ac_func innocuous_$ac_func
17331
17332 /* System header to define __stub macros and hopefully few prototypes,
17333     which can conflict with char $ac_func (); below.
17334     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17335     <limits.h> exists even on freestanding compilers.  */
17336
17337 #ifdef __STDC__
17338 # include <limits.h>
17339 #else
17340 # include <assert.h>
17341 #endif
17342
17343 #undef $ac_func
17344
17345 /* Override any GCC internal prototype to avoid an error.
17346    Use char because int might match the return type of a GCC
17347    builtin and then its argument prototype would still apply.  */
17348 #ifdef __cplusplus
17349 extern "C"
17350 #endif
17351 char $ac_func ();
17352 /* The GNU C library defines this for functions which it implements
17353     to always fail with ENOSYS.  Some functions are actually named
17354     something starting with __ and the normal name is an alias.  */
17355 #if defined __stub_$ac_func || defined __stub___$ac_func
17356 choke me
17357 #endif
17358
17359 int
17360 main ()
17361 {
17362 return $ac_func ();
17363   ;
17364   return 0;
17365 }
17366 _ACEOF
17367 rm -f conftest.$ac_objext conftest$ac_exeext
17368 if { (ac_try="$ac_link"
17369 case "(($ac_try" in
17370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17371   *) ac_try_echo=$ac_try;;
17372 esac
17373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17374   (eval "$ac_link") 2>conftest.er1
17375   ac_status=$?
17376   grep -v '^ *+' conftest.er1 >conftest.err
17377   rm -f conftest.er1
17378   cat conftest.err >&5
17379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380   (exit $ac_status); } &&
17381          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17382   { (case "(($ac_try" in
17383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17384   *) ac_try_echo=$ac_try;;
17385 esac
17386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17387   (eval "$ac_try") 2>&5
17388   ac_status=$?
17389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390   (exit $ac_status); }; } &&
17391          { ac_try='test -s conftest$ac_exeext'
17392   { (case "(($ac_try" in
17393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17394   *) ac_try_echo=$ac_try;;
17395 esac
17396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17397   (eval "$ac_try") 2>&5
17398   ac_status=$?
17399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400   (exit $ac_status); }; }; then
17401   eval "$as_ac_var=yes"
17402 else
17403   echo "$as_me: failed program was:" >&5
17404 sed 's/^/| /' conftest.$ac_ext >&5
17405
17406         eval "$as_ac_var=no"
17407 fi
17408
17409 rm -f core conftest.err conftest.$ac_objext \
17410       conftest$ac_exeext conftest.$ac_ext
17411 fi
17412 ac_res=`eval echo '${'$as_ac_var'}'`
17413                { echo "$as_me:$LINENO: result: $ac_res" >&5
17414 echo "${ECHO_T}$ac_res" >&6; }
17415 if test `eval echo '${'$as_ac_var'}'` = yes; then
17416   cat >>confdefs.h <<_ACEOF
17417 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17418 _ACEOF
17419
17420 fi
17421 done
17422
17423
17424
17425
17426
17427
17428 for ac_func in mktemp realpath sbrk setrlimit strdup
17429 do
17430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17431 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17433 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17434   echo $ECHO_N "(cached) $ECHO_C" >&6
17435 else
17436   cat >conftest.$ac_ext <<_ACEOF
17437 /* confdefs.h.  */
17438 _ACEOF
17439 cat confdefs.h >>conftest.$ac_ext
17440 cat >>conftest.$ac_ext <<_ACEOF
17441 /* end confdefs.h.  */
17442 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17443    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17444 #define $ac_func innocuous_$ac_func
17445
17446 /* System header to define __stub macros and hopefully few prototypes,
17447     which can conflict with char $ac_func (); below.
17448     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17449     <limits.h> exists even on freestanding compilers.  */
17450
17451 #ifdef __STDC__
17452 # include <limits.h>
17453 #else
17454 # include <assert.h>
17455 #endif
17456
17457 #undef $ac_func
17458
17459 /* Override any GCC internal prototype to avoid an error.
17460    Use char because int might match the return type of a GCC
17461    builtin and then its argument prototype would still apply.  */
17462 #ifdef __cplusplus
17463 extern "C"
17464 #endif
17465 char $ac_func ();
17466 /* The GNU C library defines this for functions which it implements
17467     to always fail with ENOSYS.  Some functions are actually named
17468     something starting with __ and the normal name is an alias.  */
17469 #if defined __stub_$ac_func || defined __stub___$ac_func
17470 choke me
17471 #endif
17472
17473 int
17474 main ()
17475 {
17476 return $ac_func ();
17477   ;
17478   return 0;
17479 }
17480 _ACEOF
17481 rm -f conftest.$ac_objext conftest$ac_exeext
17482 if { (ac_try="$ac_link"
17483 case "(($ac_try" in
17484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17485   *) ac_try_echo=$ac_try;;
17486 esac
17487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17488   (eval "$ac_link") 2>conftest.er1
17489   ac_status=$?
17490   grep -v '^ *+' conftest.er1 >conftest.err
17491   rm -f conftest.er1
17492   cat conftest.err >&5
17493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494   (exit $ac_status); } &&
17495          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17496   { (case "(($ac_try" in
17497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17498   *) ac_try_echo=$ac_try;;
17499 esac
17500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17501   (eval "$ac_try") 2>&5
17502   ac_status=$?
17503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504   (exit $ac_status); }; } &&
17505          { ac_try='test -s conftest$ac_exeext'
17506   { (case "(($ac_try" in
17507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17508   *) ac_try_echo=$ac_try;;
17509 esac
17510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17511   (eval "$ac_try") 2>&5
17512   ac_status=$?
17513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514   (exit $ac_status); }; }; then
17515   eval "$as_ac_var=yes"
17516 else
17517   echo "$as_me: failed program was:" >&5
17518 sed 's/^/| /' conftest.$ac_ext >&5
17519
17520         eval "$as_ac_var=no"
17521 fi
17522
17523 rm -f core conftest.err conftest.$ac_objext \
17524       conftest$ac_exeext conftest.$ac_ext
17525 fi
17526 ac_res=`eval echo '${'$as_ac_var'}'`
17527                { echo "$as_me:$LINENO: result: $ac_res" >&5
17528 echo "${ECHO_T}$ac_res" >&6; }
17529 if test `eval echo '${'$as_ac_var'}'` = yes; then
17530   cat >>confdefs.h <<_ACEOF
17531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17532 _ACEOF
17533
17534 fi
17535 done
17536
17537
17538
17539
17540
17541 for ac_func in strerror strerror_r strerror_s setenv
17542 do
17543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17544 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17546 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17547   echo $ECHO_N "(cached) $ECHO_C" >&6
17548 else
17549   cat >conftest.$ac_ext <<_ACEOF
17550 /* confdefs.h.  */
17551 _ACEOF
17552 cat confdefs.h >>conftest.$ac_ext
17553 cat >>conftest.$ac_ext <<_ACEOF
17554 /* end confdefs.h.  */
17555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17556    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17557 #define $ac_func innocuous_$ac_func
17558
17559 /* System header to define __stub macros and hopefully few prototypes,
17560     which can conflict with char $ac_func (); below.
17561     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17562     <limits.h> exists even on freestanding compilers.  */
17563
17564 #ifdef __STDC__
17565 # include <limits.h>
17566 #else
17567 # include <assert.h>
17568 #endif
17569
17570 #undef $ac_func
17571
17572 /* Override any GCC internal prototype to avoid an error.
17573    Use char because int might match the return type of a GCC
17574    builtin and then its argument prototype would still apply.  */
17575 #ifdef __cplusplus
17576 extern "C"
17577 #endif
17578 char $ac_func ();
17579 /* The GNU C library defines this for functions which it implements
17580     to always fail with ENOSYS.  Some functions are actually named
17581     something starting with __ and the normal name is an alias.  */
17582 #if defined __stub_$ac_func || defined __stub___$ac_func
17583 choke me
17584 #endif
17585
17586 int
17587 main ()
17588 {
17589 return $ac_func ();
17590   ;
17591   return 0;
17592 }
17593 _ACEOF
17594 rm -f conftest.$ac_objext conftest$ac_exeext
17595 if { (ac_try="$ac_link"
17596 case "(($ac_try" in
17597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17598   *) ac_try_echo=$ac_try;;
17599 esac
17600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17601   (eval "$ac_link") 2>conftest.er1
17602   ac_status=$?
17603   grep -v '^ *+' conftest.er1 >conftest.err
17604   rm -f conftest.er1
17605   cat conftest.err >&5
17606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607   (exit $ac_status); } &&
17608          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17609   { (case "(($ac_try" in
17610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611   *) ac_try_echo=$ac_try;;
17612 esac
17613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614   (eval "$ac_try") 2>&5
17615   ac_status=$?
17616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617   (exit $ac_status); }; } &&
17618          { ac_try='test -s conftest$ac_exeext'
17619   { (case "(($ac_try" in
17620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17621   *) ac_try_echo=$ac_try;;
17622 esac
17623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17624   (eval "$ac_try") 2>&5
17625   ac_status=$?
17626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627   (exit $ac_status); }; }; then
17628   eval "$as_ac_var=yes"
17629 else
17630   echo "$as_me: failed program was:" >&5
17631 sed 's/^/| /' conftest.$ac_ext >&5
17632
17633         eval "$as_ac_var=no"
17634 fi
17635
17636 rm -f core conftest.err conftest.$ac_objext \
17637       conftest$ac_exeext conftest.$ac_ext
17638 fi
17639 ac_res=`eval echo '${'$as_ac_var'}'`
17640                { echo "$as_me:$LINENO: result: $ac_res" >&5
17641 echo "${ECHO_T}$ac_res" >&6; }
17642 if test `eval echo '${'$as_ac_var'}'` = yes; then
17643   cat >>confdefs.h <<_ACEOF
17644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17645 _ACEOF
17646
17647 fi
17648 done
17649
17650
17651
17652
17653
17654 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17655 do
17656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17657 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17659 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17660   echo $ECHO_N "(cached) $ECHO_C" >&6
17661 else
17662   cat >conftest.$ac_ext <<_ACEOF
17663 /* confdefs.h.  */
17664 _ACEOF
17665 cat confdefs.h >>conftest.$ac_ext
17666 cat >>conftest.$ac_ext <<_ACEOF
17667 /* end confdefs.h.  */
17668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17669    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17670 #define $ac_func innocuous_$ac_func
17671
17672 /* System header to define __stub macros and hopefully few prototypes,
17673     which can conflict with char $ac_func (); below.
17674     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17675     <limits.h> exists even on freestanding compilers.  */
17676
17677 #ifdef __STDC__
17678 # include <limits.h>
17679 #else
17680 # include <assert.h>
17681 #endif
17682
17683 #undef $ac_func
17684
17685 /* Override any GCC internal prototype to avoid an error.
17686    Use char because int might match the return type of a GCC
17687    builtin and then its argument prototype would still apply.  */
17688 #ifdef __cplusplus
17689 extern "C"
17690 #endif
17691 char $ac_func ();
17692 /* The GNU C library defines this for functions which it implements
17693     to always fail with ENOSYS.  Some functions are actually named
17694     something starting with __ and the normal name is an alias.  */
17695 #if defined __stub_$ac_func || defined __stub___$ac_func
17696 choke me
17697 #endif
17698
17699 int
17700 main ()
17701 {
17702 return $ac_func ();
17703   ;
17704   return 0;
17705 }
17706 _ACEOF
17707 rm -f conftest.$ac_objext conftest$ac_exeext
17708 if { (ac_try="$ac_link"
17709 case "(($ac_try" in
17710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17711   *) ac_try_echo=$ac_try;;
17712 esac
17713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17714   (eval "$ac_link") 2>conftest.er1
17715   ac_status=$?
17716   grep -v '^ *+' conftest.er1 >conftest.err
17717   rm -f conftest.er1
17718   cat conftest.err >&5
17719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720   (exit $ac_status); } &&
17721          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17722   { (case "(($ac_try" in
17723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17724   *) ac_try_echo=$ac_try;;
17725 esac
17726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17727   (eval "$ac_try") 2>&5
17728   ac_status=$?
17729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730   (exit $ac_status); }; } &&
17731          { ac_try='test -s conftest$ac_exeext'
17732   { (case "(($ac_try" in
17733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17734   *) ac_try_echo=$ac_try;;
17735 esac
17736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17737   (eval "$ac_try") 2>&5
17738   ac_status=$?
17739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740   (exit $ac_status); }; }; then
17741   eval "$as_ac_var=yes"
17742 else
17743   echo "$as_me: failed program was:" >&5
17744 sed 's/^/| /' conftest.$ac_ext >&5
17745
17746         eval "$as_ac_var=no"
17747 fi
17748
17749 rm -f core conftest.err conftest.$ac_objext \
17750       conftest$ac_exeext conftest.$ac_ext
17751 fi
17752 ac_res=`eval echo '${'$as_ac_var'}'`
17753                { echo "$as_me:$LINENO: result: $ac_res" >&5
17754 echo "${ECHO_T}$ac_res" >&6; }
17755 if test `eval echo '${'$as_ac_var'}'` = yes; then
17756   cat >>confdefs.h <<_ACEOF
17757 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17758 _ACEOF
17759
17760 fi
17761 done
17762
17763
17764
17765
17766
17767 for ac_func in setjmp longjmp sigsetjmp siglongjmp
17768 do
17769 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17770 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17772 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17773   echo $ECHO_N "(cached) $ECHO_C" >&6
17774 else
17775   cat >conftest.$ac_ext <<_ACEOF
17776 /* confdefs.h.  */
17777 _ACEOF
17778 cat confdefs.h >>conftest.$ac_ext
17779 cat >>conftest.$ac_ext <<_ACEOF
17780 /* end confdefs.h.  */
17781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17782    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17783 #define $ac_func innocuous_$ac_func
17784
17785 /* System header to define __stub macros and hopefully few prototypes,
17786     which can conflict with char $ac_func (); below.
17787     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17788     <limits.h> exists even on freestanding compilers.  */
17789
17790 #ifdef __STDC__
17791 # include <limits.h>
17792 #else
17793 # include <assert.h>
17794 #endif
17795
17796 #undef $ac_func
17797
17798 /* Override any GCC internal prototype to avoid an error.
17799    Use char because int might match the return type of a GCC
17800    builtin and then its argument prototype would still apply.  */
17801 #ifdef __cplusplus
17802 extern "C"
17803 #endif
17804 char $ac_func ();
17805 /* The GNU C library defines this for functions which it implements
17806     to always fail with ENOSYS.  Some functions are actually named
17807     something starting with __ and the normal name is an alias.  */
17808 #if defined __stub_$ac_func || defined __stub___$ac_func
17809 choke me
17810 #endif
17811
17812 int
17813 main ()
17814 {
17815 return $ac_func ();
17816   ;
17817   return 0;
17818 }
17819 _ACEOF
17820 rm -f conftest.$ac_objext conftest$ac_exeext
17821 if { (ac_try="$ac_link"
17822 case "(($ac_try" in
17823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17824   *) ac_try_echo=$ac_try;;
17825 esac
17826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17827   (eval "$ac_link") 2>conftest.er1
17828   ac_status=$?
17829   grep -v '^ *+' conftest.er1 >conftest.err
17830   rm -f conftest.er1
17831   cat conftest.err >&5
17832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833   (exit $ac_status); } &&
17834          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17835   { (case "(($ac_try" in
17836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17837   *) ac_try_echo=$ac_try;;
17838 esac
17839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17840   (eval "$ac_try") 2>&5
17841   ac_status=$?
17842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843   (exit $ac_status); }; } &&
17844          { ac_try='test -s conftest$ac_exeext'
17845   { (case "(($ac_try" in
17846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17847   *) ac_try_echo=$ac_try;;
17848 esac
17849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17850   (eval "$ac_try") 2>&5
17851   ac_status=$?
17852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853   (exit $ac_status); }; }; then
17854   eval "$as_ac_var=yes"
17855 else
17856   echo "$as_me: failed program was:" >&5
17857 sed 's/^/| /' conftest.$ac_ext >&5
17858
17859         eval "$as_ac_var=no"
17860 fi
17861
17862 rm -f core conftest.err conftest.$ac_objext \
17863       conftest$ac_exeext conftest.$ac_ext
17864 fi
17865 ac_res=`eval echo '${'$as_ac_var'}'`
17866                { echo "$as_me:$LINENO: result: $ac_res" >&5
17867 echo "${ECHO_T}$ac_res" >&6; }
17868 if test `eval echo '${'$as_ac_var'}'` = yes; then
17869   cat >>confdefs.h <<_ACEOF
17870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17871 _ACEOF
17872
17873 fi
17874 done
17875
17876 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17877 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17878 if test "${llvm_cv_c_printf_a+set}" = set; then
17879   echo $ECHO_N "(cached) $ECHO_C" >&6
17880 else
17881   ac_ext=c
17882 ac_cpp='$CPP $CPPFLAGS'
17883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17886
17887  if test "$cross_compiling" = yes; then
17888   llvmac_cv_c_printf_a=no
17889 else
17890   cat >conftest.$ac_ext <<_ACEOF
17891
17892   /* confdefs.h.  */
17893 _ACEOF
17894 cat confdefs.h >>conftest.$ac_ext
17895 cat >>conftest.$ac_ext <<_ACEOF
17896 /* end confdefs.h.  */
17897
17898 #include <stdio.h>
17899 #include <stdlib.h>
17900
17901 int
17902 main ()
17903 {
17904
17905 volatile double A, B;
17906 char Buffer[100];
17907 A = 1;
17908 A /= 10.0;
17909 sprintf(Buffer, "%a", A);
17910 B = atof(Buffer);
17911 if (A != B)
17912   return (1);
17913 if (A != 0x1.999999999999ap-4)
17914   return (1);
17915 return (0);
17916   ;
17917   return 0;
17918 }
17919 _ACEOF
17920 rm -f conftest$ac_exeext
17921 if { (ac_try="$ac_link"
17922 case "(($ac_try" in
17923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17924   *) ac_try_echo=$ac_try;;
17925 esac
17926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17927   (eval "$ac_link") 2>&5
17928   ac_status=$?
17929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17931   { (case "(($ac_try" in
17932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17933   *) ac_try_echo=$ac_try;;
17934 esac
17935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17936   (eval "$ac_try") 2>&5
17937   ac_status=$?
17938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939   (exit $ac_status); }; }; then
17940   llvm_cv_c_printf_a=yes
17941 else
17942   echo "$as_me: program exited with status $ac_status" >&5
17943 echo "$as_me: failed program was:" >&5
17944 sed 's/^/| /' conftest.$ac_ext >&5
17945
17946 ( exit $ac_status )
17947 llvmac_cv_c_printf_a=no
17948 fi
17949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17950 fi
17951
17952
17953  ac_ext=c
17954 ac_cpp='$CPP $CPPFLAGS'
17955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17958
17959 fi
17960 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17961 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17962  if test "$llvm_cv_c_printf_a" = "yes"; then
17963
17964 cat >>confdefs.h <<\_ACEOF
17965 #define HAVE_PRINTF_A 1
17966 _ACEOF
17967
17968  fi
17969
17970
17971 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17972 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17973 if test "${ac_cv_func_rand48+set}" = set; then
17974   echo $ECHO_N "(cached) $ECHO_C" >&6
17975 else
17976   ac_ext=cpp
17977 ac_cpp='$CXXCPP $CPPFLAGS'
17978 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17979 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17980 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17981
17982    cat >conftest.$ac_ext <<_ACEOF
17983 /* confdefs.h.  */
17984 _ACEOF
17985 cat confdefs.h >>conftest.$ac_ext
17986 cat >>conftest.$ac_ext <<_ACEOF
17987 /* end confdefs.h.  */
17988 #include <stdlib.h>
17989 int
17990 main ()
17991 {
17992 srand48(0);lrand48();drand48();
17993   ;
17994   return 0;
17995 }
17996 _ACEOF
17997 rm -f conftest.$ac_objext
17998 if { (ac_try="$ac_compile"
17999 case "(($ac_try" in
18000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18001   *) ac_try_echo=$ac_try;;
18002 esac
18003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18004   (eval "$ac_compile") 2>conftest.er1
18005   ac_status=$?
18006   grep -v '^ *+' conftest.er1 >conftest.err
18007   rm -f conftest.er1
18008   cat conftest.err >&5
18009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010   (exit $ac_status); } &&
18011          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18012   { (case "(($ac_try" in
18013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014   *) ac_try_echo=$ac_try;;
18015 esac
18016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18017   (eval "$ac_try") 2>&5
18018   ac_status=$?
18019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020   (exit $ac_status); }; } &&
18021          { ac_try='test -s conftest.$ac_objext'
18022   { (case "(($ac_try" in
18023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18024   *) ac_try_echo=$ac_try;;
18025 esac
18026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18027   (eval "$ac_try") 2>&5
18028   ac_status=$?
18029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030   (exit $ac_status); }; }; then
18031   ac_cv_func_rand48=yes
18032 else
18033   echo "$as_me: failed program was:" >&5
18034 sed 's/^/| /' conftest.$ac_ext >&5
18035
18036         ac_cv_func_rand48=no
18037 fi
18038
18039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18040   ac_ext=c
18041 ac_cpp='$CPP $CPPFLAGS'
18042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18045
18046 fi
18047 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18048 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18049
18050 if test "$ac_cv_func_rand48" = "yes" ; then
18051
18052 cat >>confdefs.h <<\_ACEOF
18053 #define HAVE_RAND48 1
18054 _ACEOF
18055
18056 fi
18057
18058
18059
18060 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18061 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18062 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18063   echo $ECHO_N "(cached) $ECHO_C" >&6
18064 else
18065   ac_ext=cpp
18066 ac_cpp='$CXXCPP $CPPFLAGS'
18067 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18068 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18069 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18070
18071    cat >conftest.$ac_ext <<_ACEOF
18072 /* confdefs.h.  */
18073 _ACEOF
18074 cat confdefs.h >>conftest.$ac_ext
18075 cat >>conftest.$ac_ext <<_ACEOF
18076 /* end confdefs.h.  */
18077 #include <math.h>
18078 int
18079 main ()
18080 {
18081 float f; isnan(f);
18082   ;
18083   return 0;
18084 }
18085 _ACEOF
18086 rm -f conftest.$ac_objext
18087 if { (ac_try="$ac_compile"
18088 case "(($ac_try" in
18089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18090   *) ac_try_echo=$ac_try;;
18091 esac
18092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18093   (eval "$ac_compile") 2>conftest.er1
18094   ac_status=$?
18095   grep -v '^ *+' conftest.er1 >conftest.err
18096   rm -f conftest.er1
18097   cat conftest.err >&5
18098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099   (exit $ac_status); } &&
18100          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18101   { (case "(($ac_try" in
18102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18103   *) ac_try_echo=$ac_try;;
18104 esac
18105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18106   (eval "$ac_try") 2>&5
18107   ac_status=$?
18108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109   (exit $ac_status); }; } &&
18110          { ac_try='test -s conftest.$ac_objext'
18111   { (case "(($ac_try" in
18112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18113   *) ac_try_echo=$ac_try;;
18114 esac
18115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18116   (eval "$ac_try") 2>&5
18117   ac_status=$?
18118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119   (exit $ac_status); }; }; then
18120   ac_cv_func_isnan_in_math_h=yes
18121 else
18122   echo "$as_me: failed program was:" >&5
18123 sed 's/^/| /' conftest.$ac_ext >&5
18124
18125         ac_cv_func_isnan_in_math_h=no
18126 fi
18127
18128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18129   ac_ext=c
18130 ac_cpp='$CPP $CPPFLAGS'
18131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18134
18135 fi
18136 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18137 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18138
18139
18140 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18141
18142 cat >>confdefs.h <<\_ACEOF
18143 #define HAVE_ISNAN_IN_MATH_H 1
18144 _ACEOF
18145
18146 fi
18147
18148 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18149 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18150 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18151   echo $ECHO_N "(cached) $ECHO_C" >&6
18152 else
18153   ac_ext=cpp
18154 ac_cpp='$CXXCPP $CPPFLAGS'
18155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18156 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18158
18159    cat >conftest.$ac_ext <<_ACEOF
18160 /* confdefs.h.  */
18161 _ACEOF
18162 cat confdefs.h >>conftest.$ac_ext
18163 cat >>conftest.$ac_ext <<_ACEOF
18164 /* end confdefs.h.  */
18165 #include <cmath>
18166 int
18167 main ()
18168 {
18169 float f; isnan(f);
18170   ;
18171   return 0;
18172 }
18173 _ACEOF
18174 rm -f conftest.$ac_objext
18175 if { (ac_try="$ac_compile"
18176 case "(($ac_try" in
18177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18178   *) ac_try_echo=$ac_try;;
18179 esac
18180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18181   (eval "$ac_compile") 2>conftest.er1
18182   ac_status=$?
18183   grep -v '^ *+' conftest.er1 >conftest.err
18184   rm -f conftest.er1
18185   cat conftest.err >&5
18186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187   (exit $ac_status); } &&
18188          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18189   { (case "(($ac_try" in
18190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18191   *) ac_try_echo=$ac_try;;
18192 esac
18193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18194   (eval "$ac_try") 2>&5
18195   ac_status=$?
18196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197   (exit $ac_status); }; } &&
18198          { ac_try='test -s conftest.$ac_objext'
18199   { (case "(($ac_try" in
18200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18201   *) ac_try_echo=$ac_try;;
18202 esac
18203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18204   (eval "$ac_try") 2>&5
18205   ac_status=$?
18206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207   (exit $ac_status); }; }; then
18208   ac_cv_func_isnan_in_cmath=yes
18209 else
18210   echo "$as_me: failed program was:" >&5
18211 sed 's/^/| /' conftest.$ac_ext >&5
18212
18213         ac_cv_func_isnan_in_cmath=no
18214 fi
18215
18216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18217   ac_ext=c
18218 ac_cpp='$CPP $CPPFLAGS'
18219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18222
18223 fi
18224 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18225 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
18226
18227 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18228
18229 cat >>confdefs.h <<\_ACEOF
18230 #define HAVE_ISNAN_IN_CMATH 1
18231 _ACEOF
18232
18233 fi
18234
18235 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18236 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18237 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18238   echo $ECHO_N "(cached) $ECHO_C" >&6
18239 else
18240   ac_ext=cpp
18241 ac_cpp='$CXXCPP $CPPFLAGS'
18242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18245
18246    cat >conftest.$ac_ext <<_ACEOF
18247 /* confdefs.h.  */
18248 _ACEOF
18249 cat confdefs.h >>conftest.$ac_ext
18250 cat >>conftest.$ac_ext <<_ACEOF
18251 /* end confdefs.h.  */
18252 #include <cmath>
18253 int
18254 main ()
18255 {
18256 float f; std::isnan(f);
18257   ;
18258   return 0;
18259 }
18260 _ACEOF
18261 rm -f conftest.$ac_objext
18262 if { (ac_try="$ac_compile"
18263 case "(($ac_try" in
18264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18265   *) ac_try_echo=$ac_try;;
18266 esac
18267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18268   (eval "$ac_compile") 2>conftest.er1
18269   ac_status=$?
18270   grep -v '^ *+' conftest.er1 >conftest.err
18271   rm -f conftest.er1
18272   cat conftest.err >&5
18273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274   (exit $ac_status); } &&
18275          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18276   { (case "(($ac_try" in
18277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18278   *) ac_try_echo=$ac_try;;
18279 esac
18280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18281   (eval "$ac_try") 2>&5
18282   ac_status=$?
18283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284   (exit $ac_status); }; } &&
18285          { ac_try='test -s conftest.$ac_objext'
18286   { (case "(($ac_try" in
18287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18288   *) ac_try_echo=$ac_try;;
18289 esac
18290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18291   (eval "$ac_try") 2>&5
18292   ac_status=$?
18293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294   (exit $ac_status); }; }; then
18295   ac_cv_func_std_isnan_in_cmath=yes
18296 else
18297   echo "$as_me: failed program was:" >&5
18298 sed 's/^/| /' conftest.$ac_ext >&5
18299
18300         ac_cv_func_std_isnan_in_cmath=no
18301 fi
18302
18303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18304   ac_ext=c
18305 ac_cpp='$CPP $CPPFLAGS'
18306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18309
18310 fi
18311 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18312 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
18313
18314 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
18315
18316 cat >>confdefs.h <<\_ACEOF
18317 #define HAVE_STD_ISNAN_IN_CMATH 1
18318 _ACEOF
18319
18320 fi
18321
18322
18323 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18324 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18325 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18326   echo $ECHO_N "(cached) $ECHO_C" >&6
18327 else
18328   ac_ext=cpp
18329 ac_cpp='$CXXCPP $CPPFLAGS'
18330 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18331 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18332 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18333
18334    cat >conftest.$ac_ext <<_ACEOF
18335 /* confdefs.h.  */
18336 _ACEOF
18337 cat confdefs.h >>conftest.$ac_ext
18338 cat >>conftest.$ac_ext <<_ACEOF
18339 /* end confdefs.h.  */
18340 #include <math.h>
18341 int
18342 main ()
18343 {
18344 float f; isinf(f);
18345   ;
18346   return 0;
18347 }
18348 _ACEOF
18349 rm -f conftest.$ac_objext
18350 if { (ac_try="$ac_compile"
18351 case "(($ac_try" in
18352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18353   *) ac_try_echo=$ac_try;;
18354 esac
18355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18356   (eval "$ac_compile") 2>conftest.er1
18357   ac_status=$?
18358   grep -v '^ *+' conftest.er1 >conftest.err
18359   rm -f conftest.er1
18360   cat conftest.err >&5
18361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362   (exit $ac_status); } &&
18363          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18364   { (case "(($ac_try" in
18365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18366   *) ac_try_echo=$ac_try;;
18367 esac
18368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18369   (eval "$ac_try") 2>&5
18370   ac_status=$?
18371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372   (exit $ac_status); }; } &&
18373          { ac_try='test -s conftest.$ac_objext'
18374   { (case "(($ac_try" in
18375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18376   *) ac_try_echo=$ac_try;;
18377 esac
18378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18379   (eval "$ac_try") 2>&5
18380   ac_status=$?
18381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382   (exit $ac_status); }; }; then
18383   ac_cv_func_isinf_in_math_h=yes
18384 else
18385   echo "$as_me: failed program was:" >&5
18386 sed 's/^/| /' conftest.$ac_ext >&5
18387
18388         ac_cv_func_isinf_in_math_h=no
18389 fi
18390
18391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18392   ac_ext=c
18393 ac_cpp='$CPP $CPPFLAGS'
18394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18397
18398 fi
18399 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18400 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
18401
18402 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
18403
18404 cat >>confdefs.h <<\_ACEOF
18405 #define HAVE_ISINF_IN_MATH_H 1
18406 _ACEOF
18407
18408 fi
18409
18410 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18411 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18412 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18413   echo $ECHO_N "(cached) $ECHO_C" >&6
18414 else
18415   ac_ext=cpp
18416 ac_cpp='$CXXCPP $CPPFLAGS'
18417 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18418 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18419 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18420
18421    cat >conftest.$ac_ext <<_ACEOF
18422 /* confdefs.h.  */
18423 _ACEOF
18424 cat confdefs.h >>conftest.$ac_ext
18425 cat >>conftest.$ac_ext <<_ACEOF
18426 /* end confdefs.h.  */
18427 #include <cmath>
18428 int
18429 main ()
18430 {
18431 float f; isinf(f);
18432   ;
18433   return 0;
18434 }
18435 _ACEOF
18436 rm -f conftest.$ac_objext
18437 if { (ac_try="$ac_compile"
18438 case "(($ac_try" in
18439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18440   *) ac_try_echo=$ac_try;;
18441 esac
18442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18443   (eval "$ac_compile") 2>conftest.er1
18444   ac_status=$?
18445   grep -v '^ *+' conftest.er1 >conftest.err
18446   rm -f conftest.er1
18447   cat conftest.err >&5
18448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449   (exit $ac_status); } &&
18450          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18451   { (case "(($ac_try" in
18452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18453   *) ac_try_echo=$ac_try;;
18454 esac
18455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18456   (eval "$ac_try") 2>&5
18457   ac_status=$?
18458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459   (exit $ac_status); }; } &&
18460          { ac_try='test -s conftest.$ac_objext'
18461   { (case "(($ac_try" in
18462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18463   *) ac_try_echo=$ac_try;;
18464 esac
18465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18466   (eval "$ac_try") 2>&5
18467   ac_status=$?
18468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469   (exit $ac_status); }; }; then
18470   ac_cv_func_isinf_in_cmath=yes
18471 else
18472   echo "$as_me: failed program was:" >&5
18473 sed 's/^/| /' conftest.$ac_ext >&5
18474
18475         ac_cv_func_isinf_in_cmath=no
18476 fi
18477
18478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18479   ac_ext=c
18480 ac_cpp='$CPP $CPPFLAGS'
18481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18484
18485 fi
18486 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18487 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18488
18489 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18490
18491 cat >>confdefs.h <<\_ACEOF
18492 #define HAVE_ISINF_IN_CMATH 1
18493 _ACEOF
18494
18495 fi
18496
18497 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18498 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18499 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18500   echo $ECHO_N "(cached) $ECHO_C" >&6
18501 else
18502   ac_ext=cpp
18503 ac_cpp='$CXXCPP $CPPFLAGS'
18504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18507
18508    cat >conftest.$ac_ext <<_ACEOF
18509 /* confdefs.h.  */
18510 _ACEOF
18511 cat confdefs.h >>conftest.$ac_ext
18512 cat >>conftest.$ac_ext <<_ACEOF
18513 /* end confdefs.h.  */
18514 #include <cmath>
18515 int
18516 main ()
18517 {
18518 float f; std::isinf(f)}
18519   ;
18520   return 0;
18521 }
18522 _ACEOF
18523 rm -f conftest.$ac_objext
18524 if { (ac_try="$ac_compile"
18525 case "(($ac_try" in
18526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18527   *) ac_try_echo=$ac_try;;
18528 esac
18529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18530   (eval "$ac_compile") 2>conftest.er1
18531   ac_status=$?
18532   grep -v '^ *+' conftest.er1 >conftest.err
18533   rm -f conftest.er1
18534   cat conftest.err >&5
18535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536   (exit $ac_status); } &&
18537          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18538   { (case "(($ac_try" in
18539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18540   *) ac_try_echo=$ac_try;;
18541 esac
18542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18543   (eval "$ac_try") 2>&5
18544   ac_status=$?
18545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546   (exit $ac_status); }; } &&
18547          { ac_try='test -s conftest.$ac_objext'
18548   { (case "(($ac_try" in
18549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18550   *) ac_try_echo=$ac_try;;
18551 esac
18552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18553   (eval "$ac_try") 2>&5
18554   ac_status=$?
18555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556   (exit $ac_status); }; }; then
18557   ac_cv_func_std_isinf_in_cmath=yes
18558 else
18559   echo "$as_me: failed program was:" >&5
18560 sed 's/^/| /' conftest.$ac_ext >&5
18561
18562         ac_cv_func_std_isinf_in_cmath=no
18563 fi
18564
18565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18566   ac_ext=c
18567 ac_cpp='$CPP $CPPFLAGS'
18568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18571
18572 fi
18573 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18574 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
18575
18576 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18577
18578 cat >>confdefs.h <<\_ACEOF
18579 #define HAVE_STD_ISINF_IN_CMATH 1
18580 _ACEOF
18581
18582 fi
18583
18584 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18585 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18586 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18587   echo $ECHO_N "(cached) $ECHO_C" >&6
18588 else
18589   ac_ext=cpp
18590 ac_cpp='$CXXCPP $CPPFLAGS'
18591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18594
18595    cat >conftest.$ac_ext <<_ACEOF
18596 /* confdefs.h.  */
18597 _ACEOF
18598 cat confdefs.h >>conftest.$ac_ext
18599 cat >>conftest.$ac_ext <<_ACEOF
18600 /* end confdefs.h.  */
18601 #include <ieeefp.h>
18602 int
18603 main ()
18604 {
18605 float f; finite(f);
18606   ;
18607   return 0;
18608 }
18609 _ACEOF
18610 rm -f conftest.$ac_objext
18611 if { (ac_try="$ac_compile"
18612 case "(($ac_try" in
18613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18614   *) ac_try_echo=$ac_try;;
18615 esac
18616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18617   (eval "$ac_compile") 2>conftest.er1
18618   ac_status=$?
18619   grep -v '^ *+' conftest.er1 >conftest.err
18620   rm -f conftest.er1
18621   cat conftest.err >&5
18622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623   (exit $ac_status); } &&
18624          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18625   { (case "(($ac_try" in
18626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627   *) ac_try_echo=$ac_try;;
18628 esac
18629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18630   (eval "$ac_try") 2>&5
18631   ac_status=$?
18632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633   (exit $ac_status); }; } &&
18634          { ac_try='test -s conftest.$ac_objext'
18635   { (case "(($ac_try" in
18636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18637   *) ac_try_echo=$ac_try;;
18638 esac
18639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18640   (eval "$ac_try") 2>&5
18641   ac_status=$?
18642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643   (exit $ac_status); }; }; then
18644   ac_cv_func_finite_in_ieeefp_h=yes
18645 else
18646   echo "$as_me: failed program was:" >&5
18647 sed 's/^/| /' conftest.$ac_ext >&5
18648
18649         ac_cv_func_finite_in_ieeefp_h=no
18650 fi
18651
18652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18653   ac_ext=c
18654 ac_cpp='$CPP $CPPFLAGS'
18655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18658
18659 fi
18660 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18661 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
18662
18663 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18664
18665 cat >>confdefs.h <<\_ACEOF
18666 #define HAVE_FINITE_IN_IEEEFP_H 1
18667 _ACEOF
18668
18669 fi
18670
18671
18672
18673 if test "$llvm_cv_platform_type" = "Unix" ; then
18674
18675
18676 for ac_header in stdlib.h unistd.h
18677 do
18678 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18680   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18683   echo $ECHO_N "(cached) $ECHO_C" >&6
18684 fi
18685 ac_res=`eval echo '${'$as_ac_Header'}'`
18686                { echo "$as_me:$LINENO: result: $ac_res" >&5
18687 echo "${ECHO_T}$ac_res" >&6; }
18688 else
18689   # Is the header compilable?
18690 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18692 cat >conftest.$ac_ext <<_ACEOF
18693 /* confdefs.h.  */
18694 _ACEOF
18695 cat confdefs.h >>conftest.$ac_ext
18696 cat >>conftest.$ac_ext <<_ACEOF
18697 /* end confdefs.h.  */
18698 $ac_includes_default
18699 #include <$ac_header>
18700 _ACEOF
18701 rm -f conftest.$ac_objext
18702 if { (ac_try="$ac_compile"
18703 case "(($ac_try" in
18704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18705   *) ac_try_echo=$ac_try;;
18706 esac
18707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18708   (eval "$ac_compile") 2>conftest.er1
18709   ac_status=$?
18710   grep -v '^ *+' conftest.er1 >conftest.err
18711   rm -f conftest.er1
18712   cat conftest.err >&5
18713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714   (exit $ac_status); } &&
18715          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18716   { (case "(($ac_try" in
18717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18718   *) ac_try_echo=$ac_try;;
18719 esac
18720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18721   (eval "$ac_try") 2>&5
18722   ac_status=$?
18723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724   (exit $ac_status); }; } &&
18725          { ac_try='test -s conftest.$ac_objext'
18726   { (case "(($ac_try" in
18727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18728   *) ac_try_echo=$ac_try;;
18729 esac
18730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18731   (eval "$ac_try") 2>&5
18732   ac_status=$?
18733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734   (exit $ac_status); }; }; then
18735   ac_header_compiler=yes
18736 else
18737   echo "$as_me: failed program was:" >&5
18738 sed 's/^/| /' conftest.$ac_ext >&5
18739
18740         ac_header_compiler=no
18741 fi
18742
18743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18744 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18745 echo "${ECHO_T}$ac_header_compiler" >&6; }
18746
18747 # Is the header present?
18748 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18749 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18750 cat >conftest.$ac_ext <<_ACEOF
18751 /* confdefs.h.  */
18752 _ACEOF
18753 cat confdefs.h >>conftest.$ac_ext
18754 cat >>conftest.$ac_ext <<_ACEOF
18755 /* end confdefs.h.  */
18756 #include <$ac_header>
18757 _ACEOF
18758 if { (ac_try="$ac_cpp conftest.$ac_ext"
18759 case "(($ac_try" in
18760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18761   *) ac_try_echo=$ac_try;;
18762 esac
18763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18764   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18765   ac_status=$?
18766   grep -v '^ *+' conftest.er1 >conftest.err
18767   rm -f conftest.er1
18768   cat conftest.err >&5
18769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770   (exit $ac_status); } >/dev/null; then
18771   if test -s conftest.err; then
18772     ac_cpp_err=$ac_c_preproc_warn_flag
18773     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18774   else
18775     ac_cpp_err=
18776   fi
18777 else
18778   ac_cpp_err=yes
18779 fi
18780 if test -z "$ac_cpp_err"; then
18781   ac_header_preproc=yes
18782 else
18783   echo "$as_me: failed program was:" >&5
18784 sed 's/^/| /' conftest.$ac_ext >&5
18785
18786   ac_header_preproc=no
18787 fi
18788
18789 rm -f conftest.err conftest.$ac_ext
18790 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18791 echo "${ECHO_T}$ac_header_preproc" >&6; }
18792
18793 # So?  What about this header?
18794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18795   yes:no: )
18796     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18797 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18798     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18799 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18800     ac_header_preproc=yes
18801     ;;
18802   no:yes:* )
18803     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18804 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18805     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18806 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18807     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18808 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18809     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18810 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18811     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18812 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18813     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18814 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18815     ( cat <<\_ASBOX
18816 ## ----------------------------------- ##
18817 ## Report this to llvmbugs@cs.uiuc.edu ##
18818 ## ----------------------------------- ##
18819 _ASBOX
18820      ) | sed "s/^/$as_me: WARNING:     /" >&2
18821     ;;
18822 esac
18823 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18826   echo $ECHO_N "(cached) $ECHO_C" >&6
18827 else
18828   eval "$as_ac_Header=\$ac_header_preproc"
18829 fi
18830 ac_res=`eval echo '${'$as_ac_Header'}'`
18831                { echo "$as_me:$LINENO: result: $ac_res" >&5
18832 echo "${ECHO_T}$ac_res" >&6; }
18833
18834 fi
18835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18836   cat >>confdefs.h <<_ACEOF
18837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18838 _ACEOF
18839
18840 fi
18841
18842 done
18843
18844
18845 for ac_func in getpagesize
18846 do
18847 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18848 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18849 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18850 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18851   echo $ECHO_N "(cached) $ECHO_C" >&6
18852 else
18853   cat >conftest.$ac_ext <<_ACEOF
18854 /* confdefs.h.  */
18855 _ACEOF
18856 cat confdefs.h >>conftest.$ac_ext
18857 cat >>conftest.$ac_ext <<_ACEOF
18858 /* end confdefs.h.  */
18859 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18860    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18861 #define $ac_func innocuous_$ac_func
18862
18863 /* System header to define __stub macros and hopefully few prototypes,
18864     which can conflict with char $ac_func (); below.
18865     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18866     <limits.h> exists even on freestanding compilers.  */
18867
18868 #ifdef __STDC__
18869 # include <limits.h>
18870 #else
18871 # include <assert.h>
18872 #endif
18873
18874 #undef $ac_func
18875
18876 /* Override any GCC internal prototype to avoid an error.
18877    Use char because int might match the return type of a GCC
18878    builtin and then its argument prototype would still apply.  */
18879 #ifdef __cplusplus
18880 extern "C"
18881 #endif
18882 char $ac_func ();
18883 /* The GNU C library defines this for functions which it implements
18884     to always fail with ENOSYS.  Some functions are actually named
18885     something starting with __ and the normal name is an alias.  */
18886 #if defined __stub_$ac_func || defined __stub___$ac_func
18887 choke me
18888 #endif
18889
18890 int
18891 main ()
18892 {
18893 return $ac_func ();
18894   ;
18895   return 0;
18896 }
18897 _ACEOF
18898 rm -f conftest.$ac_objext conftest$ac_exeext
18899 if { (ac_try="$ac_link"
18900 case "(($ac_try" in
18901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18902   *) ac_try_echo=$ac_try;;
18903 esac
18904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18905   (eval "$ac_link") 2>conftest.er1
18906   ac_status=$?
18907   grep -v '^ *+' conftest.er1 >conftest.err
18908   rm -f conftest.er1
18909   cat conftest.err >&5
18910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911   (exit $ac_status); } &&
18912          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18913   { (case "(($ac_try" in
18914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18915   *) ac_try_echo=$ac_try;;
18916 esac
18917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18918   (eval "$ac_try") 2>&5
18919   ac_status=$?
18920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921   (exit $ac_status); }; } &&
18922          { ac_try='test -s conftest$ac_exeext'
18923   { (case "(($ac_try" in
18924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18925   *) ac_try_echo=$ac_try;;
18926 esac
18927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18928   (eval "$ac_try") 2>&5
18929   ac_status=$?
18930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931   (exit $ac_status); }; }; then
18932   eval "$as_ac_var=yes"
18933 else
18934   echo "$as_me: failed program was:" >&5
18935 sed 's/^/| /' conftest.$ac_ext >&5
18936
18937         eval "$as_ac_var=no"
18938 fi
18939
18940 rm -f core conftest.err conftest.$ac_objext \
18941       conftest$ac_exeext conftest.$ac_ext
18942 fi
18943 ac_res=`eval echo '${'$as_ac_var'}'`
18944                { echo "$as_me:$LINENO: result: $ac_res" >&5
18945 echo "${ECHO_T}$ac_res" >&6; }
18946 if test `eval echo '${'$as_ac_var'}'` = yes; then
18947   cat >>confdefs.h <<_ACEOF
18948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18949 _ACEOF
18950
18951 fi
18952 done
18953
18954 { echo "$as_me:$LINENO: checking for working mmap" >&5
18955 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
18956 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
18957   echo $ECHO_N "(cached) $ECHO_C" >&6
18958 else
18959   if test "$cross_compiling" = yes; then
18960   ac_cv_func_mmap_fixed_mapped=no
18961 else
18962   cat >conftest.$ac_ext <<_ACEOF
18963 /* confdefs.h.  */
18964 _ACEOF
18965 cat confdefs.h >>conftest.$ac_ext
18966 cat >>conftest.$ac_ext <<_ACEOF
18967 /* end confdefs.h.  */
18968 $ac_includes_default
18969 /* malloc might have been renamed as rpl_malloc. */
18970 #undef malloc
18971
18972 /* Thanks to Mike Haertel and Jim Avera for this test.
18973    Here is a matrix of mmap possibilities:
18974         mmap private not fixed
18975         mmap private fixed at somewhere currently unmapped
18976         mmap private fixed at somewhere already mapped
18977         mmap shared not fixed
18978         mmap shared fixed at somewhere currently unmapped
18979         mmap shared fixed at somewhere already mapped
18980    For private mappings, we should verify that changes cannot be read()
18981    back from the file, nor mmap's back from the file at a different
18982    address.  (There have been systems where private was not correctly
18983    implemented like the infamous i386 svr4.0, and systems where the
18984    VM page cache was not coherent with the file system buffer cache
18985    like early versions of FreeBSD and possibly contemporary NetBSD.)
18986    For shared mappings, we should conversely verify that changes get
18987    propagated back to all the places they're supposed to be.
18988
18989    Grep wants private fixed already mapped.
18990    The main things grep needs to know about mmap are:
18991    * does it exist and is it safe to write into the mmap'd area
18992    * how to use it (BSD variants)  */
18993
18994 #include <fcntl.h>
18995 #include <sys/mman.h>
18996
18997 #if !STDC_HEADERS && !HAVE_STDLIB_H
18998 char *malloc ();
18999 #endif
19000
19001 /* This mess was copied from the GNU getpagesize.h.  */
19002 #if !HAVE_GETPAGESIZE
19003 /* Assume that all systems that can run configure have sys/param.h.  */
19004 # if !HAVE_SYS_PARAM_H
19005 #  define HAVE_SYS_PARAM_H 1
19006 # endif
19007
19008 # ifdef _SC_PAGESIZE
19009 #  define getpagesize() sysconf(_SC_PAGESIZE)
19010 # else /* no _SC_PAGESIZE */
19011 #  if HAVE_SYS_PARAM_H
19012 #   include <sys/param.h>
19013 #   ifdef EXEC_PAGESIZE
19014 #    define getpagesize() EXEC_PAGESIZE
19015 #   else /* no EXEC_PAGESIZE */
19016 #    ifdef NBPG
19017 #     define getpagesize() NBPG * CLSIZE
19018 #     ifndef CLSIZE
19019 #      define CLSIZE 1
19020 #     endif /* no CLSIZE */
19021 #    else /* no NBPG */
19022 #     ifdef NBPC
19023 #      define getpagesize() NBPC
19024 #     else /* no NBPC */
19025 #      ifdef PAGESIZE
19026 #       define getpagesize() PAGESIZE
19027 #      endif /* PAGESIZE */
19028 #     endif /* no NBPC */
19029 #    endif /* no NBPG */
19030 #   endif /* no EXEC_PAGESIZE */
19031 #  else /* no HAVE_SYS_PARAM_H */
19032 #   define getpagesize() 8192   /* punt totally */
19033 #  endif /* no HAVE_SYS_PARAM_H */
19034 # endif /* no _SC_PAGESIZE */
19035
19036 #endif /* no HAVE_GETPAGESIZE */
19037
19038 int
19039 main ()
19040 {
19041   char *data, *data2, *data3;
19042   int i, pagesize;
19043   int fd;
19044
19045   pagesize = getpagesize ();
19046
19047   /* First, make a file with some known garbage in it. */
19048   data = (char *) malloc (pagesize);
19049   if (!data)
19050     return 1;
19051   for (i = 0; i < pagesize; ++i)
19052     *(data + i) = rand ();
19053   umask (0);
19054   fd = creat ("conftest.mmap", 0600);
19055   if (fd < 0)
19056     return 1;
19057   if (write (fd, data, pagesize) != pagesize)
19058     return 1;
19059   close (fd);
19060
19061   /* Next, try to mmap the file at a fixed address which already has
19062      something else allocated at it.  If we can, also make sure that
19063      we see the same garbage.  */
19064   fd = open ("conftest.mmap", O_RDWR);
19065   if (fd < 0)
19066     return 1;
19067   data2 = (char *) malloc (2 * pagesize);
19068   if (!data2)
19069     return 1;
19070   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19071   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19072                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
19073     return 1;
19074   for (i = 0; i < pagesize; ++i)
19075     if (*(data + i) != *(data2 + i))
19076       return 1;
19077
19078   /* Finally, make sure that changes to the mapped area do not
19079      percolate back to the file as seen by read().  (This is a bug on
19080      some variants of i386 svr4.0.)  */
19081   for (i = 0; i < pagesize; ++i)
19082     *(data2 + i) = *(data2 + i) + 1;
19083   data3 = (char *) malloc (pagesize);
19084   if (!data3)
19085     return 1;
19086   if (read (fd, data3, pagesize) != pagesize)
19087     return 1;
19088   for (i = 0; i < pagesize; ++i)
19089     if (*(data + i) != *(data3 + i))
19090       return 1;
19091   close (fd);
19092   return 0;
19093 }
19094 _ACEOF
19095 rm -f conftest$ac_exeext
19096 if { (ac_try="$ac_link"
19097 case "(($ac_try" in
19098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19099   *) ac_try_echo=$ac_try;;
19100 esac
19101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19102   (eval "$ac_link") 2>&5
19103   ac_status=$?
19104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19106   { (case "(($ac_try" in
19107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19108   *) ac_try_echo=$ac_try;;
19109 esac
19110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19111   (eval "$ac_try") 2>&5
19112   ac_status=$?
19113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114   (exit $ac_status); }; }; then
19115   ac_cv_func_mmap_fixed_mapped=yes
19116 else
19117   echo "$as_me: program exited with status $ac_status" >&5
19118 echo "$as_me: failed program was:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19120
19121 ( exit $ac_status )
19122 ac_cv_func_mmap_fixed_mapped=no
19123 fi
19124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19125 fi
19126
19127
19128 fi
19129 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19130 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19131 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19132
19133 cat >>confdefs.h <<\_ACEOF
19134 #define HAVE_MMAP 1
19135 _ACEOF
19136
19137 fi
19138 rm -f conftest.mmap
19139
19140   { echo "$as_me:$LINENO: checking for mmap of files" >&5
19141 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19142 if test "${ac_cv_func_mmap_file+set}" = set; then
19143   echo $ECHO_N "(cached) $ECHO_C" >&6
19144 else
19145    ac_ext=c
19146 ac_cpp='$CPP $CPPFLAGS'
19147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19150
19151   if test "$cross_compiling" = yes; then
19152   ac_cv_func_mmap_file=no
19153 else
19154   cat >conftest.$ac_ext <<_ACEOF
19155
19156     /* confdefs.h.  */
19157 _ACEOF
19158 cat confdefs.h >>conftest.$ac_ext
19159 cat >>conftest.$ac_ext <<_ACEOF
19160 /* end confdefs.h.  */
19161
19162 #include <sys/types.h>
19163 #include <sys/mman.h>
19164 #include <fcntl.h>
19165
19166 int
19167 main ()
19168 {
19169
19170   int fd;
19171   fd = creat ("foo",0777);
19172   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19173   unlink ("foo");
19174   return (fd != (int) MAP_FAILED);
19175   ;
19176   return 0;
19177 }
19178 _ACEOF
19179 rm -f conftest$ac_exeext
19180 if { (ac_try="$ac_link"
19181 case "(($ac_try" in
19182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19183   *) ac_try_echo=$ac_try;;
19184 esac
19185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19186   (eval "$ac_link") 2>&5
19187   ac_status=$?
19188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19190   { (case "(($ac_try" in
19191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19192   *) ac_try_echo=$ac_try;;
19193 esac
19194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19195   (eval "$ac_try") 2>&5
19196   ac_status=$?
19197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198   (exit $ac_status); }; }; then
19199   ac_cv_func_mmap_file=yes
19200 else
19201   echo "$as_me: program exited with status $ac_status" >&5
19202 echo "$as_me: failed program was:" >&5
19203 sed 's/^/| /' conftest.$ac_ext >&5
19204
19205 ( exit $ac_status )
19206 ac_cv_func_mmap_file=no
19207 fi
19208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19209 fi
19210
19211
19212   ac_ext=c
19213 ac_cpp='$CPP $CPPFLAGS'
19214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19217
19218
19219 fi
19220 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19221 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
19222 if test "$ac_cv_func_mmap_file" = yes; then
19223
19224 cat >>confdefs.h <<\_ACEOF
19225 #define HAVE_MMAP_FILE
19226 _ACEOF
19227
19228    MMAP_FILE=yes
19229
19230 fi
19231
19232   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19233 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19234 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19235   echo $ECHO_N "(cached) $ECHO_C" >&6
19236 else
19237   if test "$llvm_cv_os_type" = "Interix" ; then
19238    ac_cv_need_dev_zero_for_mmap=yes
19239  else
19240    ac_cv_need_dev_zero_for_mmap=no
19241  fi
19242
19243 fi
19244 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19245 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
19246 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19247
19248 cat >>confdefs.h <<\_ACEOF
19249 #define NEED_DEV_ZERO_FOR_MMAP 1
19250 _ACEOF
19251
19252 fi
19253
19254   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19255   then
19256     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19257 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
19258   fi
19259   if test "$ac_cv_func_mmap_file" = "no"
19260   then
19261     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19262 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
19263   fi
19264 fi
19265
19266 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19267 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19268 cat >conftest.$ac_ext <<_ACEOF
19269 /* confdefs.h.  */
19270 _ACEOF
19271 cat confdefs.h >>conftest.$ac_ext
19272 cat >>conftest.$ac_ext <<_ACEOF
19273 /* end confdefs.h.  */
19274 int main() {
19275         volatile unsigned long val = 1;
19276         __sync_synchronize();
19277         __sync_val_compare_and_swap(&val, 1, 0);
19278         __sync_add_and_fetch(&val, 1);
19279         __sync_sub_and_fetch(&val, 1);
19280         return 0;
19281       }
19282
19283 _ACEOF
19284 rm -f conftest.$ac_objext conftest$ac_exeext
19285 if { (ac_try="$ac_link"
19286 case "(($ac_try" in
19287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19288   *) ac_try_echo=$ac_try;;
19289 esac
19290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19291   (eval "$ac_link") 2>conftest.er1
19292   ac_status=$?
19293   grep -v '^ *+' conftest.er1 >conftest.err
19294   rm -f conftest.er1
19295   cat conftest.err >&5
19296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297   (exit $ac_status); } &&
19298          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19299   { (case "(($ac_try" in
19300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19301   *) ac_try_echo=$ac_try;;
19302 esac
19303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19304   (eval "$ac_try") 2>&5
19305   ac_status=$?
19306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307   (exit $ac_status); }; } &&
19308          { ac_try='test -s conftest$ac_exeext'
19309   { (case "(($ac_try" in
19310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19311   *) ac_try_echo=$ac_try;;
19312 esac
19313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19314   (eval "$ac_try") 2>&5
19315   ac_status=$?
19316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317   (exit $ac_status); }; }; then
19318   { echo "$as_me:$LINENO: result: yes" >&5
19319 echo "${ECHO_T}yes" >&6; }
19320
19321 cat >>confdefs.h <<\_ACEOF
19322 #define LLVM_MULTITHREADED 1
19323 _ACEOF
19324
19325 else
19326   echo "$as_me: failed program was:" >&5
19327 sed 's/^/| /' conftest.$ac_ext >&5
19328
19329         { echo "$as_me:$LINENO: result: no" >&5
19330 echo "${ECHO_T}no" >&6; }
19331
19332 cat >>confdefs.h <<\_ACEOF
19333 #define LLVM_MULTITHREADED 0
19334 _ACEOF
19335
19336   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19337 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
19338 fi
19339
19340 rm -f core conftest.err conftest.$ac_objext \
19341       conftest$ac_exeext conftest.$ac_ext
19342
19343
19344
19345 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
19346   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19347 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19348 if test "${llvm_cv_linux_mixed+set}" = set; then
19349   echo $ECHO_N "(cached) $ECHO_C" >&6
19350 else
19351    ac_ext=c
19352 ac_cpp='$CPP $CPPFLAGS'
19353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19356
19357   cat >conftest.$ac_ext <<_ACEOF
19358 /* confdefs.h.  */
19359 _ACEOF
19360 cat confdefs.h >>conftest.$ac_ext
19361 cat >>conftest.$ac_ext <<_ACEOF
19362 /* end confdefs.h.  */
19363 #ifndef __x86_64__
19364        error: Not x86-64 even if uname says so!
19365       #endif
19366
19367 int
19368 main ()
19369 {
19370
19371   ;
19372   return 0;
19373 }
19374 _ACEOF
19375 rm -f conftest.$ac_objext
19376 if { (ac_try="$ac_compile"
19377 case "(($ac_try" in
19378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19379   *) ac_try_echo=$ac_try;;
19380 esac
19381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19382   (eval "$ac_compile") 2>conftest.er1
19383   ac_status=$?
19384   grep -v '^ *+' conftest.er1 >conftest.err
19385   rm -f conftest.er1
19386   cat conftest.err >&5
19387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388   (exit $ac_status); } &&
19389          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19390   { (case "(($ac_try" in
19391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19392   *) ac_try_echo=$ac_try;;
19393 esac
19394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19395   (eval "$ac_try") 2>&5
19396   ac_status=$?
19397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398   (exit $ac_status); }; } &&
19399          { ac_try='test -s conftest.$ac_objext'
19400   { (case "(($ac_try" in
19401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19402   *) ac_try_echo=$ac_try;;
19403 esac
19404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19405   (eval "$ac_try") 2>&5
19406   ac_status=$?
19407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408   (exit $ac_status); }; }; then
19409   llvm_cv_linux_mixed=no
19410 else
19411   echo "$as_me: failed program was:" >&5
19412 sed 's/^/| /' conftest.$ac_ext >&5
19413
19414         llvm_cv_linux_mixed=yes
19415 fi
19416
19417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19418   ac_ext=c
19419 ac_cpp='$CPP $CPPFLAGS'
19420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19423
19424
19425 fi
19426 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19427 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19428
19429   if test "$llvm_cv_linux_mixed" = "yes"; then
19430     llvm_cv_target_arch="x86"
19431     ARCH="x86"
19432   fi
19433 fi
19434
19435
19436 for ac_func in __dso_handle
19437 do
19438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19439 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19441 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19442   echo $ECHO_N "(cached) $ECHO_C" >&6
19443 else
19444   cat >conftest.$ac_ext <<_ACEOF
19445 /* confdefs.h.  */
19446 _ACEOF
19447 cat confdefs.h >>conftest.$ac_ext
19448 cat >>conftest.$ac_ext <<_ACEOF
19449 /* end confdefs.h.  */
19450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19451    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19452 #define $ac_func innocuous_$ac_func
19453
19454 /* System header to define __stub macros and hopefully few prototypes,
19455     which can conflict with char $ac_func (); below.
19456     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19457     <limits.h> exists even on freestanding compilers.  */
19458
19459 #ifdef __STDC__
19460 # include <limits.h>
19461 #else
19462 # include <assert.h>
19463 #endif
19464
19465 #undef $ac_func
19466
19467 /* Override any GCC internal prototype to avoid an error.
19468    Use char because int might match the return type of a GCC
19469    builtin and then its argument prototype would still apply.  */
19470 #ifdef __cplusplus
19471 extern "C"
19472 #endif
19473 char $ac_func ();
19474 /* The GNU C library defines this for functions which it implements
19475     to always fail with ENOSYS.  Some functions are actually named
19476     something starting with __ and the normal name is an alias.  */
19477 #if defined __stub_$ac_func || defined __stub___$ac_func
19478 choke me
19479 #endif
19480
19481 int
19482 main ()
19483 {
19484 return $ac_func ();
19485   ;
19486   return 0;
19487 }
19488 _ACEOF
19489 rm -f conftest.$ac_objext conftest$ac_exeext
19490 if { (ac_try="$ac_link"
19491 case "(($ac_try" in
19492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19493   *) ac_try_echo=$ac_try;;
19494 esac
19495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19496   (eval "$ac_link") 2>conftest.er1
19497   ac_status=$?
19498   grep -v '^ *+' conftest.er1 >conftest.err
19499   rm -f conftest.er1
19500   cat conftest.err >&5
19501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502   (exit $ac_status); } &&
19503          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19504   { (case "(($ac_try" in
19505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19506   *) ac_try_echo=$ac_try;;
19507 esac
19508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19509   (eval "$ac_try") 2>&5
19510   ac_status=$?
19511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512   (exit $ac_status); }; } &&
19513          { ac_try='test -s conftest$ac_exeext'
19514   { (case "(($ac_try" in
19515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19516   *) ac_try_echo=$ac_try;;
19517 esac
19518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19519   (eval "$ac_try") 2>&5
19520   ac_status=$?
19521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522   (exit $ac_status); }; }; then
19523   eval "$as_ac_var=yes"
19524 else
19525   echo "$as_me: failed program was:" >&5
19526 sed 's/^/| /' conftest.$ac_ext >&5
19527
19528         eval "$as_ac_var=no"
19529 fi
19530
19531 rm -f core conftest.err conftest.$ac_objext \
19532       conftest$ac_exeext conftest.$ac_ext
19533 fi
19534 ac_res=`eval echo '${'$as_ac_var'}'`
19535                { echo "$as_me:$LINENO: result: $ac_res" >&5
19536 echo "${ECHO_T}$ac_res" >&6; }
19537 if test `eval echo '${'$as_ac_var'}'` = yes; then
19538   cat >>confdefs.h <<_ACEOF
19539 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19540 _ACEOF
19541
19542 fi
19543 done
19544
19545
19546 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19547 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19548 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19549   echo $ECHO_N "(cached) $ECHO_C" >&6
19550 else
19551   llvm_cv_llvmgcc_sanity="no"
19552 if test -x "$LLVMGCC" ; then
19553   cp /dev/null conftest.c
19554   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19555       grep 'target datalayout =' > /dev/null 2>&1
19556   if test $? -eq 0 ; then
19557     llvm_cv_llvmgcc_sanity="yes"
19558   fi
19559   rm conftest.c
19560 fi
19561 fi
19562 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
19563 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
19564
19565 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
19566   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
19567 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
19568   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
19569   LLVMCC1=$llvmcc1path
19570
19571   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
19572   LLVMCC1PLUS=$llvmcc1pluspath
19573
19574   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19575   LLVMGCCDIR=$llvmgccdir
19576
19577   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
19578   LLVMGCCLIBEXEC=$llvmgcclibexec
19579
19580   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
19581   LLVMGCC_LANGS=$llvmgcclangs
19582
19583   { echo "$as_me:$LINENO: result: ok" >&5
19584 echo "${ECHO_T}ok" >&6; }
19585 fi
19586
19587 SHLIBEXT=$libltdl_cv_shlibext
19588
19589
19590 # Translate the various configuration directories and other basic
19591 # information into substitutions that will end up in Makefile.config.in
19592 # that these configured values can be used by the makefiles
19593 if test "${prefix}" = "NONE" ; then
19594   prefix="/usr/local"
19595 fi
19596 eval LLVM_PREFIX="${prefix}";
19597 eval LLVM_BINDIR="${prefix}/bin";
19598 eval LLVM_LIBDIR="${prefix}/lib";
19599 eval LLVM_DATADIR="${prefix}/share/llvm";
19600 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
19601 eval LLVM_ETCDIR="${prefix}/etc/llvm";
19602 eval LLVM_INCLUDEDIR="${prefix}/include";
19603 eval LLVM_INFODIR="${prefix}/info";
19604 eval LLVM_MANDIR="${prefix}/man";
19605 LLVM_CONFIGTIME=`date`
19606
19607
19608
19609
19610
19611
19612
19613
19614
19615
19616
19617 # Place the various directores into the config.h file as #defines so that we
19618 # can know about the installation paths within LLVM.
19619
19620 cat >>confdefs.h <<_ACEOF
19621 #define LLVM_PREFIX "$LLVM_PREFIX"
19622 _ACEOF
19623
19624
19625 cat >>confdefs.h <<_ACEOF
19626 #define LLVM_BINDIR "$LLVM_BINDIR"
19627 _ACEOF
19628
19629
19630 cat >>confdefs.h <<_ACEOF
19631 #define LLVM_LIBDIR "$LLVM_LIBDIR"
19632 _ACEOF
19633
19634
19635 cat >>confdefs.h <<_ACEOF
19636 #define LLVM_DATADIR "$LLVM_DATADIR"
19637 _ACEOF
19638
19639
19640 cat >>confdefs.h <<_ACEOF
19641 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
19642 _ACEOF
19643
19644
19645 cat >>confdefs.h <<_ACEOF
19646 #define LLVM_ETCDIR "$LLVM_ETCDIR"
19647 _ACEOF
19648
19649
19650 cat >>confdefs.h <<_ACEOF
19651 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19652 _ACEOF
19653
19654
19655 cat >>confdefs.h <<_ACEOF
19656 #define LLVM_INFODIR "$LLVM_INFODIR"
19657 _ACEOF
19658
19659
19660 cat >>confdefs.h <<_ACEOF
19661 #define LLVM_MANDIR "$LLVM_MANDIR"
19662 _ACEOF
19663
19664
19665 cat >>confdefs.h <<_ACEOF
19666 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19667 _ACEOF
19668
19669
19670 cat >>confdefs.h <<_ACEOF
19671 #define LLVM_HOSTTRIPLE "$host"
19672 _ACEOF
19673
19674
19675 # Determine which bindings to build.
19676 if test "$BINDINGS_TO_BUILD" = auto ; then
19677   BINDINGS_TO_BUILD=""
19678   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19679     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19680   fi
19681 fi
19682 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19683
19684
19685 # This isn't really configurey, but it avoids having to repeat the list in
19686 # other files.
19687 ALL_BINDINGS=ocaml
19688
19689
19690 # Do any work necessary to ensure that bindings have what they need.
19691 binding_prereqs_failed=0
19692 for a_binding in $BINDINGS_TO_BUILD ; do
19693   case "$a_binding" in
19694   ocaml)
19695     if test "x$OCAMLC" = x ; then
19696       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19697 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
19698       binding_prereqs_failed=1
19699     fi
19700     if test "x$OCAMLDEP" = x ; then
19701       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19702 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
19703       binding_prereqs_failed=1
19704     fi
19705     if test "x$OCAMLOPT" = x ; then
19706       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19707 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
19708           fi
19709     if test "x$with_ocaml_libdir" != xauto ; then
19710       OCAML_LIBDIR=$with_ocaml_libdir
19711
19712     else
19713       ocaml_stdlib="`"$OCAMLC" -where`"
19714       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19715       then
19716         # ocaml stdlib is beneath our prefix; use stdlib
19717         OCAML_LIBDIR=$ocaml_stdlib
19718
19719       else
19720         # ocaml stdlib is outside our prefix; use libdir/ocaml
19721         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
19722
19723       fi
19724     fi
19725     ;;
19726   esac
19727 done
19728 if test "$binding_prereqs_failed" = 1 ; then
19729   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19730 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19731    { (exit 1); exit 1; }; }
19732 fi
19733
19734 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19735 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19736 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19737   echo $ECHO_N "(cached) $ECHO_C" >&6
19738 else
19739    ac_ext=cpp
19740 ac_cpp='$CXXCPP $CPPFLAGS'
19741 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19742 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19743 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19744
19745   oldcxxflags="$CXXFLAGS"
19746   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
19747   cat >conftest.$ac_ext <<_ACEOF
19748 /* confdefs.h.  */
19749 _ACEOF
19750 cat confdefs.h >>conftest.$ac_ext
19751 cat >>conftest.$ac_ext <<_ACEOF
19752 /* end confdefs.h.  */
19753
19754 int
19755 main ()
19756 {
19757
19758   ;
19759   return 0;
19760 }
19761 _ACEOF
19762 rm -f conftest.$ac_objext
19763 if { (ac_try="$ac_compile"
19764 case "(($ac_try" in
19765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19766   *) ac_try_echo=$ac_try;;
19767 esac
19768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19769   (eval "$ac_compile") 2>conftest.er1
19770   ac_status=$?
19771   grep -v '^ *+' conftest.er1 >conftest.err
19772   rm -f conftest.er1
19773   cat conftest.err >&5
19774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775   (exit $ac_status); } &&
19776          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19777   { (case "(($ac_try" in
19778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19779   *) ac_try_echo=$ac_try;;
19780 esac
19781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19782   (eval "$ac_try") 2>&5
19783   ac_status=$?
19784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785   (exit $ac_status); }; } &&
19786          { ac_try='test -s conftest.$ac_objext'
19787   { (case "(($ac_try" in
19788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19789   *) ac_try_echo=$ac_try;;
19790 esac
19791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19792   (eval "$ac_try") 2>&5
19793   ac_status=$?
19794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795   (exit $ac_status); }; }; then
19796   llvm_cv_cxx_visibility_inlines_hidden=yes
19797 else
19798   echo "$as_me: failed program was:" >&5
19799 sed 's/^/| /' conftest.$ac_ext >&5
19800
19801         llvm_cv_cxx_visibility_inlines_hidden=no
19802 fi
19803
19804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19805   CXXFLAGS="$oldcxxflags"
19806   ac_ext=c
19807 ac_cpp='$CPP $CPPFLAGS'
19808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19811
19812
19813 fi
19814 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19815 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
19816 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19817   ENABLE_VISIBILITY_INLINES_HIDDEN=1
19818
19819 else
19820   ENABLE_VISIBILITY_INLINES_HIDDEN=0
19821
19822 fi
19823
19824
19825 if test "$llvm_cv_link_use_r" = "yes" ; then
19826   RPATH="-Wl,-R"
19827 else
19828   RPATH="-Wl,-rpath"
19829 fi
19830
19831
19832 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
19833   RDYNAMIC="-Wl,-export-dynamic"
19834 else
19835   RDYNAMIC=""
19836 fi
19837
19838
19839
19840 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
19841
19842 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19843
19844 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19845
19846 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19847
19848 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19849
19850 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
19851
19852
19853 ac_config_files="$ac_config_files Makefile.config"
19854
19855
19856 ac_config_files="$ac_config_files llvm.spec"
19857
19858
19859 ac_config_files="$ac_config_files docs/doxygen.cfg"
19860
19861
19862 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
19863
19864
19865 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
19866
19867
19868 ac_config_commands="$ac_config_commands setup"
19869
19870 ac_config_commands="$ac_config_commands Makefile"
19871
19872
19873 ac_config_commands="$ac_config_commands Makefile.common"
19874
19875
19876 ac_config_commands="$ac_config_commands examples/Makefile"
19877
19878
19879 ac_config_commands="$ac_config_commands lib/Makefile"
19880
19881
19882 ac_config_commands="$ac_config_commands runtime/Makefile"
19883
19884
19885 ac_config_commands="$ac_config_commands test/Makefile"
19886
19887
19888 ac_config_commands="$ac_config_commands test/Makefile.tests"
19889
19890
19891 ac_config_commands="$ac_config_commands unittests/Makefile"
19892
19893
19894 ac_config_commands="$ac_config_commands tools/Makefile"
19895
19896
19897 ac_config_commands="$ac_config_commands utils/Makefile"
19898
19899
19900 ac_config_commands="$ac_config_commands projects/Makefile"
19901
19902
19903 ac_config_commands="$ac_config_commands bindings/Makefile"
19904
19905
19906 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
19907
19908
19909
19910 cat >confcache <<\_ACEOF
19911 # This file is a shell script that caches the results of configure
19912 # tests run on this system so they can be shared between configure
19913 # scripts and configure runs, see configure's option --config-cache.
19914 # It is not useful on other systems.  If it contains results you don't
19915 # want to keep, you may remove or edit it.
19916 #
19917 # config.status only pays attention to the cache file if you give it
19918 # the --recheck option to rerun configure.
19919 #
19920 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19921 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19922 # following values.
19923
19924 _ACEOF
19925
19926 # The following way of writing the cache mishandles newlines in values,
19927 # but we know of no workaround that is simple, portable, and efficient.
19928 # So, we kill variables containing newlines.
19929 # Ultrix sh set writes to stderr and can't be redirected directly,
19930 # and sets the high bit in the cache file unless we assign to the vars.
19931 (
19932   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19933     eval ac_val=\$$ac_var
19934     case $ac_val in #(
19935     *${as_nl}*)
19936       case $ac_var in #(
19937       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19938 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19939       esac
19940       case $ac_var in #(
19941       _ | IFS | as_nl) ;; #(
19942       *) $as_unset $ac_var ;;
19943       esac ;;
19944     esac
19945   done
19946
19947   (set) 2>&1 |
19948     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19949     *${as_nl}ac_space=\ *)
19950       # `set' does not quote correctly, so add quotes (double-quote
19951       # substitution turns \\\\ into \\, and sed turns \\ into \).
19952       sed -n \
19953         "s/'/'\\\\''/g;
19954           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19955       ;; #(
19956     *)
19957       # `set' quotes correctly as required by POSIX, so do not add quotes.
19958       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19959       ;;
19960     esac |
19961     sort
19962 ) |
19963   sed '
19964      /^ac_cv_env_/b end
19965      t clear
19966      :clear
19967      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19968      t end
19969      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19970      :end' >>confcache
19971 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19972   if test -w "$cache_file"; then
19973     test "x$cache_file" != "x/dev/null" &&
19974       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19975 echo "$as_me: updating cache $cache_file" >&6;}
19976     cat confcache >$cache_file
19977   else
19978     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19979 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19980   fi
19981 fi
19982 rm -f confcache
19983
19984 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19985 # Let make expand exec_prefix.
19986 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19987
19988 DEFS=-DHAVE_CONFIG_H
19989
19990 ac_libobjs=
19991 ac_ltlibobjs=
19992 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19993   # 1. Remove the extension, and $U if already installed.
19994   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19995   ac_i=`echo "$ac_i" | sed "$ac_script"`
19996   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19997   #    will be set to the directory where LIBOBJS objects are built.
19998   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19999   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20000 done
20001 LIBOBJS=$ac_libobjs
20002
20003 LTLIBOBJS=$ac_ltlibobjs
20004
20005
20006 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20007   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20008 Usually this means the macro was only invoked conditionally." >&5
20009 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20010 Usually this means the macro was only invoked conditionally." >&2;}
20011    { (exit 1); exit 1; }; }
20012 fi
20013 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20014   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20015 Usually this means the macro was only invoked conditionally." >&5
20016 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20017 Usually this means the macro was only invoked conditionally." >&2;}
20018    { (exit 1); exit 1; }; }
20019 fi
20020
20021 : ${CONFIG_STATUS=./config.status}
20022 ac_clean_files_save=$ac_clean_files
20023 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20024 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20025 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20026 cat >$CONFIG_STATUS <<_ACEOF
20027 #! $SHELL
20028 # Generated by $as_me.
20029 # Run this file to recreate the current configuration.
20030 # Compiler output produced by configure, useful for debugging
20031 # configure, is in config.log if it exists.
20032
20033 debug=false
20034 ac_cs_recheck=false
20035 ac_cs_silent=false
20036 SHELL=\${CONFIG_SHELL-$SHELL}
20037 _ACEOF
20038
20039 cat >>$CONFIG_STATUS <<\_ACEOF
20040 ## --------------------- ##
20041 ## M4sh Initialization.  ##
20042 ## --------------------- ##
20043
20044 # Be Bourne compatible
20045 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20046   emulate sh
20047   NULLCMD=:
20048   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20049   # is contrary to our usage.  Disable this feature.
20050   alias -g '${1+"$@"}'='"$@"'
20051   setopt NO_GLOB_SUBST
20052 else
20053   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20054 fi
20055 BIN_SH=xpg4; export BIN_SH # for Tru64
20056 DUALCASE=1; export DUALCASE # for MKS sh
20057
20058
20059 # PATH needs CR
20060 # Avoid depending upon Character Ranges.
20061 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20062 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20063 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20064 as_cr_digits='0123456789'
20065 as_cr_alnum=$as_cr_Letters$as_cr_digits
20066
20067 # The user is always right.
20068 if test "${PATH_SEPARATOR+set}" != set; then
20069   echo "#! /bin/sh" >conf$$.sh
20070   echo  "exit 0"   >>conf$$.sh
20071   chmod +x conf$$.sh
20072   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20073     PATH_SEPARATOR=';'
20074   else
20075     PATH_SEPARATOR=:
20076   fi
20077   rm -f conf$$.sh
20078 fi
20079
20080 # Support unset when possible.
20081 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20082   as_unset=unset
20083 else
20084   as_unset=false
20085 fi
20086
20087
20088 # IFS
20089 # We need space, tab and new line, in precisely that order.  Quoting is
20090 # there to prevent editors from complaining about space-tab.
20091 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20092 # splitting by setting IFS to empty value.)
20093 as_nl='
20094 '
20095 IFS=" ""        $as_nl"
20096
20097 # Find who we are.  Look in the path if we contain no directory separator.
20098 case $0 in
20099   *[\\/]* ) as_myself=$0 ;;
20100   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20101 for as_dir in $PATH
20102 do
20103   IFS=$as_save_IFS
20104   test -z "$as_dir" && as_dir=.
20105   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20106 done
20107 IFS=$as_save_IFS
20108
20109      ;;
20110 esac
20111 # We did not find ourselves, most probably we were run as `sh COMMAND'
20112 # in which case we are not to be found in the path.
20113 if test "x$as_myself" = x; then
20114   as_myself=$0
20115 fi
20116 if test ! -f "$as_myself"; then
20117   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20118   { (exit 1); exit 1; }
20119 fi
20120
20121 # Work around bugs in pre-3.0 UWIN ksh.
20122 for as_var in ENV MAIL MAILPATH
20123 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20124 done
20125 PS1='$ '
20126 PS2='> '
20127 PS4='+ '
20128
20129 # NLS nuisances.
20130 for as_var in \
20131   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20132   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20133   LC_TELEPHONE LC_TIME
20134 do
20135   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20136     eval $as_var=C; export $as_var
20137   else
20138     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20139   fi
20140 done
20141
20142 # Required to use basename.
20143 if expr a : '\(a\)' >/dev/null 2>&1 &&
20144    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20145   as_expr=expr
20146 else
20147   as_expr=false
20148 fi
20149
20150 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20151   as_basename=basename
20152 else
20153   as_basename=false
20154 fi
20155
20156
20157 # Name of the executable.
20158 as_me=`$as_basename -- "$0" ||
20159 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20160          X"$0" : 'X\(//\)$' \| \
20161          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20162 echo X/"$0" |
20163     sed '/^.*\/\([^/][^/]*\)\/*$/{
20164             s//\1/
20165             q
20166           }
20167           /^X\/\(\/\/\)$/{
20168             s//\1/
20169             q
20170           }
20171           /^X\/\(\/\).*/{
20172             s//\1/
20173             q
20174           }
20175           s/.*/./; q'`
20176
20177 # CDPATH.
20178 $as_unset CDPATH
20179
20180
20181
20182   as_lineno_1=$LINENO
20183   as_lineno_2=$LINENO
20184   test "x$as_lineno_1" != "x$as_lineno_2" &&
20185   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20186
20187   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20188   # uniformly replaced by the line number.  The first 'sed' inserts a
20189   # line-number line after each line using $LINENO; the second 'sed'
20190   # does the real work.  The second script uses 'N' to pair each
20191   # line-number line with the line containing $LINENO, and appends
20192   # trailing '-' during substitution so that $LINENO is not a special
20193   # case at line end.
20194   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20195   # scripts with optimization help from Paolo Bonzini.  Blame Lee
20196   # E. McMahon (1931-1989) for sed's syntax.  :-)
20197   sed -n '
20198     p
20199     /[$]LINENO/=
20200   ' <$as_myself |
20201     sed '
20202       s/[$]LINENO.*/&-/
20203       t lineno
20204       b
20205       :lineno
20206       N
20207       :loop
20208       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20209       t loop
20210       s/-\n.*//
20211     ' >$as_me.lineno &&
20212   chmod +x "$as_me.lineno" ||
20213     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20214    { (exit 1); exit 1; }; }
20215
20216   # Don't try to exec as it changes $[0], causing all sort of problems
20217   # (the dirname of $[0] is not the place where we might find the
20218   # original and so on.  Autoconf is especially sensitive to this).
20219   . "./$as_me.lineno"
20220   # Exit status is that of the last command.
20221   exit
20222 }
20223
20224
20225 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20226   as_dirname=dirname
20227 else
20228   as_dirname=false
20229 fi
20230
20231 ECHO_C= ECHO_N= ECHO_T=
20232 case `echo -n x` in
20233 -n*)
20234   case `echo 'x\c'` in
20235   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20236   *)   ECHO_C='\c';;
20237   esac;;
20238 *)
20239   ECHO_N='-n';;
20240 esac
20241
20242 if expr a : '\(a\)' >/dev/null 2>&1 &&
20243    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20244   as_expr=expr
20245 else
20246   as_expr=false
20247 fi
20248
20249 rm -f conf$$ conf$$.exe conf$$.file
20250 if test -d conf$$.dir; then
20251   rm -f conf$$.dir/conf$$.file
20252 else
20253   rm -f conf$$.dir
20254   mkdir conf$$.dir
20255 fi
20256 echo >conf$$.file
20257 if ln -s conf$$.file conf$$ 2>/dev/null; then
20258   as_ln_s='ln -s'
20259   # ... but there are two gotchas:
20260   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20261   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20262   # In both cases, we have to default to `cp -p'.
20263   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20264     as_ln_s='cp -p'
20265 elif ln conf$$.file conf$$ 2>/dev/null; then
20266   as_ln_s=ln
20267 else
20268   as_ln_s='cp -p'
20269 fi
20270 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20271 rmdir conf$$.dir 2>/dev/null
20272
20273 if mkdir -p . 2>/dev/null; then
20274   as_mkdir_p=:
20275 else
20276   test -d ./-p && rmdir ./-p
20277   as_mkdir_p=false
20278 fi
20279
20280 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
20281 # systems may use methods other than mode bits to determine executability.
20282 cat >conf$$.file <<_ASEOF
20283 #! /bin/sh
20284 exit 0
20285 _ASEOF
20286 chmod +x conf$$.file
20287 if test -x conf$$.file >/dev/null 2>&1; then
20288   as_executable_p="test -x"
20289 else
20290   as_executable_p=:
20291 fi
20292 rm -f conf$$.file
20293
20294 # Sed expression to map a string onto a valid CPP name.
20295 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20296
20297 # Sed expression to map a string onto a valid variable name.
20298 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20299
20300
20301 exec 6>&1
20302
20303 # Save the log message, to keep $[0] and so on meaningful, and to
20304 # report actual input values of CONFIG_FILES etc. instead of their
20305 # values after options handling.
20306 ac_log="
20307 This file was extended by llvm $as_me 2.7svn, which was
20308 generated by GNU Autoconf 2.60.  Invocation command line was
20309
20310   CONFIG_FILES    = $CONFIG_FILES
20311   CONFIG_HEADERS  = $CONFIG_HEADERS
20312   CONFIG_LINKS    = $CONFIG_LINKS
20313   CONFIG_COMMANDS = $CONFIG_COMMANDS
20314   $ $0 $@
20315
20316 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20317 "
20318
20319 _ACEOF
20320
20321 cat >>$CONFIG_STATUS <<_ACEOF
20322 # Files that config.status was made for.
20323 config_files="$ac_config_files"
20324 config_headers="$ac_config_headers"
20325 config_commands="$ac_config_commands"
20326
20327 _ACEOF
20328
20329 cat >>$CONFIG_STATUS <<\_ACEOF
20330 ac_cs_usage="\
20331 \`$as_me' instantiates files from templates according to the
20332 current configuration.
20333
20334 Usage: $0 [OPTIONS] [FILE]...
20335
20336   -h, --help       print this help, then exit
20337   -V, --version    print version number, then exit
20338   -q, --quiet      do not print progress messages
20339   -d, --debug      don't remove temporary files
20340       --recheck    update $as_me by reconfiguring in the same conditions
20341   --file=FILE[:TEMPLATE]
20342                    instantiate the configuration file FILE
20343   --header=FILE[:TEMPLATE]
20344                    instantiate the configuration header FILE
20345
20346 Configuration files:
20347 $config_files
20348
20349 Configuration headers:
20350 $config_headers
20351
20352 Configuration commands:
20353 $config_commands
20354
20355 Report bugs to <bug-autoconf@gnu.org>."
20356
20357 _ACEOF
20358 cat >>$CONFIG_STATUS <<_ACEOF
20359 ac_cs_version="\\
20360 llvm config.status 2.7svn
20361 configured by $0, generated by GNU Autoconf 2.60,
20362   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20363
20364 Copyright (C) 2006 Free Software Foundation, Inc.
20365 This config.status script is free software; the Free Software Foundation
20366 gives unlimited permission to copy, distribute and modify it."
20367
20368 ac_pwd='$ac_pwd'
20369 srcdir='$srcdir'
20370 INSTALL='$INSTALL'
20371 _ACEOF
20372
20373 cat >>$CONFIG_STATUS <<\_ACEOF
20374 # If no file are specified by the user, then we need to provide default
20375 # value.  By we need to know if files were specified by the user.
20376 ac_need_defaults=:
20377 while test $# != 0
20378 do
20379   case $1 in
20380   --*=*)
20381     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20382     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20383     ac_shift=:
20384     ;;
20385   *)
20386     ac_option=$1
20387     ac_optarg=$2
20388     ac_shift=shift
20389     ;;
20390   esac
20391
20392   case $ac_option in
20393   # Handling of the options.
20394   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20395     ac_cs_recheck=: ;;
20396   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20397     echo "$ac_cs_version"; exit ;;
20398   --debug | --debu | --deb | --de | --d | -d )
20399     debug=: ;;
20400   --file | --fil | --fi | --f )
20401     $ac_shift
20402     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20403     ac_need_defaults=false;;
20404   --header | --heade | --head | --hea )
20405     $ac_shift
20406     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20407     ac_need_defaults=false;;
20408   --he | --h)
20409     # Conflict between --help and --header
20410     { echo "$as_me: error: ambiguous option: $1
20411 Try \`$0 --help' for more information." >&2
20412    { (exit 1); exit 1; }; };;
20413   --help | --hel | -h )
20414     echo "$ac_cs_usage"; exit ;;
20415   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20416   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20417     ac_cs_silent=: ;;
20418
20419   # This is an error.
20420   -*) { echo "$as_me: error: unrecognized option: $1
20421 Try \`$0 --help' for more information." >&2
20422    { (exit 1); exit 1; }; } ;;
20423
20424   *) ac_config_targets="$ac_config_targets $1"
20425      ac_need_defaults=false ;;
20426
20427   esac
20428   shift
20429 done
20430
20431 ac_configure_extra_args=
20432
20433 if $ac_cs_silent; then
20434   exec 6>/dev/null
20435   ac_configure_extra_args="$ac_configure_extra_args --silent"
20436 fi
20437
20438 _ACEOF
20439 cat >>$CONFIG_STATUS <<_ACEOF
20440 if \$ac_cs_recheck; then
20441   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20442   CONFIG_SHELL=$SHELL
20443   export CONFIG_SHELL
20444   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20445 fi
20446
20447 _ACEOF
20448 cat >>$CONFIG_STATUS <<\_ACEOF
20449 exec 5>>config.log
20450 {
20451   echo
20452   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20453 ## Running $as_me. ##
20454 _ASBOX
20455   echo "$ac_log"
20456 } >&5
20457
20458 _ACEOF
20459 cat >>$CONFIG_STATUS <<_ACEOF
20460 #
20461 # INIT-COMMANDS
20462 #
20463 llvm_src="${srcdir}"
20464
20465 _ACEOF
20466
20467 cat >>$CONFIG_STATUS <<\_ACEOF
20468
20469 # Handling of arguments.
20470 for ac_config_target in $ac_config_targets
20471 do
20472   case $ac_config_target in
20473     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20474     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20475     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20476     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20477     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20478     "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
20479     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20480     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20481     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
20482     "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
20483     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20484     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20485     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20486     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20487     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20488     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20489     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
20490     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20491     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
20492     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
20493     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20494     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20495     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
20496     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20497     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20498
20499   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20500 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20501    { (exit 1); exit 1; }; };;
20502   esac
20503 done
20504
20505
20506 # If the user did not use the arguments to specify the items to instantiate,
20507 # then the envvar interface is used.  Set only those that are not.
20508 # We use the long form for the default assignment because of an extremely
20509 # bizarre bug on SunOS 4.1.3.
20510 if $ac_need_defaults; then
20511   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20512   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20513   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20514 fi
20515
20516 # Have a temporary directory for convenience.  Make it in the build tree
20517 # simply because there is no reason against having it here, and in addition,
20518 # creating and moving files from /tmp can sometimes cause problems.
20519 # Hook for its removal unless debugging.
20520 # Note that there is a small window in which the directory will not be cleaned:
20521 # after its creation but before its name has been assigned to `$tmp'.
20522 $debug ||
20523 {
20524   tmp=
20525   trap 'exit_status=$?
20526   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20527 ' 0
20528   trap '{ (exit 1); exit 1; }' 1 2 13 15
20529 }
20530 # Create a (secure) tmp directory for tmp files.
20531
20532 {
20533   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20534   test -n "$tmp" && test -d "$tmp"
20535 }  ||
20536 {
20537   tmp=./conf$$-$RANDOM
20538   (umask 077 && mkdir "$tmp")
20539 } ||
20540 {
20541    echo "$me: cannot create a temporary directory in ." >&2
20542    { (exit 1); exit 1; }
20543 }
20544
20545 #
20546 # Set up the sed scripts for CONFIG_FILES section.
20547 #
20548
20549 # No need to generate the scripts if there are no CONFIG_FILES.
20550 # This happens for instance when ./config.status config.h
20551 if test -n "$CONFIG_FILES"; then
20552
20553 _ACEOF
20554
20555
20556
20557 ac_delim='%!_!# '
20558 for ac_last_try in false false false false false :; do
20559   cat >conf$$subs.sed <<_ACEOF
20560 SHELL!$SHELL$ac_delim
20561 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20562 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20563 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20564 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20565 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20566 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20567 exec_prefix!$exec_prefix$ac_delim
20568 prefix!$prefix$ac_delim
20569 program_transform_name!$program_transform_name$ac_delim
20570 bindir!$bindir$ac_delim
20571 sbindir!$sbindir$ac_delim
20572 libexecdir!$libexecdir$ac_delim
20573 datarootdir!$datarootdir$ac_delim
20574 datadir!$datadir$ac_delim
20575 sysconfdir!$sysconfdir$ac_delim
20576 sharedstatedir!$sharedstatedir$ac_delim
20577 localstatedir!$localstatedir$ac_delim
20578 includedir!$includedir$ac_delim
20579 oldincludedir!$oldincludedir$ac_delim
20580 docdir!$docdir$ac_delim
20581 infodir!$infodir$ac_delim
20582 htmldir!$htmldir$ac_delim
20583 dvidir!$dvidir$ac_delim
20584 pdfdir!$pdfdir$ac_delim
20585 psdir!$psdir$ac_delim
20586 libdir!$libdir$ac_delim
20587 localedir!$localedir$ac_delim
20588 mandir!$mandir$ac_delim
20589 DEFS!$DEFS$ac_delim
20590 ECHO_C!$ECHO_C$ac_delim
20591 ECHO_N!$ECHO_N$ac_delim
20592 ECHO_T!$ECHO_T$ac_delim
20593 LIBS!$LIBS$ac_delim
20594 build_alias!$build_alias$ac_delim
20595 host_alias!$host_alias$ac_delim
20596 target_alias!$target_alias$ac_delim
20597 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20598 subdirs!$subdirs$ac_delim
20599 build!$build$ac_delim
20600 build_cpu!$build_cpu$ac_delim
20601 build_vendor!$build_vendor$ac_delim
20602 build_os!$build_os$ac_delim
20603 host!$host$ac_delim
20604 host_cpu!$host_cpu$ac_delim
20605 host_vendor!$host_vendor$ac_delim
20606 host_os!$host_os$ac_delim
20607 target!$target$ac_delim
20608 target_cpu!$target_cpu$ac_delim
20609 target_vendor!$target_vendor$ac_delim
20610 target_os!$target_os$ac_delim
20611 OS!$OS$ac_delim
20612 HOST_OS!$HOST_OS$ac_delim
20613 TARGET_OS!$TARGET_OS$ac_delim
20614 LINKALL!$LINKALL$ac_delim
20615 NOLINKALL!$NOLINKALL$ac_delim
20616 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20617 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20618 ARCH!$ARCH$ac_delim
20619 ENDIAN!$ENDIAN$ac_delim
20620 CC!$CC$ac_delim
20621 CFLAGS!$CFLAGS$ac_delim
20622 LDFLAGS!$LDFLAGS$ac_delim
20623 CPPFLAGS!$CPPFLAGS$ac_delim
20624 ac_ct_CC!$ac_ct_CC$ac_delim
20625 EXEEXT!$EXEEXT$ac_delim
20626 OBJEXT!$OBJEXT$ac_delim
20627 CPP!$CPP$ac_delim
20628 GREP!$GREP$ac_delim
20629 EGREP!$EGREP$ac_delim
20630 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20631 BUILD_CC!$BUILD_CC$ac_delim
20632 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20633 BUILD_CXX!$BUILD_CXX$ac_delim
20634 CVSBUILD!$CVSBUILD$ac_delim
20635 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20636 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20637 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20638 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20639 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20640 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20641 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20642 JIT!$JIT$ac_delim
20643 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20644 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20645 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20646 ENABLE_PIC!$ENABLE_PIC$ac_delim
20647 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20648 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20649 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20650 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20651 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20652 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
20653 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
20654 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
20655 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
20656 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
20657 _ACEOF
20658
20659   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20660     break
20661   elif $ac_last_try; then
20662     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20663 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20664    { (exit 1); exit 1; }; }
20665   else
20666     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20667   fi
20668 done
20669
20670 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20671 if test -n "$ac_eof"; then
20672   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20673   ac_eof=`expr $ac_eof + 1`
20674 fi
20675
20676 cat >>$CONFIG_STATUS <<_ACEOF
20677 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20678 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20679 _ACEOF
20680 sed '
20681 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20682 s/^/s,@/; s/!/@,|#_!!_#|/
20683 :n
20684 t n
20685 s/'"$ac_delim"'$/,g/; t
20686 s/$/\\/; p
20687 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20688 ' >>$CONFIG_STATUS <conf$$subs.sed
20689 rm -f conf$$subs.sed
20690 cat >>$CONFIG_STATUS <<_ACEOF
20691 CEOF$ac_eof
20692 _ACEOF
20693
20694
20695 ac_delim='%!_!# '
20696 for ac_last_try in false false false false false :; do
20697   cat >conf$$subs.sed <<_ACEOF
20698 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
20699 CXX!$CXX$ac_delim
20700 CXXFLAGS!$CXXFLAGS$ac_delim
20701 ac_ct_CXX!$ac_ct_CXX$ac_delim
20702 NM!$NM$ac_delim
20703 ifGNUmake!$ifGNUmake$ac_delim
20704 LN_S!$LN_S$ac_delim
20705 CMP!$CMP$ac_delim
20706 CP!$CP$ac_delim
20707 DATE!$DATE$ac_delim
20708 FIND!$FIND$ac_delim
20709 MKDIR!$MKDIR$ac_delim
20710 MV!$MV$ac_delim
20711 RANLIB!$RANLIB$ac_delim
20712 AR!$AR$ac_delim
20713 RM!$RM$ac_delim
20714 SED!$SED$ac_delim
20715 TAR!$TAR$ac_delim
20716 BINPWD!$BINPWD$ac_delim
20717 GRAPHVIZ!$GRAPHVIZ$ac_delim
20718 DOT!$DOT$ac_delim
20719 FDP!$FDP$ac_delim
20720 NEATO!$NEATO$ac_delim
20721 TWOPI!$TWOPI$ac_delim
20722 CIRCO!$CIRCO$ac_delim
20723 GV!$GV$ac_delim
20724 DOTTY!$DOTTY$ac_delim
20725 PERL!$PERL$ac_delim
20726 HAVE_PERL!$HAVE_PERL$ac_delim
20727 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20728 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20729 INSTALL_DATA!$INSTALL_DATA$ac_delim
20730 BZIP2!$BZIP2$ac_delim
20731 DOXYGEN!$DOXYGEN$ac_delim
20732 GROFF!$GROFF$ac_delim
20733 GZIP!$GZIP$ac_delim
20734 POD2HTML!$POD2HTML$ac_delim
20735 POD2MAN!$POD2MAN$ac_delim
20736 RUNTEST!$RUNTEST$ac_delim
20737 TCLSH!$TCLSH$ac_delim
20738 ZIP!$ZIP$ac_delim
20739 OCAMLC!$OCAMLC$ac_delim
20740 OCAMLOPT!$OCAMLOPT$ac_delim
20741 OCAMLDEP!$OCAMLDEP$ac_delim
20742 OCAMLDOC!$OCAMLDOC$ac_delim
20743 GAS!$GAS$ac_delim
20744 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
20745 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
20746 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
20747 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
20748 LIBADD_DL!$LIBADD_DL$ac_delim
20749 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
20750 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
20751 LLVMGCC!$LLVMGCC$ac_delim
20752 LLVMGXX!$LLVMGXX$ac_delim
20753 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20754 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
20755 USE_UDIS86!$USE_UDIS86$ac_delim
20756 USE_OPROFILE!$USE_OPROFILE$ac_delim
20757 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
20758 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20759 MMAP_FILE!$MMAP_FILE$ac_delim
20760 LLVMCC1!$LLVMCC1$ac_delim
20761 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
20762 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
20763 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
20764 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
20765 SHLIBEXT!$SHLIBEXT$ac_delim
20766 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20767 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
20768 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
20769 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20770 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20771 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
20772 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
20773 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20774 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20775 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
20776 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20777 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
20778 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20779 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
20780 RPATH!$RPATH$ac_delim
20781 RDYNAMIC!$RDYNAMIC$ac_delim
20782 LIBOBJS!$LIBOBJS$ac_delim
20783 LTLIBOBJS!$LTLIBOBJS$ac_delim
20784 _ACEOF
20785
20786   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 86; then
20787     break
20788   elif $ac_last_try; then
20789     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20790 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20791    { (exit 1); exit 1; }; }
20792   else
20793     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20794   fi
20795 done
20796
20797 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20798 if test -n "$ac_eof"; then
20799   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20800   ac_eof=`expr $ac_eof + 1`
20801 fi
20802
20803 cat >>$CONFIG_STATUS <<_ACEOF
20804 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20805 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20806 _ACEOF
20807 sed '
20808 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20809 s/^/s,@/; s/!/@,|#_!!_#|/
20810 :n
20811 t n
20812 s/'"$ac_delim"'$/,g/; t
20813 s/$/\\/; p
20814 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20815 ' >>$CONFIG_STATUS <conf$$subs.sed
20816 rm -f conf$$subs.sed
20817 cat >>$CONFIG_STATUS <<_ACEOF
20818 :end
20819 s/|#_!!_#|//g
20820 CEOF$ac_eof
20821 _ACEOF
20822
20823
20824 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20825 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20826 # trailing colons and then remove the whole line if VPATH becomes empty
20827 # (actually we leave an empty line to preserve line numbers).
20828 if test "x$srcdir" = x.; then
20829   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20830 s/:*\$(srcdir):*/:/
20831 s/:*\${srcdir}:*/:/
20832 s/:*@srcdir@:*/:/
20833 s/^\([^=]*=[     ]*\):*/\1/
20834 s/:*$//
20835 s/^[^=]*=[       ]*$//
20836 }'
20837 fi
20838
20839 cat >>$CONFIG_STATUS <<\_ACEOF
20840 fi # test -n "$CONFIG_FILES"
20841
20842
20843 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
20844 do
20845   case $ac_tag in
20846   :[FHLC]) ac_mode=$ac_tag; continue;;
20847   esac
20848   case $ac_mode$ac_tag in
20849   :[FHL]*:*);;
20850   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20851 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20852    { (exit 1); exit 1; }; };;
20853   :[FH]-) ac_tag=-:-;;
20854   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20855   esac
20856   ac_save_IFS=$IFS
20857   IFS=:
20858   set x $ac_tag
20859   IFS=$ac_save_IFS
20860   shift
20861   ac_file=$1
20862   shift
20863
20864   case $ac_mode in
20865   :L) ac_source=$1;;
20866   :[FH])
20867     ac_file_inputs=
20868     for ac_f
20869     do
20870       case $ac_f in
20871       -) ac_f="$tmp/stdin";;
20872       *) # Look for the file first in the build tree, then in the source tree
20873          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20874          # because $ac_f cannot contain `:'.
20875          test -f "$ac_f" ||
20876            case $ac_f in
20877            [\\/$]*) false;;
20878            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20879            esac ||
20880            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20881 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20882    { (exit 1); exit 1; }; };;
20883       esac
20884       ac_file_inputs="$ac_file_inputs $ac_f"
20885     done
20886
20887     # Let's still pretend it is `configure' which instantiates (i.e., don't
20888     # use $as_me), people would be surprised to read:
20889     #    /* config.h.  Generated by config.status.  */
20890     configure_input="Generated from "`IFS=:
20891           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20892     if test x"$ac_file" != x-; then
20893       configure_input="$ac_file.  $configure_input"
20894       { echo "$as_me:$LINENO: creating $ac_file" >&5
20895 echo "$as_me: creating $ac_file" >&6;}
20896     fi
20897
20898     case $ac_tag in
20899     *:-:* | *:-) cat >"$tmp/stdin";;
20900     esac
20901     ;;
20902   esac
20903
20904   ac_dir=`$as_dirname -- "$ac_file" ||
20905 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20906          X"$ac_file" : 'X\(//\)[^/]' \| \
20907          X"$ac_file" : 'X\(//\)$' \| \
20908          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20909 echo X"$ac_file" |
20910     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20911             s//\1/
20912             q
20913           }
20914           /^X\(\/\/\)[^/].*/{
20915             s//\1/
20916             q
20917           }
20918           /^X\(\/\/\)$/{
20919             s//\1/
20920             q
20921           }
20922           /^X\(\/\).*/{
20923             s//\1/
20924             q
20925           }
20926           s/.*/./; q'`
20927   { as_dir="$ac_dir"
20928   case $as_dir in #(
20929   -*) as_dir=./$as_dir;;
20930   esac
20931   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20932     as_dirs=
20933     while :; do
20934       case $as_dir in #(
20935       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20936       *) as_qdir=$as_dir;;
20937       esac
20938       as_dirs="'$as_qdir' $as_dirs"
20939       as_dir=`$as_dirname -- "$as_dir" ||
20940 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20941          X"$as_dir" : 'X\(//\)[^/]' \| \
20942          X"$as_dir" : 'X\(//\)$' \| \
20943          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20944 echo X"$as_dir" |
20945     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20946             s//\1/
20947             q
20948           }
20949           /^X\(\/\/\)[^/].*/{
20950             s//\1/
20951             q
20952           }
20953           /^X\(\/\/\)$/{
20954             s//\1/
20955             q
20956           }
20957           /^X\(\/\).*/{
20958             s//\1/
20959             q
20960           }
20961           s/.*/./; q'`
20962       test -d "$as_dir" && break
20963     done
20964     test -z "$as_dirs" || eval "mkdir $as_dirs"
20965   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20966 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20967    { (exit 1); exit 1; }; }; }
20968   ac_builddir=.
20969
20970 case "$ac_dir" in
20971 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20972 *)
20973   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20974   # A ".." for each directory in $ac_dir_suffix.
20975   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20976   case $ac_top_builddir_sub in
20977   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20978   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20979   esac ;;
20980 esac
20981 ac_abs_top_builddir=$ac_pwd
20982 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20983 # for backward compatibility:
20984 ac_top_builddir=$ac_top_build_prefix
20985
20986 case $srcdir in
20987   .)  # We are building in place.
20988     ac_srcdir=.
20989     ac_top_srcdir=$ac_top_builddir_sub
20990     ac_abs_top_srcdir=$ac_pwd ;;
20991   [\\/]* | ?:[\\/]* )  # Absolute name.
20992     ac_srcdir=$srcdir$ac_dir_suffix;
20993     ac_top_srcdir=$srcdir
20994     ac_abs_top_srcdir=$srcdir ;;
20995   *) # Relative name.
20996     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20997     ac_top_srcdir=$ac_top_build_prefix$srcdir
20998     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20999 esac
21000 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21001
21002
21003   case $ac_mode in
21004   :F)
21005   #
21006   # CONFIG_FILE
21007   #
21008
21009   case $INSTALL in
21010   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21011   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21012   esac
21013 _ACEOF
21014
21015 cat >>$CONFIG_STATUS <<\_ACEOF
21016 # If the template does not know about datarootdir, expand it.
21017 # FIXME: This hack should be removed a few years after 2.60.
21018 ac_datarootdir_hack=; ac_datarootdir_seen=
21019
21020 case `sed -n '/datarootdir/ {
21021   p
21022   q
21023 }
21024 /@datadir@/p
21025 /@docdir@/p
21026 /@infodir@/p
21027 /@localedir@/p
21028 /@mandir@/p
21029 ' $ac_file_inputs` in
21030 *datarootdir*) ac_datarootdir_seen=yes;;
21031 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21032   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21033 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21034 _ACEOF
21035 cat >>$CONFIG_STATUS <<_ACEOF
21036   ac_datarootdir_hack='
21037   s&@datadir@&$datadir&g
21038   s&@docdir@&$docdir&g
21039   s&@infodir@&$infodir&g
21040   s&@localedir@&$localedir&g
21041   s&@mandir@&$mandir&g
21042     s&\\\${datarootdir}&$datarootdir&g' ;;
21043 esac
21044 _ACEOF
21045
21046 # Neutralize VPATH when `$srcdir' = `.'.
21047 # Shell code in configure.ac might set extrasub.
21048 # FIXME: do we really want to maintain this feature?
21049 cat >>$CONFIG_STATUS <<_ACEOF
21050   sed "$ac_vpsub
21051 $extrasub
21052 _ACEOF
21053 cat >>$CONFIG_STATUS <<\_ACEOF
21054 :t
21055 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21056 s&@configure_input@&$configure_input&;t t
21057 s&@top_builddir@&$ac_top_builddir_sub&;t t
21058 s&@srcdir@&$ac_srcdir&;t t
21059 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21060 s&@top_srcdir@&$ac_top_srcdir&;t t
21061 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21062 s&@builddir@&$ac_builddir&;t t
21063 s&@abs_builddir@&$ac_abs_builddir&;t t
21064 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21065 s&@INSTALL@&$ac_INSTALL&;t t
21066 $ac_datarootdir_hack
21067 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21068
21069 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21070   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21071   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21072   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21073 which seems to be undefined.  Please make sure it is defined." >&5
21074 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21075 which seems to be undefined.  Please make sure it is defined." >&2;}
21076
21077   rm -f "$tmp/stdin"
21078   case $ac_file in
21079   -) cat "$tmp/out"; rm -f "$tmp/out";;
21080   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21081   esac
21082  ;;
21083   :H)
21084   #
21085   # CONFIG_HEADER
21086   #
21087 _ACEOF
21088
21089 # Transform confdefs.h into a sed script `conftest.defines', that
21090 # substitutes the proper values into config.h.in to produce config.h.
21091 rm -f conftest.defines conftest.tail
21092 # First, append a space to every undef/define line, to ease matching.
21093 echo 's/$/ /' >conftest.defines
21094 # Then, protect against being on the right side of a sed subst, or in
21095 # an unquoted here document, in config.status.  If some macros were
21096 # called several times there might be several #defines for the same
21097 # symbol, which is useless.  But do not sort them, since the last
21098 # AC_DEFINE must be honored.
21099 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21100 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21101 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21102 # PARAMS is the parameter list in the macro definition--in most cases, it's
21103 # just an empty string.
21104 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
21105 ac_dB='\\)[      (].*,\\1define\\2'
21106 ac_dC=' '
21107 ac_dD=' ,'
21108
21109 uniq confdefs.h |
21110   sed -n '
21111         t rset
21112         :rset
21113         s/^[     ]*#[    ]*define[       ][      ]*//
21114         t ok
21115         d
21116         :ok
21117         s/[\\&,]/\\&/g
21118         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21119         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21120   ' >>conftest.defines
21121
21122 # Remove the space that was appended to ease matching.
21123 # Then replace #undef with comments.  This is necessary, for
21124 # example, in the case of _POSIX_SOURCE, which is predefined and required
21125 # on some systems where configure will not decide to define it.
21126 # (The regexp can be short, since the line contains either #define or #undef.)
21127 echo 's/ $//
21128 s,^[     #]*u.*,/* & */,' >>conftest.defines
21129
21130 # Break up conftest.defines:
21131 ac_max_sed_lines=50
21132
21133 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21134 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21135 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21136 # et cetera.
21137 ac_in='$ac_file_inputs'
21138 ac_out='"$tmp/out1"'
21139 ac_nxt='"$tmp/out2"'
21140
21141 while :
21142 do
21143   # Write a here document:
21144     cat >>$CONFIG_STATUS <<_ACEOF
21145     # First, check the format of the line:
21146     cat >"\$tmp/defines.sed" <<\\CEOF
21147 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
21148 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
21149 b
21150 :def
21151 _ACEOF
21152   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21153   echo 'CEOF
21154     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21155   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21156   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21157   grep . conftest.tail >/dev/null || break
21158   rm -f conftest.defines
21159   mv conftest.tail conftest.defines
21160 done
21161 rm -f conftest.defines conftest.tail
21162
21163 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21164 cat >>$CONFIG_STATUS <<\_ACEOF
21165   if test x"$ac_file" != x-; then
21166     echo "/* $configure_input  */" >"$tmp/config.h"
21167     cat "$ac_result" >>"$tmp/config.h"
21168     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21169       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21170 echo "$as_me: $ac_file is unchanged" >&6;}
21171     else
21172       rm -f $ac_file
21173       mv "$tmp/config.h" $ac_file
21174     fi
21175   else
21176     echo "/* $configure_input  */"
21177     cat "$ac_result"
21178   fi
21179   rm -f "$tmp/out12"
21180  ;;
21181
21182   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21183 echo "$as_me: executing $ac_file commands" >&6;}
21184  ;;
21185   esac
21186
21187
21188   case $ac_file$ac_mode in
21189     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
21190    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
21191     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
21192    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
21193     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
21194    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
21195     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
21196    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
21197     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
21198    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
21199     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
21200    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
21201     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
21202    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
21203     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
21204    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
21205     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
21206    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
21207     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
21208    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
21209     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
21210    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
21211     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
21212    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
21213     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
21214    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
21215
21216   esac
21217 done # for ac_tag
21218
21219
21220 { (exit 0); exit 0; }
21221 _ACEOF
21222 chmod +x $CONFIG_STATUS
21223 ac_clean_files=$ac_clean_files_save
21224
21225
21226 # configure is writing to config.log, and then calls config.status.
21227 # config.status does its own redirection, appending to config.log.
21228 # Unfortunately, on DOS this fails, as config.log is still kept open
21229 # by configure, so config.status won't be able to write to it; its
21230 # output is simply discarded.  So we exec the FD to /dev/null,
21231 # effectively closing config.log, so it can be properly (re)opened and
21232 # appended to by config.status.  When coming back to configure, we
21233 # need to make the FD available again.
21234 if test "$no_create" != yes; then
21235   ac_cs_success=:
21236   ac_config_status_args=
21237   test "$silent" = yes &&
21238     ac_config_status_args="$ac_config_status_args --quiet"
21239   exec 5>/dev/null
21240   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21241   exec 5>>config.log
21242   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21243   # would make configure fail if this is the last instruction.
21244   $ac_cs_success || { (exit 1); exit 1; }
21245 fi
21246
21247 #
21248 # CONFIG_SUBDIRS section.
21249 #
21250 if test "$no_recursion" != yes; then
21251
21252   # Remove --cache-file and --srcdir arguments so they do not pile up.
21253   ac_sub_configure_args=
21254   ac_prev=
21255   eval "set x $ac_configure_args"
21256   shift
21257   for ac_arg
21258   do
21259     if test -n "$ac_prev"; then
21260       ac_prev=
21261       continue
21262     fi
21263     case $ac_arg in
21264     -cache-file | --cache-file | --cache-fil | --cache-fi \
21265     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21266       ac_prev=cache_file ;;
21267     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21268     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21269     | --c=*)
21270       ;;
21271     --config-cache | -C)
21272       ;;
21273     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21274       ac_prev=srcdir ;;
21275     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21276       ;;
21277     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21278       ac_prev=prefix ;;
21279     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21280       ;;
21281     *)
21282       case $ac_arg in
21283       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21284       esac
21285       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
21286     esac
21287   done
21288
21289   # Always prepend --prefix to ensure using the same prefix
21290   # in subdir configurations.
21291   ac_arg="--prefix=$prefix"
21292   case $ac_arg in
21293   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21294   esac
21295   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
21296
21297   ac_popdir=`pwd`
21298   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21299
21300     # Do not complain, so a configure script can configure whichever
21301     # parts of a large source tree are present.
21302     test -d "$srcdir/$ac_dir" || continue
21303
21304     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21305     echo "$as_me:$LINENO: $ac_msg" >&5
21306     echo "$ac_msg" >&6
21307     { as_dir="$ac_dir"
21308   case $as_dir in #(
21309   -*) as_dir=./$as_dir;;
21310   esac
21311   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21312     as_dirs=
21313     while :; do
21314       case $as_dir in #(
21315       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21316       *) as_qdir=$as_dir;;
21317       esac
21318       as_dirs="'$as_qdir' $as_dirs"
21319       as_dir=`$as_dirname -- "$as_dir" ||
21320 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21321          X"$as_dir" : 'X\(//\)[^/]' \| \
21322          X"$as_dir" : 'X\(//\)$' \| \
21323          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21324 echo X"$as_dir" |
21325     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21326             s//\1/
21327             q
21328           }
21329           /^X\(\/\/\)[^/].*/{
21330             s//\1/
21331             q
21332           }
21333           /^X\(\/\/\)$/{
21334             s//\1/
21335             q
21336           }
21337           /^X\(\/\).*/{
21338             s//\1/
21339             q
21340           }
21341           s/.*/./; q'`
21342       test -d "$as_dir" && break
21343     done
21344     test -z "$as_dirs" || eval "mkdir $as_dirs"
21345   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21346 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21347    { (exit 1); exit 1; }; }; }
21348     ac_builddir=.
21349
21350 case "$ac_dir" in
21351 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21352 *)
21353   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21354   # A ".." for each directory in $ac_dir_suffix.
21355   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21356   case $ac_top_builddir_sub in
21357   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21358   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21359   esac ;;
21360 esac
21361 ac_abs_top_builddir=$ac_pwd
21362 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21363 # for backward compatibility:
21364 ac_top_builddir=$ac_top_build_prefix
21365
21366 case $srcdir in
21367   .)  # We are building in place.
21368     ac_srcdir=.
21369     ac_top_srcdir=$ac_top_builddir_sub
21370     ac_abs_top_srcdir=$ac_pwd ;;
21371   [\\/]* | ?:[\\/]* )  # Absolute name.
21372     ac_srcdir=$srcdir$ac_dir_suffix;
21373     ac_top_srcdir=$srcdir
21374     ac_abs_top_srcdir=$srcdir ;;
21375   *) # Relative name.
21376     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21377     ac_top_srcdir=$ac_top_build_prefix$srcdir
21378     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21379 esac
21380 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21381
21382
21383     cd "$ac_dir"
21384
21385     # Check for guested configure; otherwise get Cygnus style configure.
21386     if test -f "$ac_srcdir/configure.gnu"; then
21387       ac_sub_configure=$ac_srcdir/configure.gnu
21388     elif test -f "$ac_srcdir/configure"; then
21389       ac_sub_configure=$ac_srcdir/configure
21390     elif test -f "$ac_srcdir/configure.in"; then
21391       # This should be Cygnus configure.
21392       ac_sub_configure=$ac_aux_dir/configure
21393     else
21394       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21395 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21396       ac_sub_configure=
21397     fi
21398
21399     # The recursion is here.
21400     if test -n "$ac_sub_configure"; then
21401       # Make the cache file name correct relative to the subdirectory.
21402       case $cache_file in
21403       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21404       *) # Relative name.
21405         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21406       esac
21407
21408       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21409 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21410       # The eval makes quoting arguments work.
21411       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21412            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21413         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21414 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21415    { (exit 1); exit 1; }; }
21416     fi
21417
21418     cd "$ac_popdir"
21419   done
21420 fi
21421