Kill off unused LLVMGCCLIBEXEC make variable.
[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 LLVMGCC_LANGS
768 SHLIBEXT
769 LLVM_PREFIX
770 LLVM_BINDIR
771 LLVM_LIBDIR
772 LLVM_DATADIR
773 LLVM_DOCSDIR
774 LLVM_ETCDIR
775 LLVM_INCLUDEDIR
776 LLVM_INFODIR
777 LLVM_MANDIR
778 LLVM_CONFIGTIME
779 BINDINGS_TO_BUILD
780 ALL_BINDINGS
781 OCAML_LIBDIR
782 ENABLE_VISIBILITY_INLINES_HIDDEN
783 RPATH
784 RDYNAMIC
785 LIBOBJS
786 LTLIBOBJS'
787 ac_subst_files=''
788       ac_precious_vars='build_alias
789 host_alias
790 target_alias
791 CC
792 CFLAGS
793 LDFLAGS
794 CPPFLAGS
795 CPP
796 CXX
797 CXXFLAGS
798 CCC'
799 ac_subdirs_all='projects/sample
800 projects/privbracket
801 projects/llvm-stacker
802 projects/llvm-test
803 projects/test-suite
804 projects/llvm-reopt
805 projects/llvm-gcc
806 projects/llvm-java
807 projects/llvm-tv
808 projects/llvm-poolalloc
809 projects/poolalloc
810 projects/llvm-kernel'
811
812 # Initialize some variables set by options.
813 ac_init_help=
814 ac_init_version=false
815 # The variables have the same names as the options, with
816 # dashes changed to underlines.
817 cache_file=/dev/null
818 exec_prefix=NONE
819 no_create=
820 no_recursion=
821 prefix=NONE
822 program_prefix=NONE
823 program_suffix=NONE
824 program_transform_name=s,x,x,
825 silent=
826 site=
827 srcdir=
828 verbose=
829 x_includes=NONE
830 x_libraries=NONE
831
832 # Installation directory options.
833 # These are left unexpanded so users can "make install exec_prefix=/foo"
834 # and all the variables that are supposed to be based on exec_prefix
835 # by default will actually change.
836 # Use braces instead of parens because sh, perl, etc. also accept them.
837 # (The list follows the same order as the GNU Coding Standards.)
838 bindir='${exec_prefix}/bin'
839 sbindir='${exec_prefix}/sbin'
840 libexecdir='${exec_prefix}/libexec'
841 datarootdir='${prefix}/share'
842 datadir='${datarootdir}'
843 sysconfdir='${prefix}/etc'
844 sharedstatedir='${prefix}/com'
845 localstatedir='${prefix}/var'
846 includedir='${prefix}/include'
847 oldincludedir='/usr/include'
848 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
849 infodir='${datarootdir}/info'
850 htmldir='${docdir}'
851 dvidir='${docdir}'
852 pdfdir='${docdir}'
853 psdir='${docdir}'
854 libdir='${exec_prefix}/lib'
855 localedir='${datarootdir}/locale'
856 mandir='${datarootdir}/man'
857
858 ac_prev=
859 ac_dashdash=
860 for ac_option
861 do
862   # If the previous option needs an argument, assign it.
863   if test -n "$ac_prev"; then
864     eval $ac_prev=\$ac_option
865     ac_prev=
866     continue
867   fi
868
869   case $ac_option in
870   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
871   *)    ac_optarg=yes ;;
872   esac
873
874   # Accept the important Cygnus configure options, so we can diagnose typos.
875
876   case $ac_dashdash$ac_option in
877   --)
878     ac_dashdash=yes ;;
879
880   -bindir | --bindir | --bindi | --bind | --bin | --bi)
881     ac_prev=bindir ;;
882   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
883     bindir=$ac_optarg ;;
884
885   -build | --build | --buil | --bui | --bu)
886     ac_prev=build_alias ;;
887   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
888     build_alias=$ac_optarg ;;
889
890   -cache-file | --cache-file | --cache-fil | --cache-fi \
891   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
892     ac_prev=cache_file ;;
893   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
894   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
895     cache_file=$ac_optarg ;;
896
897   --config-cache | -C)
898     cache_file=config.cache ;;
899
900   -datadir | --datadir | --datadi | --datad)
901     ac_prev=datadir ;;
902   -datadir=* | --datadir=* | --datadi=* | --datad=*)
903     datadir=$ac_optarg ;;
904
905   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
906   | --dataroo | --dataro | --datar)
907     ac_prev=datarootdir ;;
908   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
909   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
910     datarootdir=$ac_optarg ;;
911
912   -disable-* | --disable-*)
913     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
914     # Reject names that are not valid shell variable names.
915     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
916       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
917    { (exit 1); exit 1; }; }
918     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
919     eval enable_$ac_feature=no ;;
920
921   -docdir | --docdir | --docdi | --doc | --do)
922     ac_prev=docdir ;;
923   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
924     docdir=$ac_optarg ;;
925
926   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
927     ac_prev=dvidir ;;
928   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
929     dvidir=$ac_optarg ;;
930
931   -enable-* | --enable-*)
932     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
933     # Reject names that are not valid shell variable names.
934     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
935       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
936    { (exit 1); exit 1; }; }
937     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
938     eval enable_$ac_feature=\$ac_optarg ;;
939
940   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
941   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
942   | --exec | --exe | --ex)
943     ac_prev=exec_prefix ;;
944   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
945   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
946   | --exec=* | --exe=* | --ex=*)
947     exec_prefix=$ac_optarg ;;
948
949   -gas | --gas | --ga | --g)
950     # Obsolete; use --with-gas.
951     with_gas=yes ;;
952
953   -help | --help | --hel | --he | -h)
954     ac_init_help=long ;;
955   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
956     ac_init_help=recursive ;;
957   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
958     ac_init_help=short ;;
959
960   -host | --host | --hos | --ho)
961     ac_prev=host_alias ;;
962   -host=* | --host=* | --hos=* | --ho=*)
963     host_alias=$ac_optarg ;;
964
965   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
966     ac_prev=htmldir ;;
967   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
968   | --ht=*)
969     htmldir=$ac_optarg ;;
970
971   -includedir | --includedir | --includedi | --included | --include \
972   | --includ | --inclu | --incl | --inc)
973     ac_prev=includedir ;;
974   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
975   | --includ=* | --inclu=* | --incl=* | --inc=*)
976     includedir=$ac_optarg ;;
977
978   -infodir | --infodir | --infodi | --infod | --info | --inf)
979     ac_prev=infodir ;;
980   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
981     infodir=$ac_optarg ;;
982
983   -libdir | --libdir | --libdi | --libd)
984     ac_prev=libdir ;;
985   -libdir=* | --libdir=* | --libdi=* | --libd=*)
986     libdir=$ac_optarg ;;
987
988   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
989   | --libexe | --libex | --libe)
990     ac_prev=libexecdir ;;
991   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
992   | --libexe=* | --libex=* | --libe=*)
993     libexecdir=$ac_optarg ;;
994
995   -localedir | --localedir | --localedi | --localed | --locale)
996     ac_prev=localedir ;;
997   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
998     localedir=$ac_optarg ;;
999
1000   -localstatedir | --localstatedir | --localstatedi | --localstated \
1001   | --localstate | --localstat | --localsta | --localst | --locals)
1002     ac_prev=localstatedir ;;
1003   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1004   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1005     localstatedir=$ac_optarg ;;
1006
1007   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1008     ac_prev=mandir ;;
1009   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1010     mandir=$ac_optarg ;;
1011
1012   -nfp | --nfp | --nf)
1013     # Obsolete; use --without-fp.
1014     with_fp=no ;;
1015
1016   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1017   | --no-cr | --no-c | -n)
1018     no_create=yes ;;
1019
1020   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1021   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1022     no_recursion=yes ;;
1023
1024   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1025   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1026   | --oldin | --oldi | --old | --ol | --o)
1027     ac_prev=oldincludedir ;;
1028   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1029   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1030   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1031     oldincludedir=$ac_optarg ;;
1032
1033   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1034     ac_prev=prefix ;;
1035   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1036     prefix=$ac_optarg ;;
1037
1038   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1039   | --program-pre | --program-pr | --program-p)
1040     ac_prev=program_prefix ;;
1041   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1042   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1043     program_prefix=$ac_optarg ;;
1044
1045   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1046   | --program-suf | --program-su | --program-s)
1047     ac_prev=program_suffix ;;
1048   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1049   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1050     program_suffix=$ac_optarg ;;
1051
1052   -program-transform-name | --program-transform-name \
1053   | --program-transform-nam | --program-transform-na \
1054   | --program-transform-n | --program-transform- \
1055   | --program-transform | --program-transfor \
1056   | --program-transfo | --program-transf \
1057   | --program-trans | --program-tran \
1058   | --progr-tra | --program-tr | --program-t)
1059     ac_prev=program_transform_name ;;
1060   -program-transform-name=* | --program-transform-name=* \
1061   | --program-transform-nam=* | --program-transform-na=* \
1062   | --program-transform-n=* | --program-transform-=* \
1063   | --program-transform=* | --program-transfor=* \
1064   | --program-transfo=* | --program-transf=* \
1065   | --program-trans=* | --program-tran=* \
1066   | --progr-tra=* | --program-tr=* | --program-t=*)
1067     program_transform_name=$ac_optarg ;;
1068
1069   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1070     ac_prev=pdfdir ;;
1071   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1072     pdfdir=$ac_optarg ;;
1073
1074   -psdir | --psdir | --psdi | --psd | --ps)
1075     ac_prev=psdir ;;
1076   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1077     psdir=$ac_optarg ;;
1078
1079   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080   | -silent | --silent | --silen | --sile | --sil)
1081     silent=yes ;;
1082
1083   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1084     ac_prev=sbindir ;;
1085   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1086   | --sbi=* | --sb=*)
1087     sbindir=$ac_optarg ;;
1088
1089   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1090   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1091   | --sharedst | --shareds | --shared | --share | --shar \
1092   | --sha | --sh)
1093     ac_prev=sharedstatedir ;;
1094   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1095   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1096   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1097   | --sha=* | --sh=*)
1098     sharedstatedir=$ac_optarg ;;
1099
1100   -site | --site | --sit)
1101     ac_prev=site ;;
1102   -site=* | --site=* | --sit=*)
1103     site=$ac_optarg ;;
1104
1105   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1106     ac_prev=srcdir ;;
1107   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1108     srcdir=$ac_optarg ;;
1109
1110   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1111   | --syscon | --sysco | --sysc | --sys | --sy)
1112     ac_prev=sysconfdir ;;
1113   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1114   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1115     sysconfdir=$ac_optarg ;;
1116
1117   -target | --target | --targe | --targ | --tar | --ta | --t)
1118     ac_prev=target_alias ;;
1119   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1120     target_alias=$ac_optarg ;;
1121
1122   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1123     verbose=yes ;;
1124
1125   -version | --version | --versio | --versi | --vers | -V)
1126     ac_init_version=: ;;
1127
1128   -with-* | --with-*)
1129     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1130     # Reject names that are not valid shell variable names.
1131     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1132       { echo "$as_me: error: invalid package name: $ac_package" >&2
1133    { (exit 1); exit 1; }; }
1134     ac_package=`echo $ac_package| sed 's/-/_/g'`
1135     eval with_$ac_package=\$ac_optarg ;;
1136
1137   -without-* | --without-*)
1138     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1139     # Reject names that are not valid shell variable names.
1140     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1141       { echo "$as_me: error: invalid package name: $ac_package" >&2
1142    { (exit 1); exit 1; }; }
1143     ac_package=`echo $ac_package | sed 's/-/_/g'`
1144     eval with_$ac_package=no ;;
1145
1146   --x)
1147     # Obsolete; use --with-x.
1148     with_x=yes ;;
1149
1150   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1151   | --x-incl | --x-inc | --x-in | --x-i)
1152     ac_prev=x_includes ;;
1153   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1154   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1155     x_includes=$ac_optarg ;;
1156
1157   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1158   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1159     ac_prev=x_libraries ;;
1160   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1161   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1162     x_libraries=$ac_optarg ;;
1163
1164   -*) { echo "$as_me: error: unrecognized option: $ac_option
1165 Try \`$0 --help' for more information." >&2
1166    { (exit 1); exit 1; }; }
1167     ;;
1168
1169   *=*)
1170     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1171     # Reject names that are not valid shell variable names.
1172     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1173       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1174    { (exit 1); exit 1; }; }
1175     eval $ac_envvar=\$ac_optarg
1176     export $ac_envvar ;;
1177
1178   *)
1179     # FIXME: should be removed in autoconf 3.0.
1180     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1181     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1182       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1183     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1184     ;;
1185
1186   esac
1187 done
1188
1189 if test -n "$ac_prev"; then
1190   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1191   { echo "$as_me: error: missing argument to $ac_option" >&2
1192    { (exit 1); exit 1; }; }
1193 fi
1194
1195 # Be sure to have absolute directory names.
1196 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1197                 datadir sysconfdir sharedstatedir localstatedir includedir \
1198                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1199                 libdir localedir mandir
1200 do
1201   eval ac_val=\$$ac_var
1202   case $ac_val in
1203     [\\/$]* | ?:[\\/]* )  continue;;
1204     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1205   esac
1206   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1207    { (exit 1); exit 1; }; }
1208 done
1209
1210 # There might be people who depend on the old broken behavior: `$host'
1211 # used to hold the argument of --host etc.
1212 # FIXME: To remove some day.
1213 build=$build_alias
1214 host=$host_alias
1215 target=$target_alias
1216
1217 # FIXME: To remove some day.
1218 if test "x$host_alias" != x; then
1219   if test "x$build_alias" = x; then
1220     cross_compiling=maybe
1221     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1222     If a cross compiler is detected then cross compile mode will be used." >&2
1223   elif test "x$build_alias" != "x$host_alias"; then
1224     cross_compiling=yes
1225   fi
1226 fi
1227
1228 ac_tool_prefix=
1229 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1230
1231 test "$silent" = yes && exec 6>/dev/null
1232
1233
1234 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1235 ac_ls_di=`ls -di .` &&
1236 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1237   { echo "$as_me: error: Working directory cannot be determined" >&2
1238    { (exit 1); exit 1; }; }
1239 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1240   { echo "$as_me: error: pwd does not report name of working directory" >&2
1241    { (exit 1); exit 1; }; }
1242
1243
1244 # Find the source files, if location was not specified.
1245 if test -z "$srcdir"; then
1246   ac_srcdir_defaulted=yes
1247   # Try the directory containing this script, then the parent directory.
1248   ac_confdir=`$as_dirname -- "$0" ||
1249 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1250          X"$0" : 'X\(//\)[^/]' \| \
1251          X"$0" : 'X\(//\)$' \| \
1252          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1253 echo X"$0" |
1254     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1255             s//\1/
1256             q
1257           }
1258           /^X\(\/\/\)[^/].*/{
1259             s//\1/
1260             q
1261           }
1262           /^X\(\/\/\)$/{
1263             s//\1/
1264             q
1265           }
1266           /^X\(\/\).*/{
1267             s//\1/
1268             q
1269           }
1270           s/.*/./; q'`
1271   srcdir=$ac_confdir
1272   if test ! -r "$srcdir/$ac_unique_file"; then
1273     srcdir=..
1274   fi
1275 else
1276   ac_srcdir_defaulted=no
1277 fi
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1279   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1280   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1281    { (exit 1); exit 1; }; }
1282 fi
1283 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1284 ac_abs_confdir=`(
1285         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1286    { (exit 1); exit 1; }; }
1287         pwd)`
1288 # When building in place, set srcdir=.
1289 if test "$ac_abs_confdir" = "$ac_pwd"; then
1290   srcdir=.
1291 fi
1292 # Remove unnecessary trailing slashes from srcdir.
1293 # Double slashes in file names in object file debugging info
1294 # mess up M-x gdb in Emacs.
1295 case $srcdir in
1296 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1297 esac
1298 for ac_var in $ac_precious_vars; do
1299   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1300   eval ac_env_${ac_var}_value=\$${ac_var}
1301   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1302   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1303 done
1304
1305 #
1306 # Report the --help message.
1307 #
1308 if test "$ac_init_help" = "long"; then
1309   # Omit some internal or obsolete options to make the list less imposing.
1310   # This message is too long to be a string in the A/UX 3.1 sh.
1311   cat <<_ACEOF
1312 \`configure' configures llvm 2.7svn to adapt to many kinds of systems.
1313
1314 Usage: $0 [OPTION]... [VAR=VALUE]...
1315
1316 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1317 VAR=VALUE.  See below for descriptions of some of the useful variables.
1318
1319 Defaults for the options are specified in brackets.
1320
1321 Configuration:
1322   -h, --help              display this help and exit
1323       --help=short        display options specific to this package
1324       --help=recursive    display the short help of all the included packages
1325   -V, --version           display version information and exit
1326   -q, --quiet, --silent   do not print \`checking...' messages
1327       --cache-file=FILE   cache test results in FILE [disabled]
1328   -C, --config-cache      alias for \`--cache-file=config.cache'
1329   -n, --no-create         do not create output files
1330       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1331
1332 Installation directories:
1333   --prefix=PREFIX         install architecture-independent files in PREFIX
1334                           [$ac_default_prefix]
1335   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1336                           [PREFIX]
1337
1338 By default, \`make install' will install all the files in
1339 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1340 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1341 for instance \`--prefix=\$HOME'.
1342
1343 For better control, use the options below.
1344
1345 Fine tuning of the installation directories:
1346   --bindir=DIR           user executables [EPREFIX/bin]
1347   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1348   --libexecdir=DIR       program executables [EPREFIX/libexec]
1349   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1350   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1351   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1352   --libdir=DIR           object code libraries [EPREFIX/lib]
1353   --includedir=DIR       C header files [PREFIX/include]
1354   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1355   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1356   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1357   --infodir=DIR          info documentation [DATAROOTDIR/info]
1358   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1359   --mandir=DIR           man documentation [DATAROOTDIR/man]
1360   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1361   --htmldir=DIR          html documentation [DOCDIR]
1362   --dvidir=DIR           dvi documentation [DOCDIR]
1363   --pdfdir=DIR           pdf documentation [DOCDIR]
1364   --psdir=DIR            ps documentation [DOCDIR]
1365 _ACEOF
1366
1367   cat <<\_ACEOF
1368
1369 System types:
1370   --build=BUILD     configure for building on BUILD [guessed]
1371   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1372   --target=TARGET   configure for building compilers for TARGET [HOST]
1373 _ACEOF
1374 fi
1375
1376 if test -n "$ac_init_help"; then
1377   case $ac_init_help in
1378      short | recursive ) echo "Configuration of llvm 2.7svn:";;
1379    esac
1380   cat <<\_ACEOF
1381
1382 Optional Features:
1383   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1384   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1385   --enable-optimized      Compile with optimizations enabled (default is NO)
1386   --enable-profiling      Compile with profiling enabled (default is NO)
1387   --enable-assertions     Compile with assertion checks enabled (default is
1388                           YES)
1389   --enable-expensive-checks
1390                           Compile with expensive debug checks enabled (default
1391                           is NO)
1392   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1393                           NO)
1394   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1395                           optimization is on and YES if it's off)
1396   --enable-jit            Enable Just In Time Compiling (default is YES)
1397   --enable-doxygen        Build doxygen documentation (default is NO)
1398   --enable-threads        Use threads if available (default is YES)
1399   --enable-pic            Build LLVM with Position Independent Code (default
1400                           is YES)
1401   --enable-targets        Build specific host targets: all or
1402                           target1,target2,... Valid targets are: host, x86,
1403                           x86_64, sparc, powerpc, alpha, arm, mips, spu,
1404                           pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1405                           and cpp (default=all)
1406   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1407                           %a (default is YES)
1408   --enable-bindings       Build specific language bindings:
1409                           all,auto,none,{binding-name} (default=auto)
1410   --enable-libffi         Check for the presence of libffi (default is NO)
1411   --enable-llvmc-dynamic  Link LLVMC dynamically (default is NO, unless on
1412                           Win32)
1413   --enable-llvmc-dynamic-plugins
1414                           Enable dynamic LLVMC plugins (default is YES)
1415   --enable-ltdl-install   install libltdl
1416
1417 Optional Packages:
1418   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1419   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1420   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1421                           searches PATH)
1422   --with-llvmgcc          Specify location of llvm-gcc driver (default
1423                           searches PATH)
1424   --with-llvmgxx          Specify location of llvm-g++ driver (default
1425                           searches PATH)
1426   --with-optimize-option  Select the compiler options to use for optimized
1427                           builds
1428   --with-extra-options    Specify additional options to compile LLVM with
1429   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1430                           is stdlib)
1431   --with-c-include-dirs   Colon separated list of directories clang will
1432                           search for headers
1433   --with-cxx-include-root Directory with the libstdc++ headers.
1434   --with-cxx-include-arch Architecture of the libstdc++ headers.
1435   --with-cxx-include-32bit-dir
1436                           32 bit multilib dir.
1437   --with-cxx-include-64bit-dir
1438                           64 bit multilib directory.
1439   --with-binutils-include Specify path to binutils/include/ containing
1440                           plugin-api.h file for gold plugin.
1441   --with-tclinclude       directory where tcl headers are
1442   --with-udis86=<path>    Use udis86 external x86 disassembler library
1443   --with-oprofile=<prefix>
1444                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1445
1446 Some influential environment variables:
1447   CC          C compiler command
1448   CFLAGS      C compiler flags
1449   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1450               nonstandard directory <lib dir>
1451   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1452               you have headers in a nonstandard directory <include dir>
1453   CPP         C preprocessor
1454   CXX         C++ compiler command
1455   CXXFLAGS    C++ compiler flags
1456
1457 Use these variables to override the choices made by `configure' or to help
1458 it to find libraries and programs with nonstandard names/locations.
1459
1460 Report bugs to <llvmbugs@cs.uiuc.edu>.
1461 _ACEOF
1462 ac_status=$?
1463 fi
1464
1465 if test "$ac_init_help" = "recursive"; then
1466   # If there are subdirs, report their specific --help.
1467   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1468     test -d "$ac_dir" || continue
1469     ac_builddir=.
1470
1471 case "$ac_dir" in
1472 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473 *)
1474   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1475   # A ".." for each directory in $ac_dir_suffix.
1476   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1477   case $ac_top_builddir_sub in
1478   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1480   esac ;;
1481 esac
1482 ac_abs_top_builddir=$ac_pwd
1483 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1484 # for backward compatibility:
1485 ac_top_builddir=$ac_top_build_prefix
1486
1487 case $srcdir in
1488   .)  # We are building in place.
1489     ac_srcdir=.
1490     ac_top_srcdir=$ac_top_builddir_sub
1491     ac_abs_top_srcdir=$ac_pwd ;;
1492   [\\/]* | ?:[\\/]* )  # Absolute name.
1493     ac_srcdir=$srcdir$ac_dir_suffix;
1494     ac_top_srcdir=$srcdir
1495     ac_abs_top_srcdir=$srcdir ;;
1496   *) # Relative name.
1497     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1498     ac_top_srcdir=$ac_top_build_prefix$srcdir
1499     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1500 esac
1501 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1502
1503     cd "$ac_dir" || { ac_status=$?; continue; }
1504     # Check for guested configure.
1505     if test -f "$ac_srcdir/configure.gnu"; then
1506       echo &&
1507       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1508     elif test -f "$ac_srcdir/configure"; then
1509       echo &&
1510       $SHELL "$ac_srcdir/configure" --help=recursive
1511     else
1512       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1513     fi || ac_status=$?
1514     cd "$ac_pwd" || { ac_status=$?; break; }
1515   done
1516 fi
1517
1518 test -n "$ac_init_help" && exit $ac_status
1519 if $ac_init_version; then
1520   cat <<\_ACEOF
1521 llvm configure 2.7svn
1522 generated by GNU Autoconf 2.60
1523
1524 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1525 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1526 This configure script is free software; the Free Software Foundation
1527 gives unlimited permission to copy, distribute and modify it.
1528
1529 Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1530 _ACEOF
1531   exit
1532 fi
1533 cat >config.log <<_ACEOF
1534 This file contains any messages produced by compilers while
1535 running configure, to aid debugging if configure makes a mistake.
1536
1537 It was created by llvm $as_me 2.7svn, which was
1538 generated by GNU Autoconf 2.60.  Invocation command line was
1539
1540   $ $0 $@
1541
1542 _ACEOF
1543 exec 5>>config.log
1544 {
1545 cat <<_ASUNAME
1546 ## --------- ##
1547 ## Platform. ##
1548 ## --------- ##
1549
1550 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1551 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1552 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1553 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1554 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1555
1556 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1557 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1558
1559 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1560 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1561 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1562 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1563 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1564 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1565 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1566
1567 _ASUNAME
1568
1569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1570 for as_dir in $PATH
1571 do
1572   IFS=$as_save_IFS
1573   test -z "$as_dir" && as_dir=.
1574   echo "PATH: $as_dir"
1575 done
1576 IFS=$as_save_IFS
1577
1578 } >&5
1579
1580 cat >&5 <<_ACEOF
1581
1582
1583 ## ----------- ##
1584 ## Core tests. ##
1585 ## ----------- ##
1586
1587 _ACEOF
1588
1589
1590 # Keep a trace of the command line.
1591 # Strip out --no-create and --no-recursion so they do not pile up.
1592 # Strip out --silent because we don't want to record it for future runs.
1593 # Also quote any args containing shell meta-characters.
1594 # Make two passes to allow for proper duplicate-argument suppression.
1595 ac_configure_args=
1596 ac_configure_args0=
1597 ac_configure_args1=
1598 ac_must_keep_next=false
1599 for ac_pass in 1 2
1600 do
1601   for ac_arg
1602   do
1603     case $ac_arg in
1604     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1605     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1606     | -silent | --silent | --silen | --sile | --sil)
1607       continue ;;
1608     *\'*)
1609       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1610     esac
1611     case $ac_pass in
1612     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1613     2)
1614       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1615       if test $ac_must_keep_next = true; then
1616         ac_must_keep_next=false # Got value, back to normal.
1617       else
1618         case $ac_arg in
1619           *=* | --config-cache | -C | -disable-* | --disable-* \
1620           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1621           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1622           | -with-* | --with-* | -without-* | --without-* | --x)
1623             case "$ac_configure_args0 " in
1624               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1625             esac
1626             ;;
1627           -* ) ac_must_keep_next=true ;;
1628         esac
1629       fi
1630       ac_configure_args="$ac_configure_args '$ac_arg'"
1631       ;;
1632     esac
1633   done
1634 done
1635 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1636 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1637
1638 # When interrupted or exit'd, cleanup temporary files, and complete
1639 # config.log.  We remove comments because anyway the quotes in there
1640 # would cause problems or look ugly.
1641 # WARNING: Use '\'' to represent an apostrophe within the trap.
1642 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1643 trap 'exit_status=$?
1644   # Save into config.log some information that might help in debugging.
1645   {
1646     echo
1647
1648     cat <<\_ASBOX
1649 ## ---------------- ##
1650 ## Cache variables. ##
1651 ## ---------------- ##
1652 _ASBOX
1653     echo
1654     # The following way of writing the cache mishandles newlines in values,
1655 (
1656   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1657     eval ac_val=\$$ac_var
1658     case $ac_val in #(
1659     *${as_nl}*)
1660       case $ac_var in #(
1661       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1662 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1663       esac
1664       case $ac_var in #(
1665       _ | IFS | as_nl) ;; #(
1666       *) $as_unset $ac_var ;;
1667       esac ;;
1668     esac
1669   done
1670   (set) 2>&1 |
1671     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1672     *${as_nl}ac_space=\ *)
1673       sed -n \
1674         "s/'\''/'\''\\\\'\'''\''/g;
1675           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1676       ;; #(
1677     *)
1678       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1679       ;;
1680     esac |
1681     sort
1682 )
1683     echo
1684
1685     cat <<\_ASBOX
1686 ## ----------------- ##
1687 ## Output variables. ##
1688 ## ----------------- ##
1689 _ASBOX
1690     echo
1691     for ac_var in $ac_subst_vars
1692     do
1693       eval ac_val=\$$ac_var
1694       case $ac_val in
1695       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1696       esac
1697       echo "$ac_var='\''$ac_val'\''"
1698     done | sort
1699     echo
1700
1701     if test -n "$ac_subst_files"; then
1702       cat <<\_ASBOX
1703 ## ------------------- ##
1704 ## File substitutions. ##
1705 ## ------------------- ##
1706 _ASBOX
1707       echo
1708       for ac_var in $ac_subst_files
1709       do
1710         eval ac_val=\$$ac_var
1711         case $ac_val in
1712         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1713         esac
1714         echo "$ac_var='\''$ac_val'\''"
1715       done | sort
1716       echo
1717     fi
1718
1719     if test -s confdefs.h; then
1720       cat <<\_ASBOX
1721 ## ----------- ##
1722 ## confdefs.h. ##
1723 ## ----------- ##
1724 _ASBOX
1725       echo
1726       cat confdefs.h
1727       echo
1728     fi
1729     test "$ac_signal" != 0 &&
1730       echo "$as_me: caught signal $ac_signal"
1731     echo "$as_me: exit $exit_status"
1732   } >&5
1733   rm -f core *.core core.conftest.* &&
1734     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1735     exit $exit_status
1736 ' 0
1737 for ac_signal in 1 2 13 15; do
1738   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1739 done
1740 ac_signal=0
1741
1742 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1743 rm -f -r conftest* confdefs.h
1744
1745 # Predefined preprocessor variables.
1746
1747 cat >>confdefs.h <<_ACEOF
1748 #define PACKAGE_NAME "$PACKAGE_NAME"
1749 _ACEOF
1750
1751
1752 cat >>confdefs.h <<_ACEOF
1753 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1754 _ACEOF
1755
1756
1757 cat >>confdefs.h <<_ACEOF
1758 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1759 _ACEOF
1760
1761
1762 cat >>confdefs.h <<_ACEOF
1763 #define PACKAGE_STRING "$PACKAGE_STRING"
1764 _ACEOF
1765
1766
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1769 _ACEOF
1770
1771
1772 # Let the site file select an alternate cache file if it wants to.
1773 # Prefer explicitly selected file to automatically selected ones.
1774 if test -n "$CONFIG_SITE"; then
1775   set x "$CONFIG_SITE"
1776 elif test "x$prefix" != xNONE; then
1777   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1778 else
1779   set x "$ac_default_prefix/share/config.site" \
1780         "$ac_default_prefix/etc/config.site"
1781 fi
1782 shift
1783 for ac_site_file
1784 do
1785   if test -r "$ac_site_file"; then
1786     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1787 echo "$as_me: loading site script $ac_site_file" >&6;}
1788     sed 's/^/| /' "$ac_site_file" >&5
1789     . "$ac_site_file"
1790   fi
1791 done
1792
1793 if test -r "$cache_file"; then
1794   # Some versions of bash will fail to source /dev/null (special
1795   # files actually), so we avoid doing that.
1796   if test -f "$cache_file"; then
1797     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1798 echo "$as_me: loading cache $cache_file" >&6;}
1799     case $cache_file in
1800       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1801       *)                      . "./$cache_file";;
1802     esac
1803   fi
1804 else
1805   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1806 echo "$as_me: creating cache $cache_file" >&6;}
1807   >$cache_file
1808 fi
1809
1810 # Check that the precious variables saved in the cache have kept the same
1811 # value.
1812 ac_cache_corrupted=false
1813 for ac_var in $ac_precious_vars; do
1814   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1815   eval ac_new_set=\$ac_env_${ac_var}_set
1816   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1817   eval ac_new_val=\$ac_env_${ac_var}_value
1818   case $ac_old_set,$ac_new_set in
1819     set,)
1820       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1821 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1822       ac_cache_corrupted=: ;;
1823     ,set)
1824       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1825 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1826       ac_cache_corrupted=: ;;
1827     ,);;
1828     *)
1829       if test "x$ac_old_val" != "x$ac_new_val"; then
1830         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1831 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1832         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1833 echo "$as_me:   former value:  $ac_old_val" >&2;}
1834         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1835 echo "$as_me:   current value: $ac_new_val" >&2;}
1836         ac_cache_corrupted=:
1837       fi;;
1838   esac
1839   # Pass precious variables to config.status.
1840   if test "$ac_new_set" = set; then
1841     case $ac_new_val in
1842     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1843     *) ac_arg=$ac_var=$ac_new_val ;;
1844     esac
1845     case " $ac_configure_args " in
1846       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1847       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1848     esac
1849   fi
1850 done
1851 if $ac_cache_corrupted; then
1852   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1853 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1854   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1855 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1856    { (exit 1); exit 1; }; }
1857 fi
1858
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 ac_ext=c
1884 ac_cpp='$CPP $CPPFLAGS'
1885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1888
1889
1890
1891 LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
1892
1893
1894
1895
1896
1897
1898
1899 ac_aux_dir=
1900 for ac_dir in autoconf "$srcdir"/autoconf; do
1901   if test -f "$ac_dir/install-sh"; then
1902     ac_aux_dir=$ac_dir
1903     ac_install_sh="$ac_aux_dir/install-sh -c"
1904     break
1905   elif test -f "$ac_dir/install.sh"; then
1906     ac_aux_dir=$ac_dir
1907     ac_install_sh="$ac_aux_dir/install.sh -c"
1908     break
1909   elif test -f "$ac_dir/shtool"; then
1910     ac_aux_dir=$ac_dir
1911     ac_install_sh="$ac_aux_dir/shtool install -c"
1912     break
1913   fi
1914 done
1915 if test -z "$ac_aux_dir"; then
1916   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1917 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1918    { (exit 1); exit 1; }; }
1919 fi
1920
1921 # These three variables are undocumented and unsupported,
1922 # and are intended to be withdrawn in a future Autoconf release.
1923 # They can cause serious problems if a builder's source tree is in a directory
1924 # whose full name contains unusual characters.
1925 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1926 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1927 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1928
1929
1930
1931 if test ${srcdir} != "." ; then
1932   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1933     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1934 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1935    { (exit 1); exit 1; }; }
1936   fi
1937 fi
1938
1939 for i in `ls ${srcdir}/projects`
1940 do
1941   if test -d ${srcdir}/projects/${i} ; then
1942     case ${i} in
1943       CVS) ;;
1944       sample)       subdirs="$subdirs projects/sample"
1945     ;;
1946       privbracket)  subdirs="$subdirs projects/privbracket"
1947  ;;
1948       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1949  ;;
1950       # llvm-test is the old name of the test-suite, kept here for backwards
1951       # compatibility
1952       llvm-test)    subdirs="$subdirs projects/llvm-test"
1953  ;;
1954       test-suite)   subdirs="$subdirs projects/test-suite"
1955  ;;
1956       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
1957 ;;
1958       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
1959   ;;
1960       llvm-java)    subdirs="$subdirs projects/llvm-java"
1961  ;;
1962       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
1963    ;;
1964       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
1965  ;;
1966       poolalloc)    subdirs="$subdirs projects/poolalloc"
1967  ;;
1968       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
1969  ;;
1970       *)
1971         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1972 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1973         ;;
1974     esac
1975   fi
1976 done
1977
1978
1979 # Make sure we can run config.sub.
1980 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1981   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1982 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1983    { (exit 1); exit 1; }; }
1984
1985 { echo "$as_me:$LINENO: checking build system type" >&5
1986 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1987 if test "${ac_cv_build+set}" = set; then
1988   echo $ECHO_N "(cached) $ECHO_C" >&6
1989 else
1990   ac_build_alias=$build_alias
1991 test "x$ac_build_alias" = x &&
1992   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1993 test "x$ac_build_alias" = x &&
1994   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1995 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1996    { (exit 1); exit 1; }; }
1997 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1998   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1999 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2000    { (exit 1); exit 1; }; }
2001
2002 fi
2003 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2004 echo "${ECHO_T}$ac_cv_build" >&6; }
2005 case $ac_cv_build in
2006 *-*-*) ;;
2007 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2008 echo "$as_me: error: invalid value of canonical build" >&2;}
2009    { (exit 1); exit 1; }; };;
2010 esac
2011 build=$ac_cv_build
2012 ac_save_IFS=$IFS; IFS='-'
2013 set x $ac_cv_build
2014 shift
2015 build_cpu=$1
2016 build_vendor=$2
2017 shift; shift
2018 # Remember, the first character of IFS is used to create $*,
2019 # except with old shells:
2020 build_os=$*
2021 IFS=$ac_save_IFS
2022 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2023
2024
2025 { echo "$as_me:$LINENO: checking host system type" >&5
2026 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2027 if test "${ac_cv_host+set}" = set; then
2028   echo $ECHO_N "(cached) $ECHO_C" >&6
2029 else
2030   if test "x$host_alias" = x; then
2031   ac_cv_host=$ac_cv_build
2032 else
2033   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2034     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2035 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2036    { (exit 1); exit 1; }; }
2037 fi
2038
2039 fi
2040 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2041 echo "${ECHO_T}$ac_cv_host" >&6; }
2042 case $ac_cv_host in
2043 *-*-*) ;;
2044 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2045 echo "$as_me: error: invalid value of canonical host" >&2;}
2046    { (exit 1); exit 1; }; };;
2047 esac
2048 host=$ac_cv_host
2049 ac_save_IFS=$IFS; IFS='-'
2050 set x $ac_cv_host
2051 shift
2052 host_cpu=$1
2053 host_vendor=$2
2054 shift; shift
2055 # Remember, the first character of IFS is used to create $*,
2056 # except with old shells:
2057 host_os=$*
2058 IFS=$ac_save_IFS
2059 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2060
2061
2062 { echo "$as_me:$LINENO: checking target system type" >&5
2063 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2064 if test "${ac_cv_target+set}" = set; then
2065   echo $ECHO_N "(cached) $ECHO_C" >&6
2066 else
2067   if test "x$target_alias" = x; then
2068   ac_cv_target=$ac_cv_host
2069 else
2070   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2071     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2072 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2073    { (exit 1); exit 1; }; }
2074 fi
2075
2076 fi
2077 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2078 echo "${ECHO_T}$ac_cv_target" >&6; }
2079 case $ac_cv_target in
2080 *-*-*) ;;
2081 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2082 echo "$as_me: error: invalid value of canonical target" >&2;}
2083    { (exit 1); exit 1; }; };;
2084 esac
2085 target=$ac_cv_target
2086 ac_save_IFS=$IFS; IFS='-'
2087 set x $ac_cv_target
2088 shift
2089 target_cpu=$1
2090 target_vendor=$2
2091 shift; shift
2092 # Remember, the first character of IFS is used to create $*,
2093 # except with old shells:
2094 target_os=$*
2095 IFS=$ac_save_IFS
2096 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2097
2098
2099 # The aliases save the names the user supplied, while $host etc.
2100 # will get canonicalized.
2101 test -n "$target_alias" &&
2102   test "$program_prefix$program_suffix$program_transform_name" = \
2103     NONENONEs,x,x, &&
2104   program_prefix=${target_alias}-
2105
2106 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2107 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2108 if test "${llvm_cv_os_type+set}" = set; then
2109   echo $ECHO_N "(cached) $ECHO_C" >&6
2110 else
2111   case $host in
2112   *-*-aix*)
2113     llvm_cv_link_all_option="-Wl,--whole-archive"
2114     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2115     llvm_cv_os_type="AIX"
2116     llvm_cv_platform_type="Unix" ;;
2117   *-*-irix*)
2118     llvm_cv_link_all_option="-Wl,--whole-archive"
2119     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2120     llvm_cv_os_type="IRIX"
2121     llvm_cv_platform_type="Unix" ;;
2122   *-*-cygwin*)
2123     llvm_cv_link_all_option="-Wl,--whole-archive"
2124     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2125     llvm_cv_os_type="Cygwin"
2126     llvm_cv_platform_type="Unix" ;;
2127   *-*-darwin*)
2128     llvm_cv_link_all_option="-Wl,-all_load"
2129     llvm_cv_no_link_all_option="-Wl,-noall_load"
2130     llvm_cv_os_type="Darwin"
2131     llvm_cv_platform_type="Unix" ;;
2132   *-*-freebsd*)
2133     llvm_cv_link_all_option="-Wl,--whole-archive"
2134     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2135     llvm_cv_os_type="FreeBSD"
2136     llvm_cv_platform_type="Unix" ;;
2137   *-*-openbsd*)
2138     llvm_cv_link_all_option="-Wl,--whole-archive"
2139     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2140     llvm_cv_os_type="OpenBSD"
2141     llvm_cv_platform_type="Unix" ;;
2142   *-*-netbsd*)
2143     llvm_cv_link_all_option="-Wl,--whole-archive"
2144     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2145     llvm_cv_os_type="NetBSD"
2146     llvm_cv_platform_type="Unix" ;;
2147   *-*-dragonfly*)
2148     llvm_cv_link_all_option="-Wl,--whole-archive"
2149     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2150     llvm_cv_os_type="DragonFly"
2151     llvm_cv_platform_type="Unix" ;;
2152   *-*-hpux*)
2153     llvm_cv_link_all_option="-Wl,--whole-archive"
2154     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2155     llvm_cv_os_type="HP-UX"
2156     llvm_cv_platform_type="Unix" ;;
2157   *-*-interix*)
2158     llvm_cv_link_all_option="-Wl,--whole-archive"
2159     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2160     llvm_cv_os_type="Interix"
2161     llvm_cv_platform_type="Unix" ;;
2162   *-*-linux*)
2163     llvm_cv_link_all_option="-Wl,--whole-archive"
2164     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2165     llvm_cv_os_type="Linux"
2166     llvm_cv_platform_type="Unix" ;;
2167   *-*-solaris*)
2168     llvm_cv_link_all_option="-Wl,-z,allextract"
2169     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2170     llvm_cv_os_type="SunOS"
2171     llvm_cv_platform_type="Unix" ;;
2172   *-*-auroraux*)
2173     llvm_cv_link_all_option="-Wl,-z,allextract"
2174     llvm_cv_link_all_option="-Wl,-z,defaultextract"
2175     llvm_cv_os_type="AuroraUX"
2176     llvm_cv_platform_type="Unix" ;;
2177   *-*-win32*)
2178     llvm_cv_link_all_option="-Wl,--whole-archive"
2179     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2180     llvm_cv_os_type="Win32"
2181     llvm_cv_platform_type="Win32" ;;
2182   *-*-mingw*)
2183     llvm_cv_link_all_option="-Wl,--whole-archive"
2184     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2185     llvm_cv_os_type="MingW"
2186     llvm_cv_platform_type="Win32" ;;
2187   *-*-haiku*)
2188     llvm_cv_link_all_option="-Wl,--whole-archive"
2189     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2190     llvm_cv_os_type="Haiku"
2191     llvm_cv_platform_type="Unix" ;;
2192   *-unknown-eabi*)
2193     llvm_cv_link_all_option="-Wl,--whole-archive"
2194     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2195     llvm_cv_os_type="Freestanding"
2196     llvm_cv_platform_type="Unix" ;;
2197   *-unknown-elf*)
2198     llvm_cv_link_all_option="-Wl,--whole-archive"
2199     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2200     llvm_cv_os_type="Freestanding"
2201     llvm_cv_platform_type="Unix" ;;
2202   *)
2203     llvm_cv_link_all_option=""
2204     llvm_cv_no_link_all_option=""
2205     llvm_cv_os_type="Unknown"
2206     llvm_cv_platform_type="Unknown" ;;
2207 esac
2208 fi
2209 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2210 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2211
2212 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2213 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2214 if test "${llvm_cv_target_os_type+set}" = set; then
2215   echo $ECHO_N "(cached) $ECHO_C" >&6
2216 else
2217   case $target in
2218   *-*-aix*)
2219     llvm_cv_target_os_type="AIX" ;;
2220   *-*-irix*)
2221     llvm_cv_target_os_type="IRIX" ;;
2222   *-*-cygwin*)
2223     llvm_cv_target_os_type="Cygwin" ;;
2224   *-*-darwin*)
2225     llvm_cv_target_os_type="Darwin" ;;
2226   *-*-freebsd*)
2227     llvm_cv_target_os_type="FreeBSD" ;;
2228   *-*-openbsd*)
2229     llvm_cv_target_os_type="OpenBSD" ;;
2230   *-*-netbsd*)
2231     llvm_cv_target_os_type="NetBSD" ;;
2232   *-*-dragonfly*)
2233     llvm_cv_target_os_type="DragonFly" ;;
2234   *-*-hpux*)
2235     llvm_cv_target_os_type="HP-UX" ;;
2236   *-*-interix*)
2237     llvm_cv_target_os_type="Interix" ;;
2238   *-*-linux*)
2239     llvm_cv_target_os_type="Linux" ;;
2240   *-*-solaris*)
2241     llvm_cv_target_os_type="SunOS" ;;
2242   *-*-auroraux*)
2243     llvm_cv_target_os_type="AuroraUX" ;;
2244   *-*-win32*)
2245     llvm_cv_target_os_type="Win32" ;;
2246   *-*-mingw*)
2247     llvm_cv_target_os_type="MingW" ;;
2248   *-*-haiku*)
2249     llvm_cv_target_os_type="Haiku" ;;
2250   *-unknown-eabi*)
2251     llvm_cv_target_os_type="Freestanding" ;;
2252   *)
2253     llvm_cv_target_os_type="Unknown" ;;
2254 esac
2255 fi
2256 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2257 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2258
2259 if test "$llvm_cv_os_type" = "Unknown" ; then
2260   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2261 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2262    { (exit 1); exit 1; }; }
2263 fi
2264
2265 OS=$llvm_cv_os_type
2266
2267 HOST_OS=$llvm_cv_os_type
2268
2269 TARGET_OS=$llvm_cv_target_os_type
2270
2271
2272 LINKALL=$llvm_cv_link_all_option
2273
2274 NOLINKALL=$llvm_cv_no_link_all_option
2275
2276
2277 case $llvm_cv_platform_type in
2278   Unix)
2279
2280 cat >>confdefs.h <<\_ACEOF
2281 #define LLVM_ON_UNIX 1
2282 _ACEOF
2283
2284     LLVM_ON_UNIX=1
2285
2286     LLVM_ON_WIN32=0
2287
2288     ;;
2289   Win32)
2290
2291 cat >>confdefs.h <<\_ACEOF
2292 #define LLVM_ON_WIN32 1
2293 _ACEOF
2294
2295     LLVM_ON_UNIX=0
2296
2297     LLVM_ON_WIN32=1
2298
2299     ;;
2300 esac
2301
2302 { echo "$as_me:$LINENO: checking target architecture" >&5
2303 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2304 if test "${llvm_cv_target_arch+set}" = set; then
2305   echo $ECHO_N "(cached) $ECHO_C" >&6
2306 else
2307   case $target in
2308   i?86-*)                 llvm_cv_target_arch="x86" ;;
2309   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2310   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2311   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2312   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2313   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2314   mips-*)                 llvm_cv_target_arch="Mips" ;;
2315   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2316   xcore-*)                llvm_cv_target_arch="XCore" ;;
2317   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2318   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
2319   bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
2320   *)                      llvm_cv_target_arch="Unknown" ;;
2321 esac
2322 fi
2323 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2324 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2325
2326 if test "$llvm_cv_target_arch" = "Unknown" ; then
2327   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2328 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2329 fi
2330
2331 # Determine the LLVM native architecture for the target
2332 case "$llvm_cv_target_arch" in
2333     x86)     LLVM_NATIVE_ARCH="X86" ;;
2334     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2335     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2336 esac
2337
2338 ARCH=$llvm_cv_target_arch
2339
2340
2341 ac_ext=c
2342 ac_cpp='$CPP $CPPFLAGS'
2343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2346 if test -n "$ac_tool_prefix"; then
2347   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2348 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2351 if test "${ac_cv_prog_CC+set}" = set; then
2352   echo $ECHO_N "(cached) $ECHO_C" >&6
2353 else
2354   if test -n "$CC"; then
2355   ac_cv_prog_CC="$CC" # Let the user override the test.
2356 else
2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358 for as_dir in $PATH
2359 do
2360   IFS=$as_save_IFS
2361   test -z "$as_dir" && as_dir=.
2362   for ac_exec_ext in '' $ac_executable_extensions; do
2363   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2364     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2365     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2366     break 2
2367   fi
2368 done
2369 done
2370 IFS=$as_save_IFS
2371
2372 fi
2373 fi
2374 CC=$ac_cv_prog_CC
2375 if test -n "$CC"; then
2376   { echo "$as_me:$LINENO: result: $CC" >&5
2377 echo "${ECHO_T}$CC" >&6; }
2378 else
2379   { echo "$as_me:$LINENO: result: no" >&5
2380 echo "${ECHO_T}no" >&6; }
2381 fi
2382
2383
2384 fi
2385 if test -z "$ac_cv_prog_CC"; then
2386   ac_ct_CC=$CC
2387   # Extract the first word of "gcc", so it can be a program name with args.
2388 set dummy gcc; ac_word=$2
2389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2391 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2392   echo $ECHO_N "(cached) $ECHO_C" >&6
2393 else
2394   if test -n "$ac_ct_CC"; then
2395   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2396 else
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 for as_dir in $PATH
2399 do
2400   IFS=$as_save_IFS
2401   test -z "$as_dir" && as_dir=.
2402   for ac_exec_ext in '' $ac_executable_extensions; do
2403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2404     ac_cv_prog_ac_ct_CC="gcc"
2405     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2406     break 2
2407   fi
2408 done
2409 done
2410 IFS=$as_save_IFS
2411
2412 fi
2413 fi
2414 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2415 if test -n "$ac_ct_CC"; then
2416   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2417 echo "${ECHO_T}$ac_ct_CC" >&6; }
2418 else
2419   { echo "$as_me:$LINENO: result: no" >&5
2420 echo "${ECHO_T}no" >&6; }
2421 fi
2422
2423   if test "x$ac_ct_CC" = x; then
2424     CC=""
2425   else
2426     case $cross_compiling:$ac_tool_warned in
2427 yes:)
2428 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2429 whose name does not start with the host triplet.  If you think this
2430 configuration is useful to you, please write to autoconf@gnu.org." >&5
2431 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2432 whose name does not start with the host triplet.  If you think this
2433 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2434 ac_tool_warned=yes ;;
2435 esac
2436     CC=$ac_ct_CC
2437   fi
2438 else
2439   CC="$ac_cv_prog_CC"
2440 fi
2441
2442 if test -z "$CC"; then
2443           if test -n "$ac_tool_prefix"; then
2444     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2445 set dummy ${ac_tool_prefix}cc; ac_word=$2
2446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2448 if test "${ac_cv_prog_CC+set}" = set; then
2449   echo $ECHO_N "(cached) $ECHO_C" >&6
2450 else
2451   if test -n "$CC"; then
2452   ac_cv_prog_CC="$CC" # Let the user override the test.
2453 else
2454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455 for as_dir in $PATH
2456 do
2457   IFS=$as_save_IFS
2458   test -z "$as_dir" && as_dir=.
2459   for ac_exec_ext in '' $ac_executable_extensions; do
2460   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2461     ac_cv_prog_CC="${ac_tool_prefix}cc"
2462     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2463     break 2
2464   fi
2465 done
2466 done
2467 IFS=$as_save_IFS
2468
2469 fi
2470 fi
2471 CC=$ac_cv_prog_CC
2472 if test -n "$CC"; then
2473   { echo "$as_me:$LINENO: result: $CC" >&5
2474 echo "${ECHO_T}$CC" >&6; }
2475 else
2476   { echo "$as_me:$LINENO: result: no" >&5
2477 echo "${ECHO_T}no" >&6; }
2478 fi
2479
2480
2481   fi
2482 fi
2483 if test -z "$CC"; then
2484   # Extract the first word of "cc", so it can be a program name with args.
2485 set dummy cc; ac_word=$2
2486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2488 if test "${ac_cv_prog_CC+set}" = set; then
2489   echo $ECHO_N "(cached) $ECHO_C" >&6
2490 else
2491   if test -n "$CC"; then
2492   ac_cv_prog_CC="$CC" # Let the user override the test.
2493 else
2494   ac_prog_rejected=no
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 for as_dir in $PATH
2497 do
2498   IFS=$as_save_IFS
2499   test -z "$as_dir" && as_dir=.
2500   for ac_exec_ext in '' $ac_executable_extensions; do
2501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2502     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2503        ac_prog_rejected=yes
2504        continue
2505      fi
2506     ac_cv_prog_CC="cc"
2507     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2508     break 2
2509   fi
2510 done
2511 done
2512 IFS=$as_save_IFS
2513
2514 if test $ac_prog_rejected = yes; then
2515   # We found a bogon in the path, so make sure we never use it.
2516   set dummy $ac_cv_prog_CC
2517   shift
2518   if test $# != 0; then
2519     # We chose a different compiler from the bogus one.
2520     # However, it has the same basename, so the bogon will be chosen
2521     # first if we set CC to just the basename; use the full file name.
2522     shift
2523     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2524   fi
2525 fi
2526 fi
2527 fi
2528 CC=$ac_cv_prog_CC
2529 if test -n "$CC"; then
2530   { echo "$as_me:$LINENO: result: $CC" >&5
2531 echo "${ECHO_T}$CC" >&6; }
2532 else
2533   { echo "$as_me:$LINENO: result: no" >&5
2534 echo "${ECHO_T}no" >&6; }
2535 fi
2536
2537
2538 fi
2539 if test -z "$CC"; then
2540   if test -n "$ac_tool_prefix"; then
2541   for ac_prog in cl.exe
2542   do
2543     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2544 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2547 if test "${ac_cv_prog_CC+set}" = set; then
2548   echo $ECHO_N "(cached) $ECHO_C" >&6
2549 else
2550   if test -n "$CC"; then
2551   ac_cv_prog_CC="$CC" # Let the user override the test.
2552 else
2553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2554 for as_dir in $PATH
2555 do
2556   IFS=$as_save_IFS
2557   test -z "$as_dir" && as_dir=.
2558   for ac_exec_ext in '' $ac_executable_extensions; do
2559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2560     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2561     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2562     break 2
2563   fi
2564 done
2565 done
2566 IFS=$as_save_IFS
2567
2568 fi
2569 fi
2570 CC=$ac_cv_prog_CC
2571 if test -n "$CC"; then
2572   { echo "$as_me:$LINENO: result: $CC" >&5
2573 echo "${ECHO_T}$CC" >&6; }
2574 else
2575   { echo "$as_me:$LINENO: result: no" >&5
2576 echo "${ECHO_T}no" >&6; }
2577 fi
2578
2579
2580     test -n "$CC" && break
2581   done
2582 fi
2583 if test -z "$CC"; then
2584   ac_ct_CC=$CC
2585   for ac_prog in cl.exe
2586 do
2587   # Extract the first word of "$ac_prog", so it can be a program name with args.
2588 set dummy $ac_prog; ac_word=$2
2589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2591 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2592   echo $ECHO_N "(cached) $ECHO_C" >&6
2593 else
2594   if test -n "$ac_ct_CC"; then
2595   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2596 else
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 for as_dir in $PATH
2599 do
2600   IFS=$as_save_IFS
2601   test -z "$as_dir" && as_dir=.
2602   for ac_exec_ext in '' $ac_executable_extensions; do
2603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2604     ac_cv_prog_ac_ct_CC="$ac_prog"
2605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2606     break 2
2607   fi
2608 done
2609 done
2610 IFS=$as_save_IFS
2611
2612 fi
2613 fi
2614 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2615 if test -n "$ac_ct_CC"; then
2616   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2617 echo "${ECHO_T}$ac_ct_CC" >&6; }
2618 else
2619   { echo "$as_me:$LINENO: result: no" >&5
2620 echo "${ECHO_T}no" >&6; }
2621 fi
2622
2623
2624   test -n "$ac_ct_CC" && break
2625 done
2626
2627   if test "x$ac_ct_CC" = x; then
2628     CC=""
2629   else
2630     case $cross_compiling:$ac_tool_warned in
2631 yes:)
2632 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2633 whose name does not start with the host triplet.  If you think this
2634 configuration is useful to you, please write to autoconf@gnu.org." >&5
2635 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2636 whose name does not start with the host triplet.  If you think this
2637 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2638 ac_tool_warned=yes ;;
2639 esac
2640     CC=$ac_ct_CC
2641   fi
2642 fi
2643
2644 fi
2645
2646
2647 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2648 See \`config.log' for more details." >&5
2649 echo "$as_me: error: no acceptable C compiler found in \$PATH
2650 See \`config.log' for more details." >&2;}
2651    { (exit 1); exit 1; }; }
2652
2653 # Provide some information about the compiler.
2654 echo "$as_me:$LINENO: checking for C compiler version" >&5
2655 ac_compiler=`set X $ac_compile; echo $2`
2656 { (ac_try="$ac_compiler --version >&5"
2657 case "(($ac_try" in
2658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659   *) ac_try_echo=$ac_try;;
2660 esac
2661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2662   (eval "$ac_compiler --version >&5") 2>&5
2663   ac_status=$?
2664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665   (exit $ac_status); }
2666 { (ac_try="$ac_compiler -v >&5"
2667 case "(($ac_try" in
2668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669   *) ac_try_echo=$ac_try;;
2670 esac
2671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2672   (eval "$ac_compiler -v >&5") 2>&5
2673   ac_status=$?
2674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675   (exit $ac_status); }
2676 { (ac_try="$ac_compiler -V >&5"
2677 case "(($ac_try" in
2678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2679   *) ac_try_echo=$ac_try;;
2680 esac
2681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2682   (eval "$ac_compiler -V >&5") 2>&5
2683   ac_status=$?
2684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685   (exit $ac_status); }
2686
2687 cat >conftest.$ac_ext <<_ACEOF
2688 /* confdefs.h.  */
2689 _ACEOF
2690 cat confdefs.h >>conftest.$ac_ext
2691 cat >>conftest.$ac_ext <<_ACEOF
2692 /* end confdefs.h.  */
2693
2694 int
2695 main ()
2696 {
2697
2698   ;
2699   return 0;
2700 }
2701 _ACEOF
2702 ac_clean_files_save=$ac_clean_files
2703 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2704 # Try to create an executable without -o first, disregard a.out.
2705 # It will help us diagnose broken compilers, and finding out an intuition
2706 # of exeext.
2707 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2708 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2709 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2710 #
2711 # List of possible output files, starting from the most likely.
2712 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2713 # only as a last resort.  b.out is created by i960 compilers.
2714 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2715 #
2716 # The IRIX 6 linker writes into existing files which may not be
2717 # executable, retaining their permissions.  Remove them first so a
2718 # subsequent execution test works.
2719 ac_rmfiles=
2720 for ac_file in $ac_files
2721 do
2722   case $ac_file in
2723     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2724     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2725   esac
2726 done
2727 rm -f $ac_rmfiles
2728
2729 if { (ac_try="$ac_link_default"
2730 case "(($ac_try" in
2731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732   *) ac_try_echo=$ac_try;;
2733 esac
2734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735   (eval "$ac_link_default") 2>&5
2736   ac_status=$?
2737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738   (exit $ac_status); }; then
2739   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2740 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2741 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2742 # so that the user can short-circuit this test for compilers unknown to
2743 # Autoconf.
2744 for ac_file in $ac_files
2745 do
2746   test -f "$ac_file" || continue
2747   case $ac_file in
2748     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2749         ;;
2750     [ab].out )
2751         # We found the default executable, but exeext='' is most
2752         # certainly right.
2753         break;;
2754     *.* )
2755         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2756         then :; else
2757            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2758         fi
2759         # We set ac_cv_exeext here because the later test for it is not
2760         # safe: cross compilers may not add the suffix if given an `-o'
2761         # argument, so we may need to know it at that point already.
2762         # Even if this section looks crufty: it has the advantage of
2763         # actually working.
2764         break;;
2765     * )
2766         break;;
2767   esac
2768 done
2769 test "$ac_cv_exeext" = no && ac_cv_exeext=
2770
2771 else
2772   echo "$as_me: failed program was:" >&5
2773 sed 's/^/| /' conftest.$ac_ext >&5
2774
2775 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2776 See \`config.log' for more details." >&5
2777 echo "$as_me: error: C compiler cannot create executables
2778 See \`config.log' for more details." >&2;}
2779    { (exit 77); exit 77; }; }
2780 fi
2781
2782 ac_exeext=$ac_cv_exeext
2783 { echo "$as_me:$LINENO: result: $ac_file" >&5
2784 echo "${ECHO_T}$ac_file" >&6; }
2785
2786 # Check that the compiler produces executables we can run.  If not, either
2787 # the compiler is broken, or we cross compile.
2788 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2789 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2790 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2791 # If not cross compiling, check that we can run a simple program.
2792 if test "$cross_compiling" != yes; then
2793   if { ac_try='./$ac_file'
2794   { (case "(($ac_try" in
2795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796   *) ac_try_echo=$ac_try;;
2797 esac
2798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2799   (eval "$ac_try") 2>&5
2800   ac_status=$?
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); }; }; then
2803     cross_compiling=no
2804   else
2805     if test "$cross_compiling" = maybe; then
2806         cross_compiling=yes
2807     else
2808         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2809 If you meant to cross compile, use \`--host'.
2810 See \`config.log' for more details." >&5
2811 echo "$as_me: error: cannot run C compiled programs.
2812 If you meant to cross compile, use \`--host'.
2813 See \`config.log' for more details." >&2;}
2814    { (exit 1); exit 1; }; }
2815     fi
2816   fi
2817 fi
2818 { echo "$as_me:$LINENO: result: yes" >&5
2819 echo "${ECHO_T}yes" >&6; }
2820
2821 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2822 ac_clean_files=$ac_clean_files_save
2823 # Check that the compiler produces executables we can run.  If not, either
2824 # the compiler is broken, or we cross compile.
2825 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2826 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2827 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2828 echo "${ECHO_T}$cross_compiling" >&6; }
2829
2830 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2831 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2832 if { (ac_try="$ac_link"
2833 case "(($ac_try" in
2834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835   *) ac_try_echo=$ac_try;;
2836 esac
2837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2838   (eval "$ac_link") 2>&5
2839   ac_status=$?
2840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841   (exit $ac_status); }; then
2842   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2843 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2844 # work properly (i.e., refer to `conftest.exe'), while it won't with
2845 # `rm'.
2846 for ac_file in conftest.exe conftest conftest.*; do
2847   test -f "$ac_file" || continue
2848   case $ac_file in
2849     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2850     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2851           break;;
2852     * ) break;;
2853   esac
2854 done
2855 else
2856   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2857 See \`config.log' for more details." >&5
2858 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2859 See \`config.log' for more details." >&2;}
2860    { (exit 1); exit 1; }; }
2861 fi
2862
2863 rm -f conftest$ac_cv_exeext
2864 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2865 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2866
2867 rm -f conftest.$ac_ext
2868 EXEEXT=$ac_cv_exeext
2869 ac_exeext=$EXEEXT
2870 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2871 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2872 if test "${ac_cv_objext+set}" = set; then
2873   echo $ECHO_N "(cached) $ECHO_C" >&6
2874 else
2875   cat >conftest.$ac_ext <<_ACEOF
2876 /* confdefs.h.  */
2877 _ACEOF
2878 cat confdefs.h >>conftest.$ac_ext
2879 cat >>conftest.$ac_ext <<_ACEOF
2880 /* end confdefs.h.  */
2881
2882 int
2883 main ()
2884 {
2885
2886   ;
2887   return 0;
2888 }
2889 _ACEOF
2890 rm -f conftest.o conftest.obj
2891 if { (ac_try="$ac_compile"
2892 case "(($ac_try" in
2893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894   *) ac_try_echo=$ac_try;;
2895 esac
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897   (eval "$ac_compile") 2>&5
2898   ac_status=$?
2899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900   (exit $ac_status); }; then
2901   for ac_file in conftest.o conftest.obj conftest.*; do
2902   test -f "$ac_file" || continue;
2903   case $ac_file in
2904     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2905     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2906        break;;
2907   esac
2908 done
2909 else
2910   echo "$as_me: failed program was:" >&5
2911 sed 's/^/| /' conftest.$ac_ext >&5
2912
2913 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2914 See \`config.log' for more details." >&5
2915 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2916 See \`config.log' for more details." >&2;}
2917    { (exit 1); exit 1; }; }
2918 fi
2919
2920 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2921 fi
2922 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2923 echo "${ECHO_T}$ac_cv_objext" >&6; }
2924 OBJEXT=$ac_cv_objext
2925 ac_objext=$OBJEXT
2926 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2927 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2928 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2929   echo $ECHO_N "(cached) $ECHO_C" >&6
2930 else
2931   cat >conftest.$ac_ext <<_ACEOF
2932 /* confdefs.h.  */
2933 _ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h.  */
2937
2938 int
2939 main ()
2940 {
2941 #ifndef __GNUC__
2942        choke me
2943 #endif
2944
2945   ;
2946   return 0;
2947 }
2948 _ACEOF
2949 rm -f conftest.$ac_objext
2950 if { (ac_try="$ac_compile"
2951 case "(($ac_try" in
2952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953   *) ac_try_echo=$ac_try;;
2954 esac
2955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956   (eval "$ac_compile") 2>conftest.er1
2957   ac_status=$?
2958   grep -v '^ *+' conftest.er1 >conftest.err
2959   rm -f conftest.er1
2960   cat conftest.err >&5
2961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962   (exit $ac_status); } &&
2963          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2964   { (case "(($ac_try" in
2965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966   *) ac_try_echo=$ac_try;;
2967 esac
2968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969   (eval "$ac_try") 2>&5
2970   ac_status=$?
2971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972   (exit $ac_status); }; } &&
2973          { ac_try='test -s conftest.$ac_objext'
2974   { (case "(($ac_try" in
2975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976   *) ac_try_echo=$ac_try;;
2977 esac
2978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2979   (eval "$ac_try") 2>&5
2980   ac_status=$?
2981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982   (exit $ac_status); }; }; then
2983   ac_compiler_gnu=yes
2984 else
2985   echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2987
2988         ac_compiler_gnu=no
2989 fi
2990
2991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2992 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2993
2994 fi
2995 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2996 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2997 GCC=`test $ac_compiler_gnu = yes && echo yes`
2998 ac_test_CFLAGS=${CFLAGS+set}
2999 ac_save_CFLAGS=$CFLAGS
3000 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3001 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3002 if test "${ac_cv_prog_cc_g+set}" = set; then
3003   echo $ECHO_N "(cached) $ECHO_C" >&6
3004 else
3005   ac_save_c_werror_flag=$ac_c_werror_flag
3006    ac_c_werror_flag=yes
3007    ac_cv_prog_cc_g=no
3008    CFLAGS="-g"
3009    cat >conftest.$ac_ext <<_ACEOF
3010 /* confdefs.h.  */
3011 _ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h.  */
3015
3016 int
3017 main ()
3018 {
3019
3020   ;
3021   return 0;
3022 }
3023 _ACEOF
3024 rm -f conftest.$ac_objext
3025 if { (ac_try="$ac_compile"
3026 case "(($ac_try" in
3027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028   *) ac_try_echo=$ac_try;;
3029 esac
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031   (eval "$ac_compile") 2>conftest.er1
3032   ac_status=$?
3033   grep -v '^ *+' conftest.er1 >conftest.err
3034   rm -f conftest.er1
3035   cat conftest.err >&5
3036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037   (exit $ac_status); } &&
3038          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3039   { (case "(($ac_try" in
3040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041   *) ac_try_echo=$ac_try;;
3042 esac
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044   (eval "$ac_try") 2>&5
3045   ac_status=$?
3046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047   (exit $ac_status); }; } &&
3048          { ac_try='test -s conftest.$ac_objext'
3049   { (case "(($ac_try" in
3050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051   *) ac_try_echo=$ac_try;;
3052 esac
3053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3054   (eval "$ac_try") 2>&5
3055   ac_status=$?
3056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057   (exit $ac_status); }; }; then
3058   ac_cv_prog_cc_g=yes
3059 else
3060   echo "$as_me: failed program was:" >&5
3061 sed 's/^/| /' conftest.$ac_ext >&5
3062
3063         CFLAGS=""
3064       cat >conftest.$ac_ext <<_ACEOF
3065 /* confdefs.h.  */
3066 _ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h.  */
3070
3071 int
3072 main ()
3073 {
3074
3075   ;
3076   return 0;
3077 }
3078 _ACEOF
3079 rm -f conftest.$ac_objext
3080 if { (ac_try="$ac_compile"
3081 case "(($ac_try" in
3082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083   *) ac_try_echo=$ac_try;;
3084 esac
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086   (eval "$ac_compile") 2>conftest.er1
3087   ac_status=$?
3088   grep -v '^ *+' conftest.er1 >conftest.err
3089   rm -f conftest.er1
3090   cat conftest.err >&5
3091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092   (exit $ac_status); } &&
3093          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3094   { (case "(($ac_try" in
3095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096   *) ac_try_echo=$ac_try;;
3097 esac
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099   (eval "$ac_try") 2>&5
3100   ac_status=$?
3101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102   (exit $ac_status); }; } &&
3103          { ac_try='test -s conftest.$ac_objext'
3104   { (case "(($ac_try" in
3105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106   *) ac_try_echo=$ac_try;;
3107 esac
3108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3109   (eval "$ac_try") 2>&5
3110   ac_status=$?
3111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112   (exit $ac_status); }; }; then
3113   :
3114 else
3115   echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3117
3118         ac_c_werror_flag=$ac_save_c_werror_flag
3119          CFLAGS="-g"
3120          cat >conftest.$ac_ext <<_ACEOF
3121 /* confdefs.h.  */
3122 _ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h.  */
3126
3127 int
3128 main ()
3129 {
3130
3131   ;
3132   return 0;
3133 }
3134 _ACEOF
3135 rm -f conftest.$ac_objext
3136 if { (ac_try="$ac_compile"
3137 case "(($ac_try" in
3138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139   *) ac_try_echo=$ac_try;;
3140 esac
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142   (eval "$ac_compile") 2>conftest.er1
3143   ac_status=$?
3144   grep -v '^ *+' conftest.er1 >conftest.err
3145   rm -f conftest.er1
3146   cat conftest.err >&5
3147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148   (exit $ac_status); } &&
3149          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3150   { (case "(($ac_try" in
3151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152   *) ac_try_echo=$ac_try;;
3153 esac
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155   (eval "$ac_try") 2>&5
3156   ac_status=$?
3157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158   (exit $ac_status); }; } &&
3159          { ac_try='test -s conftest.$ac_objext'
3160   { (case "(($ac_try" in
3161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162   *) ac_try_echo=$ac_try;;
3163 esac
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165   (eval "$ac_try") 2>&5
3166   ac_status=$?
3167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168   (exit $ac_status); }; }; then
3169   ac_cv_prog_cc_g=yes
3170 else
3171   echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3173
3174
3175 fi
3176
3177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3178 fi
3179
3180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181 fi
3182
3183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184    ac_c_werror_flag=$ac_save_c_werror_flag
3185 fi
3186 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3187 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3188 if test "$ac_test_CFLAGS" = set; then
3189   CFLAGS=$ac_save_CFLAGS
3190 elif test $ac_cv_prog_cc_g = yes; then
3191   if test "$GCC" = yes; then
3192     CFLAGS="-g -O2"
3193   else
3194     CFLAGS="-g"
3195   fi
3196 else
3197   if test "$GCC" = yes; then
3198     CFLAGS="-O2"
3199   else
3200     CFLAGS=
3201   fi
3202 fi
3203 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3204 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3205 if test "${ac_cv_prog_cc_c89+set}" = set; then
3206   echo $ECHO_N "(cached) $ECHO_C" >&6
3207 else
3208   ac_cv_prog_cc_c89=no
3209 ac_save_CC=$CC
3210 cat >conftest.$ac_ext <<_ACEOF
3211 /* confdefs.h.  */
3212 _ACEOF
3213 cat confdefs.h >>conftest.$ac_ext
3214 cat >>conftest.$ac_ext <<_ACEOF
3215 /* end confdefs.h.  */
3216 #include <stdarg.h>
3217 #include <stdio.h>
3218 #include <sys/types.h>
3219 #include <sys/stat.h>
3220 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3221 struct buf { int x; };
3222 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3223 static char *e (p, i)
3224      char **p;
3225      int i;
3226 {
3227   return p[i];
3228 }
3229 static char *f (char * (*g) (char **, int), char **p, ...)
3230 {
3231   char *s;
3232   va_list v;
3233   va_start (v,p);
3234   s = g (p, va_arg (v,int));
3235   va_end (v);
3236   return s;
3237 }
3238
3239 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3240    function prototypes and stuff, but not '\xHH' hex character constants.
3241    These don't provoke an error unfortunately, instead are silently treated
3242    as 'x'.  The following induces an error, until -std is added to get
3243    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3244    array size at least.  It's necessary to write '\x00'==0 to get something
3245    that's true only with -std.  */
3246 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3247
3248 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3249    inside strings and character constants.  */
3250 #define FOO(x) 'x'
3251 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3252
3253 int test (int i, double x);
3254 struct s1 {int (*f) (int a);};
3255 struct s2 {int (*f) (double a);};
3256 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3257 int argc;
3258 char **argv;
3259 int
3260 main ()
3261 {
3262 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3263   ;
3264   return 0;
3265 }
3266 _ACEOF
3267 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3268         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3269 do
3270   CC="$ac_save_CC $ac_arg"
3271   rm -f conftest.$ac_objext
3272 if { (ac_try="$ac_compile"
3273 case "(($ac_try" in
3274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275   *) ac_try_echo=$ac_try;;
3276 esac
3277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3278   (eval "$ac_compile") 2>conftest.er1
3279   ac_status=$?
3280   grep -v '^ *+' conftest.er1 >conftest.err
3281   rm -f conftest.er1
3282   cat conftest.err >&5
3283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284   (exit $ac_status); } &&
3285          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3286   { (case "(($ac_try" in
3287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288   *) ac_try_echo=$ac_try;;
3289 esac
3290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291   (eval "$ac_try") 2>&5
3292   ac_status=$?
3293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294   (exit $ac_status); }; } &&
3295          { ac_try='test -s conftest.$ac_objext'
3296   { (case "(($ac_try" in
3297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298   *) ac_try_echo=$ac_try;;
3299 esac
3300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3301   (eval "$ac_try") 2>&5
3302   ac_status=$?
3303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304   (exit $ac_status); }; }; then
3305   ac_cv_prog_cc_c89=$ac_arg
3306 else
3307   echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3309
3310
3311 fi
3312
3313 rm -f core conftest.err conftest.$ac_objext
3314   test "x$ac_cv_prog_cc_c89" != "xno" && break
3315 done
3316 rm -f conftest.$ac_ext
3317 CC=$ac_save_CC
3318
3319 fi
3320 # AC_CACHE_VAL
3321 case "x$ac_cv_prog_cc_c89" in
3322   x)
3323     { echo "$as_me:$LINENO: result: none needed" >&5
3324 echo "${ECHO_T}none needed" >&6; } ;;
3325   xno)
3326     { echo "$as_me:$LINENO: result: unsupported" >&5
3327 echo "${ECHO_T}unsupported" >&6; } ;;
3328   *)
3329     CC="$CC $ac_cv_prog_cc_c89"
3330     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3331 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3332 esac
3333
3334
3335 ac_ext=c
3336 ac_cpp='$CPP $CPPFLAGS'
3337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3340
3341
3342 ac_ext=c
3343 ac_cpp='$CPP $CPPFLAGS'
3344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3347 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3348 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3349 # On Suns, sometimes $CPP names a directory.
3350 if test -n "$CPP" && test -d "$CPP"; then
3351   CPP=
3352 fi
3353 if test -z "$CPP"; then
3354   if test "${ac_cv_prog_CPP+set}" = set; then
3355   echo $ECHO_N "(cached) $ECHO_C" >&6
3356 else
3357       # Double quotes because CPP needs to be expanded
3358     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3359     do
3360       ac_preproc_ok=false
3361 for ac_c_preproc_warn_flag in '' yes
3362 do
3363   # Use a header file that comes with gcc, so configuring glibc
3364   # with a fresh cross-compiler works.
3365   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3366   # <limits.h> exists even on freestanding compilers.
3367   # On the NeXT, cc -E runs the code through the compiler's parser,
3368   # not just through cpp. "Syntax error" is here to catch this case.
3369   cat >conftest.$ac_ext <<_ACEOF
3370 /* confdefs.h.  */
3371 _ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h.  */
3375 #ifdef __STDC__
3376 # include <limits.h>
3377 #else
3378 # include <assert.h>
3379 #endif
3380                      Syntax error
3381 _ACEOF
3382 if { (ac_try="$ac_cpp conftest.$ac_ext"
3383 case "(($ac_try" in
3384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385   *) ac_try_echo=$ac_try;;
3386 esac
3387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3388   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3389   ac_status=$?
3390   grep -v '^ *+' conftest.er1 >conftest.err
3391   rm -f conftest.er1
3392   cat conftest.err >&5
3393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394   (exit $ac_status); } >/dev/null; then
3395   if test -s conftest.err; then
3396     ac_cpp_err=$ac_c_preproc_warn_flag
3397     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3398   else
3399     ac_cpp_err=
3400   fi
3401 else
3402   ac_cpp_err=yes
3403 fi
3404 if test -z "$ac_cpp_err"; then
3405   :
3406 else
3407   echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.$ac_ext >&5
3409
3410   # Broken: fails on valid input.
3411 continue
3412 fi
3413
3414 rm -f conftest.err conftest.$ac_ext
3415
3416   # OK, works on sane cases.  Now check whether nonexistent headers
3417   # can be detected and how.
3418   cat >conftest.$ac_ext <<_ACEOF
3419 /* confdefs.h.  */
3420 _ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h.  */
3424 #include <ac_nonexistent.h>
3425 _ACEOF
3426 if { (ac_try="$ac_cpp conftest.$ac_ext"
3427 case "(($ac_try" in
3428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429   *) ac_try_echo=$ac_try;;
3430 esac
3431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3432   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3433   ac_status=$?
3434   grep -v '^ *+' conftest.er1 >conftest.err
3435   rm -f conftest.er1
3436   cat conftest.err >&5
3437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438   (exit $ac_status); } >/dev/null; then
3439   if test -s conftest.err; then
3440     ac_cpp_err=$ac_c_preproc_warn_flag
3441     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3442   else
3443     ac_cpp_err=
3444   fi
3445 else
3446   ac_cpp_err=yes
3447 fi
3448 if test -z "$ac_cpp_err"; then
3449   # Broken: success on invalid input.
3450 continue
3451 else
3452   echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3454
3455   # Passes both tests.
3456 ac_preproc_ok=:
3457 break
3458 fi
3459
3460 rm -f conftest.err conftest.$ac_ext
3461
3462 done
3463 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3464 rm -f conftest.err conftest.$ac_ext
3465 if $ac_preproc_ok; then
3466   break
3467 fi
3468
3469     done
3470     ac_cv_prog_CPP=$CPP
3471
3472 fi
3473   CPP=$ac_cv_prog_CPP
3474 else
3475   ac_cv_prog_CPP=$CPP
3476 fi
3477 { echo "$as_me:$LINENO: result: $CPP" >&5
3478 echo "${ECHO_T}$CPP" >&6; }
3479 ac_preproc_ok=false
3480 for ac_c_preproc_warn_flag in '' yes
3481 do
3482   # Use a header file that comes with gcc, so configuring glibc
3483   # with a fresh cross-compiler works.
3484   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3485   # <limits.h> exists even on freestanding compilers.
3486   # On the NeXT, cc -E runs the code through the compiler's parser,
3487   # not just through cpp. "Syntax error" is here to catch this case.
3488   cat >conftest.$ac_ext <<_ACEOF
3489 /* confdefs.h.  */
3490 _ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h.  */
3494 #ifdef __STDC__
3495 # include <limits.h>
3496 #else
3497 # include <assert.h>
3498 #endif
3499                      Syntax error
3500 _ACEOF
3501 if { (ac_try="$ac_cpp conftest.$ac_ext"
3502 case "(($ac_try" in
3503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504   *) ac_try_echo=$ac_try;;
3505 esac
3506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3508   ac_status=$?
3509   grep -v '^ *+' conftest.er1 >conftest.err
3510   rm -f conftest.er1
3511   cat conftest.err >&5
3512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513   (exit $ac_status); } >/dev/null; then
3514   if test -s conftest.err; then
3515     ac_cpp_err=$ac_c_preproc_warn_flag
3516     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3517   else
3518     ac_cpp_err=
3519   fi
3520 else
3521   ac_cpp_err=yes
3522 fi
3523 if test -z "$ac_cpp_err"; then
3524   :
3525 else
3526   echo "$as_me: failed program was:" >&5
3527 sed 's/^/| /' conftest.$ac_ext >&5
3528
3529   # Broken: fails on valid input.
3530 continue
3531 fi
3532
3533 rm -f conftest.err conftest.$ac_ext
3534
3535   # OK, works on sane cases.  Now check whether nonexistent headers
3536   # can be detected and how.
3537   cat >conftest.$ac_ext <<_ACEOF
3538 /* confdefs.h.  */
3539 _ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h.  */
3543 #include <ac_nonexistent.h>
3544 _ACEOF
3545 if { (ac_try="$ac_cpp conftest.$ac_ext"
3546 case "(($ac_try" in
3547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548   *) ac_try_echo=$ac_try;;
3549 esac
3550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3551   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3552   ac_status=$?
3553   grep -v '^ *+' conftest.er1 >conftest.err
3554   rm -f conftest.er1
3555   cat conftest.err >&5
3556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557   (exit $ac_status); } >/dev/null; then
3558   if test -s conftest.err; then
3559     ac_cpp_err=$ac_c_preproc_warn_flag
3560     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3561   else
3562     ac_cpp_err=
3563   fi
3564 else
3565   ac_cpp_err=yes
3566 fi
3567 if test -z "$ac_cpp_err"; then
3568   # Broken: success on invalid input.
3569 continue
3570 else
3571   echo "$as_me: failed program was:" >&5
3572 sed 's/^/| /' conftest.$ac_ext >&5
3573
3574   # Passes both tests.
3575 ac_preproc_ok=:
3576 break
3577 fi
3578
3579 rm -f conftest.err conftest.$ac_ext
3580
3581 done
3582 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3583 rm -f conftest.err conftest.$ac_ext
3584 if $ac_preproc_ok; then
3585   :
3586 else
3587   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3588 See \`config.log' for more details." >&5
3589 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3590 See \`config.log' for more details." >&2;}
3591    { (exit 1); exit 1; }; }
3592 fi
3593
3594 ac_ext=c
3595 ac_cpp='$CPP $CPPFLAGS'
3596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3599
3600
3601 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3602 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3603 if test "${ac_cv_path_GREP+set}" = set; then
3604   echo $ECHO_N "(cached) $ECHO_C" >&6
3605 else
3606   # Extract the first word of "grep ggrep" to use in msg output
3607 if test -z "$GREP"; then
3608 set dummy grep ggrep; ac_prog_name=$2
3609 if test "${ac_cv_path_GREP+set}" = set; then
3610   echo $ECHO_N "(cached) $ECHO_C" >&6
3611 else
3612   ac_path_GREP_found=false
3613 # Loop through the user's path and test for each of PROGNAME-LIST
3614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3616 do
3617   IFS=$as_save_IFS
3618   test -z "$as_dir" && as_dir=.
3619   for ac_prog in grep ggrep; do
3620   for ac_exec_ext in '' $ac_executable_extensions; do
3621     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3622     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3623     # Check for GNU ac_path_GREP and select it if it is found.
3624   # Check for GNU $ac_path_GREP
3625 case `"$ac_path_GREP" --version 2>&1` in
3626 *GNU*)
3627   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3628 *)
3629   ac_count=0
3630   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3631   while :
3632   do
3633     cat "conftest.in" "conftest.in" >"conftest.tmp"
3634     mv "conftest.tmp" "conftest.in"
3635     cp "conftest.in" "conftest.nl"
3636     echo 'GREP' >> "conftest.nl"
3637     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3638     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3639     ac_count=`expr $ac_count + 1`
3640     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3641       # Best one so far, save it but keep looking for a better one
3642       ac_cv_path_GREP="$ac_path_GREP"
3643       ac_path_GREP_max=$ac_count
3644     fi
3645     # 10*(2^10) chars as input seems more than enough
3646     test $ac_count -gt 10 && break
3647   done
3648   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3649 esac
3650
3651
3652     $ac_path_GREP_found && break 3
3653   done
3654 done
3655
3656 done
3657 IFS=$as_save_IFS
3658
3659
3660 fi
3661
3662 GREP="$ac_cv_path_GREP"
3663 if test -z "$GREP"; then
3664   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3665 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3666    { (exit 1); exit 1; }; }
3667 fi
3668
3669 else
3670   ac_cv_path_GREP=$GREP
3671 fi
3672
3673
3674 fi
3675 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3676 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3677  GREP="$ac_cv_path_GREP"
3678
3679
3680 { echo "$as_me:$LINENO: checking for egrep" >&5
3681 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3682 if test "${ac_cv_path_EGREP+set}" = set; then
3683   echo $ECHO_N "(cached) $ECHO_C" >&6
3684 else
3685   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3686    then ac_cv_path_EGREP="$GREP -E"
3687    else
3688      # Extract the first word of "egrep" to use in msg output
3689 if test -z "$EGREP"; then
3690 set dummy egrep; ac_prog_name=$2
3691 if test "${ac_cv_path_EGREP+set}" = set; then
3692   echo $ECHO_N "(cached) $ECHO_C" >&6
3693 else
3694   ac_path_EGREP_found=false
3695 # Loop through the user's path and test for each of PROGNAME-LIST
3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3698 do
3699   IFS=$as_save_IFS
3700   test -z "$as_dir" && as_dir=.
3701   for ac_prog in egrep; do
3702   for ac_exec_ext in '' $ac_executable_extensions; do
3703     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3704     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3705     # Check for GNU ac_path_EGREP and select it if it is found.
3706   # Check for GNU $ac_path_EGREP
3707 case `"$ac_path_EGREP" --version 2>&1` in
3708 *GNU*)
3709   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3710 *)
3711   ac_count=0
3712   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3713   while :
3714   do
3715     cat "conftest.in" "conftest.in" >"conftest.tmp"
3716     mv "conftest.tmp" "conftest.in"
3717     cp "conftest.in" "conftest.nl"
3718     echo 'EGREP' >> "conftest.nl"
3719     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3720     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3721     ac_count=`expr $ac_count + 1`
3722     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3723       # Best one so far, save it but keep looking for a better one
3724       ac_cv_path_EGREP="$ac_path_EGREP"
3725       ac_path_EGREP_max=$ac_count
3726     fi
3727     # 10*(2^10) chars as input seems more than enough
3728     test $ac_count -gt 10 && break
3729   done
3730   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3731 esac
3732
3733
3734     $ac_path_EGREP_found && break 3
3735   done
3736 done
3737
3738 done
3739 IFS=$as_save_IFS
3740
3741
3742 fi
3743
3744 EGREP="$ac_cv_path_EGREP"
3745 if test -z "$EGREP"; then
3746   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3747 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3748    { (exit 1); exit 1; }; }
3749 fi
3750
3751 else
3752   ac_cv_path_EGREP=$EGREP
3753 fi
3754
3755
3756    fi
3757 fi
3758 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3759 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3760  EGREP="$ac_cv_path_EGREP"
3761
3762
3763 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3764 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3765 if test "${ac_cv_header_stdc+set}" = set; then
3766   echo $ECHO_N "(cached) $ECHO_C" >&6
3767 else
3768   cat >conftest.$ac_ext <<_ACEOF
3769 /* confdefs.h.  */
3770 _ACEOF
3771 cat confdefs.h >>conftest.$ac_ext
3772 cat >>conftest.$ac_ext <<_ACEOF
3773 /* end confdefs.h.  */
3774 #include <stdlib.h>
3775 #include <stdarg.h>
3776 #include <string.h>
3777 #include <float.h>
3778
3779 int
3780 main ()
3781 {
3782
3783   ;
3784   return 0;
3785 }
3786 _ACEOF
3787 rm -f conftest.$ac_objext
3788 if { (ac_try="$ac_compile"
3789 case "(($ac_try" in
3790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791   *) ac_try_echo=$ac_try;;
3792 esac
3793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3794   (eval "$ac_compile") 2>conftest.er1
3795   ac_status=$?
3796   grep -v '^ *+' conftest.er1 >conftest.err
3797   rm -f conftest.er1
3798   cat conftest.err >&5
3799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800   (exit $ac_status); } &&
3801          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3802   { (case "(($ac_try" in
3803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804   *) ac_try_echo=$ac_try;;
3805 esac
3806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3807   (eval "$ac_try") 2>&5
3808   ac_status=$?
3809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810   (exit $ac_status); }; } &&
3811          { ac_try='test -s conftest.$ac_objext'
3812   { (case "(($ac_try" in
3813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3814   *) ac_try_echo=$ac_try;;
3815 esac
3816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3817   (eval "$ac_try") 2>&5
3818   ac_status=$?
3819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820   (exit $ac_status); }; }; then
3821   ac_cv_header_stdc=yes
3822 else
3823   echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3825
3826         ac_cv_header_stdc=no
3827 fi
3828
3829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3830
3831 if test $ac_cv_header_stdc = yes; then
3832   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3833   cat >conftest.$ac_ext <<_ACEOF
3834 /* confdefs.h.  */
3835 _ACEOF
3836 cat confdefs.h >>conftest.$ac_ext
3837 cat >>conftest.$ac_ext <<_ACEOF
3838 /* end confdefs.h.  */
3839 #include <string.h>
3840
3841 _ACEOF
3842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3843   $EGREP "memchr" >/dev/null 2>&1; then
3844   :
3845 else
3846   ac_cv_header_stdc=no
3847 fi
3848 rm -f conftest*
3849
3850 fi
3851
3852 if test $ac_cv_header_stdc = yes; then
3853   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3854   cat >conftest.$ac_ext <<_ACEOF
3855 /* confdefs.h.  */
3856 _ACEOF
3857 cat confdefs.h >>conftest.$ac_ext
3858 cat >>conftest.$ac_ext <<_ACEOF
3859 /* end confdefs.h.  */
3860 #include <stdlib.h>
3861
3862 _ACEOF
3863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3864   $EGREP "free" >/dev/null 2>&1; then
3865   :
3866 else
3867   ac_cv_header_stdc=no
3868 fi
3869 rm -f conftest*
3870
3871 fi
3872
3873 if test $ac_cv_header_stdc = yes; then
3874   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3875   if test "$cross_compiling" = yes; then
3876   :
3877 else
3878   cat >conftest.$ac_ext <<_ACEOF
3879 /* confdefs.h.  */
3880 _ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h.  */
3884 #include <ctype.h>
3885 #include <stdlib.h>
3886 #if ((' ' & 0x0FF) == 0x020)
3887 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3888 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3889 #else
3890 # define ISLOWER(c) \
3891                    (('a' <= (c) && (c) <= 'i') \
3892                      || ('j' <= (c) && (c) <= 'r') \
3893                      || ('s' <= (c) && (c) <= 'z'))
3894 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3895 #endif
3896
3897 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3898 int
3899 main ()
3900 {
3901   int i;
3902   for (i = 0; i < 256; i++)
3903     if (XOR (islower (i), ISLOWER (i))
3904         || toupper (i) != TOUPPER (i))
3905       return 2;
3906   return 0;
3907 }
3908 _ACEOF
3909 rm -f conftest$ac_exeext
3910 if { (ac_try="$ac_link"
3911 case "(($ac_try" in
3912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913   *) ac_try_echo=$ac_try;;
3914 esac
3915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3916   (eval "$ac_link") 2>&5
3917   ac_status=$?
3918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3920   { (case "(($ac_try" in
3921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922   *) ac_try_echo=$ac_try;;
3923 esac
3924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3925   (eval "$ac_try") 2>&5
3926   ac_status=$?
3927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928   (exit $ac_status); }; }; then
3929   :
3930 else
3931   echo "$as_me: program exited with status $ac_status" >&5
3932 echo "$as_me: failed program was:" >&5
3933 sed 's/^/| /' conftest.$ac_ext >&5
3934
3935 ( exit $ac_status )
3936 ac_cv_header_stdc=no
3937 fi
3938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3939 fi
3940
3941
3942 fi
3943 fi
3944 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3945 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3946 if test $ac_cv_header_stdc = yes; then
3947
3948 cat >>confdefs.h <<\_ACEOF
3949 #define STDC_HEADERS 1
3950 _ACEOF
3951
3952 fi
3953
3954 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3965                   inttypes.h stdint.h unistd.h
3966 do
3967 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3968 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3971   echo $ECHO_N "(cached) $ECHO_C" >&6
3972 else
3973   cat >conftest.$ac_ext <<_ACEOF
3974 /* confdefs.h.  */
3975 _ACEOF
3976 cat confdefs.h >>conftest.$ac_ext
3977 cat >>conftest.$ac_ext <<_ACEOF
3978 /* end confdefs.h.  */
3979 $ac_includes_default
3980
3981 #include <$ac_header>
3982 _ACEOF
3983 rm -f conftest.$ac_objext
3984 if { (ac_try="$ac_compile"
3985 case "(($ac_try" in
3986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3987   *) ac_try_echo=$ac_try;;
3988 esac
3989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3990   (eval "$ac_compile") 2>conftest.er1
3991   ac_status=$?
3992   grep -v '^ *+' conftest.er1 >conftest.err
3993   rm -f conftest.er1
3994   cat conftest.err >&5
3995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996   (exit $ac_status); } &&
3997          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3998   { (case "(($ac_try" in
3999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000   *) ac_try_echo=$ac_try;;
4001 esac
4002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4003   (eval "$ac_try") 2>&5
4004   ac_status=$?
4005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006   (exit $ac_status); }; } &&
4007          { ac_try='test -s conftest.$ac_objext'
4008   { (case "(($ac_try" in
4009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010   *) ac_try_echo=$ac_try;;
4011 esac
4012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4013   (eval "$ac_try") 2>&5
4014   ac_status=$?
4015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016   (exit $ac_status); }; }; then
4017   eval "$as_ac_Header=yes"
4018 else
4019   echo "$as_me: failed program was:" >&5
4020 sed 's/^/| /' conftest.$ac_ext >&5
4021
4022         eval "$as_ac_Header=no"
4023 fi
4024
4025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026 fi
4027 ac_res=`eval echo '${'$as_ac_Header'}'`
4028                { echo "$as_me:$LINENO: result: $ac_res" >&5
4029 echo "${ECHO_T}$ac_res" >&6; }
4030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4031   cat >>confdefs.h <<_ACEOF
4032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4033 _ACEOF
4034
4035 fi
4036
4037 done
4038
4039
4040 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4041 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4042 if test "${ac_cv_c_bigendian+set}" = set; then
4043   echo $ECHO_N "(cached) $ECHO_C" >&6
4044 else
4045   # See if sys/param.h defines the BYTE_ORDER macro.
4046 cat >conftest.$ac_ext <<_ACEOF
4047 /* confdefs.h.  */
4048 _ACEOF
4049 cat confdefs.h >>conftest.$ac_ext
4050 cat >>conftest.$ac_ext <<_ACEOF
4051 /* end confdefs.h.  */
4052 #include <sys/types.h>
4053 #include <sys/param.h>
4054
4055 int
4056 main ()
4057 {
4058 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4059  bogus endian macros
4060 #endif
4061
4062   ;
4063   return 0;
4064 }
4065 _ACEOF
4066 rm -f conftest.$ac_objext
4067 if { (ac_try="$ac_compile"
4068 case "(($ac_try" in
4069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070   *) ac_try_echo=$ac_try;;
4071 esac
4072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4073   (eval "$ac_compile") 2>conftest.er1
4074   ac_status=$?
4075   grep -v '^ *+' conftest.er1 >conftest.err
4076   rm -f conftest.er1
4077   cat conftest.err >&5
4078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079   (exit $ac_status); } &&
4080          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4081   { (case "(($ac_try" in
4082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083   *) ac_try_echo=$ac_try;;
4084 esac
4085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4086   (eval "$ac_try") 2>&5
4087   ac_status=$?
4088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089   (exit $ac_status); }; } &&
4090          { ac_try='test -s conftest.$ac_objext'
4091   { (case "(($ac_try" in
4092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093   *) ac_try_echo=$ac_try;;
4094 esac
4095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4096   (eval "$ac_try") 2>&5
4097   ac_status=$?
4098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099   (exit $ac_status); }; }; then
4100   # It does; now see whether it defined to BIG_ENDIAN or not.
4101 cat >conftest.$ac_ext <<_ACEOF
4102 /* confdefs.h.  */
4103 _ACEOF
4104 cat confdefs.h >>conftest.$ac_ext
4105 cat >>conftest.$ac_ext <<_ACEOF
4106 /* end confdefs.h.  */
4107 #include <sys/types.h>
4108 #include <sys/param.h>
4109
4110 int
4111 main ()
4112 {
4113 #if BYTE_ORDER != BIG_ENDIAN
4114  not big endian
4115 #endif
4116
4117   ;
4118   return 0;
4119 }
4120 _ACEOF
4121 rm -f conftest.$ac_objext
4122 if { (ac_try="$ac_compile"
4123 case "(($ac_try" in
4124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125   *) ac_try_echo=$ac_try;;
4126 esac
4127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4128   (eval "$ac_compile") 2>conftest.er1
4129   ac_status=$?
4130   grep -v '^ *+' conftest.er1 >conftest.err
4131   rm -f conftest.er1
4132   cat conftest.err >&5
4133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134   (exit $ac_status); } &&
4135          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4136   { (case "(($ac_try" in
4137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138   *) ac_try_echo=$ac_try;;
4139 esac
4140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141   (eval "$ac_try") 2>&5
4142   ac_status=$?
4143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144   (exit $ac_status); }; } &&
4145          { ac_try='test -s conftest.$ac_objext'
4146   { (case "(($ac_try" in
4147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148   *) ac_try_echo=$ac_try;;
4149 esac
4150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151   (eval "$ac_try") 2>&5
4152   ac_status=$?
4153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154   (exit $ac_status); }; }; then
4155   ac_cv_c_bigendian=yes
4156 else
4157   echo "$as_me: failed program was:" >&5
4158 sed 's/^/| /' conftest.$ac_ext >&5
4159
4160         ac_cv_c_bigendian=no
4161 fi
4162
4163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4164 else
4165   echo "$as_me: failed program was:" >&5
4166 sed 's/^/| /' conftest.$ac_ext >&5
4167
4168         # It does not; compile a test program.
4169 if test "$cross_compiling" = yes; then
4170   # try to guess the endianness by grepping values into an object file
4171   ac_cv_c_bigendian=unknown
4172   cat >conftest.$ac_ext <<_ACEOF
4173 /* confdefs.h.  */
4174 _ACEOF
4175 cat confdefs.h >>conftest.$ac_ext
4176 cat >>conftest.$ac_ext <<_ACEOF
4177 /* end confdefs.h.  */
4178 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4179 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4180 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4181 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4182 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4183 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4184 int
4185 main ()
4186 {
4187  _ascii (); _ebcdic ();
4188   ;
4189   return 0;
4190 }
4191 _ACEOF
4192 rm -f conftest.$ac_objext
4193 if { (ac_try="$ac_compile"
4194 case "(($ac_try" in
4195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196   *) ac_try_echo=$ac_try;;
4197 esac
4198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4199   (eval "$ac_compile") 2>conftest.er1
4200   ac_status=$?
4201   grep -v '^ *+' conftest.er1 >conftest.err
4202   rm -f conftest.er1
4203   cat conftest.err >&5
4204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205   (exit $ac_status); } &&
4206          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4207   { (case "(($ac_try" in
4208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209   *) ac_try_echo=$ac_try;;
4210 esac
4211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4212   (eval "$ac_try") 2>&5
4213   ac_status=$?
4214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215   (exit $ac_status); }; } &&
4216          { ac_try='test -s conftest.$ac_objext'
4217   { (case "(($ac_try" in
4218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219   *) ac_try_echo=$ac_try;;
4220 esac
4221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4222   (eval "$ac_try") 2>&5
4223   ac_status=$?
4224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225   (exit $ac_status); }; }; then
4226   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4227   ac_cv_c_bigendian=yes
4228 fi
4229 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4230   if test "$ac_cv_c_bigendian" = unknown; then
4231     ac_cv_c_bigendian=no
4232   else
4233     # finding both strings is unlikely to happen, but who knows?
4234     ac_cv_c_bigendian=unknown
4235   fi
4236 fi
4237 else
4238   echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.$ac_ext >&5
4240
4241
4242 fi
4243
4244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4245 else
4246   cat >conftest.$ac_ext <<_ACEOF
4247 /* confdefs.h.  */
4248 _ACEOF
4249 cat confdefs.h >>conftest.$ac_ext
4250 cat >>conftest.$ac_ext <<_ACEOF
4251 /* end confdefs.h.  */
4252 $ac_includes_default
4253 int
4254 main ()
4255 {
4256
4257   /* Are we little or big endian?  From Harbison&Steele.  */
4258   union
4259   {
4260     long int l;
4261     char c[sizeof (long int)];
4262   } u;
4263   u.l = 1;
4264   return u.c[sizeof (long int) - 1] == 1;
4265
4266   ;
4267   return 0;
4268 }
4269 _ACEOF
4270 rm -f conftest$ac_exeext
4271 if { (ac_try="$ac_link"
4272 case "(($ac_try" in
4273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274   *) ac_try_echo=$ac_try;;
4275 esac
4276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277   (eval "$ac_link") 2>&5
4278   ac_status=$?
4279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4281   { (case "(($ac_try" in
4282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283   *) ac_try_echo=$ac_try;;
4284 esac
4285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4286   (eval "$ac_try") 2>&5
4287   ac_status=$?
4288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289   (exit $ac_status); }; }; then
4290   ac_cv_c_bigendian=no
4291 else
4292   echo "$as_me: program exited with status $ac_status" >&5
4293 echo "$as_me: failed program was:" >&5
4294 sed 's/^/| /' conftest.$ac_ext >&5
4295
4296 ( exit $ac_status )
4297 ac_cv_c_bigendian=yes
4298 fi
4299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4300 fi
4301
4302
4303 fi
4304
4305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4306 fi
4307 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4308 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4309 case $ac_cv_c_bigendian in
4310   yes)
4311     ENDIAN=big
4312  ;;
4313   no)
4314     ENDIAN=little
4315  ;;
4316   *)
4317     { { echo "$as_me:$LINENO: error: unknown endianness
4318 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4319 echo "$as_me: error: unknown endianness
4320 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4321    { (exit 1); exit 1; }; } ;;
4322 esac
4323
4324
4325 if test "$cross_compiling" = yes; then
4326   LLVM_CROSS_COMPILING=1
4327
4328
4329 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4330 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4331 if test "${ac_cv_build_exeext+set}" = set; then
4332   echo $ECHO_N "(cached) $ECHO_C" >&6
4333 else
4334   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4335   ac_cv_build_exeext=.exe
4336 else
4337   ac_build_prefix=${build_alias}-
4338
4339   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4340 set dummy ${ac_build_prefix}gcc; ac_word=$2
4341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4343 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4344   echo $ECHO_N "(cached) $ECHO_C" >&6
4345 else
4346   if test -n "$BUILD_CC"; then
4347   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4348 else
4349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350 for as_dir in $PATH
4351 do
4352   IFS=$as_save_IFS
4353   test -z "$as_dir" && as_dir=.
4354   for ac_exec_ext in '' $ac_executable_extensions; do
4355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4356     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4358     break 2
4359   fi
4360 done
4361 done
4362 IFS=$as_save_IFS
4363
4364 fi
4365 fi
4366 BUILD_CC=$ac_cv_prog_BUILD_CC
4367 if test -n "$BUILD_CC"; then
4368   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4369 echo "${ECHO_T}$BUILD_CC" >&6; }
4370 else
4371   { echo "$as_me:$LINENO: result: no" >&5
4372 echo "${ECHO_T}no" >&6; }
4373 fi
4374
4375
4376   if test -z "$BUILD_CC"; then
4377      # Extract the first word of "gcc", so it can be a program name with args.
4378 set dummy gcc; ac_word=$2
4379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4381 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4382   echo $ECHO_N "(cached) $ECHO_C" >&6
4383 else
4384   if test -n "$BUILD_CC"; then
4385   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4386 else
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 for as_dir in $PATH
4389 do
4390   IFS=$as_save_IFS
4391   test -z "$as_dir" && as_dir=.
4392   for ac_exec_ext in '' $ac_executable_extensions; do
4393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4394     ac_cv_prog_BUILD_CC="gcc"
4395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4396     break 2
4397   fi
4398 done
4399 done
4400 IFS=$as_save_IFS
4401
4402 fi
4403 fi
4404 BUILD_CC=$ac_cv_prog_BUILD_CC
4405 if test -n "$BUILD_CC"; then
4406   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4407 echo "${ECHO_T}$BUILD_CC" >&6; }
4408 else
4409   { echo "$as_me:$LINENO: result: no" >&5
4410 echo "${ECHO_T}no" >&6; }
4411 fi
4412
4413
4414      if test -z "$BUILD_CC"; then
4415        # Extract the first word of "cc", so it can be a program name with args.
4416 set dummy cc; ac_word=$2
4417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4419 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4420   echo $ECHO_N "(cached) $ECHO_C" >&6
4421 else
4422   if test -n "$BUILD_CC"; then
4423   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4424 else
4425   ac_prog_rejected=no
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 for as_dir in $PATH
4428 do
4429   IFS=$as_save_IFS
4430   test -z "$as_dir" && as_dir=.
4431   for ac_exec_ext in '' $ac_executable_extensions; do
4432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4433     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4434        ac_prog_rejected=yes
4435        continue
4436      fi
4437     ac_cv_prog_BUILD_CC="cc"
4438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4439     break 2
4440   fi
4441 done
4442 done
4443 IFS=$as_save_IFS
4444
4445 if test $ac_prog_rejected = yes; then
4446   # We found a bogon in the path, so make sure we never use it.
4447   set dummy $ac_cv_prog_BUILD_CC
4448   shift
4449   if test $# != 0; then
4450     # We chose a different compiler from the bogus one.
4451     # However, it has the same basename, so the bogon will be chosen
4452     # first if we set BUILD_CC to just the basename; use the full file name.
4453     shift
4454     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4455   fi
4456 fi
4457 fi
4458 fi
4459 BUILD_CC=$ac_cv_prog_BUILD_CC
4460 if test -n "$BUILD_CC"; then
4461   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4462 echo "${ECHO_T}$BUILD_CC" >&6; }
4463 else
4464   { echo "$as_me:$LINENO: result: no" >&5
4465 echo "${ECHO_T}no" >&6; }
4466 fi
4467
4468
4469      fi
4470   fi
4471   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4472 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4473    { (exit 1); exit 1; }; }
4474   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4475   rm -f conftest*
4476   echo 'int main () { return 0; }' > conftest.$ac_ext
4477   ac_cv_build_exeext=
4478   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4479   (eval $ac_build_link) 2>&5
4480   ac_status=$?
4481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482   (exit $ac_status); }; then
4483     for file in conftest.*; do
4484       case $file in
4485       *.c | *.o | *.obj | *.dSYM) ;;
4486       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4487       esac
4488     done
4489   else
4490     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4491 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4492    { (exit 1); exit 1; }; }
4493   fi
4494   rm -f conftest*
4495   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4496 fi
4497 fi
4498
4499 BUILD_EXEEXT=""
4500 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4501 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4502 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4503 ac_build_exeext=$BUILD_EXEEXT
4504
4505   ac_build_prefix=${build_alias}-
4506   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4507 set dummy ${ac_build_prefix}g++; ac_word=$2
4508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4510 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4511   echo $ECHO_N "(cached) $ECHO_C" >&6
4512 else
4513   if test -n "$BUILD_CXX"; then
4514   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4515 else
4516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517 for as_dir in $PATH
4518 do
4519   IFS=$as_save_IFS
4520   test -z "$as_dir" && as_dir=.
4521   for ac_exec_ext in '' $ac_executable_extensions; do
4522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4523     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4525     break 2
4526   fi
4527 done
4528 done
4529 IFS=$as_save_IFS
4530
4531 fi
4532 fi
4533 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4534 if test -n "$BUILD_CXX"; then
4535   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4536 echo "${ECHO_T}$BUILD_CXX" >&6; }
4537 else
4538   { echo "$as_me:$LINENO: result: no" >&5
4539 echo "${ECHO_T}no" >&6; }
4540 fi
4541
4542
4543   if test -z "$BUILD_CXX"; then
4544      # Extract the first word of "g++", so it can be a program name with args.
4545 set dummy g++; ac_word=$2
4546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4548 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4549   echo $ECHO_N "(cached) $ECHO_C" >&6
4550 else
4551   if test -n "$BUILD_CXX"; then
4552   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4553 else
4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 for as_dir in $PATH
4556 do
4557   IFS=$as_save_IFS
4558   test -z "$as_dir" && as_dir=.
4559   for ac_exec_ext in '' $ac_executable_extensions; do
4560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4561     ac_cv_prog_BUILD_CXX="g++"
4562     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4563     break 2
4564   fi
4565 done
4566 done
4567 IFS=$as_save_IFS
4568
4569 fi
4570 fi
4571 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4572 if test -n "$BUILD_CXX"; then
4573   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4574 echo "${ECHO_T}$BUILD_CXX" >&6; }
4575 else
4576   { echo "$as_me:$LINENO: result: no" >&5
4577 echo "${ECHO_T}no" >&6; }
4578 fi
4579
4580
4581      if test -z "$BUILD_CXX"; then
4582        # Extract the first word of "c++", so it can be a program name with args.
4583 set dummy c++; ac_word=$2
4584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4586 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4587   echo $ECHO_N "(cached) $ECHO_C" >&6
4588 else
4589   if test -n "$BUILD_CXX"; then
4590   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4591 else
4592   ac_prog_rejected=no
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 for as_dir in $PATH
4595 do
4596   IFS=$as_save_IFS
4597   test -z "$as_dir" && as_dir=.
4598   for ac_exec_ext in '' $ac_executable_extensions; do
4599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4600     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4601        ac_prog_rejected=yes
4602        continue
4603      fi
4604     ac_cv_prog_BUILD_CXX="c++"
4605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4606     break 2
4607   fi
4608 done
4609 done
4610 IFS=$as_save_IFS
4611
4612 if test $ac_prog_rejected = yes; then
4613   # We found a bogon in the path, so make sure we never use it.
4614   set dummy $ac_cv_prog_BUILD_CXX
4615   shift
4616   if test $# != 0; then
4617     # We chose a different compiler from the bogus one.
4618     # However, it has the same basename, so the bogon will be chosen
4619     # first if we set BUILD_CXX to just the basename; use the full file name.
4620     shift
4621     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4622   fi
4623 fi
4624 fi
4625 fi
4626 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4627 if test -n "$BUILD_CXX"; then
4628   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4629 echo "${ECHO_T}$BUILD_CXX" >&6; }
4630 else
4631   { echo "$as_me:$LINENO: result: no" >&5
4632 echo "${ECHO_T}no" >&6; }
4633 fi
4634
4635
4636      fi
4637   fi
4638 else
4639   LLVM_CROSS_COMPILING=0
4640
4641 fi
4642
4643 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4644   cvsbuild="yes"
4645   optimize="no"
4646   CVSBUILD=CVSBUILD=1
4647
4648 else
4649   cvsbuild="no"
4650   optimize="yes"
4651 fi
4652
4653
4654 # Check whether --enable-optimized was given.
4655 if test "${enable_optimized+set}" = set; then
4656   enableval=$enable_optimized;
4657 else
4658   enableval=$optimize
4659 fi
4660
4661 if test ${enableval} = "no" ; then
4662   ENABLE_OPTIMIZED=
4663
4664 else
4665   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4666
4667 fi
4668
4669 # Check whether --enable-profiling was given.
4670 if test "${enable_profiling+set}" = set; then
4671   enableval=$enable_profiling;
4672 else
4673   enableval="no"
4674 fi
4675
4676 if test ${enableval} = "no" ; then
4677   ENABLE_PROFILING=
4678
4679 else
4680   ENABLE_PROFILING=ENABLE_PROFILING=1
4681
4682 fi
4683
4684 # Check whether --enable-assertions was given.
4685 if test "${enable_assertions+set}" = set; then
4686   enableval=$enable_assertions;
4687 else
4688   enableval="yes"
4689 fi
4690
4691 if test ${enableval} = "yes" ; then
4692   DISABLE_ASSERTIONS=
4693
4694 else
4695   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4696
4697 fi
4698
4699 # Check whether --enable-expensive-checks was given.
4700 if test "${enable_expensive_checks+set}" = set; then
4701   enableval=$enable_expensive_checks;
4702 else
4703   enableval="no"
4704 fi
4705
4706 if test ${enableval} = "yes" ; then
4707   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4708
4709   EXPENSIVE_CHECKS=yes
4710
4711 else
4712   ENABLE_EXPENSIVE_CHECKS=
4713
4714   EXPENSIVE_CHECKS=no
4715
4716 fi
4717
4718 # Check whether --enable-debug-runtime was given.
4719 if test "${enable_debug_runtime+set}" = set; then
4720   enableval=$enable_debug_runtime;
4721 else
4722   enableval=no
4723 fi
4724
4725 if test ${enableval} = "no" ; then
4726   DEBUG_RUNTIME=
4727
4728 else
4729   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4730
4731 fi
4732
4733 # Check whether --enable-debug-symbols was given.
4734 if test "${enable_debug_symbols+set}" = set; then
4735   enableval=$enable_debug_symbols;
4736 else
4737   enableval=no
4738 fi
4739
4740 if test ${enableval} = "no" ; then
4741   DEBUG_SYMBOLS=
4742
4743 else
4744   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4745
4746 fi
4747
4748 # Check whether --enable-jit was given.
4749 if test "${enable_jit+set}" = set; then
4750   enableval=$enable_jit;
4751 else
4752   enableval=default
4753 fi
4754
4755 if test ${enableval} = "no"
4756 then
4757   JIT=
4758
4759 else
4760   case "$llvm_cv_target_arch" in
4761     x86)         TARGET_HAS_JIT=1
4762  ;;
4763     Sparc)       TARGET_HAS_JIT=0
4764  ;;
4765     PowerPC)     TARGET_HAS_JIT=1
4766  ;;
4767     x86_64)      TARGET_HAS_JIT=1
4768  ;;
4769     Alpha)       TARGET_HAS_JIT=1
4770  ;;
4771     ARM)         TARGET_HAS_JIT=1
4772  ;;
4773     Mips)        TARGET_HAS_JIT=0
4774  ;;
4775     PIC16)       TARGET_HAS_JIT=0
4776  ;;
4777     XCore)       TARGET_HAS_JIT=0
4778  ;;
4779     MSP430)      TARGET_HAS_JIT=0
4780  ;;
4781     SystemZ)     TARGET_HAS_JIT=0
4782  ;;
4783     Blackfin)    TARGET_HAS_JIT=0
4784  ;;
4785     *)           TARGET_HAS_JIT=0
4786  ;;
4787   esac
4788 fi
4789
4790 # Check whether --enable-doxygen was given.
4791 if test "${enable_doxygen+set}" = set; then
4792   enableval=$enable_doxygen;
4793 else
4794   enableval=default
4795 fi
4796
4797 case "$enableval" in
4798   yes) ENABLE_DOXYGEN=1
4799  ;;
4800   no)  ENABLE_DOXYGEN=0
4801  ;;
4802   default) ENABLE_DOXYGEN=0
4803  ;;
4804   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4805 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4806    { (exit 1); exit 1; }; } ;;
4807 esac
4808
4809 # Check whether --enable-threads was given.
4810 if test "${enable_threads+set}" = set; then
4811   enableval=$enable_threads;
4812 else
4813   enableval=default
4814 fi
4815
4816 case "$enableval" in
4817   yes) ENABLE_THREADS=1
4818  ;;
4819   no)  ENABLE_THREADS=0
4820  ;;
4821   default) ENABLE_THREADS=1
4822  ;;
4823   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4824 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4825    { (exit 1); exit 1; }; } ;;
4826 esac
4827
4828 cat >>confdefs.h <<_ACEOF
4829 #define ENABLE_THREADS $ENABLE_THREADS
4830 _ACEOF
4831
4832
4833 # Check whether --enable-pic was given.
4834 if test "${enable_pic+set}" = set; then
4835   enableval=$enable_pic;
4836 else
4837   enableval=default
4838 fi
4839
4840 case "$enableval" in
4841   yes) ENABLE_PIC=1
4842  ;;
4843   no)  ENABLE_PIC=0
4844  ;;
4845   default) ENABLE_PIC=1
4846  ;;
4847   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4848 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4849    { (exit 1); exit 1; }; } ;;
4850 esac
4851
4852 cat >>confdefs.h <<_ACEOF
4853 #define ENABLE_PIC $ENABLE_PIC
4854 _ACEOF
4855
4856
4857 TARGETS_TO_BUILD=""
4858 # Check whether --enable-targets was given.
4859 if test "${enable_targets+set}" = set; then
4860   enableval=$enable_targets;
4861 else
4862   enableval=all
4863 fi
4864
4865 if test "$enableval" = host-only ; then
4866   enableval=host
4867 fi
4868 case "$enableval" in
4869   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
4870   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4871       case "$a_target" in
4872         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4873         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4874         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4875         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4876         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4877         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4878         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4879         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4880         pic16)    TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4881         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4882         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4883         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4884         blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4885         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4886         msil)     TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4887         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4888         host) case "$llvm_cv_target_arch" in
4889             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4890             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4891             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4892             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4893             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4894             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4895             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4896             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4897             PIC16)       TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4898             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4899             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4900             s390x)       TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4901             Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4902             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4903 echo "$as_me: error: Can not set target to build" >&2;}
4904    { (exit 1); exit 1; }; } ;;
4905           esac ;;
4906         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4907 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4908    { (exit 1); exit 1; }; } ;;
4909       esac
4910   done
4911   ;;
4912 esac
4913 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4914
4915
4916 # Determine whether we are building LLVM support for the native architecture.
4917 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4918 for a_target in $TARGETS_TO_BUILD; do
4919   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4920     LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4921
4922 cat >>confdefs.h <<_ACEOF
4923 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4924 _ACEOF
4925
4926   fi
4927 done
4928
4929 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4930 # target feature def files.
4931 LLVM_ENUM_TARGETS=""
4932 LLVM_ENUM_ASM_PRINTERS=""
4933 LLVM_ENUM_ASM_PARSERS=""
4934 LLVM_ENUM_DISASSEMBLERS=""
4935 for target_to_build in $TARGETS_TO_BUILD; do
4936   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4937   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4938     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4939   fi
4940   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
4941     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
4942   fi
4943   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
4944     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
4945   fi
4946 done
4947
4948
4949
4950
4951
4952 # Check whether --enable-cbe-printf-a was given.
4953 if test "${enable_cbe_printf_a+set}" = set; then
4954   enableval=$enable_cbe_printf_a;
4955 else
4956   enableval=default
4957 fi
4958
4959 case "$enableval" in
4960   yes) ENABLE_CBE_PRINTF_A=1
4961  ;;
4962   no)  ENABLE_CBE_PRINTF_A=0
4963  ;;
4964   default)  ENABLE_CBE_PRINTF_A=1
4965  ;;
4966   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4967 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4968    { (exit 1); exit 1; }; } ;;
4969 esac
4970
4971 cat >>confdefs.h <<_ACEOF
4972 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4973 _ACEOF
4974
4975
4976
4977 # Check whether --with-llvmgccdir was given.
4978 if test "${with_llvmgccdir+set}" = set; then
4979   withval=$with_llvmgccdir;
4980 else
4981   withval=default
4982 fi
4983
4984 case "$withval" in
4985   default) WITH_LLVMGCCDIR=default ;;
4986   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4987   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4988 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4989    { (exit 1); exit 1; }; } ;;
4990 esac
4991
4992
4993 # Check whether --with-llvmgcc was given.
4994 if test "${with_llvmgcc+set}" = set; then
4995   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4996       WITH_LLVMGCCDIR=""
4997 fi
4998
4999
5000
5001 # Check whether --with-llvmgxx was given.
5002 if test "${with_llvmgxx+set}" = set; then
5003   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5004     WITH_LLVMGCCDIR=""
5005 fi
5006
5007
5008 if test -n "$LLVMGCC"; then
5009    LLVMGCCCOMMAND="$LLVMGCC"
5010 fi
5011
5012 if test -n "$LLVMGXX"; then
5013    LLVMGXXCOMMAND="$LLVMGXX"
5014 fi
5015
5016 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5017    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5018 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5019    { (exit 1); exit 1; }; };
5020 fi
5021
5022 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5023    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5024 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5025    { (exit 1); exit 1; }; };
5026 fi
5027
5028
5029 # Check whether --with-optimize-option was given.
5030 if test "${with_optimize_option+set}" = set; then
5031   withval=$with_optimize_option;
5032 else
5033   withval=default
5034 fi
5035
5036 { echo "$as_me:$LINENO: checking optimization flags" >&5
5037 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5038 case "$withval" in
5039   default)
5040     case "$llvm_cv_os_type" in
5041     MingW) optimize_option=-O3 ;;
5042     *)     optimize_option=-O2 ;;
5043     esac ;;
5044   *) optimize_option="$withval" ;;
5045 esac
5046 OPTIMIZE_OPTION=$optimize_option
5047
5048 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5049 echo "${ECHO_T}$optimize_option" >&6; }
5050
5051
5052 # Check whether --with-extra-options was given.
5053 if test "${with_extra_options+set}" = set; then
5054   withval=$with_extra_options;
5055 else
5056   withval=default
5057 fi
5058
5059 case "$withval" in
5060   default) EXTRA_OPTIONS= ;;
5061   *) EXTRA_OPTIONS=$withval ;;
5062 esac
5063 EXTRA_OPTIONS=$EXTRA_OPTIONS
5064
5065
5066 # Check whether --enable-bindings was given.
5067 if test "${enable_bindings+set}" = set; then
5068   enableval=$enable_bindings;
5069 else
5070   enableval=default
5071 fi
5072
5073 BINDINGS_TO_BUILD=""
5074 case "$enableval" in
5075   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5076   all ) BINDINGS_TO_BUILD="ocaml" ;;
5077   none | no) BINDINGS_TO_BUILD="" ;;
5078   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5079       case "$a_binding" in
5080         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5081         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5082 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5083    { (exit 1); exit 1; }; } ;;
5084       esac
5085   done
5086   ;;
5087 esac
5088
5089
5090 # Check whether --with-ocaml-libdir was given.
5091 if test "${with_ocaml_libdir+set}" = set; then
5092   withval=$with_ocaml_libdir;
5093 else
5094   withval=auto
5095 fi
5096
5097 case "$withval" in
5098   auto) with_ocaml_libdir="$withval" ;;
5099   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5100   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5101 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5102    { (exit 1); exit 1; }; } ;;
5103 esac
5104
5105
5106 # Check whether --with-c-include-dirs was given.
5107 if test "${with_c_include_dirs+set}" = set; then
5108   withval=$with_c_include_dirs;
5109 else
5110   withval=""
5111 fi
5112
5113
5114 cat >>confdefs.h <<_ACEOF
5115 #define C_INCLUDE_DIRS "$withval"
5116 _ACEOF
5117
5118
5119
5120 # Check whether --with-cxx-include-root was given.
5121 if test "${with_cxx_include_root+set}" = set; then
5122   withval=$with_cxx_include_root;
5123 else
5124   withval=""
5125 fi
5126
5127
5128 cat >>confdefs.h <<_ACEOF
5129 #define CXX_INCLUDE_ROOT "$withval"
5130 _ACEOF
5131
5132
5133
5134 # Check whether --with-cxx-include-arch was given.
5135 if test "${with_cxx_include_arch+set}" = set; then
5136   withval=$with_cxx_include_arch;
5137 else
5138   withval=""
5139 fi
5140
5141
5142 cat >>confdefs.h <<_ACEOF
5143 #define CXX_INCLUDE_ARCH "$withval"
5144 _ACEOF
5145
5146
5147
5148 # Check whether --with-cxx-include-32bit-dir was given.
5149 if test "${with_cxx_include_32bit_dir+set}" = set; then
5150   withval=$with_cxx_include_32bit_dir;
5151 else
5152   withval=""
5153 fi
5154
5155
5156 cat >>confdefs.h <<_ACEOF
5157 #define CXX_INCLUDE_32BIT_DIR "$withval"
5158 _ACEOF
5159
5160
5161
5162 # Check whether --with-cxx-include-64bit-dir was given.
5163 if test "${with_cxx_include_64bit_dir+set}" = set; then
5164   withval=$with_cxx_include_64bit_dir;
5165 else
5166   withval=""
5167 fi
5168
5169
5170 cat >>confdefs.h <<_ACEOF
5171 #define CXX_INCLUDE_64BIT_DIR "$withval"
5172 _ACEOF
5173
5174
5175
5176 # Check whether --with-binutils-include was given.
5177 if test "${with_binutils_include+set}" = set; then
5178   withval=$with_binutils_include;
5179 else
5180   withval=default
5181 fi
5182
5183 case "$withval" in
5184   default) WITH_BINUTILS_INCDIR=default ;;
5185   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5186   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5187 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5188    { (exit 1); exit 1; }; } ;;
5189 esac
5190 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5191   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5192
5193   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5194      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5195      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5196 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5197    { (exit 1); exit 1; }; };
5198   fi
5199 fi
5200
5201 # Check whether --enable-libffi was given.
5202 if test "${enable_libffi+set}" = set; then
5203   enableval=$enable_libffi; case "$enableval" in
5204     yes) llvm_cv_enable_libffi="yes" ;;
5205     no)  llvm_cv_enable_libffi="no"  ;;
5206     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5207 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5208    { (exit 1); exit 1; }; } ;;
5209   esac
5210 else
5211   llvm_cv_enable_libffi=no
5212 fi
5213
5214
5215 if test "$llvm_cv_os_type" = "Win32" ; then
5216    llvmc_dynamic="yes"
5217 else
5218    llvmc_dynamic="no"
5219 fi
5220
5221 # Check whether --enable-llvmc-dynamic was given.
5222 if test "${enable_llvmc_dynamic+set}" = set; then
5223   enableval=$enable_llvmc_dynamic;
5224 else
5225   enableval=$llvmc_dynamic
5226 fi
5227
5228 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5229    ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5230
5231 else
5232    ENABLE_LLVMC_DYNAMIC=
5233
5234 fi
5235
5236 # Check whether --enable-llvmc-dynamic-plugins was given.
5237 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5238   enableval=$enable_llvmc_dynamic_plugins;
5239 else
5240   enableval=yes
5241 fi
5242
5243 if test ${enableval} = "yes" ; then
5244    ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5245
5246 else
5247    ENABLE_LLVMC_DYNAMIC_PLUGINS=
5248
5249 fi
5250
5251
5252 ac_ext=c
5253 ac_cpp='$CPP $CPPFLAGS'
5254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5257 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5258 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5259 # On Suns, sometimes $CPP names a directory.
5260 if test -n "$CPP" && test -d "$CPP"; then
5261   CPP=
5262 fi
5263 if test -z "$CPP"; then
5264   if test "${ac_cv_prog_CPP+set}" = set; then
5265   echo $ECHO_N "(cached) $ECHO_C" >&6
5266 else
5267       # Double quotes because CPP needs to be expanded
5268     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5269     do
5270       ac_preproc_ok=false
5271 for ac_c_preproc_warn_flag in '' yes
5272 do
5273   # Use a header file that comes with gcc, so configuring glibc
5274   # with a fresh cross-compiler works.
5275   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5276   # <limits.h> exists even on freestanding compilers.
5277   # On the NeXT, cc -E runs the code through the compiler's parser,
5278   # not just through cpp. "Syntax error" is here to catch this case.
5279   cat >conftest.$ac_ext <<_ACEOF
5280 /* confdefs.h.  */
5281 _ACEOF
5282 cat confdefs.h >>conftest.$ac_ext
5283 cat >>conftest.$ac_ext <<_ACEOF
5284 /* end confdefs.h.  */
5285 #ifdef __STDC__
5286 # include <limits.h>
5287 #else
5288 # include <assert.h>
5289 #endif
5290                      Syntax error
5291 _ACEOF
5292 if { (ac_try="$ac_cpp conftest.$ac_ext"
5293 case "(($ac_try" in
5294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5295   *) ac_try_echo=$ac_try;;
5296 esac
5297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5298   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5299   ac_status=$?
5300   grep -v '^ *+' conftest.er1 >conftest.err
5301   rm -f conftest.er1
5302   cat conftest.err >&5
5303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304   (exit $ac_status); } >/dev/null; then
5305   if test -s conftest.err; then
5306     ac_cpp_err=$ac_c_preproc_warn_flag
5307     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5308   else
5309     ac_cpp_err=
5310   fi
5311 else
5312   ac_cpp_err=yes
5313 fi
5314 if test -z "$ac_cpp_err"; then
5315   :
5316 else
5317   echo "$as_me: failed program was:" >&5
5318 sed 's/^/| /' conftest.$ac_ext >&5
5319
5320   # Broken: fails on valid input.
5321 continue
5322 fi
5323
5324 rm -f conftest.err conftest.$ac_ext
5325
5326   # OK, works on sane cases.  Now check whether nonexistent headers
5327   # can be detected and how.
5328   cat >conftest.$ac_ext <<_ACEOF
5329 /* confdefs.h.  */
5330 _ACEOF
5331 cat confdefs.h >>conftest.$ac_ext
5332 cat >>conftest.$ac_ext <<_ACEOF
5333 /* end confdefs.h.  */
5334 #include <ac_nonexistent.h>
5335 _ACEOF
5336 if { (ac_try="$ac_cpp conftest.$ac_ext"
5337 case "(($ac_try" in
5338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5339   *) ac_try_echo=$ac_try;;
5340 esac
5341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5342   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5343   ac_status=$?
5344   grep -v '^ *+' conftest.er1 >conftest.err
5345   rm -f conftest.er1
5346   cat conftest.err >&5
5347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348   (exit $ac_status); } >/dev/null; then
5349   if test -s conftest.err; then
5350     ac_cpp_err=$ac_c_preproc_warn_flag
5351     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5352   else
5353     ac_cpp_err=
5354   fi
5355 else
5356   ac_cpp_err=yes
5357 fi
5358 if test -z "$ac_cpp_err"; then
5359   # Broken: success on invalid input.
5360 continue
5361 else
5362   echo "$as_me: failed program was:" >&5
5363 sed 's/^/| /' conftest.$ac_ext >&5
5364
5365   # Passes both tests.
5366 ac_preproc_ok=:
5367 break
5368 fi
5369
5370 rm -f conftest.err conftest.$ac_ext
5371
5372 done
5373 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5374 rm -f conftest.err conftest.$ac_ext
5375 if $ac_preproc_ok; then
5376   break
5377 fi
5378
5379     done
5380     ac_cv_prog_CPP=$CPP
5381
5382 fi
5383   CPP=$ac_cv_prog_CPP
5384 else
5385   ac_cv_prog_CPP=$CPP
5386 fi
5387 { echo "$as_me:$LINENO: result: $CPP" >&5
5388 echo "${ECHO_T}$CPP" >&6; }
5389 ac_preproc_ok=false
5390 for ac_c_preproc_warn_flag in '' yes
5391 do
5392   # Use a header file that comes with gcc, so configuring glibc
5393   # with a fresh cross-compiler works.
5394   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5395   # <limits.h> exists even on freestanding compilers.
5396   # On the NeXT, cc -E runs the code through the compiler's parser,
5397   # not just through cpp. "Syntax error" is here to catch this case.
5398   cat >conftest.$ac_ext <<_ACEOF
5399 /* confdefs.h.  */
5400 _ACEOF
5401 cat confdefs.h >>conftest.$ac_ext
5402 cat >>conftest.$ac_ext <<_ACEOF
5403 /* end confdefs.h.  */
5404 #ifdef __STDC__
5405 # include <limits.h>
5406 #else
5407 # include <assert.h>
5408 #endif
5409                      Syntax error
5410 _ACEOF
5411 if { (ac_try="$ac_cpp conftest.$ac_ext"
5412 case "(($ac_try" in
5413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5414   *) ac_try_echo=$ac_try;;
5415 esac
5416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5417   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5418   ac_status=$?
5419   grep -v '^ *+' conftest.er1 >conftest.err
5420   rm -f conftest.er1
5421   cat conftest.err >&5
5422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423   (exit $ac_status); } >/dev/null; then
5424   if test -s conftest.err; then
5425     ac_cpp_err=$ac_c_preproc_warn_flag
5426     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5427   else
5428     ac_cpp_err=
5429   fi
5430 else
5431   ac_cpp_err=yes
5432 fi
5433 if test -z "$ac_cpp_err"; then
5434   :
5435 else
5436   echo "$as_me: failed program was:" >&5
5437 sed 's/^/| /' conftest.$ac_ext >&5
5438
5439   # Broken: fails on valid input.
5440 continue
5441 fi
5442
5443 rm -f conftest.err conftest.$ac_ext
5444
5445   # OK, works on sane cases.  Now check whether nonexistent headers
5446   # can be detected and how.
5447   cat >conftest.$ac_ext <<_ACEOF
5448 /* confdefs.h.  */
5449 _ACEOF
5450 cat confdefs.h >>conftest.$ac_ext
5451 cat >>conftest.$ac_ext <<_ACEOF
5452 /* end confdefs.h.  */
5453 #include <ac_nonexistent.h>
5454 _ACEOF
5455 if { (ac_try="$ac_cpp conftest.$ac_ext"
5456 case "(($ac_try" in
5457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5458   *) ac_try_echo=$ac_try;;
5459 esac
5460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5461   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5462   ac_status=$?
5463   grep -v '^ *+' conftest.er1 >conftest.err
5464   rm -f conftest.er1
5465   cat conftest.err >&5
5466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467   (exit $ac_status); } >/dev/null; then
5468   if test -s conftest.err; then
5469     ac_cpp_err=$ac_c_preproc_warn_flag
5470     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5471   else
5472     ac_cpp_err=
5473   fi
5474 else
5475   ac_cpp_err=yes
5476 fi
5477 if test -z "$ac_cpp_err"; then
5478   # Broken: success on invalid input.
5479 continue
5480 else
5481   echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.$ac_ext >&5
5483
5484   # Passes both tests.
5485 ac_preproc_ok=:
5486 break
5487 fi
5488
5489 rm -f conftest.err conftest.$ac_ext
5490
5491 done
5492 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5493 rm -f conftest.err conftest.$ac_ext
5494 if $ac_preproc_ok; then
5495   :
5496 else
5497   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5498 See \`config.log' for more details." >&5
5499 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5500 See \`config.log' for more details." >&2;}
5501    { (exit 1); exit 1; }; }
5502 fi
5503
5504 ac_ext=c
5505 ac_cpp='$CPP $CPPFLAGS'
5506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5509
5510 ac_ext=c
5511 ac_cpp='$CPP $CPPFLAGS'
5512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5515 if test -n "$ac_tool_prefix"; then
5516   for ac_prog in gcc
5517   do
5518     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5519 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5522 if test "${ac_cv_prog_CC+set}" = set; then
5523   echo $ECHO_N "(cached) $ECHO_C" >&6
5524 else
5525   if test -n "$CC"; then
5526   ac_cv_prog_CC="$CC" # Let the user override the test.
5527 else
5528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 for as_dir in $PATH
5530 do
5531   IFS=$as_save_IFS
5532   test -z "$as_dir" && as_dir=.
5533   for ac_exec_ext in '' $ac_executable_extensions; do
5534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5535     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5537     break 2
5538   fi
5539 done
5540 done
5541 IFS=$as_save_IFS
5542
5543 fi
5544 fi
5545 CC=$ac_cv_prog_CC
5546 if test -n "$CC"; then
5547   { echo "$as_me:$LINENO: result: $CC" >&5
5548 echo "${ECHO_T}$CC" >&6; }
5549 else
5550   { echo "$as_me:$LINENO: result: no" >&5
5551 echo "${ECHO_T}no" >&6; }
5552 fi
5553
5554
5555     test -n "$CC" && break
5556   done
5557 fi
5558 if test -z "$CC"; then
5559   ac_ct_CC=$CC
5560   for ac_prog in gcc
5561 do
5562   # Extract the first word of "$ac_prog", so it can be a program name with args.
5563 set dummy $ac_prog; ac_word=$2
5564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5567   echo $ECHO_N "(cached) $ECHO_C" >&6
5568 else
5569   if test -n "$ac_ct_CC"; then
5570   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5571 else
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573 for as_dir in $PATH
5574 do
5575   IFS=$as_save_IFS
5576   test -z "$as_dir" && as_dir=.
5577   for ac_exec_ext in '' $ac_executable_extensions; do
5578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5579     ac_cv_prog_ac_ct_CC="$ac_prog"
5580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5581     break 2
5582   fi
5583 done
5584 done
5585 IFS=$as_save_IFS
5586
5587 fi
5588 fi
5589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5590 if test -n "$ac_ct_CC"; then
5591   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5592 echo "${ECHO_T}$ac_ct_CC" >&6; }
5593 else
5594   { echo "$as_me:$LINENO: result: no" >&5
5595 echo "${ECHO_T}no" >&6; }
5596 fi
5597
5598
5599   test -n "$ac_ct_CC" && break
5600 done
5601
5602   if test "x$ac_ct_CC" = x; then
5603     CC=""
5604   else
5605     case $cross_compiling:$ac_tool_warned in
5606 yes:)
5607 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5608 whose name does not start with the host triplet.  If you think this
5609 configuration is useful to you, please write to autoconf@gnu.org." >&5
5610 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5611 whose name does not start with the host triplet.  If you think this
5612 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5613 ac_tool_warned=yes ;;
5614 esac
5615     CC=$ac_ct_CC
5616   fi
5617 fi
5618
5619
5620 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5621 See \`config.log' for more details." >&5
5622 echo "$as_me: error: no acceptable C compiler found in \$PATH
5623 See \`config.log' for more details." >&2;}
5624    { (exit 1); exit 1; }; }
5625
5626 # Provide some information about the compiler.
5627 echo "$as_me:$LINENO: checking for C compiler version" >&5
5628 ac_compiler=`set X $ac_compile; echo $2`
5629 { (ac_try="$ac_compiler --version >&5"
5630 case "(($ac_try" in
5631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5632   *) ac_try_echo=$ac_try;;
5633 esac
5634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5635   (eval "$ac_compiler --version >&5") 2>&5
5636   ac_status=$?
5637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638   (exit $ac_status); }
5639 { (ac_try="$ac_compiler -v >&5"
5640 case "(($ac_try" in
5641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5642   *) ac_try_echo=$ac_try;;
5643 esac
5644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5645   (eval "$ac_compiler -v >&5") 2>&5
5646   ac_status=$?
5647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648   (exit $ac_status); }
5649 { (ac_try="$ac_compiler -V >&5"
5650 case "(($ac_try" in
5651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5652   *) ac_try_echo=$ac_try;;
5653 esac
5654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5655   (eval "$ac_compiler -V >&5") 2>&5
5656   ac_status=$?
5657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658   (exit $ac_status); }
5659
5660 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5661 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5662 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5663   echo $ECHO_N "(cached) $ECHO_C" >&6
5664 else
5665   cat >conftest.$ac_ext <<_ACEOF
5666 /* confdefs.h.  */
5667 _ACEOF
5668 cat confdefs.h >>conftest.$ac_ext
5669 cat >>conftest.$ac_ext <<_ACEOF
5670 /* end confdefs.h.  */
5671
5672 int
5673 main ()
5674 {
5675 #ifndef __GNUC__
5676        choke me
5677 #endif
5678
5679   ;
5680   return 0;
5681 }
5682 _ACEOF
5683 rm -f conftest.$ac_objext
5684 if { (ac_try="$ac_compile"
5685 case "(($ac_try" in
5686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687   *) ac_try_echo=$ac_try;;
5688 esac
5689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690   (eval "$ac_compile") 2>conftest.er1
5691   ac_status=$?
5692   grep -v '^ *+' conftest.er1 >conftest.err
5693   rm -f conftest.er1
5694   cat conftest.err >&5
5695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696   (exit $ac_status); } &&
5697          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5698   { (case "(($ac_try" in
5699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700   *) ac_try_echo=$ac_try;;
5701 esac
5702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703   (eval "$ac_try") 2>&5
5704   ac_status=$?
5705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706   (exit $ac_status); }; } &&
5707          { ac_try='test -s conftest.$ac_objext'
5708   { (case "(($ac_try" in
5709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710   *) ac_try_echo=$ac_try;;
5711 esac
5712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5713   (eval "$ac_try") 2>&5
5714   ac_status=$?
5715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716   (exit $ac_status); }; }; then
5717   ac_compiler_gnu=yes
5718 else
5719   echo "$as_me: failed program was:" >&5
5720 sed 's/^/| /' conftest.$ac_ext >&5
5721
5722         ac_compiler_gnu=no
5723 fi
5724
5725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5726 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5727
5728 fi
5729 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5730 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5731 GCC=`test $ac_compiler_gnu = yes && echo yes`
5732 ac_test_CFLAGS=${CFLAGS+set}
5733 ac_save_CFLAGS=$CFLAGS
5734 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5735 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5736 if test "${ac_cv_prog_cc_g+set}" = set; then
5737   echo $ECHO_N "(cached) $ECHO_C" >&6
5738 else
5739   ac_save_c_werror_flag=$ac_c_werror_flag
5740    ac_c_werror_flag=yes
5741    ac_cv_prog_cc_g=no
5742    CFLAGS="-g"
5743    cat >conftest.$ac_ext <<_ACEOF
5744 /* confdefs.h.  */
5745 _ACEOF
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h.  */
5749
5750 int
5751 main ()
5752 {
5753
5754   ;
5755   return 0;
5756 }
5757 _ACEOF
5758 rm -f conftest.$ac_objext
5759 if { (ac_try="$ac_compile"
5760 case "(($ac_try" in
5761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5762   *) ac_try_echo=$ac_try;;
5763 esac
5764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5765   (eval "$ac_compile") 2>conftest.er1
5766   ac_status=$?
5767   grep -v '^ *+' conftest.er1 >conftest.err
5768   rm -f conftest.er1
5769   cat conftest.err >&5
5770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771   (exit $ac_status); } &&
5772          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5773   { (case "(($ac_try" in
5774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5775   *) ac_try_echo=$ac_try;;
5776 esac
5777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5778   (eval "$ac_try") 2>&5
5779   ac_status=$?
5780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781   (exit $ac_status); }; } &&
5782          { ac_try='test -s conftest.$ac_objext'
5783   { (case "(($ac_try" in
5784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5785   *) ac_try_echo=$ac_try;;
5786 esac
5787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5788   (eval "$ac_try") 2>&5
5789   ac_status=$?
5790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791   (exit $ac_status); }; }; then
5792   ac_cv_prog_cc_g=yes
5793 else
5794   echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.$ac_ext >&5
5796
5797         CFLAGS=""
5798       cat >conftest.$ac_ext <<_ACEOF
5799 /* confdefs.h.  */
5800 _ACEOF
5801 cat confdefs.h >>conftest.$ac_ext
5802 cat >>conftest.$ac_ext <<_ACEOF
5803 /* end confdefs.h.  */
5804
5805 int
5806 main ()
5807 {
5808
5809   ;
5810   return 0;
5811 }
5812 _ACEOF
5813 rm -f conftest.$ac_objext
5814 if { (ac_try="$ac_compile"
5815 case "(($ac_try" in
5816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5817   *) ac_try_echo=$ac_try;;
5818 esac
5819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5820   (eval "$ac_compile") 2>conftest.er1
5821   ac_status=$?
5822   grep -v '^ *+' conftest.er1 >conftest.err
5823   rm -f conftest.er1
5824   cat conftest.err >&5
5825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826   (exit $ac_status); } &&
5827          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5828   { (case "(($ac_try" in
5829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830   *) ac_try_echo=$ac_try;;
5831 esac
5832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5833   (eval "$ac_try") 2>&5
5834   ac_status=$?
5835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836   (exit $ac_status); }; } &&
5837          { ac_try='test -s conftest.$ac_objext'
5838   { (case "(($ac_try" in
5839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840   *) ac_try_echo=$ac_try;;
5841 esac
5842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843   (eval "$ac_try") 2>&5
5844   ac_status=$?
5845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846   (exit $ac_status); }; }; then
5847   :
5848 else
5849   echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5851
5852         ac_c_werror_flag=$ac_save_c_werror_flag
5853          CFLAGS="-g"
5854          cat >conftest.$ac_ext <<_ACEOF
5855 /* confdefs.h.  */
5856 _ACEOF
5857 cat confdefs.h >>conftest.$ac_ext
5858 cat >>conftest.$ac_ext <<_ACEOF
5859 /* end confdefs.h.  */
5860
5861 int
5862 main ()
5863 {
5864
5865   ;
5866   return 0;
5867 }
5868 _ACEOF
5869 rm -f conftest.$ac_objext
5870 if { (ac_try="$ac_compile"
5871 case "(($ac_try" in
5872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5873   *) ac_try_echo=$ac_try;;
5874 esac
5875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5876   (eval "$ac_compile") 2>conftest.er1
5877   ac_status=$?
5878   grep -v '^ *+' conftest.er1 >conftest.err
5879   rm -f conftest.er1
5880   cat conftest.err >&5
5881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882   (exit $ac_status); } &&
5883          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5884   { (case "(($ac_try" in
5885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5886   *) ac_try_echo=$ac_try;;
5887 esac
5888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5889   (eval "$ac_try") 2>&5
5890   ac_status=$?
5891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892   (exit $ac_status); }; } &&
5893          { ac_try='test -s conftest.$ac_objext'
5894   { (case "(($ac_try" in
5895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5896   *) ac_try_echo=$ac_try;;
5897 esac
5898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5899   (eval "$ac_try") 2>&5
5900   ac_status=$?
5901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902   (exit $ac_status); }; }; then
5903   ac_cv_prog_cc_g=yes
5904 else
5905   echo "$as_me: failed program was:" >&5
5906 sed 's/^/| /' conftest.$ac_ext >&5
5907
5908
5909 fi
5910
5911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5912 fi
5913
5914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5915 fi
5916
5917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5918    ac_c_werror_flag=$ac_save_c_werror_flag
5919 fi
5920 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5921 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5922 if test "$ac_test_CFLAGS" = set; then
5923   CFLAGS=$ac_save_CFLAGS
5924 elif test $ac_cv_prog_cc_g = yes; then
5925   if test "$GCC" = yes; then
5926     CFLAGS="-g -O2"
5927   else
5928     CFLAGS="-g"
5929   fi
5930 else
5931   if test "$GCC" = yes; then
5932     CFLAGS="-O2"
5933   else
5934     CFLAGS=
5935   fi
5936 fi
5937 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5938 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5939 if test "${ac_cv_prog_cc_c89+set}" = set; then
5940   echo $ECHO_N "(cached) $ECHO_C" >&6
5941 else
5942   ac_cv_prog_cc_c89=no
5943 ac_save_CC=$CC
5944 cat >conftest.$ac_ext <<_ACEOF
5945 /* confdefs.h.  */
5946 _ACEOF
5947 cat confdefs.h >>conftest.$ac_ext
5948 cat >>conftest.$ac_ext <<_ACEOF
5949 /* end confdefs.h.  */
5950 #include <stdarg.h>
5951 #include <stdio.h>
5952 #include <sys/types.h>
5953 #include <sys/stat.h>
5954 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5955 struct buf { int x; };
5956 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5957 static char *e (p, i)
5958      char **p;
5959      int i;
5960 {
5961   return p[i];
5962 }
5963 static char *f (char * (*g) (char **, int), char **p, ...)
5964 {
5965   char *s;
5966   va_list v;
5967   va_start (v,p);
5968   s = g (p, va_arg (v,int));
5969   va_end (v);
5970   return s;
5971 }
5972
5973 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5974    function prototypes and stuff, but not '\xHH' hex character constants.
5975    These don't provoke an error unfortunately, instead are silently treated
5976    as 'x'.  The following induces an error, until -std is added to get
5977    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5978    array size at least.  It's necessary to write '\x00'==0 to get something
5979    that's true only with -std.  */
5980 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5981
5982 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5983    inside strings and character constants.  */
5984 #define FOO(x) 'x'
5985 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5986
5987 int test (int i, double x);
5988 struct s1 {int (*f) (int a);};
5989 struct s2 {int (*f) (double a);};
5990 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5991 int argc;
5992 char **argv;
5993 int
5994 main ()
5995 {
5996 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5997   ;
5998   return 0;
5999 }
6000 _ACEOF
6001 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6002         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6003 do
6004   CC="$ac_save_CC $ac_arg"
6005   rm -f conftest.$ac_objext
6006 if { (ac_try="$ac_compile"
6007 case "(($ac_try" in
6008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6009   *) ac_try_echo=$ac_try;;
6010 esac
6011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6012   (eval "$ac_compile") 2>conftest.er1
6013   ac_status=$?
6014   grep -v '^ *+' conftest.er1 >conftest.err
6015   rm -f conftest.er1
6016   cat conftest.err >&5
6017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018   (exit $ac_status); } &&
6019          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6020   { (case "(($ac_try" in
6021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6022   *) ac_try_echo=$ac_try;;
6023 esac
6024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6025   (eval "$ac_try") 2>&5
6026   ac_status=$?
6027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028   (exit $ac_status); }; } &&
6029          { ac_try='test -s conftest.$ac_objext'
6030   { (case "(($ac_try" in
6031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6032   *) ac_try_echo=$ac_try;;
6033 esac
6034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6035   (eval "$ac_try") 2>&5
6036   ac_status=$?
6037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038   (exit $ac_status); }; }; then
6039   ac_cv_prog_cc_c89=$ac_arg
6040 else
6041   echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.$ac_ext >&5
6043
6044
6045 fi
6046
6047 rm -f core conftest.err conftest.$ac_objext
6048   test "x$ac_cv_prog_cc_c89" != "xno" && break
6049 done
6050 rm -f conftest.$ac_ext
6051 CC=$ac_save_CC
6052
6053 fi
6054 # AC_CACHE_VAL
6055 case "x$ac_cv_prog_cc_c89" in
6056   x)
6057     { echo "$as_me:$LINENO: result: none needed" >&5
6058 echo "${ECHO_T}none needed" >&6; } ;;
6059   xno)
6060     { echo "$as_me:$LINENO: result: unsupported" >&5
6061 echo "${ECHO_T}unsupported" >&6; } ;;
6062   *)
6063     CC="$CC $ac_cv_prog_cc_c89"
6064     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6065 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6066 esac
6067
6068
6069 ac_ext=c
6070 ac_cpp='$CPP $CPPFLAGS'
6071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6074
6075 ac_ext=cpp
6076 ac_cpp='$CXXCPP $CPPFLAGS'
6077 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6078 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6079 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6080 if test -z "$CXX"; then
6081   if test -n "$CCC"; then
6082     CXX=$CCC
6083   else
6084     if test -n "$ac_tool_prefix"; then
6085   for ac_prog in g++
6086   do
6087     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6088 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6091 if test "${ac_cv_prog_CXX+set}" = set; then
6092   echo $ECHO_N "(cached) $ECHO_C" >&6
6093 else
6094   if test -n "$CXX"; then
6095   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6096 else
6097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098 for as_dir in $PATH
6099 do
6100   IFS=$as_save_IFS
6101   test -z "$as_dir" && as_dir=.
6102   for ac_exec_ext in '' $ac_executable_extensions; do
6103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6104     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6106     break 2
6107   fi
6108 done
6109 done
6110 IFS=$as_save_IFS
6111
6112 fi
6113 fi
6114 CXX=$ac_cv_prog_CXX
6115 if test -n "$CXX"; then
6116   { echo "$as_me:$LINENO: result: $CXX" >&5
6117 echo "${ECHO_T}$CXX" >&6; }
6118 else
6119   { echo "$as_me:$LINENO: result: no" >&5
6120 echo "${ECHO_T}no" >&6; }
6121 fi
6122
6123
6124     test -n "$CXX" && break
6125   done
6126 fi
6127 if test -z "$CXX"; then
6128   ac_ct_CXX=$CXX
6129   for ac_prog in g++
6130 do
6131   # Extract the first word of "$ac_prog", so it can be a program name with args.
6132 set dummy $ac_prog; ac_word=$2
6133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6135 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6136   echo $ECHO_N "(cached) $ECHO_C" >&6
6137 else
6138   if test -n "$ac_ct_CXX"; then
6139   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6140 else
6141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142 for as_dir in $PATH
6143 do
6144   IFS=$as_save_IFS
6145   test -z "$as_dir" && as_dir=.
6146   for ac_exec_ext in '' $ac_executable_extensions; do
6147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6148     ac_cv_prog_ac_ct_CXX="$ac_prog"
6149     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6150     break 2
6151   fi
6152 done
6153 done
6154 IFS=$as_save_IFS
6155
6156 fi
6157 fi
6158 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6159 if test -n "$ac_ct_CXX"; then
6160   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6161 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6162 else
6163   { echo "$as_me:$LINENO: result: no" >&5
6164 echo "${ECHO_T}no" >&6; }
6165 fi
6166
6167
6168   test -n "$ac_ct_CXX" && break
6169 done
6170
6171   if test "x$ac_ct_CXX" = x; then
6172     CXX="g++"
6173   else
6174     case $cross_compiling:$ac_tool_warned in
6175 yes:)
6176 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6177 whose name does not start with the host triplet.  If you think this
6178 configuration is useful to you, please write to autoconf@gnu.org." >&5
6179 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6180 whose name does not start with the host triplet.  If you think this
6181 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6182 ac_tool_warned=yes ;;
6183 esac
6184     CXX=$ac_ct_CXX
6185   fi
6186 fi
6187
6188   fi
6189 fi
6190 # Provide some information about the compiler.
6191 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6192 ac_compiler=`set X $ac_compile; echo $2`
6193 { (ac_try="$ac_compiler --version >&5"
6194 case "(($ac_try" in
6195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6196   *) ac_try_echo=$ac_try;;
6197 esac
6198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6199   (eval "$ac_compiler --version >&5") 2>&5
6200   ac_status=$?
6201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202   (exit $ac_status); }
6203 { (ac_try="$ac_compiler -v >&5"
6204 case "(($ac_try" in
6205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6206   *) ac_try_echo=$ac_try;;
6207 esac
6208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6209   (eval "$ac_compiler -v >&5") 2>&5
6210   ac_status=$?
6211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212   (exit $ac_status); }
6213 { (ac_try="$ac_compiler -V >&5"
6214 case "(($ac_try" in
6215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6216   *) ac_try_echo=$ac_try;;
6217 esac
6218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6219   (eval "$ac_compiler -V >&5") 2>&5
6220   ac_status=$?
6221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222   (exit $ac_status); }
6223
6224 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6225 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6226 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6227   echo $ECHO_N "(cached) $ECHO_C" >&6
6228 else
6229   cat >conftest.$ac_ext <<_ACEOF
6230 /* confdefs.h.  */
6231 _ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h.  */
6235
6236 int
6237 main ()
6238 {
6239 #ifndef __GNUC__
6240        choke me
6241 #endif
6242
6243   ;
6244   return 0;
6245 }
6246 _ACEOF
6247 rm -f conftest.$ac_objext
6248 if { (ac_try="$ac_compile"
6249 case "(($ac_try" in
6250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6251   *) ac_try_echo=$ac_try;;
6252 esac
6253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6254   (eval "$ac_compile") 2>conftest.er1
6255   ac_status=$?
6256   grep -v '^ *+' conftest.er1 >conftest.err
6257   rm -f conftest.er1
6258   cat conftest.err >&5
6259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260   (exit $ac_status); } &&
6261          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6262   { (case "(($ac_try" in
6263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6264   *) ac_try_echo=$ac_try;;
6265 esac
6266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6267   (eval "$ac_try") 2>&5
6268   ac_status=$?
6269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270   (exit $ac_status); }; } &&
6271          { ac_try='test -s conftest.$ac_objext'
6272   { (case "(($ac_try" in
6273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6274   *) ac_try_echo=$ac_try;;
6275 esac
6276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6277   (eval "$ac_try") 2>&5
6278   ac_status=$?
6279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280   (exit $ac_status); }; }; then
6281   ac_compiler_gnu=yes
6282 else
6283   echo "$as_me: failed program was:" >&5
6284 sed 's/^/| /' conftest.$ac_ext >&5
6285
6286         ac_compiler_gnu=no
6287 fi
6288
6289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6290 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6291
6292 fi
6293 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6294 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6295 GXX=`test $ac_compiler_gnu = yes && echo yes`
6296 ac_test_CXXFLAGS=${CXXFLAGS+set}
6297 ac_save_CXXFLAGS=$CXXFLAGS
6298 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6299 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6300 if test "${ac_cv_prog_cxx_g+set}" = set; then
6301   echo $ECHO_N "(cached) $ECHO_C" >&6
6302 else
6303   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6304    ac_cxx_werror_flag=yes
6305    ac_cv_prog_cxx_g=no
6306    CXXFLAGS="-g"
6307    cat >conftest.$ac_ext <<_ACEOF
6308 /* confdefs.h.  */
6309 _ACEOF
6310 cat confdefs.h >>conftest.$ac_ext
6311 cat >>conftest.$ac_ext <<_ACEOF
6312 /* end confdefs.h.  */
6313
6314 int
6315 main ()
6316 {
6317
6318   ;
6319   return 0;
6320 }
6321 _ACEOF
6322 rm -f conftest.$ac_objext
6323 if { (ac_try="$ac_compile"
6324 case "(($ac_try" in
6325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6326   *) ac_try_echo=$ac_try;;
6327 esac
6328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6329   (eval "$ac_compile") 2>conftest.er1
6330   ac_status=$?
6331   grep -v '^ *+' conftest.er1 >conftest.err
6332   rm -f conftest.er1
6333   cat conftest.err >&5
6334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335   (exit $ac_status); } &&
6336          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6337   { (case "(($ac_try" in
6338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6339   *) ac_try_echo=$ac_try;;
6340 esac
6341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6342   (eval "$ac_try") 2>&5
6343   ac_status=$?
6344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345   (exit $ac_status); }; } &&
6346          { ac_try='test -s conftest.$ac_objext'
6347   { (case "(($ac_try" in
6348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6349   *) ac_try_echo=$ac_try;;
6350 esac
6351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6352   (eval "$ac_try") 2>&5
6353   ac_status=$?
6354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355   (exit $ac_status); }; }; then
6356   ac_cv_prog_cxx_g=yes
6357 else
6358   echo "$as_me: failed program was:" >&5
6359 sed 's/^/| /' conftest.$ac_ext >&5
6360
6361         CXXFLAGS=""
6362       cat >conftest.$ac_ext <<_ACEOF
6363 /* confdefs.h.  */
6364 _ACEOF
6365 cat confdefs.h >>conftest.$ac_ext
6366 cat >>conftest.$ac_ext <<_ACEOF
6367 /* end confdefs.h.  */
6368
6369 int
6370 main ()
6371 {
6372
6373   ;
6374   return 0;
6375 }
6376 _ACEOF
6377 rm -f conftest.$ac_objext
6378 if { (ac_try="$ac_compile"
6379 case "(($ac_try" in
6380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6381   *) ac_try_echo=$ac_try;;
6382 esac
6383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6384   (eval "$ac_compile") 2>conftest.er1
6385   ac_status=$?
6386   grep -v '^ *+' conftest.er1 >conftest.err
6387   rm -f conftest.er1
6388   cat conftest.err >&5
6389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390   (exit $ac_status); } &&
6391          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6392   { (case "(($ac_try" in
6393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6394   *) ac_try_echo=$ac_try;;
6395 esac
6396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6397   (eval "$ac_try") 2>&5
6398   ac_status=$?
6399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400   (exit $ac_status); }; } &&
6401          { ac_try='test -s conftest.$ac_objext'
6402   { (case "(($ac_try" in
6403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6404   *) ac_try_echo=$ac_try;;
6405 esac
6406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6407   (eval "$ac_try") 2>&5
6408   ac_status=$?
6409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410   (exit $ac_status); }; }; then
6411   :
6412 else
6413   echo "$as_me: failed program was:" >&5
6414 sed 's/^/| /' conftest.$ac_ext >&5
6415
6416         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6417          CXXFLAGS="-g"
6418          cat >conftest.$ac_ext <<_ACEOF
6419 /* confdefs.h.  */
6420 _ACEOF
6421 cat confdefs.h >>conftest.$ac_ext
6422 cat >>conftest.$ac_ext <<_ACEOF
6423 /* end confdefs.h.  */
6424
6425 int
6426 main ()
6427 {
6428
6429   ;
6430   return 0;
6431 }
6432 _ACEOF
6433 rm -f conftest.$ac_objext
6434 if { (ac_try="$ac_compile"
6435 case "(($ac_try" in
6436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6437   *) ac_try_echo=$ac_try;;
6438 esac
6439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6440   (eval "$ac_compile") 2>conftest.er1
6441   ac_status=$?
6442   grep -v '^ *+' conftest.er1 >conftest.err
6443   rm -f conftest.er1
6444   cat conftest.err >&5
6445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446   (exit $ac_status); } &&
6447          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6448   { (case "(($ac_try" in
6449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6450   *) ac_try_echo=$ac_try;;
6451 esac
6452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6453   (eval "$ac_try") 2>&5
6454   ac_status=$?
6455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456   (exit $ac_status); }; } &&
6457          { ac_try='test -s conftest.$ac_objext'
6458   { (case "(($ac_try" in
6459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6460   *) ac_try_echo=$ac_try;;
6461 esac
6462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6463   (eval "$ac_try") 2>&5
6464   ac_status=$?
6465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466   (exit $ac_status); }; }; then
6467   ac_cv_prog_cxx_g=yes
6468 else
6469   echo "$as_me: failed program was:" >&5
6470 sed 's/^/| /' conftest.$ac_ext >&5
6471
6472
6473 fi
6474
6475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6476 fi
6477
6478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6479 fi
6480
6481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6482    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6483 fi
6484 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6485 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6486 if test "$ac_test_CXXFLAGS" = set; then
6487   CXXFLAGS=$ac_save_CXXFLAGS
6488 elif test $ac_cv_prog_cxx_g = yes; then
6489   if test "$GXX" = yes; then
6490     CXXFLAGS="-g -O2"
6491   else
6492     CXXFLAGS="-g"
6493   fi
6494 else
6495   if test "$GXX" = yes; then
6496     CXXFLAGS="-O2"
6497   else
6498     CXXFLAGS=
6499   fi
6500 fi
6501 ac_ext=c
6502 ac_cpp='$CPP $CPPFLAGS'
6503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6506
6507
6508 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6509 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6510 if test "${lt_cv_path_NM+set}" = set; then
6511   echo $ECHO_N "(cached) $ECHO_C" >&6
6512 else
6513   if test -n "$NM"; then
6514   # Let the user override the test.
6515   lt_cv_path_NM="$NM"
6516 else
6517   lt_nm_to_check="${ac_tool_prefix}nm"
6518   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6519     lt_nm_to_check="$lt_nm_to_check nm"
6520   fi
6521   for lt_tmp_nm in $lt_nm_to_check; do
6522     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6523     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6524       IFS="$lt_save_ifs"
6525       test -z "$ac_dir" && ac_dir=.
6526       tmp_nm="$ac_dir/$lt_tmp_nm"
6527       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6528         # Check to see if the nm accepts a BSD-compat flag.
6529         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6530         #   nm: unknown option "B" ignored
6531         # Tru64's nm complains that /dev/null is an invalid object file
6532         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6533         */dev/null* | *'Invalid file or object type'*)
6534           lt_cv_path_NM="$tmp_nm -B"
6535           break
6536           ;;
6537         *)
6538           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6539           */dev/null*)
6540             lt_cv_path_NM="$tmp_nm -p"
6541             break
6542             ;;
6543           *)
6544             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6545             continue # so that we can try to find one that supports BSD flags
6546             ;;
6547           esac
6548           ;;
6549         esac
6550       fi
6551     done
6552     IFS="$lt_save_ifs"
6553   done
6554   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6555 fi
6556 fi
6557 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6558 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6559 NM="$lt_cv_path_NM"
6560
6561
6562
6563 { echo "$as_me:$LINENO: checking for GNU make" >&5
6564 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6565 if test "${llvm_cv_gnu_make_command+set}" = set; then
6566   echo $ECHO_N "(cached) $ECHO_C" >&6
6567 else
6568   llvm_cv_gnu_make_command=''
6569  for a in "$MAKE" make gmake gnumake ; do
6570   if test -z "$a" ; then continue ; fi ;
6571   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6572   then
6573    llvm_cv_gnu_make_command=$a ;
6574    break;
6575   fi
6576  done
6577 fi
6578 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6579 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6580  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6581    ifGNUmake='' ;
6582  else
6583    ifGNUmake='#' ;
6584    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6585 echo "${ECHO_T}\"Not found\"" >&6; };
6586  fi
6587
6588
6589 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6590 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6591 LN_S=$as_ln_s
6592 if test "$LN_S" = "ln -s"; then
6593   { echo "$as_me:$LINENO: result: yes" >&5
6594 echo "${ECHO_T}yes" >&6; }
6595 else
6596   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6597 echo "${ECHO_T}no, using $LN_S" >&6; }
6598 fi
6599
6600 # Extract the first word of "cmp", so it can be a program name with args.
6601 set dummy cmp; ac_word=$2
6602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6604 if test "${ac_cv_path_CMP+set}" = set; then
6605   echo $ECHO_N "(cached) $ECHO_C" >&6
6606 else
6607   case $CMP in
6608   [\\/]* | ?:[\\/]*)
6609   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6610   ;;
6611   *)
6612   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613 for as_dir in $PATH
6614 do
6615   IFS=$as_save_IFS
6616   test -z "$as_dir" && as_dir=.
6617   for ac_exec_ext in '' $ac_executable_extensions; do
6618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6619     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6621     break 2
6622   fi
6623 done
6624 done
6625 IFS=$as_save_IFS
6626
6627   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6628   ;;
6629 esac
6630 fi
6631 CMP=$ac_cv_path_CMP
6632 if test -n "$CMP"; then
6633   { echo "$as_me:$LINENO: result: $CMP" >&5
6634 echo "${ECHO_T}$CMP" >&6; }
6635 else
6636   { echo "$as_me:$LINENO: result: no" >&5
6637 echo "${ECHO_T}no" >&6; }
6638 fi
6639
6640
6641 # Extract the first word of "cp", so it can be a program name with args.
6642 set dummy cp; ac_word=$2
6643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6645 if test "${ac_cv_path_CP+set}" = set; then
6646   echo $ECHO_N "(cached) $ECHO_C" >&6
6647 else
6648   case $CP in
6649   [\\/]* | ?:[\\/]*)
6650   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6651   ;;
6652   *)
6653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654 for as_dir in $PATH
6655 do
6656   IFS=$as_save_IFS
6657   test -z "$as_dir" && as_dir=.
6658   for ac_exec_ext in '' $ac_executable_extensions; do
6659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6660     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6662     break 2
6663   fi
6664 done
6665 done
6666 IFS=$as_save_IFS
6667
6668   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6669   ;;
6670 esac
6671 fi
6672 CP=$ac_cv_path_CP
6673 if test -n "$CP"; then
6674   { echo "$as_me:$LINENO: result: $CP" >&5
6675 echo "${ECHO_T}$CP" >&6; }
6676 else
6677   { echo "$as_me:$LINENO: result: no" >&5
6678 echo "${ECHO_T}no" >&6; }
6679 fi
6680
6681
6682 # Extract the first word of "date", so it can be a program name with args.
6683 set dummy date; ac_word=$2
6684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6686 if test "${ac_cv_path_DATE+set}" = set; then
6687   echo $ECHO_N "(cached) $ECHO_C" >&6
6688 else
6689   case $DATE in
6690   [\\/]* | ?:[\\/]*)
6691   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6692   ;;
6693   *)
6694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695 for as_dir in $PATH
6696 do
6697   IFS=$as_save_IFS
6698   test -z "$as_dir" && as_dir=.
6699   for ac_exec_ext in '' $ac_executable_extensions; do
6700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6701     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6703     break 2
6704   fi
6705 done
6706 done
6707 IFS=$as_save_IFS
6708
6709   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6710   ;;
6711 esac
6712 fi
6713 DATE=$ac_cv_path_DATE
6714 if test -n "$DATE"; then
6715   { echo "$as_me:$LINENO: result: $DATE" >&5
6716 echo "${ECHO_T}$DATE" >&6; }
6717 else
6718   { echo "$as_me:$LINENO: result: no" >&5
6719 echo "${ECHO_T}no" >&6; }
6720 fi
6721
6722
6723 # Extract the first word of "find", so it can be a program name with args.
6724 set dummy find; ac_word=$2
6725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6727 if test "${ac_cv_path_FIND+set}" = set; then
6728   echo $ECHO_N "(cached) $ECHO_C" >&6
6729 else
6730   case $FIND in
6731   [\\/]* | ?:[\\/]*)
6732   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6733   ;;
6734   *)
6735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736 for as_dir in $PATH
6737 do
6738   IFS=$as_save_IFS
6739   test -z "$as_dir" && as_dir=.
6740   for ac_exec_ext in '' $ac_executable_extensions; do
6741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6742     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6743     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6744     break 2
6745   fi
6746 done
6747 done
6748 IFS=$as_save_IFS
6749
6750   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6751   ;;
6752 esac
6753 fi
6754 FIND=$ac_cv_path_FIND
6755 if test -n "$FIND"; then
6756   { echo "$as_me:$LINENO: result: $FIND" >&5
6757 echo "${ECHO_T}$FIND" >&6; }
6758 else
6759   { echo "$as_me:$LINENO: result: no" >&5
6760 echo "${ECHO_T}no" >&6; }
6761 fi
6762
6763
6764 # Extract the first word of "grep", so it can be a program name with args.
6765 set dummy grep; ac_word=$2
6766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6768 if test "${ac_cv_path_GREP+set}" = set; then
6769   echo $ECHO_N "(cached) $ECHO_C" >&6
6770 else
6771   case $GREP in
6772   [\\/]* | ?:[\\/]*)
6773   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6774   ;;
6775   *)
6776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777 for as_dir in $PATH
6778 do
6779   IFS=$as_save_IFS
6780   test -z "$as_dir" && as_dir=.
6781   for ac_exec_ext in '' $ac_executable_extensions; do
6782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6783     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6785     break 2
6786   fi
6787 done
6788 done
6789 IFS=$as_save_IFS
6790
6791   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6792   ;;
6793 esac
6794 fi
6795 GREP=$ac_cv_path_GREP
6796 if test -n "$GREP"; then
6797   { echo "$as_me:$LINENO: result: $GREP" >&5
6798 echo "${ECHO_T}$GREP" >&6; }
6799 else
6800   { echo "$as_me:$LINENO: result: no" >&5
6801 echo "${ECHO_T}no" >&6; }
6802 fi
6803
6804
6805 # Extract the first word of "mkdir", so it can be a program name with args.
6806 set dummy mkdir; ac_word=$2
6807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6809 if test "${ac_cv_path_MKDIR+set}" = set; then
6810   echo $ECHO_N "(cached) $ECHO_C" >&6
6811 else
6812   case $MKDIR in
6813   [\\/]* | ?:[\\/]*)
6814   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6815   ;;
6816   *)
6817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 for as_dir in $PATH
6819 do
6820   IFS=$as_save_IFS
6821   test -z "$as_dir" && as_dir=.
6822   for ac_exec_ext in '' $ac_executable_extensions; do
6823   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6824     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6826     break 2
6827   fi
6828 done
6829 done
6830 IFS=$as_save_IFS
6831
6832   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6833   ;;
6834 esac
6835 fi
6836 MKDIR=$ac_cv_path_MKDIR
6837 if test -n "$MKDIR"; then
6838   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6839 echo "${ECHO_T}$MKDIR" >&6; }
6840 else
6841   { echo "$as_me:$LINENO: result: no" >&5
6842 echo "${ECHO_T}no" >&6; }
6843 fi
6844
6845
6846 # Extract the first word of "mv", so it can be a program name with args.
6847 set dummy mv; ac_word=$2
6848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6850 if test "${ac_cv_path_MV+set}" = set; then
6851   echo $ECHO_N "(cached) $ECHO_C" >&6
6852 else
6853   case $MV in
6854   [\\/]* | ?:[\\/]*)
6855   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6856   ;;
6857   *)
6858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859 for as_dir in $PATH
6860 do
6861   IFS=$as_save_IFS
6862   test -z "$as_dir" && as_dir=.
6863   for ac_exec_ext in '' $ac_executable_extensions; do
6864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6865     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6867     break 2
6868   fi
6869 done
6870 done
6871 IFS=$as_save_IFS
6872
6873   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6874   ;;
6875 esac
6876 fi
6877 MV=$ac_cv_path_MV
6878 if test -n "$MV"; then
6879   { echo "$as_me:$LINENO: result: $MV" >&5
6880 echo "${ECHO_T}$MV" >&6; }
6881 else
6882   { echo "$as_me:$LINENO: result: no" >&5
6883 echo "${ECHO_T}no" >&6; }
6884 fi
6885
6886
6887 if test -n "$ac_tool_prefix"; then
6888   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6889 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6892 if test "${ac_cv_prog_RANLIB+set}" = set; then
6893   echo $ECHO_N "(cached) $ECHO_C" >&6
6894 else
6895   if test -n "$RANLIB"; then
6896   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6897 else
6898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899 for as_dir in $PATH
6900 do
6901   IFS=$as_save_IFS
6902   test -z "$as_dir" && as_dir=.
6903   for ac_exec_ext in '' $ac_executable_extensions; do
6904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6905     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6907     break 2
6908   fi
6909 done
6910 done
6911 IFS=$as_save_IFS
6912
6913 fi
6914 fi
6915 RANLIB=$ac_cv_prog_RANLIB
6916 if test -n "$RANLIB"; then
6917   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6918 echo "${ECHO_T}$RANLIB" >&6; }
6919 else
6920   { echo "$as_me:$LINENO: result: no" >&5
6921 echo "${ECHO_T}no" >&6; }
6922 fi
6923
6924
6925 fi
6926 if test -z "$ac_cv_prog_RANLIB"; then
6927   ac_ct_RANLIB=$RANLIB
6928   # Extract the first word of "ranlib", so it can be a program name with args.
6929 set dummy ranlib; ac_word=$2
6930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6932 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6933   echo $ECHO_N "(cached) $ECHO_C" >&6
6934 else
6935   if test -n "$ac_ct_RANLIB"; then
6936   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6937 else
6938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 for as_dir in $PATH
6940 do
6941   IFS=$as_save_IFS
6942   test -z "$as_dir" && as_dir=.
6943   for ac_exec_ext in '' $ac_executable_extensions; do
6944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6945     ac_cv_prog_ac_ct_RANLIB="ranlib"
6946     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6947     break 2
6948   fi
6949 done
6950 done
6951 IFS=$as_save_IFS
6952
6953 fi
6954 fi
6955 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6956 if test -n "$ac_ct_RANLIB"; then
6957   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6958 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6959 else
6960   { echo "$as_me:$LINENO: result: no" >&5
6961 echo "${ECHO_T}no" >&6; }
6962 fi
6963
6964   if test "x$ac_ct_RANLIB" = x; then
6965     RANLIB=":"
6966   else
6967     case $cross_compiling:$ac_tool_warned in
6968 yes:)
6969 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6970 whose name does not start with the host triplet.  If you think this
6971 configuration is useful to you, please write to autoconf@gnu.org." >&5
6972 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6973 whose name does not start with the host triplet.  If you think this
6974 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6975 ac_tool_warned=yes ;;
6976 esac
6977     RANLIB=$ac_ct_RANLIB
6978   fi
6979 else
6980   RANLIB="$ac_cv_prog_RANLIB"
6981 fi
6982
6983 if test -n "$ac_tool_prefix"; then
6984   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6985 set dummy ${ac_tool_prefix}ar; ac_word=$2
6986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6988 if test "${ac_cv_prog_AR+set}" = set; then
6989   echo $ECHO_N "(cached) $ECHO_C" >&6
6990 else
6991   if test -n "$AR"; then
6992   ac_cv_prog_AR="$AR" # Let the user override the test.
6993 else
6994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995 for as_dir in $PATH
6996 do
6997   IFS=$as_save_IFS
6998   test -z "$as_dir" && as_dir=.
6999   for ac_exec_ext in '' $ac_executable_extensions; do
7000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7001     ac_cv_prog_AR="${ac_tool_prefix}ar"
7002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7003     break 2
7004   fi
7005 done
7006 done
7007 IFS=$as_save_IFS
7008
7009 fi
7010 fi
7011 AR=$ac_cv_prog_AR
7012 if test -n "$AR"; then
7013   { echo "$as_me:$LINENO: result: $AR" >&5
7014 echo "${ECHO_T}$AR" >&6; }
7015 else
7016   { echo "$as_me:$LINENO: result: no" >&5
7017 echo "${ECHO_T}no" >&6; }
7018 fi
7019
7020
7021 fi
7022 if test -z "$ac_cv_prog_AR"; then
7023   ac_ct_AR=$AR
7024   # Extract the first word of "ar", so it can be a program name with args.
7025 set dummy ar; ac_word=$2
7026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7028 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7029   echo $ECHO_N "(cached) $ECHO_C" >&6
7030 else
7031   if test -n "$ac_ct_AR"; then
7032   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7033 else
7034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035 for as_dir in $PATH
7036 do
7037   IFS=$as_save_IFS
7038   test -z "$as_dir" && as_dir=.
7039   for ac_exec_ext in '' $ac_executable_extensions; do
7040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7041     ac_cv_prog_ac_ct_AR="ar"
7042     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7043     break 2
7044   fi
7045 done
7046 done
7047 IFS=$as_save_IFS
7048
7049 fi
7050 fi
7051 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7052 if test -n "$ac_ct_AR"; then
7053   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7054 echo "${ECHO_T}$ac_ct_AR" >&6; }
7055 else
7056   { echo "$as_me:$LINENO: result: no" >&5
7057 echo "${ECHO_T}no" >&6; }
7058 fi
7059
7060   if test "x$ac_ct_AR" = x; then
7061     AR="false"
7062   else
7063     case $cross_compiling:$ac_tool_warned in
7064 yes:)
7065 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7066 whose name does not start with the host triplet.  If you think this
7067 configuration is useful to you, please write to autoconf@gnu.org." >&5
7068 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7069 whose name does not start with the host triplet.  If you think this
7070 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7071 ac_tool_warned=yes ;;
7072 esac
7073     AR=$ac_ct_AR
7074   fi
7075 else
7076   AR="$ac_cv_prog_AR"
7077 fi
7078
7079 # Extract the first word of "rm", so it can be a program name with args.
7080 set dummy rm; ac_word=$2
7081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7083 if test "${ac_cv_path_RM+set}" = set; then
7084   echo $ECHO_N "(cached) $ECHO_C" >&6
7085 else
7086   case $RM in
7087   [\\/]* | ?:[\\/]*)
7088   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7089   ;;
7090   *)
7091   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092 for as_dir in $PATH
7093 do
7094   IFS=$as_save_IFS
7095   test -z "$as_dir" && as_dir=.
7096   for ac_exec_ext in '' $ac_executable_extensions; do
7097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7098     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7099     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7100     break 2
7101   fi
7102 done
7103 done
7104 IFS=$as_save_IFS
7105
7106   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7107   ;;
7108 esac
7109 fi
7110 RM=$ac_cv_path_RM
7111 if test -n "$RM"; then
7112   { echo "$as_me:$LINENO: result: $RM" >&5
7113 echo "${ECHO_T}$RM" >&6; }
7114 else
7115   { echo "$as_me:$LINENO: result: no" >&5
7116 echo "${ECHO_T}no" >&6; }
7117 fi
7118
7119
7120 # Extract the first word of "sed", so it can be a program name with args.
7121 set dummy sed; ac_word=$2
7122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7124 if test "${ac_cv_path_SED+set}" = set; then
7125   echo $ECHO_N "(cached) $ECHO_C" >&6
7126 else
7127   case $SED in
7128   [\\/]* | ?:[\\/]*)
7129   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7130   ;;
7131   *)
7132   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 for as_dir in $PATH
7134 do
7135   IFS=$as_save_IFS
7136   test -z "$as_dir" && as_dir=.
7137   for ac_exec_ext in '' $ac_executable_extensions; do
7138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7139     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7140     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7141     break 2
7142   fi
7143 done
7144 done
7145 IFS=$as_save_IFS
7146
7147   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7148   ;;
7149 esac
7150 fi
7151 SED=$ac_cv_path_SED
7152 if test -n "$SED"; then
7153   { echo "$as_me:$LINENO: result: $SED" >&5
7154 echo "${ECHO_T}$SED" >&6; }
7155 else
7156   { echo "$as_me:$LINENO: result: no" >&5
7157 echo "${ECHO_T}no" >&6; }
7158 fi
7159
7160
7161 # Extract the first word of "tar", so it can be a program name with args.
7162 set dummy tar; ac_word=$2
7163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7165 if test "${ac_cv_path_TAR+set}" = set; then
7166   echo $ECHO_N "(cached) $ECHO_C" >&6
7167 else
7168   case $TAR in
7169   [\\/]* | ?:[\\/]*)
7170   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7171   ;;
7172   *)
7173   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174 for as_dir in $PATH
7175 do
7176   IFS=$as_save_IFS
7177   test -z "$as_dir" && as_dir=.
7178   for ac_exec_ext in '' $ac_executable_extensions; do
7179   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7180     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7181     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7182     break 2
7183   fi
7184 done
7185 done
7186 IFS=$as_save_IFS
7187
7188   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7189   ;;
7190 esac
7191 fi
7192 TAR=$ac_cv_path_TAR
7193 if test -n "$TAR"; then
7194   { echo "$as_me:$LINENO: result: $TAR" >&5
7195 echo "${ECHO_T}$TAR" >&6; }
7196 else
7197   { echo "$as_me:$LINENO: result: no" >&5
7198 echo "${ECHO_T}no" >&6; }
7199 fi
7200
7201
7202 # Extract the first word of "pwd", so it can be a program name with args.
7203 set dummy pwd; ac_word=$2
7204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206 if test "${ac_cv_path_BINPWD+set}" = set; then
7207   echo $ECHO_N "(cached) $ECHO_C" >&6
7208 else
7209   case $BINPWD in
7210   [\\/]* | ?:[\\/]*)
7211   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7212   ;;
7213   *)
7214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 for as_dir in $PATH
7216 do
7217   IFS=$as_save_IFS
7218   test -z "$as_dir" && as_dir=.
7219   for ac_exec_ext in '' $ac_executable_extensions; do
7220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7221     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7223     break 2
7224   fi
7225 done
7226 done
7227 IFS=$as_save_IFS
7228
7229   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7230   ;;
7231 esac
7232 fi
7233 BINPWD=$ac_cv_path_BINPWD
7234 if test -n "$BINPWD"; then
7235   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7236 echo "${ECHO_T}$BINPWD" >&6; }
7237 else
7238   { echo "$as_me:$LINENO: result: no" >&5
7239 echo "${ECHO_T}no" >&6; }
7240 fi
7241
7242
7243
7244 # Extract the first word of "Graphviz", so it can be a program name with args.
7245 set dummy Graphviz; ac_word=$2
7246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7248 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7249   echo $ECHO_N "(cached) $ECHO_C" >&6
7250 else
7251   case $GRAPHVIZ in
7252   [\\/]* | ?:[\\/]*)
7253   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7254   ;;
7255   *)
7256   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 for as_dir in $PATH
7258 do
7259   IFS=$as_save_IFS
7260   test -z "$as_dir" && as_dir=.
7261   for ac_exec_ext in '' $ac_executable_extensions; do
7262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7263     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7264     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7265     break 2
7266   fi
7267 done
7268 done
7269 IFS=$as_save_IFS
7270
7271   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7272   ;;
7273 esac
7274 fi
7275 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7276 if test -n "$GRAPHVIZ"; then
7277   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7278 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7279 else
7280   { echo "$as_me:$LINENO: result: no" >&5
7281 echo "${ECHO_T}no" >&6; }
7282 fi
7283
7284
7285 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7286
7287 cat >>confdefs.h <<\_ACEOF
7288 #define HAVE_GRAPHVIZ 1
7289 _ACEOF
7290
7291     if test "$llvm_cv_os_type" = "MingW" ; then
7292     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7293   fi
7294
7295 cat >>confdefs.h <<_ACEOF
7296 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7297 _ACEOF
7298
7299 fi
7300 # Extract the first word of "dot", so it can be a program name with args.
7301 set dummy dot; ac_word=$2
7302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7304 if test "${ac_cv_path_DOT+set}" = set; then
7305   echo $ECHO_N "(cached) $ECHO_C" >&6
7306 else
7307   case $DOT in
7308   [\\/]* | ?:[\\/]*)
7309   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7310   ;;
7311   *)
7312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313 for as_dir in $PATH
7314 do
7315   IFS=$as_save_IFS
7316   test -z "$as_dir" && as_dir=.
7317   for ac_exec_ext in '' $ac_executable_extensions; do
7318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7319     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7320     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7321     break 2
7322   fi
7323 done
7324 done
7325 IFS=$as_save_IFS
7326
7327   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7328   ;;
7329 esac
7330 fi
7331 DOT=$ac_cv_path_DOT
7332 if test -n "$DOT"; then
7333   { echo "$as_me:$LINENO: result: $DOT" >&5
7334 echo "${ECHO_T}$DOT" >&6; }
7335 else
7336   { echo "$as_me:$LINENO: result: no" >&5
7337 echo "${ECHO_T}no" >&6; }
7338 fi
7339
7340
7341 if test "$DOT" != "echo dot" ; then
7342
7343 cat >>confdefs.h <<\_ACEOF
7344 #define HAVE_DOT 1
7345 _ACEOF
7346
7347     if test "$llvm_cv_os_type" = "MingW" ; then
7348     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7349   fi
7350
7351 cat >>confdefs.h <<_ACEOF
7352 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7353 _ACEOF
7354
7355 fi
7356 # Extract the first word of "fdp", so it can be a program name with args.
7357 set dummy fdp; ac_word=$2
7358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7360 if test "${ac_cv_path_FDP+set}" = set; then
7361   echo $ECHO_N "(cached) $ECHO_C" >&6
7362 else
7363   case $FDP in
7364   [\\/]* | ?:[\\/]*)
7365   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7366   ;;
7367   *)
7368   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369 for as_dir in $PATH
7370 do
7371   IFS=$as_save_IFS
7372   test -z "$as_dir" && as_dir=.
7373   for ac_exec_ext in '' $ac_executable_extensions; do
7374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7375     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7377     break 2
7378   fi
7379 done
7380 done
7381 IFS=$as_save_IFS
7382
7383   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7384   ;;
7385 esac
7386 fi
7387 FDP=$ac_cv_path_FDP
7388 if test -n "$FDP"; then
7389   { echo "$as_me:$LINENO: result: $FDP" >&5
7390 echo "${ECHO_T}$FDP" >&6; }
7391 else
7392   { echo "$as_me:$LINENO: result: no" >&5
7393 echo "${ECHO_T}no" >&6; }
7394 fi
7395
7396
7397 if test "$FDP" != "echo fdp" ; then
7398
7399 cat >>confdefs.h <<\_ACEOF
7400 #define HAVE_FDP 1
7401 _ACEOF
7402
7403     if test "$llvm_cv_os_type" = "MingW" ; then
7404     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7405   fi
7406
7407 cat >>confdefs.h <<_ACEOF
7408 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7409 _ACEOF
7410
7411 fi
7412 # Extract the first word of "neato", so it can be a program name with args.
7413 set dummy neato; ac_word=$2
7414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7416 if test "${ac_cv_path_NEATO+set}" = set; then
7417   echo $ECHO_N "(cached) $ECHO_C" >&6
7418 else
7419   case $NEATO in
7420   [\\/]* | ?:[\\/]*)
7421   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7422   ;;
7423   *)
7424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425 for as_dir in $PATH
7426 do
7427   IFS=$as_save_IFS
7428   test -z "$as_dir" && as_dir=.
7429   for ac_exec_ext in '' $ac_executable_extensions; do
7430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7431     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7432     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7433     break 2
7434   fi
7435 done
7436 done
7437 IFS=$as_save_IFS
7438
7439   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7440   ;;
7441 esac
7442 fi
7443 NEATO=$ac_cv_path_NEATO
7444 if test -n "$NEATO"; then
7445   { echo "$as_me:$LINENO: result: $NEATO" >&5
7446 echo "${ECHO_T}$NEATO" >&6; }
7447 else
7448   { echo "$as_me:$LINENO: result: no" >&5
7449 echo "${ECHO_T}no" >&6; }
7450 fi
7451
7452
7453 if test "$NEATO" != "echo neato" ; then
7454
7455 cat >>confdefs.h <<\_ACEOF
7456 #define HAVE_NEATO 1
7457 _ACEOF
7458
7459     if test "$llvm_cv_os_type" = "MingW" ; then
7460     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7461   fi
7462
7463 cat >>confdefs.h <<_ACEOF
7464 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7465 _ACEOF
7466
7467 fi
7468 # Extract the first word of "twopi", so it can be a program name with args.
7469 set dummy twopi; ac_word=$2
7470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7472 if test "${ac_cv_path_TWOPI+set}" = set; then
7473   echo $ECHO_N "(cached) $ECHO_C" >&6
7474 else
7475   case $TWOPI in
7476   [\\/]* | ?:[\\/]*)
7477   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7478   ;;
7479   *)
7480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481 for as_dir in $PATH
7482 do
7483   IFS=$as_save_IFS
7484   test -z "$as_dir" && as_dir=.
7485   for ac_exec_ext in '' $ac_executable_extensions; do
7486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7487     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7489     break 2
7490   fi
7491 done
7492 done
7493 IFS=$as_save_IFS
7494
7495   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7496   ;;
7497 esac
7498 fi
7499 TWOPI=$ac_cv_path_TWOPI
7500 if test -n "$TWOPI"; then
7501   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7502 echo "${ECHO_T}$TWOPI" >&6; }
7503 else
7504   { echo "$as_me:$LINENO: result: no" >&5
7505 echo "${ECHO_T}no" >&6; }
7506 fi
7507
7508
7509 if test "$TWOPI" != "echo twopi" ; then
7510
7511 cat >>confdefs.h <<\_ACEOF
7512 #define HAVE_TWOPI 1
7513 _ACEOF
7514
7515     if test "$llvm_cv_os_type" = "MingW" ; then
7516     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7517   fi
7518
7519 cat >>confdefs.h <<_ACEOF
7520 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7521 _ACEOF
7522
7523 fi
7524 # Extract the first word of "circo", so it can be a program name with args.
7525 set dummy circo; ac_word=$2
7526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7528 if test "${ac_cv_path_CIRCO+set}" = set; then
7529   echo $ECHO_N "(cached) $ECHO_C" >&6
7530 else
7531   case $CIRCO in
7532   [\\/]* | ?:[\\/]*)
7533   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7534   ;;
7535   *)
7536   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537 for as_dir in $PATH
7538 do
7539   IFS=$as_save_IFS
7540   test -z "$as_dir" && as_dir=.
7541   for ac_exec_ext in '' $ac_executable_extensions; do
7542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7543     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7545     break 2
7546   fi
7547 done
7548 done
7549 IFS=$as_save_IFS
7550
7551   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7552   ;;
7553 esac
7554 fi
7555 CIRCO=$ac_cv_path_CIRCO
7556 if test -n "$CIRCO"; then
7557   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7558 echo "${ECHO_T}$CIRCO" >&6; }
7559 else
7560   { echo "$as_me:$LINENO: result: no" >&5
7561 echo "${ECHO_T}no" >&6; }
7562 fi
7563
7564
7565 if test "$CIRCO" != "echo circo" ; then
7566
7567 cat >>confdefs.h <<\_ACEOF
7568 #define HAVE_CIRCO 1
7569 _ACEOF
7570
7571     if test "$llvm_cv_os_type" = "MingW" ; then
7572     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7573   fi
7574
7575 cat >>confdefs.h <<_ACEOF
7576 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7577 _ACEOF
7578
7579 fi
7580 for ac_prog in gv gsview32
7581 do
7582   # Extract the first word of "$ac_prog", so it can be a program name with args.
7583 set dummy $ac_prog; ac_word=$2
7584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7586 if test "${ac_cv_path_GV+set}" = set; then
7587   echo $ECHO_N "(cached) $ECHO_C" >&6
7588 else
7589   case $GV in
7590   [\\/]* | ?:[\\/]*)
7591   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7592   ;;
7593   *)
7594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595 for as_dir in $PATH
7596 do
7597   IFS=$as_save_IFS
7598   test -z "$as_dir" && as_dir=.
7599   for ac_exec_ext in '' $ac_executable_extensions; do
7600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7601     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7603     break 2
7604   fi
7605 done
7606 done
7607 IFS=$as_save_IFS
7608
7609   ;;
7610 esac
7611 fi
7612 GV=$ac_cv_path_GV
7613 if test -n "$GV"; then
7614   { echo "$as_me:$LINENO: result: $GV" >&5
7615 echo "${ECHO_T}$GV" >&6; }
7616 else
7617   { echo "$as_me:$LINENO: result: no" >&5
7618 echo "${ECHO_T}no" >&6; }
7619 fi
7620
7621
7622   test -n "$GV" && break
7623 done
7624 test -n "$GV" || GV="echo gv"
7625
7626 if test "$GV" != "echo gv" ; then
7627
7628 cat >>confdefs.h <<\_ACEOF
7629 #define HAVE_GV 1
7630 _ACEOF
7631
7632     if test "$llvm_cv_os_type" = "MingW" ; then
7633     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7634   fi
7635
7636 cat >>confdefs.h <<_ACEOF
7637 #define LLVM_PATH_GV "$GV${EXEEXT}"
7638 _ACEOF
7639
7640 fi
7641 # Extract the first word of "dotty", so it can be a program name with args.
7642 set dummy dotty; ac_word=$2
7643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7645 if test "${ac_cv_path_DOTTY+set}" = set; then
7646   echo $ECHO_N "(cached) $ECHO_C" >&6
7647 else
7648   case $DOTTY in
7649   [\\/]* | ?:[\\/]*)
7650   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7651   ;;
7652   *)
7653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654 for as_dir in $PATH
7655 do
7656   IFS=$as_save_IFS
7657   test -z "$as_dir" && as_dir=.
7658   for ac_exec_ext in '' $ac_executable_extensions; do
7659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7660     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7662     break 2
7663   fi
7664 done
7665 done
7666 IFS=$as_save_IFS
7667
7668   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7669   ;;
7670 esac
7671 fi
7672 DOTTY=$ac_cv_path_DOTTY
7673 if test -n "$DOTTY"; then
7674   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7675 echo "${ECHO_T}$DOTTY" >&6; }
7676 else
7677   { echo "$as_me:$LINENO: result: no" >&5
7678 echo "${ECHO_T}no" >&6; }
7679 fi
7680
7681
7682 if test "$DOTTY" != "echo dotty" ; then
7683
7684 cat >>confdefs.h <<\_ACEOF
7685 #define HAVE_DOTTY 1
7686 _ACEOF
7687
7688     if test "$llvm_cv_os_type" = "MingW" ; then
7689     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7690   fi
7691
7692 cat >>confdefs.h <<_ACEOF
7693 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7694 _ACEOF
7695
7696 fi
7697
7698
7699 # Extract the first word of "perl", so it can be a program name with args.
7700 set dummy perl; ac_word=$2
7701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7703 if test "${ac_cv_path_PERL+set}" = set; then
7704   echo $ECHO_N "(cached) $ECHO_C" >&6
7705 else
7706   case $PERL in
7707   [\\/]* | ?:[\\/]*)
7708   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7709   ;;
7710   *)
7711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7712 for as_dir in $PATH
7713 do
7714   IFS=$as_save_IFS
7715   test -z "$as_dir" && as_dir=.
7716   for ac_exec_ext in '' $ac_executable_extensions; do
7717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7718     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7720     break 2
7721   fi
7722 done
7723 done
7724 IFS=$as_save_IFS
7725
7726   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7727   ;;
7728 esac
7729 fi
7730 PERL=$ac_cv_path_PERL
7731 if test -n "$PERL"; then
7732   { echo "$as_me:$LINENO: result: $PERL" >&5
7733 echo "${ECHO_T}$PERL" >&6; }
7734 else
7735   { echo "$as_me:$LINENO: result: no" >&5
7736 echo "${ECHO_T}no" >&6; }
7737 fi
7738
7739
7740 if test "$PERL" != "none"; then
7741   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7742 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7743   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7744     { echo "$as_me:$LINENO: result: yes" >&5
7745 echo "${ECHO_T}yes" >&6; }
7746   else
7747     PERL=none
7748     { echo "$as_me:$LINENO: result: not found" >&5
7749 echo "${ECHO_T}not found" >&6; }
7750   fi
7751 fi
7752
7753
7754 if test x"$PERL" = xnone; then
7755    HAVE_PERL=0
7756
7757    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7758 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7759    { (exit 1); exit 1; }; }
7760 else
7761    HAVE_PERL=1
7762
7763 fi
7764
7765 # Find a good install program.  We prefer a C program (faster),
7766 # so one script is as good as another.  But avoid the broken or
7767 # incompatible versions:
7768 # SysV /etc/install, /usr/sbin/install
7769 # SunOS /usr/etc/install
7770 # IRIX /sbin/install
7771 # AIX /bin/install
7772 # AmigaOS /C/install, which installs bootblocks on floppy discs
7773 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7774 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7775 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7776 # OS/2's system install, which has a completely different semantic
7777 # ./install, which can be erroneously created by make from ./install.sh.
7778 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7779 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7780 if test -z "$INSTALL"; then
7781 if test "${ac_cv_path_install+set}" = set; then
7782   echo $ECHO_N "(cached) $ECHO_C" >&6
7783 else
7784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785 for as_dir in $PATH
7786 do
7787   IFS=$as_save_IFS
7788   test -z "$as_dir" && as_dir=.
7789   # Account for people who put trailing slashes in PATH elements.
7790 case $as_dir/ in
7791   ./ | .// | /cC/* | \
7792   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7793   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7794   /usr/ucb/* ) ;;
7795   *)
7796     # OSF1 and SCO ODT 3.0 have their own names for install.
7797     # Don't use installbsd from OSF since it installs stuff as root
7798     # by default.
7799     for ac_prog in ginstall scoinst install; do
7800       for ac_exec_ext in '' $ac_executable_extensions; do
7801         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7802           if test $ac_prog = install &&
7803             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7804             # AIX install.  It has an incompatible calling convention.
7805             :
7806           elif test $ac_prog = install &&
7807             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7808             # program-specific install script used by HP pwplus--don't use.
7809             :
7810           else
7811             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7812             break 3
7813           fi
7814         fi
7815       done
7816     done
7817     ;;
7818 esac
7819 done
7820 IFS=$as_save_IFS
7821
7822
7823 fi
7824   if test "${ac_cv_path_install+set}" = set; then
7825     INSTALL=$ac_cv_path_install
7826   else
7827     # As a last resort, use the slow shell script.  Don't cache a
7828     # value for INSTALL within a source directory, because that will
7829     # break other packages using the cache if that directory is
7830     # removed, or if the value is a relative name.
7831     INSTALL=$ac_install_sh
7832   fi
7833 fi
7834 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7835 echo "${ECHO_T}$INSTALL" >&6; }
7836
7837 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7838 # It thinks the first close brace ends the variable substitution.
7839 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7840
7841 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7842
7843 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7844
7845
7846 # Extract the first word of "bzip2", so it can be a program name with args.
7847 set dummy bzip2; ac_word=$2
7848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7850 if test "${ac_cv_path_BZIP2+set}" = set; then
7851   echo $ECHO_N "(cached) $ECHO_C" >&6
7852 else
7853   case $BZIP2 in
7854   [\\/]* | ?:[\\/]*)
7855   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7856   ;;
7857   *)
7858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7859 for as_dir in $PATH
7860 do
7861   IFS=$as_save_IFS
7862   test -z "$as_dir" && as_dir=.
7863   for ac_exec_ext in '' $ac_executable_extensions; do
7864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7865     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7867     break 2
7868   fi
7869 done
7870 done
7871 IFS=$as_save_IFS
7872
7873   ;;
7874 esac
7875 fi
7876 BZIP2=$ac_cv_path_BZIP2
7877 if test -n "$BZIP2"; then
7878   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7879 echo "${ECHO_T}$BZIP2" >&6; }
7880 else
7881   { echo "$as_me:$LINENO: result: no" >&5
7882 echo "${ECHO_T}no" >&6; }
7883 fi
7884
7885
7886 # Extract the first word of "doxygen", so it can be a program name with args.
7887 set dummy doxygen; ac_word=$2
7888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7890 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7891   echo $ECHO_N "(cached) $ECHO_C" >&6
7892 else
7893   case $DOXYGEN in
7894   [\\/]* | ?:[\\/]*)
7895   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7896   ;;
7897   *)
7898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899 for as_dir in $PATH
7900 do
7901   IFS=$as_save_IFS
7902   test -z "$as_dir" && as_dir=.
7903   for ac_exec_ext in '' $ac_executable_extensions; do
7904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7905     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7907     break 2
7908   fi
7909 done
7910 done
7911 IFS=$as_save_IFS
7912
7913   ;;
7914 esac
7915 fi
7916 DOXYGEN=$ac_cv_path_DOXYGEN
7917 if test -n "$DOXYGEN"; then
7918   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7919 echo "${ECHO_T}$DOXYGEN" >&6; }
7920 else
7921   { echo "$as_me:$LINENO: result: no" >&5
7922 echo "${ECHO_T}no" >&6; }
7923 fi
7924
7925
7926 # Extract the first word of "groff", so it can be a program name with args.
7927 set dummy groff; ac_word=$2
7928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7930 if test "${ac_cv_path_GROFF+set}" = set; then
7931   echo $ECHO_N "(cached) $ECHO_C" >&6
7932 else
7933   case $GROFF in
7934   [\\/]* | ?:[\\/]*)
7935   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7936   ;;
7937   *)
7938   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7939 for as_dir in $PATH
7940 do
7941   IFS=$as_save_IFS
7942   test -z "$as_dir" && as_dir=.
7943   for ac_exec_ext in '' $ac_executable_extensions; do
7944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7945     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7946     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7947     break 2
7948   fi
7949 done
7950 done
7951 IFS=$as_save_IFS
7952
7953   ;;
7954 esac
7955 fi
7956 GROFF=$ac_cv_path_GROFF
7957 if test -n "$GROFF"; then
7958   { echo "$as_me:$LINENO: result: $GROFF" >&5
7959 echo "${ECHO_T}$GROFF" >&6; }
7960 else
7961   { echo "$as_me:$LINENO: result: no" >&5
7962 echo "${ECHO_T}no" >&6; }
7963 fi
7964
7965
7966 # Extract the first word of "gzip", so it can be a program name with args.
7967 set dummy gzip; ac_word=$2
7968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7970 if test "${ac_cv_path_GZIP+set}" = set; then
7971   echo $ECHO_N "(cached) $ECHO_C" >&6
7972 else
7973   case $GZIP in
7974   [\\/]* | ?:[\\/]*)
7975   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7976   ;;
7977   *)
7978   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7979 for as_dir in $PATH
7980 do
7981   IFS=$as_save_IFS
7982   test -z "$as_dir" && as_dir=.
7983   for ac_exec_ext in '' $ac_executable_extensions; do
7984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7985     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7987     break 2
7988   fi
7989 done
7990 done
7991 IFS=$as_save_IFS
7992
7993   ;;
7994 esac
7995 fi
7996 GZIP=$ac_cv_path_GZIP
7997 if test -n "$GZIP"; then
7998   { echo "$as_me:$LINENO: result: $GZIP" >&5
7999 echo "${ECHO_T}$GZIP" >&6; }
8000 else
8001   { echo "$as_me:$LINENO: result: no" >&5
8002 echo "${ECHO_T}no" >&6; }
8003 fi
8004
8005
8006 # Extract the first word of "pod2html", so it can be a program name with args.
8007 set dummy pod2html; ac_word=$2
8008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8010 if test "${ac_cv_path_POD2HTML+set}" = set; then
8011   echo $ECHO_N "(cached) $ECHO_C" >&6
8012 else
8013   case $POD2HTML in
8014   [\\/]* | ?:[\\/]*)
8015   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8016   ;;
8017   *)
8018   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8019 for as_dir in $PATH
8020 do
8021   IFS=$as_save_IFS
8022   test -z "$as_dir" && as_dir=.
8023   for ac_exec_ext in '' $ac_executable_extensions; do
8024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8025     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8027     break 2
8028   fi
8029 done
8030 done
8031 IFS=$as_save_IFS
8032
8033   ;;
8034 esac
8035 fi
8036 POD2HTML=$ac_cv_path_POD2HTML
8037 if test -n "$POD2HTML"; then
8038   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8039 echo "${ECHO_T}$POD2HTML" >&6; }
8040 else
8041   { echo "$as_me:$LINENO: result: no" >&5
8042 echo "${ECHO_T}no" >&6; }
8043 fi
8044
8045
8046 # Extract the first word of "pod2man", so it can be a program name with args.
8047 set dummy pod2man; ac_word=$2
8048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8050 if test "${ac_cv_path_POD2MAN+set}" = set; then
8051   echo $ECHO_N "(cached) $ECHO_C" >&6
8052 else
8053   case $POD2MAN in
8054   [\\/]* | ?:[\\/]*)
8055   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8056   ;;
8057   *)
8058   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8059 for as_dir in $PATH
8060 do
8061   IFS=$as_save_IFS
8062   test -z "$as_dir" && as_dir=.
8063   for ac_exec_ext in '' $ac_executable_extensions; do
8064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8065     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8067     break 2
8068   fi
8069 done
8070 done
8071 IFS=$as_save_IFS
8072
8073   ;;
8074 esac
8075 fi
8076 POD2MAN=$ac_cv_path_POD2MAN
8077 if test -n "$POD2MAN"; then
8078   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8079 echo "${ECHO_T}$POD2MAN" >&6; }
8080 else
8081   { echo "$as_me:$LINENO: result: no" >&5
8082 echo "${ECHO_T}no" >&6; }
8083 fi
8084
8085
8086 # Extract the first word of "runtest", so it can be a program name with args.
8087 set dummy runtest; ac_word=$2
8088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8090 if test "${ac_cv_path_RUNTEST+set}" = set; then
8091   echo $ECHO_N "(cached) $ECHO_C" >&6
8092 else
8093   case $RUNTEST in
8094   [\\/]* | ?:[\\/]*)
8095   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8096   ;;
8097   *)
8098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099 for as_dir in $PATH
8100 do
8101   IFS=$as_save_IFS
8102   test -z "$as_dir" && as_dir=.
8103   for ac_exec_ext in '' $ac_executable_extensions; do
8104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8105     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8107     break 2
8108   fi
8109 done
8110 done
8111 IFS=$as_save_IFS
8112
8113   ;;
8114 esac
8115 fi
8116 RUNTEST=$ac_cv_path_RUNTEST
8117 if test -n "$RUNTEST"; then
8118   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8119 echo "${ECHO_T}$RUNTEST" >&6; }
8120 else
8121   { echo "$as_me:$LINENO: result: no" >&5
8122 echo "${ECHO_T}no" >&6; }
8123 fi
8124
8125
8126
8127 no_itcl=true
8128 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8129 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8130
8131 # Check whether --with-tclinclude was given.
8132 if test "${with_tclinclude+set}" = set; then
8133   withval=$with_tclinclude; with_tclinclude=${withval}
8134 else
8135   with_tclinclude=''
8136 fi
8137
8138 if test "${ac_cv_path_tclsh+set}" = set; then
8139   echo $ECHO_N "(cached) $ECHO_C" >&6
8140 else
8141
8142 if test x"${with_tclinclude}" != x ; then
8143   if test -f ${with_tclinclude}/tclsh ; then
8144     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8145   elif test -f ${with_tclinclude}/src/tclsh ; then
8146     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8147   else
8148     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8149 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8150    { (exit 1); exit 1; }; }
8151   fi
8152 fi
8153 fi
8154
8155
8156 if test x"${ac_cv_path_tclsh}" = x ; then
8157   { echo "$as_me:$LINENO: result: none" >&5
8158 echo "${ECHO_T}none" >&6; }
8159   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
8160 do
8161   # Extract the first word of "$ac_prog", so it can be a program name with args.
8162 set dummy $ac_prog; ac_word=$2
8163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8165 if test "${ac_cv_path_TCLSH+set}" = set; then
8166   echo $ECHO_N "(cached) $ECHO_C" >&6
8167 else
8168   case $TCLSH in
8169   [\\/]* | ?:[\\/]*)
8170   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8171   ;;
8172   *)
8173   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8174 for as_dir in $PATH
8175 do
8176   IFS=$as_save_IFS
8177   test -z "$as_dir" && as_dir=.
8178   for ac_exec_ext in '' $ac_executable_extensions; do
8179   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8180     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8181     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8182     break 2
8183   fi
8184 done
8185 done
8186 IFS=$as_save_IFS
8187
8188   ;;
8189 esac
8190 fi
8191 TCLSH=$ac_cv_path_TCLSH
8192 if test -n "$TCLSH"; then
8193   { echo "$as_me:$LINENO: result: $TCLSH" >&5
8194 echo "${ECHO_T}$TCLSH" >&6; }
8195 else
8196   { echo "$as_me:$LINENO: result: no" >&5
8197 echo "${ECHO_T}no" >&6; }
8198 fi
8199
8200
8201   test -n "$TCLSH" && break
8202 done
8203
8204   if test x"${TCLSH}" = x ; then
8205     ac_cv_path_tclsh='';
8206   else
8207     ac_cv_path_tclsh="${TCLSH}";
8208   fi
8209 else
8210   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8211 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8212   TCLSH="${ac_cv_path_tclsh}"
8213
8214 fi
8215
8216 # Extract the first word of "zip", so it can be a program name with args.
8217 set dummy zip; ac_word=$2
8218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8220 if test "${ac_cv_path_ZIP+set}" = set; then
8221   echo $ECHO_N "(cached) $ECHO_C" >&6
8222 else
8223   case $ZIP in
8224   [\\/]* | ?:[\\/]*)
8225   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8226   ;;
8227   *)
8228   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229 for as_dir in $PATH
8230 do
8231   IFS=$as_save_IFS
8232   test -z "$as_dir" && as_dir=.
8233   for ac_exec_ext in '' $ac_executable_extensions; do
8234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8235     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8237     break 2
8238   fi
8239 done
8240 done
8241 IFS=$as_save_IFS
8242
8243   ;;
8244 esac
8245 fi
8246 ZIP=$ac_cv_path_ZIP
8247 if test -n "$ZIP"; then
8248   { echo "$as_me:$LINENO: result: $ZIP" >&5
8249 echo "${ECHO_T}$ZIP" >&6; }
8250 else
8251   { echo "$as_me:$LINENO: result: no" >&5
8252 echo "${ECHO_T}no" >&6; }
8253 fi
8254
8255
8256 for ac_prog in ocamlc
8257 do
8258   # Extract the first word of "$ac_prog", so it can be a program name with args.
8259 set dummy $ac_prog; ac_word=$2
8260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8262 if test "${ac_cv_path_OCAMLC+set}" = set; then
8263   echo $ECHO_N "(cached) $ECHO_C" >&6
8264 else
8265   case $OCAMLC in
8266   [\\/]* | ?:[\\/]*)
8267   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8268   ;;
8269   *)
8270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271 for as_dir in $PATH
8272 do
8273   IFS=$as_save_IFS
8274   test -z "$as_dir" && as_dir=.
8275   for ac_exec_ext in '' $ac_executable_extensions; do
8276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8277     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8279     break 2
8280   fi
8281 done
8282 done
8283 IFS=$as_save_IFS
8284
8285   ;;
8286 esac
8287 fi
8288 OCAMLC=$ac_cv_path_OCAMLC
8289 if test -n "$OCAMLC"; then
8290   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8291 echo "${ECHO_T}$OCAMLC" >&6; }
8292 else
8293   { echo "$as_me:$LINENO: result: no" >&5
8294 echo "${ECHO_T}no" >&6; }
8295 fi
8296
8297
8298   test -n "$OCAMLC" && break
8299 done
8300
8301 for ac_prog in ocamlopt
8302 do
8303   # Extract the first word of "$ac_prog", so it can be a program name with args.
8304 set dummy $ac_prog; ac_word=$2
8305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8307 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8308   echo $ECHO_N "(cached) $ECHO_C" >&6
8309 else
8310   case $OCAMLOPT in
8311   [\\/]* | ?:[\\/]*)
8312   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8313   ;;
8314   *)
8315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8316 for as_dir in $PATH
8317 do
8318   IFS=$as_save_IFS
8319   test -z "$as_dir" && as_dir=.
8320   for ac_exec_ext in '' $ac_executable_extensions; do
8321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8322     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8323     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8324     break 2
8325   fi
8326 done
8327 done
8328 IFS=$as_save_IFS
8329
8330   ;;
8331 esac
8332 fi
8333 OCAMLOPT=$ac_cv_path_OCAMLOPT
8334 if test -n "$OCAMLOPT"; then
8335   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8336 echo "${ECHO_T}$OCAMLOPT" >&6; }
8337 else
8338   { echo "$as_me:$LINENO: result: no" >&5
8339 echo "${ECHO_T}no" >&6; }
8340 fi
8341
8342
8343   test -n "$OCAMLOPT" && break
8344 done
8345
8346 for ac_prog in ocamldep
8347 do
8348   # Extract the first word of "$ac_prog", so it can be a program name with args.
8349 set dummy $ac_prog; ac_word=$2
8350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8352 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8353   echo $ECHO_N "(cached) $ECHO_C" >&6
8354 else
8355   case $OCAMLDEP in
8356   [\\/]* | ?:[\\/]*)
8357   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8358   ;;
8359   *)
8360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8361 for as_dir in $PATH
8362 do
8363   IFS=$as_save_IFS
8364   test -z "$as_dir" && as_dir=.
8365   for ac_exec_ext in '' $ac_executable_extensions; do
8366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8367     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8368     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8369     break 2
8370   fi
8371 done
8372 done
8373 IFS=$as_save_IFS
8374
8375   ;;
8376 esac
8377 fi
8378 OCAMLDEP=$ac_cv_path_OCAMLDEP
8379 if test -n "$OCAMLDEP"; then
8380   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8381 echo "${ECHO_T}$OCAMLDEP" >&6; }
8382 else
8383   { echo "$as_me:$LINENO: result: no" >&5
8384 echo "${ECHO_T}no" >&6; }
8385 fi
8386
8387
8388   test -n "$OCAMLDEP" && break
8389 done
8390
8391 for ac_prog in ocamldoc
8392 do
8393   # Extract the first word of "$ac_prog", so it can be a program name with args.
8394 set dummy $ac_prog; ac_word=$2
8395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8397 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8398   echo $ECHO_N "(cached) $ECHO_C" >&6
8399 else
8400   case $OCAMLDOC in
8401   [\\/]* | ?:[\\/]*)
8402   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8403   ;;
8404   *)
8405   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8406 for as_dir in $PATH
8407 do
8408   IFS=$as_save_IFS
8409   test -z "$as_dir" && as_dir=.
8410   for ac_exec_ext in '' $ac_executable_extensions; do
8411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8412     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8414     break 2
8415   fi
8416 done
8417 done
8418 IFS=$as_save_IFS
8419
8420   ;;
8421 esac
8422 fi
8423 OCAMLDOC=$ac_cv_path_OCAMLDOC
8424 if test -n "$OCAMLDOC"; then
8425   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8426 echo "${ECHO_T}$OCAMLDOC" >&6; }
8427 else
8428   { echo "$as_me:$LINENO: result: no" >&5
8429 echo "${ECHO_T}no" >&6; }
8430 fi
8431
8432
8433   test -n "$OCAMLDOC" && break
8434 done
8435
8436 for ac_prog in gas as
8437 do
8438   # Extract the first word of "$ac_prog", so it can be a program name with args.
8439 set dummy $ac_prog; ac_word=$2
8440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8442 if test "${ac_cv_path_GAS+set}" = set; then
8443   echo $ECHO_N "(cached) $ECHO_C" >&6
8444 else
8445   case $GAS in
8446   [\\/]* | ?:[\\/]*)
8447   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8448   ;;
8449   *)
8450   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8451 for as_dir in $PATH
8452 do
8453   IFS=$as_save_IFS
8454   test -z "$as_dir" && as_dir=.
8455   for ac_exec_ext in '' $ac_executable_extensions; do
8456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8457     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8458     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8459     break 2
8460   fi
8461 done
8462 done
8463 IFS=$as_save_IFS
8464
8465   ;;
8466 esac
8467 fi
8468 GAS=$ac_cv_path_GAS
8469 if test -n "$GAS"; then
8470   { echo "$as_me:$LINENO: result: $GAS" >&5
8471 echo "${ECHO_T}$GAS" >&6; }
8472 else
8473   { echo "$as_me:$LINENO: result: no" >&5
8474 echo "${ECHO_T}no" >&6; }
8475 fi
8476
8477
8478   test -n "$GAS" && break
8479 done
8480
8481
8482 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8483 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8484 if test "${llvm_cv_link_use_r+set}" = set; then
8485   echo $ECHO_N "(cached) $ECHO_C" >&6
8486 else
8487    ac_ext=c
8488 ac_cpp='$CPP $CPPFLAGS'
8489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8492
8493   oldcflags="$CFLAGS"
8494   CFLAGS="$CFLAGS -Wl,-R."
8495   cat >conftest.$ac_ext <<_ACEOF
8496 /* confdefs.h.  */
8497 _ACEOF
8498 cat confdefs.h >>conftest.$ac_ext
8499 cat >>conftest.$ac_ext <<_ACEOF
8500 /* end confdefs.h.  */
8501
8502 int
8503 main ()
8504 {
8505 int main() { return 0; }
8506   ;
8507   return 0;
8508 }
8509 _ACEOF
8510 rm -f conftest.$ac_objext conftest$ac_exeext
8511 if { (ac_try="$ac_link"
8512 case "(($ac_try" in
8513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8514   *) ac_try_echo=$ac_try;;
8515 esac
8516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8517   (eval "$ac_link") 2>conftest.er1
8518   ac_status=$?
8519   grep -v '^ *+' conftest.er1 >conftest.err
8520   rm -f conftest.er1
8521   cat conftest.err >&5
8522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523   (exit $ac_status); } &&
8524          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8525   { (case "(($ac_try" in
8526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8527   *) ac_try_echo=$ac_try;;
8528 esac
8529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8530   (eval "$ac_try") 2>&5
8531   ac_status=$?
8532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533   (exit $ac_status); }; } &&
8534          { ac_try='test -s conftest$ac_exeext'
8535   { (case "(($ac_try" in
8536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8537   *) ac_try_echo=$ac_try;;
8538 esac
8539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8540   (eval "$ac_try") 2>&5
8541   ac_status=$?
8542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543   (exit $ac_status); }; }; then
8544   llvm_cv_link_use_r=yes
8545 else
8546   echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.$ac_ext >&5
8548
8549         llvm_cv_link_use_r=no
8550 fi
8551
8552 rm -f core conftest.err conftest.$ac_objext \
8553       conftest$ac_exeext conftest.$ac_ext
8554   CFLAGS="$oldcflags"
8555   ac_ext=c
8556 ac_cpp='$CPP $CPPFLAGS'
8557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8560
8561
8562 fi
8563 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8564 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8565 if test "$llvm_cv_link_use_r" = yes ; then
8566
8567 cat >>confdefs.h <<\_ACEOF
8568 #define HAVE_LINK_R 1
8569 _ACEOF
8570
8571   fi
8572
8573
8574 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8575 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8576 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8577   echo $ECHO_N "(cached) $ECHO_C" >&6
8578 else
8579    ac_ext=c
8580 ac_cpp='$CPP $CPPFLAGS'
8581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8584
8585   oldcflags="$CFLAGS"
8586   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8587   cat >conftest.$ac_ext <<_ACEOF
8588 /* confdefs.h.  */
8589 _ACEOF
8590 cat confdefs.h >>conftest.$ac_ext
8591 cat >>conftest.$ac_ext <<_ACEOF
8592 /* end confdefs.h.  */
8593
8594 int
8595 main ()
8596 {
8597 int main() { return 0; }
8598   ;
8599   return 0;
8600 }
8601 _ACEOF
8602 rm -f conftest.$ac_objext conftest$ac_exeext
8603 if { (ac_try="$ac_link"
8604 case "(($ac_try" in
8605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8606   *) ac_try_echo=$ac_try;;
8607 esac
8608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8609   (eval "$ac_link") 2>conftest.er1
8610   ac_status=$?
8611   grep -v '^ *+' conftest.er1 >conftest.err
8612   rm -f conftest.er1
8613   cat conftest.err >&5
8614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615   (exit $ac_status); } &&
8616          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8617   { (case "(($ac_try" in
8618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8619   *) ac_try_echo=$ac_try;;
8620 esac
8621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8622   (eval "$ac_try") 2>&5
8623   ac_status=$?
8624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625   (exit $ac_status); }; } &&
8626          { ac_try='test -s conftest$ac_exeext'
8627   { (case "(($ac_try" in
8628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8629   *) ac_try_echo=$ac_try;;
8630 esac
8631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8632   (eval "$ac_try") 2>&5
8633   ac_status=$?
8634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635   (exit $ac_status); }; }; then
8636   llvm_cv_link_use_export_dynamic=yes
8637 else
8638   echo "$as_me: failed program was:" >&5
8639 sed 's/^/| /' conftest.$ac_ext >&5
8640
8641         llvm_cv_link_use_export_dynamic=no
8642 fi
8643
8644 rm -f core conftest.err conftest.$ac_objext \
8645       conftest$ac_exeext conftest.$ac_ext
8646   CFLAGS="$oldcflags"
8647   ac_ext=c
8648 ac_cpp='$CPP $CPPFLAGS'
8649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8652
8653
8654 fi
8655 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8656 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8657 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8658
8659 cat >>confdefs.h <<\_ACEOF
8660 #define HAVE_LINK_EXPORT_DYNAMIC 1
8661 _ACEOF
8662
8663   fi
8664
8665
8666
8667
8668 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8669 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8670 if test "${ac_cv_c_const+set}" = set; then
8671   echo $ECHO_N "(cached) $ECHO_C" >&6
8672 else
8673   cat >conftest.$ac_ext <<_ACEOF
8674 /* confdefs.h.  */
8675 _ACEOF
8676 cat confdefs.h >>conftest.$ac_ext
8677 cat >>conftest.$ac_ext <<_ACEOF
8678 /* end confdefs.h.  */
8679
8680 int
8681 main ()
8682 {
8683 /* FIXME: Include the comments suggested by Paul. */
8684 #ifndef __cplusplus
8685   /* Ultrix mips cc rejects this.  */
8686   typedef int charset[2];
8687   const charset x;
8688   /* SunOS 4.1.1 cc rejects this.  */
8689   char const *const *ccp;
8690   char **p;
8691   /* NEC SVR4.0.2 mips cc rejects this.  */
8692   struct point {int x, y;};
8693   static struct point const zero = {0,0};
8694   /* AIX XL C 1.02.0.0 rejects this.
8695      It does not let you subtract one const X* pointer from another in
8696      an arm of an if-expression whose if-part is not a constant
8697      expression */
8698   const char *g = "string";
8699   ccp = &g + (g ? g-g : 0);
8700   /* HPUX 7.0 cc rejects these. */
8701   ++ccp;
8702   p = (char**) ccp;
8703   ccp = (char const *const *) p;
8704   { /* SCO 3.2v4 cc rejects this.  */
8705     char *t;
8706     char const *s = 0 ? (char *) 0 : (char const *) 0;
8707
8708     *t++ = 0;
8709     if (s) return 0;
8710   }
8711   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8712     int x[] = {25, 17};
8713     const int *foo = &x[0];
8714     ++foo;
8715   }
8716   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8717     typedef const int *iptr;
8718     iptr p = 0;
8719     ++p;
8720   }
8721   { /* AIX XL C 1.02.0.0 rejects this saying
8722        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8723     struct s { int j; const int *ap[3]; };
8724     struct s *b; b->j = 5;
8725   }
8726   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8727     const int foo = 10;
8728     if (!foo) return 0;
8729   }
8730   return !x[0] && !zero.x;
8731 #endif
8732
8733   ;
8734   return 0;
8735 }
8736 _ACEOF
8737 rm -f conftest.$ac_objext
8738 if { (ac_try="$ac_compile"
8739 case "(($ac_try" in
8740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8741   *) ac_try_echo=$ac_try;;
8742 esac
8743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8744   (eval "$ac_compile") 2>conftest.er1
8745   ac_status=$?
8746   grep -v '^ *+' conftest.er1 >conftest.err
8747   rm -f conftest.er1
8748   cat conftest.err >&5
8749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750   (exit $ac_status); } &&
8751          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8752   { (case "(($ac_try" in
8753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8754   *) ac_try_echo=$ac_try;;
8755 esac
8756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8757   (eval "$ac_try") 2>&5
8758   ac_status=$?
8759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760   (exit $ac_status); }; } &&
8761          { ac_try='test -s conftest.$ac_objext'
8762   { (case "(($ac_try" in
8763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8764   *) ac_try_echo=$ac_try;;
8765 esac
8766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8767   (eval "$ac_try") 2>&5
8768   ac_status=$?
8769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770   (exit $ac_status); }; }; then
8771   ac_cv_c_const=yes
8772 else
8773   echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8775
8776         ac_cv_c_const=no
8777 fi
8778
8779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8780 fi
8781 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8782 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8783 if test $ac_cv_c_const = no; then
8784
8785 cat >>confdefs.h <<\_ACEOF
8786 #define const
8787 _ACEOF
8788
8789 fi
8790
8791
8792
8793
8794
8795
8796 ac_header_dirent=no
8797 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8798   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8799 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8800 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8802   echo $ECHO_N "(cached) $ECHO_C" >&6
8803 else
8804   cat >conftest.$ac_ext <<_ACEOF
8805 /* confdefs.h.  */
8806 _ACEOF
8807 cat confdefs.h >>conftest.$ac_ext
8808 cat >>conftest.$ac_ext <<_ACEOF
8809 /* end confdefs.h.  */
8810 #include <sys/types.h>
8811 #include <$ac_hdr>
8812
8813 int
8814 main ()
8815 {
8816 if ((DIR *) 0)
8817 return 0;
8818   ;
8819   return 0;
8820 }
8821 _ACEOF
8822 rm -f conftest.$ac_objext
8823 if { (ac_try="$ac_compile"
8824 case "(($ac_try" in
8825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8826   *) ac_try_echo=$ac_try;;
8827 esac
8828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8829   (eval "$ac_compile") 2>conftest.er1
8830   ac_status=$?
8831   grep -v '^ *+' conftest.er1 >conftest.err
8832   rm -f conftest.er1
8833   cat conftest.err >&5
8834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835   (exit $ac_status); } &&
8836          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8837   { (case "(($ac_try" in
8838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8839   *) ac_try_echo=$ac_try;;
8840 esac
8841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8842   (eval "$ac_try") 2>&5
8843   ac_status=$?
8844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845   (exit $ac_status); }; } &&
8846          { ac_try='test -s conftest.$ac_objext'
8847   { (case "(($ac_try" in
8848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849   *) ac_try_echo=$ac_try;;
8850 esac
8851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8852   (eval "$ac_try") 2>&5
8853   ac_status=$?
8854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855   (exit $ac_status); }; }; then
8856   eval "$as_ac_Header=yes"
8857 else
8858   echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8860
8861         eval "$as_ac_Header=no"
8862 fi
8863
8864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8865 fi
8866 ac_res=`eval echo '${'$as_ac_Header'}'`
8867                { echo "$as_me:$LINENO: result: $ac_res" >&5
8868 echo "${ECHO_T}$ac_res" >&6; }
8869 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8870   cat >>confdefs.h <<_ACEOF
8871 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8872 _ACEOF
8873
8874 ac_header_dirent=$ac_hdr; break
8875 fi
8876
8877 done
8878 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8879 if test $ac_header_dirent = dirent.h; then
8880   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8881 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8882 if test "${ac_cv_search_opendir+set}" = set; then
8883   echo $ECHO_N "(cached) $ECHO_C" >&6
8884 else
8885   ac_func_search_save_LIBS=$LIBS
8886 cat >conftest.$ac_ext <<_ACEOF
8887 /* confdefs.h.  */
8888 _ACEOF
8889 cat confdefs.h >>conftest.$ac_ext
8890 cat >>conftest.$ac_ext <<_ACEOF
8891 /* end confdefs.h.  */
8892
8893 /* Override any GCC internal prototype to avoid an error.
8894    Use char because int might match the return type of a GCC
8895    builtin and then its argument prototype would still apply.  */
8896 #ifdef __cplusplus
8897 extern "C"
8898 #endif
8899 char opendir ();
8900 int
8901 main ()
8902 {
8903 return opendir ();
8904   ;
8905   return 0;
8906 }
8907 _ACEOF
8908 for ac_lib in '' dir; do
8909   if test -z "$ac_lib"; then
8910     ac_res="none required"
8911   else
8912     ac_res=-l$ac_lib
8913     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8914   fi
8915   rm -f conftest.$ac_objext conftest$ac_exeext
8916 if { (ac_try="$ac_link"
8917 case "(($ac_try" in
8918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8919   *) ac_try_echo=$ac_try;;
8920 esac
8921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8922   (eval "$ac_link") 2>conftest.er1
8923   ac_status=$?
8924   grep -v '^ *+' conftest.er1 >conftest.err
8925   rm -f conftest.er1
8926   cat conftest.err >&5
8927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928   (exit $ac_status); } &&
8929          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8930   { (case "(($ac_try" in
8931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8932   *) ac_try_echo=$ac_try;;
8933 esac
8934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8935   (eval "$ac_try") 2>&5
8936   ac_status=$?
8937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938   (exit $ac_status); }; } &&
8939          { ac_try='test -s conftest$ac_exeext'
8940   { (case "(($ac_try" in
8941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8942   *) ac_try_echo=$ac_try;;
8943 esac
8944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8945   (eval "$ac_try") 2>&5
8946   ac_status=$?
8947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948   (exit $ac_status); }; }; then
8949   ac_cv_search_opendir=$ac_res
8950 else
8951   echo "$as_me: failed program was:" >&5
8952 sed 's/^/| /' conftest.$ac_ext >&5
8953
8954
8955 fi
8956
8957 rm -f core conftest.err conftest.$ac_objext \
8958       conftest$ac_exeext
8959   if test "${ac_cv_search_opendir+set}" = set; then
8960   break
8961 fi
8962 done
8963 if test "${ac_cv_search_opendir+set}" = set; then
8964   :
8965 else
8966   ac_cv_search_opendir=no
8967 fi
8968 rm conftest.$ac_ext
8969 LIBS=$ac_func_search_save_LIBS
8970 fi
8971 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8972 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8973 ac_res=$ac_cv_search_opendir
8974 if test "$ac_res" != no; then
8975   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8976
8977 fi
8978
8979 else
8980   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8981 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8982 if test "${ac_cv_search_opendir+set}" = set; then
8983   echo $ECHO_N "(cached) $ECHO_C" >&6
8984 else
8985   ac_func_search_save_LIBS=$LIBS
8986 cat >conftest.$ac_ext <<_ACEOF
8987 /* confdefs.h.  */
8988 _ACEOF
8989 cat confdefs.h >>conftest.$ac_ext
8990 cat >>conftest.$ac_ext <<_ACEOF
8991 /* end confdefs.h.  */
8992
8993 /* Override any GCC internal prototype to avoid an error.
8994    Use char because int might match the return type of a GCC
8995    builtin and then its argument prototype would still apply.  */
8996 #ifdef __cplusplus
8997 extern "C"
8998 #endif
8999 char opendir ();
9000 int
9001 main ()
9002 {
9003 return opendir ();
9004   ;
9005   return 0;
9006 }
9007 _ACEOF
9008 for ac_lib in '' x; do
9009   if test -z "$ac_lib"; then
9010     ac_res="none required"
9011   else
9012     ac_res=-l$ac_lib
9013     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9014   fi
9015   rm -f conftest.$ac_objext conftest$ac_exeext
9016 if { (ac_try="$ac_link"
9017 case "(($ac_try" in
9018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9019   *) ac_try_echo=$ac_try;;
9020 esac
9021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9022   (eval "$ac_link") 2>conftest.er1
9023   ac_status=$?
9024   grep -v '^ *+' conftest.er1 >conftest.err
9025   rm -f conftest.er1
9026   cat conftest.err >&5
9027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028   (exit $ac_status); } &&
9029          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9030   { (case "(($ac_try" in
9031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9032   *) ac_try_echo=$ac_try;;
9033 esac
9034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9035   (eval "$ac_try") 2>&5
9036   ac_status=$?
9037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038   (exit $ac_status); }; } &&
9039          { ac_try='test -s conftest$ac_exeext'
9040   { (case "(($ac_try" in
9041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9042   *) ac_try_echo=$ac_try;;
9043 esac
9044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9045   (eval "$ac_try") 2>&5
9046   ac_status=$?
9047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048   (exit $ac_status); }; }; then
9049   ac_cv_search_opendir=$ac_res
9050 else
9051   echo "$as_me: failed program was:" >&5
9052 sed 's/^/| /' conftest.$ac_ext >&5
9053
9054
9055 fi
9056
9057 rm -f core conftest.err conftest.$ac_objext \
9058       conftest$ac_exeext
9059   if test "${ac_cv_search_opendir+set}" = set; then
9060   break
9061 fi
9062 done
9063 if test "${ac_cv_search_opendir+set}" = set; then
9064   :
9065 else
9066   ac_cv_search_opendir=no
9067 fi
9068 rm conftest.$ac_ext
9069 LIBS=$ac_func_search_save_LIBS
9070 fi
9071 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9072 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9073 ac_res=$ac_cv_search_opendir
9074 if test "$ac_res" != no; then
9075   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9076
9077 fi
9078
9079 fi
9080
9081
9082 for ac_header in dlfcn.h
9083 do
9084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9086   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9089   echo $ECHO_N "(cached) $ECHO_C" >&6
9090 fi
9091 ac_res=`eval echo '${'$as_ac_Header'}'`
9092                { echo "$as_me:$LINENO: result: $ac_res" >&5
9093 echo "${ECHO_T}$ac_res" >&6; }
9094 else
9095   # Is the header compilable?
9096 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9097 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9098 cat >conftest.$ac_ext <<_ACEOF
9099 /* confdefs.h.  */
9100 _ACEOF
9101 cat confdefs.h >>conftest.$ac_ext
9102 cat >>conftest.$ac_ext <<_ACEOF
9103 /* end confdefs.h.  */
9104 $ac_includes_default
9105 #include <$ac_header>
9106 _ACEOF
9107 rm -f conftest.$ac_objext
9108 if { (ac_try="$ac_compile"
9109 case "(($ac_try" in
9110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9111   *) ac_try_echo=$ac_try;;
9112 esac
9113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9114   (eval "$ac_compile") 2>conftest.er1
9115   ac_status=$?
9116   grep -v '^ *+' conftest.er1 >conftest.err
9117   rm -f conftest.er1
9118   cat conftest.err >&5
9119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120   (exit $ac_status); } &&
9121          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9122   { (case "(($ac_try" in
9123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9124   *) ac_try_echo=$ac_try;;
9125 esac
9126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9127   (eval "$ac_try") 2>&5
9128   ac_status=$?
9129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130   (exit $ac_status); }; } &&
9131          { ac_try='test -s conftest.$ac_objext'
9132   { (case "(($ac_try" in
9133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9134   *) ac_try_echo=$ac_try;;
9135 esac
9136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9137   (eval "$ac_try") 2>&5
9138   ac_status=$?
9139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140   (exit $ac_status); }; }; then
9141   ac_header_compiler=yes
9142 else
9143   echo "$as_me: failed program was:" >&5
9144 sed 's/^/| /' conftest.$ac_ext >&5
9145
9146         ac_header_compiler=no
9147 fi
9148
9149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9151 echo "${ECHO_T}$ac_header_compiler" >&6; }
9152
9153 # Is the header present?
9154 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9156 cat >conftest.$ac_ext <<_ACEOF
9157 /* confdefs.h.  */
9158 _ACEOF
9159 cat confdefs.h >>conftest.$ac_ext
9160 cat >>conftest.$ac_ext <<_ACEOF
9161 /* end confdefs.h.  */
9162 #include <$ac_header>
9163 _ACEOF
9164 if { (ac_try="$ac_cpp conftest.$ac_ext"
9165 case "(($ac_try" in
9166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9167   *) ac_try_echo=$ac_try;;
9168 esac
9169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9170   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9171   ac_status=$?
9172   grep -v '^ *+' conftest.er1 >conftest.err
9173   rm -f conftest.er1
9174   cat conftest.err >&5
9175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176   (exit $ac_status); } >/dev/null; then
9177   if test -s conftest.err; then
9178     ac_cpp_err=$ac_c_preproc_warn_flag
9179     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9180   else
9181     ac_cpp_err=
9182   fi
9183 else
9184   ac_cpp_err=yes
9185 fi
9186 if test -z "$ac_cpp_err"; then
9187   ac_header_preproc=yes
9188 else
9189   echo "$as_me: failed program was:" >&5
9190 sed 's/^/| /' conftest.$ac_ext >&5
9191
9192   ac_header_preproc=no
9193 fi
9194
9195 rm -f conftest.err conftest.$ac_ext
9196 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9197 echo "${ECHO_T}$ac_header_preproc" >&6; }
9198
9199 # So?  What about this header?
9200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9201   yes:no: )
9202     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9204     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9205 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9206     ac_header_preproc=yes
9207     ;;
9208   no:yes:* )
9209     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9210 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9211     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9212 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9213     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9214 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9215     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9216 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9217     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9218 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9219     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9220 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9221     ( cat <<\_ASBOX
9222 ## ----------------------------------- ##
9223 ## Report this to llvmbugs@cs.uiuc.edu ##
9224 ## ----------------------------------- ##
9225 _ASBOX
9226      ) | sed "s/^/$as_me: WARNING:     /" >&2
9227     ;;
9228 esac
9229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9232   echo $ECHO_N "(cached) $ECHO_C" >&6
9233 else
9234   eval "$as_ac_Header=\$ac_header_preproc"
9235 fi
9236 ac_res=`eval echo '${'$as_ac_Header'}'`
9237                { echo "$as_me:$LINENO: result: $ac_res" >&5
9238 echo "${ECHO_T}$ac_res" >&6; }
9239
9240 fi
9241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9242   cat >>confdefs.h <<_ACEOF
9243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9244 _ACEOF
9245
9246 fi
9247
9248 done
9249
9250 # Check whether --enable-ltdl-install was given.
9251 if test "${enable_ltdl_install+set}" = set; then
9252   enableval=$enable_ltdl_install;
9253 fi
9254
9255
9256
9257
9258 if test x"${enable_ltdl_install-no}" != xno; then
9259   INSTALL_LTDL_TRUE=
9260   INSTALL_LTDL_FALSE='#'
9261 else
9262   INSTALL_LTDL_TRUE='#'
9263   INSTALL_LTDL_FALSE=
9264 fi
9265
9266
9267
9268 if test x"${enable_ltdl_convenience-no}" != xno; then
9269   CONVENIENCE_LTDL_TRUE=
9270   CONVENIENCE_LTDL_FALSE='#'
9271 else
9272   CONVENIENCE_LTDL_TRUE='#'
9273   CONVENIENCE_LTDL_FALSE=
9274 fi
9275
9276
9277 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9278 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9279 library_names_spec=
9280 libname_spec='lib$name'
9281 soname_spec=
9282 shrext_cmds=".so"
9283 postinstall_cmds=
9284 postuninstall_cmds=
9285 finish_cmds=
9286 finish_eval=
9287 shlibpath_var=
9288 shlibpath_overrides_runpath=unknown
9289 version_type=none
9290 dynamic_linker="$host_os ld.so"
9291 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9292 if test "$GCC" = yes; then
9293   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9294   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9295     # if the path contains ";" then we assume it to be the separator
9296     # otherwise default to the standard path separator (i.e. ":") - it is
9297     # assumed that no part of a normal pathname contains ";" but that should
9298     # okay in the real world where ";" in dirpaths is itself problematic.
9299     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9300   else
9301     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9302   fi
9303 else
9304   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9305 fi
9306 need_lib_prefix=unknown
9307 hardcode_into_libs=no
9308
9309 # when you set need_version to no, make sure it does not cause -set_version
9310 # flags to be left without arguments
9311 need_version=unknown
9312
9313 case $host_os in
9314 aix3*)
9315   version_type=linux
9316   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9317   shlibpath_var=LIBPATH
9318
9319   # AIX 3 has no versioning support, so we append a major version to the name.
9320   soname_spec='${libname}${release}${shared_ext}$major'
9321   ;;
9322
9323 aix4* | aix5*)
9324   version_type=linux
9325   need_lib_prefix=no
9326   need_version=no
9327   hardcode_into_libs=yes
9328   if test "$host_cpu" = ia64; then
9329     # AIX 5 supports IA64
9330     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9331     shlibpath_var=LD_LIBRARY_PATH
9332   else
9333     # With GCC up to 2.95.x, collect2 would create an import file
9334     # for dependence libraries.  The import file would start with
9335     # the line `#! .'.  This would cause the generated library to
9336     # depend on `.', always an invalid library.  This was fixed in
9337     # development snapshots of GCC prior to 3.0.
9338     case $host_os in
9339       aix4 | aix4.[01] | aix4.[01].*)
9340       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9341            echo ' yes '
9342            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9343         :
9344       else
9345         can_build_shared=no
9346       fi
9347       ;;
9348     esac
9349     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9350     # soname into executable. Probably we can add versioning support to
9351     # collect2, so additional links can be useful in future.
9352     if test "$aix_use_runtimelinking" = yes; then
9353       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9354       # instead of lib<name>.a to let people know that these are not
9355       # typical AIX shared libraries.
9356       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9357     else
9358       # We preserve .a as extension for shared libraries through AIX4.2
9359       # and later when we are not doing run time linking.
9360       library_names_spec='${libname}${release}.a $libname.a'
9361       soname_spec='${libname}${release}${shared_ext}$major'
9362     fi
9363     shlibpath_var=LIBPATH
9364   fi
9365   ;;
9366
9367 amigaos*)
9368   library_names_spec='$libname.ixlibrary $libname.a'
9369   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9370   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'
9371   ;;
9372
9373 beos*)
9374   library_names_spec='${libname}${shared_ext}'
9375   dynamic_linker="$host_os ld.so"
9376   shlibpath_var=LIBRARY_PATH
9377   ;;
9378
9379 bsdi[45]*)
9380   version_type=linux
9381   need_version=no
9382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9383   soname_spec='${libname}${release}${shared_ext}$major'
9384   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9385   shlibpath_var=LD_LIBRARY_PATH
9386   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9387   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9388   # the default ld.so.conf also contains /usr/contrib/lib and
9389   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9390   # libtool to hard-code these into programs
9391   ;;
9392
9393 cygwin* | mingw* | pw32*)
9394   version_type=windows
9395   shrext_cmds=".dll"
9396   need_version=no
9397   need_lib_prefix=no
9398
9399   case $GCC,$host_os in
9400   yes,cygwin* | yes,mingw* | yes,pw32*)
9401     library_names_spec='$libname.dll.a'
9402     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9403     postinstall_cmds='base_file=`basename \${file}`~
9404       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9405       dldir=$destdir/`dirname \$dlpath`~
9406       test -d \$dldir || mkdir -p \$dldir~
9407       $install_prog $dir/$dlname \$dldir/$dlname~
9408       chmod a+x \$dldir/$dlname'
9409     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9410       dlpath=$dir/\$dldll~
9411        $rm \$dlpath'
9412     shlibpath_overrides_runpath=yes
9413
9414     case $host_os in
9415     cygwin*)
9416       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9417       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9418       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9419       ;;
9420     mingw*)
9421       # MinGW DLLs use traditional 'lib' prefix
9422       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9423       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9424       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9425         # It is most probably a Windows format PATH printed by
9426         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9427         # path with ; separators, and with drive letters. We can handle the
9428         # drive letters (cygwin fileutils understands them), so leave them,
9429         # especially as we might pass files found there to a mingw objdump,
9430         # which wouldn't understand a cygwinified path. Ahh.
9431         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9432       else
9433         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9434       fi
9435       ;;
9436     pw32*)
9437       # pw32 DLLs use 'pw' prefix rather than 'lib'
9438       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9439       ;;
9440     esac
9441     ;;
9442
9443   *)
9444     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9445     ;;
9446   esac
9447   dynamic_linker='Win32 ld.exe'
9448   # FIXME: first we should search . and the directory the executable is in
9449   shlibpath_var=PATH
9450   ;;
9451
9452 darwin* | rhapsody*)
9453   dynamic_linker="$host_os dyld"
9454   version_type=darwin
9455   need_lib_prefix=no
9456   need_version=no
9457   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9458   soname_spec='${libname}${release}${major}$shared_ext'
9459   shlibpath_overrides_runpath=yes
9460   shlibpath_var=DYLD_LIBRARY_PATH
9461   shrext_cmds='.dylib'
9462   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9463   if test "$GCC" = yes; then
9464     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"`
9465   else
9466     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9467   fi
9468   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9469   ;;
9470
9471 dgux*)
9472   version_type=linux
9473   need_lib_prefix=no
9474   need_version=no
9475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9476   soname_spec='${libname}${release}${shared_ext}$major'
9477   shlibpath_var=LD_LIBRARY_PATH
9478   ;;
9479
9480 freebsd1*)
9481   dynamic_linker=no
9482   ;;
9483
9484 kfreebsd*-gnu)
9485   version_type=linux
9486   need_lib_prefix=no
9487   need_version=no
9488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9489   soname_spec='${libname}${release}${shared_ext}$major'
9490   shlibpath_var=LD_LIBRARY_PATH
9491   shlibpath_overrides_runpath=no
9492   hardcode_into_libs=yes
9493   dynamic_linker='GNU ld.so'
9494   ;;
9495
9496 freebsd* | dragonfly*)
9497   # DragonFly does not have aout.  When/if they implement a new
9498   # versioning mechanism, adjust this.
9499   if test -x /usr/bin/objformat; then
9500     objformat=`/usr/bin/objformat`
9501   else
9502     case $host_os in
9503     freebsd[123]*) objformat=aout ;;
9504     *) objformat=elf ;;
9505     esac
9506   fi
9507   version_type=freebsd-$objformat
9508   case $version_type in
9509     freebsd-elf*)
9510       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9511       need_version=no
9512       need_lib_prefix=no
9513       ;;
9514     freebsd-*)
9515       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9516       need_version=yes
9517       ;;
9518   esac
9519   shlibpath_var=LD_LIBRARY_PATH
9520   case $host_os in
9521   freebsd2*)
9522     shlibpath_overrides_runpath=yes
9523     ;;
9524   freebsd3.[01]* | freebsdelf3.[01]*)
9525     shlibpath_overrides_runpath=yes
9526     hardcode_into_libs=yes
9527     ;;
9528   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9529   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9530     shlibpath_overrides_runpath=no
9531     hardcode_into_libs=yes
9532     ;;
9533   freebsd*) # from 4.6 on
9534     shlibpath_overrides_runpath=yes
9535     hardcode_into_libs=yes
9536     ;;
9537   esac
9538   ;;
9539
9540 gnu*)
9541   version_type=linux
9542   need_lib_prefix=no
9543   need_version=no
9544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9545   soname_spec='${libname}${release}${shared_ext}$major'
9546   shlibpath_var=LD_LIBRARY_PATH
9547   hardcode_into_libs=yes
9548   ;;
9549
9550 hpux9* | hpux10* | hpux11*)
9551   # Give a soname corresponding to the major version so that dld.sl refuses to
9552   # link against other versions.
9553   version_type=sunos
9554   need_lib_prefix=no
9555   need_version=no
9556   case $host_cpu in
9557   ia64*)
9558     shrext_cmds='.so'
9559     hardcode_into_libs=yes
9560     dynamic_linker="$host_os dld.so"
9561     shlibpath_var=LD_LIBRARY_PATH
9562     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9563     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9564     soname_spec='${libname}${release}${shared_ext}$major'
9565     if test "X$HPUX_IA64_MODE" = X32; then
9566       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9567     else
9568       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9569     fi
9570     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9571     ;;
9572    hppa*64*)
9573      shrext_cmds='.sl'
9574      hardcode_into_libs=yes
9575      dynamic_linker="$host_os dld.sl"
9576      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9577      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9578      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9579      soname_spec='${libname}${release}${shared_ext}$major'
9580      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9581      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9582      ;;
9583    *)
9584     shrext_cmds='.sl'
9585     dynamic_linker="$host_os dld.sl"
9586     shlibpath_var=SHLIB_PATH
9587     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9588     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9589     soname_spec='${libname}${release}${shared_ext}$major'
9590     ;;
9591   esac
9592   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9593   postinstall_cmds='chmod 555 $lib'
9594   ;;
9595
9596 interix3*)
9597   version_type=linux
9598   need_lib_prefix=no
9599   need_version=no
9600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9601   soname_spec='${libname}${release}${shared_ext}$major'
9602   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9603   shlibpath_var=LD_LIBRARY_PATH
9604   shlibpath_overrides_runpath=no
9605   hardcode_into_libs=yes
9606   ;;
9607
9608 irix5* | irix6* | nonstopux*)
9609   case $host_os in
9610     nonstopux*) version_type=nonstopux ;;
9611     *)
9612         if test "$lt_cv_prog_gnu_ld" = yes; then
9613                 version_type=linux
9614         else
9615                 version_type=irix
9616         fi ;;
9617   esac
9618   need_lib_prefix=no
9619   need_version=no
9620   soname_spec='${libname}${release}${shared_ext}$major'
9621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9622   case $host_os in
9623   irix5* | nonstopux*)
9624     libsuff= shlibsuff=
9625     ;;
9626   *)
9627     case $LD in # libtool.m4 will add one of these switches to LD
9628     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9629       libsuff= shlibsuff= libmagic=32-bit;;
9630     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9631       libsuff=32 shlibsuff=N32 libmagic=N32;;
9632     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9633       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9634     *) libsuff= shlibsuff= libmagic=never-match;;
9635     esac
9636     ;;
9637   esac
9638   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9639   shlibpath_overrides_runpath=no
9640   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9641   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9642   hardcode_into_libs=yes
9643   ;;
9644
9645 # No shared lib support for Linux oldld, aout, or coff.
9646 linux*oldld* | linux*aout* | linux*coff*)
9647   dynamic_linker=no
9648   ;;
9649
9650 # This must be Linux ELF.
9651 linux*)
9652   version_type=linux
9653   need_lib_prefix=no
9654   need_version=no
9655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9656   soname_spec='${libname}${release}${shared_ext}$major'
9657   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9658   shlibpath_var=LD_LIBRARY_PATH
9659   shlibpath_overrides_runpath=no
9660   # This implies no fast_install, which is unacceptable.
9661   # Some rework will be needed to allow for fast_install
9662   # before this can be enabled.
9663   hardcode_into_libs=yes
9664
9665   # Append ld.so.conf contents to the search path
9666   if test -f /etc/ld.so.conf; then
9667     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' ' '`
9668     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9669   fi
9670
9671   # We used to test for /lib/ld.so.1 and disable shared libraries on
9672   # powerpc, because MkLinux only supported shared libraries with the
9673   # GNU dynamic linker.  Since this was broken with cross compilers,
9674   # most powerpc-linux boxes support dynamic linking these days and
9675   # people can always --disable-shared, the test was removed, and we
9676   # assume the GNU/Linux dynamic linker is in use.
9677   dynamic_linker='GNU/Linux ld.so'
9678   ;;
9679
9680 knetbsd*-gnu)
9681   version_type=linux
9682   need_lib_prefix=no
9683   need_version=no
9684   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9685   soname_spec='${libname}${release}${shared_ext}$major'
9686   shlibpath_var=LD_LIBRARY_PATH
9687   shlibpath_overrides_runpath=no
9688   hardcode_into_libs=yes
9689   dynamic_linker='GNU ld.so'
9690   ;;
9691
9692 netbsd*)
9693   version_type=sunos
9694   need_lib_prefix=no
9695   need_version=no
9696   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9697     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9698     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9699     dynamic_linker='NetBSD (a.out) ld.so'
9700   else
9701     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9702     soname_spec='${libname}${release}${shared_ext}$major'
9703     dynamic_linker='NetBSD ld.elf_so'
9704   fi
9705   shlibpath_var=LD_LIBRARY_PATH
9706   shlibpath_overrides_runpath=yes
9707   hardcode_into_libs=yes
9708   ;;
9709
9710 newsos6)
9711   version_type=linux
9712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9713   shlibpath_var=LD_LIBRARY_PATH
9714   shlibpath_overrides_runpath=yes
9715   ;;
9716
9717 nto-qnx*)
9718   version_type=linux
9719   need_lib_prefix=no
9720   need_version=no
9721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9722   soname_spec='${libname}${release}${shared_ext}$major'
9723   shlibpath_var=LD_LIBRARY_PATH
9724   shlibpath_overrides_runpath=yes
9725   ;;
9726
9727 openbsd*)
9728   version_type=sunos
9729   sys_lib_dlsearch_path_spec="/usr/lib"
9730   need_lib_prefix=no
9731   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9732   case $host_os in
9733     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9734     *)                         need_version=no  ;;
9735   esac
9736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9737   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9738   shlibpath_var=LD_LIBRARY_PATH
9739   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9740     case $host_os in
9741       openbsd2.[89] | openbsd2.[89].*)
9742         shlibpath_overrides_runpath=no
9743         ;;
9744       *)
9745         shlibpath_overrides_runpath=yes
9746         ;;
9747       esac
9748   else
9749     shlibpath_overrides_runpath=yes
9750   fi
9751   ;;
9752
9753 os2*)
9754   libname_spec='$name'
9755   shrext_cmds=".dll"
9756   need_lib_prefix=no
9757   library_names_spec='$libname${shared_ext} $libname.a'
9758   dynamic_linker='OS/2 ld.exe'
9759   shlibpath_var=LIBPATH
9760   ;;
9761
9762 osf3* | osf4* | osf5*)
9763   version_type=osf
9764   need_lib_prefix=no
9765   need_version=no
9766   soname_spec='${libname}${release}${shared_ext}$major'
9767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9768   shlibpath_var=LD_LIBRARY_PATH
9769   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9770   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9771   ;;
9772
9773 solaris*)
9774   version_type=linux
9775   need_lib_prefix=no
9776   need_version=no
9777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9778   soname_spec='${libname}${release}${shared_ext}$major'
9779   shlibpath_var=LD_LIBRARY_PATH
9780   shlibpath_overrides_runpath=yes
9781   hardcode_into_libs=yes
9782   # ldd complains unless libraries are executable
9783   postinstall_cmds='chmod +x $lib'
9784   ;;
9785
9786 sunos4*)
9787   version_type=sunos
9788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9789   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9790   shlibpath_var=LD_LIBRARY_PATH
9791   shlibpath_overrides_runpath=yes
9792   if test "$with_gnu_ld" = yes; then
9793     need_lib_prefix=no
9794   fi
9795   need_version=yes
9796   ;;
9797
9798 sysv4 | sysv4.3*)
9799   version_type=linux
9800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9801   soname_spec='${libname}${release}${shared_ext}$major'
9802   shlibpath_var=LD_LIBRARY_PATH
9803   case $host_vendor in
9804     sni)
9805       shlibpath_overrides_runpath=no
9806       need_lib_prefix=no
9807       export_dynamic_flag_spec='${wl}-Blargedynsym'
9808       runpath_var=LD_RUN_PATH
9809       ;;
9810     siemens)
9811       need_lib_prefix=no
9812       ;;
9813     motorola)
9814       need_lib_prefix=no
9815       need_version=no
9816       shlibpath_overrides_runpath=no
9817       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9818       ;;
9819   esac
9820   ;;
9821
9822 sysv4*MP*)
9823   if test -d /usr/nec ;then
9824     version_type=linux
9825     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9826     soname_spec='$libname${shared_ext}.$major'
9827     shlibpath_var=LD_LIBRARY_PATH
9828   fi
9829   ;;
9830
9831 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9832   version_type=freebsd-elf
9833   need_lib_prefix=no
9834   need_version=no
9835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9836   soname_spec='${libname}${release}${shared_ext}$major'
9837   shlibpath_var=LD_LIBRARY_PATH
9838   hardcode_into_libs=yes
9839   if test "$with_gnu_ld" = yes; then
9840     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9841     shlibpath_overrides_runpath=no
9842   else
9843     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9844     shlibpath_overrides_runpath=yes
9845     case $host_os in
9846       sco3.2v5*)
9847         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9848         ;;
9849     esac
9850   fi
9851   sys_lib_dlsearch_path_spec='/usr/lib'
9852   ;;
9853
9854 uts4*)
9855   version_type=linux
9856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9857   soname_spec='${libname}${release}${shared_ext}$major'
9858   shlibpath_var=LD_LIBRARY_PATH
9859   ;;
9860
9861 *)
9862   dynamic_linker=no
9863   ;;
9864 esac
9865 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9866 echo "${ECHO_T}$dynamic_linker" >&6; }
9867 test "$dynamic_linker" = no && can_build_shared=no
9868
9869 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9870 if test "$GCC" = yes; then
9871   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9872 fi
9873
9874
9875 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9876 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9877 if test "${libltdl_cv_shlibext+set}" = set; then
9878   echo $ECHO_N "(cached) $ECHO_C" >&6
9879 else
9880
9881 module=yes
9882 eval libltdl_cv_shlibext=$shrext_cmds
9883
9884 fi
9885 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9886 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9887 if test -n "$libltdl_cv_shlibext"; then
9888
9889 cat >>confdefs.h <<_ACEOF
9890 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9891 _ACEOF
9892
9893 fi
9894
9895
9896 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9897 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9898 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9899   echo $ECHO_N "(cached) $ECHO_C" >&6
9900 else
9901   libltdl_cv_shlibpath_var="$shlibpath_var"
9902 fi
9903 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9904 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9905 if test -n "$libltdl_cv_shlibpath_var"; then
9906
9907 cat >>confdefs.h <<_ACEOF
9908 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9909 _ACEOF
9910
9911 fi
9912
9913
9914 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9915 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9916 if test "${libltdl_cv_sys_search_path+set}" = set; then
9917   echo $ECHO_N "(cached) $ECHO_C" >&6
9918 else
9919   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9920 fi
9921 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9922 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9923 if test -n "$libltdl_cv_sys_search_path"; then
9924   sys_search_path=
9925   for dir in $libltdl_cv_sys_search_path; do
9926     if test -z "$sys_search_path"; then
9927       sys_search_path="$dir"
9928     else
9929       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9930     fi
9931   done
9932
9933 cat >>confdefs.h <<_ACEOF
9934 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9935 _ACEOF
9936
9937 fi
9938
9939 { echo "$as_me:$LINENO: checking for objdir" >&5
9940 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9941 if test "${libltdl_cv_objdir+set}" = set; then
9942   echo $ECHO_N "(cached) $ECHO_C" >&6
9943 else
9944   libltdl_cv_objdir="$objdir"
9945   if test -n "$objdir"; then
9946     :
9947   else
9948     rm -f .libs 2>/dev/null
9949     mkdir .libs 2>/dev/null
9950     if test -d .libs; then
9951       libltdl_cv_objdir=.libs
9952     else
9953       # MS-DOS does not allow filenames that begin with a dot.
9954       libltdl_cv_objdir=_libs
9955     fi
9956   rmdir .libs 2>/dev/null
9957   fi
9958
9959 fi
9960 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9961 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9962
9963 cat >>confdefs.h <<_ACEOF
9964 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9965 _ACEOF
9966
9967
9968
9969
9970
9971
9972 # Check for command to grab the raw symbol name followed by C symbol from nm.
9973 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9974 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9975 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9976   echo $ECHO_N "(cached) $ECHO_C" >&6
9977 else
9978
9979 # These are sane defaults that work on at least a few old systems.
9980 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9981
9982 # Character class describing NM global symbol codes.
9983 symcode='[BCDEGRST]'
9984
9985 # Regexp to match symbols that can be accessed directly from C.
9986 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9987
9988 # Transform an extracted symbol line into a proper C declaration
9989 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9990
9991 # Transform an extracted symbol line into symbol name and symbol address
9992 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'"
9993
9994 # Define system-specific variables.
9995 case $host_os in
9996 aix*)
9997   symcode='[BCDT]'
9998   ;;
9999 cygwin* | mingw* | pw32*)
10000   symcode='[ABCDGISTW]'
10001   ;;
10002 hpux*) # Its linker distinguishes data from code symbols
10003   if test "$host_cpu" = ia64; then
10004     symcode='[ABCDEGRST]'
10005   fi
10006   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10007   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'"
10008   ;;
10009 linux*)
10010   if test "$host_cpu" = ia64; then
10011     symcode='[ABCDGIRSTW]'
10012     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10013     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'"
10014   fi
10015   ;;
10016 irix* | nonstopux*)
10017   symcode='[BCDEGRST]'
10018   ;;
10019 osf*)
10020   symcode='[BCDEGQRST]'
10021   ;;
10022 solaris*)
10023   symcode='[BDRT]'
10024   ;;
10025 sco3.2v5*)
10026   symcode='[DT]'
10027   ;;
10028 sysv4.2uw2*)
10029   symcode='[DT]'
10030   ;;
10031 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10032   symcode='[ABDT]'
10033   ;;
10034 sysv4)
10035   symcode='[DFNSTU]'
10036   ;;
10037 esac
10038
10039 # Handle CRLF in mingw tool chain
10040 opt_cr=
10041 case $build_os in
10042 mingw*)
10043   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10044   ;;
10045 esac
10046
10047 # If we're using GNU nm, then use its standard symbol codes.
10048 case `$NM -V 2>&1` in
10049 *GNU* | *'with BFD'*)
10050   symcode='[ABCDGIRSTW]' ;;
10051 esac
10052
10053 # Try without a prefix undercore, then with it.
10054 for ac_symprfx in "" "_"; do
10055
10056   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10057   symxfrm="\\1 $ac_symprfx\\2 \\2"
10058
10059   # Write the raw and C identifiers.
10060   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10061
10062   # Check to see that the pipe works correctly.
10063   pipe_works=no
10064
10065   rm -f conftest*
10066   cat > conftest.$ac_ext <<EOF
10067 #ifdef __cplusplus
10068 extern "C" {
10069 #endif
10070 char nm_test_var;
10071 void nm_test_func(){}
10072 #ifdef __cplusplus
10073 }
10074 #endif
10075 int main(){nm_test_var='a';nm_test_func();return(0);}
10076 EOF
10077
10078   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10079   (eval $ac_compile) 2>&5
10080   ac_status=$?
10081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082   (exit $ac_status); }; then
10083     # Now try to grab the symbols.
10084     nlist=conftest.nm
10085     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10086   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10087   ac_status=$?
10088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089   (exit $ac_status); } && test -s "$nlist"; then
10090       # Try sorting and uniquifying the output.
10091       if sort "$nlist" | uniq > "$nlist"T; then
10092         mv -f "$nlist"T "$nlist"
10093       else
10094         rm -f "$nlist"T
10095       fi
10096
10097       # Make sure that we snagged all the symbols we need.
10098       if grep ' nm_test_var$' "$nlist" >/dev/null; then
10099         if grep ' nm_test_func$' "$nlist" >/dev/null; then
10100           cat <<EOF > conftest.$ac_ext
10101 #ifdef __cplusplus
10102 extern "C" {
10103 #endif
10104
10105 EOF
10106           # Now generate the symbol file.
10107           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10108
10109           cat <<EOF >> conftest.$ac_ext
10110 #if defined (__STDC__) && __STDC__
10111 # define lt_ptr_t void *
10112 #else
10113 # define lt_ptr_t char *
10114 # define const
10115 #endif
10116
10117 /* The mapping between symbol names and symbols. */
10118 const struct {
10119   const char *name;
10120   lt_ptr_t address;
10121 }
10122 lt_preloaded_symbols[] =
10123 {
10124 EOF
10125           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10126           cat <<\EOF >> conftest.$ac_ext
10127   {0, (lt_ptr_t) 0}
10128 };
10129
10130 #ifdef __cplusplus
10131 }
10132 #endif
10133 EOF
10134           # Now try linking the two files.
10135           mv conftest.$ac_objext conftstm.$ac_objext
10136           lt_save_LIBS="$LIBS"
10137           lt_save_CFLAGS="$CFLAGS"
10138           LIBS="conftstm.$ac_objext"
10139           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10140           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10141   (eval $ac_link) 2>&5
10142   ac_status=$?
10143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144   (exit $ac_status); } && test -s conftest${ac_exeext}; then
10145             pipe_works=yes
10146           fi
10147           LIBS="$lt_save_LIBS"
10148           CFLAGS="$lt_save_CFLAGS"
10149         else
10150           echo "cannot find nm_test_func in $nlist" >&5
10151         fi
10152       else
10153         echo "cannot find nm_test_var in $nlist" >&5
10154       fi
10155     else
10156       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10157     fi
10158   else
10159     echo "$progname: failed program was:" >&5
10160     cat conftest.$ac_ext >&5
10161   fi
10162   rm -f conftest* conftst*
10163
10164   # Do not use the global_symbol_pipe unless it works.
10165   if test "$pipe_works" = yes; then
10166     break
10167   else
10168     lt_cv_sys_global_symbol_pipe=
10169   fi
10170 done
10171
10172 fi
10173
10174 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10175   lt_cv_sys_global_symbol_to_cdecl=
10176 fi
10177 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10178   { echo "$as_me:$LINENO: result: failed" >&5
10179 echo "${ECHO_T}failed" >&6; }
10180 else
10181   { echo "$as_me:$LINENO: result: ok" >&5
10182 echo "${ECHO_T}ok" >&6; }
10183 fi
10184
10185
10186 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10187 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10188 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10189   echo $ECHO_N "(cached) $ECHO_C" >&6
10190 else
10191   if test -n "$lt_cv_sys_global_symbol_pipe"; then
10192     libltdl_cv_preloaded_symbols=yes
10193   else
10194     libltdl_cv_preloaded_symbols=no
10195   fi
10196
10197 fi
10198 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10199 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10200 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10201
10202 cat >>confdefs.h <<\_ACEOF
10203 #define HAVE_PRELOADED_SYMBOLS 1
10204 _ACEOF
10205
10206 fi
10207
10208 LIBADD_DL=
10209
10210 ac_ext=c
10211 ac_cpp='$CPP $CPPFLAGS'
10212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10215
10216
10217 { echo "$as_me:$LINENO: checking for shl_load" >&5
10218 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10219 if test "${ac_cv_func_shl_load+set}" = set; then
10220   echo $ECHO_N "(cached) $ECHO_C" >&6
10221 else
10222   cat >conftest.$ac_ext <<_ACEOF
10223 /* confdefs.h.  */
10224 _ACEOF
10225 cat confdefs.h >>conftest.$ac_ext
10226 cat >>conftest.$ac_ext <<_ACEOF
10227 /* end confdefs.h.  */
10228 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10229    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10230 #define shl_load innocuous_shl_load
10231
10232 /* System header to define __stub macros and hopefully few prototypes,
10233     which can conflict with char shl_load (); below.
10234     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10235     <limits.h> exists even on freestanding compilers.  */
10236
10237 #ifdef __STDC__
10238 # include <limits.h>
10239 #else
10240 # include <assert.h>
10241 #endif
10242
10243 #undef shl_load
10244
10245 /* Override any GCC internal prototype to avoid an error.
10246    Use char because int might match the return type of a GCC
10247    builtin and then its argument prototype would still apply.  */
10248 #ifdef __cplusplus
10249 extern "C"
10250 #endif
10251 char shl_load ();
10252 /* The GNU C library defines this for functions which it implements
10253     to always fail with ENOSYS.  Some functions are actually named
10254     something starting with __ and the normal name is an alias.  */
10255 #if defined __stub_shl_load || defined __stub___shl_load
10256 choke me
10257 #endif
10258
10259 int
10260 main ()
10261 {
10262 return shl_load ();
10263   ;
10264   return 0;
10265 }
10266 _ACEOF
10267 rm -f conftest.$ac_objext conftest$ac_exeext
10268 if { (ac_try="$ac_link"
10269 case "(($ac_try" in
10270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10271   *) ac_try_echo=$ac_try;;
10272 esac
10273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10274   (eval "$ac_link") 2>conftest.er1
10275   ac_status=$?
10276   grep -v '^ *+' conftest.er1 >conftest.err
10277   rm -f conftest.er1
10278   cat conftest.err >&5
10279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280   (exit $ac_status); } &&
10281          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10282   { (case "(($ac_try" in
10283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10284   *) ac_try_echo=$ac_try;;
10285 esac
10286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10287   (eval "$ac_try") 2>&5
10288   ac_status=$?
10289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290   (exit $ac_status); }; } &&
10291          { ac_try='test -s conftest$ac_exeext'
10292   { (case "(($ac_try" in
10293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10294   *) ac_try_echo=$ac_try;;
10295 esac
10296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10297   (eval "$ac_try") 2>&5
10298   ac_status=$?
10299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300   (exit $ac_status); }; }; then
10301   ac_cv_func_shl_load=yes
10302 else
10303   echo "$as_me: failed program was:" >&5
10304 sed 's/^/| /' conftest.$ac_ext >&5
10305
10306         ac_cv_func_shl_load=no
10307 fi
10308
10309 rm -f core conftest.err conftest.$ac_objext \
10310       conftest$ac_exeext conftest.$ac_ext
10311 fi
10312 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10313 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10314 if test $ac_cv_func_shl_load = yes; then
10315
10316 cat >>confdefs.h <<\_ACEOF
10317 #define HAVE_SHL_LOAD 1
10318 _ACEOF
10319
10320 else
10321   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10322 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10323 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10324   echo $ECHO_N "(cached) $ECHO_C" >&6
10325 else
10326   ac_check_lib_save_LIBS=$LIBS
10327 LIBS="-ldld  $LIBS"
10328 cat >conftest.$ac_ext <<_ACEOF
10329 /* confdefs.h.  */
10330 _ACEOF
10331 cat confdefs.h >>conftest.$ac_ext
10332 cat >>conftest.$ac_ext <<_ACEOF
10333 /* end confdefs.h.  */
10334
10335 /* Override any GCC internal prototype to avoid an error.
10336    Use char because int might match the return type of a GCC
10337    builtin and then its argument prototype would still apply.  */
10338 #ifdef __cplusplus
10339 extern "C"
10340 #endif
10341 char shl_load ();
10342 int
10343 main ()
10344 {
10345 return shl_load ();
10346   ;
10347   return 0;
10348 }
10349 _ACEOF
10350 rm -f conftest.$ac_objext conftest$ac_exeext
10351 if { (ac_try="$ac_link"
10352 case "(($ac_try" in
10353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10354   *) ac_try_echo=$ac_try;;
10355 esac
10356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10357   (eval "$ac_link") 2>conftest.er1
10358   ac_status=$?
10359   grep -v '^ *+' conftest.er1 >conftest.err
10360   rm -f conftest.er1
10361   cat conftest.err >&5
10362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363   (exit $ac_status); } &&
10364          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10365   { (case "(($ac_try" in
10366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367   *) ac_try_echo=$ac_try;;
10368 esac
10369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10370   (eval "$ac_try") 2>&5
10371   ac_status=$?
10372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373   (exit $ac_status); }; } &&
10374          { ac_try='test -s conftest$ac_exeext'
10375   { (case "(($ac_try" in
10376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10377   *) ac_try_echo=$ac_try;;
10378 esac
10379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10380   (eval "$ac_try") 2>&5
10381   ac_status=$?
10382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383   (exit $ac_status); }; }; then
10384   ac_cv_lib_dld_shl_load=yes
10385 else
10386   echo "$as_me: failed program was:" >&5
10387 sed 's/^/| /' conftest.$ac_ext >&5
10388
10389         ac_cv_lib_dld_shl_load=no
10390 fi
10391
10392 rm -f core conftest.err conftest.$ac_objext \
10393       conftest$ac_exeext conftest.$ac_ext
10394 LIBS=$ac_check_lib_save_LIBS
10395 fi
10396 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10397 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10398 if test $ac_cv_lib_dld_shl_load = yes; then
10399
10400 cat >>confdefs.h <<\_ACEOF
10401 #define HAVE_SHL_LOAD 1
10402 _ACEOF
10403
10404         LIBADD_DL="$LIBADD_DL -ldld"
10405 else
10406   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10407 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10408 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10409   echo $ECHO_N "(cached) $ECHO_C" >&6
10410 else
10411   ac_check_lib_save_LIBS=$LIBS
10412 LIBS="-ldl  $LIBS"
10413 cat >conftest.$ac_ext <<_ACEOF
10414 /* confdefs.h.  */
10415 _ACEOF
10416 cat confdefs.h >>conftest.$ac_ext
10417 cat >>conftest.$ac_ext <<_ACEOF
10418 /* end confdefs.h.  */
10419
10420 /* Override any GCC internal prototype to avoid an error.
10421    Use char because int might match the return type of a GCC
10422    builtin and then its argument prototype would still apply.  */
10423 #ifdef __cplusplus
10424 extern "C"
10425 #endif
10426 char dlopen ();
10427 int
10428 main ()
10429 {
10430 return dlopen ();
10431   ;
10432   return 0;
10433 }
10434 _ACEOF
10435 rm -f conftest.$ac_objext conftest$ac_exeext
10436 if { (ac_try="$ac_link"
10437 case "(($ac_try" in
10438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10439   *) ac_try_echo=$ac_try;;
10440 esac
10441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10442   (eval "$ac_link") 2>conftest.er1
10443   ac_status=$?
10444   grep -v '^ *+' conftest.er1 >conftest.err
10445   rm -f conftest.er1
10446   cat conftest.err >&5
10447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448   (exit $ac_status); } &&
10449          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10450   { (case "(($ac_try" in
10451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10452   *) ac_try_echo=$ac_try;;
10453 esac
10454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10455   (eval "$ac_try") 2>&5
10456   ac_status=$?
10457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458   (exit $ac_status); }; } &&
10459          { ac_try='test -s conftest$ac_exeext'
10460   { (case "(($ac_try" in
10461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10462   *) ac_try_echo=$ac_try;;
10463 esac
10464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10465   (eval "$ac_try") 2>&5
10466   ac_status=$?
10467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468   (exit $ac_status); }; }; then
10469   ac_cv_lib_dl_dlopen=yes
10470 else
10471   echo "$as_me: failed program was:" >&5
10472 sed 's/^/| /' conftest.$ac_ext >&5
10473
10474         ac_cv_lib_dl_dlopen=no
10475 fi
10476
10477 rm -f core conftest.err conftest.$ac_objext \
10478       conftest$ac_exeext conftest.$ac_ext
10479 LIBS=$ac_check_lib_save_LIBS
10480 fi
10481 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10482 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10483 if test $ac_cv_lib_dl_dlopen = yes; then
10484
10485 cat >>confdefs.h <<\_ACEOF
10486 #define HAVE_LIBDL 1
10487 _ACEOF
10488
10489                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10490 else
10491   cat >conftest.$ac_ext <<_ACEOF
10492 /* confdefs.h.  */
10493 _ACEOF
10494 cat confdefs.h >>conftest.$ac_ext
10495 cat >>conftest.$ac_ext <<_ACEOF
10496 /* end confdefs.h.  */
10497 #if HAVE_DLFCN_H
10498 #  include <dlfcn.h>
10499 #endif
10500
10501 int
10502 main ()
10503 {
10504 dlopen(0, 0);
10505   ;
10506   return 0;
10507 }
10508 _ACEOF
10509 rm -f conftest.$ac_objext conftest$ac_exeext
10510 if { (ac_try="$ac_link"
10511 case "(($ac_try" in
10512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10513   *) ac_try_echo=$ac_try;;
10514 esac
10515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10516   (eval "$ac_link") 2>conftest.er1
10517   ac_status=$?
10518   grep -v '^ *+' conftest.er1 >conftest.err
10519   rm -f conftest.er1
10520   cat conftest.err >&5
10521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522   (exit $ac_status); } &&
10523          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10524   { (case "(($ac_try" in
10525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526   *) ac_try_echo=$ac_try;;
10527 esac
10528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10529   (eval "$ac_try") 2>&5
10530   ac_status=$?
10531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532   (exit $ac_status); }; } &&
10533          { ac_try='test -s conftest$ac_exeext'
10534   { (case "(($ac_try" in
10535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10536   *) ac_try_echo=$ac_try;;
10537 esac
10538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10539   (eval "$ac_try") 2>&5
10540   ac_status=$?
10541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542   (exit $ac_status); }; }; then
10543
10544 cat >>confdefs.h <<\_ACEOF
10545 #define HAVE_LIBDL 1
10546 _ACEOF
10547  libltdl_cv_func_dlopen="yes"
10548 else
10549   echo "$as_me: failed program was:" >&5
10550 sed 's/^/| /' conftest.$ac_ext >&5
10551
10552         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10553 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10554 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10555   echo $ECHO_N "(cached) $ECHO_C" >&6
10556 else
10557   ac_check_lib_save_LIBS=$LIBS
10558 LIBS="-lsvld  $LIBS"
10559 cat >conftest.$ac_ext <<_ACEOF
10560 /* confdefs.h.  */
10561 _ACEOF
10562 cat confdefs.h >>conftest.$ac_ext
10563 cat >>conftest.$ac_ext <<_ACEOF
10564 /* end confdefs.h.  */
10565
10566 /* Override any GCC internal prototype to avoid an error.
10567    Use char because int might match the return type of a GCC
10568    builtin and then its argument prototype would still apply.  */
10569 #ifdef __cplusplus
10570 extern "C"
10571 #endif
10572 char dlopen ();
10573 int
10574 main ()
10575 {
10576 return dlopen ();
10577   ;
10578   return 0;
10579 }
10580 _ACEOF
10581 rm -f conftest.$ac_objext conftest$ac_exeext
10582 if { (ac_try="$ac_link"
10583 case "(($ac_try" in
10584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10585   *) ac_try_echo=$ac_try;;
10586 esac
10587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10588   (eval "$ac_link") 2>conftest.er1
10589   ac_status=$?
10590   grep -v '^ *+' conftest.er1 >conftest.err
10591   rm -f conftest.er1
10592   cat conftest.err >&5
10593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594   (exit $ac_status); } &&
10595          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10596   { (case "(($ac_try" in
10597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10598   *) ac_try_echo=$ac_try;;
10599 esac
10600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10601   (eval "$ac_try") 2>&5
10602   ac_status=$?
10603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604   (exit $ac_status); }; } &&
10605          { ac_try='test -s conftest$ac_exeext'
10606   { (case "(($ac_try" in
10607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10608   *) ac_try_echo=$ac_try;;
10609 esac
10610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10611   (eval "$ac_try") 2>&5
10612   ac_status=$?
10613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614   (exit $ac_status); }; }; then
10615   ac_cv_lib_svld_dlopen=yes
10616 else
10617   echo "$as_me: failed program was:" >&5
10618 sed 's/^/| /' conftest.$ac_ext >&5
10619
10620         ac_cv_lib_svld_dlopen=no
10621 fi
10622
10623 rm -f core conftest.err conftest.$ac_objext \
10624       conftest$ac_exeext conftest.$ac_ext
10625 LIBS=$ac_check_lib_save_LIBS
10626 fi
10627 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10628 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10629 if test $ac_cv_lib_svld_dlopen = yes; then
10630
10631 cat >>confdefs.h <<\_ACEOF
10632 #define HAVE_LIBDL 1
10633 _ACEOF
10634
10635                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10636 else
10637   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10638 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10639 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10640   echo $ECHO_N "(cached) $ECHO_C" >&6
10641 else
10642   ac_check_lib_save_LIBS=$LIBS
10643 LIBS="-ldld  $LIBS"
10644 cat >conftest.$ac_ext <<_ACEOF
10645 /* confdefs.h.  */
10646 _ACEOF
10647 cat confdefs.h >>conftest.$ac_ext
10648 cat >>conftest.$ac_ext <<_ACEOF
10649 /* end confdefs.h.  */
10650
10651 /* Override any GCC internal prototype to avoid an error.
10652    Use char because int might match the return type of a GCC
10653    builtin and then its argument prototype would still apply.  */
10654 #ifdef __cplusplus
10655 extern "C"
10656 #endif
10657 char dld_link ();
10658 int
10659 main ()
10660 {
10661 return dld_link ();
10662   ;
10663   return 0;
10664 }
10665 _ACEOF
10666 rm -f conftest.$ac_objext conftest$ac_exeext
10667 if { (ac_try="$ac_link"
10668 case "(($ac_try" in
10669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10670   *) ac_try_echo=$ac_try;;
10671 esac
10672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10673   (eval "$ac_link") 2>conftest.er1
10674   ac_status=$?
10675   grep -v '^ *+' conftest.er1 >conftest.err
10676   rm -f conftest.er1
10677   cat conftest.err >&5
10678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679   (exit $ac_status); } &&
10680          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10681   { (case "(($ac_try" in
10682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10683   *) ac_try_echo=$ac_try;;
10684 esac
10685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10686   (eval "$ac_try") 2>&5
10687   ac_status=$?
10688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689   (exit $ac_status); }; } &&
10690          { ac_try='test -s conftest$ac_exeext'
10691   { (case "(($ac_try" in
10692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10693   *) ac_try_echo=$ac_try;;
10694 esac
10695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10696   (eval "$ac_try") 2>&5
10697   ac_status=$?
10698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699   (exit $ac_status); }; }; then
10700   ac_cv_lib_dld_dld_link=yes
10701 else
10702   echo "$as_me: failed program was:" >&5
10703 sed 's/^/| /' conftest.$ac_ext >&5
10704
10705         ac_cv_lib_dld_dld_link=no
10706 fi
10707
10708 rm -f core conftest.err conftest.$ac_objext \
10709       conftest$ac_exeext conftest.$ac_ext
10710 LIBS=$ac_check_lib_save_LIBS
10711 fi
10712 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10713 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10714 if test $ac_cv_lib_dld_dld_link = yes; then
10715
10716 cat >>confdefs.h <<\_ACEOF
10717 #define HAVE_DLD 1
10718 _ACEOF
10719
10720                 LIBADD_DL="$LIBADD_DL -ldld"
10721 else
10722   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10723 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10724 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10725   echo $ECHO_N "(cached) $ECHO_C" >&6
10726 else
10727   cat >conftest.$ac_ext <<_ACEOF
10728 /* confdefs.h.  */
10729 _ACEOF
10730 cat confdefs.h >>conftest.$ac_ext
10731 cat >>conftest.$ac_ext <<_ACEOF
10732 /* end confdefs.h.  */
10733 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10734    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10735 #define _dyld_func_lookup innocuous__dyld_func_lookup
10736
10737 /* System header to define __stub macros and hopefully few prototypes,
10738     which can conflict with char _dyld_func_lookup (); below.
10739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10740     <limits.h> exists even on freestanding compilers.  */
10741
10742 #ifdef __STDC__
10743 # include <limits.h>
10744 #else
10745 # include <assert.h>
10746 #endif
10747
10748 #undef _dyld_func_lookup
10749
10750 /* Override any GCC internal prototype to avoid an error.
10751    Use char because int might match the return type of a GCC
10752    builtin and then its argument prototype would still apply.  */
10753 #ifdef __cplusplus
10754 extern "C"
10755 #endif
10756 char _dyld_func_lookup ();
10757 /* The GNU C library defines this for functions which it implements
10758     to always fail with ENOSYS.  Some functions are actually named
10759     something starting with __ and the normal name is an alias.  */
10760 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10761 choke me
10762 #endif
10763
10764 int
10765 main ()
10766 {
10767 return _dyld_func_lookup ();
10768   ;
10769   return 0;
10770 }
10771 _ACEOF
10772 rm -f conftest.$ac_objext conftest$ac_exeext
10773 if { (ac_try="$ac_link"
10774 case "(($ac_try" in
10775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10776   *) ac_try_echo=$ac_try;;
10777 esac
10778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10779   (eval "$ac_link") 2>conftest.er1
10780   ac_status=$?
10781   grep -v '^ *+' conftest.er1 >conftest.err
10782   rm -f conftest.er1
10783   cat conftest.err >&5
10784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785   (exit $ac_status); } &&
10786          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10787   { (case "(($ac_try" in
10788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10789   *) ac_try_echo=$ac_try;;
10790 esac
10791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10792   (eval "$ac_try") 2>&5
10793   ac_status=$?
10794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795   (exit $ac_status); }; } &&
10796          { ac_try='test -s conftest$ac_exeext'
10797   { (case "(($ac_try" in
10798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10799   *) ac_try_echo=$ac_try;;
10800 esac
10801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10802   (eval "$ac_try") 2>&5
10803   ac_status=$?
10804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805   (exit $ac_status); }; }; then
10806   ac_cv_func__dyld_func_lookup=yes
10807 else
10808   echo "$as_me: failed program was:" >&5
10809 sed 's/^/| /' conftest.$ac_ext >&5
10810
10811         ac_cv_func__dyld_func_lookup=no
10812 fi
10813
10814 rm -f core conftest.err conftest.$ac_objext \
10815       conftest$ac_exeext conftest.$ac_ext
10816 fi
10817 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10818 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10819 if test $ac_cv_func__dyld_func_lookup = yes; then
10820
10821 cat >>confdefs.h <<\_ACEOF
10822 #define HAVE_DYLD 1
10823 _ACEOF
10824
10825 fi
10826
10827
10828 fi
10829
10830
10831 fi
10832
10833
10834 fi
10835
10836 rm -f core conftest.err conftest.$ac_objext \
10837       conftest$ac_exeext conftest.$ac_ext
10838
10839 fi
10840
10841
10842 fi
10843
10844
10845 fi
10846
10847
10848 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10849 then
10850   lt_save_LIBS="$LIBS"
10851   LIBS="$LIBS $LIBADD_DL"
10852
10853 for ac_func in dlerror
10854 do
10855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10856 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10858 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10859   echo $ECHO_N "(cached) $ECHO_C" >&6
10860 else
10861   cat >conftest.$ac_ext <<_ACEOF
10862 /* confdefs.h.  */
10863 _ACEOF
10864 cat confdefs.h >>conftest.$ac_ext
10865 cat >>conftest.$ac_ext <<_ACEOF
10866 /* end confdefs.h.  */
10867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10868    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10869 #define $ac_func innocuous_$ac_func
10870
10871 /* System header to define __stub macros and hopefully few prototypes,
10872     which can conflict with char $ac_func (); below.
10873     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10874     <limits.h> exists even on freestanding compilers.  */
10875
10876 #ifdef __STDC__
10877 # include <limits.h>
10878 #else
10879 # include <assert.h>
10880 #endif
10881
10882 #undef $ac_func
10883
10884 /* Override any GCC internal prototype to avoid an error.
10885    Use char because int might match the return type of a GCC
10886    builtin and then its argument prototype would still apply.  */
10887 #ifdef __cplusplus
10888 extern "C"
10889 #endif
10890 char $ac_func ();
10891 /* The GNU C library defines this for functions which it implements
10892     to always fail with ENOSYS.  Some functions are actually named
10893     something starting with __ and the normal name is an alias.  */
10894 #if defined __stub_$ac_func || defined __stub___$ac_func
10895 choke me
10896 #endif
10897
10898 int
10899 main ()
10900 {
10901 return $ac_func ();
10902   ;
10903   return 0;
10904 }
10905 _ACEOF
10906 rm -f conftest.$ac_objext conftest$ac_exeext
10907 if { (ac_try="$ac_link"
10908 case "(($ac_try" in
10909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10910   *) ac_try_echo=$ac_try;;
10911 esac
10912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10913   (eval "$ac_link") 2>conftest.er1
10914   ac_status=$?
10915   grep -v '^ *+' conftest.er1 >conftest.err
10916   rm -f conftest.er1
10917   cat conftest.err >&5
10918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919   (exit $ac_status); } &&
10920          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10921   { (case "(($ac_try" in
10922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10923   *) ac_try_echo=$ac_try;;
10924 esac
10925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10926   (eval "$ac_try") 2>&5
10927   ac_status=$?
10928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929   (exit $ac_status); }; } &&
10930          { ac_try='test -s conftest$ac_exeext'
10931   { (case "(($ac_try" in
10932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933   *) ac_try_echo=$ac_try;;
10934 esac
10935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10936   (eval "$ac_try") 2>&5
10937   ac_status=$?
10938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939   (exit $ac_status); }; }; then
10940   eval "$as_ac_var=yes"
10941 else
10942   echo "$as_me: failed program was:" >&5
10943 sed 's/^/| /' conftest.$ac_ext >&5
10944
10945         eval "$as_ac_var=no"
10946 fi
10947
10948 rm -f core conftest.err conftest.$ac_objext \
10949       conftest$ac_exeext conftest.$ac_ext
10950 fi
10951 ac_res=`eval echo '${'$as_ac_var'}'`
10952                { echo "$as_me:$LINENO: result: $ac_res" >&5
10953 echo "${ECHO_T}$ac_res" >&6; }
10954 if test `eval echo '${'$as_ac_var'}'` = yes; then
10955   cat >>confdefs.h <<_ACEOF
10956 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10957 _ACEOF
10958
10959 fi
10960 done
10961
10962   LIBS="$lt_save_LIBS"
10963 fi
10964 ac_ext=c
10965 ac_cpp='$CPP $CPPFLAGS'
10966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10969
10970
10971
10972 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10973 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10974 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10975   echo $ECHO_N "(cached) $ECHO_C" >&6
10976 else
10977   ac_cv_sys_symbol_underscore=no
10978   cat > conftest.$ac_ext <<EOF
10979 void nm_test_func(){}
10980 int main(){nm_test_func;return 0;}
10981 EOF
10982   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10983   (eval $ac_compile) 2>&5
10984   ac_status=$?
10985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986   (exit $ac_status); }; then
10987     # Now try to grab the symbols.
10988     ac_nlist=conftest.nm
10989     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10990   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10991   ac_status=$?
10992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993   (exit $ac_status); } && test -s "$ac_nlist"; then
10994       # See whether the symbols have a leading underscore.
10995       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10996         ac_cv_sys_symbol_underscore=yes
10997       else
10998         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10999           :
11000         else
11001           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11002         fi
11003       fi
11004     else
11005       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11006     fi
11007   else
11008     echo "configure: failed program was:" >&5
11009     cat conftest.c >&5
11010   fi
11011   rm -rf conftest*
11012
11013 fi
11014 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11015 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11016
11017
11018 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11019   if test x"$libltdl_cv_func_dlopen" = xyes ||
11020      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11021         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11022 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11023 if test "${libltdl_cv_need_uscore+set}" = set; then
11024   echo $ECHO_N "(cached) $ECHO_C" >&6
11025 else
11026   libltdl_cv_need_uscore=unknown
11027           save_LIBS="$LIBS"
11028           LIBS="$LIBS $LIBADD_DL"
11029           if test "$cross_compiling" = yes; then :
11030   libltdl_cv_need_uscore=cross
11031 else
11032   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11033   lt_status=$lt_dlunknown
11034   cat > conftest.$ac_ext <<EOF
11035 #line 11035 "configure"
11036 #include "confdefs.h"
11037
11038 #if HAVE_DLFCN_H
11039 #include <dlfcn.h>
11040 #endif
11041
11042 #include <stdio.h>
11043
11044 #ifdef RTLD_GLOBAL
11045 #  define LT_DLGLOBAL           RTLD_GLOBAL
11046 #else
11047 #  ifdef DL_GLOBAL
11048 #    define LT_DLGLOBAL         DL_GLOBAL
11049 #  else
11050 #    define LT_DLGLOBAL         0
11051 #  endif
11052 #endif
11053
11054 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11055    find out it does not work in some platform. */
11056 #ifndef LT_DLLAZY_OR_NOW
11057 #  ifdef RTLD_LAZY
11058 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11059 #  else
11060 #    ifdef DL_LAZY
11061 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11062 #    else
11063 #      ifdef RTLD_NOW
11064 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11065 #      else
11066 #        ifdef DL_NOW
11067 #          define LT_DLLAZY_OR_NOW      DL_NOW
11068 #        else
11069 #          define LT_DLLAZY_OR_NOW      0
11070 #        endif
11071 #      endif
11072 #    endif
11073 #  endif
11074 #endif
11075
11076 #ifdef __cplusplus
11077 extern "C" void exit (int);
11078 #endif
11079
11080 void fnord() { int i=42;}
11081 int main ()
11082 {
11083   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11084   int status = $lt_dlunknown;
11085
11086   if (self)
11087     {
11088       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11089       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11090       /* dlclose (self); */
11091     }
11092   else
11093     puts (dlerror ());
11094
11095     exit (status);
11096 }
11097 EOF
11098   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11099   (eval $ac_link) 2>&5
11100   ac_status=$?
11101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11103     (./conftest; exit; ) >&5 2>/dev/null
11104     lt_status=$?
11105     case x$lt_status in
11106       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11107       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11108       x$lt_dlunknown|x*)  ;;
11109     esac
11110   else :
11111     # compilation failed
11112
11113   fi
11114 fi
11115 rm -fr conftest*
11116
11117           LIBS="$save_LIBS"
11118
11119 fi
11120 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11121 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11122   fi
11123 fi
11124
11125 if test x"$libltdl_cv_need_uscore" = xyes; then
11126
11127 cat >>confdefs.h <<\_ACEOF
11128 #define NEED_USCORE 1
11129 _ACEOF
11130
11131 fi
11132
11133
11134 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11135 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11136 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11137   echo $ECHO_N "(cached) $ECHO_C" >&6
11138 else
11139   # PORTME does your system automatically load deplibs for dlopen?
11140   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11141   # For now, we just catch OSes we know something about -- in the
11142   # future, we'll try test this programmatically.
11143   libltdl_cv_sys_dlopen_deplibs=unknown
11144   case "$host_os" in
11145   aix3*|aix4.1.*|aix4.2.*)
11146     # Unknown whether this is true for these versions of AIX, but
11147     # we want this `case' here to explicitly catch those versions.
11148     libltdl_cv_sys_dlopen_deplibs=unknown
11149     ;;
11150   aix[45]*)
11151     libltdl_cv_sys_dlopen_deplibs=yes
11152     ;;
11153   darwin*)
11154     # Assuming the user has installed a libdl from somewhere, this is true
11155     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11156     libltdl_cv_sys_dlopen_deplibs=yes
11157     ;;
11158   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11159     # GNU and its variants, using gnu ld.so (Glibc)
11160     libltdl_cv_sys_dlopen_deplibs=yes
11161     ;;
11162   hpux10*|hpux11*)
11163     libltdl_cv_sys_dlopen_deplibs=yes
11164     ;;
11165   interix*)
11166     libltdl_cv_sys_dlopen_deplibs=yes
11167     ;;
11168   irix[12345]*|irix6.[01]*)
11169     # Catch all versions of IRIX before 6.2, and indicate that we don't
11170     # know how it worked for any of those versions.
11171     libltdl_cv_sys_dlopen_deplibs=unknown
11172     ;;
11173   irix*)
11174     # The case above catches anything before 6.2, and it's known that
11175     # at 6.2 and later dlopen does load deplibs.
11176     libltdl_cv_sys_dlopen_deplibs=yes
11177     ;;
11178   netbsd*)
11179     libltdl_cv_sys_dlopen_deplibs=yes
11180     ;;
11181   openbsd*)
11182     libltdl_cv_sys_dlopen_deplibs=yes
11183     ;;
11184   osf[1234]*)
11185     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11186     # it did *not* use an RPATH in a shared library to find objects the
11187     # library depends on, so we explictly say `no'.
11188     libltdl_cv_sys_dlopen_deplibs=no
11189     ;;
11190   osf5.0|osf5.0a|osf5.1)
11191     # dlopen *does* load deplibs and with the right loader patch applied
11192     # it even uses RPATH in a shared library to search for shared objects
11193     # that the library depends on, but there's no easy way to know if that
11194     # patch is installed.  Since this is the case, all we can really
11195     # say is unknown -- it depends on the patch being installed.  If
11196     # it is, this changes to `yes'.  Without it, it would be `no'.
11197     libltdl_cv_sys_dlopen_deplibs=unknown
11198     ;;
11199   osf*)
11200     # the two cases above should catch all versions of osf <= 5.1.  Read
11201     # the comments above for what we know about them.
11202     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11203     # is used to find them so we can finally say `yes'.
11204     libltdl_cv_sys_dlopen_deplibs=yes
11205     ;;
11206   solaris*)
11207     libltdl_cv_sys_dlopen_deplibs=yes
11208     ;;
11209   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11210     libltdl_cv_sys_dlopen_deplibs=yes
11211     ;;
11212   esac
11213
11214 fi
11215 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11216 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11217 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11218
11219 cat >>confdefs.h <<\_ACEOF
11220 #define LTDL_DLOPEN_DEPLIBS 1
11221 _ACEOF
11222
11223 fi
11224
11225
11226 for ac_header in argz.h
11227 do
11228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11230   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11233   echo $ECHO_N "(cached) $ECHO_C" >&6
11234 fi
11235 ac_res=`eval echo '${'$as_ac_Header'}'`
11236                { echo "$as_me:$LINENO: result: $ac_res" >&5
11237 echo "${ECHO_T}$ac_res" >&6; }
11238 else
11239   # Is the header compilable?
11240 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11242 cat >conftest.$ac_ext <<_ACEOF
11243 /* confdefs.h.  */
11244 _ACEOF
11245 cat confdefs.h >>conftest.$ac_ext
11246 cat >>conftest.$ac_ext <<_ACEOF
11247 /* end confdefs.h.  */
11248 $ac_includes_default
11249 #include <$ac_header>
11250 _ACEOF
11251 rm -f conftest.$ac_objext
11252 if { (ac_try="$ac_compile"
11253 case "(($ac_try" in
11254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255   *) ac_try_echo=$ac_try;;
11256 esac
11257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11258   (eval "$ac_compile") 2>conftest.er1
11259   ac_status=$?
11260   grep -v '^ *+' conftest.er1 >conftest.err
11261   rm -f conftest.er1
11262   cat conftest.err >&5
11263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264   (exit $ac_status); } &&
11265          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11266   { (case "(($ac_try" in
11267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11268   *) ac_try_echo=$ac_try;;
11269 esac
11270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11271   (eval "$ac_try") 2>&5
11272   ac_status=$?
11273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274   (exit $ac_status); }; } &&
11275          { ac_try='test -s conftest.$ac_objext'
11276   { (case "(($ac_try" in
11277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11278   *) ac_try_echo=$ac_try;;
11279 esac
11280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11281   (eval "$ac_try") 2>&5
11282   ac_status=$?
11283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284   (exit $ac_status); }; }; then
11285   ac_header_compiler=yes
11286 else
11287   echo "$as_me: failed program was:" >&5
11288 sed 's/^/| /' conftest.$ac_ext >&5
11289
11290         ac_header_compiler=no
11291 fi
11292
11293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11294 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11295 echo "${ECHO_T}$ac_header_compiler" >&6; }
11296
11297 # Is the header present?
11298 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11299 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11300 cat >conftest.$ac_ext <<_ACEOF
11301 /* confdefs.h.  */
11302 _ACEOF
11303 cat confdefs.h >>conftest.$ac_ext
11304 cat >>conftest.$ac_ext <<_ACEOF
11305 /* end confdefs.h.  */
11306 #include <$ac_header>
11307 _ACEOF
11308 if { (ac_try="$ac_cpp conftest.$ac_ext"
11309 case "(($ac_try" in
11310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11311   *) ac_try_echo=$ac_try;;
11312 esac
11313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11314   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11315   ac_status=$?
11316   grep -v '^ *+' conftest.er1 >conftest.err
11317   rm -f conftest.er1
11318   cat conftest.err >&5
11319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320   (exit $ac_status); } >/dev/null; then
11321   if test -s conftest.err; then
11322     ac_cpp_err=$ac_c_preproc_warn_flag
11323     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11324   else
11325     ac_cpp_err=
11326   fi
11327 else
11328   ac_cpp_err=yes
11329 fi
11330 if test -z "$ac_cpp_err"; then
11331   ac_header_preproc=yes
11332 else
11333   echo "$as_me: failed program was:" >&5
11334 sed 's/^/| /' conftest.$ac_ext >&5
11335
11336   ac_header_preproc=no
11337 fi
11338
11339 rm -f conftest.err conftest.$ac_ext
11340 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11341 echo "${ECHO_T}$ac_header_preproc" >&6; }
11342
11343 # So?  What about this header?
11344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11345   yes:no: )
11346     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11347 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11348     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11349 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11350     ac_header_preproc=yes
11351     ;;
11352   no:yes:* )
11353     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11354 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11355     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11356 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11357     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11358 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11359     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11360 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11361     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11362 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11363     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11364 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11365     ( cat <<\_ASBOX
11366 ## ----------------------------------- ##
11367 ## Report this to llvmbugs@cs.uiuc.edu ##
11368 ## ----------------------------------- ##
11369 _ASBOX
11370      ) | sed "s/^/$as_me: WARNING:     /" >&2
11371     ;;
11372 esac
11373 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11376   echo $ECHO_N "(cached) $ECHO_C" >&6
11377 else
11378   eval "$as_ac_Header=\$ac_header_preproc"
11379 fi
11380 ac_res=`eval echo '${'$as_ac_Header'}'`
11381                { echo "$as_me:$LINENO: result: $ac_res" >&5
11382 echo "${ECHO_T}$ac_res" >&6; }
11383
11384 fi
11385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11386   cat >>confdefs.h <<_ACEOF
11387 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11388 _ACEOF
11389
11390 fi
11391
11392 done
11393
11394
11395 { echo "$as_me:$LINENO: checking for error_t" >&5
11396 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11397 if test "${ac_cv_type_error_t+set}" = set; then
11398   echo $ECHO_N "(cached) $ECHO_C" >&6
11399 else
11400   cat >conftest.$ac_ext <<_ACEOF
11401 /* confdefs.h.  */
11402 _ACEOF
11403 cat confdefs.h >>conftest.$ac_ext
11404 cat >>conftest.$ac_ext <<_ACEOF
11405 /* end confdefs.h.  */
11406 #if HAVE_ARGZ_H
11407 #  include <argz.h>
11408 #endif
11409
11410 typedef error_t ac__type_new_;
11411 int
11412 main ()
11413 {
11414 if ((ac__type_new_ *) 0)
11415   return 0;
11416 if (sizeof (ac__type_new_))
11417   return 0;
11418   ;
11419   return 0;
11420 }
11421 _ACEOF
11422 rm -f conftest.$ac_objext
11423 if { (ac_try="$ac_compile"
11424 case "(($ac_try" in
11425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11426   *) ac_try_echo=$ac_try;;
11427 esac
11428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11429   (eval "$ac_compile") 2>conftest.er1
11430   ac_status=$?
11431   grep -v '^ *+' conftest.er1 >conftest.err
11432   rm -f conftest.er1
11433   cat conftest.err >&5
11434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435   (exit $ac_status); } &&
11436          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11437   { (case "(($ac_try" in
11438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439   *) ac_try_echo=$ac_try;;
11440 esac
11441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11442   (eval "$ac_try") 2>&5
11443   ac_status=$?
11444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445   (exit $ac_status); }; } &&
11446          { ac_try='test -s conftest.$ac_objext'
11447   { (case "(($ac_try" in
11448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11449   *) ac_try_echo=$ac_try;;
11450 esac
11451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11452   (eval "$ac_try") 2>&5
11453   ac_status=$?
11454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455   (exit $ac_status); }; }; then
11456   ac_cv_type_error_t=yes
11457 else
11458   echo "$as_me: failed program was:" >&5
11459 sed 's/^/| /' conftest.$ac_ext >&5
11460
11461         ac_cv_type_error_t=no
11462 fi
11463
11464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11465 fi
11466 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11467 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11468 if test $ac_cv_type_error_t = yes; then
11469
11470 cat >>confdefs.h <<_ACEOF
11471 #define HAVE_ERROR_T 1
11472 _ACEOF
11473
11474
11475 else
11476
11477 cat >>confdefs.h <<\_ACEOF
11478 #define error_t int
11479 _ACEOF
11480
11481 fi
11482
11483
11484
11485
11486
11487
11488
11489 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11490 do
11491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11492 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11494 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11495   echo $ECHO_N "(cached) $ECHO_C" >&6
11496 else
11497   cat >conftest.$ac_ext <<_ACEOF
11498 /* confdefs.h.  */
11499 _ACEOF
11500 cat confdefs.h >>conftest.$ac_ext
11501 cat >>conftest.$ac_ext <<_ACEOF
11502 /* end confdefs.h.  */
11503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11504    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11505 #define $ac_func innocuous_$ac_func
11506
11507 /* System header to define __stub macros and hopefully few prototypes,
11508     which can conflict with char $ac_func (); below.
11509     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11510     <limits.h> exists even on freestanding compilers.  */
11511
11512 #ifdef __STDC__
11513 # include <limits.h>
11514 #else
11515 # include <assert.h>
11516 #endif
11517
11518 #undef $ac_func
11519
11520 /* Override any GCC internal prototype to avoid an error.
11521    Use char because int might match the return type of a GCC
11522    builtin and then its argument prototype would still apply.  */
11523 #ifdef __cplusplus
11524 extern "C"
11525 #endif
11526 char $ac_func ();
11527 /* The GNU C library defines this for functions which it implements
11528     to always fail with ENOSYS.  Some functions are actually named
11529     something starting with __ and the normal name is an alias.  */
11530 #if defined __stub_$ac_func || defined __stub___$ac_func
11531 choke me
11532 #endif
11533
11534 int
11535 main ()
11536 {
11537 return $ac_func ();
11538   ;
11539   return 0;
11540 }
11541 _ACEOF
11542 rm -f conftest.$ac_objext conftest$ac_exeext
11543 if { (ac_try="$ac_link"
11544 case "(($ac_try" in
11545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11546   *) ac_try_echo=$ac_try;;
11547 esac
11548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11549   (eval "$ac_link") 2>conftest.er1
11550   ac_status=$?
11551   grep -v '^ *+' conftest.er1 >conftest.err
11552   rm -f conftest.er1
11553   cat conftest.err >&5
11554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555   (exit $ac_status); } &&
11556          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11557   { (case "(($ac_try" in
11558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11559   *) ac_try_echo=$ac_try;;
11560 esac
11561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11562   (eval "$ac_try") 2>&5
11563   ac_status=$?
11564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565   (exit $ac_status); }; } &&
11566          { ac_try='test -s conftest$ac_exeext'
11567   { (case "(($ac_try" in
11568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11569   *) ac_try_echo=$ac_try;;
11570 esac
11571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11572   (eval "$ac_try") 2>&5
11573   ac_status=$?
11574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575   (exit $ac_status); }; }; then
11576   eval "$as_ac_var=yes"
11577 else
11578   echo "$as_me: failed program was:" >&5
11579 sed 's/^/| /' conftest.$ac_ext >&5
11580
11581         eval "$as_ac_var=no"
11582 fi
11583
11584 rm -f core conftest.err conftest.$ac_objext \
11585       conftest$ac_exeext conftest.$ac_ext
11586 fi
11587 ac_res=`eval echo '${'$as_ac_var'}'`
11588                { echo "$as_me:$LINENO: result: $ac_res" >&5
11589 echo "${ECHO_T}$ac_res" >&6; }
11590 if test `eval echo '${'$as_ac_var'}'` = yes; then
11591   cat >>confdefs.h <<_ACEOF
11592 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11593 _ACEOF
11594
11595 fi
11596 done
11597
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 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11626                   stdio.h unistd.h
11627 do
11628 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11630   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11633   echo $ECHO_N "(cached) $ECHO_C" >&6
11634 fi
11635 ac_res=`eval echo '${'$as_ac_Header'}'`
11636                { echo "$as_me:$LINENO: result: $ac_res" >&5
11637 echo "${ECHO_T}$ac_res" >&6; }
11638 else
11639   # Is the header compilable?
11640 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11641 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11642 cat >conftest.$ac_ext <<_ACEOF
11643 /* confdefs.h.  */
11644 _ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h.  */
11648 $ac_includes_default
11649 #include <$ac_header>
11650 _ACEOF
11651 rm -f conftest.$ac_objext
11652 if { (ac_try="$ac_compile"
11653 case "(($ac_try" in
11654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11655   *) ac_try_echo=$ac_try;;
11656 esac
11657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11658   (eval "$ac_compile") 2>conftest.er1
11659   ac_status=$?
11660   grep -v '^ *+' conftest.er1 >conftest.err
11661   rm -f conftest.er1
11662   cat conftest.err >&5
11663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664   (exit $ac_status); } &&
11665          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11666   { (case "(($ac_try" in
11667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11668   *) ac_try_echo=$ac_try;;
11669 esac
11670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11671   (eval "$ac_try") 2>&5
11672   ac_status=$?
11673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674   (exit $ac_status); }; } &&
11675          { ac_try='test -s conftest.$ac_objext'
11676   { (case "(($ac_try" in
11677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11678   *) ac_try_echo=$ac_try;;
11679 esac
11680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11681   (eval "$ac_try") 2>&5
11682   ac_status=$?
11683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684   (exit $ac_status); }; }; then
11685   ac_header_compiler=yes
11686 else
11687   echo "$as_me: failed program was:" >&5
11688 sed 's/^/| /' conftest.$ac_ext >&5
11689
11690         ac_header_compiler=no
11691 fi
11692
11693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11694 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11695 echo "${ECHO_T}$ac_header_compiler" >&6; }
11696
11697 # Is the header present?
11698 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11699 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11700 cat >conftest.$ac_ext <<_ACEOF
11701 /* confdefs.h.  */
11702 _ACEOF
11703 cat confdefs.h >>conftest.$ac_ext
11704 cat >>conftest.$ac_ext <<_ACEOF
11705 /* end confdefs.h.  */
11706 #include <$ac_header>
11707 _ACEOF
11708 if { (ac_try="$ac_cpp conftest.$ac_ext"
11709 case "(($ac_try" in
11710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11711   *) ac_try_echo=$ac_try;;
11712 esac
11713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11714   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11715   ac_status=$?
11716   grep -v '^ *+' conftest.er1 >conftest.err
11717   rm -f conftest.er1
11718   cat conftest.err >&5
11719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720   (exit $ac_status); } >/dev/null; then
11721   if test -s conftest.err; then
11722     ac_cpp_err=$ac_c_preproc_warn_flag
11723     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11724   else
11725     ac_cpp_err=
11726   fi
11727 else
11728   ac_cpp_err=yes
11729 fi
11730 if test -z "$ac_cpp_err"; then
11731   ac_header_preproc=yes
11732 else
11733   echo "$as_me: failed program was:" >&5
11734 sed 's/^/| /' conftest.$ac_ext >&5
11735
11736   ac_header_preproc=no
11737 fi
11738
11739 rm -f conftest.err conftest.$ac_ext
11740 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11741 echo "${ECHO_T}$ac_header_preproc" >&6; }
11742
11743 # So?  What about this header?
11744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11745   yes:no: )
11746     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11747 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11748     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11749 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11750     ac_header_preproc=yes
11751     ;;
11752   no:yes:* )
11753     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11754 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11755     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11756 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11757     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11758 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11759     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11760 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11761     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11762 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11763     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11764 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11765     ( cat <<\_ASBOX
11766 ## ----------------------------------- ##
11767 ## Report this to llvmbugs@cs.uiuc.edu ##
11768 ## ----------------------------------- ##
11769 _ASBOX
11770      ) | sed "s/^/$as_me: WARNING:     /" >&2
11771     ;;
11772 esac
11773 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11776   echo $ECHO_N "(cached) $ECHO_C" >&6
11777 else
11778   eval "$as_ac_Header=\$ac_header_preproc"
11779 fi
11780 ac_res=`eval echo '${'$as_ac_Header'}'`
11781                { echo "$as_me:$LINENO: result: $ac_res" >&5
11782 echo "${ECHO_T}$ac_res" >&6; }
11783
11784 fi
11785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11786   cat >>confdefs.h <<_ACEOF
11787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11788 _ACEOF
11789
11790 fi
11791
11792 done
11793
11794
11795
11796
11797
11798 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11799 do
11800 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11802   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11805   echo $ECHO_N "(cached) $ECHO_C" >&6
11806 fi
11807 ac_res=`eval echo '${'$as_ac_Header'}'`
11808                { echo "$as_me:$LINENO: result: $ac_res" >&5
11809 echo "${ECHO_T}$ac_res" >&6; }
11810 else
11811   # Is the header compilable?
11812 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11813 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11814 cat >conftest.$ac_ext <<_ACEOF
11815 /* confdefs.h.  */
11816 _ACEOF
11817 cat confdefs.h >>conftest.$ac_ext
11818 cat >>conftest.$ac_ext <<_ACEOF
11819 /* end confdefs.h.  */
11820 $ac_includes_default
11821 #include <$ac_header>
11822 _ACEOF
11823 rm -f conftest.$ac_objext
11824 if { (ac_try="$ac_compile"
11825 case "(($ac_try" in
11826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827   *) ac_try_echo=$ac_try;;
11828 esac
11829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11830   (eval "$ac_compile") 2>conftest.er1
11831   ac_status=$?
11832   grep -v '^ *+' conftest.er1 >conftest.err
11833   rm -f conftest.er1
11834   cat conftest.err >&5
11835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836   (exit $ac_status); } &&
11837          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11838   { (case "(($ac_try" in
11839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11840   *) ac_try_echo=$ac_try;;
11841 esac
11842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11843   (eval "$ac_try") 2>&5
11844   ac_status=$?
11845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846   (exit $ac_status); }; } &&
11847          { ac_try='test -s conftest.$ac_objext'
11848   { (case "(($ac_try" in
11849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850   *) ac_try_echo=$ac_try;;
11851 esac
11852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853   (eval "$ac_try") 2>&5
11854   ac_status=$?
11855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856   (exit $ac_status); }; }; then
11857   ac_header_compiler=yes
11858 else
11859   echo "$as_me: failed program was:" >&5
11860 sed 's/^/| /' conftest.$ac_ext >&5
11861
11862         ac_header_compiler=no
11863 fi
11864
11865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11866 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11867 echo "${ECHO_T}$ac_header_compiler" >&6; }
11868
11869 # Is the header present?
11870 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11872 cat >conftest.$ac_ext <<_ACEOF
11873 /* confdefs.h.  */
11874 _ACEOF
11875 cat confdefs.h >>conftest.$ac_ext
11876 cat >>conftest.$ac_ext <<_ACEOF
11877 /* end confdefs.h.  */
11878 #include <$ac_header>
11879 _ACEOF
11880 if { (ac_try="$ac_cpp conftest.$ac_ext"
11881 case "(($ac_try" in
11882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883   *) ac_try_echo=$ac_try;;
11884 esac
11885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11887   ac_status=$?
11888   grep -v '^ *+' conftest.er1 >conftest.err
11889   rm -f conftest.er1
11890   cat conftest.err >&5
11891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892   (exit $ac_status); } >/dev/null; then
11893   if test -s conftest.err; then
11894     ac_cpp_err=$ac_c_preproc_warn_flag
11895     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11896   else
11897     ac_cpp_err=
11898   fi
11899 else
11900   ac_cpp_err=yes
11901 fi
11902 if test -z "$ac_cpp_err"; then
11903   ac_header_preproc=yes
11904 else
11905   echo "$as_me: failed program was:" >&5
11906 sed 's/^/| /' conftest.$ac_ext >&5
11907
11908   ac_header_preproc=no
11909 fi
11910
11911 rm -f conftest.err conftest.$ac_ext
11912 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11913 echo "${ECHO_T}$ac_header_preproc" >&6; }
11914
11915 # So?  What about this header?
11916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11917   yes:no: )
11918     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11920     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11922     ac_header_preproc=yes
11923     ;;
11924   no:yes:* )
11925     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11926 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11927     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11928 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11929     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11930 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11931     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11932 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11933     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11935     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11936 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11937     ( cat <<\_ASBOX
11938 ## ----------------------------------- ##
11939 ## Report this to llvmbugs@cs.uiuc.edu ##
11940 ## ----------------------------------- ##
11941 _ASBOX
11942      ) | sed "s/^/$as_me: WARNING:     /" >&2
11943     ;;
11944 esac
11945 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11948   echo $ECHO_N "(cached) $ECHO_C" >&6
11949 else
11950   eval "$as_ac_Header=\$ac_header_preproc"
11951 fi
11952 ac_res=`eval echo '${'$as_ac_Header'}'`
11953                { echo "$as_me:$LINENO: result: $ac_res" >&5
11954 echo "${ECHO_T}$ac_res" >&6; }
11955
11956 fi
11957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11958   cat >>confdefs.h <<_ACEOF
11959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11960 _ACEOF
11961
11962 fi
11963
11964 done
11965
11966
11967
11968 for ac_header in string.h strings.h
11969 do
11970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11972   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11975   echo $ECHO_N "(cached) $ECHO_C" >&6
11976 fi
11977 ac_res=`eval echo '${'$as_ac_Header'}'`
11978                { echo "$as_me:$LINENO: result: $ac_res" >&5
11979 echo "${ECHO_T}$ac_res" >&6; }
11980 else
11981   # Is the header compilable?
11982 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11983 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11984 cat >conftest.$ac_ext <<_ACEOF
11985 /* confdefs.h.  */
11986 _ACEOF
11987 cat confdefs.h >>conftest.$ac_ext
11988 cat >>conftest.$ac_ext <<_ACEOF
11989 /* end confdefs.h.  */
11990 $ac_includes_default
11991 #include <$ac_header>
11992 _ACEOF
11993 rm -f conftest.$ac_objext
11994 if { (ac_try="$ac_compile"
11995 case "(($ac_try" in
11996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997   *) ac_try_echo=$ac_try;;
11998 esac
11999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12000   (eval "$ac_compile") 2>conftest.er1
12001   ac_status=$?
12002   grep -v '^ *+' conftest.er1 >conftest.err
12003   rm -f conftest.er1
12004   cat conftest.err >&5
12005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006   (exit $ac_status); } &&
12007          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12008   { (case "(($ac_try" in
12009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12010   *) ac_try_echo=$ac_try;;
12011 esac
12012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12013   (eval "$ac_try") 2>&5
12014   ac_status=$?
12015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016   (exit $ac_status); }; } &&
12017          { ac_try='test -s conftest.$ac_objext'
12018   { (case "(($ac_try" in
12019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12020   *) ac_try_echo=$ac_try;;
12021 esac
12022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12023   (eval "$ac_try") 2>&5
12024   ac_status=$?
12025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026   (exit $ac_status); }; }; then
12027   ac_header_compiler=yes
12028 else
12029   echo "$as_me: failed program was:" >&5
12030 sed 's/^/| /' conftest.$ac_ext >&5
12031
12032         ac_header_compiler=no
12033 fi
12034
12035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12036 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12037 echo "${ECHO_T}$ac_header_compiler" >&6; }
12038
12039 # Is the header present?
12040 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12041 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12042 cat >conftest.$ac_ext <<_ACEOF
12043 /* confdefs.h.  */
12044 _ACEOF
12045 cat confdefs.h >>conftest.$ac_ext
12046 cat >>conftest.$ac_ext <<_ACEOF
12047 /* end confdefs.h.  */
12048 #include <$ac_header>
12049 _ACEOF
12050 if { (ac_try="$ac_cpp conftest.$ac_ext"
12051 case "(($ac_try" in
12052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12053   *) ac_try_echo=$ac_try;;
12054 esac
12055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12056   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12057   ac_status=$?
12058   grep -v '^ *+' conftest.er1 >conftest.err
12059   rm -f conftest.er1
12060   cat conftest.err >&5
12061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062   (exit $ac_status); } >/dev/null; then
12063   if test -s conftest.err; then
12064     ac_cpp_err=$ac_c_preproc_warn_flag
12065     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12066   else
12067     ac_cpp_err=
12068   fi
12069 else
12070   ac_cpp_err=yes
12071 fi
12072 if test -z "$ac_cpp_err"; then
12073   ac_header_preproc=yes
12074 else
12075   echo "$as_me: failed program was:" >&5
12076 sed 's/^/| /' conftest.$ac_ext >&5
12077
12078   ac_header_preproc=no
12079 fi
12080
12081 rm -f conftest.err conftest.$ac_ext
12082 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12083 echo "${ECHO_T}$ac_header_preproc" >&6; }
12084
12085 # So?  What about this header?
12086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12087   yes:no: )
12088     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12089 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12090     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12091 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12092     ac_header_preproc=yes
12093     ;;
12094   no:yes:* )
12095     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12096 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12097     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12098 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12099     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12100 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12101     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12102 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12103     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12104 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12105     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12106 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12107     ( cat <<\_ASBOX
12108 ## ----------------------------------- ##
12109 ## Report this to llvmbugs@cs.uiuc.edu ##
12110 ## ----------------------------------- ##
12111 _ASBOX
12112      ) | sed "s/^/$as_me: WARNING:     /" >&2
12113     ;;
12114 esac
12115 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12118   echo $ECHO_N "(cached) $ECHO_C" >&6
12119 else
12120   eval "$as_ac_Header=\$ac_header_preproc"
12121 fi
12122 ac_res=`eval echo '${'$as_ac_Header'}'`
12123                { echo "$as_me:$LINENO: result: $ac_res" >&5
12124 echo "${ECHO_T}$ac_res" >&6; }
12125
12126 fi
12127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12128   cat >>confdefs.h <<_ACEOF
12129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12130 _ACEOF
12131  break
12132 fi
12133
12134 done
12135
12136
12137
12138
12139 for ac_func in strchr index
12140 do
12141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12142 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12144 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12145   echo $ECHO_N "(cached) $ECHO_C" >&6
12146 else
12147   cat >conftest.$ac_ext <<_ACEOF
12148 /* confdefs.h.  */
12149 _ACEOF
12150 cat confdefs.h >>conftest.$ac_ext
12151 cat >>conftest.$ac_ext <<_ACEOF
12152 /* end confdefs.h.  */
12153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12154    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12155 #define $ac_func innocuous_$ac_func
12156
12157 /* System header to define __stub macros and hopefully few prototypes,
12158     which can conflict with char $ac_func (); below.
12159     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12160     <limits.h> exists even on freestanding compilers.  */
12161
12162 #ifdef __STDC__
12163 # include <limits.h>
12164 #else
12165 # include <assert.h>
12166 #endif
12167
12168 #undef $ac_func
12169
12170 /* Override any GCC internal prototype to avoid an error.
12171    Use char because int might match the return type of a GCC
12172    builtin and then its argument prototype would still apply.  */
12173 #ifdef __cplusplus
12174 extern "C"
12175 #endif
12176 char $ac_func ();
12177 /* The GNU C library defines this for functions which it implements
12178     to always fail with ENOSYS.  Some functions are actually named
12179     something starting with __ and the normal name is an alias.  */
12180 #if defined __stub_$ac_func || defined __stub___$ac_func
12181 choke me
12182 #endif
12183
12184 int
12185 main ()
12186 {
12187 return $ac_func ();
12188   ;
12189   return 0;
12190 }
12191 _ACEOF
12192 rm -f conftest.$ac_objext conftest$ac_exeext
12193 if { (ac_try="$ac_link"
12194 case "(($ac_try" in
12195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12196   *) ac_try_echo=$ac_try;;
12197 esac
12198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12199   (eval "$ac_link") 2>conftest.er1
12200   ac_status=$?
12201   grep -v '^ *+' conftest.er1 >conftest.err
12202   rm -f conftest.er1
12203   cat conftest.err >&5
12204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205   (exit $ac_status); } &&
12206          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12207   { (case "(($ac_try" in
12208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209   *) ac_try_echo=$ac_try;;
12210 esac
12211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12212   (eval "$ac_try") 2>&5
12213   ac_status=$?
12214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215   (exit $ac_status); }; } &&
12216          { ac_try='test -s conftest$ac_exeext'
12217   { (case "(($ac_try" in
12218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12219   *) ac_try_echo=$ac_try;;
12220 esac
12221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12222   (eval "$ac_try") 2>&5
12223   ac_status=$?
12224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225   (exit $ac_status); }; }; then
12226   eval "$as_ac_var=yes"
12227 else
12228   echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12230
12231         eval "$as_ac_var=no"
12232 fi
12233
12234 rm -f core conftest.err conftest.$ac_objext \
12235       conftest$ac_exeext conftest.$ac_ext
12236 fi
12237 ac_res=`eval echo '${'$as_ac_var'}'`
12238                { echo "$as_me:$LINENO: result: $ac_res" >&5
12239 echo "${ECHO_T}$ac_res" >&6; }
12240 if test `eval echo '${'$as_ac_var'}'` = yes; then
12241   cat >>confdefs.h <<_ACEOF
12242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12243 _ACEOF
12244  break
12245 fi
12246 done
12247
12248
12249
12250 for ac_func in strrchr rindex
12251 do
12252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12253 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12255 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12256   echo $ECHO_N "(cached) $ECHO_C" >&6
12257 else
12258   cat >conftest.$ac_ext <<_ACEOF
12259 /* confdefs.h.  */
12260 _ACEOF
12261 cat confdefs.h >>conftest.$ac_ext
12262 cat >>conftest.$ac_ext <<_ACEOF
12263 /* end confdefs.h.  */
12264 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12265    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12266 #define $ac_func innocuous_$ac_func
12267
12268 /* System header to define __stub macros and hopefully few prototypes,
12269     which can conflict with char $ac_func (); below.
12270     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12271     <limits.h> exists even on freestanding compilers.  */
12272
12273 #ifdef __STDC__
12274 # include <limits.h>
12275 #else
12276 # include <assert.h>
12277 #endif
12278
12279 #undef $ac_func
12280
12281 /* Override any GCC internal prototype to avoid an error.
12282    Use char because int might match the return type of a GCC
12283    builtin and then its argument prototype would still apply.  */
12284 #ifdef __cplusplus
12285 extern "C"
12286 #endif
12287 char $ac_func ();
12288 /* The GNU C library defines this for functions which it implements
12289     to always fail with ENOSYS.  Some functions are actually named
12290     something starting with __ and the normal name is an alias.  */
12291 #if defined __stub_$ac_func || defined __stub___$ac_func
12292 choke me
12293 #endif
12294
12295 int
12296 main ()
12297 {
12298 return $ac_func ();
12299   ;
12300   return 0;
12301 }
12302 _ACEOF
12303 rm -f conftest.$ac_objext conftest$ac_exeext
12304 if { (ac_try="$ac_link"
12305 case "(($ac_try" in
12306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12307   *) ac_try_echo=$ac_try;;
12308 esac
12309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12310   (eval "$ac_link") 2>conftest.er1
12311   ac_status=$?
12312   grep -v '^ *+' conftest.er1 >conftest.err
12313   rm -f conftest.er1
12314   cat conftest.err >&5
12315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316   (exit $ac_status); } &&
12317          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12318   { (case "(($ac_try" in
12319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12320   *) ac_try_echo=$ac_try;;
12321 esac
12322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12323   (eval "$ac_try") 2>&5
12324   ac_status=$?
12325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326   (exit $ac_status); }; } &&
12327          { ac_try='test -s conftest$ac_exeext'
12328   { (case "(($ac_try" in
12329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12330   *) ac_try_echo=$ac_try;;
12331 esac
12332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12333   (eval "$ac_try") 2>&5
12334   ac_status=$?
12335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336   (exit $ac_status); }; }; then
12337   eval "$as_ac_var=yes"
12338 else
12339   echo "$as_me: failed program was:" >&5
12340 sed 's/^/| /' conftest.$ac_ext >&5
12341
12342         eval "$as_ac_var=no"
12343 fi
12344
12345 rm -f core conftest.err conftest.$ac_objext \
12346       conftest$ac_exeext conftest.$ac_ext
12347 fi
12348 ac_res=`eval echo '${'$as_ac_var'}'`
12349                { echo "$as_me:$LINENO: result: $ac_res" >&5
12350 echo "${ECHO_T}$ac_res" >&6; }
12351 if test `eval echo '${'$as_ac_var'}'` = yes; then
12352   cat >>confdefs.h <<_ACEOF
12353 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12354 _ACEOF
12355  break
12356 fi
12357 done
12358
12359
12360
12361 for ac_func in memcpy bcopy
12362 do
12363 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12364 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12365 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12366 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12367   echo $ECHO_N "(cached) $ECHO_C" >&6
12368 else
12369   cat >conftest.$ac_ext <<_ACEOF
12370 /* confdefs.h.  */
12371 _ACEOF
12372 cat confdefs.h >>conftest.$ac_ext
12373 cat >>conftest.$ac_ext <<_ACEOF
12374 /* end confdefs.h.  */
12375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12376    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12377 #define $ac_func innocuous_$ac_func
12378
12379 /* System header to define __stub macros and hopefully few prototypes,
12380     which can conflict with char $ac_func (); below.
12381     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12382     <limits.h> exists even on freestanding compilers.  */
12383
12384 #ifdef __STDC__
12385 # include <limits.h>
12386 #else
12387 # include <assert.h>
12388 #endif
12389
12390 #undef $ac_func
12391
12392 /* Override any GCC internal prototype to avoid an error.
12393    Use char because int might match the return type of a GCC
12394    builtin and then its argument prototype would still apply.  */
12395 #ifdef __cplusplus
12396 extern "C"
12397 #endif
12398 char $ac_func ();
12399 /* The GNU C library defines this for functions which it implements
12400     to always fail with ENOSYS.  Some functions are actually named
12401     something starting with __ and the normal name is an alias.  */
12402 #if defined __stub_$ac_func || defined __stub___$ac_func
12403 choke me
12404 #endif
12405
12406 int
12407 main ()
12408 {
12409 return $ac_func ();
12410   ;
12411   return 0;
12412 }
12413 _ACEOF
12414 rm -f conftest.$ac_objext conftest$ac_exeext
12415 if { (ac_try="$ac_link"
12416 case "(($ac_try" in
12417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12418   *) ac_try_echo=$ac_try;;
12419 esac
12420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12421   (eval "$ac_link") 2>conftest.er1
12422   ac_status=$?
12423   grep -v '^ *+' conftest.er1 >conftest.err
12424   rm -f conftest.er1
12425   cat conftest.err >&5
12426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427   (exit $ac_status); } &&
12428          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12429   { (case "(($ac_try" in
12430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12431   *) ac_try_echo=$ac_try;;
12432 esac
12433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12434   (eval "$ac_try") 2>&5
12435   ac_status=$?
12436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437   (exit $ac_status); }; } &&
12438          { ac_try='test -s conftest$ac_exeext'
12439   { (case "(($ac_try" in
12440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12441   *) ac_try_echo=$ac_try;;
12442 esac
12443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12444   (eval "$ac_try") 2>&5
12445   ac_status=$?
12446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447   (exit $ac_status); }; }; then
12448   eval "$as_ac_var=yes"
12449 else
12450   echo "$as_me: failed program was:" >&5
12451 sed 's/^/| /' conftest.$ac_ext >&5
12452
12453         eval "$as_ac_var=no"
12454 fi
12455
12456 rm -f core conftest.err conftest.$ac_objext \
12457       conftest$ac_exeext conftest.$ac_ext
12458 fi
12459 ac_res=`eval echo '${'$as_ac_var'}'`
12460                { echo "$as_me:$LINENO: result: $ac_res" >&5
12461 echo "${ECHO_T}$ac_res" >&6; }
12462 if test `eval echo '${'$as_ac_var'}'` = yes; then
12463   cat >>confdefs.h <<_ACEOF
12464 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12465 _ACEOF
12466  break
12467 fi
12468 done
12469
12470
12471
12472 for ac_func in memmove strcmp
12473 do
12474 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12475 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12476 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12477 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12478   echo $ECHO_N "(cached) $ECHO_C" >&6
12479 else
12480   cat >conftest.$ac_ext <<_ACEOF
12481 /* confdefs.h.  */
12482 _ACEOF
12483 cat confdefs.h >>conftest.$ac_ext
12484 cat >>conftest.$ac_ext <<_ACEOF
12485 /* end confdefs.h.  */
12486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12487    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12488 #define $ac_func innocuous_$ac_func
12489
12490 /* System header to define __stub macros and hopefully few prototypes,
12491     which can conflict with char $ac_func (); below.
12492     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12493     <limits.h> exists even on freestanding compilers.  */
12494
12495 #ifdef __STDC__
12496 # include <limits.h>
12497 #else
12498 # include <assert.h>
12499 #endif
12500
12501 #undef $ac_func
12502
12503 /* Override any GCC internal prototype to avoid an error.
12504    Use char because int might match the return type of a GCC
12505    builtin and then its argument prototype would still apply.  */
12506 #ifdef __cplusplus
12507 extern "C"
12508 #endif
12509 char $ac_func ();
12510 /* The GNU C library defines this for functions which it implements
12511     to always fail with ENOSYS.  Some functions are actually named
12512     something starting with __ and the normal name is an alias.  */
12513 #if defined __stub_$ac_func || defined __stub___$ac_func
12514 choke me
12515 #endif
12516
12517 int
12518 main ()
12519 {
12520 return $ac_func ();
12521   ;
12522   return 0;
12523 }
12524 _ACEOF
12525 rm -f conftest.$ac_objext conftest$ac_exeext
12526 if { (ac_try="$ac_link"
12527 case "(($ac_try" in
12528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12529   *) ac_try_echo=$ac_try;;
12530 esac
12531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12532   (eval "$ac_link") 2>conftest.er1
12533   ac_status=$?
12534   grep -v '^ *+' conftest.er1 >conftest.err
12535   rm -f conftest.er1
12536   cat conftest.err >&5
12537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538   (exit $ac_status); } &&
12539          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12540   { (case "(($ac_try" in
12541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12542   *) ac_try_echo=$ac_try;;
12543 esac
12544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12545   (eval "$ac_try") 2>&5
12546   ac_status=$?
12547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548   (exit $ac_status); }; } &&
12549          { ac_try='test -s conftest$ac_exeext'
12550   { (case "(($ac_try" in
12551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12552   *) ac_try_echo=$ac_try;;
12553 esac
12554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12555   (eval "$ac_try") 2>&5
12556   ac_status=$?
12557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558   (exit $ac_status); }; }; then
12559   eval "$as_ac_var=yes"
12560 else
12561   echo "$as_me: failed program was:" >&5
12562 sed 's/^/| /' conftest.$ac_ext >&5
12563
12564         eval "$as_ac_var=no"
12565 fi
12566
12567 rm -f core conftest.err conftest.$ac_objext \
12568       conftest$ac_exeext conftest.$ac_ext
12569 fi
12570 ac_res=`eval echo '${'$as_ac_var'}'`
12571                { echo "$as_me:$LINENO: result: $ac_res" >&5
12572 echo "${ECHO_T}$ac_res" >&6; }
12573 if test `eval echo '${'$as_ac_var'}'` = yes; then
12574   cat >>confdefs.h <<_ACEOF
12575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12576 _ACEOF
12577
12578 fi
12579 done
12580
12581
12582
12583
12584 for ac_func in closedir opendir readdir
12585 do
12586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12587 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12589 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12590   echo $ECHO_N "(cached) $ECHO_C" >&6
12591 else
12592   cat >conftest.$ac_ext <<_ACEOF
12593 /* confdefs.h.  */
12594 _ACEOF
12595 cat confdefs.h >>conftest.$ac_ext
12596 cat >>conftest.$ac_ext <<_ACEOF
12597 /* end confdefs.h.  */
12598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12599    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12600 #define $ac_func innocuous_$ac_func
12601
12602 /* System header to define __stub macros and hopefully few prototypes,
12603     which can conflict with char $ac_func (); below.
12604     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12605     <limits.h> exists even on freestanding compilers.  */
12606
12607 #ifdef __STDC__
12608 # include <limits.h>
12609 #else
12610 # include <assert.h>
12611 #endif
12612
12613 #undef $ac_func
12614
12615 /* Override any GCC internal prototype to avoid an error.
12616    Use char because int might match the return type of a GCC
12617    builtin and then its argument prototype would still apply.  */
12618 #ifdef __cplusplus
12619 extern "C"
12620 #endif
12621 char $ac_func ();
12622 /* The GNU C library defines this for functions which it implements
12623     to always fail with ENOSYS.  Some functions are actually named
12624     something starting with __ and the normal name is an alias.  */
12625 #if defined __stub_$ac_func || defined __stub___$ac_func
12626 choke me
12627 #endif
12628
12629 int
12630 main ()
12631 {
12632 return $ac_func ();
12633   ;
12634   return 0;
12635 }
12636 _ACEOF
12637 rm -f conftest.$ac_objext conftest$ac_exeext
12638 if { (ac_try="$ac_link"
12639 case "(($ac_try" in
12640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12641   *) ac_try_echo=$ac_try;;
12642 esac
12643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12644   (eval "$ac_link") 2>conftest.er1
12645   ac_status=$?
12646   grep -v '^ *+' conftest.er1 >conftest.err
12647   rm -f conftest.er1
12648   cat conftest.err >&5
12649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650   (exit $ac_status); } &&
12651          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12652   { (case "(($ac_try" in
12653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12654   *) ac_try_echo=$ac_try;;
12655 esac
12656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12657   (eval "$ac_try") 2>&5
12658   ac_status=$?
12659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660   (exit $ac_status); }; } &&
12661          { ac_try='test -s conftest$ac_exeext'
12662   { (case "(($ac_try" in
12663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12664   *) ac_try_echo=$ac_try;;
12665 esac
12666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12667   (eval "$ac_try") 2>&5
12668   ac_status=$?
12669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670   (exit $ac_status); }; }; then
12671   eval "$as_ac_var=yes"
12672 else
12673   echo "$as_me: failed program was:" >&5
12674 sed 's/^/| /' conftest.$ac_ext >&5
12675
12676         eval "$as_ac_var=no"
12677 fi
12678
12679 rm -f core conftest.err conftest.$ac_objext \
12680       conftest$ac_exeext conftest.$ac_ext
12681 fi
12682 ac_res=`eval echo '${'$as_ac_var'}'`
12683                { echo "$as_me:$LINENO: result: $ac_res" >&5
12684 echo "${ECHO_T}$ac_res" >&6; }
12685 if test `eval echo '${'$as_ac_var'}'` = yes; then
12686   cat >>confdefs.h <<_ACEOF
12687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12688 _ACEOF
12689
12690 fi
12691 done
12692
12693
12694
12695 if test "$WITH_LLVMGCCDIR" = "default" ; then
12696   LLVMGCC="llvm-gcc${EXEEXT}"
12697   LLVMGXX="llvm-g++${EXEEXT}"
12698   LLVMGCCCOMMAND="$LLVMGCC"
12699   LLVMGXXCOMMAND="$LLVMGXX"
12700   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12701
12702   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12703
12704   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12705 set dummy $LLVMGCC; ac_word=$2
12706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12708 if test "${ac_cv_path_LLVMGCC+set}" = set; then
12709   echo $ECHO_N "(cached) $ECHO_C" >&6
12710 else
12711   case $LLVMGCC in
12712   [\\/]* | ?:[\\/]*)
12713   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12714   ;;
12715   *)
12716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12717 for as_dir in $PATH
12718 do
12719   IFS=$as_save_IFS
12720   test -z "$as_dir" && as_dir=.
12721   for ac_exec_ext in '' $ac_executable_extensions; do
12722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12723     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
12724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12725     break 2
12726   fi
12727 done
12728 done
12729 IFS=$as_save_IFS
12730
12731   ;;
12732 esac
12733 fi
12734 LLVMGCC=$ac_cv_path_LLVMGCC
12735 if test -n "$LLVMGCC"; then
12736   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12737 echo "${ECHO_T}$LLVMGCC" >&6; }
12738 else
12739   { echo "$as_me:$LINENO: result: no" >&5
12740 echo "${ECHO_T}no" >&6; }
12741 fi
12742
12743
12744   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12745 set dummy $LLVMGXX; ac_word=$2
12746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12748 if test "${ac_cv_path_LLVMGXX+set}" = set; then
12749   echo $ECHO_N "(cached) $ECHO_C" >&6
12750 else
12751   case $LLVMGXX in
12752   [\\/]* | ?:[\\/]*)
12753   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12754   ;;
12755   *)
12756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12757 for as_dir in $PATH
12758 do
12759   IFS=$as_save_IFS
12760   test -z "$as_dir" && as_dir=.
12761   for ac_exec_ext in '' $ac_executable_extensions; do
12762   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12763     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
12764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12765     break 2
12766   fi
12767 done
12768 done
12769 IFS=$as_save_IFS
12770
12771   ;;
12772 esac
12773 fi
12774 LLVMGXX=$ac_cv_path_LLVMGXX
12775 if test -n "$LLVMGXX"; then
12776   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12777 echo "${ECHO_T}$LLVMGXX" >&6; }
12778 else
12779   { echo "$as_me:$LINENO: result: no" >&5
12780 echo "${ECHO_T}no" >&6; }
12781 fi
12782
12783
12784 else
12785   if test -z "$LLVMGCC"; then
12786     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
12787     LLVMGCCCOMMAND="$LLVMGCC"
12788   fi
12789   if test -z "$LLVMGXX"; then
12790     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
12791     LLVMGXXCOMMAND="$LLVMGXX"
12792   fi
12793
12794   LLVMGCC=$LLVMGCC
12795
12796   LLVMGXX=$LLVMGXX
12797
12798   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12799
12800   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12801
12802 fi
12803
12804
12805 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12806 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12807
12808 ICC=no
12809 IXX=no
12810 case $CC in
12811   icc*|icpc*)
12812     ICC=yes
12813     IXX=yes
12814     ;;
12815    *)
12816     ;;
12817 esac
12818
12819 if test "$GCC" != "yes" && test "$ICC" != "yes"
12820 then
12821   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12822 echo "$as_me: error: gcc|icc required but not found" >&2;}
12823    { (exit 1); exit 1; }; }
12824 fi
12825
12826 if test "$GXX" != "yes" && test "$IXX" != "yes"
12827 then
12828   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
12829 echo "$as_me: error: g++|icc required but not found" >&2;}
12830    { (exit 1); exit 1; }; }
12831 fi
12832
12833 if test "$GCC" = "yes"
12834 then
12835   cat >conftest.$ac_ext <<_ACEOF
12836 #if !defined(__GNUC__) || __GNUC__ < 3
12837 #error Unsupported GCC version
12838 #endif
12839
12840 _ACEOF
12841 rm -f conftest.$ac_objext
12842 if { (ac_try="$ac_compile"
12843 case "(($ac_try" in
12844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12845   *) ac_try_echo=$ac_try;;
12846 esac
12847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12848   (eval "$ac_compile") 2>conftest.er1
12849   ac_status=$?
12850   grep -v '^ *+' conftest.er1 >conftest.err
12851   rm -f conftest.er1
12852   cat conftest.err >&5
12853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854   (exit $ac_status); } &&
12855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12856   { (case "(($ac_try" in
12857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12858   *) ac_try_echo=$ac_try;;
12859 esac
12860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12861   (eval "$ac_try") 2>&5
12862   ac_status=$?
12863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864   (exit $ac_status); }; } &&
12865          { ac_try='test -s conftest.$ac_objext'
12866   { (case "(($ac_try" in
12867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12868   *) ac_try_echo=$ac_try;;
12869 esac
12870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12871   (eval "$ac_try") 2>&5
12872   ac_status=$?
12873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874   (exit $ac_status); }; }; then
12875   :
12876 else
12877   echo "$as_me: failed program was:" >&5
12878 sed 's/^/| /' conftest.$ac_ext >&5
12879
12880         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12881 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12882    { (exit 1); exit 1; }; }
12883 fi
12884
12885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12886 fi
12887
12888 if test -z "$llvm_cv_gnu_make_command"
12889 then
12890   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12891 echo "$as_me: error: GNU Make required but not found" >&2;}
12892    { (exit 1); exit 1; }; }
12893 fi
12894
12895 { echo "$as_me:$LINENO: result: ok" >&5
12896 echo "${ECHO_T}ok" >&6; }
12897
12898 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12899 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12900 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12901
12902 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12903
12904 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12905 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12906
12907
12908
12909 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12910 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12911 if test "${ac_cv_lib_m_sin+set}" = set; then
12912   echo $ECHO_N "(cached) $ECHO_C" >&6
12913 else
12914   ac_check_lib_save_LIBS=$LIBS
12915 LIBS="-lm  $LIBS"
12916 cat >conftest.$ac_ext <<_ACEOF
12917 /* confdefs.h.  */
12918 _ACEOF
12919 cat confdefs.h >>conftest.$ac_ext
12920 cat >>conftest.$ac_ext <<_ACEOF
12921 /* end confdefs.h.  */
12922
12923 /* Override any GCC internal prototype to avoid an error.
12924    Use char because int might match the return type of a GCC
12925    builtin and then its argument prototype would still apply.  */
12926 #ifdef __cplusplus
12927 extern "C"
12928 #endif
12929 char sin ();
12930 int
12931 main ()
12932 {
12933 return sin ();
12934   ;
12935   return 0;
12936 }
12937 _ACEOF
12938 rm -f conftest.$ac_objext conftest$ac_exeext
12939 if { (ac_try="$ac_link"
12940 case "(($ac_try" in
12941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12942   *) ac_try_echo=$ac_try;;
12943 esac
12944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12945   (eval "$ac_link") 2>conftest.er1
12946   ac_status=$?
12947   grep -v '^ *+' conftest.er1 >conftest.err
12948   rm -f conftest.er1
12949   cat conftest.err >&5
12950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951   (exit $ac_status); } &&
12952          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12953   { (case "(($ac_try" in
12954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12955   *) ac_try_echo=$ac_try;;
12956 esac
12957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12958   (eval "$ac_try") 2>&5
12959   ac_status=$?
12960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961   (exit $ac_status); }; } &&
12962          { ac_try='test -s conftest$ac_exeext'
12963   { (case "(($ac_try" in
12964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12965   *) ac_try_echo=$ac_try;;
12966 esac
12967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12968   (eval "$ac_try") 2>&5
12969   ac_status=$?
12970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971   (exit $ac_status); }; }; then
12972   ac_cv_lib_m_sin=yes
12973 else
12974   echo "$as_me: failed program was:" >&5
12975 sed 's/^/| /' conftest.$ac_ext >&5
12976
12977         ac_cv_lib_m_sin=no
12978 fi
12979
12980 rm -f core conftest.err conftest.$ac_objext \
12981       conftest$ac_exeext conftest.$ac_ext
12982 LIBS=$ac_check_lib_save_LIBS
12983 fi
12984 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12985 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12986 if test $ac_cv_lib_m_sin = yes; then
12987   cat >>confdefs.h <<_ACEOF
12988 #define HAVE_LIBM 1
12989 _ACEOF
12990
12991   LIBS="-lm $LIBS"
12992
12993 fi
12994
12995 if test "$llvm_cv_os_type" = "MingW" ; then
12996
12997 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12998 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12999 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13000   echo $ECHO_N "(cached) $ECHO_C" >&6
13001 else
13002   ac_check_lib_save_LIBS=$LIBS
13003 LIBS="-limagehlp  $LIBS"
13004 cat >conftest.$ac_ext <<_ACEOF
13005 /* confdefs.h.  */
13006 _ACEOF
13007 cat confdefs.h >>conftest.$ac_ext
13008 cat >>conftest.$ac_ext <<_ACEOF
13009 /* end confdefs.h.  */
13010
13011
13012 int
13013 main ()
13014 {
13015 return main ();
13016   ;
13017   return 0;
13018 }
13019 _ACEOF
13020 rm -f conftest.$ac_objext conftest$ac_exeext
13021 if { (ac_try="$ac_link"
13022 case "(($ac_try" in
13023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13024   *) ac_try_echo=$ac_try;;
13025 esac
13026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13027   (eval "$ac_link") 2>conftest.er1
13028   ac_status=$?
13029   grep -v '^ *+' conftest.er1 >conftest.err
13030   rm -f conftest.er1
13031   cat conftest.err >&5
13032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033   (exit $ac_status); } &&
13034          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13035   { (case "(($ac_try" in
13036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13037   *) ac_try_echo=$ac_try;;
13038 esac
13039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13040   (eval "$ac_try") 2>&5
13041   ac_status=$?
13042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043   (exit $ac_status); }; } &&
13044          { ac_try='test -s conftest$ac_exeext'
13045   { (case "(($ac_try" in
13046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13047   *) ac_try_echo=$ac_try;;
13048 esac
13049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13050   (eval "$ac_try") 2>&5
13051   ac_status=$?
13052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053   (exit $ac_status); }; }; then
13054   ac_cv_lib_imagehlp_main=yes
13055 else
13056   echo "$as_me: failed program was:" >&5
13057 sed 's/^/| /' conftest.$ac_ext >&5
13058
13059         ac_cv_lib_imagehlp_main=no
13060 fi
13061
13062 rm -f core conftest.err conftest.$ac_objext \
13063       conftest$ac_exeext conftest.$ac_ext
13064 LIBS=$ac_check_lib_save_LIBS
13065 fi
13066 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13067 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13068 if test $ac_cv_lib_imagehlp_main = yes; then
13069   cat >>confdefs.h <<_ACEOF
13070 #define HAVE_LIBIMAGEHLP 1
13071 _ACEOF
13072
13073   LIBS="-limagehlp $LIBS"
13074
13075 fi
13076
13077
13078 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13079 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13080 if test "${ac_cv_lib_psapi_main+set}" = set; then
13081   echo $ECHO_N "(cached) $ECHO_C" >&6
13082 else
13083   ac_check_lib_save_LIBS=$LIBS
13084 LIBS="-lpsapi  $LIBS"
13085 cat >conftest.$ac_ext <<_ACEOF
13086 /* confdefs.h.  */
13087 _ACEOF
13088 cat confdefs.h >>conftest.$ac_ext
13089 cat >>conftest.$ac_ext <<_ACEOF
13090 /* end confdefs.h.  */
13091
13092
13093 int
13094 main ()
13095 {
13096 return main ();
13097   ;
13098   return 0;
13099 }
13100 _ACEOF
13101 rm -f conftest.$ac_objext conftest$ac_exeext
13102 if { (ac_try="$ac_link"
13103 case "(($ac_try" in
13104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13105   *) ac_try_echo=$ac_try;;
13106 esac
13107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13108   (eval "$ac_link") 2>conftest.er1
13109   ac_status=$?
13110   grep -v '^ *+' conftest.er1 >conftest.err
13111   rm -f conftest.er1
13112   cat conftest.err >&5
13113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114   (exit $ac_status); } &&
13115          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13116   { (case "(($ac_try" in
13117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13118   *) ac_try_echo=$ac_try;;
13119 esac
13120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13121   (eval "$ac_try") 2>&5
13122   ac_status=$?
13123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124   (exit $ac_status); }; } &&
13125          { ac_try='test -s conftest$ac_exeext'
13126   { (case "(($ac_try" in
13127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13128   *) ac_try_echo=$ac_try;;
13129 esac
13130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13131   (eval "$ac_try") 2>&5
13132   ac_status=$?
13133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134   (exit $ac_status); }; }; then
13135   ac_cv_lib_psapi_main=yes
13136 else
13137   echo "$as_me: failed program was:" >&5
13138 sed 's/^/| /' conftest.$ac_ext >&5
13139
13140         ac_cv_lib_psapi_main=no
13141 fi
13142
13143 rm -f core conftest.err conftest.$ac_objext \
13144       conftest$ac_exeext conftest.$ac_ext
13145 LIBS=$ac_check_lib_save_LIBS
13146 fi
13147 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13148 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13149 if test $ac_cv_lib_psapi_main = yes; then
13150   cat >>confdefs.h <<_ACEOF
13151 #define HAVE_LIBPSAPI 1
13152 _ACEOF
13153
13154   LIBS="-lpsapi $LIBS"
13155
13156 fi
13157
13158 fi
13159
13160 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13161 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13162 if test "${ac_cv_search_dlopen+set}" = set; then
13163   echo $ECHO_N "(cached) $ECHO_C" >&6
13164 else
13165   ac_func_search_save_LIBS=$LIBS
13166 cat >conftest.$ac_ext <<_ACEOF
13167 /* confdefs.h.  */
13168 _ACEOF
13169 cat confdefs.h >>conftest.$ac_ext
13170 cat >>conftest.$ac_ext <<_ACEOF
13171 /* end confdefs.h.  */
13172
13173 /* Override any GCC internal prototype to avoid an error.
13174    Use char because int might match the return type of a GCC
13175    builtin and then its argument prototype would still apply.  */
13176 #ifdef __cplusplus
13177 extern "C"
13178 #endif
13179 char dlopen ();
13180 int
13181 main ()
13182 {
13183 return dlopen ();
13184   ;
13185   return 0;
13186 }
13187 _ACEOF
13188 for ac_lib in '' dl; do
13189   if test -z "$ac_lib"; then
13190     ac_res="none required"
13191   else
13192     ac_res=-l$ac_lib
13193     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13194   fi
13195   rm -f conftest.$ac_objext conftest$ac_exeext
13196 if { (ac_try="$ac_link"
13197 case "(($ac_try" in
13198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13199   *) ac_try_echo=$ac_try;;
13200 esac
13201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13202   (eval "$ac_link") 2>conftest.er1
13203   ac_status=$?
13204   grep -v '^ *+' conftest.er1 >conftest.err
13205   rm -f conftest.er1
13206   cat conftest.err >&5
13207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208   (exit $ac_status); } &&
13209          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13210   { (case "(($ac_try" in
13211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13212   *) ac_try_echo=$ac_try;;
13213 esac
13214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13215   (eval "$ac_try") 2>&5
13216   ac_status=$?
13217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218   (exit $ac_status); }; } &&
13219          { ac_try='test -s conftest$ac_exeext'
13220   { (case "(($ac_try" in
13221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13222   *) ac_try_echo=$ac_try;;
13223 esac
13224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13225   (eval "$ac_try") 2>&5
13226   ac_status=$?
13227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228   (exit $ac_status); }; }; then
13229   ac_cv_search_dlopen=$ac_res
13230 else
13231   echo "$as_me: failed program was:" >&5
13232 sed 's/^/| /' conftest.$ac_ext >&5
13233
13234
13235 fi
13236
13237 rm -f core conftest.err conftest.$ac_objext \
13238       conftest$ac_exeext
13239   if test "${ac_cv_search_dlopen+set}" = set; then
13240   break
13241 fi
13242 done
13243 if test "${ac_cv_search_dlopen+set}" = set; then
13244   :
13245 else
13246   ac_cv_search_dlopen=no
13247 fi
13248 rm conftest.$ac_ext
13249 LIBS=$ac_func_search_save_LIBS
13250 fi
13251 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13252 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13253 ac_res=$ac_cv_search_dlopen
13254 if test "$ac_res" != no; then
13255   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13256
13257 cat >>confdefs.h <<\_ACEOF
13258 #define HAVE_DLOPEN 1
13259 _ACEOF
13260
13261 else
13262   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13263 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13264 fi
13265
13266
13267 if test "$llvm_cv_enable_libffi" = "yes" ; then
13268   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13269 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13270 if test "${ac_cv_search_ffi_call+set}" = set; then
13271   echo $ECHO_N "(cached) $ECHO_C" >&6
13272 else
13273   ac_func_search_save_LIBS=$LIBS
13274 cat >conftest.$ac_ext <<_ACEOF
13275 /* confdefs.h.  */
13276 _ACEOF
13277 cat confdefs.h >>conftest.$ac_ext
13278 cat >>conftest.$ac_ext <<_ACEOF
13279 /* end confdefs.h.  */
13280
13281 /* Override any GCC internal prototype to avoid an error.
13282    Use char because int might match the return type of a GCC
13283    builtin and then its argument prototype would still apply.  */
13284 #ifdef __cplusplus
13285 extern "C"
13286 #endif
13287 char ffi_call ();
13288 int
13289 main ()
13290 {
13291 return ffi_call ();
13292   ;
13293   return 0;
13294 }
13295 _ACEOF
13296 for ac_lib in '' ffi; do
13297   if test -z "$ac_lib"; then
13298     ac_res="none required"
13299   else
13300     ac_res=-l$ac_lib
13301     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13302   fi
13303   rm -f conftest.$ac_objext conftest$ac_exeext
13304 if { (ac_try="$ac_link"
13305 case "(($ac_try" in
13306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13307   *) ac_try_echo=$ac_try;;
13308 esac
13309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13310   (eval "$ac_link") 2>conftest.er1
13311   ac_status=$?
13312   grep -v '^ *+' conftest.er1 >conftest.err
13313   rm -f conftest.er1
13314   cat conftest.err >&5
13315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316   (exit $ac_status); } &&
13317          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13318   { (case "(($ac_try" in
13319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13320   *) ac_try_echo=$ac_try;;
13321 esac
13322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13323   (eval "$ac_try") 2>&5
13324   ac_status=$?
13325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326   (exit $ac_status); }; } &&
13327          { ac_try='test -s conftest$ac_exeext'
13328   { (case "(($ac_try" in
13329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13330   *) ac_try_echo=$ac_try;;
13331 esac
13332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13333   (eval "$ac_try") 2>&5
13334   ac_status=$?
13335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336   (exit $ac_status); }; }; then
13337   ac_cv_search_ffi_call=$ac_res
13338 else
13339   echo "$as_me: failed program was:" >&5
13340 sed 's/^/| /' conftest.$ac_ext >&5
13341
13342
13343 fi
13344
13345 rm -f core conftest.err conftest.$ac_objext \
13346       conftest$ac_exeext
13347   if test "${ac_cv_search_ffi_call+set}" = set; then
13348   break
13349 fi
13350 done
13351 if test "${ac_cv_search_ffi_call+set}" = set; then
13352   :
13353 else
13354   ac_cv_search_ffi_call=no
13355 fi
13356 rm conftest.$ac_ext
13357 LIBS=$ac_func_search_save_LIBS
13358 fi
13359 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13360 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13361 ac_res=$ac_cv_search_ffi_call
13362 if test "$ac_res" != no; then
13363   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13364
13365 cat >>confdefs.h <<\_ACEOF
13366 #define HAVE_FFI_CALL 1
13367 _ACEOF
13368
13369 else
13370   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13371 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13372    { (exit 1); exit 1; }; }
13373 fi
13374
13375 fi
13376
13377 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13378 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13379 if test "${ac_cv_search_mallinfo+set}" = set; then
13380   echo $ECHO_N "(cached) $ECHO_C" >&6
13381 else
13382   ac_func_search_save_LIBS=$LIBS
13383 cat >conftest.$ac_ext <<_ACEOF
13384 /* confdefs.h.  */
13385 _ACEOF
13386 cat confdefs.h >>conftest.$ac_ext
13387 cat >>conftest.$ac_ext <<_ACEOF
13388 /* end confdefs.h.  */
13389
13390 /* Override any GCC internal prototype to avoid an error.
13391    Use char because int might match the return type of a GCC
13392    builtin and then its argument prototype would still apply.  */
13393 #ifdef __cplusplus
13394 extern "C"
13395 #endif
13396 char mallinfo ();
13397 int
13398 main ()
13399 {
13400 return mallinfo ();
13401   ;
13402   return 0;
13403 }
13404 _ACEOF
13405 for ac_lib in '' malloc; do
13406   if test -z "$ac_lib"; then
13407     ac_res="none required"
13408   else
13409     ac_res=-l$ac_lib
13410     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13411   fi
13412   rm -f conftest.$ac_objext conftest$ac_exeext
13413 if { (ac_try="$ac_link"
13414 case "(($ac_try" in
13415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416   *) ac_try_echo=$ac_try;;
13417 esac
13418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419   (eval "$ac_link") 2>conftest.er1
13420   ac_status=$?
13421   grep -v '^ *+' conftest.er1 >conftest.err
13422   rm -f conftest.er1
13423   cat conftest.err >&5
13424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425   (exit $ac_status); } &&
13426          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13427   { (case "(($ac_try" in
13428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429   *) ac_try_echo=$ac_try;;
13430 esac
13431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432   (eval "$ac_try") 2>&5
13433   ac_status=$?
13434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435   (exit $ac_status); }; } &&
13436          { ac_try='test -s conftest$ac_exeext'
13437   { (case "(($ac_try" in
13438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439   *) ac_try_echo=$ac_try;;
13440 esac
13441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442   (eval "$ac_try") 2>&5
13443   ac_status=$?
13444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445   (exit $ac_status); }; }; then
13446   ac_cv_search_mallinfo=$ac_res
13447 else
13448   echo "$as_me: failed program was:" >&5
13449 sed 's/^/| /' conftest.$ac_ext >&5
13450
13451
13452 fi
13453
13454 rm -f core conftest.err conftest.$ac_objext \
13455       conftest$ac_exeext
13456   if test "${ac_cv_search_mallinfo+set}" = set; then
13457   break
13458 fi
13459 done
13460 if test "${ac_cv_search_mallinfo+set}" = set; then
13461   :
13462 else
13463   ac_cv_search_mallinfo=no
13464 fi
13465 rm conftest.$ac_ext
13466 LIBS=$ac_func_search_save_LIBS
13467 fi
13468 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13469 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13470 ac_res=$ac_cv_search_mallinfo
13471 if test "$ac_res" != no; then
13472   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13473
13474 cat >>confdefs.h <<\_ACEOF
13475 #define HAVE_MALLINFO 1
13476 _ACEOF
13477
13478 fi
13479
13480
13481 if test "$ENABLE_THREADS" -eq 1 ; then
13482
13483 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13484 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13485 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13486   echo $ECHO_N "(cached) $ECHO_C" >&6
13487 else
13488   ac_check_lib_save_LIBS=$LIBS
13489 LIBS="-lpthread  $LIBS"
13490 cat >conftest.$ac_ext <<_ACEOF
13491 /* confdefs.h.  */
13492 _ACEOF
13493 cat confdefs.h >>conftest.$ac_ext
13494 cat >>conftest.$ac_ext <<_ACEOF
13495 /* end confdefs.h.  */
13496
13497 /* Override any GCC internal prototype to avoid an error.
13498    Use char because int might match the return type of a GCC
13499    builtin and then its argument prototype would still apply.  */
13500 #ifdef __cplusplus
13501 extern "C"
13502 #endif
13503 char pthread_mutex_init ();
13504 int
13505 main ()
13506 {
13507 return pthread_mutex_init ();
13508   ;
13509   return 0;
13510 }
13511 _ACEOF
13512 rm -f conftest.$ac_objext conftest$ac_exeext
13513 if { (ac_try="$ac_link"
13514 case "(($ac_try" in
13515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13516   *) ac_try_echo=$ac_try;;
13517 esac
13518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13519   (eval "$ac_link") 2>conftest.er1
13520   ac_status=$?
13521   grep -v '^ *+' conftest.er1 >conftest.err
13522   rm -f conftest.er1
13523   cat conftest.err >&5
13524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525   (exit $ac_status); } &&
13526          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13527   { (case "(($ac_try" in
13528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13529   *) ac_try_echo=$ac_try;;
13530 esac
13531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13532   (eval "$ac_try") 2>&5
13533   ac_status=$?
13534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535   (exit $ac_status); }; } &&
13536          { ac_try='test -s conftest$ac_exeext'
13537   { (case "(($ac_try" in
13538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13539   *) ac_try_echo=$ac_try;;
13540 esac
13541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13542   (eval "$ac_try") 2>&5
13543   ac_status=$?
13544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545   (exit $ac_status); }; }; then
13546   ac_cv_lib_pthread_pthread_mutex_init=yes
13547 else
13548   echo "$as_me: failed program was:" >&5
13549 sed 's/^/| /' conftest.$ac_ext >&5
13550
13551         ac_cv_lib_pthread_pthread_mutex_init=no
13552 fi
13553
13554 rm -f core conftest.err conftest.$ac_objext \
13555       conftest$ac_exeext conftest.$ac_ext
13556 LIBS=$ac_check_lib_save_LIBS
13557 fi
13558 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13559 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13560 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13561   cat >>confdefs.h <<_ACEOF
13562 #define HAVE_LIBPTHREAD 1
13563 _ACEOF
13564
13565   LIBS="-lpthread $LIBS"
13566
13567 fi
13568
13569   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13570 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13571 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13572   echo $ECHO_N "(cached) $ECHO_C" >&6
13573 else
13574   ac_func_search_save_LIBS=$LIBS
13575 cat >conftest.$ac_ext <<_ACEOF
13576 /* confdefs.h.  */
13577 _ACEOF
13578 cat confdefs.h >>conftest.$ac_ext
13579 cat >>conftest.$ac_ext <<_ACEOF
13580 /* end confdefs.h.  */
13581
13582 /* Override any GCC internal prototype to avoid an error.
13583    Use char because int might match the return type of a GCC
13584    builtin and then its argument prototype would still apply.  */
13585 #ifdef __cplusplus
13586 extern "C"
13587 #endif
13588 char pthread_mutex_lock ();
13589 int
13590 main ()
13591 {
13592 return pthread_mutex_lock ();
13593   ;
13594   return 0;
13595 }
13596 _ACEOF
13597 for ac_lib in '' pthread; do
13598   if test -z "$ac_lib"; then
13599     ac_res="none required"
13600   else
13601     ac_res=-l$ac_lib
13602     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13603   fi
13604   rm -f conftest.$ac_objext conftest$ac_exeext
13605 if { (ac_try="$ac_link"
13606 case "(($ac_try" in
13607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13608   *) ac_try_echo=$ac_try;;
13609 esac
13610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13611   (eval "$ac_link") 2>conftest.er1
13612   ac_status=$?
13613   grep -v '^ *+' conftest.er1 >conftest.err
13614   rm -f conftest.er1
13615   cat conftest.err >&5
13616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617   (exit $ac_status); } &&
13618          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13619   { (case "(($ac_try" in
13620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13621   *) ac_try_echo=$ac_try;;
13622 esac
13623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13624   (eval "$ac_try") 2>&5
13625   ac_status=$?
13626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627   (exit $ac_status); }; } &&
13628          { ac_try='test -s conftest$ac_exeext'
13629   { (case "(($ac_try" in
13630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13631   *) ac_try_echo=$ac_try;;
13632 esac
13633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13634   (eval "$ac_try") 2>&5
13635   ac_status=$?
13636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637   (exit $ac_status); }; }; then
13638   ac_cv_search_pthread_mutex_lock=$ac_res
13639 else
13640   echo "$as_me: failed program was:" >&5
13641 sed 's/^/| /' conftest.$ac_ext >&5
13642
13643
13644 fi
13645
13646 rm -f core conftest.err conftest.$ac_objext \
13647       conftest$ac_exeext
13648   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13649   break
13650 fi
13651 done
13652 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13653   :
13654 else
13655   ac_cv_search_pthread_mutex_lock=no
13656 fi
13657 rm conftest.$ac_ext
13658 LIBS=$ac_func_search_save_LIBS
13659 fi
13660 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13661 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13662 ac_res=$ac_cv_search_pthread_mutex_lock
13663 if test "$ac_res" != no; then
13664   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13665
13666 cat >>confdefs.h <<\_ACEOF
13667 #define HAVE_PTHREAD_MUTEX_LOCK 1
13668 _ACEOF
13669
13670 fi
13671
13672   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13673 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13674 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13675   echo $ECHO_N "(cached) $ECHO_C" >&6
13676 else
13677   ac_func_search_save_LIBS=$LIBS
13678 cat >conftest.$ac_ext <<_ACEOF
13679 /* confdefs.h.  */
13680 _ACEOF
13681 cat confdefs.h >>conftest.$ac_ext
13682 cat >>conftest.$ac_ext <<_ACEOF
13683 /* end confdefs.h.  */
13684
13685 /* Override any GCC internal prototype to avoid an error.
13686    Use char because int might match the return type of a GCC
13687    builtin and then its argument prototype would still apply.  */
13688 #ifdef __cplusplus
13689 extern "C"
13690 #endif
13691 char pthread_rwlock_init ();
13692 int
13693 main ()
13694 {
13695 return pthread_rwlock_init ();
13696   ;
13697   return 0;
13698 }
13699 _ACEOF
13700 for ac_lib in '' pthread; do
13701   if test -z "$ac_lib"; then
13702     ac_res="none required"
13703   else
13704     ac_res=-l$ac_lib
13705     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13706   fi
13707   rm -f conftest.$ac_objext conftest$ac_exeext
13708 if { (ac_try="$ac_link"
13709 case "(($ac_try" in
13710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13711   *) ac_try_echo=$ac_try;;
13712 esac
13713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13714   (eval "$ac_link") 2>conftest.er1
13715   ac_status=$?
13716   grep -v '^ *+' conftest.er1 >conftest.err
13717   rm -f conftest.er1
13718   cat conftest.err >&5
13719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720   (exit $ac_status); } &&
13721          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13722   { (case "(($ac_try" in
13723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13724   *) ac_try_echo=$ac_try;;
13725 esac
13726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13727   (eval "$ac_try") 2>&5
13728   ac_status=$?
13729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730   (exit $ac_status); }; } &&
13731          { ac_try='test -s conftest$ac_exeext'
13732   { (case "(($ac_try" in
13733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13734   *) ac_try_echo=$ac_try;;
13735 esac
13736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13737   (eval "$ac_try") 2>&5
13738   ac_status=$?
13739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740   (exit $ac_status); }; }; then
13741   ac_cv_search_pthread_rwlock_init=$ac_res
13742 else
13743   echo "$as_me: failed program was:" >&5
13744 sed 's/^/| /' conftest.$ac_ext >&5
13745
13746
13747 fi
13748
13749 rm -f core conftest.err conftest.$ac_objext \
13750       conftest$ac_exeext
13751   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13752   break
13753 fi
13754 done
13755 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13756   :
13757 else
13758   ac_cv_search_pthread_rwlock_init=no
13759 fi
13760 rm conftest.$ac_ext
13761 LIBS=$ac_func_search_save_LIBS
13762 fi
13763 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13764 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13765 ac_res=$ac_cv_search_pthread_rwlock_init
13766 if test "$ac_res" != no; then
13767   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13768
13769 cat >>confdefs.h <<\_ACEOF
13770 #define HAVE_PTHREAD_RWLOCK_INIT 1
13771 _ACEOF
13772
13773 fi
13774
13775   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13776 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13777 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13778   echo $ECHO_N "(cached) $ECHO_C" >&6
13779 else
13780   ac_func_search_save_LIBS=$LIBS
13781 cat >conftest.$ac_ext <<_ACEOF
13782 /* confdefs.h.  */
13783 _ACEOF
13784 cat confdefs.h >>conftest.$ac_ext
13785 cat >>conftest.$ac_ext <<_ACEOF
13786 /* end confdefs.h.  */
13787
13788 /* Override any GCC internal prototype to avoid an error.
13789    Use char because int might match the return type of a GCC
13790    builtin and then its argument prototype would still apply.  */
13791 #ifdef __cplusplus
13792 extern "C"
13793 #endif
13794 char pthread_getspecific ();
13795 int
13796 main ()
13797 {
13798 return pthread_getspecific ();
13799   ;
13800   return 0;
13801 }
13802 _ACEOF
13803 for ac_lib in '' pthread; do
13804   if test -z "$ac_lib"; then
13805     ac_res="none required"
13806   else
13807     ac_res=-l$ac_lib
13808     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13809   fi
13810   rm -f conftest.$ac_objext conftest$ac_exeext
13811 if { (ac_try="$ac_link"
13812 case "(($ac_try" in
13813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13814   *) ac_try_echo=$ac_try;;
13815 esac
13816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13817   (eval "$ac_link") 2>conftest.er1
13818   ac_status=$?
13819   grep -v '^ *+' conftest.er1 >conftest.err
13820   rm -f conftest.er1
13821   cat conftest.err >&5
13822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823   (exit $ac_status); } &&
13824          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13825   { (case "(($ac_try" in
13826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13827   *) ac_try_echo=$ac_try;;
13828 esac
13829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13830   (eval "$ac_try") 2>&5
13831   ac_status=$?
13832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833   (exit $ac_status); }; } &&
13834          { ac_try='test -s conftest$ac_exeext'
13835   { (case "(($ac_try" in
13836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13837   *) ac_try_echo=$ac_try;;
13838 esac
13839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13840   (eval "$ac_try") 2>&5
13841   ac_status=$?
13842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843   (exit $ac_status); }; }; then
13844   ac_cv_search_pthread_getspecific=$ac_res
13845 else
13846   echo "$as_me: failed program was:" >&5
13847 sed 's/^/| /' conftest.$ac_ext >&5
13848
13849
13850 fi
13851
13852 rm -f core conftest.err conftest.$ac_objext \
13853       conftest$ac_exeext
13854   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13855   break
13856 fi
13857 done
13858 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13859   :
13860 else
13861   ac_cv_search_pthread_getspecific=no
13862 fi
13863 rm conftest.$ac_ext
13864 LIBS=$ac_func_search_save_LIBS
13865 fi
13866 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13867 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13868 ac_res=$ac_cv_search_pthread_getspecific
13869 if test "$ac_res" != no; then
13870   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13871
13872 cat >>confdefs.h <<\_ACEOF
13873 #define HAVE_PTHREAD_GETSPECIFIC 1
13874 _ACEOF
13875
13876 fi
13877
13878 fi
13879
13880
13881 # Check whether --with-udis86 was given.
13882 if test "${with_udis86+set}" = set; then
13883   withval=$with_udis86;
13884       USE_UDIS86=1
13885
13886       case "$withval" in
13887         /usr/lib|yes) ;;
13888         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13889       esac
13890
13891 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13892 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13893 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13894   echo $ECHO_N "(cached) $ECHO_C" >&6
13895 else
13896   ac_check_lib_save_LIBS=$LIBS
13897 LIBS="-ludis86  $LIBS"
13898 cat >conftest.$ac_ext <<_ACEOF
13899 /* confdefs.h.  */
13900 _ACEOF
13901 cat confdefs.h >>conftest.$ac_ext
13902 cat >>conftest.$ac_ext <<_ACEOF
13903 /* end confdefs.h.  */
13904
13905 /* Override any GCC internal prototype to avoid an error.
13906    Use char because int might match the return type of a GCC
13907    builtin and then its argument prototype would still apply.  */
13908 #ifdef __cplusplus
13909 extern "C"
13910 #endif
13911 char ud_init ();
13912 int
13913 main ()
13914 {
13915 return ud_init ();
13916   ;
13917   return 0;
13918 }
13919 _ACEOF
13920 rm -f conftest.$ac_objext conftest$ac_exeext
13921 if { (ac_try="$ac_link"
13922 case "(($ac_try" in
13923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13924   *) ac_try_echo=$ac_try;;
13925 esac
13926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13927   (eval "$ac_link") 2>conftest.er1
13928   ac_status=$?
13929   grep -v '^ *+' conftest.er1 >conftest.err
13930   rm -f conftest.er1
13931   cat conftest.err >&5
13932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933   (exit $ac_status); } &&
13934          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13935   { (case "(($ac_try" in
13936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13937   *) ac_try_echo=$ac_try;;
13938 esac
13939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13940   (eval "$ac_try") 2>&5
13941   ac_status=$?
13942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943   (exit $ac_status); }; } &&
13944          { ac_try='test -s conftest$ac_exeext'
13945   { (case "(($ac_try" in
13946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13947   *) ac_try_echo=$ac_try;;
13948 esac
13949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13950   (eval "$ac_try") 2>&5
13951   ac_status=$?
13952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953   (exit $ac_status); }; }; then
13954   ac_cv_lib_udis86_ud_init=yes
13955 else
13956   echo "$as_me: failed program was:" >&5
13957 sed 's/^/| /' conftest.$ac_ext >&5
13958
13959         ac_cv_lib_udis86_ud_init=no
13960 fi
13961
13962 rm -f core conftest.err conftest.$ac_objext \
13963       conftest$ac_exeext conftest.$ac_ext
13964 LIBS=$ac_check_lib_save_LIBS
13965 fi
13966 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13967 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13968 if test $ac_cv_lib_udis86_ud_init = yes; then
13969   cat >>confdefs.h <<_ACEOF
13970 #define HAVE_LIBUDIS86 1
13971 _ACEOF
13972
13973   LIBS="-ludis86 $LIBS"
13974
13975 else
13976
13977         echo "Error! You need to have libudis86 around."
13978         exit -1
13979
13980 fi
13981
13982
13983 else
13984   USE_UDIS86=0
13985
13986 fi
13987
13988
13989 cat >>confdefs.h <<_ACEOF
13990 #define USE_UDIS86 $USE_UDIS86
13991 _ACEOF
13992
13993
13994
13995 # Check whether --with-oprofile was given.
13996 if test "${with_oprofile+set}" = set; then
13997   withval=$with_oprofile;
13998       USE_OPROFILE=1
13999
14000       case "$withval" in
14001         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14002         no) llvm_cv_oppath=
14003             USE_OPROFILE=0
14004  ;;
14005         *) llvm_cv_oppath="${withval}/lib/oprofile"
14006            CPPFLAGS="-I${withval}/include";;
14007       esac
14008       if test -n "$llvm_cv_oppath" ; then
14009         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14010                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14011 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14012 if test "${ac_cv_search_bfd_init+set}" = set; then
14013   echo $ECHO_N "(cached) $ECHO_C" >&6
14014 else
14015   ac_func_search_save_LIBS=$LIBS
14016 cat >conftest.$ac_ext <<_ACEOF
14017 /* confdefs.h.  */
14018 _ACEOF
14019 cat confdefs.h >>conftest.$ac_ext
14020 cat >>conftest.$ac_ext <<_ACEOF
14021 /* end confdefs.h.  */
14022
14023 /* Override any GCC internal prototype to avoid an error.
14024    Use char because int might match the return type of a GCC
14025    builtin and then its argument prototype would still apply.  */
14026 #ifdef __cplusplus
14027 extern "C"
14028 #endif
14029 char bfd_init ();
14030 int
14031 main ()
14032 {
14033 return bfd_init ();
14034   ;
14035   return 0;
14036 }
14037 _ACEOF
14038 for ac_lib in '' bfd; do
14039   if test -z "$ac_lib"; then
14040     ac_res="none required"
14041   else
14042     ac_res=-l$ac_lib
14043     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14044   fi
14045   rm -f conftest.$ac_objext conftest$ac_exeext
14046 if { (ac_try="$ac_link"
14047 case "(($ac_try" in
14048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14049   *) ac_try_echo=$ac_try;;
14050 esac
14051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14052   (eval "$ac_link") 2>conftest.er1
14053   ac_status=$?
14054   grep -v '^ *+' conftest.er1 >conftest.err
14055   rm -f conftest.er1
14056   cat conftest.err >&5
14057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058   (exit $ac_status); } &&
14059          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14060   { (case "(($ac_try" in
14061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14062   *) ac_try_echo=$ac_try;;
14063 esac
14064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14065   (eval "$ac_try") 2>&5
14066   ac_status=$?
14067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068   (exit $ac_status); }; } &&
14069          { ac_try='test -s conftest$ac_exeext'
14070   { (case "(($ac_try" in
14071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14072   *) ac_try_echo=$ac_try;;
14073 esac
14074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14075   (eval "$ac_try") 2>&5
14076   ac_status=$?
14077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078   (exit $ac_status); }; }; then
14079   ac_cv_search_bfd_init=$ac_res
14080 else
14081   echo "$as_me: failed program was:" >&5
14082 sed 's/^/| /' conftest.$ac_ext >&5
14083
14084
14085 fi
14086
14087 rm -f core conftest.err conftest.$ac_objext \
14088       conftest$ac_exeext
14089   if test "${ac_cv_search_bfd_init+set}" = set; then
14090   break
14091 fi
14092 done
14093 if test "${ac_cv_search_bfd_init+set}" = set; then
14094   :
14095 else
14096   ac_cv_search_bfd_init=no
14097 fi
14098 rm conftest.$ac_ext
14099 LIBS=$ac_func_search_save_LIBS
14100 fi
14101 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14102 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14103 ac_res=$ac_cv_search_bfd_init
14104 if test "$ac_res" != no; then
14105   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14106
14107 fi
14108
14109         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14110 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14111 if test "${ac_cv_search_op_open_agent+set}" = set; then
14112   echo $ECHO_N "(cached) $ECHO_C" >&6
14113 else
14114   ac_func_search_save_LIBS=$LIBS
14115 cat >conftest.$ac_ext <<_ACEOF
14116 /* confdefs.h.  */
14117 _ACEOF
14118 cat confdefs.h >>conftest.$ac_ext
14119 cat >>conftest.$ac_ext <<_ACEOF
14120 /* end confdefs.h.  */
14121
14122 /* Override any GCC internal prototype to avoid an error.
14123    Use char because int might match the return type of a GCC
14124    builtin and then its argument prototype would still apply.  */
14125 #ifdef __cplusplus
14126 extern "C"
14127 #endif
14128 char op_open_agent ();
14129 int
14130 main ()
14131 {
14132 return op_open_agent ();
14133   ;
14134   return 0;
14135 }
14136 _ACEOF
14137 for ac_lib in '' opagent; do
14138   if test -z "$ac_lib"; then
14139     ac_res="none required"
14140   else
14141     ac_res=-l$ac_lib
14142     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14143   fi
14144   rm -f conftest.$ac_objext conftest$ac_exeext
14145 if { (ac_try="$ac_link"
14146 case "(($ac_try" in
14147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14148   *) ac_try_echo=$ac_try;;
14149 esac
14150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14151   (eval "$ac_link") 2>conftest.er1
14152   ac_status=$?
14153   grep -v '^ *+' conftest.er1 >conftest.err
14154   rm -f conftest.er1
14155   cat conftest.err >&5
14156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157   (exit $ac_status); } &&
14158          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14159   { (case "(($ac_try" in
14160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14161   *) ac_try_echo=$ac_try;;
14162 esac
14163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14164   (eval "$ac_try") 2>&5
14165   ac_status=$?
14166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167   (exit $ac_status); }; } &&
14168          { ac_try='test -s conftest$ac_exeext'
14169   { (case "(($ac_try" in
14170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14171   *) ac_try_echo=$ac_try;;
14172 esac
14173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14174   (eval "$ac_try") 2>&5
14175   ac_status=$?
14176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177   (exit $ac_status); }; }; then
14178   ac_cv_search_op_open_agent=$ac_res
14179 else
14180   echo "$as_me: failed program was:" >&5
14181 sed 's/^/| /' conftest.$ac_ext >&5
14182
14183
14184 fi
14185
14186 rm -f core conftest.err conftest.$ac_objext \
14187       conftest$ac_exeext
14188   if test "${ac_cv_search_op_open_agent+set}" = set; then
14189   break
14190 fi
14191 done
14192 if test "${ac_cv_search_op_open_agent+set}" = set; then
14193   :
14194 else
14195   ac_cv_search_op_open_agent=no
14196 fi
14197 rm conftest.$ac_ext
14198 LIBS=$ac_func_search_save_LIBS
14199 fi
14200 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14201 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14202 ac_res=$ac_cv_search_op_open_agent
14203 if test "$ac_res" != no; then
14204   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14205
14206 else
14207
14208           echo "Error! You need to have libopagent around."
14209           exit -1
14210
14211 fi
14212
14213         if test "${ac_cv_header_opagent_h+set}" = set; then
14214   { echo "$as_me:$LINENO: checking for opagent.h" >&5
14215 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14216 if test "${ac_cv_header_opagent_h+set}" = set; then
14217   echo $ECHO_N "(cached) $ECHO_C" >&6
14218 fi
14219 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14220 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14221 else
14222   # Is the header compilable?
14223 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14224 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14225 cat >conftest.$ac_ext <<_ACEOF
14226 /* confdefs.h.  */
14227 _ACEOF
14228 cat confdefs.h >>conftest.$ac_ext
14229 cat >>conftest.$ac_ext <<_ACEOF
14230 /* end confdefs.h.  */
14231 $ac_includes_default
14232 #include <opagent.h>
14233 _ACEOF
14234 rm -f conftest.$ac_objext
14235 if { (ac_try="$ac_compile"
14236 case "(($ac_try" in
14237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14238   *) ac_try_echo=$ac_try;;
14239 esac
14240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14241   (eval "$ac_compile") 2>conftest.er1
14242   ac_status=$?
14243   grep -v '^ *+' conftest.er1 >conftest.err
14244   rm -f conftest.er1
14245   cat conftest.err >&5
14246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247   (exit $ac_status); } &&
14248          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14249   { (case "(($ac_try" in
14250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14251   *) ac_try_echo=$ac_try;;
14252 esac
14253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14254   (eval "$ac_try") 2>&5
14255   ac_status=$?
14256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257   (exit $ac_status); }; } &&
14258          { ac_try='test -s conftest.$ac_objext'
14259   { (case "(($ac_try" in
14260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14261   *) ac_try_echo=$ac_try;;
14262 esac
14263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14264   (eval "$ac_try") 2>&5
14265   ac_status=$?
14266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267   (exit $ac_status); }; }; then
14268   ac_header_compiler=yes
14269 else
14270   echo "$as_me: failed program was:" >&5
14271 sed 's/^/| /' conftest.$ac_ext >&5
14272
14273         ac_header_compiler=no
14274 fi
14275
14276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14277 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14278 echo "${ECHO_T}$ac_header_compiler" >&6; }
14279
14280 # Is the header present?
14281 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14282 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14283 cat >conftest.$ac_ext <<_ACEOF
14284 /* confdefs.h.  */
14285 _ACEOF
14286 cat confdefs.h >>conftest.$ac_ext
14287 cat >>conftest.$ac_ext <<_ACEOF
14288 /* end confdefs.h.  */
14289 #include <opagent.h>
14290 _ACEOF
14291 if { (ac_try="$ac_cpp conftest.$ac_ext"
14292 case "(($ac_try" in
14293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14294   *) ac_try_echo=$ac_try;;
14295 esac
14296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14297   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14298   ac_status=$?
14299   grep -v '^ *+' conftest.er1 >conftest.err
14300   rm -f conftest.er1
14301   cat conftest.err >&5
14302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303   (exit $ac_status); } >/dev/null; then
14304   if test -s conftest.err; then
14305     ac_cpp_err=$ac_c_preproc_warn_flag
14306     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14307   else
14308     ac_cpp_err=
14309   fi
14310 else
14311   ac_cpp_err=yes
14312 fi
14313 if test -z "$ac_cpp_err"; then
14314   ac_header_preproc=yes
14315 else
14316   echo "$as_me: failed program was:" >&5
14317 sed 's/^/| /' conftest.$ac_ext >&5
14318
14319   ac_header_preproc=no
14320 fi
14321
14322 rm -f conftest.err conftest.$ac_ext
14323 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14324 echo "${ECHO_T}$ac_header_preproc" >&6; }
14325
14326 # So?  What about this header?
14327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14328   yes:no: )
14329     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14330 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14331     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14332 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14333     ac_header_preproc=yes
14334     ;;
14335   no:yes:* )
14336     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14337 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14338     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
14339 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
14340     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14341 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14342     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
14343 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14344     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14345 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14346     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14347 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14348     ( cat <<\_ASBOX
14349 ## ----------------------------------- ##
14350 ## Report this to llvmbugs@cs.uiuc.edu ##
14351 ## ----------------------------------- ##
14352 _ASBOX
14353      ) | sed "s/^/$as_me: WARNING:     /" >&2
14354     ;;
14355 esac
14356 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14357 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14358 if test "${ac_cv_header_opagent_h+set}" = set; then
14359   echo $ECHO_N "(cached) $ECHO_C" >&6
14360 else
14361   ac_cv_header_opagent_h=$ac_header_preproc
14362 fi
14363 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14364 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14365
14366 fi
14367 if test $ac_cv_header_opagent_h = yes; then
14368   :
14369 else
14370
14371           echo "Error! You need to have opagent.h around."
14372           exit -1
14373
14374 fi
14375
14376
14377       fi
14378
14379 else
14380
14381       USE_OPROFILE=0
14382
14383
14384 fi
14385
14386
14387 cat >>confdefs.h <<_ACEOF
14388 #define USE_OPROFILE $USE_OPROFILE
14389 _ACEOF
14390
14391
14392
14393
14394
14395
14396
14397
14398 ac_header_dirent=no
14399 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14400   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14401 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14402 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14404   echo $ECHO_N "(cached) $ECHO_C" >&6
14405 else
14406   cat >conftest.$ac_ext <<_ACEOF
14407 /* confdefs.h.  */
14408 _ACEOF
14409 cat confdefs.h >>conftest.$ac_ext
14410 cat >>conftest.$ac_ext <<_ACEOF
14411 /* end confdefs.h.  */
14412 #include <sys/types.h>
14413 #include <$ac_hdr>
14414
14415 int
14416 main ()
14417 {
14418 if ((DIR *) 0)
14419 return 0;
14420   ;
14421   return 0;
14422 }
14423 _ACEOF
14424 rm -f conftest.$ac_objext
14425 if { (ac_try="$ac_compile"
14426 case "(($ac_try" in
14427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14428   *) ac_try_echo=$ac_try;;
14429 esac
14430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14431   (eval "$ac_compile") 2>conftest.er1
14432   ac_status=$?
14433   grep -v '^ *+' conftest.er1 >conftest.err
14434   rm -f conftest.er1
14435   cat conftest.err >&5
14436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437   (exit $ac_status); } &&
14438          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14439   { (case "(($ac_try" in
14440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14441   *) ac_try_echo=$ac_try;;
14442 esac
14443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14444   (eval "$ac_try") 2>&5
14445   ac_status=$?
14446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447   (exit $ac_status); }; } &&
14448          { ac_try='test -s conftest.$ac_objext'
14449   { (case "(($ac_try" in
14450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14451   *) ac_try_echo=$ac_try;;
14452 esac
14453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14454   (eval "$ac_try") 2>&5
14455   ac_status=$?
14456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457   (exit $ac_status); }; }; then
14458   eval "$as_ac_Header=yes"
14459 else
14460   echo "$as_me: failed program was:" >&5
14461 sed 's/^/| /' conftest.$ac_ext >&5
14462
14463         eval "$as_ac_Header=no"
14464 fi
14465
14466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14467 fi
14468 ac_res=`eval echo '${'$as_ac_Header'}'`
14469                { echo "$as_me:$LINENO: result: $ac_res" >&5
14470 echo "${ECHO_T}$ac_res" >&6; }
14471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14472   cat >>confdefs.h <<_ACEOF
14473 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14474 _ACEOF
14475
14476 ac_header_dirent=$ac_hdr; break
14477 fi
14478
14479 done
14480 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14481 if test $ac_header_dirent = dirent.h; then
14482   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14483 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14484 if test "${ac_cv_search_opendir+set}" = set; then
14485   echo $ECHO_N "(cached) $ECHO_C" >&6
14486 else
14487   ac_func_search_save_LIBS=$LIBS
14488 cat >conftest.$ac_ext <<_ACEOF
14489 /* confdefs.h.  */
14490 _ACEOF
14491 cat confdefs.h >>conftest.$ac_ext
14492 cat >>conftest.$ac_ext <<_ACEOF
14493 /* end confdefs.h.  */
14494
14495 /* Override any GCC internal prototype to avoid an error.
14496    Use char because int might match the return type of a GCC
14497    builtin and then its argument prototype would still apply.  */
14498 #ifdef __cplusplus
14499 extern "C"
14500 #endif
14501 char opendir ();
14502 int
14503 main ()
14504 {
14505 return opendir ();
14506   ;
14507   return 0;
14508 }
14509 _ACEOF
14510 for ac_lib in '' dir; do
14511   if test -z "$ac_lib"; then
14512     ac_res="none required"
14513   else
14514     ac_res=-l$ac_lib
14515     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14516   fi
14517   rm -f conftest.$ac_objext conftest$ac_exeext
14518 if { (ac_try="$ac_link"
14519 case "(($ac_try" in
14520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14521   *) ac_try_echo=$ac_try;;
14522 esac
14523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14524   (eval "$ac_link") 2>conftest.er1
14525   ac_status=$?
14526   grep -v '^ *+' conftest.er1 >conftest.err
14527   rm -f conftest.er1
14528   cat conftest.err >&5
14529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530   (exit $ac_status); } &&
14531          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14532   { (case "(($ac_try" in
14533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14534   *) ac_try_echo=$ac_try;;
14535 esac
14536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14537   (eval "$ac_try") 2>&5
14538   ac_status=$?
14539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540   (exit $ac_status); }; } &&
14541          { ac_try='test -s conftest$ac_exeext'
14542   { (case "(($ac_try" in
14543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14544   *) ac_try_echo=$ac_try;;
14545 esac
14546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14547   (eval "$ac_try") 2>&5
14548   ac_status=$?
14549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550   (exit $ac_status); }; }; then
14551   ac_cv_search_opendir=$ac_res
14552 else
14553   echo "$as_me: failed program was:" >&5
14554 sed 's/^/| /' conftest.$ac_ext >&5
14555
14556
14557 fi
14558
14559 rm -f core conftest.err conftest.$ac_objext \
14560       conftest$ac_exeext
14561   if test "${ac_cv_search_opendir+set}" = set; then
14562   break
14563 fi
14564 done
14565 if test "${ac_cv_search_opendir+set}" = set; then
14566   :
14567 else
14568   ac_cv_search_opendir=no
14569 fi
14570 rm conftest.$ac_ext
14571 LIBS=$ac_func_search_save_LIBS
14572 fi
14573 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14574 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14575 ac_res=$ac_cv_search_opendir
14576 if test "$ac_res" != no; then
14577   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14578
14579 fi
14580
14581 else
14582   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14583 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14584 if test "${ac_cv_search_opendir+set}" = set; then
14585   echo $ECHO_N "(cached) $ECHO_C" >&6
14586 else
14587   ac_func_search_save_LIBS=$LIBS
14588 cat >conftest.$ac_ext <<_ACEOF
14589 /* confdefs.h.  */
14590 _ACEOF
14591 cat confdefs.h >>conftest.$ac_ext
14592 cat >>conftest.$ac_ext <<_ACEOF
14593 /* end confdefs.h.  */
14594
14595 /* Override any GCC internal prototype to avoid an error.
14596    Use char because int might match the return type of a GCC
14597    builtin and then its argument prototype would still apply.  */
14598 #ifdef __cplusplus
14599 extern "C"
14600 #endif
14601 char opendir ();
14602 int
14603 main ()
14604 {
14605 return opendir ();
14606   ;
14607   return 0;
14608 }
14609 _ACEOF
14610 for ac_lib in '' x; do
14611   if test -z "$ac_lib"; then
14612     ac_res="none required"
14613   else
14614     ac_res=-l$ac_lib
14615     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14616   fi
14617   rm -f conftest.$ac_objext conftest$ac_exeext
14618 if { (ac_try="$ac_link"
14619 case "(($ac_try" in
14620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14621   *) ac_try_echo=$ac_try;;
14622 esac
14623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14624   (eval "$ac_link") 2>conftest.er1
14625   ac_status=$?
14626   grep -v '^ *+' conftest.er1 >conftest.err
14627   rm -f conftest.er1
14628   cat conftest.err >&5
14629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630   (exit $ac_status); } &&
14631          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14632   { (case "(($ac_try" in
14633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14634   *) ac_try_echo=$ac_try;;
14635 esac
14636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14637   (eval "$ac_try") 2>&5
14638   ac_status=$?
14639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640   (exit $ac_status); }; } &&
14641          { ac_try='test -s conftest$ac_exeext'
14642   { (case "(($ac_try" in
14643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14644   *) ac_try_echo=$ac_try;;
14645 esac
14646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14647   (eval "$ac_try") 2>&5
14648   ac_status=$?
14649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650   (exit $ac_status); }; }; then
14651   ac_cv_search_opendir=$ac_res
14652 else
14653   echo "$as_me: failed program was:" >&5
14654 sed 's/^/| /' conftest.$ac_ext >&5
14655
14656
14657 fi
14658
14659 rm -f core conftest.err conftest.$ac_objext \
14660       conftest$ac_exeext
14661   if test "${ac_cv_search_opendir+set}" = set; then
14662   break
14663 fi
14664 done
14665 if test "${ac_cv_search_opendir+set}" = set; then
14666   :
14667 else
14668   ac_cv_search_opendir=no
14669 fi
14670 rm conftest.$ac_ext
14671 LIBS=$ac_func_search_save_LIBS
14672 fi
14673 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14674 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14675 ac_res=$ac_cv_search_opendir
14676 if test "$ac_res" != no; then
14677   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14678
14679 fi
14680
14681 fi
14682
14683 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14684 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14685 if test "${ac_cv_header_mmap_anon+set}" = set; then
14686   echo $ECHO_N "(cached) $ECHO_C" >&6
14687 else
14688    ac_ext=c
14689 ac_cpp='$CPP $CPPFLAGS'
14690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14693
14694   cat >conftest.$ac_ext <<_ACEOF
14695 /* confdefs.h.  */
14696 _ACEOF
14697 cat confdefs.h >>conftest.$ac_ext
14698 cat >>conftest.$ac_ext <<_ACEOF
14699 /* end confdefs.h.  */
14700 #include <sys/mman.h>
14701 #include <unistd.h>
14702 #include <fcntl.h>
14703 int
14704 main ()
14705 {
14706 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14707   ;
14708   return 0;
14709 }
14710 _ACEOF
14711 rm -f conftest.$ac_objext
14712 if { (ac_try="$ac_compile"
14713 case "(($ac_try" in
14714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14715   *) ac_try_echo=$ac_try;;
14716 esac
14717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14718   (eval "$ac_compile") 2>conftest.er1
14719   ac_status=$?
14720   grep -v '^ *+' conftest.er1 >conftest.err
14721   rm -f conftest.er1
14722   cat conftest.err >&5
14723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724   (exit $ac_status); } &&
14725          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14726   { (case "(($ac_try" in
14727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14728   *) ac_try_echo=$ac_try;;
14729 esac
14730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14731   (eval "$ac_try") 2>&5
14732   ac_status=$?
14733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734   (exit $ac_status); }; } &&
14735          { ac_try='test -s conftest.$ac_objext'
14736   { (case "(($ac_try" in
14737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14738   *) ac_try_echo=$ac_try;;
14739 esac
14740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14741   (eval "$ac_try") 2>&5
14742   ac_status=$?
14743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744   (exit $ac_status); }; }; then
14745   ac_cv_header_mmap_anon=yes
14746 else
14747   echo "$as_me: failed program was:" >&5
14748 sed 's/^/| /' conftest.$ac_ext >&5
14749
14750         ac_cv_header_mmap_anon=no
14751 fi
14752
14753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14754   ac_ext=c
14755 ac_cpp='$CPP $CPPFLAGS'
14756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14759
14760
14761 fi
14762 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14763 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14764 if test "$ac_cv_header_mmap_anon" = yes; then
14765
14766 cat >>confdefs.h <<\_ACEOF
14767 #define HAVE_MMAP_ANONYMOUS 1
14768 _ACEOF
14769
14770 fi
14771
14772 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14773 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14774 if test "${ac_cv_header_stat_broken+set}" = set; then
14775   echo $ECHO_N "(cached) $ECHO_C" >&6
14776 else
14777   cat >conftest.$ac_ext <<_ACEOF
14778 /* confdefs.h.  */
14779 _ACEOF
14780 cat confdefs.h >>conftest.$ac_ext
14781 cat >>conftest.$ac_ext <<_ACEOF
14782 /* end confdefs.h.  */
14783 #include <sys/types.h>
14784 #include <sys/stat.h>
14785
14786 #if defined S_ISBLK && defined S_IFDIR
14787 # if S_ISBLK (S_IFDIR)
14788 You lose.
14789 # endif
14790 #endif
14791
14792 #if defined S_ISBLK && defined S_IFCHR
14793 # if S_ISBLK (S_IFCHR)
14794 You lose.
14795 # endif
14796 #endif
14797
14798 #if defined S_ISLNK && defined S_IFREG
14799 # if S_ISLNK (S_IFREG)
14800 You lose.
14801 # endif
14802 #endif
14803
14804 #if defined S_ISSOCK && defined S_IFREG
14805 # if S_ISSOCK (S_IFREG)
14806 You lose.
14807 # endif
14808 #endif
14809
14810 _ACEOF
14811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14812   $EGREP "You lose" >/dev/null 2>&1; then
14813   ac_cv_header_stat_broken=yes
14814 else
14815   ac_cv_header_stat_broken=no
14816 fi
14817 rm -f conftest*
14818
14819 fi
14820 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14821 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14822 if test $ac_cv_header_stat_broken = yes; then
14823
14824 cat >>confdefs.h <<\_ACEOF
14825 #define STAT_MACROS_BROKEN 1
14826 _ACEOF
14827
14828 fi
14829
14830 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14831 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14832 if test "${ac_cv_header_stdc+set}" = set; then
14833   echo $ECHO_N "(cached) $ECHO_C" >&6
14834 else
14835   cat >conftest.$ac_ext <<_ACEOF
14836 /* confdefs.h.  */
14837 _ACEOF
14838 cat confdefs.h >>conftest.$ac_ext
14839 cat >>conftest.$ac_ext <<_ACEOF
14840 /* end confdefs.h.  */
14841 #include <stdlib.h>
14842 #include <stdarg.h>
14843 #include <string.h>
14844 #include <float.h>
14845
14846 int
14847 main ()
14848 {
14849
14850   ;
14851   return 0;
14852 }
14853 _ACEOF
14854 rm -f conftest.$ac_objext
14855 if { (ac_try="$ac_compile"
14856 case "(($ac_try" in
14857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14858   *) ac_try_echo=$ac_try;;
14859 esac
14860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14861   (eval "$ac_compile") 2>conftest.er1
14862   ac_status=$?
14863   grep -v '^ *+' conftest.er1 >conftest.err
14864   rm -f conftest.er1
14865   cat conftest.err >&5
14866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867   (exit $ac_status); } &&
14868          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14869   { (case "(($ac_try" in
14870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14871   *) ac_try_echo=$ac_try;;
14872 esac
14873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14874   (eval "$ac_try") 2>&5
14875   ac_status=$?
14876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877   (exit $ac_status); }; } &&
14878          { ac_try='test -s conftest.$ac_objext'
14879   { (case "(($ac_try" in
14880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14881   *) ac_try_echo=$ac_try;;
14882 esac
14883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14884   (eval "$ac_try") 2>&5
14885   ac_status=$?
14886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887   (exit $ac_status); }; }; then
14888   ac_cv_header_stdc=yes
14889 else
14890   echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.$ac_ext >&5
14892
14893         ac_cv_header_stdc=no
14894 fi
14895
14896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14897
14898 if test $ac_cv_header_stdc = yes; then
14899   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14900   cat >conftest.$ac_ext <<_ACEOF
14901 /* confdefs.h.  */
14902 _ACEOF
14903 cat confdefs.h >>conftest.$ac_ext
14904 cat >>conftest.$ac_ext <<_ACEOF
14905 /* end confdefs.h.  */
14906 #include <string.h>
14907
14908 _ACEOF
14909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14910   $EGREP "memchr" >/dev/null 2>&1; then
14911   :
14912 else
14913   ac_cv_header_stdc=no
14914 fi
14915 rm -f conftest*
14916
14917 fi
14918
14919 if test $ac_cv_header_stdc = yes; then
14920   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14921   cat >conftest.$ac_ext <<_ACEOF
14922 /* confdefs.h.  */
14923 _ACEOF
14924 cat confdefs.h >>conftest.$ac_ext
14925 cat >>conftest.$ac_ext <<_ACEOF
14926 /* end confdefs.h.  */
14927 #include <stdlib.h>
14928
14929 _ACEOF
14930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14931   $EGREP "free" >/dev/null 2>&1; then
14932   :
14933 else
14934   ac_cv_header_stdc=no
14935 fi
14936 rm -f conftest*
14937
14938 fi
14939
14940 if test $ac_cv_header_stdc = yes; then
14941   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14942   if test "$cross_compiling" = yes; then
14943   :
14944 else
14945   cat >conftest.$ac_ext <<_ACEOF
14946 /* confdefs.h.  */
14947 _ACEOF
14948 cat confdefs.h >>conftest.$ac_ext
14949 cat >>conftest.$ac_ext <<_ACEOF
14950 /* end confdefs.h.  */
14951 #include <ctype.h>
14952 #include <stdlib.h>
14953 #if ((' ' & 0x0FF) == 0x020)
14954 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14955 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14956 #else
14957 # define ISLOWER(c) \
14958                    (('a' <= (c) && (c) <= 'i') \
14959                      || ('j' <= (c) && (c) <= 'r') \
14960                      || ('s' <= (c) && (c) <= 'z'))
14961 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14962 #endif
14963
14964 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14965 int
14966 main ()
14967 {
14968   int i;
14969   for (i = 0; i < 256; i++)
14970     if (XOR (islower (i), ISLOWER (i))
14971         || toupper (i) != TOUPPER (i))
14972       return 2;
14973   return 0;
14974 }
14975 _ACEOF
14976 rm -f conftest$ac_exeext
14977 if { (ac_try="$ac_link"
14978 case "(($ac_try" in
14979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14980   *) ac_try_echo=$ac_try;;
14981 esac
14982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14983   (eval "$ac_link") 2>&5
14984   ac_status=$?
14985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14987   { (case "(($ac_try" in
14988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14989   *) ac_try_echo=$ac_try;;
14990 esac
14991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14992   (eval "$ac_try") 2>&5
14993   ac_status=$?
14994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995   (exit $ac_status); }; }; then
14996   :
14997 else
14998   echo "$as_me: program exited with status $ac_status" >&5
14999 echo "$as_me: failed program was:" >&5
15000 sed 's/^/| /' conftest.$ac_ext >&5
15001
15002 ( exit $ac_status )
15003 ac_cv_header_stdc=no
15004 fi
15005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15006 fi
15007
15008
15009 fi
15010 fi
15011 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15012 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15013 if test $ac_cv_header_stdc = yes; then
15014
15015 cat >>confdefs.h <<\_ACEOF
15016 #define STDC_HEADERS 1
15017 _ACEOF
15018
15019 fi
15020
15021 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15022 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15023 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15024   echo $ECHO_N "(cached) $ECHO_C" >&6
15025 else
15026   cat >conftest.$ac_ext <<_ACEOF
15027 /* confdefs.h.  */
15028 _ACEOF
15029 cat confdefs.h >>conftest.$ac_ext
15030 cat >>conftest.$ac_ext <<_ACEOF
15031 /* end confdefs.h.  */
15032 #include <sys/types.h>
15033 #include <sys/wait.h>
15034 #ifndef WEXITSTATUS
15035 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15036 #endif
15037 #ifndef WIFEXITED
15038 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15039 #endif
15040
15041 int
15042 main ()
15043 {
15044   int s;
15045   wait (&s);
15046   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15047   ;
15048   return 0;
15049 }
15050 _ACEOF
15051 rm -f conftest.$ac_objext
15052 if { (ac_try="$ac_compile"
15053 case "(($ac_try" in
15054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15055   *) ac_try_echo=$ac_try;;
15056 esac
15057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15058   (eval "$ac_compile") 2>conftest.er1
15059   ac_status=$?
15060   grep -v '^ *+' conftest.er1 >conftest.err
15061   rm -f conftest.er1
15062   cat conftest.err >&5
15063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064   (exit $ac_status); } &&
15065          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15066   { (case "(($ac_try" in
15067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15068   *) ac_try_echo=$ac_try;;
15069 esac
15070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15071   (eval "$ac_try") 2>&5
15072   ac_status=$?
15073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074   (exit $ac_status); }; } &&
15075          { ac_try='test -s conftest.$ac_objext'
15076   { (case "(($ac_try" in
15077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15078   *) ac_try_echo=$ac_try;;
15079 esac
15080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15081   (eval "$ac_try") 2>&5
15082   ac_status=$?
15083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084   (exit $ac_status); }; }; then
15085   ac_cv_header_sys_wait_h=yes
15086 else
15087   echo "$as_me: failed program was:" >&5
15088 sed 's/^/| /' conftest.$ac_ext >&5
15089
15090         ac_cv_header_sys_wait_h=no
15091 fi
15092
15093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15094 fi
15095 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15096 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15097 if test $ac_cv_header_sys_wait_h = yes; then
15098
15099 cat >>confdefs.h <<\_ACEOF
15100 #define HAVE_SYS_WAIT_H 1
15101 _ACEOF
15102
15103 fi
15104
15105 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15106 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15107 if test "${ac_cv_header_time+set}" = set; then
15108   echo $ECHO_N "(cached) $ECHO_C" >&6
15109 else
15110   cat >conftest.$ac_ext <<_ACEOF
15111 /* confdefs.h.  */
15112 _ACEOF
15113 cat confdefs.h >>conftest.$ac_ext
15114 cat >>conftest.$ac_ext <<_ACEOF
15115 /* end confdefs.h.  */
15116 #include <sys/types.h>
15117 #include <sys/time.h>
15118 #include <time.h>
15119
15120 int
15121 main ()
15122 {
15123 if ((struct tm *) 0)
15124 return 0;
15125   ;
15126   return 0;
15127 }
15128 _ACEOF
15129 rm -f conftest.$ac_objext
15130 if { (ac_try="$ac_compile"
15131 case "(($ac_try" in
15132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15133   *) ac_try_echo=$ac_try;;
15134 esac
15135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15136   (eval "$ac_compile") 2>conftest.er1
15137   ac_status=$?
15138   grep -v '^ *+' conftest.er1 >conftest.err
15139   rm -f conftest.er1
15140   cat conftest.err >&5
15141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142   (exit $ac_status); } &&
15143          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15144   { (case "(($ac_try" in
15145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15146   *) ac_try_echo=$ac_try;;
15147 esac
15148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15149   (eval "$ac_try") 2>&5
15150   ac_status=$?
15151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152   (exit $ac_status); }; } &&
15153          { ac_try='test -s conftest.$ac_objext'
15154   { (case "(($ac_try" in
15155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15156   *) ac_try_echo=$ac_try;;
15157 esac
15158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15159   (eval "$ac_try") 2>&5
15160   ac_status=$?
15161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162   (exit $ac_status); }; }; then
15163   ac_cv_header_time=yes
15164 else
15165   echo "$as_me: failed program was:" >&5
15166 sed 's/^/| /' conftest.$ac_ext >&5
15167
15168         ac_cv_header_time=no
15169 fi
15170
15171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15172 fi
15173 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15174 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15175 if test $ac_cv_header_time = yes; then
15176
15177 cat >>confdefs.h <<\_ACEOF
15178 #define TIME_WITH_SYS_TIME 1
15179 _ACEOF
15180
15181 fi
15182
15183
15184
15185
15186
15187
15188
15189
15190 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15191 do
15192 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15194   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15197   echo $ECHO_N "(cached) $ECHO_C" >&6
15198 fi
15199 ac_res=`eval echo '${'$as_ac_Header'}'`
15200                { echo "$as_me:$LINENO: result: $ac_res" >&5
15201 echo "${ECHO_T}$ac_res" >&6; }
15202 else
15203   # Is the header compilable?
15204 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15205 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15206 cat >conftest.$ac_ext <<_ACEOF
15207 /* confdefs.h.  */
15208 _ACEOF
15209 cat confdefs.h >>conftest.$ac_ext
15210 cat >>conftest.$ac_ext <<_ACEOF
15211 /* end confdefs.h.  */
15212 $ac_includes_default
15213 #include <$ac_header>
15214 _ACEOF
15215 rm -f conftest.$ac_objext
15216 if { (ac_try="$ac_compile"
15217 case "(($ac_try" in
15218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15219   *) ac_try_echo=$ac_try;;
15220 esac
15221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15222   (eval "$ac_compile") 2>conftest.er1
15223   ac_status=$?
15224   grep -v '^ *+' conftest.er1 >conftest.err
15225   rm -f conftest.er1
15226   cat conftest.err >&5
15227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228   (exit $ac_status); } &&
15229          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15230   { (case "(($ac_try" in
15231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15232   *) ac_try_echo=$ac_try;;
15233 esac
15234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15235   (eval "$ac_try") 2>&5
15236   ac_status=$?
15237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238   (exit $ac_status); }; } &&
15239          { ac_try='test -s conftest.$ac_objext'
15240   { (case "(($ac_try" in
15241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15242   *) ac_try_echo=$ac_try;;
15243 esac
15244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15245   (eval "$ac_try") 2>&5
15246   ac_status=$?
15247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248   (exit $ac_status); }; }; then
15249   ac_header_compiler=yes
15250 else
15251   echo "$as_me: failed program was:" >&5
15252 sed 's/^/| /' conftest.$ac_ext >&5
15253
15254         ac_header_compiler=no
15255 fi
15256
15257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15258 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15259 echo "${ECHO_T}$ac_header_compiler" >&6; }
15260
15261 # Is the header present?
15262 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15264 cat >conftest.$ac_ext <<_ACEOF
15265 /* confdefs.h.  */
15266 _ACEOF
15267 cat confdefs.h >>conftest.$ac_ext
15268 cat >>conftest.$ac_ext <<_ACEOF
15269 /* end confdefs.h.  */
15270 #include <$ac_header>
15271 _ACEOF
15272 if { (ac_try="$ac_cpp conftest.$ac_ext"
15273 case "(($ac_try" in
15274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15275   *) ac_try_echo=$ac_try;;
15276 esac
15277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15278   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15279   ac_status=$?
15280   grep -v '^ *+' conftest.er1 >conftest.err
15281   rm -f conftest.er1
15282   cat conftest.err >&5
15283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284   (exit $ac_status); } >/dev/null; then
15285   if test -s conftest.err; then
15286     ac_cpp_err=$ac_c_preproc_warn_flag
15287     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15288   else
15289     ac_cpp_err=
15290   fi
15291 else
15292   ac_cpp_err=yes
15293 fi
15294 if test -z "$ac_cpp_err"; then
15295   ac_header_preproc=yes
15296 else
15297   echo "$as_me: failed program was:" >&5
15298 sed 's/^/| /' conftest.$ac_ext >&5
15299
15300   ac_header_preproc=no
15301 fi
15302
15303 rm -f conftest.err conftest.$ac_ext
15304 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15305 echo "${ECHO_T}$ac_header_preproc" >&6; }
15306
15307 # So?  What about this header?
15308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15309   yes:no: )
15310     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15312     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15313 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15314     ac_header_preproc=yes
15315     ;;
15316   no:yes:* )
15317     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15319     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15320 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15321     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15322 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15323     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15324 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15325     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15327     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15328 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15329     ( cat <<\_ASBOX
15330 ## ----------------------------------- ##
15331 ## Report this to llvmbugs@cs.uiuc.edu ##
15332 ## ----------------------------------- ##
15333 _ASBOX
15334      ) | sed "s/^/$as_me: WARNING:     /" >&2
15335     ;;
15336 esac
15337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15340   echo $ECHO_N "(cached) $ECHO_C" >&6
15341 else
15342   eval "$as_ac_Header=\$ac_header_preproc"
15343 fi
15344 ac_res=`eval echo '${'$as_ac_Header'}'`
15345                { echo "$as_me:$LINENO: result: $ac_res" >&5
15346 echo "${ECHO_T}$ac_res" >&6; }
15347
15348 fi
15349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15350   cat >>confdefs.h <<_ACEOF
15351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15352 _ACEOF
15353
15354 fi
15355
15356 done
15357
15358
15359
15360
15361
15362
15363
15364 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15365 do
15366 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15368   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15371   echo $ECHO_N "(cached) $ECHO_C" >&6
15372 fi
15373 ac_res=`eval echo '${'$as_ac_Header'}'`
15374                { echo "$as_me:$LINENO: result: $ac_res" >&5
15375 echo "${ECHO_T}$ac_res" >&6; }
15376 else
15377   # Is the header compilable?
15378 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15379 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15380 cat >conftest.$ac_ext <<_ACEOF
15381 /* confdefs.h.  */
15382 _ACEOF
15383 cat confdefs.h >>conftest.$ac_ext
15384 cat >>conftest.$ac_ext <<_ACEOF
15385 /* end confdefs.h.  */
15386 $ac_includes_default
15387 #include <$ac_header>
15388 _ACEOF
15389 rm -f conftest.$ac_objext
15390 if { (ac_try="$ac_compile"
15391 case "(($ac_try" in
15392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15393   *) ac_try_echo=$ac_try;;
15394 esac
15395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15396   (eval "$ac_compile") 2>conftest.er1
15397   ac_status=$?
15398   grep -v '^ *+' conftest.er1 >conftest.err
15399   rm -f conftest.er1
15400   cat conftest.err >&5
15401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402   (exit $ac_status); } &&
15403          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15404   { (case "(($ac_try" in
15405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15406   *) ac_try_echo=$ac_try;;
15407 esac
15408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15409   (eval "$ac_try") 2>&5
15410   ac_status=$?
15411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412   (exit $ac_status); }; } &&
15413          { ac_try='test -s conftest.$ac_objext'
15414   { (case "(($ac_try" in
15415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15416   *) ac_try_echo=$ac_try;;
15417 esac
15418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15419   (eval "$ac_try") 2>&5
15420   ac_status=$?
15421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422   (exit $ac_status); }; }; then
15423   ac_header_compiler=yes
15424 else
15425   echo "$as_me: failed program was:" >&5
15426 sed 's/^/| /' conftest.$ac_ext >&5
15427
15428         ac_header_compiler=no
15429 fi
15430
15431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15432 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15433 echo "${ECHO_T}$ac_header_compiler" >&6; }
15434
15435 # Is the header present?
15436 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15438 cat >conftest.$ac_ext <<_ACEOF
15439 /* confdefs.h.  */
15440 _ACEOF
15441 cat confdefs.h >>conftest.$ac_ext
15442 cat >>conftest.$ac_ext <<_ACEOF
15443 /* end confdefs.h.  */
15444 #include <$ac_header>
15445 _ACEOF
15446 if { (ac_try="$ac_cpp conftest.$ac_ext"
15447 case "(($ac_try" in
15448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15449   *) ac_try_echo=$ac_try;;
15450 esac
15451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15452   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15453   ac_status=$?
15454   grep -v '^ *+' conftest.er1 >conftest.err
15455   rm -f conftest.er1
15456   cat conftest.err >&5
15457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458   (exit $ac_status); } >/dev/null; then
15459   if test -s conftest.err; then
15460     ac_cpp_err=$ac_c_preproc_warn_flag
15461     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15462   else
15463     ac_cpp_err=
15464   fi
15465 else
15466   ac_cpp_err=yes
15467 fi
15468 if test -z "$ac_cpp_err"; then
15469   ac_header_preproc=yes
15470 else
15471   echo "$as_me: failed program was:" >&5
15472 sed 's/^/| /' conftest.$ac_ext >&5
15473
15474   ac_header_preproc=no
15475 fi
15476
15477 rm -f conftest.err conftest.$ac_ext
15478 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15479 echo "${ECHO_T}$ac_header_preproc" >&6; }
15480
15481 # So?  What about this header?
15482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15483   yes:no: )
15484     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15485 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15486     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15487 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15488     ac_header_preproc=yes
15489     ;;
15490   no:yes:* )
15491     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15492 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15493     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15494 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15495     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15496 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15497     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15498 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15499     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15501     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15502 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15503     ( cat <<\_ASBOX
15504 ## ----------------------------------- ##
15505 ## Report this to llvmbugs@cs.uiuc.edu ##
15506 ## ----------------------------------- ##
15507 _ASBOX
15508      ) | sed "s/^/$as_me: WARNING:     /" >&2
15509     ;;
15510 esac
15511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15514   echo $ECHO_N "(cached) $ECHO_C" >&6
15515 else
15516   eval "$as_ac_Header=\$ac_header_preproc"
15517 fi
15518 ac_res=`eval echo '${'$as_ac_Header'}'`
15519                { echo "$as_me:$LINENO: result: $ac_res" >&5
15520 echo "${ECHO_T}$ac_res" >&6; }
15521
15522 fi
15523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15524   cat >>confdefs.h <<_ACEOF
15525 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15526 _ACEOF
15527
15528 fi
15529
15530 done
15531
15532
15533
15534 for ac_header in utime.h windows.h
15535 do
15536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15538   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15541   echo $ECHO_N "(cached) $ECHO_C" >&6
15542 fi
15543 ac_res=`eval echo '${'$as_ac_Header'}'`
15544                { echo "$as_me:$LINENO: result: $ac_res" >&5
15545 echo "${ECHO_T}$ac_res" >&6; }
15546 else
15547   # Is the header compilable?
15548 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15549 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15550 cat >conftest.$ac_ext <<_ACEOF
15551 /* confdefs.h.  */
15552 _ACEOF
15553 cat confdefs.h >>conftest.$ac_ext
15554 cat >>conftest.$ac_ext <<_ACEOF
15555 /* end confdefs.h.  */
15556 $ac_includes_default
15557 #include <$ac_header>
15558 _ACEOF
15559 rm -f conftest.$ac_objext
15560 if { (ac_try="$ac_compile"
15561 case "(($ac_try" in
15562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15563   *) ac_try_echo=$ac_try;;
15564 esac
15565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15566   (eval "$ac_compile") 2>conftest.er1
15567   ac_status=$?
15568   grep -v '^ *+' conftest.er1 >conftest.err
15569   rm -f conftest.er1
15570   cat conftest.err >&5
15571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572   (exit $ac_status); } &&
15573          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15574   { (case "(($ac_try" in
15575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15576   *) ac_try_echo=$ac_try;;
15577 esac
15578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15579   (eval "$ac_try") 2>&5
15580   ac_status=$?
15581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582   (exit $ac_status); }; } &&
15583          { ac_try='test -s conftest.$ac_objext'
15584   { (case "(($ac_try" in
15585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15586   *) ac_try_echo=$ac_try;;
15587 esac
15588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15589   (eval "$ac_try") 2>&5
15590   ac_status=$?
15591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592   (exit $ac_status); }; }; then
15593   ac_header_compiler=yes
15594 else
15595   echo "$as_me: failed program was:" >&5
15596 sed 's/^/| /' conftest.$ac_ext >&5
15597
15598         ac_header_compiler=no
15599 fi
15600
15601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15602 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15603 echo "${ECHO_T}$ac_header_compiler" >&6; }
15604
15605 # Is the header present?
15606 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15607 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15608 cat >conftest.$ac_ext <<_ACEOF
15609 /* confdefs.h.  */
15610 _ACEOF
15611 cat confdefs.h >>conftest.$ac_ext
15612 cat >>conftest.$ac_ext <<_ACEOF
15613 /* end confdefs.h.  */
15614 #include <$ac_header>
15615 _ACEOF
15616 if { (ac_try="$ac_cpp conftest.$ac_ext"
15617 case "(($ac_try" in
15618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15619   *) ac_try_echo=$ac_try;;
15620 esac
15621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15622   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15623   ac_status=$?
15624   grep -v '^ *+' conftest.er1 >conftest.err
15625   rm -f conftest.er1
15626   cat conftest.err >&5
15627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628   (exit $ac_status); } >/dev/null; then
15629   if test -s conftest.err; then
15630     ac_cpp_err=$ac_c_preproc_warn_flag
15631     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15632   else
15633     ac_cpp_err=
15634   fi
15635 else
15636   ac_cpp_err=yes
15637 fi
15638 if test -z "$ac_cpp_err"; then
15639   ac_header_preproc=yes
15640 else
15641   echo "$as_me: failed program was:" >&5
15642 sed 's/^/| /' conftest.$ac_ext >&5
15643
15644   ac_header_preproc=no
15645 fi
15646
15647 rm -f conftest.err conftest.$ac_ext
15648 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15649 echo "${ECHO_T}$ac_header_preproc" >&6; }
15650
15651 # So?  What about this header?
15652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15653   yes:no: )
15654     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15655 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15656     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15657 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15658     ac_header_preproc=yes
15659     ;;
15660   no:yes:* )
15661     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15663     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15664 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15665     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15666 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15667     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15668 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15669     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15671     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15672 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15673     ( cat <<\_ASBOX
15674 ## ----------------------------------- ##
15675 ## Report this to llvmbugs@cs.uiuc.edu ##
15676 ## ----------------------------------- ##
15677 _ASBOX
15678      ) | sed "s/^/$as_me: WARNING:     /" >&2
15679     ;;
15680 esac
15681 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15684   echo $ECHO_N "(cached) $ECHO_C" >&6
15685 else
15686   eval "$as_ac_Header=\$ac_header_preproc"
15687 fi
15688 ac_res=`eval echo '${'$as_ac_Header'}'`
15689                { echo "$as_me:$LINENO: result: $ac_res" >&5
15690 echo "${ECHO_T}$ac_res" >&6; }
15691
15692 fi
15693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15694   cat >>confdefs.h <<_ACEOF
15695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15696 _ACEOF
15697
15698 fi
15699
15700 done
15701
15702
15703
15704
15705
15706 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
15707 do
15708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15710   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15713   echo $ECHO_N "(cached) $ECHO_C" >&6
15714 fi
15715 ac_res=`eval echo '${'$as_ac_Header'}'`
15716                { echo "$as_me:$LINENO: result: $ac_res" >&5
15717 echo "${ECHO_T}$ac_res" >&6; }
15718 else
15719   # Is the header compilable?
15720 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15722 cat >conftest.$ac_ext <<_ACEOF
15723 /* confdefs.h.  */
15724 _ACEOF
15725 cat confdefs.h >>conftest.$ac_ext
15726 cat >>conftest.$ac_ext <<_ACEOF
15727 /* end confdefs.h.  */
15728 $ac_includes_default
15729 #include <$ac_header>
15730 _ACEOF
15731 rm -f conftest.$ac_objext
15732 if { (ac_try="$ac_compile"
15733 case "(($ac_try" in
15734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15735   *) ac_try_echo=$ac_try;;
15736 esac
15737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15738   (eval "$ac_compile") 2>conftest.er1
15739   ac_status=$?
15740   grep -v '^ *+' conftest.er1 >conftest.err
15741   rm -f conftest.er1
15742   cat conftest.err >&5
15743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744   (exit $ac_status); } &&
15745          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15746   { (case "(($ac_try" in
15747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15748   *) ac_try_echo=$ac_try;;
15749 esac
15750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15751   (eval "$ac_try") 2>&5
15752   ac_status=$?
15753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754   (exit $ac_status); }; } &&
15755          { ac_try='test -s conftest.$ac_objext'
15756   { (case "(($ac_try" in
15757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15758   *) ac_try_echo=$ac_try;;
15759 esac
15760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15761   (eval "$ac_try") 2>&5
15762   ac_status=$?
15763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764   (exit $ac_status); }; }; then
15765   ac_header_compiler=yes
15766 else
15767   echo "$as_me: failed program was:" >&5
15768 sed 's/^/| /' conftest.$ac_ext >&5
15769
15770         ac_header_compiler=no
15771 fi
15772
15773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15774 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15775 echo "${ECHO_T}$ac_header_compiler" >&6; }
15776
15777 # Is the header present?
15778 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15780 cat >conftest.$ac_ext <<_ACEOF
15781 /* confdefs.h.  */
15782 _ACEOF
15783 cat confdefs.h >>conftest.$ac_ext
15784 cat >>conftest.$ac_ext <<_ACEOF
15785 /* end confdefs.h.  */
15786 #include <$ac_header>
15787 _ACEOF
15788 if { (ac_try="$ac_cpp conftest.$ac_ext"
15789 case "(($ac_try" in
15790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15791   *) ac_try_echo=$ac_try;;
15792 esac
15793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15794   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15795   ac_status=$?
15796   grep -v '^ *+' conftest.er1 >conftest.err
15797   rm -f conftest.er1
15798   cat conftest.err >&5
15799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800   (exit $ac_status); } >/dev/null; then
15801   if test -s conftest.err; then
15802     ac_cpp_err=$ac_c_preproc_warn_flag
15803     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15804   else
15805     ac_cpp_err=
15806   fi
15807 else
15808   ac_cpp_err=yes
15809 fi
15810 if test -z "$ac_cpp_err"; then
15811   ac_header_preproc=yes
15812 else
15813   echo "$as_me: failed program was:" >&5
15814 sed 's/^/| /' conftest.$ac_ext >&5
15815
15816   ac_header_preproc=no
15817 fi
15818
15819 rm -f conftest.err conftest.$ac_ext
15820 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15821 echo "${ECHO_T}$ac_header_preproc" >&6; }
15822
15823 # So?  What about this header?
15824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15825   yes:no: )
15826     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15827 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15828     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15829 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15830     ac_header_preproc=yes
15831     ;;
15832   no:yes:* )
15833     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15834 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15835     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15836 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15837     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15838 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15839     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15840 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15841     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15843     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15844 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15845     ( cat <<\_ASBOX
15846 ## ----------------------------------- ##
15847 ## Report this to llvmbugs@cs.uiuc.edu ##
15848 ## ----------------------------------- ##
15849 _ASBOX
15850      ) | sed "s/^/$as_me: WARNING:     /" >&2
15851     ;;
15852 esac
15853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15856   echo $ECHO_N "(cached) $ECHO_C" >&6
15857 else
15858   eval "$as_ac_Header=\$ac_header_preproc"
15859 fi
15860 ac_res=`eval echo '${'$as_ac_Header'}'`
15861                { echo "$as_me:$LINENO: result: $ac_res" >&5
15862 echo "${ECHO_T}$ac_res" >&6; }
15863
15864 fi
15865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15866   cat >>confdefs.h <<_ACEOF
15867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15868 _ACEOF
15869
15870 fi
15871
15872 done
15873
15874
15875
15876
15877
15878 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15879 do
15880 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15882   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15885   echo $ECHO_N "(cached) $ECHO_C" >&6
15886 fi
15887 ac_res=`eval echo '${'$as_ac_Header'}'`
15888                { echo "$as_me:$LINENO: result: $ac_res" >&5
15889 echo "${ECHO_T}$ac_res" >&6; }
15890 else
15891   # Is the header compilable?
15892 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15893 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15894 cat >conftest.$ac_ext <<_ACEOF
15895 /* confdefs.h.  */
15896 _ACEOF
15897 cat confdefs.h >>conftest.$ac_ext
15898 cat >>conftest.$ac_ext <<_ACEOF
15899 /* end confdefs.h.  */
15900 $ac_includes_default
15901 #include <$ac_header>
15902 _ACEOF
15903 rm -f conftest.$ac_objext
15904 if { (ac_try="$ac_compile"
15905 case "(($ac_try" in
15906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15907   *) ac_try_echo=$ac_try;;
15908 esac
15909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15910   (eval "$ac_compile") 2>conftest.er1
15911   ac_status=$?
15912   grep -v '^ *+' conftest.er1 >conftest.err
15913   rm -f conftest.er1
15914   cat conftest.err >&5
15915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916   (exit $ac_status); } &&
15917          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15918   { (case "(($ac_try" in
15919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15920   *) ac_try_echo=$ac_try;;
15921 esac
15922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15923   (eval "$ac_try") 2>&5
15924   ac_status=$?
15925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926   (exit $ac_status); }; } &&
15927          { ac_try='test -s conftest.$ac_objext'
15928   { (case "(($ac_try" in
15929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15930   *) ac_try_echo=$ac_try;;
15931 esac
15932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15933   (eval "$ac_try") 2>&5
15934   ac_status=$?
15935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936   (exit $ac_status); }; }; then
15937   ac_header_compiler=yes
15938 else
15939   echo "$as_me: failed program was:" >&5
15940 sed 's/^/| /' conftest.$ac_ext >&5
15941
15942         ac_header_compiler=no
15943 fi
15944
15945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15946 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15947 echo "${ECHO_T}$ac_header_compiler" >&6; }
15948
15949 # Is the header present?
15950 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15951 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15952 cat >conftest.$ac_ext <<_ACEOF
15953 /* confdefs.h.  */
15954 _ACEOF
15955 cat confdefs.h >>conftest.$ac_ext
15956 cat >>conftest.$ac_ext <<_ACEOF
15957 /* end confdefs.h.  */
15958 #include <$ac_header>
15959 _ACEOF
15960 if { (ac_try="$ac_cpp conftest.$ac_ext"
15961 case "(($ac_try" in
15962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15963   *) ac_try_echo=$ac_try;;
15964 esac
15965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15966   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15967   ac_status=$?
15968   grep -v '^ *+' conftest.er1 >conftest.err
15969   rm -f conftest.er1
15970   cat conftest.err >&5
15971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972   (exit $ac_status); } >/dev/null; then
15973   if test -s conftest.err; then
15974     ac_cpp_err=$ac_c_preproc_warn_flag
15975     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15976   else
15977     ac_cpp_err=
15978   fi
15979 else
15980   ac_cpp_err=yes
15981 fi
15982 if test -z "$ac_cpp_err"; then
15983   ac_header_preproc=yes
15984 else
15985   echo "$as_me: failed program was:" >&5
15986 sed 's/^/| /' conftest.$ac_ext >&5
15987
15988   ac_header_preproc=no
15989 fi
15990
15991 rm -f conftest.err conftest.$ac_ext
15992 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15993 echo "${ECHO_T}$ac_header_preproc" >&6; }
15994
15995 # So?  What about this header?
15996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15997   yes:no: )
15998     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15999 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16000     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16001 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16002     ac_header_preproc=yes
16003     ;;
16004   no:yes:* )
16005     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16006 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16007     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16008 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16009     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16010 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16011     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16012 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16013     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16014 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16015     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16016 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16017     ( cat <<\_ASBOX
16018 ## ----------------------------------- ##
16019 ## Report this to llvmbugs@cs.uiuc.edu ##
16020 ## ----------------------------------- ##
16021 _ASBOX
16022      ) | sed "s/^/$as_me: WARNING:     /" >&2
16023     ;;
16024 esac
16025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16028   echo $ECHO_N "(cached) $ECHO_C" >&6
16029 else
16030   eval "$as_ac_Header=\$ac_header_preproc"
16031 fi
16032 ac_res=`eval echo '${'$as_ac_Header'}'`
16033                { echo "$as_me:$LINENO: result: $ac_res" >&5
16034 echo "${ECHO_T}$ac_res" >&6; }
16035
16036 fi
16037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16038   cat >>confdefs.h <<_ACEOF
16039 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16040 _ACEOF
16041
16042 fi
16043
16044 done
16045
16046 if test "$ENABLE_THREADS" -eq 1 ; then
16047
16048 for ac_header in pthread.h
16049 do
16050 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16052   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16055   echo $ECHO_N "(cached) $ECHO_C" >&6
16056 fi
16057 ac_res=`eval echo '${'$as_ac_Header'}'`
16058                { echo "$as_me:$LINENO: result: $ac_res" >&5
16059 echo "${ECHO_T}$ac_res" >&6; }
16060 else
16061   # Is the header compilable?
16062 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16063 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16064 cat >conftest.$ac_ext <<_ACEOF
16065 /* confdefs.h.  */
16066 _ACEOF
16067 cat confdefs.h >>conftest.$ac_ext
16068 cat >>conftest.$ac_ext <<_ACEOF
16069 /* end confdefs.h.  */
16070 $ac_includes_default
16071 #include <$ac_header>
16072 _ACEOF
16073 rm -f conftest.$ac_objext
16074 if { (ac_try="$ac_compile"
16075 case "(($ac_try" in
16076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16077   *) ac_try_echo=$ac_try;;
16078 esac
16079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16080   (eval "$ac_compile") 2>conftest.er1
16081   ac_status=$?
16082   grep -v '^ *+' conftest.er1 >conftest.err
16083   rm -f conftest.er1
16084   cat conftest.err >&5
16085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086   (exit $ac_status); } &&
16087          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16088   { (case "(($ac_try" in
16089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16090   *) ac_try_echo=$ac_try;;
16091 esac
16092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16093   (eval "$ac_try") 2>&5
16094   ac_status=$?
16095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096   (exit $ac_status); }; } &&
16097          { ac_try='test -s conftest.$ac_objext'
16098   { (case "(($ac_try" in
16099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16100   *) ac_try_echo=$ac_try;;
16101 esac
16102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16103   (eval "$ac_try") 2>&5
16104   ac_status=$?
16105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106   (exit $ac_status); }; }; then
16107   ac_header_compiler=yes
16108 else
16109   echo "$as_me: failed program was:" >&5
16110 sed 's/^/| /' conftest.$ac_ext >&5
16111
16112         ac_header_compiler=no
16113 fi
16114
16115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16116 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16117 echo "${ECHO_T}$ac_header_compiler" >&6; }
16118
16119 # Is the header present?
16120 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16121 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16122 cat >conftest.$ac_ext <<_ACEOF
16123 /* confdefs.h.  */
16124 _ACEOF
16125 cat confdefs.h >>conftest.$ac_ext
16126 cat >>conftest.$ac_ext <<_ACEOF
16127 /* end confdefs.h.  */
16128 #include <$ac_header>
16129 _ACEOF
16130 if { (ac_try="$ac_cpp conftest.$ac_ext"
16131 case "(($ac_try" in
16132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16133   *) ac_try_echo=$ac_try;;
16134 esac
16135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16136   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16137   ac_status=$?
16138   grep -v '^ *+' conftest.er1 >conftest.err
16139   rm -f conftest.er1
16140   cat conftest.err >&5
16141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142   (exit $ac_status); } >/dev/null; then
16143   if test -s conftest.err; then
16144     ac_cpp_err=$ac_c_preproc_warn_flag
16145     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16146   else
16147     ac_cpp_err=
16148   fi
16149 else
16150   ac_cpp_err=yes
16151 fi
16152 if test -z "$ac_cpp_err"; then
16153   ac_header_preproc=yes
16154 else
16155   echo "$as_me: failed program was:" >&5
16156 sed 's/^/| /' conftest.$ac_ext >&5
16157
16158   ac_header_preproc=no
16159 fi
16160
16161 rm -f conftest.err conftest.$ac_ext
16162 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16163 echo "${ECHO_T}$ac_header_preproc" >&6; }
16164
16165 # So?  What about this header?
16166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16167   yes:no: )
16168     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16169 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16170     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16171 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16172     ac_header_preproc=yes
16173     ;;
16174   no:yes:* )
16175     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16176 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16177     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16178 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16179     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16180 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16181     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16182 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16183     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16184 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16185     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16186 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16187     ( cat <<\_ASBOX
16188 ## ----------------------------------- ##
16189 ## Report this to llvmbugs@cs.uiuc.edu ##
16190 ## ----------------------------------- ##
16191 _ASBOX
16192      ) | sed "s/^/$as_me: WARNING:     /" >&2
16193     ;;
16194 esac
16195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16198   echo $ECHO_N "(cached) $ECHO_C" >&6
16199 else
16200   eval "$as_ac_Header=\$ac_header_preproc"
16201 fi
16202 ac_res=`eval echo '${'$as_ac_Header'}'`
16203                { echo "$as_me:$LINENO: result: $ac_res" >&5
16204 echo "${ECHO_T}$ac_res" >&6; }
16205
16206 fi
16207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16208   cat >>confdefs.h <<_ACEOF
16209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16210 _ACEOF
16211  HAVE_PTHREAD=1
16212
16213 else
16214   HAVE_PTHREAD=0
16215
16216 fi
16217
16218 done
16219
16220 else
16221   HAVE_PTHREAD=0
16222
16223 fi
16224
16225 if test "$llvm_cv_enable_libffi" = "yes" ; then
16226
16227
16228 for ac_header in ffi.h ffi/ffi.h
16229 do
16230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16232   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16235   echo $ECHO_N "(cached) $ECHO_C" >&6
16236 fi
16237 ac_res=`eval echo '${'$as_ac_Header'}'`
16238                { echo "$as_me:$LINENO: result: $ac_res" >&5
16239 echo "${ECHO_T}$ac_res" >&6; }
16240 else
16241   # Is the header compilable?
16242 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16243 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16244 cat >conftest.$ac_ext <<_ACEOF
16245 /* confdefs.h.  */
16246 _ACEOF
16247 cat confdefs.h >>conftest.$ac_ext
16248 cat >>conftest.$ac_ext <<_ACEOF
16249 /* end confdefs.h.  */
16250 $ac_includes_default
16251 #include <$ac_header>
16252 _ACEOF
16253 rm -f conftest.$ac_objext
16254 if { (ac_try="$ac_compile"
16255 case "(($ac_try" in
16256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16257   *) ac_try_echo=$ac_try;;
16258 esac
16259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16260   (eval "$ac_compile") 2>conftest.er1
16261   ac_status=$?
16262   grep -v '^ *+' conftest.er1 >conftest.err
16263   rm -f conftest.er1
16264   cat conftest.err >&5
16265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266   (exit $ac_status); } &&
16267          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16268   { (case "(($ac_try" in
16269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16270   *) ac_try_echo=$ac_try;;
16271 esac
16272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16273   (eval "$ac_try") 2>&5
16274   ac_status=$?
16275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276   (exit $ac_status); }; } &&
16277          { ac_try='test -s conftest.$ac_objext'
16278   { (case "(($ac_try" in
16279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16280   *) ac_try_echo=$ac_try;;
16281 esac
16282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16283   (eval "$ac_try") 2>&5
16284   ac_status=$?
16285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286   (exit $ac_status); }; }; then
16287   ac_header_compiler=yes
16288 else
16289   echo "$as_me: failed program was:" >&5
16290 sed 's/^/| /' conftest.$ac_ext >&5
16291
16292         ac_header_compiler=no
16293 fi
16294
16295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16296 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16297 echo "${ECHO_T}$ac_header_compiler" >&6; }
16298
16299 # Is the header present?
16300 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16301 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16302 cat >conftest.$ac_ext <<_ACEOF
16303 /* confdefs.h.  */
16304 _ACEOF
16305 cat confdefs.h >>conftest.$ac_ext
16306 cat >>conftest.$ac_ext <<_ACEOF
16307 /* end confdefs.h.  */
16308 #include <$ac_header>
16309 _ACEOF
16310 if { (ac_try="$ac_cpp conftest.$ac_ext"
16311 case "(($ac_try" in
16312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16313   *) ac_try_echo=$ac_try;;
16314 esac
16315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16316   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16317   ac_status=$?
16318   grep -v '^ *+' conftest.er1 >conftest.err
16319   rm -f conftest.er1
16320   cat conftest.err >&5
16321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322   (exit $ac_status); } >/dev/null; then
16323   if test -s conftest.err; then
16324     ac_cpp_err=$ac_c_preproc_warn_flag
16325     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16326   else
16327     ac_cpp_err=
16328   fi
16329 else
16330   ac_cpp_err=yes
16331 fi
16332 if test -z "$ac_cpp_err"; then
16333   ac_header_preproc=yes
16334 else
16335   echo "$as_me: failed program was:" >&5
16336 sed 's/^/| /' conftest.$ac_ext >&5
16337
16338   ac_header_preproc=no
16339 fi
16340
16341 rm -f conftest.err conftest.$ac_ext
16342 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16343 echo "${ECHO_T}$ac_header_preproc" >&6; }
16344
16345 # So?  What about this header?
16346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16347   yes:no: )
16348     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16349 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16350     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16351 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16352     ac_header_preproc=yes
16353     ;;
16354   no:yes:* )
16355     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16356 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16357     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16358 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16359     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16360 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16361     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16362 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16363     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16365     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16366 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16367     ( cat <<\_ASBOX
16368 ## ----------------------------------- ##
16369 ## Report this to llvmbugs@cs.uiuc.edu ##
16370 ## ----------------------------------- ##
16371 _ASBOX
16372      ) | sed "s/^/$as_me: WARNING:     /" >&2
16373     ;;
16374 esac
16375 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16378   echo $ECHO_N "(cached) $ECHO_C" >&6
16379 else
16380   eval "$as_ac_Header=\$ac_header_preproc"
16381 fi
16382 ac_res=`eval echo '${'$as_ac_Header'}'`
16383                { echo "$as_me:$LINENO: result: $ac_res" >&5
16384 echo "${ECHO_T}$ac_res" >&6; }
16385
16386 fi
16387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16388   cat >>confdefs.h <<_ACEOF
16389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16390 _ACEOF
16391
16392 fi
16393
16394 done
16395
16396 fi
16397
16398
16399
16400
16401   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16402 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16403 if test "${ac_cv_huge_val_sanity+set}" = set; then
16404   echo $ECHO_N "(cached) $ECHO_C" >&6
16405 else
16406
16407     ac_ext=cpp
16408 ac_cpp='$CXXCPP $CPPFLAGS'
16409 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16410 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16411 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16412
16413     CXXFLAGS=-pedantic
16414     if test "$cross_compiling" = yes; then
16415   ac_cv_huge_val_sanity=yes
16416 else
16417   cat >conftest.$ac_ext <<_ACEOF
16418 /* confdefs.h.  */
16419 _ACEOF
16420 cat confdefs.h >>conftest.$ac_ext
16421 cat >>conftest.$ac_ext <<_ACEOF
16422 /* end confdefs.h.  */
16423 #include <math.h>
16424 int
16425 main ()
16426 {
16427 double x = HUGE_VAL; return x != x;
16428   ;
16429   return 0;
16430 }
16431 _ACEOF
16432 rm -f conftest$ac_exeext
16433 if { (ac_try="$ac_link"
16434 case "(($ac_try" in
16435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16436   *) ac_try_echo=$ac_try;;
16437 esac
16438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16439   (eval "$ac_link") 2>&5
16440   ac_status=$?
16441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16443   { (case "(($ac_try" in
16444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16445   *) ac_try_echo=$ac_try;;
16446 esac
16447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16448   (eval "$ac_try") 2>&5
16449   ac_status=$?
16450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451   (exit $ac_status); }; }; then
16452   ac_cv_huge_val_sanity=yes
16453 else
16454   echo "$as_me: program exited with status $ac_status" >&5
16455 echo "$as_me: failed program was:" >&5
16456 sed 's/^/| /' conftest.$ac_ext >&5
16457
16458 ( exit $ac_status )
16459 ac_cv_huge_val_sanity=no
16460 fi
16461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16462 fi
16463
16464
16465     ac_ext=c
16466 ac_cpp='$CPP $CPPFLAGS'
16467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16470
16471
16472 fi
16473 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16474 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16475   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16476
16477
16478 { echo "$as_me:$LINENO: checking for pid_t" >&5
16479 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16480 if test "${ac_cv_type_pid_t+set}" = set; then
16481   echo $ECHO_N "(cached) $ECHO_C" >&6
16482 else
16483   cat >conftest.$ac_ext <<_ACEOF
16484 /* confdefs.h.  */
16485 _ACEOF
16486 cat confdefs.h >>conftest.$ac_ext
16487 cat >>conftest.$ac_ext <<_ACEOF
16488 /* end confdefs.h.  */
16489 $ac_includes_default
16490 typedef pid_t ac__type_new_;
16491 int
16492 main ()
16493 {
16494 if ((ac__type_new_ *) 0)
16495   return 0;
16496 if (sizeof (ac__type_new_))
16497   return 0;
16498   ;
16499   return 0;
16500 }
16501 _ACEOF
16502 rm -f conftest.$ac_objext
16503 if { (ac_try="$ac_compile"
16504 case "(($ac_try" in
16505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16506   *) ac_try_echo=$ac_try;;
16507 esac
16508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16509   (eval "$ac_compile") 2>conftest.er1
16510   ac_status=$?
16511   grep -v '^ *+' conftest.er1 >conftest.err
16512   rm -f conftest.er1
16513   cat conftest.err >&5
16514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515   (exit $ac_status); } &&
16516          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16517   { (case "(($ac_try" in
16518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16519   *) ac_try_echo=$ac_try;;
16520 esac
16521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16522   (eval "$ac_try") 2>&5
16523   ac_status=$?
16524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525   (exit $ac_status); }; } &&
16526          { ac_try='test -s conftest.$ac_objext'
16527   { (case "(($ac_try" in
16528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16529   *) ac_try_echo=$ac_try;;
16530 esac
16531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16532   (eval "$ac_try") 2>&5
16533   ac_status=$?
16534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535   (exit $ac_status); }; }; then
16536   ac_cv_type_pid_t=yes
16537 else
16538   echo "$as_me: failed program was:" >&5
16539 sed 's/^/| /' conftest.$ac_ext >&5
16540
16541         ac_cv_type_pid_t=no
16542 fi
16543
16544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16545 fi
16546 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16547 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16548 if test $ac_cv_type_pid_t = yes; then
16549   :
16550 else
16551
16552 cat >>confdefs.h <<_ACEOF
16553 #define pid_t int
16554 _ACEOF
16555
16556 fi
16557
16558 { echo "$as_me:$LINENO: checking for size_t" >&5
16559 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16560 if test "${ac_cv_type_size_t+set}" = set; then
16561   echo $ECHO_N "(cached) $ECHO_C" >&6
16562 else
16563   cat >conftest.$ac_ext <<_ACEOF
16564 /* confdefs.h.  */
16565 _ACEOF
16566 cat confdefs.h >>conftest.$ac_ext
16567 cat >>conftest.$ac_ext <<_ACEOF
16568 /* end confdefs.h.  */
16569 $ac_includes_default
16570 typedef size_t ac__type_new_;
16571 int
16572 main ()
16573 {
16574 if ((ac__type_new_ *) 0)
16575   return 0;
16576 if (sizeof (ac__type_new_))
16577   return 0;
16578   ;
16579   return 0;
16580 }
16581 _ACEOF
16582 rm -f conftest.$ac_objext
16583 if { (ac_try="$ac_compile"
16584 case "(($ac_try" in
16585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16586   *) ac_try_echo=$ac_try;;
16587 esac
16588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16589   (eval "$ac_compile") 2>conftest.er1
16590   ac_status=$?
16591   grep -v '^ *+' conftest.er1 >conftest.err
16592   rm -f conftest.er1
16593   cat conftest.err >&5
16594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595   (exit $ac_status); } &&
16596          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16597   { (case "(($ac_try" in
16598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16599   *) ac_try_echo=$ac_try;;
16600 esac
16601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16602   (eval "$ac_try") 2>&5
16603   ac_status=$?
16604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605   (exit $ac_status); }; } &&
16606          { ac_try='test -s conftest.$ac_objext'
16607   { (case "(($ac_try" in
16608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16609   *) ac_try_echo=$ac_try;;
16610 esac
16611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16612   (eval "$ac_try") 2>&5
16613   ac_status=$?
16614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615   (exit $ac_status); }; }; then
16616   ac_cv_type_size_t=yes
16617 else
16618   echo "$as_me: failed program was:" >&5
16619 sed 's/^/| /' conftest.$ac_ext >&5
16620
16621         ac_cv_type_size_t=no
16622 fi
16623
16624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16625 fi
16626 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16627 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16628 if test $ac_cv_type_size_t = yes; then
16629   :
16630 else
16631
16632 cat >>confdefs.h <<_ACEOF
16633 #define size_t unsigned int
16634 _ACEOF
16635
16636 fi
16637
16638
16639 cat >>confdefs.h <<_ACEOF
16640 #define RETSIGTYPE void
16641 _ACEOF
16642
16643 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16644 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16645 if test "${ac_cv_struct_tm+set}" = set; then
16646   echo $ECHO_N "(cached) $ECHO_C" >&6
16647 else
16648   cat >conftest.$ac_ext <<_ACEOF
16649 /* confdefs.h.  */
16650 _ACEOF
16651 cat confdefs.h >>conftest.$ac_ext
16652 cat >>conftest.$ac_ext <<_ACEOF
16653 /* end confdefs.h.  */
16654 #include <sys/types.h>
16655 #include <time.h>
16656
16657 int
16658 main ()
16659 {
16660 struct tm *tp; tp->tm_sec;
16661   ;
16662   return 0;
16663 }
16664 _ACEOF
16665 rm -f conftest.$ac_objext
16666 if { (ac_try="$ac_compile"
16667 case "(($ac_try" in
16668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16669   *) ac_try_echo=$ac_try;;
16670 esac
16671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16672   (eval "$ac_compile") 2>conftest.er1
16673   ac_status=$?
16674   grep -v '^ *+' conftest.er1 >conftest.err
16675   rm -f conftest.er1
16676   cat conftest.err >&5
16677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678   (exit $ac_status); } &&
16679          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16680   { (case "(($ac_try" in
16681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16682   *) ac_try_echo=$ac_try;;
16683 esac
16684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16685   (eval "$ac_try") 2>&5
16686   ac_status=$?
16687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688   (exit $ac_status); }; } &&
16689          { ac_try='test -s conftest.$ac_objext'
16690   { (case "(($ac_try" in
16691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16692   *) ac_try_echo=$ac_try;;
16693 esac
16694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16695   (eval "$ac_try") 2>&5
16696   ac_status=$?
16697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698   (exit $ac_status); }; }; then
16699   ac_cv_struct_tm=time.h
16700 else
16701   echo "$as_me: failed program was:" >&5
16702 sed 's/^/| /' conftest.$ac_ext >&5
16703
16704         ac_cv_struct_tm=sys/time.h
16705 fi
16706
16707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16708 fi
16709 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16710 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16711 if test $ac_cv_struct_tm = sys/time.h; then
16712
16713 cat >>confdefs.h <<\_ACEOF
16714 #define TM_IN_SYS_TIME 1
16715 _ACEOF
16716
16717 fi
16718
16719 { echo "$as_me:$LINENO: checking for int64_t" >&5
16720 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16721 if test "${ac_cv_type_int64_t+set}" = set; then
16722   echo $ECHO_N "(cached) $ECHO_C" >&6
16723 else
16724   cat >conftest.$ac_ext <<_ACEOF
16725 /* confdefs.h.  */
16726 _ACEOF
16727 cat confdefs.h >>conftest.$ac_ext
16728 cat >>conftest.$ac_ext <<_ACEOF
16729 /* end confdefs.h.  */
16730 $ac_includes_default
16731 typedef int64_t ac__type_new_;
16732 int
16733 main ()
16734 {
16735 if ((ac__type_new_ *) 0)
16736   return 0;
16737 if (sizeof (ac__type_new_))
16738   return 0;
16739   ;
16740   return 0;
16741 }
16742 _ACEOF
16743 rm -f conftest.$ac_objext
16744 if { (ac_try="$ac_compile"
16745 case "(($ac_try" in
16746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16747   *) ac_try_echo=$ac_try;;
16748 esac
16749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16750   (eval "$ac_compile") 2>conftest.er1
16751   ac_status=$?
16752   grep -v '^ *+' conftest.er1 >conftest.err
16753   rm -f conftest.er1
16754   cat conftest.err >&5
16755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756   (exit $ac_status); } &&
16757          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16758   { (case "(($ac_try" in
16759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16760   *) ac_try_echo=$ac_try;;
16761 esac
16762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16763   (eval "$ac_try") 2>&5
16764   ac_status=$?
16765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766   (exit $ac_status); }; } &&
16767          { ac_try='test -s conftest.$ac_objext'
16768   { (case "(($ac_try" in
16769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16770   *) ac_try_echo=$ac_try;;
16771 esac
16772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16773   (eval "$ac_try") 2>&5
16774   ac_status=$?
16775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776   (exit $ac_status); }; }; then
16777   ac_cv_type_int64_t=yes
16778 else
16779   echo "$as_me: failed program was:" >&5
16780 sed 's/^/| /' conftest.$ac_ext >&5
16781
16782         ac_cv_type_int64_t=no
16783 fi
16784
16785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16786 fi
16787 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16788 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16789 if test $ac_cv_type_int64_t = yes; then
16790
16791 cat >>confdefs.h <<_ACEOF
16792 #define HAVE_INT64_T 1
16793 _ACEOF
16794
16795
16796 else
16797   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16798 echo "$as_me: error: Type int64_t required but not found" >&2;}
16799    { (exit 1); exit 1; }; }
16800 fi
16801
16802 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16803 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16804 if test "${ac_cv_type_uint64_t+set}" = set; then
16805   echo $ECHO_N "(cached) $ECHO_C" >&6
16806 else
16807   cat >conftest.$ac_ext <<_ACEOF
16808 /* confdefs.h.  */
16809 _ACEOF
16810 cat confdefs.h >>conftest.$ac_ext
16811 cat >>conftest.$ac_ext <<_ACEOF
16812 /* end confdefs.h.  */
16813 $ac_includes_default
16814 typedef uint64_t ac__type_new_;
16815 int
16816 main ()
16817 {
16818 if ((ac__type_new_ *) 0)
16819   return 0;
16820 if (sizeof (ac__type_new_))
16821   return 0;
16822   ;
16823   return 0;
16824 }
16825 _ACEOF
16826 rm -f conftest.$ac_objext
16827 if { (ac_try="$ac_compile"
16828 case "(($ac_try" in
16829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16830   *) ac_try_echo=$ac_try;;
16831 esac
16832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16833   (eval "$ac_compile") 2>conftest.er1
16834   ac_status=$?
16835   grep -v '^ *+' conftest.er1 >conftest.err
16836   rm -f conftest.er1
16837   cat conftest.err >&5
16838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839   (exit $ac_status); } &&
16840          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16841   { (case "(($ac_try" in
16842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16843   *) ac_try_echo=$ac_try;;
16844 esac
16845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16846   (eval "$ac_try") 2>&5
16847   ac_status=$?
16848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849   (exit $ac_status); }; } &&
16850          { ac_try='test -s conftest.$ac_objext'
16851   { (case "(($ac_try" in
16852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16853   *) ac_try_echo=$ac_try;;
16854 esac
16855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16856   (eval "$ac_try") 2>&5
16857   ac_status=$?
16858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859   (exit $ac_status); }; }; then
16860   ac_cv_type_uint64_t=yes
16861 else
16862   echo "$as_me: failed program was:" >&5
16863 sed 's/^/| /' conftest.$ac_ext >&5
16864
16865         ac_cv_type_uint64_t=no
16866 fi
16867
16868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16869 fi
16870 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16871 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16872 if test $ac_cv_type_uint64_t = yes; then
16873
16874 cat >>confdefs.h <<_ACEOF
16875 #define HAVE_UINT64_T 1
16876 _ACEOF
16877
16878
16879 else
16880   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16881 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16882 if test "${ac_cv_type_u_int64_t+set}" = set; then
16883   echo $ECHO_N "(cached) $ECHO_C" >&6
16884 else
16885   cat >conftest.$ac_ext <<_ACEOF
16886 /* confdefs.h.  */
16887 _ACEOF
16888 cat confdefs.h >>conftest.$ac_ext
16889 cat >>conftest.$ac_ext <<_ACEOF
16890 /* end confdefs.h.  */
16891 $ac_includes_default
16892 typedef u_int64_t ac__type_new_;
16893 int
16894 main ()
16895 {
16896 if ((ac__type_new_ *) 0)
16897   return 0;
16898 if (sizeof (ac__type_new_))
16899   return 0;
16900   ;
16901   return 0;
16902 }
16903 _ACEOF
16904 rm -f conftest.$ac_objext
16905 if { (ac_try="$ac_compile"
16906 case "(($ac_try" in
16907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16908   *) ac_try_echo=$ac_try;;
16909 esac
16910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16911   (eval "$ac_compile") 2>conftest.er1
16912   ac_status=$?
16913   grep -v '^ *+' conftest.er1 >conftest.err
16914   rm -f conftest.er1
16915   cat conftest.err >&5
16916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917   (exit $ac_status); } &&
16918          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16919   { (case "(($ac_try" in
16920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16921   *) ac_try_echo=$ac_try;;
16922 esac
16923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16924   (eval "$ac_try") 2>&5
16925   ac_status=$?
16926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927   (exit $ac_status); }; } &&
16928          { ac_try='test -s conftest.$ac_objext'
16929   { (case "(($ac_try" in
16930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16931   *) ac_try_echo=$ac_try;;
16932 esac
16933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16934   (eval "$ac_try") 2>&5
16935   ac_status=$?
16936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937   (exit $ac_status); }; }; then
16938   ac_cv_type_u_int64_t=yes
16939 else
16940   echo "$as_me: failed program was:" >&5
16941 sed 's/^/| /' conftest.$ac_ext >&5
16942
16943         ac_cv_type_u_int64_t=no
16944 fi
16945
16946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16947 fi
16948 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16949 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16950 if test $ac_cv_type_u_int64_t = yes; then
16951
16952 cat >>confdefs.h <<_ACEOF
16953 #define HAVE_U_INT64_T 1
16954 _ACEOF
16955
16956
16957 else
16958   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16959 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16960    { (exit 1); exit 1; }; }
16961 fi
16962
16963 fi
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16975 do
16976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16977 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16979 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16980   echo $ECHO_N "(cached) $ECHO_C" >&6
16981 else
16982   cat >conftest.$ac_ext <<_ACEOF
16983 /* confdefs.h.  */
16984 _ACEOF
16985 cat confdefs.h >>conftest.$ac_ext
16986 cat >>conftest.$ac_ext <<_ACEOF
16987 /* end confdefs.h.  */
16988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16989    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16990 #define $ac_func innocuous_$ac_func
16991
16992 /* System header to define __stub macros and hopefully few prototypes,
16993     which can conflict with char $ac_func (); below.
16994     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16995     <limits.h> exists even on freestanding compilers.  */
16996
16997 #ifdef __STDC__
16998 # include <limits.h>
16999 #else
17000 # include <assert.h>
17001 #endif
17002
17003 #undef $ac_func
17004
17005 /* Override any GCC internal prototype to avoid an error.
17006    Use char because int might match the return type of a GCC
17007    builtin and then its argument prototype would still apply.  */
17008 #ifdef __cplusplus
17009 extern "C"
17010 #endif
17011 char $ac_func ();
17012 /* The GNU C library defines this for functions which it implements
17013     to always fail with ENOSYS.  Some functions are actually named
17014     something starting with __ and the normal name is an alias.  */
17015 #if defined __stub_$ac_func || defined __stub___$ac_func
17016 choke me
17017 #endif
17018
17019 int
17020 main ()
17021 {
17022 return $ac_func ();
17023   ;
17024   return 0;
17025 }
17026 _ACEOF
17027 rm -f conftest.$ac_objext conftest$ac_exeext
17028 if { (ac_try="$ac_link"
17029 case "(($ac_try" in
17030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17031   *) ac_try_echo=$ac_try;;
17032 esac
17033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17034   (eval "$ac_link") 2>conftest.er1
17035   ac_status=$?
17036   grep -v '^ *+' conftest.er1 >conftest.err
17037   rm -f conftest.er1
17038   cat conftest.err >&5
17039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040   (exit $ac_status); } &&
17041          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17042   { (case "(($ac_try" in
17043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17044   *) ac_try_echo=$ac_try;;
17045 esac
17046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17047   (eval "$ac_try") 2>&5
17048   ac_status=$?
17049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050   (exit $ac_status); }; } &&
17051          { ac_try='test -s conftest$ac_exeext'
17052   { (case "(($ac_try" in
17053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17054   *) ac_try_echo=$ac_try;;
17055 esac
17056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17057   (eval "$ac_try") 2>&5
17058   ac_status=$?
17059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060   (exit $ac_status); }; }; then
17061   eval "$as_ac_var=yes"
17062 else
17063   echo "$as_me: failed program was:" >&5
17064 sed 's/^/| /' conftest.$ac_ext >&5
17065
17066         eval "$as_ac_var=no"
17067 fi
17068
17069 rm -f core conftest.err conftest.$ac_objext \
17070       conftest$ac_exeext conftest.$ac_ext
17071 fi
17072 ac_res=`eval echo '${'$as_ac_var'}'`
17073                { echo "$as_me:$LINENO: result: $ac_res" >&5
17074 echo "${ECHO_T}$ac_res" >&6; }
17075 if test `eval echo '${'$as_ac_var'}'` = yes; then
17076   cat >>confdefs.h <<_ACEOF
17077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17078 _ACEOF
17079
17080 fi
17081 done
17082
17083
17084
17085
17086
17087 for ac_func in powf fmodf strtof round
17088 do
17089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17090 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17092 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17093   echo $ECHO_N "(cached) $ECHO_C" >&6
17094 else
17095   cat >conftest.$ac_ext <<_ACEOF
17096 /* confdefs.h.  */
17097 _ACEOF
17098 cat confdefs.h >>conftest.$ac_ext
17099 cat >>conftest.$ac_ext <<_ACEOF
17100 /* end confdefs.h.  */
17101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17102    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17103 #define $ac_func innocuous_$ac_func
17104
17105 /* System header to define __stub macros and hopefully few prototypes,
17106     which can conflict with char $ac_func (); below.
17107     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17108     <limits.h> exists even on freestanding compilers.  */
17109
17110 #ifdef __STDC__
17111 # include <limits.h>
17112 #else
17113 # include <assert.h>
17114 #endif
17115
17116 #undef $ac_func
17117
17118 /* Override any GCC internal prototype to avoid an error.
17119    Use char because int might match the return type of a GCC
17120    builtin and then its argument prototype would still apply.  */
17121 #ifdef __cplusplus
17122 extern "C"
17123 #endif
17124 char $ac_func ();
17125 /* The GNU C library defines this for functions which it implements
17126     to always fail with ENOSYS.  Some functions are actually named
17127     something starting with __ and the normal name is an alias.  */
17128 #if defined __stub_$ac_func || defined __stub___$ac_func
17129 choke me
17130 #endif
17131
17132 int
17133 main ()
17134 {
17135 return $ac_func ();
17136   ;
17137   return 0;
17138 }
17139 _ACEOF
17140 rm -f conftest.$ac_objext conftest$ac_exeext
17141 if { (ac_try="$ac_link"
17142 case "(($ac_try" in
17143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17144   *) ac_try_echo=$ac_try;;
17145 esac
17146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17147   (eval "$ac_link") 2>conftest.er1
17148   ac_status=$?
17149   grep -v '^ *+' conftest.er1 >conftest.err
17150   rm -f conftest.er1
17151   cat conftest.err >&5
17152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153   (exit $ac_status); } &&
17154          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17155   { (case "(($ac_try" in
17156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17157   *) ac_try_echo=$ac_try;;
17158 esac
17159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17160   (eval "$ac_try") 2>&5
17161   ac_status=$?
17162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163   (exit $ac_status); }; } &&
17164          { ac_try='test -s conftest$ac_exeext'
17165   { (case "(($ac_try" in
17166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17167   *) ac_try_echo=$ac_try;;
17168 esac
17169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17170   (eval "$ac_try") 2>&5
17171   ac_status=$?
17172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173   (exit $ac_status); }; }; then
17174   eval "$as_ac_var=yes"
17175 else
17176   echo "$as_me: failed program was:" >&5
17177 sed 's/^/| /' conftest.$ac_ext >&5
17178
17179         eval "$as_ac_var=no"
17180 fi
17181
17182 rm -f core conftest.err conftest.$ac_objext \
17183       conftest$ac_exeext conftest.$ac_ext
17184 fi
17185 ac_res=`eval echo '${'$as_ac_var'}'`
17186                { echo "$as_me:$LINENO: result: $ac_res" >&5
17187 echo "${ECHO_T}$ac_res" >&6; }
17188 if test `eval echo '${'$as_ac_var'}'` = yes; then
17189   cat >>confdefs.h <<_ACEOF
17190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17191 _ACEOF
17192
17193 fi
17194 done
17195
17196
17197
17198
17199
17200
17201 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17202 do
17203 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17204 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17206 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17207   echo $ECHO_N "(cached) $ECHO_C" >&6
17208 else
17209   cat >conftest.$ac_ext <<_ACEOF
17210 /* confdefs.h.  */
17211 _ACEOF
17212 cat confdefs.h >>conftest.$ac_ext
17213 cat >>conftest.$ac_ext <<_ACEOF
17214 /* end confdefs.h.  */
17215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17216    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17217 #define $ac_func innocuous_$ac_func
17218
17219 /* System header to define __stub macros and hopefully few prototypes,
17220     which can conflict with char $ac_func (); below.
17221     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17222     <limits.h> exists even on freestanding compilers.  */
17223
17224 #ifdef __STDC__
17225 # include <limits.h>
17226 #else
17227 # include <assert.h>
17228 #endif
17229
17230 #undef $ac_func
17231
17232 /* Override any GCC internal prototype to avoid an error.
17233    Use char because int might match the return type of a GCC
17234    builtin and then its argument prototype would still apply.  */
17235 #ifdef __cplusplus
17236 extern "C"
17237 #endif
17238 char $ac_func ();
17239 /* The GNU C library defines this for functions which it implements
17240     to always fail with ENOSYS.  Some functions are actually named
17241     something starting with __ and the normal name is an alias.  */
17242 #if defined __stub_$ac_func || defined __stub___$ac_func
17243 choke me
17244 #endif
17245
17246 int
17247 main ()
17248 {
17249 return $ac_func ();
17250   ;
17251   return 0;
17252 }
17253 _ACEOF
17254 rm -f conftest.$ac_objext conftest$ac_exeext
17255 if { (ac_try="$ac_link"
17256 case "(($ac_try" in
17257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17258   *) ac_try_echo=$ac_try;;
17259 esac
17260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17261   (eval "$ac_link") 2>conftest.er1
17262   ac_status=$?
17263   grep -v '^ *+' conftest.er1 >conftest.err
17264   rm -f conftest.er1
17265   cat conftest.err >&5
17266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267   (exit $ac_status); } &&
17268          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17269   { (case "(($ac_try" in
17270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17271   *) ac_try_echo=$ac_try;;
17272 esac
17273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17274   (eval "$ac_try") 2>&5
17275   ac_status=$?
17276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277   (exit $ac_status); }; } &&
17278          { ac_try='test -s conftest$ac_exeext'
17279   { (case "(($ac_try" in
17280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17281   *) ac_try_echo=$ac_try;;
17282 esac
17283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17284   (eval "$ac_try") 2>&5
17285   ac_status=$?
17286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287   (exit $ac_status); }; }; then
17288   eval "$as_ac_var=yes"
17289 else
17290   echo "$as_me: failed program was:" >&5
17291 sed 's/^/| /' conftest.$ac_ext >&5
17292
17293         eval "$as_ac_var=no"
17294 fi
17295
17296 rm -f core conftest.err conftest.$ac_objext \
17297       conftest$ac_exeext conftest.$ac_ext
17298 fi
17299 ac_res=`eval echo '${'$as_ac_var'}'`
17300                { echo "$as_me:$LINENO: result: $ac_res" >&5
17301 echo "${ECHO_T}$ac_res" >&6; }
17302 if test `eval echo '${'$as_ac_var'}'` = yes; then
17303   cat >>confdefs.h <<_ACEOF
17304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17305 _ACEOF
17306
17307 fi
17308 done
17309
17310
17311
17312
17313 for ac_func in isatty mkdtemp mkstemp
17314 do
17315 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17316 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17317 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17318 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17319   echo $ECHO_N "(cached) $ECHO_C" >&6
17320 else
17321   cat >conftest.$ac_ext <<_ACEOF
17322 /* confdefs.h.  */
17323 _ACEOF
17324 cat confdefs.h >>conftest.$ac_ext
17325 cat >>conftest.$ac_ext <<_ACEOF
17326 /* end confdefs.h.  */
17327 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17328    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17329 #define $ac_func innocuous_$ac_func
17330
17331 /* System header to define __stub macros and hopefully few prototypes,
17332     which can conflict with char $ac_func (); below.
17333     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17334     <limits.h> exists even on freestanding compilers.  */
17335
17336 #ifdef __STDC__
17337 # include <limits.h>
17338 #else
17339 # include <assert.h>
17340 #endif
17341
17342 #undef $ac_func
17343
17344 /* Override any GCC internal prototype to avoid an error.
17345    Use char because int might match the return type of a GCC
17346    builtin and then its argument prototype would still apply.  */
17347 #ifdef __cplusplus
17348 extern "C"
17349 #endif
17350 char $ac_func ();
17351 /* The GNU C library defines this for functions which it implements
17352     to always fail with ENOSYS.  Some functions are actually named
17353     something starting with __ and the normal name is an alias.  */
17354 #if defined __stub_$ac_func || defined __stub___$ac_func
17355 choke me
17356 #endif
17357
17358 int
17359 main ()
17360 {
17361 return $ac_func ();
17362   ;
17363   return 0;
17364 }
17365 _ACEOF
17366 rm -f conftest.$ac_objext conftest$ac_exeext
17367 if { (ac_try="$ac_link"
17368 case "(($ac_try" in
17369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17370   *) ac_try_echo=$ac_try;;
17371 esac
17372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17373   (eval "$ac_link") 2>conftest.er1
17374   ac_status=$?
17375   grep -v '^ *+' conftest.er1 >conftest.err
17376   rm -f conftest.er1
17377   cat conftest.err >&5
17378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379   (exit $ac_status); } &&
17380          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17381   { (case "(($ac_try" in
17382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17383   *) ac_try_echo=$ac_try;;
17384 esac
17385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17386   (eval "$ac_try") 2>&5
17387   ac_status=$?
17388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389   (exit $ac_status); }; } &&
17390          { ac_try='test -s conftest$ac_exeext'
17391   { (case "(($ac_try" in
17392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17393   *) ac_try_echo=$ac_try;;
17394 esac
17395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17396   (eval "$ac_try") 2>&5
17397   ac_status=$?
17398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399   (exit $ac_status); }; }; then
17400   eval "$as_ac_var=yes"
17401 else
17402   echo "$as_me: failed program was:" >&5
17403 sed 's/^/| /' conftest.$ac_ext >&5
17404
17405         eval "$as_ac_var=no"
17406 fi
17407
17408 rm -f core conftest.err conftest.$ac_objext \
17409       conftest$ac_exeext conftest.$ac_ext
17410 fi
17411 ac_res=`eval echo '${'$as_ac_var'}'`
17412                { echo "$as_me:$LINENO: result: $ac_res" >&5
17413 echo "${ECHO_T}$ac_res" >&6; }
17414 if test `eval echo '${'$as_ac_var'}'` = yes; then
17415   cat >>confdefs.h <<_ACEOF
17416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17417 _ACEOF
17418
17419 fi
17420 done
17421
17422
17423
17424
17425
17426
17427 for ac_func in mktemp realpath sbrk setrlimit strdup
17428 do
17429 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17430 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17431 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17432 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17433   echo $ECHO_N "(cached) $ECHO_C" >&6
17434 else
17435   cat >conftest.$ac_ext <<_ACEOF
17436 /* confdefs.h.  */
17437 _ACEOF
17438 cat confdefs.h >>conftest.$ac_ext
17439 cat >>conftest.$ac_ext <<_ACEOF
17440 /* end confdefs.h.  */
17441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17442    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17443 #define $ac_func innocuous_$ac_func
17444
17445 /* System header to define __stub macros and hopefully few prototypes,
17446     which can conflict with char $ac_func (); below.
17447     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17448     <limits.h> exists even on freestanding compilers.  */
17449
17450 #ifdef __STDC__
17451 # include <limits.h>
17452 #else
17453 # include <assert.h>
17454 #endif
17455
17456 #undef $ac_func
17457
17458 /* Override any GCC internal prototype to avoid an error.
17459    Use char because int might match the return type of a GCC
17460    builtin and then its argument prototype would still apply.  */
17461 #ifdef __cplusplus
17462 extern "C"
17463 #endif
17464 char $ac_func ();
17465 /* The GNU C library defines this for functions which it implements
17466     to always fail with ENOSYS.  Some functions are actually named
17467     something starting with __ and the normal name is an alias.  */
17468 #if defined __stub_$ac_func || defined __stub___$ac_func
17469 choke me
17470 #endif
17471
17472 int
17473 main ()
17474 {
17475 return $ac_func ();
17476   ;
17477   return 0;
17478 }
17479 _ACEOF
17480 rm -f conftest.$ac_objext conftest$ac_exeext
17481 if { (ac_try="$ac_link"
17482 case "(($ac_try" in
17483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17484   *) ac_try_echo=$ac_try;;
17485 esac
17486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17487   (eval "$ac_link") 2>conftest.er1
17488   ac_status=$?
17489   grep -v '^ *+' conftest.er1 >conftest.err
17490   rm -f conftest.er1
17491   cat conftest.err >&5
17492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493   (exit $ac_status); } &&
17494          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17495   { (case "(($ac_try" in
17496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17497   *) ac_try_echo=$ac_try;;
17498 esac
17499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17500   (eval "$ac_try") 2>&5
17501   ac_status=$?
17502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503   (exit $ac_status); }; } &&
17504          { ac_try='test -s conftest$ac_exeext'
17505   { (case "(($ac_try" in
17506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17507   *) ac_try_echo=$ac_try;;
17508 esac
17509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17510   (eval "$ac_try") 2>&5
17511   ac_status=$?
17512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513   (exit $ac_status); }; }; then
17514   eval "$as_ac_var=yes"
17515 else
17516   echo "$as_me: failed program was:" >&5
17517 sed 's/^/| /' conftest.$ac_ext >&5
17518
17519         eval "$as_ac_var=no"
17520 fi
17521
17522 rm -f core conftest.err conftest.$ac_objext \
17523       conftest$ac_exeext conftest.$ac_ext
17524 fi
17525 ac_res=`eval echo '${'$as_ac_var'}'`
17526                { echo "$as_me:$LINENO: result: $ac_res" >&5
17527 echo "${ECHO_T}$ac_res" >&6; }
17528 if test `eval echo '${'$as_ac_var'}'` = yes; then
17529   cat >>confdefs.h <<_ACEOF
17530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17531 _ACEOF
17532
17533 fi
17534 done
17535
17536
17537
17538
17539
17540 for ac_func in strerror strerror_r strerror_s setenv
17541 do
17542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17543 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17545 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17546   echo $ECHO_N "(cached) $ECHO_C" >&6
17547 else
17548   cat >conftest.$ac_ext <<_ACEOF
17549 /* confdefs.h.  */
17550 _ACEOF
17551 cat confdefs.h >>conftest.$ac_ext
17552 cat >>conftest.$ac_ext <<_ACEOF
17553 /* end confdefs.h.  */
17554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17555    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17556 #define $ac_func innocuous_$ac_func
17557
17558 /* System header to define __stub macros and hopefully few prototypes,
17559     which can conflict with char $ac_func (); below.
17560     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17561     <limits.h> exists even on freestanding compilers.  */
17562
17563 #ifdef __STDC__
17564 # include <limits.h>
17565 #else
17566 # include <assert.h>
17567 #endif
17568
17569 #undef $ac_func
17570
17571 /* Override any GCC internal prototype to avoid an error.
17572    Use char because int might match the return type of a GCC
17573    builtin and then its argument prototype would still apply.  */
17574 #ifdef __cplusplus
17575 extern "C"
17576 #endif
17577 char $ac_func ();
17578 /* The GNU C library defines this for functions which it implements
17579     to always fail with ENOSYS.  Some functions are actually named
17580     something starting with __ and the normal name is an alias.  */
17581 #if defined __stub_$ac_func || defined __stub___$ac_func
17582 choke me
17583 #endif
17584
17585 int
17586 main ()
17587 {
17588 return $ac_func ();
17589   ;
17590   return 0;
17591 }
17592 _ACEOF
17593 rm -f conftest.$ac_objext conftest$ac_exeext
17594 if { (ac_try="$ac_link"
17595 case "(($ac_try" in
17596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17597   *) ac_try_echo=$ac_try;;
17598 esac
17599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17600   (eval "$ac_link") 2>conftest.er1
17601   ac_status=$?
17602   grep -v '^ *+' conftest.er1 >conftest.err
17603   rm -f conftest.er1
17604   cat conftest.err >&5
17605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606   (exit $ac_status); } &&
17607          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17608   { (case "(($ac_try" in
17609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17610   *) ac_try_echo=$ac_try;;
17611 esac
17612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17613   (eval "$ac_try") 2>&5
17614   ac_status=$?
17615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616   (exit $ac_status); }; } &&
17617          { ac_try='test -s conftest$ac_exeext'
17618   { (case "(($ac_try" in
17619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17620   *) ac_try_echo=$ac_try;;
17621 esac
17622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17623   (eval "$ac_try") 2>&5
17624   ac_status=$?
17625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626   (exit $ac_status); }; }; then
17627   eval "$as_ac_var=yes"
17628 else
17629   echo "$as_me: failed program was:" >&5
17630 sed 's/^/| /' conftest.$ac_ext >&5
17631
17632         eval "$as_ac_var=no"
17633 fi
17634
17635 rm -f core conftest.err conftest.$ac_objext \
17636       conftest$ac_exeext conftest.$ac_ext
17637 fi
17638 ac_res=`eval echo '${'$as_ac_var'}'`
17639                { echo "$as_me:$LINENO: result: $ac_res" >&5
17640 echo "${ECHO_T}$ac_res" >&6; }
17641 if test `eval echo '${'$as_ac_var'}'` = yes; then
17642   cat >>confdefs.h <<_ACEOF
17643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17644 _ACEOF
17645
17646 fi
17647 done
17648
17649
17650
17651
17652
17653 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17654 do
17655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17656 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17658 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17659   echo $ECHO_N "(cached) $ECHO_C" >&6
17660 else
17661   cat >conftest.$ac_ext <<_ACEOF
17662 /* confdefs.h.  */
17663 _ACEOF
17664 cat confdefs.h >>conftest.$ac_ext
17665 cat >>conftest.$ac_ext <<_ACEOF
17666 /* end confdefs.h.  */
17667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17668    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17669 #define $ac_func innocuous_$ac_func
17670
17671 /* System header to define __stub macros and hopefully few prototypes,
17672     which can conflict with char $ac_func (); below.
17673     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17674     <limits.h> exists even on freestanding compilers.  */
17675
17676 #ifdef __STDC__
17677 # include <limits.h>
17678 #else
17679 # include <assert.h>
17680 #endif
17681
17682 #undef $ac_func
17683
17684 /* Override any GCC internal prototype to avoid an error.
17685    Use char because int might match the return type of a GCC
17686    builtin and then its argument prototype would still apply.  */
17687 #ifdef __cplusplus
17688 extern "C"
17689 #endif
17690 char $ac_func ();
17691 /* The GNU C library defines this for functions which it implements
17692     to always fail with ENOSYS.  Some functions are actually named
17693     something starting with __ and the normal name is an alias.  */
17694 #if defined __stub_$ac_func || defined __stub___$ac_func
17695 choke me
17696 #endif
17697
17698 int
17699 main ()
17700 {
17701 return $ac_func ();
17702   ;
17703   return 0;
17704 }
17705 _ACEOF
17706 rm -f conftest.$ac_objext conftest$ac_exeext
17707 if { (ac_try="$ac_link"
17708 case "(($ac_try" in
17709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17710   *) ac_try_echo=$ac_try;;
17711 esac
17712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17713   (eval "$ac_link") 2>conftest.er1
17714   ac_status=$?
17715   grep -v '^ *+' conftest.er1 >conftest.err
17716   rm -f conftest.er1
17717   cat conftest.err >&5
17718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719   (exit $ac_status); } &&
17720          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17721   { (case "(($ac_try" in
17722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17723   *) ac_try_echo=$ac_try;;
17724 esac
17725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17726   (eval "$ac_try") 2>&5
17727   ac_status=$?
17728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729   (exit $ac_status); }; } &&
17730          { ac_try='test -s conftest$ac_exeext'
17731   { (case "(($ac_try" in
17732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17733   *) ac_try_echo=$ac_try;;
17734 esac
17735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17736   (eval "$ac_try") 2>&5
17737   ac_status=$?
17738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739   (exit $ac_status); }; }; then
17740   eval "$as_ac_var=yes"
17741 else
17742   echo "$as_me: failed program was:" >&5
17743 sed 's/^/| /' conftest.$ac_ext >&5
17744
17745         eval "$as_ac_var=no"
17746 fi
17747
17748 rm -f core conftest.err conftest.$ac_objext \
17749       conftest$ac_exeext conftest.$ac_ext
17750 fi
17751 ac_res=`eval echo '${'$as_ac_var'}'`
17752                { echo "$as_me:$LINENO: result: $ac_res" >&5
17753 echo "${ECHO_T}$ac_res" >&6; }
17754 if test `eval echo '${'$as_ac_var'}'` = yes; then
17755   cat >>confdefs.h <<_ACEOF
17756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17757 _ACEOF
17758
17759 fi
17760 done
17761
17762
17763
17764
17765
17766 for ac_func in setjmp longjmp sigsetjmp siglongjmp
17767 do
17768 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17769 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17771 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17772   echo $ECHO_N "(cached) $ECHO_C" >&6
17773 else
17774   cat >conftest.$ac_ext <<_ACEOF
17775 /* confdefs.h.  */
17776 _ACEOF
17777 cat confdefs.h >>conftest.$ac_ext
17778 cat >>conftest.$ac_ext <<_ACEOF
17779 /* end confdefs.h.  */
17780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17781    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17782 #define $ac_func innocuous_$ac_func
17783
17784 /* System header to define __stub macros and hopefully few prototypes,
17785     which can conflict with char $ac_func (); below.
17786     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17787     <limits.h> exists even on freestanding compilers.  */
17788
17789 #ifdef __STDC__
17790 # include <limits.h>
17791 #else
17792 # include <assert.h>
17793 #endif
17794
17795 #undef $ac_func
17796
17797 /* Override any GCC internal prototype to avoid an error.
17798    Use char because int might match the return type of a GCC
17799    builtin and then its argument prototype would still apply.  */
17800 #ifdef __cplusplus
17801 extern "C"
17802 #endif
17803 char $ac_func ();
17804 /* The GNU C library defines this for functions which it implements
17805     to always fail with ENOSYS.  Some functions are actually named
17806     something starting with __ and the normal name is an alias.  */
17807 #if defined __stub_$ac_func || defined __stub___$ac_func
17808 choke me
17809 #endif
17810
17811 int
17812 main ()
17813 {
17814 return $ac_func ();
17815   ;
17816   return 0;
17817 }
17818 _ACEOF
17819 rm -f conftest.$ac_objext conftest$ac_exeext
17820 if { (ac_try="$ac_link"
17821 case "(($ac_try" in
17822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17823   *) ac_try_echo=$ac_try;;
17824 esac
17825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17826   (eval "$ac_link") 2>conftest.er1
17827   ac_status=$?
17828   grep -v '^ *+' conftest.er1 >conftest.err
17829   rm -f conftest.er1
17830   cat conftest.err >&5
17831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832   (exit $ac_status); } &&
17833          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17834   { (case "(($ac_try" in
17835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836   *) ac_try_echo=$ac_try;;
17837 esac
17838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839   (eval "$ac_try") 2>&5
17840   ac_status=$?
17841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842   (exit $ac_status); }; } &&
17843          { ac_try='test -s conftest$ac_exeext'
17844   { (case "(($ac_try" in
17845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17846   *) ac_try_echo=$ac_try;;
17847 esac
17848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17849   (eval "$ac_try") 2>&5
17850   ac_status=$?
17851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852   (exit $ac_status); }; }; then
17853   eval "$as_ac_var=yes"
17854 else
17855   echo "$as_me: failed program was:" >&5
17856 sed 's/^/| /' conftest.$ac_ext >&5
17857
17858         eval "$as_ac_var=no"
17859 fi
17860
17861 rm -f core conftest.err conftest.$ac_objext \
17862       conftest$ac_exeext conftest.$ac_ext
17863 fi
17864 ac_res=`eval echo '${'$as_ac_var'}'`
17865                { echo "$as_me:$LINENO: result: $ac_res" >&5
17866 echo "${ECHO_T}$ac_res" >&6; }
17867 if test `eval echo '${'$as_ac_var'}'` = yes; then
17868   cat >>confdefs.h <<_ACEOF
17869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17870 _ACEOF
17871
17872 fi
17873 done
17874
17875 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17876 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17877 if test "${llvm_cv_c_printf_a+set}" = set; then
17878   echo $ECHO_N "(cached) $ECHO_C" >&6
17879 else
17880   ac_ext=c
17881 ac_cpp='$CPP $CPPFLAGS'
17882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17885
17886  if test "$cross_compiling" = yes; then
17887   llvmac_cv_c_printf_a=no
17888 else
17889   cat >conftest.$ac_ext <<_ACEOF
17890
17891   /* confdefs.h.  */
17892 _ACEOF
17893 cat confdefs.h >>conftest.$ac_ext
17894 cat >>conftest.$ac_ext <<_ACEOF
17895 /* end confdefs.h.  */
17896
17897 #include <stdio.h>
17898 #include <stdlib.h>
17899
17900 int
17901 main ()
17902 {
17903
17904 volatile double A, B;
17905 char Buffer[100];
17906 A = 1;
17907 A /= 10.0;
17908 sprintf(Buffer, "%a", A);
17909 B = atof(Buffer);
17910 if (A != B)
17911   return (1);
17912 if (A != 0x1.999999999999ap-4)
17913   return (1);
17914 return (0);
17915   ;
17916   return 0;
17917 }
17918 _ACEOF
17919 rm -f conftest$ac_exeext
17920 if { (ac_try="$ac_link"
17921 case "(($ac_try" in
17922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17923   *) ac_try_echo=$ac_try;;
17924 esac
17925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17926   (eval "$ac_link") 2>&5
17927   ac_status=$?
17928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17930   { (case "(($ac_try" in
17931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17932   *) ac_try_echo=$ac_try;;
17933 esac
17934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17935   (eval "$ac_try") 2>&5
17936   ac_status=$?
17937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938   (exit $ac_status); }; }; then
17939   llvm_cv_c_printf_a=yes
17940 else
17941   echo "$as_me: program exited with status $ac_status" >&5
17942 echo "$as_me: failed program was:" >&5
17943 sed 's/^/| /' conftest.$ac_ext >&5
17944
17945 ( exit $ac_status )
17946 llvmac_cv_c_printf_a=no
17947 fi
17948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17949 fi
17950
17951
17952  ac_ext=c
17953 ac_cpp='$CPP $CPPFLAGS'
17954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17957
17958 fi
17959 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17960 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17961  if test "$llvm_cv_c_printf_a" = "yes"; then
17962
17963 cat >>confdefs.h <<\_ACEOF
17964 #define HAVE_PRINTF_A 1
17965 _ACEOF
17966
17967  fi
17968
17969
17970 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17971 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17972 if test "${ac_cv_func_rand48+set}" = set; then
17973   echo $ECHO_N "(cached) $ECHO_C" >&6
17974 else
17975   ac_ext=cpp
17976 ac_cpp='$CXXCPP $CPPFLAGS'
17977 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17978 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17979 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17980
17981    cat >conftest.$ac_ext <<_ACEOF
17982 /* confdefs.h.  */
17983 _ACEOF
17984 cat confdefs.h >>conftest.$ac_ext
17985 cat >>conftest.$ac_ext <<_ACEOF
17986 /* end confdefs.h.  */
17987 #include <stdlib.h>
17988 int
17989 main ()
17990 {
17991 srand48(0);lrand48();drand48();
17992   ;
17993   return 0;
17994 }
17995 _ACEOF
17996 rm -f conftest.$ac_objext
17997 if { (ac_try="$ac_compile"
17998 case "(($ac_try" in
17999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000   *) ac_try_echo=$ac_try;;
18001 esac
18002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18003   (eval "$ac_compile") 2>conftest.er1
18004   ac_status=$?
18005   grep -v '^ *+' conftest.er1 >conftest.err
18006   rm -f conftest.er1
18007   cat conftest.err >&5
18008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009   (exit $ac_status); } &&
18010          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18011   { (case "(($ac_try" in
18012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18013   *) ac_try_echo=$ac_try;;
18014 esac
18015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18016   (eval "$ac_try") 2>&5
18017   ac_status=$?
18018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019   (exit $ac_status); }; } &&
18020          { ac_try='test -s conftest.$ac_objext'
18021   { (case "(($ac_try" in
18022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023   *) ac_try_echo=$ac_try;;
18024 esac
18025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026   (eval "$ac_try") 2>&5
18027   ac_status=$?
18028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029   (exit $ac_status); }; }; then
18030   ac_cv_func_rand48=yes
18031 else
18032   echo "$as_me: failed program was:" >&5
18033 sed 's/^/| /' conftest.$ac_ext >&5
18034
18035         ac_cv_func_rand48=no
18036 fi
18037
18038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18039   ac_ext=c
18040 ac_cpp='$CPP $CPPFLAGS'
18041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18044
18045 fi
18046 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18047 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18048
18049 if test "$ac_cv_func_rand48" = "yes" ; then
18050
18051 cat >>confdefs.h <<\_ACEOF
18052 #define HAVE_RAND48 1
18053 _ACEOF
18054
18055 fi
18056
18057
18058
18059 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18060 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18061 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18062   echo $ECHO_N "(cached) $ECHO_C" >&6
18063 else
18064   ac_ext=cpp
18065 ac_cpp='$CXXCPP $CPPFLAGS'
18066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18069
18070    cat >conftest.$ac_ext <<_ACEOF
18071 /* confdefs.h.  */
18072 _ACEOF
18073 cat confdefs.h >>conftest.$ac_ext
18074 cat >>conftest.$ac_ext <<_ACEOF
18075 /* end confdefs.h.  */
18076 #include <math.h>
18077 int
18078 main ()
18079 {
18080 float f; isnan(f);
18081   ;
18082   return 0;
18083 }
18084 _ACEOF
18085 rm -f conftest.$ac_objext
18086 if { (ac_try="$ac_compile"
18087 case "(($ac_try" in
18088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18089   *) ac_try_echo=$ac_try;;
18090 esac
18091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18092   (eval "$ac_compile") 2>conftest.er1
18093   ac_status=$?
18094   grep -v '^ *+' conftest.er1 >conftest.err
18095   rm -f conftest.er1
18096   cat conftest.err >&5
18097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098   (exit $ac_status); } &&
18099          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18100   { (case "(($ac_try" in
18101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18102   *) ac_try_echo=$ac_try;;
18103 esac
18104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18105   (eval "$ac_try") 2>&5
18106   ac_status=$?
18107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108   (exit $ac_status); }; } &&
18109          { ac_try='test -s conftest.$ac_objext'
18110   { (case "(($ac_try" in
18111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18112   *) ac_try_echo=$ac_try;;
18113 esac
18114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18115   (eval "$ac_try") 2>&5
18116   ac_status=$?
18117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118   (exit $ac_status); }; }; then
18119   ac_cv_func_isnan_in_math_h=yes
18120 else
18121   echo "$as_me: failed program was:" >&5
18122 sed 's/^/| /' conftest.$ac_ext >&5
18123
18124         ac_cv_func_isnan_in_math_h=no
18125 fi
18126
18127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18128   ac_ext=c
18129 ac_cpp='$CPP $CPPFLAGS'
18130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18133
18134 fi
18135 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18136 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18137
18138
18139 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18140
18141 cat >>confdefs.h <<\_ACEOF
18142 #define HAVE_ISNAN_IN_MATH_H 1
18143 _ACEOF
18144
18145 fi
18146
18147 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18148 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18149 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18150   echo $ECHO_N "(cached) $ECHO_C" >&6
18151 else
18152   ac_ext=cpp
18153 ac_cpp='$CXXCPP $CPPFLAGS'
18154 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18155 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18156 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18157
18158    cat >conftest.$ac_ext <<_ACEOF
18159 /* confdefs.h.  */
18160 _ACEOF
18161 cat confdefs.h >>conftest.$ac_ext
18162 cat >>conftest.$ac_ext <<_ACEOF
18163 /* end confdefs.h.  */
18164 #include <cmath>
18165 int
18166 main ()
18167 {
18168 float f; isnan(f);
18169   ;
18170   return 0;
18171 }
18172 _ACEOF
18173 rm -f conftest.$ac_objext
18174 if { (ac_try="$ac_compile"
18175 case "(($ac_try" in
18176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18177   *) ac_try_echo=$ac_try;;
18178 esac
18179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18180   (eval "$ac_compile") 2>conftest.er1
18181   ac_status=$?
18182   grep -v '^ *+' conftest.er1 >conftest.err
18183   rm -f conftest.er1
18184   cat conftest.err >&5
18185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186   (exit $ac_status); } &&
18187          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18188   { (case "(($ac_try" in
18189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18190   *) ac_try_echo=$ac_try;;
18191 esac
18192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18193   (eval "$ac_try") 2>&5
18194   ac_status=$?
18195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196   (exit $ac_status); }; } &&
18197          { ac_try='test -s conftest.$ac_objext'
18198   { (case "(($ac_try" in
18199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18200   *) ac_try_echo=$ac_try;;
18201 esac
18202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18203   (eval "$ac_try") 2>&5
18204   ac_status=$?
18205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206   (exit $ac_status); }; }; then
18207   ac_cv_func_isnan_in_cmath=yes
18208 else
18209   echo "$as_me: failed program was:" >&5
18210 sed 's/^/| /' conftest.$ac_ext >&5
18211
18212         ac_cv_func_isnan_in_cmath=no
18213 fi
18214
18215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18216   ac_ext=c
18217 ac_cpp='$CPP $CPPFLAGS'
18218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18221
18222 fi
18223 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18224 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
18225
18226 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18227
18228 cat >>confdefs.h <<\_ACEOF
18229 #define HAVE_ISNAN_IN_CMATH 1
18230 _ACEOF
18231
18232 fi
18233
18234 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18235 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18236 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18237   echo $ECHO_N "(cached) $ECHO_C" >&6
18238 else
18239   ac_ext=cpp
18240 ac_cpp='$CXXCPP $CPPFLAGS'
18241 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18242 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18243 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18244
18245    cat >conftest.$ac_ext <<_ACEOF
18246 /* confdefs.h.  */
18247 _ACEOF
18248 cat confdefs.h >>conftest.$ac_ext
18249 cat >>conftest.$ac_ext <<_ACEOF
18250 /* end confdefs.h.  */
18251 #include <cmath>
18252 int
18253 main ()
18254 {
18255 float f; std::isnan(f);
18256   ;
18257   return 0;
18258 }
18259 _ACEOF
18260 rm -f conftest.$ac_objext
18261 if { (ac_try="$ac_compile"
18262 case "(($ac_try" in
18263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18264   *) ac_try_echo=$ac_try;;
18265 esac
18266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18267   (eval "$ac_compile") 2>conftest.er1
18268   ac_status=$?
18269   grep -v '^ *+' conftest.er1 >conftest.err
18270   rm -f conftest.er1
18271   cat conftest.err >&5
18272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273   (exit $ac_status); } &&
18274          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18275   { (case "(($ac_try" in
18276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18277   *) ac_try_echo=$ac_try;;
18278 esac
18279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18280   (eval "$ac_try") 2>&5
18281   ac_status=$?
18282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283   (exit $ac_status); }; } &&
18284          { ac_try='test -s conftest.$ac_objext'
18285   { (case "(($ac_try" in
18286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18287   *) ac_try_echo=$ac_try;;
18288 esac
18289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18290   (eval "$ac_try") 2>&5
18291   ac_status=$?
18292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293   (exit $ac_status); }; }; then
18294   ac_cv_func_std_isnan_in_cmath=yes
18295 else
18296   echo "$as_me: failed program was:" >&5
18297 sed 's/^/| /' conftest.$ac_ext >&5
18298
18299         ac_cv_func_std_isnan_in_cmath=no
18300 fi
18301
18302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18303   ac_ext=c
18304 ac_cpp='$CPP $CPPFLAGS'
18305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18308
18309 fi
18310 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18311 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
18312
18313 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
18314
18315 cat >>confdefs.h <<\_ACEOF
18316 #define HAVE_STD_ISNAN_IN_CMATH 1
18317 _ACEOF
18318
18319 fi
18320
18321
18322 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18323 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18324 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18325   echo $ECHO_N "(cached) $ECHO_C" >&6
18326 else
18327   ac_ext=cpp
18328 ac_cpp='$CXXCPP $CPPFLAGS'
18329 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18330 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18331 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18332
18333    cat >conftest.$ac_ext <<_ACEOF
18334 /* confdefs.h.  */
18335 _ACEOF
18336 cat confdefs.h >>conftest.$ac_ext
18337 cat >>conftest.$ac_ext <<_ACEOF
18338 /* end confdefs.h.  */
18339 #include <math.h>
18340 int
18341 main ()
18342 {
18343 float f; isinf(f);
18344   ;
18345   return 0;
18346 }
18347 _ACEOF
18348 rm -f conftest.$ac_objext
18349 if { (ac_try="$ac_compile"
18350 case "(($ac_try" in
18351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18352   *) ac_try_echo=$ac_try;;
18353 esac
18354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18355   (eval "$ac_compile") 2>conftest.er1
18356   ac_status=$?
18357   grep -v '^ *+' conftest.er1 >conftest.err
18358   rm -f conftest.er1
18359   cat conftest.err >&5
18360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361   (exit $ac_status); } &&
18362          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18363   { (case "(($ac_try" in
18364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18365   *) ac_try_echo=$ac_try;;
18366 esac
18367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18368   (eval "$ac_try") 2>&5
18369   ac_status=$?
18370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371   (exit $ac_status); }; } &&
18372          { ac_try='test -s conftest.$ac_objext'
18373   { (case "(($ac_try" in
18374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18375   *) ac_try_echo=$ac_try;;
18376 esac
18377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18378   (eval "$ac_try") 2>&5
18379   ac_status=$?
18380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381   (exit $ac_status); }; }; then
18382   ac_cv_func_isinf_in_math_h=yes
18383 else
18384   echo "$as_me: failed program was:" >&5
18385 sed 's/^/| /' conftest.$ac_ext >&5
18386
18387         ac_cv_func_isinf_in_math_h=no
18388 fi
18389
18390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18391   ac_ext=c
18392 ac_cpp='$CPP $CPPFLAGS'
18393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18396
18397 fi
18398 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18399 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
18400
18401 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
18402
18403 cat >>confdefs.h <<\_ACEOF
18404 #define HAVE_ISINF_IN_MATH_H 1
18405 _ACEOF
18406
18407 fi
18408
18409 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18410 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18411 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18412   echo $ECHO_N "(cached) $ECHO_C" >&6
18413 else
18414   ac_ext=cpp
18415 ac_cpp='$CXXCPP $CPPFLAGS'
18416 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18417 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18418 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18419
18420    cat >conftest.$ac_ext <<_ACEOF
18421 /* confdefs.h.  */
18422 _ACEOF
18423 cat confdefs.h >>conftest.$ac_ext
18424 cat >>conftest.$ac_ext <<_ACEOF
18425 /* end confdefs.h.  */
18426 #include <cmath>
18427 int
18428 main ()
18429 {
18430 float f; isinf(f);
18431   ;
18432   return 0;
18433 }
18434 _ACEOF
18435 rm -f conftest.$ac_objext
18436 if { (ac_try="$ac_compile"
18437 case "(($ac_try" in
18438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18439   *) ac_try_echo=$ac_try;;
18440 esac
18441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18442   (eval "$ac_compile") 2>conftest.er1
18443   ac_status=$?
18444   grep -v '^ *+' conftest.er1 >conftest.err
18445   rm -f conftest.er1
18446   cat conftest.err >&5
18447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448   (exit $ac_status); } &&
18449          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18450   { (case "(($ac_try" in
18451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18452   *) ac_try_echo=$ac_try;;
18453 esac
18454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18455   (eval "$ac_try") 2>&5
18456   ac_status=$?
18457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458   (exit $ac_status); }; } &&
18459          { ac_try='test -s conftest.$ac_objext'
18460   { (case "(($ac_try" in
18461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18462   *) ac_try_echo=$ac_try;;
18463 esac
18464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18465   (eval "$ac_try") 2>&5
18466   ac_status=$?
18467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468   (exit $ac_status); }; }; then
18469   ac_cv_func_isinf_in_cmath=yes
18470 else
18471   echo "$as_me: failed program was:" >&5
18472 sed 's/^/| /' conftest.$ac_ext >&5
18473
18474         ac_cv_func_isinf_in_cmath=no
18475 fi
18476
18477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18478   ac_ext=c
18479 ac_cpp='$CPP $CPPFLAGS'
18480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18483
18484 fi
18485 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18486 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18487
18488 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18489
18490 cat >>confdefs.h <<\_ACEOF
18491 #define HAVE_ISINF_IN_CMATH 1
18492 _ACEOF
18493
18494 fi
18495
18496 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18497 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18498 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18499   echo $ECHO_N "(cached) $ECHO_C" >&6
18500 else
18501   ac_ext=cpp
18502 ac_cpp='$CXXCPP $CPPFLAGS'
18503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18506
18507    cat >conftest.$ac_ext <<_ACEOF
18508 /* confdefs.h.  */
18509 _ACEOF
18510 cat confdefs.h >>conftest.$ac_ext
18511 cat >>conftest.$ac_ext <<_ACEOF
18512 /* end confdefs.h.  */
18513 #include <cmath>
18514 int
18515 main ()
18516 {
18517 float f; std::isinf(f)}
18518   ;
18519   return 0;
18520 }
18521 _ACEOF
18522 rm -f conftest.$ac_objext
18523 if { (ac_try="$ac_compile"
18524 case "(($ac_try" in
18525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18526   *) ac_try_echo=$ac_try;;
18527 esac
18528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18529   (eval "$ac_compile") 2>conftest.er1
18530   ac_status=$?
18531   grep -v '^ *+' conftest.er1 >conftest.err
18532   rm -f conftest.er1
18533   cat conftest.err >&5
18534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535   (exit $ac_status); } &&
18536          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18537   { (case "(($ac_try" in
18538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539   *) ac_try_echo=$ac_try;;
18540 esac
18541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542   (eval "$ac_try") 2>&5
18543   ac_status=$?
18544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545   (exit $ac_status); }; } &&
18546          { ac_try='test -s conftest.$ac_objext'
18547   { (case "(($ac_try" in
18548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18549   *) ac_try_echo=$ac_try;;
18550 esac
18551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18552   (eval "$ac_try") 2>&5
18553   ac_status=$?
18554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555   (exit $ac_status); }; }; then
18556   ac_cv_func_std_isinf_in_cmath=yes
18557 else
18558   echo "$as_me: failed program was:" >&5
18559 sed 's/^/| /' conftest.$ac_ext >&5
18560
18561         ac_cv_func_std_isinf_in_cmath=no
18562 fi
18563
18564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18565   ac_ext=c
18566 ac_cpp='$CPP $CPPFLAGS'
18567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18570
18571 fi
18572 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18573 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
18574
18575 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18576
18577 cat >>confdefs.h <<\_ACEOF
18578 #define HAVE_STD_ISINF_IN_CMATH 1
18579 _ACEOF
18580
18581 fi
18582
18583 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18584 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18585 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18586   echo $ECHO_N "(cached) $ECHO_C" >&6
18587 else
18588   ac_ext=cpp
18589 ac_cpp='$CXXCPP $CPPFLAGS'
18590 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18591 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18592 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18593
18594    cat >conftest.$ac_ext <<_ACEOF
18595 /* confdefs.h.  */
18596 _ACEOF
18597 cat confdefs.h >>conftest.$ac_ext
18598 cat >>conftest.$ac_ext <<_ACEOF
18599 /* end confdefs.h.  */
18600 #include <ieeefp.h>
18601 int
18602 main ()
18603 {
18604 float f; finite(f);
18605   ;
18606   return 0;
18607 }
18608 _ACEOF
18609 rm -f conftest.$ac_objext
18610 if { (ac_try="$ac_compile"
18611 case "(($ac_try" in
18612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18613   *) ac_try_echo=$ac_try;;
18614 esac
18615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18616   (eval "$ac_compile") 2>conftest.er1
18617   ac_status=$?
18618   grep -v '^ *+' conftest.er1 >conftest.err
18619   rm -f conftest.er1
18620   cat conftest.err >&5
18621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622   (exit $ac_status); } &&
18623          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18624   { (case "(($ac_try" in
18625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18626   *) ac_try_echo=$ac_try;;
18627 esac
18628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18629   (eval "$ac_try") 2>&5
18630   ac_status=$?
18631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632   (exit $ac_status); }; } &&
18633          { ac_try='test -s conftest.$ac_objext'
18634   { (case "(($ac_try" in
18635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18636   *) ac_try_echo=$ac_try;;
18637 esac
18638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18639   (eval "$ac_try") 2>&5
18640   ac_status=$?
18641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642   (exit $ac_status); }; }; then
18643   ac_cv_func_finite_in_ieeefp_h=yes
18644 else
18645   echo "$as_me: failed program was:" >&5
18646 sed 's/^/| /' conftest.$ac_ext >&5
18647
18648         ac_cv_func_finite_in_ieeefp_h=no
18649 fi
18650
18651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18652   ac_ext=c
18653 ac_cpp='$CPP $CPPFLAGS'
18654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18657
18658 fi
18659 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18660 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
18661
18662 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18663
18664 cat >>confdefs.h <<\_ACEOF
18665 #define HAVE_FINITE_IN_IEEEFP_H 1
18666 _ACEOF
18667
18668 fi
18669
18670
18671
18672 if test "$llvm_cv_platform_type" = "Unix" ; then
18673
18674
18675 for ac_header in stdlib.h unistd.h
18676 do
18677 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18679   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18682   echo $ECHO_N "(cached) $ECHO_C" >&6
18683 fi
18684 ac_res=`eval echo '${'$as_ac_Header'}'`
18685                { echo "$as_me:$LINENO: result: $ac_res" >&5
18686 echo "${ECHO_T}$ac_res" >&6; }
18687 else
18688   # Is the header compilable?
18689 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18690 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18691 cat >conftest.$ac_ext <<_ACEOF
18692 /* confdefs.h.  */
18693 _ACEOF
18694 cat confdefs.h >>conftest.$ac_ext
18695 cat >>conftest.$ac_ext <<_ACEOF
18696 /* end confdefs.h.  */
18697 $ac_includes_default
18698 #include <$ac_header>
18699 _ACEOF
18700 rm -f conftest.$ac_objext
18701 if { (ac_try="$ac_compile"
18702 case "(($ac_try" in
18703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18704   *) ac_try_echo=$ac_try;;
18705 esac
18706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18707   (eval "$ac_compile") 2>conftest.er1
18708   ac_status=$?
18709   grep -v '^ *+' conftest.er1 >conftest.err
18710   rm -f conftest.er1
18711   cat conftest.err >&5
18712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713   (exit $ac_status); } &&
18714          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18715   { (case "(($ac_try" in
18716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18717   *) ac_try_echo=$ac_try;;
18718 esac
18719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18720   (eval "$ac_try") 2>&5
18721   ac_status=$?
18722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723   (exit $ac_status); }; } &&
18724          { ac_try='test -s conftest.$ac_objext'
18725   { (case "(($ac_try" in
18726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18727   *) ac_try_echo=$ac_try;;
18728 esac
18729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18730   (eval "$ac_try") 2>&5
18731   ac_status=$?
18732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733   (exit $ac_status); }; }; then
18734   ac_header_compiler=yes
18735 else
18736   echo "$as_me: failed program was:" >&5
18737 sed 's/^/| /' conftest.$ac_ext >&5
18738
18739         ac_header_compiler=no
18740 fi
18741
18742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18743 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18744 echo "${ECHO_T}$ac_header_compiler" >&6; }
18745
18746 # Is the header present?
18747 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18749 cat >conftest.$ac_ext <<_ACEOF
18750 /* confdefs.h.  */
18751 _ACEOF
18752 cat confdefs.h >>conftest.$ac_ext
18753 cat >>conftest.$ac_ext <<_ACEOF
18754 /* end confdefs.h.  */
18755 #include <$ac_header>
18756 _ACEOF
18757 if { (ac_try="$ac_cpp conftest.$ac_ext"
18758 case "(($ac_try" in
18759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18760   *) ac_try_echo=$ac_try;;
18761 esac
18762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18763   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18764   ac_status=$?
18765   grep -v '^ *+' conftest.er1 >conftest.err
18766   rm -f conftest.er1
18767   cat conftest.err >&5
18768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769   (exit $ac_status); } >/dev/null; then
18770   if test -s conftest.err; then
18771     ac_cpp_err=$ac_c_preproc_warn_flag
18772     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18773   else
18774     ac_cpp_err=
18775   fi
18776 else
18777   ac_cpp_err=yes
18778 fi
18779 if test -z "$ac_cpp_err"; then
18780   ac_header_preproc=yes
18781 else
18782   echo "$as_me: failed program was:" >&5
18783 sed 's/^/| /' conftest.$ac_ext >&5
18784
18785   ac_header_preproc=no
18786 fi
18787
18788 rm -f conftest.err conftest.$ac_ext
18789 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18790 echo "${ECHO_T}$ac_header_preproc" >&6; }
18791
18792 # So?  What about this header?
18793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18794   yes:no: )
18795     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18796 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18797     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18798 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18799     ac_header_preproc=yes
18800     ;;
18801   no:yes:* )
18802     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18803 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18804     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18805 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18806     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18807 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18808     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18809 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18810     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18812     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18813 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18814     ( cat <<\_ASBOX
18815 ## ----------------------------------- ##
18816 ## Report this to llvmbugs@cs.uiuc.edu ##
18817 ## ----------------------------------- ##
18818 _ASBOX
18819      ) | sed "s/^/$as_me: WARNING:     /" >&2
18820     ;;
18821 esac
18822 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18825   echo $ECHO_N "(cached) $ECHO_C" >&6
18826 else
18827   eval "$as_ac_Header=\$ac_header_preproc"
18828 fi
18829 ac_res=`eval echo '${'$as_ac_Header'}'`
18830                { echo "$as_me:$LINENO: result: $ac_res" >&5
18831 echo "${ECHO_T}$ac_res" >&6; }
18832
18833 fi
18834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18835   cat >>confdefs.h <<_ACEOF
18836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18837 _ACEOF
18838
18839 fi
18840
18841 done
18842
18843
18844 for ac_func in getpagesize
18845 do
18846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18847 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18849 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18850   echo $ECHO_N "(cached) $ECHO_C" >&6
18851 else
18852   cat >conftest.$ac_ext <<_ACEOF
18853 /* confdefs.h.  */
18854 _ACEOF
18855 cat confdefs.h >>conftest.$ac_ext
18856 cat >>conftest.$ac_ext <<_ACEOF
18857 /* end confdefs.h.  */
18858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18859    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18860 #define $ac_func innocuous_$ac_func
18861
18862 /* System header to define __stub macros and hopefully few prototypes,
18863     which can conflict with char $ac_func (); below.
18864     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18865     <limits.h> exists even on freestanding compilers.  */
18866
18867 #ifdef __STDC__
18868 # include <limits.h>
18869 #else
18870 # include <assert.h>
18871 #endif
18872
18873 #undef $ac_func
18874
18875 /* Override any GCC internal prototype to avoid an error.
18876    Use char because int might match the return type of a GCC
18877    builtin and then its argument prototype would still apply.  */
18878 #ifdef __cplusplus
18879 extern "C"
18880 #endif
18881 char $ac_func ();
18882 /* The GNU C library defines this for functions which it implements
18883     to always fail with ENOSYS.  Some functions are actually named
18884     something starting with __ and the normal name is an alias.  */
18885 #if defined __stub_$ac_func || defined __stub___$ac_func
18886 choke me
18887 #endif
18888
18889 int
18890 main ()
18891 {
18892 return $ac_func ();
18893   ;
18894   return 0;
18895 }
18896 _ACEOF
18897 rm -f conftest.$ac_objext conftest$ac_exeext
18898 if { (ac_try="$ac_link"
18899 case "(($ac_try" in
18900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18901   *) ac_try_echo=$ac_try;;
18902 esac
18903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18904   (eval "$ac_link") 2>conftest.er1
18905   ac_status=$?
18906   grep -v '^ *+' conftest.er1 >conftest.err
18907   rm -f conftest.er1
18908   cat conftest.err >&5
18909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910   (exit $ac_status); } &&
18911          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18912   { (case "(($ac_try" in
18913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18914   *) ac_try_echo=$ac_try;;
18915 esac
18916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18917   (eval "$ac_try") 2>&5
18918   ac_status=$?
18919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920   (exit $ac_status); }; } &&
18921          { ac_try='test -s conftest$ac_exeext'
18922   { (case "(($ac_try" in
18923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18924   *) ac_try_echo=$ac_try;;
18925 esac
18926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18927   (eval "$ac_try") 2>&5
18928   ac_status=$?
18929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930   (exit $ac_status); }; }; then
18931   eval "$as_ac_var=yes"
18932 else
18933   echo "$as_me: failed program was:" >&5
18934 sed 's/^/| /' conftest.$ac_ext >&5
18935
18936         eval "$as_ac_var=no"
18937 fi
18938
18939 rm -f core conftest.err conftest.$ac_objext \
18940       conftest$ac_exeext conftest.$ac_ext
18941 fi
18942 ac_res=`eval echo '${'$as_ac_var'}'`
18943                { echo "$as_me:$LINENO: result: $ac_res" >&5
18944 echo "${ECHO_T}$ac_res" >&6; }
18945 if test `eval echo '${'$as_ac_var'}'` = yes; then
18946   cat >>confdefs.h <<_ACEOF
18947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18948 _ACEOF
18949
18950 fi
18951 done
18952
18953 { echo "$as_me:$LINENO: checking for working mmap" >&5
18954 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
18955 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
18956   echo $ECHO_N "(cached) $ECHO_C" >&6
18957 else
18958   if test "$cross_compiling" = yes; then
18959   ac_cv_func_mmap_fixed_mapped=no
18960 else
18961   cat >conftest.$ac_ext <<_ACEOF
18962 /* confdefs.h.  */
18963 _ACEOF
18964 cat confdefs.h >>conftest.$ac_ext
18965 cat >>conftest.$ac_ext <<_ACEOF
18966 /* end confdefs.h.  */
18967 $ac_includes_default
18968 /* malloc might have been renamed as rpl_malloc. */
18969 #undef malloc
18970
18971 /* Thanks to Mike Haertel and Jim Avera for this test.
18972    Here is a matrix of mmap possibilities:
18973         mmap private not fixed
18974         mmap private fixed at somewhere currently unmapped
18975         mmap private fixed at somewhere already mapped
18976         mmap shared not fixed
18977         mmap shared fixed at somewhere currently unmapped
18978         mmap shared fixed at somewhere already mapped
18979    For private mappings, we should verify that changes cannot be read()
18980    back from the file, nor mmap's back from the file at a different
18981    address.  (There have been systems where private was not correctly
18982    implemented like the infamous i386 svr4.0, and systems where the
18983    VM page cache was not coherent with the file system buffer cache
18984    like early versions of FreeBSD and possibly contemporary NetBSD.)
18985    For shared mappings, we should conversely verify that changes get
18986    propagated back to all the places they're supposed to be.
18987
18988    Grep wants private fixed already mapped.
18989    The main things grep needs to know about mmap are:
18990    * does it exist and is it safe to write into the mmap'd area
18991    * how to use it (BSD variants)  */
18992
18993 #include <fcntl.h>
18994 #include <sys/mman.h>
18995
18996 #if !STDC_HEADERS && !HAVE_STDLIB_H
18997 char *malloc ();
18998 #endif
18999
19000 /* This mess was copied from the GNU getpagesize.h.  */
19001 #if !HAVE_GETPAGESIZE
19002 /* Assume that all systems that can run configure have sys/param.h.  */
19003 # if !HAVE_SYS_PARAM_H
19004 #  define HAVE_SYS_PARAM_H 1
19005 # endif
19006
19007 # ifdef _SC_PAGESIZE
19008 #  define getpagesize() sysconf(_SC_PAGESIZE)
19009 # else /* no _SC_PAGESIZE */
19010 #  if HAVE_SYS_PARAM_H
19011 #   include <sys/param.h>
19012 #   ifdef EXEC_PAGESIZE
19013 #    define getpagesize() EXEC_PAGESIZE
19014 #   else /* no EXEC_PAGESIZE */
19015 #    ifdef NBPG
19016 #     define getpagesize() NBPG * CLSIZE
19017 #     ifndef CLSIZE
19018 #      define CLSIZE 1
19019 #     endif /* no CLSIZE */
19020 #    else /* no NBPG */
19021 #     ifdef NBPC
19022 #      define getpagesize() NBPC
19023 #     else /* no NBPC */
19024 #      ifdef PAGESIZE
19025 #       define getpagesize() PAGESIZE
19026 #      endif /* PAGESIZE */
19027 #     endif /* no NBPC */
19028 #    endif /* no NBPG */
19029 #   endif /* no EXEC_PAGESIZE */
19030 #  else /* no HAVE_SYS_PARAM_H */
19031 #   define getpagesize() 8192   /* punt totally */
19032 #  endif /* no HAVE_SYS_PARAM_H */
19033 # endif /* no _SC_PAGESIZE */
19034
19035 #endif /* no HAVE_GETPAGESIZE */
19036
19037 int
19038 main ()
19039 {
19040   char *data, *data2, *data3;
19041   int i, pagesize;
19042   int fd;
19043
19044   pagesize = getpagesize ();
19045
19046   /* First, make a file with some known garbage in it. */
19047   data = (char *) malloc (pagesize);
19048   if (!data)
19049     return 1;
19050   for (i = 0; i < pagesize; ++i)
19051     *(data + i) = rand ();
19052   umask (0);
19053   fd = creat ("conftest.mmap", 0600);
19054   if (fd < 0)
19055     return 1;
19056   if (write (fd, data, pagesize) != pagesize)
19057     return 1;
19058   close (fd);
19059
19060   /* Next, try to mmap the file at a fixed address which already has
19061      something else allocated at it.  If we can, also make sure that
19062      we see the same garbage.  */
19063   fd = open ("conftest.mmap", O_RDWR);
19064   if (fd < 0)
19065     return 1;
19066   data2 = (char *) malloc (2 * pagesize);
19067   if (!data2)
19068     return 1;
19069   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19070   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19071                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
19072     return 1;
19073   for (i = 0; i < pagesize; ++i)
19074     if (*(data + i) != *(data2 + i))
19075       return 1;
19076
19077   /* Finally, make sure that changes to the mapped area do not
19078      percolate back to the file as seen by read().  (This is a bug on
19079      some variants of i386 svr4.0.)  */
19080   for (i = 0; i < pagesize; ++i)
19081     *(data2 + i) = *(data2 + i) + 1;
19082   data3 = (char *) malloc (pagesize);
19083   if (!data3)
19084     return 1;
19085   if (read (fd, data3, pagesize) != pagesize)
19086     return 1;
19087   for (i = 0; i < pagesize; ++i)
19088     if (*(data + i) != *(data3 + i))
19089       return 1;
19090   close (fd);
19091   return 0;
19092 }
19093 _ACEOF
19094 rm -f conftest$ac_exeext
19095 if { (ac_try="$ac_link"
19096 case "(($ac_try" in
19097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19098   *) ac_try_echo=$ac_try;;
19099 esac
19100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19101   (eval "$ac_link") 2>&5
19102   ac_status=$?
19103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19105   { (case "(($ac_try" in
19106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19107   *) ac_try_echo=$ac_try;;
19108 esac
19109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19110   (eval "$ac_try") 2>&5
19111   ac_status=$?
19112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113   (exit $ac_status); }; }; then
19114   ac_cv_func_mmap_fixed_mapped=yes
19115 else
19116   echo "$as_me: program exited with status $ac_status" >&5
19117 echo "$as_me: failed program was:" >&5
19118 sed 's/^/| /' conftest.$ac_ext >&5
19119
19120 ( exit $ac_status )
19121 ac_cv_func_mmap_fixed_mapped=no
19122 fi
19123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19124 fi
19125
19126
19127 fi
19128 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19129 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19130 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19131
19132 cat >>confdefs.h <<\_ACEOF
19133 #define HAVE_MMAP 1
19134 _ACEOF
19135
19136 fi
19137 rm -f conftest.mmap
19138
19139   { echo "$as_me:$LINENO: checking for mmap of files" >&5
19140 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19141 if test "${ac_cv_func_mmap_file+set}" = set; then
19142   echo $ECHO_N "(cached) $ECHO_C" >&6
19143 else
19144    ac_ext=c
19145 ac_cpp='$CPP $CPPFLAGS'
19146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19149
19150   if test "$cross_compiling" = yes; then
19151   ac_cv_func_mmap_file=no
19152 else
19153   cat >conftest.$ac_ext <<_ACEOF
19154
19155     /* confdefs.h.  */
19156 _ACEOF
19157 cat confdefs.h >>conftest.$ac_ext
19158 cat >>conftest.$ac_ext <<_ACEOF
19159 /* end confdefs.h.  */
19160
19161 #include <sys/types.h>
19162 #include <sys/mman.h>
19163 #include <fcntl.h>
19164
19165 int
19166 main ()
19167 {
19168
19169   int fd;
19170   fd = creat ("foo",0777);
19171   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19172   unlink ("foo");
19173   return (fd != (int) MAP_FAILED);
19174   ;
19175   return 0;
19176 }
19177 _ACEOF
19178 rm -f conftest$ac_exeext
19179 if { (ac_try="$ac_link"
19180 case "(($ac_try" in
19181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19182   *) ac_try_echo=$ac_try;;
19183 esac
19184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19185   (eval "$ac_link") 2>&5
19186   ac_status=$?
19187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19189   { (case "(($ac_try" in
19190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19191   *) ac_try_echo=$ac_try;;
19192 esac
19193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19194   (eval "$ac_try") 2>&5
19195   ac_status=$?
19196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197   (exit $ac_status); }; }; then
19198   ac_cv_func_mmap_file=yes
19199 else
19200   echo "$as_me: program exited with status $ac_status" >&5
19201 echo "$as_me: failed program was:" >&5
19202 sed 's/^/| /' conftest.$ac_ext >&5
19203
19204 ( exit $ac_status )
19205 ac_cv_func_mmap_file=no
19206 fi
19207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19208 fi
19209
19210
19211   ac_ext=c
19212 ac_cpp='$CPP $CPPFLAGS'
19213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19216
19217
19218 fi
19219 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19220 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
19221 if test "$ac_cv_func_mmap_file" = yes; then
19222
19223 cat >>confdefs.h <<\_ACEOF
19224 #define HAVE_MMAP_FILE
19225 _ACEOF
19226
19227    MMAP_FILE=yes
19228
19229 fi
19230
19231   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19232 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19233 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19234   echo $ECHO_N "(cached) $ECHO_C" >&6
19235 else
19236   if test "$llvm_cv_os_type" = "Interix" ; then
19237    ac_cv_need_dev_zero_for_mmap=yes
19238  else
19239    ac_cv_need_dev_zero_for_mmap=no
19240  fi
19241
19242 fi
19243 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19244 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
19245 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19246
19247 cat >>confdefs.h <<\_ACEOF
19248 #define NEED_DEV_ZERO_FOR_MMAP 1
19249 _ACEOF
19250
19251 fi
19252
19253   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19254   then
19255     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19256 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
19257   fi
19258   if test "$ac_cv_func_mmap_file" = "no"
19259   then
19260     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19261 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
19262   fi
19263 fi
19264
19265 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19266 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19267 cat >conftest.$ac_ext <<_ACEOF
19268 /* confdefs.h.  */
19269 _ACEOF
19270 cat confdefs.h >>conftest.$ac_ext
19271 cat >>conftest.$ac_ext <<_ACEOF
19272 /* end confdefs.h.  */
19273 int main() {
19274         volatile unsigned long val = 1;
19275         __sync_synchronize();
19276         __sync_val_compare_and_swap(&val, 1, 0);
19277         __sync_add_and_fetch(&val, 1);
19278         __sync_sub_and_fetch(&val, 1);
19279         return 0;
19280       }
19281
19282 _ACEOF
19283 rm -f conftest.$ac_objext conftest$ac_exeext
19284 if { (ac_try="$ac_link"
19285 case "(($ac_try" in
19286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19287   *) ac_try_echo=$ac_try;;
19288 esac
19289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19290   (eval "$ac_link") 2>conftest.er1
19291   ac_status=$?
19292   grep -v '^ *+' conftest.er1 >conftest.err
19293   rm -f conftest.er1
19294   cat conftest.err >&5
19295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296   (exit $ac_status); } &&
19297          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19298   { (case "(($ac_try" in
19299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19300   *) ac_try_echo=$ac_try;;
19301 esac
19302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19303   (eval "$ac_try") 2>&5
19304   ac_status=$?
19305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306   (exit $ac_status); }; } &&
19307          { ac_try='test -s conftest$ac_exeext'
19308   { (case "(($ac_try" in
19309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19310   *) ac_try_echo=$ac_try;;
19311 esac
19312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19313   (eval "$ac_try") 2>&5
19314   ac_status=$?
19315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316   (exit $ac_status); }; }; then
19317   { echo "$as_me:$LINENO: result: yes" >&5
19318 echo "${ECHO_T}yes" >&6; }
19319
19320 cat >>confdefs.h <<\_ACEOF
19321 #define LLVM_MULTITHREADED 1
19322 _ACEOF
19323
19324 else
19325   echo "$as_me: failed program was:" >&5
19326 sed 's/^/| /' conftest.$ac_ext >&5
19327
19328         { echo "$as_me:$LINENO: result: no" >&5
19329 echo "${ECHO_T}no" >&6; }
19330
19331 cat >>confdefs.h <<\_ACEOF
19332 #define LLVM_MULTITHREADED 0
19333 _ACEOF
19334
19335   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19336 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
19337 fi
19338
19339 rm -f core conftest.err conftest.$ac_objext \
19340       conftest$ac_exeext conftest.$ac_ext
19341
19342
19343
19344 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
19345   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19346 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19347 if test "${llvm_cv_linux_mixed+set}" = set; then
19348   echo $ECHO_N "(cached) $ECHO_C" >&6
19349 else
19350    ac_ext=c
19351 ac_cpp='$CPP $CPPFLAGS'
19352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19355
19356   cat >conftest.$ac_ext <<_ACEOF
19357 /* confdefs.h.  */
19358 _ACEOF
19359 cat confdefs.h >>conftest.$ac_ext
19360 cat >>conftest.$ac_ext <<_ACEOF
19361 /* end confdefs.h.  */
19362 #ifndef __x86_64__
19363        error: Not x86-64 even if uname says so!
19364       #endif
19365
19366 int
19367 main ()
19368 {
19369
19370   ;
19371   return 0;
19372 }
19373 _ACEOF
19374 rm -f conftest.$ac_objext
19375 if { (ac_try="$ac_compile"
19376 case "(($ac_try" in
19377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19378   *) ac_try_echo=$ac_try;;
19379 esac
19380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19381   (eval "$ac_compile") 2>conftest.er1
19382   ac_status=$?
19383   grep -v '^ *+' conftest.er1 >conftest.err
19384   rm -f conftest.er1
19385   cat conftest.err >&5
19386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387   (exit $ac_status); } &&
19388          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19389   { (case "(($ac_try" in
19390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19391   *) ac_try_echo=$ac_try;;
19392 esac
19393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19394   (eval "$ac_try") 2>&5
19395   ac_status=$?
19396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397   (exit $ac_status); }; } &&
19398          { ac_try='test -s conftest.$ac_objext'
19399   { (case "(($ac_try" in
19400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19401   *) ac_try_echo=$ac_try;;
19402 esac
19403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19404   (eval "$ac_try") 2>&5
19405   ac_status=$?
19406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407   (exit $ac_status); }; }; then
19408   llvm_cv_linux_mixed=no
19409 else
19410   echo "$as_me: failed program was:" >&5
19411 sed 's/^/| /' conftest.$ac_ext >&5
19412
19413         llvm_cv_linux_mixed=yes
19414 fi
19415
19416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19417   ac_ext=c
19418 ac_cpp='$CPP $CPPFLAGS'
19419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19422
19423
19424 fi
19425 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19426 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19427
19428   if test "$llvm_cv_linux_mixed" = "yes"; then
19429     llvm_cv_target_arch="x86"
19430     ARCH="x86"
19431   fi
19432 fi
19433
19434
19435 for ac_func in __dso_handle
19436 do
19437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19438 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19440 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19441   echo $ECHO_N "(cached) $ECHO_C" >&6
19442 else
19443   cat >conftest.$ac_ext <<_ACEOF
19444 /* confdefs.h.  */
19445 _ACEOF
19446 cat confdefs.h >>conftest.$ac_ext
19447 cat >>conftest.$ac_ext <<_ACEOF
19448 /* end confdefs.h.  */
19449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19450    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19451 #define $ac_func innocuous_$ac_func
19452
19453 /* System header to define __stub macros and hopefully few prototypes,
19454     which can conflict with char $ac_func (); below.
19455     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19456     <limits.h> exists even on freestanding compilers.  */
19457
19458 #ifdef __STDC__
19459 # include <limits.h>
19460 #else
19461 # include <assert.h>
19462 #endif
19463
19464 #undef $ac_func
19465
19466 /* Override any GCC internal prototype to avoid an error.
19467    Use char because int might match the return type of a GCC
19468    builtin and then its argument prototype would still apply.  */
19469 #ifdef __cplusplus
19470 extern "C"
19471 #endif
19472 char $ac_func ();
19473 /* The GNU C library defines this for functions which it implements
19474     to always fail with ENOSYS.  Some functions are actually named
19475     something starting with __ and the normal name is an alias.  */
19476 #if defined __stub_$ac_func || defined __stub___$ac_func
19477 choke me
19478 #endif
19479
19480 int
19481 main ()
19482 {
19483 return $ac_func ();
19484   ;
19485   return 0;
19486 }
19487 _ACEOF
19488 rm -f conftest.$ac_objext conftest$ac_exeext
19489 if { (ac_try="$ac_link"
19490 case "(($ac_try" in
19491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19492   *) ac_try_echo=$ac_try;;
19493 esac
19494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19495   (eval "$ac_link") 2>conftest.er1
19496   ac_status=$?
19497   grep -v '^ *+' conftest.er1 >conftest.err
19498   rm -f conftest.er1
19499   cat conftest.err >&5
19500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501   (exit $ac_status); } &&
19502          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19503   { (case "(($ac_try" in
19504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19505   *) ac_try_echo=$ac_try;;
19506 esac
19507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19508   (eval "$ac_try") 2>&5
19509   ac_status=$?
19510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511   (exit $ac_status); }; } &&
19512          { ac_try='test -s conftest$ac_exeext'
19513   { (case "(($ac_try" in
19514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19515   *) ac_try_echo=$ac_try;;
19516 esac
19517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19518   (eval "$ac_try") 2>&5
19519   ac_status=$?
19520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521   (exit $ac_status); }; }; then
19522   eval "$as_ac_var=yes"
19523 else
19524   echo "$as_me: failed program was:" >&5
19525 sed 's/^/| /' conftest.$ac_ext >&5
19526
19527         eval "$as_ac_var=no"
19528 fi
19529
19530 rm -f core conftest.err conftest.$ac_objext \
19531       conftest$ac_exeext conftest.$ac_ext
19532 fi
19533 ac_res=`eval echo '${'$as_ac_var'}'`
19534                { echo "$as_me:$LINENO: result: $ac_res" >&5
19535 echo "${ECHO_T}$ac_res" >&6; }
19536 if test `eval echo '${'$as_ac_var'}'` = yes; then
19537   cat >>confdefs.h <<_ACEOF
19538 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19539 _ACEOF
19540
19541 fi
19542 done
19543
19544
19545 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19546 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19547 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19548   echo $ECHO_N "(cached) $ECHO_C" >&6
19549 else
19550   llvm_cv_llvmgcc_sanity="no"
19551 if test -x "$LLVMGCC" ; then
19552   cp /dev/null conftest.c
19553   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19554       grep 'target datalayout =' > /dev/null 2>&1
19555   if test $? -eq 0 ; then
19556     llvm_cv_llvmgcc_sanity="yes"
19557   fi
19558   rm conftest.c
19559 fi
19560 fi
19561 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
19562 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
19563
19564 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
19565   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
19566 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
19567   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
19568   LLVMCC1=$llvmcc1path
19569
19570   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
19571   LLVMCC1PLUS=$llvmcc1pluspath
19572
19573   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19574   LLVMGCCDIR=$llvmgccdir
19575
19576   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
19577   LLVMGCC_LANGS=$llvmgcclangs
19578
19579   { echo "$as_me:$LINENO: result: ok" >&5
19580 echo "${ECHO_T}ok" >&6; }
19581 fi
19582
19583 SHLIBEXT=$libltdl_cv_shlibext
19584
19585
19586 # Translate the various configuration directories and other basic
19587 # information into substitutions that will end up in Makefile.config.in
19588 # that these configured values can be used by the makefiles
19589 if test "${prefix}" = "NONE" ; then
19590   prefix="/usr/local"
19591 fi
19592 eval LLVM_PREFIX="${prefix}";
19593 eval LLVM_BINDIR="${prefix}/bin";
19594 eval LLVM_LIBDIR="${prefix}/lib";
19595 eval LLVM_DATADIR="${prefix}/share/llvm";
19596 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
19597 eval LLVM_ETCDIR="${prefix}/etc/llvm";
19598 eval LLVM_INCLUDEDIR="${prefix}/include";
19599 eval LLVM_INFODIR="${prefix}/info";
19600 eval LLVM_MANDIR="${prefix}/man";
19601 LLVM_CONFIGTIME=`date`
19602
19603
19604
19605
19606
19607
19608
19609
19610
19611
19612
19613 # Place the various directores into the config.h file as #defines so that we
19614 # can know about the installation paths within LLVM.
19615
19616 cat >>confdefs.h <<_ACEOF
19617 #define LLVM_PREFIX "$LLVM_PREFIX"
19618 _ACEOF
19619
19620
19621 cat >>confdefs.h <<_ACEOF
19622 #define LLVM_BINDIR "$LLVM_BINDIR"
19623 _ACEOF
19624
19625
19626 cat >>confdefs.h <<_ACEOF
19627 #define LLVM_LIBDIR "$LLVM_LIBDIR"
19628 _ACEOF
19629
19630
19631 cat >>confdefs.h <<_ACEOF
19632 #define LLVM_DATADIR "$LLVM_DATADIR"
19633 _ACEOF
19634
19635
19636 cat >>confdefs.h <<_ACEOF
19637 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
19638 _ACEOF
19639
19640
19641 cat >>confdefs.h <<_ACEOF
19642 #define LLVM_ETCDIR "$LLVM_ETCDIR"
19643 _ACEOF
19644
19645
19646 cat >>confdefs.h <<_ACEOF
19647 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19648 _ACEOF
19649
19650
19651 cat >>confdefs.h <<_ACEOF
19652 #define LLVM_INFODIR "$LLVM_INFODIR"
19653 _ACEOF
19654
19655
19656 cat >>confdefs.h <<_ACEOF
19657 #define LLVM_MANDIR "$LLVM_MANDIR"
19658 _ACEOF
19659
19660
19661 cat >>confdefs.h <<_ACEOF
19662 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19663 _ACEOF
19664
19665
19666 cat >>confdefs.h <<_ACEOF
19667 #define LLVM_HOSTTRIPLE "$host"
19668 _ACEOF
19669
19670
19671 # Determine which bindings to build.
19672 if test "$BINDINGS_TO_BUILD" = auto ; then
19673   BINDINGS_TO_BUILD=""
19674   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19675     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19676   fi
19677 fi
19678 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19679
19680
19681 # This isn't really configurey, but it avoids having to repeat the list in
19682 # other files.
19683 ALL_BINDINGS=ocaml
19684
19685
19686 # Do any work necessary to ensure that bindings have what they need.
19687 binding_prereqs_failed=0
19688 for a_binding in $BINDINGS_TO_BUILD ; do
19689   case "$a_binding" in
19690   ocaml)
19691     if test "x$OCAMLC" = x ; then
19692       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19693 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
19694       binding_prereqs_failed=1
19695     fi
19696     if test "x$OCAMLDEP" = x ; then
19697       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19698 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
19699       binding_prereqs_failed=1
19700     fi
19701     if test "x$OCAMLOPT" = x ; then
19702       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19703 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
19704           fi
19705     if test "x$with_ocaml_libdir" != xauto ; then
19706       OCAML_LIBDIR=$with_ocaml_libdir
19707
19708     else
19709       ocaml_stdlib="`"$OCAMLC" -where`"
19710       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19711       then
19712         # ocaml stdlib is beneath our prefix; use stdlib
19713         OCAML_LIBDIR=$ocaml_stdlib
19714
19715       else
19716         # ocaml stdlib is outside our prefix; use libdir/ocaml
19717         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
19718
19719       fi
19720     fi
19721     ;;
19722   esac
19723 done
19724 if test "$binding_prereqs_failed" = 1 ; then
19725   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19726 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19727    { (exit 1); exit 1; }; }
19728 fi
19729
19730 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19731 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19732 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19733   echo $ECHO_N "(cached) $ECHO_C" >&6
19734 else
19735    ac_ext=cpp
19736 ac_cpp='$CXXCPP $CPPFLAGS'
19737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19740
19741   oldcxxflags="$CXXFLAGS"
19742   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
19743   cat >conftest.$ac_ext <<_ACEOF
19744 /* confdefs.h.  */
19745 _ACEOF
19746 cat confdefs.h >>conftest.$ac_ext
19747 cat >>conftest.$ac_ext <<_ACEOF
19748 /* end confdefs.h.  */
19749
19750 int
19751 main ()
19752 {
19753
19754   ;
19755   return 0;
19756 }
19757 _ACEOF
19758 rm -f conftest.$ac_objext
19759 if { (ac_try="$ac_compile"
19760 case "(($ac_try" in
19761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19762   *) ac_try_echo=$ac_try;;
19763 esac
19764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19765   (eval "$ac_compile") 2>conftest.er1
19766   ac_status=$?
19767   grep -v '^ *+' conftest.er1 >conftest.err
19768   rm -f conftest.er1
19769   cat conftest.err >&5
19770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771   (exit $ac_status); } &&
19772          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19773   { (case "(($ac_try" in
19774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19775   *) ac_try_echo=$ac_try;;
19776 esac
19777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19778   (eval "$ac_try") 2>&5
19779   ac_status=$?
19780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781   (exit $ac_status); }; } &&
19782          { ac_try='test -s conftest.$ac_objext'
19783   { (case "(($ac_try" in
19784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19785   *) ac_try_echo=$ac_try;;
19786 esac
19787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19788   (eval "$ac_try") 2>&5
19789   ac_status=$?
19790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791   (exit $ac_status); }; }; then
19792   llvm_cv_cxx_visibility_inlines_hidden=yes
19793 else
19794   echo "$as_me: failed program was:" >&5
19795 sed 's/^/| /' conftest.$ac_ext >&5
19796
19797         llvm_cv_cxx_visibility_inlines_hidden=no
19798 fi
19799
19800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19801   CXXFLAGS="$oldcxxflags"
19802   ac_ext=c
19803 ac_cpp='$CPP $CPPFLAGS'
19804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19807
19808
19809 fi
19810 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19811 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
19812 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19813   ENABLE_VISIBILITY_INLINES_HIDDEN=1
19814
19815 else
19816   ENABLE_VISIBILITY_INLINES_HIDDEN=0
19817
19818 fi
19819
19820
19821 if test "$llvm_cv_link_use_r" = "yes" ; then
19822   RPATH="-Wl,-R"
19823 else
19824   RPATH="-Wl,-rpath"
19825 fi
19826
19827
19828 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
19829   RDYNAMIC="-Wl,-export-dynamic"
19830 else
19831   RDYNAMIC=""
19832 fi
19833
19834
19835
19836 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
19837
19838 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19839
19840 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19841
19842 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19843
19844 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19845
19846 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
19847
19848
19849 ac_config_files="$ac_config_files Makefile.config"
19850
19851
19852 ac_config_files="$ac_config_files llvm.spec"
19853
19854
19855 ac_config_files="$ac_config_files docs/doxygen.cfg"
19856
19857
19858 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
19859
19860
19861 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
19862
19863
19864 ac_config_commands="$ac_config_commands setup"
19865
19866 ac_config_commands="$ac_config_commands Makefile"
19867
19868
19869 ac_config_commands="$ac_config_commands Makefile.common"
19870
19871
19872 ac_config_commands="$ac_config_commands examples/Makefile"
19873
19874
19875 ac_config_commands="$ac_config_commands lib/Makefile"
19876
19877
19878 ac_config_commands="$ac_config_commands runtime/Makefile"
19879
19880
19881 ac_config_commands="$ac_config_commands test/Makefile"
19882
19883
19884 ac_config_commands="$ac_config_commands test/Makefile.tests"
19885
19886
19887 ac_config_commands="$ac_config_commands unittests/Makefile"
19888
19889
19890 ac_config_commands="$ac_config_commands tools/Makefile"
19891
19892
19893 ac_config_commands="$ac_config_commands utils/Makefile"
19894
19895
19896 ac_config_commands="$ac_config_commands projects/Makefile"
19897
19898
19899 ac_config_commands="$ac_config_commands bindings/Makefile"
19900
19901
19902 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
19903
19904
19905
19906 cat >confcache <<\_ACEOF
19907 # This file is a shell script that caches the results of configure
19908 # tests run on this system so they can be shared between configure
19909 # scripts and configure runs, see configure's option --config-cache.
19910 # It is not useful on other systems.  If it contains results you don't
19911 # want to keep, you may remove or edit it.
19912 #
19913 # config.status only pays attention to the cache file if you give it
19914 # the --recheck option to rerun configure.
19915 #
19916 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19917 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19918 # following values.
19919
19920 _ACEOF
19921
19922 # The following way of writing the cache mishandles newlines in values,
19923 # but we know of no workaround that is simple, portable, and efficient.
19924 # So, we kill variables containing newlines.
19925 # Ultrix sh set writes to stderr and can't be redirected directly,
19926 # and sets the high bit in the cache file unless we assign to the vars.
19927 (
19928   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19929     eval ac_val=\$$ac_var
19930     case $ac_val in #(
19931     *${as_nl}*)
19932       case $ac_var in #(
19933       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19934 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19935       esac
19936       case $ac_var in #(
19937       _ | IFS | as_nl) ;; #(
19938       *) $as_unset $ac_var ;;
19939       esac ;;
19940     esac
19941   done
19942
19943   (set) 2>&1 |
19944     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19945     *${as_nl}ac_space=\ *)
19946       # `set' does not quote correctly, so add quotes (double-quote
19947       # substitution turns \\\\ into \\, and sed turns \\ into \).
19948       sed -n \
19949         "s/'/'\\\\''/g;
19950           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19951       ;; #(
19952     *)
19953       # `set' quotes correctly as required by POSIX, so do not add quotes.
19954       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19955       ;;
19956     esac |
19957     sort
19958 ) |
19959   sed '
19960      /^ac_cv_env_/b end
19961      t clear
19962      :clear
19963      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19964      t end
19965      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19966      :end' >>confcache
19967 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19968   if test -w "$cache_file"; then
19969     test "x$cache_file" != "x/dev/null" &&
19970       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19971 echo "$as_me: updating cache $cache_file" >&6;}
19972     cat confcache >$cache_file
19973   else
19974     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19975 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19976   fi
19977 fi
19978 rm -f confcache
19979
19980 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19981 # Let make expand exec_prefix.
19982 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19983
19984 DEFS=-DHAVE_CONFIG_H
19985
19986 ac_libobjs=
19987 ac_ltlibobjs=
19988 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19989   # 1. Remove the extension, and $U if already installed.
19990   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19991   ac_i=`echo "$ac_i" | sed "$ac_script"`
19992   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19993   #    will be set to the directory where LIBOBJS objects are built.
19994   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19995   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19996 done
19997 LIBOBJS=$ac_libobjs
19998
19999 LTLIBOBJS=$ac_ltlibobjs
20000
20001
20002 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20003   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20004 Usually this means the macro was only invoked conditionally." >&5
20005 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20006 Usually this means the macro was only invoked conditionally." >&2;}
20007    { (exit 1); exit 1; }; }
20008 fi
20009 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20010   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20011 Usually this means the macro was only invoked conditionally." >&5
20012 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20013 Usually this means the macro was only invoked conditionally." >&2;}
20014    { (exit 1); exit 1; }; }
20015 fi
20016
20017 : ${CONFIG_STATUS=./config.status}
20018 ac_clean_files_save=$ac_clean_files
20019 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20020 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20021 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20022 cat >$CONFIG_STATUS <<_ACEOF
20023 #! $SHELL
20024 # Generated by $as_me.
20025 # Run this file to recreate the current configuration.
20026 # Compiler output produced by configure, useful for debugging
20027 # configure, is in config.log if it exists.
20028
20029 debug=false
20030 ac_cs_recheck=false
20031 ac_cs_silent=false
20032 SHELL=\${CONFIG_SHELL-$SHELL}
20033 _ACEOF
20034
20035 cat >>$CONFIG_STATUS <<\_ACEOF
20036 ## --------------------- ##
20037 ## M4sh Initialization.  ##
20038 ## --------------------- ##
20039
20040 # Be Bourne compatible
20041 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20042   emulate sh
20043   NULLCMD=:
20044   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20045   # is contrary to our usage.  Disable this feature.
20046   alias -g '${1+"$@"}'='"$@"'
20047   setopt NO_GLOB_SUBST
20048 else
20049   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20050 fi
20051 BIN_SH=xpg4; export BIN_SH # for Tru64
20052 DUALCASE=1; export DUALCASE # for MKS sh
20053
20054
20055 # PATH needs CR
20056 # Avoid depending upon Character Ranges.
20057 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20058 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20059 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20060 as_cr_digits='0123456789'
20061 as_cr_alnum=$as_cr_Letters$as_cr_digits
20062
20063 # The user is always right.
20064 if test "${PATH_SEPARATOR+set}" != set; then
20065   echo "#! /bin/sh" >conf$$.sh
20066   echo  "exit 0"   >>conf$$.sh
20067   chmod +x conf$$.sh
20068   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20069     PATH_SEPARATOR=';'
20070   else
20071     PATH_SEPARATOR=:
20072   fi
20073   rm -f conf$$.sh
20074 fi
20075
20076 # Support unset when possible.
20077 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20078   as_unset=unset
20079 else
20080   as_unset=false
20081 fi
20082
20083
20084 # IFS
20085 # We need space, tab and new line, in precisely that order.  Quoting is
20086 # there to prevent editors from complaining about space-tab.
20087 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20088 # splitting by setting IFS to empty value.)
20089 as_nl='
20090 '
20091 IFS=" ""        $as_nl"
20092
20093 # Find who we are.  Look in the path if we contain no directory separator.
20094 case $0 in
20095   *[\\/]* ) as_myself=$0 ;;
20096   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20097 for as_dir in $PATH
20098 do
20099   IFS=$as_save_IFS
20100   test -z "$as_dir" && as_dir=.
20101   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20102 done
20103 IFS=$as_save_IFS
20104
20105      ;;
20106 esac
20107 # We did not find ourselves, most probably we were run as `sh COMMAND'
20108 # in which case we are not to be found in the path.
20109 if test "x$as_myself" = x; then
20110   as_myself=$0
20111 fi
20112 if test ! -f "$as_myself"; then
20113   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20114   { (exit 1); exit 1; }
20115 fi
20116
20117 # Work around bugs in pre-3.0 UWIN ksh.
20118 for as_var in ENV MAIL MAILPATH
20119 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20120 done
20121 PS1='$ '
20122 PS2='> '
20123 PS4='+ '
20124
20125 # NLS nuisances.
20126 for as_var in \
20127   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20128   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20129   LC_TELEPHONE LC_TIME
20130 do
20131   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20132     eval $as_var=C; export $as_var
20133   else
20134     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20135   fi
20136 done
20137
20138 # Required to use basename.
20139 if expr a : '\(a\)' >/dev/null 2>&1 &&
20140    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20141   as_expr=expr
20142 else
20143   as_expr=false
20144 fi
20145
20146 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20147   as_basename=basename
20148 else
20149   as_basename=false
20150 fi
20151
20152
20153 # Name of the executable.
20154 as_me=`$as_basename -- "$0" ||
20155 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20156          X"$0" : 'X\(//\)$' \| \
20157          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20158 echo X/"$0" |
20159     sed '/^.*\/\([^/][^/]*\)\/*$/{
20160             s//\1/
20161             q
20162           }
20163           /^X\/\(\/\/\)$/{
20164             s//\1/
20165             q
20166           }
20167           /^X\/\(\/\).*/{
20168             s//\1/
20169             q
20170           }
20171           s/.*/./; q'`
20172
20173 # CDPATH.
20174 $as_unset CDPATH
20175
20176
20177
20178   as_lineno_1=$LINENO
20179   as_lineno_2=$LINENO
20180   test "x$as_lineno_1" != "x$as_lineno_2" &&
20181   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20182
20183   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20184   # uniformly replaced by the line number.  The first 'sed' inserts a
20185   # line-number line after each line using $LINENO; the second 'sed'
20186   # does the real work.  The second script uses 'N' to pair each
20187   # line-number line with the line containing $LINENO, and appends
20188   # trailing '-' during substitution so that $LINENO is not a special
20189   # case at line end.
20190   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20191   # scripts with optimization help from Paolo Bonzini.  Blame Lee
20192   # E. McMahon (1931-1989) for sed's syntax.  :-)
20193   sed -n '
20194     p
20195     /[$]LINENO/=
20196   ' <$as_myself |
20197     sed '
20198       s/[$]LINENO.*/&-/
20199       t lineno
20200       b
20201       :lineno
20202       N
20203       :loop
20204       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20205       t loop
20206       s/-\n.*//
20207     ' >$as_me.lineno &&
20208   chmod +x "$as_me.lineno" ||
20209     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20210    { (exit 1); exit 1; }; }
20211
20212   # Don't try to exec as it changes $[0], causing all sort of problems
20213   # (the dirname of $[0] is not the place where we might find the
20214   # original and so on.  Autoconf is especially sensitive to this).
20215   . "./$as_me.lineno"
20216   # Exit status is that of the last command.
20217   exit
20218 }
20219
20220
20221 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20222   as_dirname=dirname
20223 else
20224   as_dirname=false
20225 fi
20226
20227 ECHO_C= ECHO_N= ECHO_T=
20228 case `echo -n x` in
20229 -n*)
20230   case `echo 'x\c'` in
20231   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20232   *)   ECHO_C='\c';;
20233   esac;;
20234 *)
20235   ECHO_N='-n';;
20236 esac
20237
20238 if expr a : '\(a\)' >/dev/null 2>&1 &&
20239    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20240   as_expr=expr
20241 else
20242   as_expr=false
20243 fi
20244
20245 rm -f conf$$ conf$$.exe conf$$.file
20246 if test -d conf$$.dir; then
20247   rm -f conf$$.dir/conf$$.file
20248 else
20249   rm -f conf$$.dir
20250   mkdir conf$$.dir
20251 fi
20252 echo >conf$$.file
20253 if ln -s conf$$.file conf$$ 2>/dev/null; then
20254   as_ln_s='ln -s'
20255   # ... but there are two gotchas:
20256   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20257   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20258   # In both cases, we have to default to `cp -p'.
20259   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20260     as_ln_s='cp -p'
20261 elif ln conf$$.file conf$$ 2>/dev/null; then
20262   as_ln_s=ln
20263 else
20264   as_ln_s='cp -p'
20265 fi
20266 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20267 rmdir conf$$.dir 2>/dev/null
20268
20269 if mkdir -p . 2>/dev/null; then
20270   as_mkdir_p=:
20271 else
20272   test -d ./-p && rmdir ./-p
20273   as_mkdir_p=false
20274 fi
20275
20276 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
20277 # systems may use methods other than mode bits to determine executability.
20278 cat >conf$$.file <<_ASEOF
20279 #! /bin/sh
20280 exit 0
20281 _ASEOF
20282 chmod +x conf$$.file
20283 if test -x conf$$.file >/dev/null 2>&1; then
20284   as_executable_p="test -x"
20285 else
20286   as_executable_p=:
20287 fi
20288 rm -f conf$$.file
20289
20290 # Sed expression to map a string onto a valid CPP name.
20291 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20292
20293 # Sed expression to map a string onto a valid variable name.
20294 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20295
20296
20297 exec 6>&1
20298
20299 # Save the log message, to keep $[0] and so on meaningful, and to
20300 # report actual input values of CONFIG_FILES etc. instead of their
20301 # values after options handling.
20302 ac_log="
20303 This file was extended by llvm $as_me 2.7svn, which was
20304 generated by GNU Autoconf 2.60.  Invocation command line was
20305
20306   CONFIG_FILES    = $CONFIG_FILES
20307   CONFIG_HEADERS  = $CONFIG_HEADERS
20308   CONFIG_LINKS    = $CONFIG_LINKS
20309   CONFIG_COMMANDS = $CONFIG_COMMANDS
20310   $ $0 $@
20311
20312 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20313 "
20314
20315 _ACEOF
20316
20317 cat >>$CONFIG_STATUS <<_ACEOF
20318 # Files that config.status was made for.
20319 config_files="$ac_config_files"
20320 config_headers="$ac_config_headers"
20321 config_commands="$ac_config_commands"
20322
20323 _ACEOF
20324
20325 cat >>$CONFIG_STATUS <<\_ACEOF
20326 ac_cs_usage="\
20327 \`$as_me' instantiates files from templates according to the
20328 current configuration.
20329
20330 Usage: $0 [OPTIONS] [FILE]...
20331
20332   -h, --help       print this help, then exit
20333   -V, --version    print version number, then exit
20334   -q, --quiet      do not print progress messages
20335   -d, --debug      don't remove temporary files
20336       --recheck    update $as_me by reconfiguring in the same conditions
20337   --file=FILE[:TEMPLATE]
20338                    instantiate the configuration file FILE
20339   --header=FILE[:TEMPLATE]
20340                    instantiate the configuration header FILE
20341
20342 Configuration files:
20343 $config_files
20344
20345 Configuration headers:
20346 $config_headers
20347
20348 Configuration commands:
20349 $config_commands
20350
20351 Report bugs to <bug-autoconf@gnu.org>."
20352
20353 _ACEOF
20354 cat >>$CONFIG_STATUS <<_ACEOF
20355 ac_cs_version="\\
20356 llvm config.status 2.7svn
20357 configured by $0, generated by GNU Autoconf 2.60,
20358   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20359
20360 Copyright (C) 2006 Free Software Foundation, Inc.
20361 This config.status script is free software; the Free Software Foundation
20362 gives unlimited permission to copy, distribute and modify it."
20363
20364 ac_pwd='$ac_pwd'
20365 srcdir='$srcdir'
20366 INSTALL='$INSTALL'
20367 _ACEOF
20368
20369 cat >>$CONFIG_STATUS <<\_ACEOF
20370 # If no file are specified by the user, then we need to provide default
20371 # value.  By we need to know if files were specified by the user.
20372 ac_need_defaults=:
20373 while test $# != 0
20374 do
20375   case $1 in
20376   --*=*)
20377     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20378     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20379     ac_shift=:
20380     ;;
20381   *)
20382     ac_option=$1
20383     ac_optarg=$2
20384     ac_shift=shift
20385     ;;
20386   esac
20387
20388   case $ac_option in
20389   # Handling of the options.
20390   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20391     ac_cs_recheck=: ;;
20392   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20393     echo "$ac_cs_version"; exit ;;
20394   --debug | --debu | --deb | --de | --d | -d )
20395     debug=: ;;
20396   --file | --fil | --fi | --f )
20397     $ac_shift
20398     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20399     ac_need_defaults=false;;
20400   --header | --heade | --head | --hea )
20401     $ac_shift
20402     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20403     ac_need_defaults=false;;
20404   --he | --h)
20405     # Conflict between --help and --header
20406     { echo "$as_me: error: ambiguous option: $1
20407 Try \`$0 --help' for more information." >&2
20408    { (exit 1); exit 1; }; };;
20409   --help | --hel | -h )
20410     echo "$ac_cs_usage"; exit ;;
20411   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20412   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20413     ac_cs_silent=: ;;
20414
20415   # This is an error.
20416   -*) { echo "$as_me: error: unrecognized option: $1
20417 Try \`$0 --help' for more information." >&2
20418    { (exit 1); exit 1; }; } ;;
20419
20420   *) ac_config_targets="$ac_config_targets $1"
20421      ac_need_defaults=false ;;
20422
20423   esac
20424   shift
20425 done
20426
20427 ac_configure_extra_args=
20428
20429 if $ac_cs_silent; then
20430   exec 6>/dev/null
20431   ac_configure_extra_args="$ac_configure_extra_args --silent"
20432 fi
20433
20434 _ACEOF
20435 cat >>$CONFIG_STATUS <<_ACEOF
20436 if \$ac_cs_recheck; then
20437   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20438   CONFIG_SHELL=$SHELL
20439   export CONFIG_SHELL
20440   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20441 fi
20442
20443 _ACEOF
20444 cat >>$CONFIG_STATUS <<\_ACEOF
20445 exec 5>>config.log
20446 {
20447   echo
20448   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20449 ## Running $as_me. ##
20450 _ASBOX
20451   echo "$ac_log"
20452 } >&5
20453
20454 _ACEOF
20455 cat >>$CONFIG_STATUS <<_ACEOF
20456 #
20457 # INIT-COMMANDS
20458 #
20459 llvm_src="${srcdir}"
20460
20461 _ACEOF
20462
20463 cat >>$CONFIG_STATUS <<\_ACEOF
20464
20465 # Handling of arguments.
20466 for ac_config_target in $ac_config_targets
20467 do
20468   case $ac_config_target in
20469     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20470     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20471     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20472     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20473     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20474     "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
20475     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20476     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20477     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
20478     "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
20479     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20480     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20481     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20482     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20483     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20484     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20485     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
20486     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20487     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
20488     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
20489     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20490     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20491     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
20492     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20493     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20494
20495   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20496 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20497    { (exit 1); exit 1; }; };;
20498   esac
20499 done
20500
20501
20502 # If the user did not use the arguments to specify the items to instantiate,
20503 # then the envvar interface is used.  Set only those that are not.
20504 # We use the long form for the default assignment because of an extremely
20505 # bizarre bug on SunOS 4.1.3.
20506 if $ac_need_defaults; then
20507   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20508   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20509   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20510 fi
20511
20512 # Have a temporary directory for convenience.  Make it in the build tree
20513 # simply because there is no reason against having it here, and in addition,
20514 # creating and moving files from /tmp can sometimes cause problems.
20515 # Hook for its removal unless debugging.
20516 # Note that there is a small window in which the directory will not be cleaned:
20517 # after its creation but before its name has been assigned to `$tmp'.
20518 $debug ||
20519 {
20520   tmp=
20521   trap 'exit_status=$?
20522   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20523 ' 0
20524   trap '{ (exit 1); exit 1; }' 1 2 13 15
20525 }
20526 # Create a (secure) tmp directory for tmp files.
20527
20528 {
20529   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20530   test -n "$tmp" && test -d "$tmp"
20531 }  ||
20532 {
20533   tmp=./conf$$-$RANDOM
20534   (umask 077 && mkdir "$tmp")
20535 } ||
20536 {
20537    echo "$me: cannot create a temporary directory in ." >&2
20538    { (exit 1); exit 1; }
20539 }
20540
20541 #
20542 # Set up the sed scripts for CONFIG_FILES section.
20543 #
20544
20545 # No need to generate the scripts if there are no CONFIG_FILES.
20546 # This happens for instance when ./config.status config.h
20547 if test -n "$CONFIG_FILES"; then
20548
20549 _ACEOF
20550
20551
20552
20553 ac_delim='%!_!# '
20554 for ac_last_try in false false false false false :; do
20555   cat >conf$$subs.sed <<_ACEOF
20556 SHELL!$SHELL$ac_delim
20557 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20558 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20559 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20560 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20561 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20562 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20563 exec_prefix!$exec_prefix$ac_delim
20564 prefix!$prefix$ac_delim
20565 program_transform_name!$program_transform_name$ac_delim
20566 bindir!$bindir$ac_delim
20567 sbindir!$sbindir$ac_delim
20568 libexecdir!$libexecdir$ac_delim
20569 datarootdir!$datarootdir$ac_delim
20570 datadir!$datadir$ac_delim
20571 sysconfdir!$sysconfdir$ac_delim
20572 sharedstatedir!$sharedstatedir$ac_delim
20573 localstatedir!$localstatedir$ac_delim
20574 includedir!$includedir$ac_delim
20575 oldincludedir!$oldincludedir$ac_delim
20576 docdir!$docdir$ac_delim
20577 infodir!$infodir$ac_delim
20578 htmldir!$htmldir$ac_delim
20579 dvidir!$dvidir$ac_delim
20580 pdfdir!$pdfdir$ac_delim
20581 psdir!$psdir$ac_delim
20582 libdir!$libdir$ac_delim
20583 localedir!$localedir$ac_delim
20584 mandir!$mandir$ac_delim
20585 DEFS!$DEFS$ac_delim
20586 ECHO_C!$ECHO_C$ac_delim
20587 ECHO_N!$ECHO_N$ac_delim
20588 ECHO_T!$ECHO_T$ac_delim
20589 LIBS!$LIBS$ac_delim
20590 build_alias!$build_alias$ac_delim
20591 host_alias!$host_alias$ac_delim
20592 target_alias!$target_alias$ac_delim
20593 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20594 subdirs!$subdirs$ac_delim
20595 build!$build$ac_delim
20596 build_cpu!$build_cpu$ac_delim
20597 build_vendor!$build_vendor$ac_delim
20598 build_os!$build_os$ac_delim
20599 host!$host$ac_delim
20600 host_cpu!$host_cpu$ac_delim
20601 host_vendor!$host_vendor$ac_delim
20602 host_os!$host_os$ac_delim
20603 target!$target$ac_delim
20604 target_cpu!$target_cpu$ac_delim
20605 target_vendor!$target_vendor$ac_delim
20606 target_os!$target_os$ac_delim
20607 OS!$OS$ac_delim
20608 HOST_OS!$HOST_OS$ac_delim
20609 TARGET_OS!$TARGET_OS$ac_delim
20610 LINKALL!$LINKALL$ac_delim
20611 NOLINKALL!$NOLINKALL$ac_delim
20612 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20613 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20614 ARCH!$ARCH$ac_delim
20615 ENDIAN!$ENDIAN$ac_delim
20616 CC!$CC$ac_delim
20617 CFLAGS!$CFLAGS$ac_delim
20618 LDFLAGS!$LDFLAGS$ac_delim
20619 CPPFLAGS!$CPPFLAGS$ac_delim
20620 ac_ct_CC!$ac_ct_CC$ac_delim
20621 EXEEXT!$EXEEXT$ac_delim
20622 OBJEXT!$OBJEXT$ac_delim
20623 CPP!$CPP$ac_delim
20624 GREP!$GREP$ac_delim
20625 EGREP!$EGREP$ac_delim
20626 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20627 BUILD_CC!$BUILD_CC$ac_delim
20628 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20629 BUILD_CXX!$BUILD_CXX$ac_delim
20630 CVSBUILD!$CVSBUILD$ac_delim
20631 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20632 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20633 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20634 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20635 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20636 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20637 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20638 JIT!$JIT$ac_delim
20639 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20640 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20641 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20642 ENABLE_PIC!$ENABLE_PIC$ac_delim
20643 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20644 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20645 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20646 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20647 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20648 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
20649 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
20650 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
20651 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
20652 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
20653 _ACEOF
20654
20655   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20656     break
20657   elif $ac_last_try; then
20658     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20659 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20660    { (exit 1); exit 1; }; }
20661   else
20662     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20663   fi
20664 done
20665
20666 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20667 if test -n "$ac_eof"; then
20668   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20669   ac_eof=`expr $ac_eof + 1`
20670 fi
20671
20672 cat >>$CONFIG_STATUS <<_ACEOF
20673 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20674 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20675 _ACEOF
20676 sed '
20677 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20678 s/^/s,@/; s/!/@,|#_!!_#|/
20679 :n
20680 t n
20681 s/'"$ac_delim"'$/,g/; t
20682 s/$/\\/; p
20683 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20684 ' >>$CONFIG_STATUS <conf$$subs.sed
20685 rm -f conf$$subs.sed
20686 cat >>$CONFIG_STATUS <<_ACEOF
20687 CEOF$ac_eof
20688 _ACEOF
20689
20690
20691 ac_delim='%!_!# '
20692 for ac_last_try in false false false false false :; do
20693   cat >conf$$subs.sed <<_ACEOF
20694 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
20695 CXX!$CXX$ac_delim
20696 CXXFLAGS!$CXXFLAGS$ac_delim
20697 ac_ct_CXX!$ac_ct_CXX$ac_delim
20698 NM!$NM$ac_delim
20699 ifGNUmake!$ifGNUmake$ac_delim
20700 LN_S!$LN_S$ac_delim
20701 CMP!$CMP$ac_delim
20702 CP!$CP$ac_delim
20703 DATE!$DATE$ac_delim
20704 FIND!$FIND$ac_delim
20705 MKDIR!$MKDIR$ac_delim
20706 MV!$MV$ac_delim
20707 RANLIB!$RANLIB$ac_delim
20708 AR!$AR$ac_delim
20709 RM!$RM$ac_delim
20710 SED!$SED$ac_delim
20711 TAR!$TAR$ac_delim
20712 BINPWD!$BINPWD$ac_delim
20713 GRAPHVIZ!$GRAPHVIZ$ac_delim
20714 DOT!$DOT$ac_delim
20715 FDP!$FDP$ac_delim
20716 NEATO!$NEATO$ac_delim
20717 TWOPI!$TWOPI$ac_delim
20718 CIRCO!$CIRCO$ac_delim
20719 GV!$GV$ac_delim
20720 DOTTY!$DOTTY$ac_delim
20721 PERL!$PERL$ac_delim
20722 HAVE_PERL!$HAVE_PERL$ac_delim
20723 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20724 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20725 INSTALL_DATA!$INSTALL_DATA$ac_delim
20726 BZIP2!$BZIP2$ac_delim
20727 DOXYGEN!$DOXYGEN$ac_delim
20728 GROFF!$GROFF$ac_delim
20729 GZIP!$GZIP$ac_delim
20730 POD2HTML!$POD2HTML$ac_delim
20731 POD2MAN!$POD2MAN$ac_delim
20732 RUNTEST!$RUNTEST$ac_delim
20733 TCLSH!$TCLSH$ac_delim
20734 ZIP!$ZIP$ac_delim
20735 OCAMLC!$OCAMLC$ac_delim
20736 OCAMLOPT!$OCAMLOPT$ac_delim
20737 OCAMLDEP!$OCAMLDEP$ac_delim
20738 OCAMLDOC!$OCAMLDOC$ac_delim
20739 GAS!$GAS$ac_delim
20740 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
20741 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
20742 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
20743 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
20744 LIBADD_DL!$LIBADD_DL$ac_delim
20745 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
20746 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
20747 LLVMGCC!$LLVMGCC$ac_delim
20748 LLVMGXX!$LLVMGXX$ac_delim
20749 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20750 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
20751 USE_UDIS86!$USE_UDIS86$ac_delim
20752 USE_OPROFILE!$USE_OPROFILE$ac_delim
20753 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
20754 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20755 MMAP_FILE!$MMAP_FILE$ac_delim
20756 LLVMCC1!$LLVMCC1$ac_delim
20757 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
20758 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
20759 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
20760 SHLIBEXT!$SHLIBEXT$ac_delim
20761 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20762 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
20763 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
20764 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20765 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20766 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
20767 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
20768 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20769 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20770 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
20771 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20772 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
20773 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20774 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
20775 RPATH!$RPATH$ac_delim
20776 RDYNAMIC!$RDYNAMIC$ac_delim
20777 LIBOBJS!$LIBOBJS$ac_delim
20778 LTLIBOBJS!$LTLIBOBJS$ac_delim
20779 _ACEOF
20780
20781   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then
20782     break
20783   elif $ac_last_try; then
20784     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20785 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20786    { (exit 1); exit 1; }; }
20787   else
20788     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20789   fi
20790 done
20791
20792 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20793 if test -n "$ac_eof"; then
20794   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20795   ac_eof=`expr $ac_eof + 1`
20796 fi
20797
20798 cat >>$CONFIG_STATUS <<_ACEOF
20799 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20800 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20801 _ACEOF
20802 sed '
20803 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20804 s/^/s,@/; s/!/@,|#_!!_#|/
20805 :n
20806 t n
20807 s/'"$ac_delim"'$/,g/; t
20808 s/$/\\/; p
20809 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20810 ' >>$CONFIG_STATUS <conf$$subs.sed
20811 rm -f conf$$subs.sed
20812 cat >>$CONFIG_STATUS <<_ACEOF
20813 :end
20814 s/|#_!!_#|//g
20815 CEOF$ac_eof
20816 _ACEOF
20817
20818
20819 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20820 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20821 # trailing colons and then remove the whole line if VPATH becomes empty
20822 # (actually we leave an empty line to preserve line numbers).
20823 if test "x$srcdir" = x.; then
20824   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20825 s/:*\$(srcdir):*/:/
20826 s/:*\${srcdir}:*/:/
20827 s/:*@srcdir@:*/:/
20828 s/^\([^=]*=[     ]*\):*/\1/
20829 s/:*$//
20830 s/^[^=]*=[       ]*$//
20831 }'
20832 fi
20833
20834 cat >>$CONFIG_STATUS <<\_ACEOF
20835 fi # test -n "$CONFIG_FILES"
20836
20837
20838 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
20839 do
20840   case $ac_tag in
20841   :[FHLC]) ac_mode=$ac_tag; continue;;
20842   esac
20843   case $ac_mode$ac_tag in
20844   :[FHL]*:*);;
20845   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20846 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20847    { (exit 1); exit 1; }; };;
20848   :[FH]-) ac_tag=-:-;;
20849   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20850   esac
20851   ac_save_IFS=$IFS
20852   IFS=:
20853   set x $ac_tag
20854   IFS=$ac_save_IFS
20855   shift
20856   ac_file=$1
20857   shift
20858
20859   case $ac_mode in
20860   :L) ac_source=$1;;
20861   :[FH])
20862     ac_file_inputs=
20863     for ac_f
20864     do
20865       case $ac_f in
20866       -) ac_f="$tmp/stdin";;
20867       *) # Look for the file first in the build tree, then in the source tree
20868          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20869          # because $ac_f cannot contain `:'.
20870          test -f "$ac_f" ||
20871            case $ac_f in
20872            [\\/$]*) false;;
20873            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20874            esac ||
20875            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20876 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20877    { (exit 1); exit 1; }; };;
20878       esac
20879       ac_file_inputs="$ac_file_inputs $ac_f"
20880     done
20881
20882     # Let's still pretend it is `configure' which instantiates (i.e., don't
20883     # use $as_me), people would be surprised to read:
20884     #    /* config.h.  Generated by config.status.  */
20885     configure_input="Generated from "`IFS=:
20886           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20887     if test x"$ac_file" != x-; then
20888       configure_input="$ac_file.  $configure_input"
20889       { echo "$as_me:$LINENO: creating $ac_file" >&5
20890 echo "$as_me: creating $ac_file" >&6;}
20891     fi
20892
20893     case $ac_tag in
20894     *:-:* | *:-) cat >"$tmp/stdin";;
20895     esac
20896     ;;
20897   esac
20898
20899   ac_dir=`$as_dirname -- "$ac_file" ||
20900 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20901          X"$ac_file" : 'X\(//\)[^/]' \| \
20902          X"$ac_file" : 'X\(//\)$' \| \
20903          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20904 echo X"$ac_file" |
20905     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20906             s//\1/
20907             q
20908           }
20909           /^X\(\/\/\)[^/].*/{
20910             s//\1/
20911             q
20912           }
20913           /^X\(\/\/\)$/{
20914             s//\1/
20915             q
20916           }
20917           /^X\(\/\).*/{
20918             s//\1/
20919             q
20920           }
20921           s/.*/./; q'`
20922   { as_dir="$ac_dir"
20923   case $as_dir in #(
20924   -*) as_dir=./$as_dir;;
20925   esac
20926   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20927     as_dirs=
20928     while :; do
20929       case $as_dir in #(
20930       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20931       *) as_qdir=$as_dir;;
20932       esac
20933       as_dirs="'$as_qdir' $as_dirs"
20934       as_dir=`$as_dirname -- "$as_dir" ||
20935 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20936          X"$as_dir" : 'X\(//\)[^/]' \| \
20937          X"$as_dir" : 'X\(//\)$' \| \
20938          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20939 echo X"$as_dir" |
20940     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20941             s//\1/
20942             q
20943           }
20944           /^X\(\/\/\)[^/].*/{
20945             s//\1/
20946             q
20947           }
20948           /^X\(\/\/\)$/{
20949             s//\1/
20950             q
20951           }
20952           /^X\(\/\).*/{
20953             s//\1/
20954             q
20955           }
20956           s/.*/./; q'`
20957       test -d "$as_dir" && break
20958     done
20959     test -z "$as_dirs" || eval "mkdir $as_dirs"
20960   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20961 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20962    { (exit 1); exit 1; }; }; }
20963   ac_builddir=.
20964
20965 case "$ac_dir" in
20966 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20967 *)
20968   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20969   # A ".." for each directory in $ac_dir_suffix.
20970   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20971   case $ac_top_builddir_sub in
20972   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20973   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20974   esac ;;
20975 esac
20976 ac_abs_top_builddir=$ac_pwd
20977 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20978 # for backward compatibility:
20979 ac_top_builddir=$ac_top_build_prefix
20980
20981 case $srcdir in
20982   .)  # We are building in place.
20983     ac_srcdir=.
20984     ac_top_srcdir=$ac_top_builddir_sub
20985     ac_abs_top_srcdir=$ac_pwd ;;
20986   [\\/]* | ?:[\\/]* )  # Absolute name.
20987     ac_srcdir=$srcdir$ac_dir_suffix;
20988     ac_top_srcdir=$srcdir
20989     ac_abs_top_srcdir=$srcdir ;;
20990   *) # Relative name.
20991     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20992     ac_top_srcdir=$ac_top_build_prefix$srcdir
20993     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20994 esac
20995 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20996
20997
20998   case $ac_mode in
20999   :F)
21000   #
21001   # CONFIG_FILE
21002   #
21003
21004   case $INSTALL in
21005   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21006   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21007   esac
21008 _ACEOF
21009
21010 cat >>$CONFIG_STATUS <<\_ACEOF
21011 # If the template does not know about datarootdir, expand it.
21012 # FIXME: This hack should be removed a few years after 2.60.
21013 ac_datarootdir_hack=; ac_datarootdir_seen=
21014
21015 case `sed -n '/datarootdir/ {
21016   p
21017   q
21018 }
21019 /@datadir@/p
21020 /@docdir@/p
21021 /@infodir@/p
21022 /@localedir@/p
21023 /@mandir@/p
21024 ' $ac_file_inputs` in
21025 *datarootdir*) ac_datarootdir_seen=yes;;
21026 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21027   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21028 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21029 _ACEOF
21030 cat >>$CONFIG_STATUS <<_ACEOF
21031   ac_datarootdir_hack='
21032   s&@datadir@&$datadir&g
21033   s&@docdir@&$docdir&g
21034   s&@infodir@&$infodir&g
21035   s&@localedir@&$localedir&g
21036   s&@mandir@&$mandir&g
21037     s&\\\${datarootdir}&$datarootdir&g' ;;
21038 esac
21039 _ACEOF
21040
21041 # Neutralize VPATH when `$srcdir' = `.'.
21042 # Shell code in configure.ac might set extrasub.
21043 # FIXME: do we really want to maintain this feature?
21044 cat >>$CONFIG_STATUS <<_ACEOF
21045   sed "$ac_vpsub
21046 $extrasub
21047 _ACEOF
21048 cat >>$CONFIG_STATUS <<\_ACEOF
21049 :t
21050 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21051 s&@configure_input@&$configure_input&;t t
21052 s&@top_builddir@&$ac_top_builddir_sub&;t t
21053 s&@srcdir@&$ac_srcdir&;t t
21054 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21055 s&@top_srcdir@&$ac_top_srcdir&;t t
21056 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21057 s&@builddir@&$ac_builddir&;t t
21058 s&@abs_builddir@&$ac_abs_builddir&;t t
21059 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21060 s&@INSTALL@&$ac_INSTALL&;t t
21061 $ac_datarootdir_hack
21062 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21063
21064 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21065   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21066   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21067   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21068 which seems to be undefined.  Please make sure it is defined." >&5
21069 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21070 which seems to be undefined.  Please make sure it is defined." >&2;}
21071
21072   rm -f "$tmp/stdin"
21073   case $ac_file in
21074   -) cat "$tmp/out"; rm -f "$tmp/out";;
21075   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21076   esac
21077  ;;
21078   :H)
21079   #
21080   # CONFIG_HEADER
21081   #
21082 _ACEOF
21083
21084 # Transform confdefs.h into a sed script `conftest.defines', that
21085 # substitutes the proper values into config.h.in to produce config.h.
21086 rm -f conftest.defines conftest.tail
21087 # First, append a space to every undef/define line, to ease matching.
21088 echo 's/$/ /' >conftest.defines
21089 # Then, protect against being on the right side of a sed subst, or in
21090 # an unquoted here document, in config.status.  If some macros were
21091 # called several times there might be several #defines for the same
21092 # symbol, which is useless.  But do not sort them, since the last
21093 # AC_DEFINE must be honored.
21094 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21095 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21096 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21097 # PARAMS is the parameter list in the macro definition--in most cases, it's
21098 # just an empty string.
21099 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
21100 ac_dB='\\)[      (].*,\\1define\\2'
21101 ac_dC=' '
21102 ac_dD=' ,'
21103
21104 uniq confdefs.h |
21105   sed -n '
21106         t rset
21107         :rset
21108         s/^[     ]*#[    ]*define[       ][      ]*//
21109         t ok
21110         d
21111         :ok
21112         s/[\\&,]/\\&/g
21113         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21114         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21115   ' >>conftest.defines
21116
21117 # Remove the space that was appended to ease matching.
21118 # Then replace #undef with comments.  This is necessary, for
21119 # example, in the case of _POSIX_SOURCE, which is predefined and required
21120 # on some systems where configure will not decide to define it.
21121 # (The regexp can be short, since the line contains either #define or #undef.)
21122 echo 's/ $//
21123 s,^[     #]*u.*,/* & */,' >>conftest.defines
21124
21125 # Break up conftest.defines:
21126 ac_max_sed_lines=50
21127
21128 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21129 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21130 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21131 # et cetera.
21132 ac_in='$ac_file_inputs'
21133 ac_out='"$tmp/out1"'
21134 ac_nxt='"$tmp/out2"'
21135
21136 while :
21137 do
21138   # Write a here document:
21139     cat >>$CONFIG_STATUS <<_ACEOF
21140     # First, check the format of the line:
21141     cat >"\$tmp/defines.sed" <<\\CEOF
21142 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
21143 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
21144 b
21145 :def
21146 _ACEOF
21147   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21148   echo 'CEOF
21149     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21150   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21151   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21152   grep . conftest.tail >/dev/null || break
21153   rm -f conftest.defines
21154   mv conftest.tail conftest.defines
21155 done
21156 rm -f conftest.defines conftest.tail
21157
21158 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21159 cat >>$CONFIG_STATUS <<\_ACEOF
21160   if test x"$ac_file" != x-; then
21161     echo "/* $configure_input  */" >"$tmp/config.h"
21162     cat "$ac_result" >>"$tmp/config.h"
21163     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21164       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21165 echo "$as_me: $ac_file is unchanged" >&6;}
21166     else
21167       rm -f $ac_file
21168       mv "$tmp/config.h" $ac_file
21169     fi
21170   else
21171     echo "/* $configure_input  */"
21172     cat "$ac_result"
21173   fi
21174   rm -f "$tmp/out12"
21175  ;;
21176
21177   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21178 echo "$as_me: executing $ac_file commands" >&6;}
21179  ;;
21180   esac
21181
21182
21183   case $ac_file$ac_mode in
21184     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
21185    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
21186     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
21187    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
21188     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
21189    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
21190     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
21191    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
21192     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
21193    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
21194     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
21195    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
21196     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
21197    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
21198     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
21199    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
21200     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
21201    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
21202     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
21203    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
21204     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
21205    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
21206     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
21207    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
21208     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
21209    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
21210
21211   esac
21212 done # for ac_tag
21213
21214
21215 { (exit 0); exit 0; }
21216 _ACEOF
21217 chmod +x $CONFIG_STATUS
21218 ac_clean_files=$ac_clean_files_save
21219
21220
21221 # configure is writing to config.log, and then calls config.status.
21222 # config.status does its own redirection, appending to config.log.
21223 # Unfortunately, on DOS this fails, as config.log is still kept open
21224 # by configure, so config.status won't be able to write to it; its
21225 # output is simply discarded.  So we exec the FD to /dev/null,
21226 # effectively closing config.log, so it can be properly (re)opened and
21227 # appended to by config.status.  When coming back to configure, we
21228 # need to make the FD available again.
21229 if test "$no_create" != yes; then
21230   ac_cs_success=:
21231   ac_config_status_args=
21232   test "$silent" = yes &&
21233     ac_config_status_args="$ac_config_status_args --quiet"
21234   exec 5>/dev/null
21235   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21236   exec 5>>config.log
21237   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21238   # would make configure fail if this is the last instruction.
21239   $ac_cs_success || { (exit 1); exit 1; }
21240 fi
21241
21242 #
21243 # CONFIG_SUBDIRS section.
21244 #
21245 if test "$no_recursion" != yes; then
21246
21247   # Remove --cache-file and --srcdir arguments so they do not pile up.
21248   ac_sub_configure_args=
21249   ac_prev=
21250   eval "set x $ac_configure_args"
21251   shift
21252   for ac_arg
21253   do
21254     if test -n "$ac_prev"; then
21255       ac_prev=
21256       continue
21257     fi
21258     case $ac_arg in
21259     -cache-file | --cache-file | --cache-fil | --cache-fi \
21260     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21261       ac_prev=cache_file ;;
21262     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21263     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21264     | --c=*)
21265       ;;
21266     --config-cache | -C)
21267       ;;
21268     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21269       ac_prev=srcdir ;;
21270     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21271       ;;
21272     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21273       ac_prev=prefix ;;
21274     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21275       ;;
21276     *)
21277       case $ac_arg in
21278       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21279       esac
21280       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
21281     esac
21282   done
21283
21284   # Always prepend --prefix to ensure using the same prefix
21285   # in subdir configurations.
21286   ac_arg="--prefix=$prefix"
21287   case $ac_arg in
21288   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21289   esac
21290   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
21291
21292   ac_popdir=`pwd`
21293   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21294
21295     # Do not complain, so a configure script can configure whichever
21296     # parts of a large source tree are present.
21297     test -d "$srcdir/$ac_dir" || continue
21298
21299     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21300     echo "$as_me:$LINENO: $ac_msg" >&5
21301     echo "$ac_msg" >&6
21302     { as_dir="$ac_dir"
21303   case $as_dir in #(
21304   -*) as_dir=./$as_dir;;
21305   esac
21306   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21307     as_dirs=
21308     while :; do
21309       case $as_dir in #(
21310       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21311       *) as_qdir=$as_dir;;
21312       esac
21313       as_dirs="'$as_qdir' $as_dirs"
21314       as_dir=`$as_dirname -- "$as_dir" ||
21315 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21316          X"$as_dir" : 'X\(//\)[^/]' \| \
21317          X"$as_dir" : 'X\(//\)$' \| \
21318          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21319 echo X"$as_dir" |
21320     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21321             s//\1/
21322             q
21323           }
21324           /^X\(\/\/\)[^/].*/{
21325             s//\1/
21326             q
21327           }
21328           /^X\(\/\/\)$/{
21329             s//\1/
21330             q
21331           }
21332           /^X\(\/\).*/{
21333             s//\1/
21334             q
21335           }
21336           s/.*/./; q'`
21337       test -d "$as_dir" && break
21338     done
21339     test -z "$as_dirs" || eval "mkdir $as_dirs"
21340   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21341 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21342    { (exit 1); exit 1; }; }; }
21343     ac_builddir=.
21344
21345 case "$ac_dir" in
21346 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21347 *)
21348   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21349   # A ".." for each directory in $ac_dir_suffix.
21350   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21351   case $ac_top_builddir_sub in
21352   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21353   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21354   esac ;;
21355 esac
21356 ac_abs_top_builddir=$ac_pwd
21357 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21358 # for backward compatibility:
21359 ac_top_builddir=$ac_top_build_prefix
21360
21361 case $srcdir in
21362   .)  # We are building in place.
21363     ac_srcdir=.
21364     ac_top_srcdir=$ac_top_builddir_sub
21365     ac_abs_top_srcdir=$ac_pwd ;;
21366   [\\/]* | ?:[\\/]* )  # Absolute name.
21367     ac_srcdir=$srcdir$ac_dir_suffix;
21368     ac_top_srcdir=$srcdir
21369     ac_abs_top_srcdir=$srcdir ;;
21370   *) # Relative name.
21371     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21372     ac_top_srcdir=$ac_top_build_prefix$srcdir
21373     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21374 esac
21375 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21376
21377
21378     cd "$ac_dir"
21379
21380     # Check for guested configure; otherwise get Cygnus style configure.
21381     if test -f "$ac_srcdir/configure.gnu"; then
21382       ac_sub_configure=$ac_srcdir/configure.gnu
21383     elif test -f "$ac_srcdir/configure"; then
21384       ac_sub_configure=$ac_srcdir/configure
21385     elif test -f "$ac_srcdir/configure.in"; then
21386       # This should be Cygnus configure.
21387       ac_sub_configure=$ac_aux_dir/configure
21388     else
21389       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21390 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21391       ac_sub_configure=
21392     fi
21393
21394     # The recursion is here.
21395     if test -n "$ac_sub_configure"; then
21396       # Make the cache file name correct relative to the subdirectory.
21397       case $cache_file in
21398       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21399       *) # Relative name.
21400         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21401       esac
21402
21403       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21404 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21405       # The eval makes quoting arguments work.
21406       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21407            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21408         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21409 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21410    { (exit 1); exit 1; }; }
21411     fi
21412
21413     cd "$ac_popdir"
21414   done
21415 fi
21416