Build script changes for R600/SI Codegen v6
[oota-llvm.git] / projects / sample / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx].
4 #
5 # Report bugs to <bugs@yourdomain>.
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 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22   setopt NO_GLOB_SUBST
23 else
24   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25 fi
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
28
29
30 # PATH needs CR
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40   echo "#! /bin/sh" >conf$$.sh
41   echo  "exit 0"   >>conf$$.sh
42   chmod +x conf$$.sh
43   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44     PATH_SEPARATOR=';'
45   else
46     PATH_SEPARATOR=:
47   fi
48   rm -f conf$$.sh
49 fi
50
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53   as_unset=unset
54 else
55   as_unset=false
56 fi
57
58
59 # IFS
60 # We need space, tab and new line, in precisely that order.  Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
64 as_nl='
65 '
66 IFS=" ""        $as_nl"
67
68 # Find who we are.  Look in the path if we contain no directory separator.
69 case $0 in
70   *[\\/]* ) as_myself=$0 ;;
71   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72 for as_dir in $PATH
73 do
74   IFS=$as_save_IFS
75   test -z "$as_dir" && as_dir=.
76   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77 done
78 IFS=$as_save_IFS
79
80      ;;
81 esac
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
85   as_myself=$0
86 fi
87 if test ! -f "$as_myself"; then
88   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89   { (exit 1); exit 1; }
90 fi
91
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95 done
96 PS1='$ '
97 PS2='> '
98 PS4='+ '
99
100 # NLS nuisances.
101 for as_var in \
102   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104   LC_TELEPHONE LC_TIME
105 do
106   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107     eval $as_var=C; export $as_var
108   else
109     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
110   fi
111 done
112
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115    test "X`expr 00001 : '.*\(...\)'`" = X001; then
116   as_expr=expr
117 else
118   as_expr=false
119 fi
120
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122   as_basename=basename
123 else
124   as_basename=false
125 fi
126
127
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131          X"$0" : 'X\(//\)$' \| \
132          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133 echo X/"$0" |
134     sed '/^.*\/\([^/][^/]*\)\/*$/{
135             s//\1/
136             q
137           }
138           /^X\/\(\/\/\)$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\).*/{
143             s//\1/
144             q
145           }
146           s/.*/./; q'`
147
148 # CDPATH.
149 $as_unset CDPATH
150
151
152 if test "x$CONFIG_SHELL" = x; then
153   if (eval ":") 2>/dev/null; then
154   as_have_required=yes
155 else
156   as_have_required=no
157 fi
158
159   if test $as_have_required = yes &&     (eval ":
160 (as_func_return () {
161   (exit \$1)
162 }
163 as_func_success () {
164   as_func_return 0
165 }
166 as_func_failure () {
167   as_func_return 1
168 }
169 as_func_ret_success () {
170   return 0
171 }
172 as_func_ret_failure () {
173   return 1
174 }
175
176 exitcode=0
177 if as_func_success; then
178   :
179 else
180   exitcode=1
181   echo as_func_success failed.
182 fi
183
184 if as_func_failure; then
185   exitcode=1
186   echo as_func_failure succeeded.
187 fi
188
189 if as_func_ret_success; then
190   :
191 else
192   exitcode=1
193   echo as_func_ret_success failed.
194 fi
195
196 if as_func_ret_failure; then
197   exitcode=1
198   echo as_func_ret_failure succeeded.
199 fi
200
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202   :
203 else
204   exitcode=1
205   echo positional parameters were not saved.
206 fi
207
208 test \$exitcode = 0) || { (exit 1); exit 1; }
209
210 (
211   as_lineno_1=\$LINENO
212   as_lineno_2=\$LINENO
213   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
216   :
217 else
218   as_candidate_shells=
219     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   case $as_dir in
225          /*)
226            for as_base in sh bash ksh sh5; do
227              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228            done;;
229        esac
230 done
231 IFS=$as_save_IFS
232
233
234       for as_shell in $as_candidate_shells $SHELL; do
235          # Try only shells that exist, to save several forks.
236          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237                 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240   emulate sh
241   NULLCMD=:
242   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243   # is contrary to our usage.  Disable this feature.
244   alias -g '${1+"$@"}'='"$@"'
245   setopt NO_GLOB_SUBST
246 else
247   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248 fi
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
251
252 :
253 _ASEOF
254 }; then
255   CONFIG_SHELL=$as_shell
256                as_have_required=yes
257                if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268 fi
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
271
272 :
273 (as_func_return () {
274   (exit $1)
275 }
276 as_func_success () {
277   as_func_return 0
278 }
279 as_func_failure () {
280   as_func_return 1
281 }
282 as_func_ret_success () {
283   return 0
284 }
285 as_func_ret_failure () {
286   return 1
287 }
288
289 exitcode=0
290 if as_func_success; then
291   :
292 else
293   exitcode=1
294   echo as_func_success failed.
295 fi
296
297 if as_func_failure; then
298   exitcode=1
299   echo as_func_failure succeeded.
300 fi
301
302 if as_func_ret_success; then
303   :
304 else
305   exitcode=1
306   echo as_func_ret_success failed.
307 fi
308
309 if as_func_ret_failure; then
310   exitcode=1
311   echo as_func_ret_failure succeeded.
312 fi
313
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
315   :
316 else
317   exitcode=1
318   echo positional parameters were not saved.
319 fi
320
321 test $exitcode = 0) || { (exit 1); exit 1; }
322
323 (
324   as_lineno_1=$LINENO
325   as_lineno_2=$LINENO
326   test "x$as_lineno_1" != "x$as_lineno_2" &&
327   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329 _ASEOF
330 }; then
331   break
332 fi
333
334 fi
335
336       done
337
338       if test "x$CONFIG_SHELL" != x; then
339   for as_var in BASH_ENV ENV
340         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341         done
342         export CONFIG_SHELL
343         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344 fi
345
346
347     if test $as_have_required = no; then
348   echo This script requires a shell more modern than all the
349       echo shells that I found on your system.  Please install a
350       echo modern shell, or manually run the script under such a
351       echo shell if you do have one.
352       { (exit 1); exit 1; }
353 fi
354
355
356 fi
357
358 fi
359
360
361
362 (eval "as_func_return () {
363   (exit \$1)
364 }
365 as_func_success () {
366   as_func_return 0
367 }
368 as_func_failure () {
369   as_func_return 1
370 }
371 as_func_ret_success () {
372   return 0
373 }
374 as_func_ret_failure () {
375   return 1
376 }
377
378 exitcode=0
379 if as_func_success; then
380   :
381 else
382   exitcode=1
383   echo as_func_success failed.
384 fi
385
386 if as_func_failure; then
387   exitcode=1
388   echo as_func_failure succeeded.
389 fi
390
391 if as_func_ret_success; then
392   :
393 else
394   exitcode=1
395   echo as_func_ret_success failed.
396 fi
397
398 if as_func_ret_failure; then
399   exitcode=1
400   echo as_func_ret_failure succeeded.
401 fi
402
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404   :
405 else
406   exitcode=1
407   echo positional parameters were not saved.
408 fi
409
410 test \$exitcode = 0") || {
411   echo No shell found that supports shell functions.
412   echo Please tell autoconf@gnu.org about your system,
413   echo including any error possibly output before this
414   echo message
415 }
416
417
418
419   as_lineno_1=$LINENO
420   as_lineno_2=$LINENO
421   test "x$as_lineno_1" != "x$as_lineno_2" &&
422   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
423
424   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425   # uniformly replaced by the line number.  The first 'sed' inserts a
426   # line-number line after each line using $LINENO; the second 'sed'
427   # does the real work.  The second script uses 'N' to pair each
428   # line-number line with the line containing $LINENO, and appends
429   # trailing '-' during substitution so that $LINENO is not a special
430   # case at line end.
431   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432   # scripts with optimization help from Paolo Bonzini.  Blame Lee
433   # E. McMahon (1931-1989) for sed's syntax.  :-)
434   sed -n '
435     p
436     /[$]LINENO/=
437   ' <$as_myself |
438     sed '
439       s/[$]LINENO.*/&-/
440       t lineno
441       b
442       :lineno
443       N
444       :loop
445       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446       t loop
447       s/-\n.*//
448     ' >$as_me.lineno &&
449   chmod +x "$as_me.lineno" ||
450     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451    { (exit 1); exit 1; }; }
452
453   # Don't try to exec as it changes $[0], causing all sort of problems
454   # (the dirname of $[0] is not the place where we might find the
455   # original and so on.  Autoconf is especially sensitive to this).
456   . "./$as_me.lineno"
457   # Exit status is that of the last command.
458   exit
459 }
460
461
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463   as_dirname=dirname
464 else
465   as_dirname=false
466 fi
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in
470 -n*)
471   case `echo 'x\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   *)   ECHO_C='\c';;
474   esac;;
475 *)
476   ECHO_N='-n';;
477 esac
478
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480    test "X`expr 00001 : '.*\(...\)'`" = X001; then
481   as_expr=expr
482 else
483   as_expr=false
484 fi
485
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488   rm -f conf$$.dir/conf$$.file
489 else
490   rm -f conf$$.dir
491   mkdir conf$$.dir
492 fi
493 echo >conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
495   as_ln_s='ln -s'
496   # ... but there are two gotchas:
497   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499   # In both cases, we have to default to `cp -p'.
500   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501     as_ln_s='cp -p'
502 elif ln conf$$.file conf$$ 2>/dev/null; then
503   as_ln_s=ln
504 else
505   as_ln_s='cp -p'
506 fi
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
509
510 if mkdir -p . 2>/dev/null; then
511   as_mkdir_p=:
512 else
513   test -d ./-p && rmdir ./-p
514   as_mkdir_p=false
515 fi
516
517 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
520 #! /bin/sh
521 exit 0
522 _ASEOF
523 chmod +x conf$$.file
524 if test -x conf$$.file >/dev/null 2>&1; then
525   as_executable_p="test -x"
526 else
527   as_executable_p=:
528 fi
529 rm -f conf$$.file
530
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537
538
539 exec 7<&0 </dev/null 6>&1
540
541 # Name of the host.
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
546 #
547 # Initializations.
548 #
549 ac_default_prefix=/usr/local
550 ac_clean_files=
551 ac_config_libobj_dir=.
552 LIBOBJS=
553 cross_compiling=no
554 subdirs=
555 MFLAGS=
556 MAKEFLAGS=
557 SHELL=${CONFIG_SHELL-/bin/sh}
558
559 # Identity of this package.
560 PACKAGE_NAME='[SAMPLE]'
561 PACKAGE_TARNAME='--sample--'
562 PACKAGE_VERSION='[x.xx]'
563 PACKAGE_STRING='[SAMPLE] [x.xx]'
564 PACKAGE_BUGREPORT='bugs@yourdomain'
565
566 ac_unique_file=""Makefile.common.in""
567 # Factoring default headers for most tests.
568 ac_includes_default="\
569 #include <stdio.h>
570 #if HAVE_SYS_TYPES_H
571 # include <sys/types.h>
572 #endif
573 #if HAVE_SYS_STAT_H
574 # include <sys/stat.h>
575 #endif
576 #if STDC_HEADERS
577 # include <stdlib.h>
578 # include <stddef.h>
579 #else
580 # if HAVE_STDLIB_H
581 #  include <stdlib.h>
582 # endif
583 #endif
584 #if HAVE_STRING_H
585 # if !STDC_HEADERS && HAVE_MEMORY_H
586 #  include <memory.h>
587 # endif
588 # include <string.h>
589 #endif
590 #if HAVE_STRINGS_H
591 # include <strings.h>
592 #endif
593 #if HAVE_INTTYPES_H
594 # include <inttypes.h>
595 #endif
596 #if HAVE_STDINT_H
597 # include <stdint.h>
598 #endif
599 #if HAVE_UNISTD_H
600 # include <unistd.h>
601 #endif"
602
603 ac_subst_vars='SHELL
604 PATH_SEPARATOR
605 PACKAGE_NAME
606 PACKAGE_TARNAME
607 PACKAGE_VERSION
608 PACKAGE_STRING
609 PACKAGE_BUGREPORT
610 exec_prefix
611 prefix
612 program_transform_name
613 bindir
614 sbindir
615 libexecdir
616 datarootdir
617 datadir
618 sysconfdir
619 sharedstatedir
620 localstatedir
621 includedir
622 oldincludedir
623 docdir
624 infodir
625 htmldir
626 dvidir
627 pdfdir
628 psdir
629 libdir
630 localedir
631 mandir
632 DEFS
633 ECHO_C
634 ECHO_N
635 ECHO_T
636 LIBS
637 build_alias
638 host_alias
639 target_alias
640 LLVM_SRC
641 LLVM_OBJ
642 LLVM_VERSION
643 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 ENABLE_POLLY
655 LLVM_HAS_POLLY
656 subdirs
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 ENDIAN
678 GREP
679 EGREP
680 LLVM_CROSS_COMPILING
681 BUILD_CC
682 BUILD_EXEEXT
683 BUILD_CXX
684 CVSBUILD
685 ENABLE_LIBCPP
686 ENABLE_OPTIMIZED
687 ENABLE_PROFILING
688 DISABLE_ASSERTIONS
689 ENABLE_EXPENSIVE_CHECKS
690 EXPENSIVE_CHECKS
691 DEBUG_RUNTIME
692 DEBUG_SYMBOLS
693 JIT
694 TARGET_HAS_JIT
695 ENABLE_DOCS
696 ENABLE_DOXYGEN
697 ENABLE_THREADS
698 ENABLE_PTHREADS
699 ENABLE_PIC
700 ENABLE_SHARED
701 ENABLE_EMBED_STDCXX
702 ENABLE_TIMESTAMPS
703 TARGETS_TO_BUILD
704 LLVM_ENUM_TARGETS
705 LLVM_ENUM_ASM_PRINTERS
706 LLVM_ENUM_ASM_PARSERS
707 LLVM_ENUM_DISASSEMBLERS
708 OPTIMIZE_OPTION
709 EXTRA_OPTIONS
710 EXTRA_LD_OPTIONS
711 BINUTILS_INCDIR
712 NM
713 ifGNUmake
714 LN_S
715 CMP
716 CP
717 DATE
718 FIND
719 MKDIR
720 MV
721 RANLIB
722 AR
723 RM
724 SED
725 TAR
726 BINPWD
727 GRAPHVIZ
728 DOT
729 FDP
730 NEATO
731 TWOPI
732 CIRCO
733 GV
734 DOTTY
735 XDOT_PY
736 INSTALL_PROGRAM
737 INSTALL_SCRIPT
738 INSTALL_DATA
739 BZIP2
740 CAT
741 DOXYGEN
742 GROFF
743 GZIPBIN
744 POD2HTML
745 POD2MAN
746 PDFROFF
747 RUNTEST
748 TCLSH
749 ZIP
750 OCAMLC
751 OCAMLOPT
752 OCAMLDEP
753 OCAMLDOC
754 GAS
755 HAVE_LINK_VERSION_SCRIPT
756 INSTALL_LTDL_TRUE
757 INSTALL_LTDL_FALSE
758 CONVENIENCE_LTDL_TRUE
759 CONVENIENCE_LTDL_FALSE
760 LIBADD_DL
761 NO_VARIADIC_MACROS
762 NO_MISSING_FIELD_INITIALIZERS
763 COVERED_SWITCH_DEFAULT
764 USE_UDIS86
765 USE_OPROFILE
766 HAVE_PTHREAD
767 HUGE_VAL_SANITY
768 MMAP_FILE
769 SHLIBEXT
770 SHLIBPATH_VAR
771 LLVM_PREFIX
772 LLVM_BINDIR
773 LLVM_LIBDIR
774 LLVM_DATADIR
775 LLVM_DOCSDIR
776 LLVM_ETCDIR
777 LLVM_INCLUDEDIR
778 LLVM_INFODIR
779 LLVM_MANDIR
780 LLVM_CONFIGTIME
781 BINDINGS_TO_BUILD
782 ALL_BINDINGS
783 OCAML_LIBDIR
784 ENABLE_VISIBILITY_INLINES_HIDDEN
785 RPATH
786 RDYNAMIC
787 LIBOBJS
788 LTLIBOBJS'
789 ac_subst_files=''
790       ac_precious_vars='build_alias
791 host_alias
792 target_alias
793 CC
794 CFLAGS
795 LDFLAGS
796 CPPFLAGS
797 CXX
798 CXXFLAGS
799 CCC
800 CPP'
801 ac_subdirs_all='tools/polly'
802
803 # Initialize some variables set by options.
804 ac_init_help=
805 ac_init_version=false
806 # The variables have the same names as the options, with
807 # dashes changed to underlines.
808 cache_file=/dev/null
809 exec_prefix=NONE
810 no_create=
811 no_recursion=
812 prefix=NONE
813 program_prefix=NONE
814 program_suffix=NONE
815 program_transform_name=s,x,x,
816 silent=
817 site=
818 srcdir=
819 verbose=
820 x_includes=NONE
821 x_libraries=NONE
822
823 # Installation directory options.
824 # These are left unexpanded so users can "make install exec_prefix=/foo"
825 # and all the variables that are supposed to be based on exec_prefix
826 # by default will actually change.
827 # Use braces instead of parens because sh, perl, etc. also accept them.
828 # (The list follows the same order as the GNU Coding Standards.)
829 bindir='${exec_prefix}/bin'
830 sbindir='${exec_prefix}/sbin'
831 libexecdir='${exec_prefix}/libexec'
832 datarootdir='${prefix}/share'
833 datadir='${datarootdir}'
834 sysconfdir='${prefix}/etc'
835 sharedstatedir='${prefix}/com'
836 localstatedir='${prefix}/var'
837 includedir='${prefix}/include'
838 oldincludedir='/usr/include'
839 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
840 infodir='${datarootdir}/info'
841 htmldir='${docdir}'
842 dvidir='${docdir}'
843 pdfdir='${docdir}'
844 psdir='${docdir}'
845 libdir='${exec_prefix}/lib'
846 localedir='${datarootdir}/locale'
847 mandir='${datarootdir}/man'
848
849 ac_prev=
850 ac_dashdash=
851 for ac_option
852 do
853   # If the previous option needs an argument, assign it.
854   if test -n "$ac_prev"; then
855     eval $ac_prev=\$ac_option
856     ac_prev=
857     continue
858   fi
859
860   case $ac_option in
861   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
862   *)    ac_optarg=yes ;;
863   esac
864
865   # Accept the important Cygnus configure options, so we can diagnose typos.
866
867   case $ac_dashdash$ac_option in
868   --)
869     ac_dashdash=yes ;;
870
871   -bindir | --bindir | --bindi | --bind | --bin | --bi)
872     ac_prev=bindir ;;
873   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874     bindir=$ac_optarg ;;
875
876   -build | --build | --buil | --bui | --bu)
877     ac_prev=build_alias ;;
878   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879     build_alias=$ac_optarg ;;
880
881   -cache-file | --cache-file | --cache-fil | --cache-fi \
882   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883     ac_prev=cache_file ;;
884   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886     cache_file=$ac_optarg ;;
887
888   --config-cache | -C)
889     cache_file=config.cache ;;
890
891   -datadir | --datadir | --datadi | --datad)
892     ac_prev=datadir ;;
893   -datadir=* | --datadir=* | --datadi=* | --datad=*)
894     datadir=$ac_optarg ;;
895
896   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897   | --dataroo | --dataro | --datar)
898     ac_prev=datarootdir ;;
899   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901     datarootdir=$ac_optarg ;;
902
903   -disable-* | --disable-*)
904     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905     # Reject names that are not valid shell variable names.
906     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
907       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
908    { (exit 1); exit 1; }; }
909     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
910     eval enable_$ac_feature=no ;;
911
912   -docdir | --docdir | --docdi | --doc | --do)
913     ac_prev=docdir ;;
914   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915     docdir=$ac_optarg ;;
916
917   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918     ac_prev=dvidir ;;
919   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920     dvidir=$ac_optarg ;;
921
922   -enable-* | --enable-*)
923     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924     # Reject names that are not valid shell variable names.
925     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
926       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
927    { (exit 1); exit 1; }; }
928     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
929     eval enable_$ac_feature=\$ac_optarg ;;
930
931   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933   | --exec | --exe | --ex)
934     ac_prev=exec_prefix ;;
935   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937   | --exec=* | --exe=* | --ex=*)
938     exec_prefix=$ac_optarg ;;
939
940   -gas | --gas | --ga | --g)
941     # Obsolete; use --with-gas.
942     with_gas=yes ;;
943
944   -help | --help | --hel | --he | -h)
945     ac_init_help=long ;;
946   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947     ac_init_help=recursive ;;
948   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949     ac_init_help=short ;;
950
951   -host | --host | --hos | --ho)
952     ac_prev=host_alias ;;
953   -host=* | --host=* | --hos=* | --ho=*)
954     host_alias=$ac_optarg ;;
955
956   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957     ac_prev=htmldir ;;
958   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959   | --ht=*)
960     htmldir=$ac_optarg ;;
961
962   -includedir | --includedir | --includedi | --included | --include \
963   | --includ | --inclu | --incl | --inc)
964     ac_prev=includedir ;;
965   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966   | --includ=* | --inclu=* | --incl=* | --inc=*)
967     includedir=$ac_optarg ;;
968
969   -infodir | --infodir | --infodi | --infod | --info | --inf)
970     ac_prev=infodir ;;
971   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972     infodir=$ac_optarg ;;
973
974   -libdir | --libdir | --libdi | --libd)
975     ac_prev=libdir ;;
976   -libdir=* | --libdir=* | --libdi=* | --libd=*)
977     libdir=$ac_optarg ;;
978
979   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980   | --libexe | --libex | --libe)
981     ac_prev=libexecdir ;;
982   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983   | --libexe=* | --libex=* | --libe=*)
984     libexecdir=$ac_optarg ;;
985
986   -localedir | --localedir | --localedi | --localed | --locale)
987     ac_prev=localedir ;;
988   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989     localedir=$ac_optarg ;;
990
991   -localstatedir | --localstatedir | --localstatedi | --localstated \
992   | --localstate | --localstat | --localsta | --localst | --locals)
993     ac_prev=localstatedir ;;
994   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
995   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
996     localstatedir=$ac_optarg ;;
997
998   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999     ac_prev=mandir ;;
1000   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001     mandir=$ac_optarg ;;
1002
1003   -nfp | --nfp | --nf)
1004     # Obsolete; use --without-fp.
1005     with_fp=no ;;
1006
1007   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008   | --no-cr | --no-c | -n)
1009     no_create=yes ;;
1010
1011   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013     no_recursion=yes ;;
1014
1015   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017   | --oldin | --oldi | --old | --ol | --o)
1018     ac_prev=oldincludedir ;;
1019   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022     oldincludedir=$ac_optarg ;;
1023
1024   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025     ac_prev=prefix ;;
1026   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027     prefix=$ac_optarg ;;
1028
1029   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030   | --program-pre | --program-pr | --program-p)
1031     ac_prev=program_prefix ;;
1032   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034     program_prefix=$ac_optarg ;;
1035
1036   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037   | --program-suf | --program-su | --program-s)
1038     ac_prev=program_suffix ;;
1039   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041     program_suffix=$ac_optarg ;;
1042
1043   -program-transform-name | --program-transform-name \
1044   | --program-transform-nam | --program-transform-na \
1045   | --program-transform-n | --program-transform- \
1046   | --program-transform | --program-transfor \
1047   | --program-transfo | --program-transf \
1048   | --program-trans | --program-tran \
1049   | --progr-tra | --program-tr | --program-t)
1050     ac_prev=program_transform_name ;;
1051   -program-transform-name=* | --program-transform-name=* \
1052   | --program-transform-nam=* | --program-transform-na=* \
1053   | --program-transform-n=* | --program-transform-=* \
1054   | --program-transform=* | --program-transfor=* \
1055   | --program-transfo=* | --program-transf=* \
1056   | --program-trans=* | --program-tran=* \
1057   | --progr-tra=* | --program-tr=* | --program-t=*)
1058     program_transform_name=$ac_optarg ;;
1059
1060   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061     ac_prev=pdfdir ;;
1062   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063     pdfdir=$ac_optarg ;;
1064
1065   -psdir | --psdir | --psdi | --psd | --ps)
1066     ac_prev=psdir ;;
1067   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068     psdir=$ac_optarg ;;
1069
1070   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071   | -silent | --silent | --silen | --sile | --sil)
1072     silent=yes ;;
1073
1074   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075     ac_prev=sbindir ;;
1076   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077   | --sbi=* | --sb=*)
1078     sbindir=$ac_optarg ;;
1079
1080   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082   | --sharedst | --shareds | --shared | --share | --shar \
1083   | --sha | --sh)
1084     ac_prev=sharedstatedir ;;
1085   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088   | --sha=* | --sh=*)
1089     sharedstatedir=$ac_optarg ;;
1090
1091   -site | --site | --sit)
1092     ac_prev=site ;;
1093   -site=* | --site=* | --sit=*)
1094     site=$ac_optarg ;;
1095
1096   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097     ac_prev=srcdir ;;
1098   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099     srcdir=$ac_optarg ;;
1100
1101   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102   | --syscon | --sysco | --sysc | --sys | --sy)
1103     ac_prev=sysconfdir ;;
1104   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106     sysconfdir=$ac_optarg ;;
1107
1108   -target | --target | --targe | --targ | --tar | --ta | --t)
1109     ac_prev=target_alias ;;
1110   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111     target_alias=$ac_optarg ;;
1112
1113   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114     verbose=yes ;;
1115
1116   -version | --version | --versio | --versi | --vers | -V)
1117     ac_init_version=: ;;
1118
1119   -with-* | --with-*)
1120     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121     # Reject names that are not valid shell variable names.
1122     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1123       { echo "$as_me: error: invalid package name: $ac_package" >&2
1124    { (exit 1); exit 1; }; }
1125     ac_package=`echo $ac_package| sed 's/-/_/g'`
1126     eval with_$ac_package=\$ac_optarg ;;
1127
1128   -without-* | --without-*)
1129     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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=no ;;
1136
1137   --x)
1138     # Obsolete; use --with-x.
1139     with_x=yes ;;
1140
1141   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1142   | --x-incl | --x-inc | --x-in | --x-i)
1143     ac_prev=x_includes ;;
1144   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1145   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1146     x_includes=$ac_optarg ;;
1147
1148   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1149   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1150     ac_prev=x_libraries ;;
1151   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1152   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1153     x_libraries=$ac_optarg ;;
1154
1155   -*) { echo "$as_me: error: unrecognized option: $ac_option
1156 Try \`$0 --help' for more information." >&2
1157    { (exit 1); exit 1; }; }
1158     ;;
1159
1160   *=*)
1161     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1162     # Reject names that are not valid shell variable names.
1163     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1164       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1165    { (exit 1); exit 1; }; }
1166     eval $ac_envvar=\$ac_optarg
1167     export $ac_envvar ;;
1168
1169   *)
1170     # FIXME: should be removed in autoconf 3.0.
1171     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1174     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1175     ;;
1176
1177   esac
1178 done
1179
1180 if test -n "$ac_prev"; then
1181   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1182   { echo "$as_me: error: missing argument to $ac_option" >&2
1183    { (exit 1); exit 1; }; }
1184 fi
1185
1186 # Be sure to have absolute directory names.
1187 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1188                 datadir sysconfdir sharedstatedir localstatedir includedir \
1189                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1190                 libdir localedir mandir
1191 do
1192   eval ac_val=\$$ac_var
1193   case $ac_val in
1194     [\\/$]* | ?:[\\/]* )  continue;;
1195     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1196   esac
1197   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1198    { (exit 1); exit 1; }; }
1199 done
1200
1201 # There might be people who depend on the old broken behavior: `$host'
1202 # used to hold the argument of --host etc.
1203 # FIXME: To remove some day.
1204 build=$build_alias
1205 host=$host_alias
1206 target=$target_alias
1207
1208 # FIXME: To remove some day.
1209 if test "x$host_alias" != x; then
1210   if test "x$build_alias" = x; then
1211     cross_compiling=maybe
1212     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1213     If a cross compiler is detected then cross compile mode will be used." >&2
1214   elif test "x$build_alias" != "x$host_alias"; then
1215     cross_compiling=yes
1216   fi
1217 fi
1218
1219 ac_tool_prefix=
1220 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1221
1222 test "$silent" = yes && exec 6>/dev/null
1223
1224
1225 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1226 ac_ls_di=`ls -di .` &&
1227 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1228   { echo "$as_me: error: Working directory cannot be determined" >&2
1229    { (exit 1); exit 1; }; }
1230 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1231   { echo "$as_me: error: pwd does not report name of working directory" >&2
1232    { (exit 1); exit 1; }; }
1233
1234
1235 # Find the source files, if location was not specified.
1236 if test -z "$srcdir"; then
1237   ac_srcdir_defaulted=yes
1238   # Try the directory containing this script, then the parent directory.
1239   ac_confdir=`$as_dirname -- "$0" ||
1240 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1241          X"$0" : 'X\(//\)[^/]' \| \
1242          X"$0" : 'X\(//\)$' \| \
1243          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1244 echo X"$0" |
1245     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1246             s//\1/
1247             q
1248           }
1249           /^X\(\/\/\)[^/].*/{
1250             s//\1/
1251             q
1252           }
1253           /^X\(\/\/\)$/{
1254             s//\1/
1255             q
1256           }
1257           /^X\(\/\).*/{
1258             s//\1/
1259             q
1260           }
1261           s/.*/./; q'`
1262   srcdir=$ac_confdir
1263   if test ! -r "$srcdir/$ac_unique_file"; then
1264     srcdir=..
1265   fi
1266 else
1267   ac_srcdir_defaulted=no
1268 fi
1269 if test ! -r "$srcdir/$ac_unique_file"; then
1270   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1271   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1272    { (exit 1); exit 1; }; }
1273 fi
1274 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1275 ac_abs_confdir=`(
1276         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1277    { (exit 1); exit 1; }; }
1278         pwd)`
1279 # When building in place, set srcdir=.
1280 if test "$ac_abs_confdir" = "$ac_pwd"; then
1281   srcdir=.
1282 fi
1283 # Remove unnecessary trailing slashes from srcdir.
1284 # Double slashes in file names in object file debugging info
1285 # mess up M-x gdb in Emacs.
1286 case $srcdir in
1287 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1288 esac
1289 for ac_var in $ac_precious_vars; do
1290   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1291   eval ac_env_${ac_var}_value=\$${ac_var}
1292   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1293   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1294 done
1295
1296 #
1297 # Report the --help message.
1298 #
1299 if test "$ac_init_help" = "long"; then
1300   # Omit some internal or obsolete options to make the list less imposing.
1301   # This message is too long to be a string in the A/UX 3.1 sh.
1302   cat <<_ACEOF
1303 \`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1304
1305 Usage: $0 [OPTION]... [VAR=VALUE]...
1306
1307 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1308 VAR=VALUE.  See below for descriptions of some of the useful variables.
1309
1310 Defaults for the options are specified in brackets.
1311
1312 Configuration:
1313   -h, --help              display this help and exit
1314       --help=short        display options specific to this package
1315       --help=recursive    display the short help of all the included packages
1316   -V, --version           display version information and exit
1317   -q, --quiet, --silent   do not print \`checking...' messages
1318       --cache-file=FILE   cache test results in FILE [disabled]
1319   -C, --config-cache      alias for \`--cache-file=config.cache'
1320   -n, --no-create         do not create output files
1321       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1322
1323 Installation directories:
1324   --prefix=PREFIX         install architecture-independent files in PREFIX
1325                           [$ac_default_prefix]
1326   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1327                           [PREFIX]
1328
1329 By default, \`make install' will install all the files in
1330 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1331 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1332 for instance \`--prefix=\$HOME'.
1333
1334 For better control, use the options below.
1335
1336 Fine tuning of the installation directories:
1337   --bindir=DIR           user executables [EPREFIX/bin]
1338   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1339   --libexecdir=DIR       program executables [EPREFIX/libexec]
1340   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1341   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1342   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1343   --libdir=DIR           object code libraries [EPREFIX/lib]
1344   --includedir=DIR       C header files [PREFIX/include]
1345   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1346   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1347   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1348   --infodir=DIR          info documentation [DATAROOTDIR/info]
1349   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1350   --mandir=DIR           man documentation [DATAROOTDIR/man]
1351   --docdir=DIR           documentation root [DATAROOTDIR/doc/--sample--]
1352   --htmldir=DIR          html documentation [DOCDIR]
1353   --dvidir=DIR           dvi documentation [DOCDIR]
1354   --pdfdir=DIR           pdf documentation [DOCDIR]
1355   --psdir=DIR            ps documentation [DOCDIR]
1356 _ACEOF
1357
1358   cat <<\_ACEOF
1359
1360 System types:
1361   --build=BUILD     configure for building on BUILD [guessed]
1362   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1363   --target=TARGET   configure for building compilers for TARGET [HOST]
1364 _ACEOF
1365 fi
1366
1367 if test -n "$ac_init_help"; then
1368   case $ac_init_help in
1369      short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1370    esac
1371   cat <<\_ACEOF
1372
1373 Optional Features:
1374   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1375   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1376   --enable-polly          Use polly if available (default is YES)
1377   --enable-libcpp         Use libc++ if available (default is NO)
1378   --enable-optimized      Compile with optimizations enabled (default is NO)
1379   --enable-profiling      Compile with profiling enabled (default is NO)
1380   --enable-assertions     Compile with assertion checks enabled (default is
1381                           YES)
1382   --enable-expensive-checks
1383                           Compile with expensive debug checks enabled (default
1384                           is NO)
1385   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1386                           NO)
1387   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1388                           optimization is on and YES if it's off)
1389   --enable-jit            Enable Just In Time Compiling (default is YES)
1390   --enable-docs           Build documents (default is YES)
1391   --enable-doxygen        Build doxygen documentation (default is NO)
1392   --enable-threads        Use threads if available (default is YES)
1393   --enable-pthreads       Use pthreads if available (default is YES)
1394   --enable-pic            Build LLVM with Position Independent Code (default
1395                           is YES)
1396   --enable-shared         Build a shared library and link tools against it
1397                           (default is NO)
1398   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1399                           Win32 DLL (default is YES)
1400   --enable-timestamps     Enable embedding timestamp information in build
1401                           (default is YES)
1402   --enable-targets        Build specific host targets: all or
1403                           target1,target2,... Valid targets are: host, x86,
1404                           x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1405                           xcore, msp430, nvptx, cbe, r600, and cpp
1406                           (default=all)
1407   --enable-bindings       Build specific language bindings:
1408                           all,auto,none,{binding-name} (default=auto)
1409   --enable-libffi         Check for the presence of libffi (default is NO)
1410   --enable-ltdl-install   install libltdl
1411
1412 Optional Packages:
1413   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1414   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1415   --with-llvmsrc          Location of LLVM Source Code
1416   --with-llvmobj          Location of LLVM Object Code
1417   --with-optimize-option  Select the compiler options to use for optimized
1418                           builds
1419   --with-extra-options    Specify additional options to compile LLVM with
1420   --with-extra-ld-options Specify additional options to link LLVM with
1421   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1422                           is stdlib)
1423   --with-clang-resource-dir
1424                           Relative directory from the Clang binary for
1425                           resource files
1426   --with-c-include-dirs   Colon separated list of directories clang will
1427                           search for headers
1428   --with-gcc-toolchain    Directory where gcc is installed.
1429   --with-binutils-include Specify path to binutils/include/ containing
1430                           plugin-api.h file for gold plugin.
1431   --with-bug-report-url   Specify the URL where bug reports should be
1432                           submitted (default=http://llvm.org/bugs/)
1433   --with-tclinclude       directory where tcl headers are
1434   --with-udis86=<path>    Use udis86 external x86 disassembler library
1435   --with-oprofile=<prefix>
1436                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1437
1438 Some influential environment variables:
1439   CC          C compiler command
1440   CFLAGS      C compiler flags
1441   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1442               nonstandard directory <lib dir>
1443   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1444               you have headers in a nonstandard directory <include dir>
1445   CXX         C++ compiler command
1446   CXXFLAGS    C++ compiler flags
1447   CPP         C preprocessor
1448
1449 Use these variables to override the choices made by `configure' or to help
1450 it to find libraries and programs with nonstandard names/locations.
1451
1452 Report bugs to <bugs@yourdomain>.
1453 _ACEOF
1454 ac_status=$?
1455 fi
1456
1457 if test "$ac_init_help" = "recursive"; then
1458   # If there are subdirs, report their specific --help.
1459   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1460     test -d "$ac_dir" || continue
1461     ac_builddir=.
1462
1463 case "$ac_dir" in
1464 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465 *)
1466   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1467   # A ".." for each directory in $ac_dir_suffix.
1468   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1469   case $ac_top_builddir_sub in
1470   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1472   esac ;;
1473 esac
1474 ac_abs_top_builddir=$ac_pwd
1475 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1476 # for backward compatibility:
1477 ac_top_builddir=$ac_top_build_prefix
1478
1479 case $srcdir in
1480   .)  # We are building in place.
1481     ac_srcdir=.
1482     ac_top_srcdir=$ac_top_builddir_sub
1483     ac_abs_top_srcdir=$ac_pwd ;;
1484   [\\/]* | ?:[\\/]* )  # Absolute name.
1485     ac_srcdir=$srcdir$ac_dir_suffix;
1486     ac_top_srcdir=$srcdir
1487     ac_abs_top_srcdir=$srcdir ;;
1488   *) # Relative name.
1489     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1490     ac_top_srcdir=$ac_top_build_prefix$srcdir
1491     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1492 esac
1493 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1494
1495     cd "$ac_dir" || { ac_status=$?; continue; }
1496     # Check for guested configure.
1497     if test -f "$ac_srcdir/configure.gnu"; then
1498       echo &&
1499       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1500     elif test -f "$ac_srcdir/configure"; then
1501       echo &&
1502       $SHELL "$ac_srcdir/configure" --help=recursive
1503     else
1504       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1505     fi || ac_status=$?
1506     cd "$ac_pwd" || { ac_status=$?; break; }
1507   done
1508 fi
1509
1510 test -n "$ac_init_help" && exit $ac_status
1511 if $ac_init_version; then
1512   cat <<\_ACEOF
1513 [SAMPLE] configure [x.xx]
1514 generated by GNU Autoconf 2.60
1515
1516 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1517 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1518 This configure script is free software; the Free Software Foundation
1519 gives unlimited permission to copy, distribute and modify it.
1520 _ACEOF
1521   exit
1522 fi
1523 cat >config.log <<_ACEOF
1524 This file contains any messages produced by compilers while
1525 running configure, to aid debugging if configure makes a mistake.
1526
1527 It was created by [SAMPLE] $as_me [x.xx], which was
1528 generated by GNU Autoconf 2.60.  Invocation command line was
1529
1530   $ $0 $@
1531
1532 _ACEOF
1533 exec 5>>config.log
1534 {
1535 cat <<_ASUNAME
1536 ## --------- ##
1537 ## Platform. ##
1538 ## --------- ##
1539
1540 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1541 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1542 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1543 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1544 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1545
1546 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1547 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1548
1549 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1550 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1551 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1552 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1553 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1554 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1555 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1556
1557 _ASUNAME
1558
1559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1560 for as_dir in $PATH
1561 do
1562   IFS=$as_save_IFS
1563   test -z "$as_dir" && as_dir=.
1564   echo "PATH: $as_dir"
1565 done
1566 IFS=$as_save_IFS
1567
1568 } >&5
1569
1570 cat >&5 <<_ACEOF
1571
1572
1573 ## ----------- ##
1574 ## Core tests. ##
1575 ## ----------- ##
1576
1577 _ACEOF
1578
1579
1580 # Keep a trace of the command line.
1581 # Strip out --no-create and --no-recursion so they do not pile up.
1582 # Strip out --silent because we don't want to record it for future runs.
1583 # Also quote any args containing shell meta-characters.
1584 # Make two passes to allow for proper duplicate-argument suppression.
1585 ac_configure_args=
1586 ac_configure_args0=
1587 ac_configure_args1=
1588 ac_must_keep_next=false
1589 for ac_pass in 1 2
1590 do
1591   for ac_arg
1592   do
1593     case $ac_arg in
1594     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1595     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1596     | -silent | --silent | --silen | --sile | --sil)
1597       continue ;;
1598     *\'*)
1599       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1600     esac
1601     case $ac_pass in
1602     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1603     2)
1604       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1605       if test $ac_must_keep_next = true; then
1606         ac_must_keep_next=false # Got value, back to normal.
1607       else
1608         case $ac_arg in
1609           *=* | --config-cache | -C | -disable-* | --disable-* \
1610           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1611           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1612           | -with-* | --with-* | -without-* | --without-* | --x)
1613             case "$ac_configure_args0 " in
1614               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1615             esac
1616             ;;
1617           -* ) ac_must_keep_next=true ;;
1618         esac
1619       fi
1620       ac_configure_args="$ac_configure_args '$ac_arg'"
1621       ;;
1622     esac
1623   done
1624 done
1625 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1626 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1627
1628 # When interrupted or exit'd, cleanup temporary files, and complete
1629 # config.log.  We remove comments because anyway the quotes in there
1630 # would cause problems or look ugly.
1631 # WARNING: Use '\'' to represent an apostrophe within the trap.
1632 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1633 trap 'exit_status=$?
1634   # Save into config.log some information that might help in debugging.
1635   {
1636     echo
1637
1638     cat <<\_ASBOX
1639 ## ---------------- ##
1640 ## Cache variables. ##
1641 ## ---------------- ##
1642 _ASBOX
1643     echo
1644     # The following way of writing the cache mishandles newlines in values,
1645 (
1646   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1647     eval ac_val=\$$ac_var
1648     case $ac_val in #(
1649     *${as_nl}*)
1650       case $ac_var in #(
1651       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1652 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1653       esac
1654       case $ac_var in #(
1655       _ | IFS | as_nl) ;; #(
1656       *) $as_unset $ac_var ;;
1657       esac ;;
1658     esac
1659   done
1660   (set) 2>&1 |
1661     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1662     *${as_nl}ac_space=\ *)
1663       sed -n \
1664         "s/'\''/'\''\\\\'\'''\''/g;
1665           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1666       ;; #(
1667     *)
1668       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1669       ;;
1670     esac |
1671     sort
1672 )
1673     echo
1674
1675     cat <<\_ASBOX
1676 ## ----------------- ##
1677 ## Output variables. ##
1678 ## ----------------- ##
1679 _ASBOX
1680     echo
1681     for ac_var in $ac_subst_vars
1682     do
1683       eval ac_val=\$$ac_var
1684       case $ac_val in
1685       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1686       esac
1687       echo "$ac_var='\''$ac_val'\''"
1688     done | sort
1689     echo
1690
1691     if test -n "$ac_subst_files"; then
1692       cat <<\_ASBOX
1693 ## ------------------- ##
1694 ## File substitutions. ##
1695 ## ------------------- ##
1696 _ASBOX
1697       echo
1698       for ac_var in $ac_subst_files
1699       do
1700         eval ac_val=\$$ac_var
1701         case $ac_val in
1702         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1703         esac
1704         echo "$ac_var='\''$ac_val'\''"
1705       done | sort
1706       echo
1707     fi
1708
1709     if test -s confdefs.h; then
1710       cat <<\_ASBOX
1711 ## ----------- ##
1712 ## confdefs.h. ##
1713 ## ----------- ##
1714 _ASBOX
1715       echo
1716       cat confdefs.h
1717       echo
1718     fi
1719     test "$ac_signal" != 0 &&
1720       echo "$as_me: caught signal $ac_signal"
1721     echo "$as_me: exit $exit_status"
1722   } >&5
1723   rm -f core *.core core.conftest.* &&
1724     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1725     exit $exit_status
1726 ' 0
1727 for ac_signal in 1 2 13 15; do
1728   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1729 done
1730 ac_signal=0
1731
1732 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1733 rm -f -r conftest* confdefs.h
1734
1735 # Predefined preprocessor variables.
1736
1737 cat >>confdefs.h <<_ACEOF
1738 #define PACKAGE_NAME "$PACKAGE_NAME"
1739 _ACEOF
1740
1741
1742 cat >>confdefs.h <<_ACEOF
1743 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1744 _ACEOF
1745
1746
1747 cat >>confdefs.h <<_ACEOF
1748 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1749 _ACEOF
1750
1751
1752 cat >>confdefs.h <<_ACEOF
1753 #define PACKAGE_STRING "$PACKAGE_STRING"
1754 _ACEOF
1755
1756
1757 cat >>confdefs.h <<_ACEOF
1758 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1759 _ACEOF
1760
1761
1762 # Let the site file select an alternate cache file if it wants to.
1763 # Prefer explicitly selected file to automatically selected ones.
1764 if test -n "$CONFIG_SITE"; then
1765   set x "$CONFIG_SITE"
1766 elif test "x$prefix" != xNONE; then
1767   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1768 else
1769   set x "$ac_default_prefix/share/config.site" \
1770         "$ac_default_prefix/etc/config.site"
1771 fi
1772 shift
1773 for ac_site_file
1774 do
1775   if test -r "$ac_site_file"; then
1776     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1777 echo "$as_me: loading site script $ac_site_file" >&6;}
1778     sed 's/^/| /' "$ac_site_file" >&5
1779     . "$ac_site_file"
1780   fi
1781 done
1782
1783 if test -r "$cache_file"; then
1784   # Some versions of bash will fail to source /dev/null (special
1785   # files actually), so we avoid doing that.
1786   if test -f "$cache_file"; then
1787     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1788 echo "$as_me: loading cache $cache_file" >&6;}
1789     case $cache_file in
1790       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1791       *)                      . "./$cache_file";;
1792     esac
1793   fi
1794 else
1795   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1796 echo "$as_me: creating cache $cache_file" >&6;}
1797   >$cache_file
1798 fi
1799
1800 # Check that the precious variables saved in the cache have kept the same
1801 # value.
1802 ac_cache_corrupted=false
1803 for ac_var in $ac_precious_vars; do
1804   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1805   eval ac_new_set=\$ac_env_${ac_var}_set
1806   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1807   eval ac_new_val=\$ac_env_${ac_var}_value
1808   case $ac_old_set,$ac_new_set in
1809     set,)
1810       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1811 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1812       ac_cache_corrupted=: ;;
1813     ,set)
1814       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1815 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1816       ac_cache_corrupted=: ;;
1817     ,);;
1818     *)
1819       if test "x$ac_old_val" != "x$ac_new_val"; then
1820         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1821 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1822         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1823 echo "$as_me:   former value:  $ac_old_val" >&2;}
1824         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1825 echo "$as_me:   current value: $ac_new_val" >&2;}
1826         ac_cache_corrupted=:
1827       fi;;
1828   esac
1829   # Pass precious variables to config.status.
1830   if test "$ac_new_set" = set; then
1831     case $ac_new_val in
1832     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1833     *) ac_arg=$ac_var=$ac_new_val ;;
1834     esac
1835     case " $ac_configure_args " in
1836       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1837       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1838     esac
1839   fi
1840 done
1841 if $ac_cache_corrupted; then
1842   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1843 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1844   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1845 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1846    { (exit 1); exit 1; }; }
1847 fi
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873 ac_ext=c
1874 ac_cpp='$CPP $CPPFLAGS'
1875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1878
1879
1880
1881 LLVM_SRC_ROOT="../.."
1882 LLVM_OBJ_ROOT="../.."
1883
1884 LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1885 LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
1886
1887
1888 # Check whether --with-llvmsrc was given.
1889 if test "${with_llvmsrc+set}" = set; then
1890   withval=$with_llvmsrc; llvm_src="$withval"
1891 else
1892   llvm_src="$LLVM_ABS_SRC_ROOT"
1893 fi
1894
1895   LLVM_SRC=$llvm_src
1896
1897
1898 # Check whether --with-llvmobj was given.
1899 if test "${with_llvmobj+set}" = set; then
1900   withval=$with_llvmobj; llvm_obj="$withval"
1901 else
1902   llvm_obj="$LLVM_ABS_OBJ_ROOT"
1903 fi
1904
1905   LLVM_OBJ=$llvm_obj
1906
1907   ac_config_commands="$ac_config_commands setup"
1908
1909
1910
1911 { echo "$as_me:$LINENO: checking llvm-config" >&5
1912 echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1913 llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1914 if ! test -f "$llvm_config_path" ; then
1915    llvm_config_path="no"
1916 fi
1917 { echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1918 echo "${ECHO_T}$llvm_config_path" >&6; }
1919
1920 { echo "$as_me:$LINENO: checking LLVM package version" >&5
1921 echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1922 if test "$llvm_config_path" != no ; then
1923   llvm_package_version=`$llvm_config_path --version`
1924 else
1925   llvm_package_version="unknown";
1926 fi
1927 { echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1928 echo "${ECHO_T}$llvm_package_version" >&6; }
1929 LLVM_VERSION=$llvm_package_version
1930
1931
1932
1933
1934 ac_aux_dir=
1935 for ac_dir in autoconf "$srcdir"/autoconf; do
1936   if test -f "$ac_dir/install-sh"; then
1937     ac_aux_dir=$ac_dir
1938     ac_install_sh="$ac_aux_dir/install-sh -c"
1939     break
1940   elif test -f "$ac_dir/install.sh"; then
1941     ac_aux_dir=$ac_dir
1942     ac_install_sh="$ac_aux_dir/install.sh -c"
1943     break
1944   elif test -f "$ac_dir/shtool"; then
1945     ac_aux_dir=$ac_dir
1946     ac_install_sh="$ac_aux_dir/shtool install -c"
1947     break
1948   fi
1949 done
1950 if test -z "$ac_aux_dir"; then
1951   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1952 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1953    { (exit 1); exit 1; }; }
1954 fi
1955
1956 # These three variables are undocumented and unsupported,
1957 # and are intended to be withdrawn in a future Autoconf release.
1958 # They can cause serious problems if a builder's source tree is in a directory
1959 # whose full name contains unusual characters.
1960 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1961 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1962 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1963
1964
1965
1966
1967 ac_ext=c
1968 ac_cpp='$CPP $CPPFLAGS'
1969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1972 if test -n "$ac_tool_prefix"; then
1973   for ac_prog in clang llvm-gcc gcc
1974   do
1975     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1976 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1979 if test "${ac_cv_prog_CC+set}" = set; then
1980   echo $ECHO_N "(cached) $ECHO_C" >&6
1981 else
1982   if test -n "$CC"; then
1983   ac_cv_prog_CC="$CC" # Let the user override the test.
1984 else
1985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986 for as_dir in $PATH
1987 do
1988   IFS=$as_save_IFS
1989   test -z "$as_dir" && as_dir=.
1990   for ac_exec_ext in '' $ac_executable_extensions; do
1991   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1992     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1994     break 2
1995   fi
1996 done
1997 done
1998 IFS=$as_save_IFS
1999
2000 fi
2001 fi
2002 CC=$ac_cv_prog_CC
2003 if test -n "$CC"; then
2004   { echo "$as_me:$LINENO: result: $CC" >&5
2005 echo "${ECHO_T}$CC" >&6; }
2006 else
2007   { echo "$as_me:$LINENO: result: no" >&5
2008 echo "${ECHO_T}no" >&6; }
2009 fi
2010
2011
2012     test -n "$CC" && break
2013   done
2014 fi
2015 if test -z "$CC"; then
2016   ac_ct_CC=$CC
2017   for ac_prog in clang llvm-gcc gcc
2018 do
2019   # Extract the first word of "$ac_prog", so it can be a program name with args.
2020 set dummy $ac_prog; ac_word=$2
2021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2023 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2024   echo $ECHO_N "(cached) $ECHO_C" >&6
2025 else
2026   if test -n "$ac_ct_CC"; then
2027   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2028 else
2029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030 for as_dir in $PATH
2031 do
2032   IFS=$as_save_IFS
2033   test -z "$as_dir" && as_dir=.
2034   for ac_exec_ext in '' $ac_executable_extensions; do
2035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2036     ac_cv_prog_ac_ct_CC="$ac_prog"
2037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2038     break 2
2039   fi
2040 done
2041 done
2042 IFS=$as_save_IFS
2043
2044 fi
2045 fi
2046 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2047 if test -n "$ac_ct_CC"; then
2048   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2049 echo "${ECHO_T}$ac_ct_CC" >&6; }
2050 else
2051   { echo "$as_me:$LINENO: result: no" >&5
2052 echo "${ECHO_T}no" >&6; }
2053 fi
2054
2055
2056   test -n "$ac_ct_CC" && break
2057 done
2058
2059   if test "x$ac_ct_CC" = x; then
2060     CC=""
2061   else
2062     case $cross_compiling:$ac_tool_warned in
2063 yes:)
2064 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2065 whose name does not start with the host triplet.  If you think this
2066 configuration is useful to you, please write to autoconf@gnu.org." >&5
2067 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2068 whose name does not start with the host triplet.  If you think this
2069 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2070 ac_tool_warned=yes ;;
2071 esac
2072     CC=$ac_ct_CC
2073   fi
2074 fi
2075
2076
2077 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2078 See \`config.log' for more details." >&5
2079 echo "$as_me: error: no acceptable C compiler found in \$PATH
2080 See \`config.log' for more details." >&2;}
2081    { (exit 1); exit 1; }; }
2082
2083 # Provide some information about the compiler.
2084 echo "$as_me:$LINENO: checking for C compiler version" >&5
2085 ac_compiler=`set X $ac_compile; echo $2`
2086 { (ac_try="$ac_compiler --version >&5"
2087 case "(($ac_try" in
2088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2089   *) ac_try_echo=$ac_try;;
2090 esac
2091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2092   (eval "$ac_compiler --version >&5") 2>&5
2093   ac_status=$?
2094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095   (exit $ac_status); }
2096 { (ac_try="$ac_compiler -v >&5"
2097 case "(($ac_try" in
2098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2099   *) ac_try_echo=$ac_try;;
2100 esac
2101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2102   (eval "$ac_compiler -v >&5") 2>&5
2103   ac_status=$?
2104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105   (exit $ac_status); }
2106 { (ac_try="$ac_compiler -V >&5"
2107 case "(($ac_try" in
2108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2109   *) ac_try_echo=$ac_try;;
2110 esac
2111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2112   (eval "$ac_compiler -V >&5") 2>&5
2113   ac_status=$?
2114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115   (exit $ac_status); }
2116
2117 cat >conftest.$ac_ext <<_ACEOF
2118 /* confdefs.h.  */
2119 _ACEOF
2120 cat confdefs.h >>conftest.$ac_ext
2121 cat >>conftest.$ac_ext <<_ACEOF
2122 /* end confdefs.h.  */
2123
2124 int
2125 main ()
2126 {
2127
2128   ;
2129   return 0;
2130 }
2131 _ACEOF
2132 ac_clean_files_save=$ac_clean_files
2133 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2134 # Try to create an executable without -o first, disregard a.out.
2135 # It will help us diagnose broken compilers, and finding out an intuition
2136 # of exeext.
2137 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2138 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2139 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2140 #
2141 # List of possible output files, starting from the most likely.
2142 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2143 # only as a last resort.  b.out is created by i960 compilers.
2144 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2145 #
2146 # The IRIX 6 linker writes into existing files which may not be
2147 # executable, retaining their permissions.  Remove them first so a
2148 # subsequent execution test works.
2149 ac_rmfiles=
2150 for ac_file in $ac_files
2151 do
2152   case $ac_file in
2153     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2154     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2155   esac
2156 done
2157 rm -f $ac_rmfiles
2158
2159 if { (ac_try="$ac_link_default"
2160 case "(($ac_try" in
2161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2162   *) ac_try_echo=$ac_try;;
2163 esac
2164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2165   (eval "$ac_link_default") 2>&5
2166   ac_status=$?
2167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168   (exit $ac_status); }; then
2169   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2170 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2171 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2172 # so that the user can short-circuit this test for compilers unknown to
2173 # Autoconf.
2174 for ac_file in $ac_files
2175 do
2176   test -f "$ac_file" || continue
2177   case $ac_file in
2178     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2179         ;;
2180     [ab].out )
2181         # We found the default executable, but exeext='' is most
2182         # certainly right.
2183         break;;
2184     *.* )
2185         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2186         then :; else
2187            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2188         fi
2189         # We set ac_cv_exeext here because the later test for it is not
2190         # safe: cross compilers may not add the suffix if given an `-o'
2191         # argument, so we may need to know it at that point already.
2192         # Even if this section looks crufty: it has the advantage of
2193         # actually working.
2194         break;;
2195     * )
2196         break;;
2197   esac
2198 done
2199 test "$ac_cv_exeext" = no && ac_cv_exeext=
2200
2201 else
2202   echo "$as_me: failed program was:" >&5
2203 sed 's/^/| /' conftest.$ac_ext >&5
2204
2205 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2206 See \`config.log' for more details." >&5
2207 echo "$as_me: error: C compiler cannot create executables
2208 See \`config.log' for more details." >&2;}
2209    { (exit 77); exit 77; }; }
2210 fi
2211
2212 ac_exeext=$ac_cv_exeext
2213 { echo "$as_me:$LINENO: result: $ac_file" >&5
2214 echo "${ECHO_T}$ac_file" >&6; }
2215
2216 # Check that the compiler produces executables we can run.  If not, either
2217 # the compiler is broken, or we cross compile.
2218 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2219 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2220 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2221 # If not cross compiling, check that we can run a simple program.
2222 if test "$cross_compiling" != yes; then
2223   if { ac_try='./$ac_file'
2224   { (case "(($ac_try" in
2225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2226   *) ac_try_echo=$ac_try;;
2227 esac
2228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2229   (eval "$ac_try") 2>&5
2230   ac_status=$?
2231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232   (exit $ac_status); }; }; then
2233     cross_compiling=no
2234   else
2235     if test "$cross_compiling" = maybe; then
2236         cross_compiling=yes
2237     else
2238         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2239 If you meant to cross compile, use \`--host'.
2240 See \`config.log' for more details." >&5
2241 echo "$as_me: error: cannot run C compiled programs.
2242 If you meant to cross compile, use \`--host'.
2243 See \`config.log' for more details." >&2;}
2244    { (exit 1); exit 1; }; }
2245     fi
2246   fi
2247 fi
2248 { echo "$as_me:$LINENO: result: yes" >&5
2249 echo "${ECHO_T}yes" >&6; }
2250
2251 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2252 ac_clean_files=$ac_clean_files_save
2253 # Check that the compiler produces executables we can run.  If not, either
2254 # the compiler is broken, or we cross compile.
2255 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2256 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2257 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2258 echo "${ECHO_T}$cross_compiling" >&6; }
2259
2260 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2261 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2262 if { (ac_try="$ac_link"
2263 case "(($ac_try" in
2264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2265   *) ac_try_echo=$ac_try;;
2266 esac
2267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2268   (eval "$ac_link") 2>&5
2269   ac_status=$?
2270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271   (exit $ac_status); }; then
2272   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2273 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2274 # work properly (i.e., refer to `conftest.exe'), while it won't with
2275 # `rm'.
2276 for ac_file in conftest.exe conftest conftest.*; do
2277   test -f "$ac_file" || continue
2278   case $ac_file in
2279     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2280     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2281           break;;
2282     * ) break;;
2283   esac
2284 done
2285 else
2286   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2287 See \`config.log' for more details." >&5
2288 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2289 See \`config.log' for more details." >&2;}
2290    { (exit 1); exit 1; }; }
2291 fi
2292
2293 rm -f conftest$ac_cv_exeext
2294 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2295 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2296
2297 rm -f conftest.$ac_ext
2298 EXEEXT=$ac_cv_exeext
2299 ac_exeext=$EXEEXT
2300 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2301 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2302 if test "${ac_cv_objext+set}" = set; then
2303   echo $ECHO_N "(cached) $ECHO_C" >&6
2304 else
2305   cat >conftest.$ac_ext <<_ACEOF
2306 /* confdefs.h.  */
2307 _ACEOF
2308 cat confdefs.h >>conftest.$ac_ext
2309 cat >>conftest.$ac_ext <<_ACEOF
2310 /* end confdefs.h.  */
2311
2312 int
2313 main ()
2314 {
2315
2316   ;
2317   return 0;
2318 }
2319 _ACEOF
2320 rm -f conftest.o conftest.obj
2321 if { (ac_try="$ac_compile"
2322 case "(($ac_try" in
2323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2324   *) ac_try_echo=$ac_try;;
2325 esac
2326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2327   (eval "$ac_compile") 2>&5
2328   ac_status=$?
2329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330   (exit $ac_status); }; then
2331   for ac_file in conftest.o conftest.obj conftest.*; do
2332   test -f "$ac_file" || continue;
2333   case $ac_file in
2334     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2335     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2336        break;;
2337   esac
2338 done
2339 else
2340   echo "$as_me: failed program was:" >&5
2341 sed 's/^/| /' conftest.$ac_ext >&5
2342
2343 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2344 See \`config.log' for more details." >&5
2345 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2346 See \`config.log' for more details." >&2;}
2347    { (exit 1); exit 1; }; }
2348 fi
2349
2350 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2351 fi
2352 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2353 echo "${ECHO_T}$ac_cv_objext" >&6; }
2354 OBJEXT=$ac_cv_objext
2355 ac_objext=$OBJEXT
2356 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2357 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2358 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2359   echo $ECHO_N "(cached) $ECHO_C" >&6
2360 else
2361   cat >conftest.$ac_ext <<_ACEOF
2362 /* confdefs.h.  */
2363 _ACEOF
2364 cat confdefs.h >>conftest.$ac_ext
2365 cat >>conftest.$ac_ext <<_ACEOF
2366 /* end confdefs.h.  */
2367
2368 int
2369 main ()
2370 {
2371 #ifndef __GNUC__
2372        choke me
2373 #endif
2374
2375   ;
2376   return 0;
2377 }
2378 _ACEOF
2379 rm -f conftest.$ac_objext
2380 if { (ac_try="$ac_compile"
2381 case "(($ac_try" in
2382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2383   *) ac_try_echo=$ac_try;;
2384 esac
2385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2386   (eval "$ac_compile") 2>conftest.er1
2387   ac_status=$?
2388   grep -v '^ *+' conftest.er1 >conftest.err
2389   rm -f conftest.er1
2390   cat conftest.err >&5
2391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392   (exit $ac_status); } &&
2393          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2394   { (case "(($ac_try" in
2395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2396   *) ac_try_echo=$ac_try;;
2397 esac
2398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2399   (eval "$ac_try") 2>&5
2400   ac_status=$?
2401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402   (exit $ac_status); }; } &&
2403          { ac_try='test -s conftest.$ac_objext'
2404   { (case "(($ac_try" in
2405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2406   *) ac_try_echo=$ac_try;;
2407 esac
2408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2409   (eval "$ac_try") 2>&5
2410   ac_status=$?
2411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412   (exit $ac_status); }; }; then
2413   ac_compiler_gnu=yes
2414 else
2415   echo "$as_me: failed program was:" >&5
2416 sed 's/^/| /' conftest.$ac_ext >&5
2417
2418         ac_compiler_gnu=no
2419 fi
2420
2421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2422 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2423
2424 fi
2425 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2426 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2427 GCC=`test $ac_compiler_gnu = yes && echo yes`
2428 ac_test_CFLAGS=${CFLAGS+set}
2429 ac_save_CFLAGS=$CFLAGS
2430 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2431 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2432 if test "${ac_cv_prog_cc_g+set}" = set; then
2433   echo $ECHO_N "(cached) $ECHO_C" >&6
2434 else
2435   ac_save_c_werror_flag=$ac_c_werror_flag
2436    ac_c_werror_flag=yes
2437    ac_cv_prog_cc_g=no
2438    CFLAGS="-g"
2439    cat >conftest.$ac_ext <<_ACEOF
2440 /* confdefs.h.  */
2441 _ACEOF
2442 cat confdefs.h >>conftest.$ac_ext
2443 cat >>conftest.$ac_ext <<_ACEOF
2444 /* end confdefs.h.  */
2445
2446 int
2447 main ()
2448 {
2449
2450   ;
2451   return 0;
2452 }
2453 _ACEOF
2454 rm -f conftest.$ac_objext
2455 if { (ac_try="$ac_compile"
2456 case "(($ac_try" in
2457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458   *) ac_try_echo=$ac_try;;
2459 esac
2460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2461   (eval "$ac_compile") 2>conftest.er1
2462   ac_status=$?
2463   grep -v '^ *+' conftest.er1 >conftest.err
2464   rm -f conftest.er1
2465   cat conftest.err >&5
2466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467   (exit $ac_status); } &&
2468          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2469   { (case "(($ac_try" in
2470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2471   *) ac_try_echo=$ac_try;;
2472 esac
2473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2474   (eval "$ac_try") 2>&5
2475   ac_status=$?
2476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477   (exit $ac_status); }; } &&
2478          { ac_try='test -s conftest.$ac_objext'
2479   { (case "(($ac_try" in
2480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2481   *) ac_try_echo=$ac_try;;
2482 esac
2483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2484   (eval "$ac_try") 2>&5
2485   ac_status=$?
2486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487   (exit $ac_status); }; }; then
2488   ac_cv_prog_cc_g=yes
2489 else
2490   echo "$as_me: failed program was:" >&5
2491 sed 's/^/| /' conftest.$ac_ext >&5
2492
2493         CFLAGS=""
2494       cat >conftest.$ac_ext <<_ACEOF
2495 /* confdefs.h.  */
2496 _ACEOF
2497 cat confdefs.h >>conftest.$ac_ext
2498 cat >>conftest.$ac_ext <<_ACEOF
2499 /* end confdefs.h.  */
2500
2501 int
2502 main ()
2503 {
2504
2505   ;
2506   return 0;
2507 }
2508 _ACEOF
2509 rm -f conftest.$ac_objext
2510 if { (ac_try="$ac_compile"
2511 case "(($ac_try" in
2512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2513   *) ac_try_echo=$ac_try;;
2514 esac
2515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2516   (eval "$ac_compile") 2>conftest.er1
2517   ac_status=$?
2518   grep -v '^ *+' conftest.er1 >conftest.err
2519   rm -f conftest.er1
2520   cat conftest.err >&5
2521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522   (exit $ac_status); } &&
2523          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2524   { (case "(($ac_try" in
2525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526   *) ac_try_echo=$ac_try;;
2527 esac
2528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2529   (eval "$ac_try") 2>&5
2530   ac_status=$?
2531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532   (exit $ac_status); }; } &&
2533          { ac_try='test -s conftest.$ac_objext'
2534   { (case "(($ac_try" in
2535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536   *) ac_try_echo=$ac_try;;
2537 esac
2538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2539   (eval "$ac_try") 2>&5
2540   ac_status=$?
2541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542   (exit $ac_status); }; }; then
2543   :
2544 else
2545   echo "$as_me: failed program was:" >&5
2546 sed 's/^/| /' conftest.$ac_ext >&5
2547
2548         ac_c_werror_flag=$ac_save_c_werror_flag
2549          CFLAGS="-g"
2550          cat >conftest.$ac_ext <<_ACEOF
2551 /* confdefs.h.  */
2552 _ACEOF
2553 cat confdefs.h >>conftest.$ac_ext
2554 cat >>conftest.$ac_ext <<_ACEOF
2555 /* end confdefs.h.  */
2556
2557 int
2558 main ()
2559 {
2560
2561   ;
2562   return 0;
2563 }
2564 _ACEOF
2565 rm -f conftest.$ac_objext
2566 if { (ac_try="$ac_compile"
2567 case "(($ac_try" in
2568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569   *) ac_try_echo=$ac_try;;
2570 esac
2571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2572   (eval "$ac_compile") 2>conftest.er1
2573   ac_status=$?
2574   grep -v '^ *+' conftest.er1 >conftest.err
2575   rm -f conftest.er1
2576   cat conftest.err >&5
2577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578   (exit $ac_status); } &&
2579          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2580   { (case "(($ac_try" in
2581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2582   *) ac_try_echo=$ac_try;;
2583 esac
2584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2585   (eval "$ac_try") 2>&5
2586   ac_status=$?
2587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588   (exit $ac_status); }; } &&
2589          { ac_try='test -s conftest.$ac_objext'
2590   { (case "(($ac_try" in
2591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2592   *) ac_try_echo=$ac_try;;
2593 esac
2594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2595   (eval "$ac_try") 2>&5
2596   ac_status=$?
2597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598   (exit $ac_status); }; }; then
2599   ac_cv_prog_cc_g=yes
2600 else
2601   echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2603
2604
2605 fi
2606
2607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2608 fi
2609
2610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2611 fi
2612
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614    ac_c_werror_flag=$ac_save_c_werror_flag
2615 fi
2616 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2617 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2618 if test "$ac_test_CFLAGS" = set; then
2619   CFLAGS=$ac_save_CFLAGS
2620 elif test $ac_cv_prog_cc_g = yes; then
2621   if test "$GCC" = yes; then
2622     CFLAGS="-g -O2"
2623   else
2624     CFLAGS="-g"
2625   fi
2626 else
2627   if test "$GCC" = yes; then
2628     CFLAGS="-O2"
2629   else
2630     CFLAGS=
2631   fi
2632 fi
2633 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2634 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2635 if test "${ac_cv_prog_cc_c89+set}" = set; then
2636   echo $ECHO_N "(cached) $ECHO_C" >&6
2637 else
2638   ac_cv_prog_cc_c89=no
2639 ac_save_CC=$CC
2640 cat >conftest.$ac_ext <<_ACEOF
2641 /* confdefs.h.  */
2642 _ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h.  */
2646 #include <stdarg.h>
2647 #include <stdio.h>
2648 #include <sys/types.h>
2649 #include <sys/stat.h>
2650 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2651 struct buf { int x; };
2652 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2653 static char *e (p, i)
2654      char **p;
2655      int i;
2656 {
2657   return p[i];
2658 }
2659 static char *f (char * (*g) (char **, int), char **p, ...)
2660 {
2661   char *s;
2662   va_list v;
2663   va_start (v,p);
2664   s = g (p, va_arg (v,int));
2665   va_end (v);
2666   return s;
2667 }
2668
2669 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2670    function prototypes and stuff, but not '\xHH' hex character constants.
2671    These don't provoke an error unfortunately, instead are silently treated
2672    as 'x'.  The following induces an error, until -std is added to get
2673    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2674    array size at least.  It's necessary to write '\x00'==0 to get something
2675    that's true only with -std.  */
2676 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2677
2678 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2679    inside strings and character constants.  */
2680 #define FOO(x) 'x'
2681 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2682
2683 int test (int i, double x);
2684 struct s1 {int (*f) (int a);};
2685 struct s2 {int (*f) (double a);};
2686 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2687 int argc;
2688 char **argv;
2689 int
2690 main ()
2691 {
2692 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2693   ;
2694   return 0;
2695 }
2696 _ACEOF
2697 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2698         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2699 do
2700   CC="$ac_save_CC $ac_arg"
2701   rm -f conftest.$ac_objext
2702 if { (ac_try="$ac_compile"
2703 case "(($ac_try" in
2704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705   *) ac_try_echo=$ac_try;;
2706 esac
2707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708   (eval "$ac_compile") 2>conftest.er1
2709   ac_status=$?
2710   grep -v '^ *+' conftest.er1 >conftest.err
2711   rm -f conftest.er1
2712   cat conftest.err >&5
2713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714   (exit $ac_status); } &&
2715          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2716   { (case "(($ac_try" in
2717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718   *) ac_try_echo=$ac_try;;
2719 esac
2720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2721   (eval "$ac_try") 2>&5
2722   ac_status=$?
2723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724   (exit $ac_status); }; } &&
2725          { ac_try='test -s conftest.$ac_objext'
2726   { (case "(($ac_try" in
2727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2728   *) ac_try_echo=$ac_try;;
2729 esac
2730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2731   (eval "$ac_try") 2>&5
2732   ac_status=$?
2733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734   (exit $ac_status); }; }; then
2735   ac_cv_prog_cc_c89=$ac_arg
2736 else
2737   echo "$as_me: failed program was:" >&5
2738 sed 's/^/| /' conftest.$ac_ext >&5
2739
2740
2741 fi
2742
2743 rm -f core conftest.err conftest.$ac_objext
2744   test "x$ac_cv_prog_cc_c89" != "xno" && break
2745 done
2746 rm -f conftest.$ac_ext
2747 CC=$ac_save_CC
2748
2749 fi
2750 # AC_CACHE_VAL
2751 case "x$ac_cv_prog_cc_c89" in
2752   x)
2753     { echo "$as_me:$LINENO: result: none needed" >&5
2754 echo "${ECHO_T}none needed" >&6; } ;;
2755   xno)
2756     { echo "$as_me:$LINENO: result: unsupported" >&5
2757 echo "${ECHO_T}unsupported" >&6; } ;;
2758   *)
2759     CC="$CC $ac_cv_prog_cc_c89"
2760     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2761 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2762 esac
2763
2764
2765 ac_ext=c
2766 ac_cpp='$CPP $CPPFLAGS'
2767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2770
2771 ac_ext=cpp
2772 ac_cpp='$CXXCPP $CPPFLAGS'
2773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2776 if test -z "$CXX"; then
2777   if test -n "$CCC"; then
2778     CXX=$CCC
2779   else
2780     if test -n "$ac_tool_prefix"; then
2781   for ac_prog in clang++ llvm-g++ g++
2782   do
2783     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2784 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2787 if test "${ac_cv_prog_CXX+set}" = set; then
2788   echo $ECHO_N "(cached) $ECHO_C" >&6
2789 else
2790   if test -n "$CXX"; then
2791   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2792 else
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 for as_dir in $PATH
2795 do
2796   IFS=$as_save_IFS
2797   test -z "$as_dir" && as_dir=.
2798   for ac_exec_ext in '' $ac_executable_extensions; do
2799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2800     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2802     break 2
2803   fi
2804 done
2805 done
2806 IFS=$as_save_IFS
2807
2808 fi
2809 fi
2810 CXX=$ac_cv_prog_CXX
2811 if test -n "$CXX"; then
2812   { echo "$as_me:$LINENO: result: $CXX" >&5
2813 echo "${ECHO_T}$CXX" >&6; }
2814 else
2815   { echo "$as_me:$LINENO: result: no" >&5
2816 echo "${ECHO_T}no" >&6; }
2817 fi
2818
2819
2820     test -n "$CXX" && break
2821   done
2822 fi
2823 if test -z "$CXX"; then
2824   ac_ct_CXX=$CXX
2825   for ac_prog in clang++ llvm-g++ g++
2826 do
2827   # Extract the first word of "$ac_prog", so it can be a program name with args.
2828 set dummy $ac_prog; ac_word=$2
2829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2831 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2832   echo $ECHO_N "(cached) $ECHO_C" >&6
2833 else
2834   if test -n "$ac_ct_CXX"; then
2835   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2836 else
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 for as_dir in $PATH
2839 do
2840   IFS=$as_save_IFS
2841   test -z "$as_dir" && as_dir=.
2842   for ac_exec_ext in '' $ac_executable_extensions; do
2843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2844     ac_cv_prog_ac_ct_CXX="$ac_prog"
2845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2846     break 2
2847   fi
2848 done
2849 done
2850 IFS=$as_save_IFS
2851
2852 fi
2853 fi
2854 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2855 if test -n "$ac_ct_CXX"; then
2856   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2857 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2858 else
2859   { echo "$as_me:$LINENO: result: no" >&5
2860 echo "${ECHO_T}no" >&6; }
2861 fi
2862
2863
2864   test -n "$ac_ct_CXX" && break
2865 done
2866
2867   if test "x$ac_ct_CXX" = x; then
2868     CXX="g++"
2869   else
2870     case $cross_compiling:$ac_tool_warned in
2871 yes:)
2872 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2873 whose name does not start with the host triplet.  If you think this
2874 configuration is useful to you, please write to autoconf@gnu.org." >&5
2875 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2876 whose name does not start with the host triplet.  If you think this
2877 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2878 ac_tool_warned=yes ;;
2879 esac
2880     CXX=$ac_ct_CXX
2881   fi
2882 fi
2883
2884   fi
2885 fi
2886 # Provide some information about the compiler.
2887 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2888 ac_compiler=`set X $ac_compile; echo $2`
2889 { (ac_try="$ac_compiler --version >&5"
2890 case "(($ac_try" in
2891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892   *) ac_try_echo=$ac_try;;
2893 esac
2894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895   (eval "$ac_compiler --version >&5") 2>&5
2896   ac_status=$?
2897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898   (exit $ac_status); }
2899 { (ac_try="$ac_compiler -v >&5"
2900 case "(($ac_try" in
2901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902   *) ac_try_echo=$ac_try;;
2903 esac
2904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2905   (eval "$ac_compiler -v >&5") 2>&5
2906   ac_status=$?
2907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908   (exit $ac_status); }
2909 { (ac_try="$ac_compiler -V >&5"
2910 case "(($ac_try" in
2911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912   *) ac_try_echo=$ac_try;;
2913 esac
2914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2915   (eval "$ac_compiler -V >&5") 2>&5
2916   ac_status=$?
2917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918   (exit $ac_status); }
2919
2920 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2921 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2922 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2923   echo $ECHO_N "(cached) $ECHO_C" >&6
2924 else
2925   cat >conftest.$ac_ext <<_ACEOF
2926 /* confdefs.h.  */
2927 _ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h.  */
2931
2932 int
2933 main ()
2934 {
2935 #ifndef __GNUC__
2936        choke me
2937 #endif
2938
2939   ;
2940   return 0;
2941 }
2942 _ACEOF
2943 rm -f conftest.$ac_objext
2944 if { (ac_try="$ac_compile"
2945 case "(($ac_try" in
2946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947   *) ac_try_echo=$ac_try;;
2948 esac
2949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950   (eval "$ac_compile") 2>conftest.er1
2951   ac_status=$?
2952   grep -v '^ *+' conftest.er1 >conftest.err
2953   rm -f conftest.er1
2954   cat conftest.err >&5
2955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956   (exit $ac_status); } &&
2957          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2958   { (case "(($ac_try" in
2959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960   *) ac_try_echo=$ac_try;;
2961 esac
2962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963   (eval "$ac_try") 2>&5
2964   ac_status=$?
2965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966   (exit $ac_status); }; } &&
2967          { ac_try='test -s conftest.$ac_objext'
2968   { (case "(($ac_try" in
2969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970   *) ac_try_echo=$ac_try;;
2971 esac
2972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973   (eval "$ac_try") 2>&5
2974   ac_status=$?
2975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976   (exit $ac_status); }; }; then
2977   ac_compiler_gnu=yes
2978 else
2979   echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.$ac_ext >&5
2981
2982         ac_compiler_gnu=no
2983 fi
2984
2985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2986 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2987
2988 fi
2989 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2990 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2991 GXX=`test $ac_compiler_gnu = yes && echo yes`
2992 ac_test_CXXFLAGS=${CXXFLAGS+set}
2993 ac_save_CXXFLAGS=$CXXFLAGS
2994 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2995 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2996 if test "${ac_cv_prog_cxx_g+set}" = set; then
2997   echo $ECHO_N "(cached) $ECHO_C" >&6
2998 else
2999   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3000    ac_cxx_werror_flag=yes
3001    ac_cv_prog_cxx_g=no
3002    CXXFLAGS="-g"
3003    cat >conftest.$ac_ext <<_ACEOF
3004 /* confdefs.h.  */
3005 _ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h.  */
3009
3010 int
3011 main ()
3012 {
3013
3014   ;
3015   return 0;
3016 }
3017 _ACEOF
3018 rm -f conftest.$ac_objext
3019 if { (ac_try="$ac_compile"
3020 case "(($ac_try" in
3021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022   *) ac_try_echo=$ac_try;;
3023 esac
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025   (eval "$ac_compile") 2>conftest.er1
3026   ac_status=$?
3027   grep -v '^ *+' conftest.er1 >conftest.err
3028   rm -f conftest.er1
3029   cat conftest.err >&5
3030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031   (exit $ac_status); } &&
3032          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3033   { (case "(($ac_try" in
3034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035   *) ac_try_echo=$ac_try;;
3036 esac
3037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3038   (eval "$ac_try") 2>&5
3039   ac_status=$?
3040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041   (exit $ac_status); }; } &&
3042          { ac_try='test -s conftest.$ac_objext'
3043   { (case "(($ac_try" in
3044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045   *) ac_try_echo=$ac_try;;
3046 esac
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048   (eval "$ac_try") 2>&5
3049   ac_status=$?
3050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051   (exit $ac_status); }; }; then
3052   ac_cv_prog_cxx_g=yes
3053 else
3054   echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3056
3057         CXXFLAGS=""
3058       cat >conftest.$ac_ext <<_ACEOF
3059 /* confdefs.h.  */
3060 _ACEOF
3061 cat confdefs.h >>conftest.$ac_ext
3062 cat >>conftest.$ac_ext <<_ACEOF
3063 /* end confdefs.h.  */
3064
3065 int
3066 main ()
3067 {
3068
3069   ;
3070   return 0;
3071 }
3072 _ACEOF
3073 rm -f conftest.$ac_objext
3074 if { (ac_try="$ac_compile"
3075 case "(($ac_try" in
3076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077   *) ac_try_echo=$ac_try;;
3078 esac
3079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080   (eval "$ac_compile") 2>conftest.er1
3081   ac_status=$?
3082   grep -v '^ *+' conftest.er1 >conftest.err
3083   rm -f conftest.er1
3084   cat conftest.err >&5
3085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086   (exit $ac_status); } &&
3087          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3088   { (case "(($ac_try" in
3089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090   *) ac_try_echo=$ac_try;;
3091 esac
3092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093   (eval "$ac_try") 2>&5
3094   ac_status=$?
3095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096   (exit $ac_status); }; } &&
3097          { ac_try='test -s conftest.$ac_objext'
3098   { (case "(($ac_try" in
3099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100   *) ac_try_echo=$ac_try;;
3101 esac
3102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3103   (eval "$ac_try") 2>&5
3104   ac_status=$?
3105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106   (exit $ac_status); }; }; then
3107   :
3108 else
3109   echo "$as_me: failed program was:" >&5
3110 sed 's/^/| /' conftest.$ac_ext >&5
3111
3112         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3113          CXXFLAGS="-g"
3114          cat >conftest.$ac_ext <<_ACEOF
3115 /* confdefs.h.  */
3116 _ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h.  */
3120
3121 int
3122 main ()
3123 {
3124
3125   ;
3126   return 0;
3127 }
3128 _ACEOF
3129 rm -f conftest.$ac_objext
3130 if { (ac_try="$ac_compile"
3131 case "(($ac_try" in
3132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133   *) ac_try_echo=$ac_try;;
3134 esac
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136   (eval "$ac_compile") 2>conftest.er1
3137   ac_status=$?
3138   grep -v '^ *+' conftest.er1 >conftest.err
3139   rm -f conftest.er1
3140   cat conftest.err >&5
3141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142   (exit $ac_status); } &&
3143          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3144   { (case "(($ac_try" in
3145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146   *) ac_try_echo=$ac_try;;
3147 esac
3148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149   (eval "$ac_try") 2>&5
3150   ac_status=$?
3151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152   (exit $ac_status); }; } &&
3153          { ac_try='test -s conftest.$ac_objext'
3154   { (case "(($ac_try" in
3155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156   *) ac_try_echo=$ac_try;;
3157 esac
3158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3159   (eval "$ac_try") 2>&5
3160   ac_status=$?
3161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162   (exit $ac_status); }; }; then
3163   ac_cv_prog_cxx_g=yes
3164 else
3165   echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.$ac_ext >&5
3167
3168
3169 fi
3170
3171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3172 fi
3173
3174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3175 fi
3176
3177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3178    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3179 fi
3180 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3181 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3182 if test "$ac_test_CXXFLAGS" = set; then
3183   CXXFLAGS=$ac_save_CXXFLAGS
3184 elif test $ac_cv_prog_cxx_g = yes; then
3185   if test "$GXX" = yes; then
3186     CXXFLAGS="-g -O2"
3187   else
3188     CXXFLAGS="-g"
3189   fi
3190 else
3191   if test "$GXX" = yes; then
3192     CXXFLAGS="-O2"
3193   else
3194     CXXFLAGS=
3195   fi
3196 fi
3197 ac_ext=c
3198 ac_cpp='$CPP $CPPFLAGS'
3199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3202
3203 ac_ext=c
3204 ac_cpp='$CPP $CPPFLAGS'
3205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3208 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3209 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3210 # On Suns, sometimes $CPP names a directory.
3211 if test -n "$CPP" && test -d "$CPP"; then
3212   CPP=
3213 fi
3214 if test -z "$CPP"; then
3215   if test "${ac_cv_prog_CPP+set}" = set; then
3216   echo $ECHO_N "(cached) $ECHO_C" >&6
3217 else
3218       # Double quotes because CPP needs to be expanded
3219     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3220     do
3221       ac_preproc_ok=false
3222 for ac_c_preproc_warn_flag in '' yes
3223 do
3224   # Use a header file that comes with gcc, so configuring glibc
3225   # with a fresh cross-compiler works.
3226   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3227   # <limits.h> exists even on freestanding compilers.
3228   # On the NeXT, cc -E runs the code through the compiler's parser,
3229   # not just through cpp. "Syntax error" is here to catch this case.
3230   cat >conftest.$ac_ext <<_ACEOF
3231 /* confdefs.h.  */
3232 _ACEOF
3233 cat confdefs.h >>conftest.$ac_ext
3234 cat >>conftest.$ac_ext <<_ACEOF
3235 /* end confdefs.h.  */
3236 #ifdef __STDC__
3237 # include <limits.h>
3238 #else
3239 # include <assert.h>
3240 #endif
3241                      Syntax error
3242 _ACEOF
3243 if { (ac_try="$ac_cpp conftest.$ac_ext"
3244 case "(($ac_try" in
3245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246   *) ac_try_echo=$ac_try;;
3247 esac
3248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3249   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3250   ac_status=$?
3251   grep -v '^ *+' conftest.er1 >conftest.err
3252   rm -f conftest.er1
3253   cat conftest.err >&5
3254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255   (exit $ac_status); } >/dev/null; then
3256   if test -s conftest.err; then
3257     ac_cpp_err=$ac_c_preproc_warn_flag
3258     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3259   else
3260     ac_cpp_err=
3261   fi
3262 else
3263   ac_cpp_err=yes
3264 fi
3265 if test -z "$ac_cpp_err"; then
3266   :
3267 else
3268   echo "$as_me: failed program was:" >&5
3269 sed 's/^/| /' conftest.$ac_ext >&5
3270
3271   # Broken: fails on valid input.
3272 continue
3273 fi
3274
3275 rm -f conftest.err conftest.$ac_ext
3276
3277   # OK, works on sane cases.  Now check whether nonexistent headers
3278   # can be detected and how.
3279   cat >conftest.$ac_ext <<_ACEOF
3280 /* confdefs.h.  */
3281 _ACEOF
3282 cat confdefs.h >>conftest.$ac_ext
3283 cat >>conftest.$ac_ext <<_ACEOF
3284 /* end confdefs.h.  */
3285 #include <ac_nonexistent.h>
3286 _ACEOF
3287 if { (ac_try="$ac_cpp conftest.$ac_ext"
3288 case "(($ac_try" in
3289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290   *) ac_try_echo=$ac_try;;
3291 esac
3292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3293   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3294   ac_status=$?
3295   grep -v '^ *+' conftest.er1 >conftest.err
3296   rm -f conftest.er1
3297   cat conftest.err >&5
3298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299   (exit $ac_status); } >/dev/null; then
3300   if test -s conftest.err; then
3301     ac_cpp_err=$ac_c_preproc_warn_flag
3302     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3303   else
3304     ac_cpp_err=
3305   fi
3306 else
3307   ac_cpp_err=yes
3308 fi
3309 if test -z "$ac_cpp_err"; then
3310   # Broken: success on invalid input.
3311 continue
3312 else
3313   echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3315
3316   # Passes both tests.
3317 ac_preproc_ok=:
3318 break
3319 fi
3320
3321 rm -f conftest.err conftest.$ac_ext
3322
3323 done
3324 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3325 rm -f conftest.err conftest.$ac_ext
3326 if $ac_preproc_ok; then
3327   break
3328 fi
3329
3330     done
3331     ac_cv_prog_CPP=$CPP
3332
3333 fi
3334   CPP=$ac_cv_prog_CPP
3335 else
3336   ac_cv_prog_CPP=$CPP
3337 fi
3338 { echo "$as_me:$LINENO: result: $CPP" >&5
3339 echo "${ECHO_T}$CPP" >&6; }
3340 ac_preproc_ok=false
3341 for ac_c_preproc_warn_flag in '' yes
3342 do
3343   # Use a header file that comes with gcc, so configuring glibc
3344   # with a fresh cross-compiler works.
3345   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3346   # <limits.h> exists even on freestanding compilers.
3347   # On the NeXT, cc -E runs the code through the compiler's parser,
3348   # not just through cpp. "Syntax error" is here to catch this case.
3349   cat >conftest.$ac_ext <<_ACEOF
3350 /* confdefs.h.  */
3351 _ACEOF
3352 cat confdefs.h >>conftest.$ac_ext
3353 cat >>conftest.$ac_ext <<_ACEOF
3354 /* end confdefs.h.  */
3355 #ifdef __STDC__
3356 # include <limits.h>
3357 #else
3358 # include <assert.h>
3359 #endif
3360                      Syntax error
3361 _ACEOF
3362 if { (ac_try="$ac_cpp conftest.$ac_ext"
3363 case "(($ac_try" in
3364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365   *) ac_try_echo=$ac_try;;
3366 esac
3367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3368   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3369   ac_status=$?
3370   grep -v '^ *+' conftest.er1 >conftest.err
3371   rm -f conftest.er1
3372   cat conftest.err >&5
3373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374   (exit $ac_status); } >/dev/null; then
3375   if test -s conftest.err; then
3376     ac_cpp_err=$ac_c_preproc_warn_flag
3377     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3378   else
3379     ac_cpp_err=
3380   fi
3381 else
3382   ac_cpp_err=yes
3383 fi
3384 if test -z "$ac_cpp_err"; then
3385   :
3386 else
3387   echo "$as_me: failed program was:" >&5
3388 sed 's/^/| /' conftest.$ac_ext >&5
3389
3390   # Broken: fails on valid input.
3391 continue
3392 fi
3393
3394 rm -f conftest.err conftest.$ac_ext
3395
3396   # OK, works on sane cases.  Now check whether nonexistent headers
3397   # can be detected and how.
3398   cat >conftest.$ac_ext <<_ACEOF
3399 /* confdefs.h.  */
3400 _ACEOF
3401 cat confdefs.h >>conftest.$ac_ext
3402 cat >>conftest.$ac_ext <<_ACEOF
3403 /* end confdefs.h.  */
3404 #include <ac_nonexistent.h>
3405 _ACEOF
3406 if { (ac_try="$ac_cpp conftest.$ac_ext"
3407 case "(($ac_try" in
3408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3409   *) ac_try_echo=$ac_try;;
3410 esac
3411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3412   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3413   ac_status=$?
3414   grep -v '^ *+' conftest.er1 >conftest.err
3415   rm -f conftest.er1
3416   cat conftest.err >&5
3417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418   (exit $ac_status); } >/dev/null; then
3419   if test -s conftest.err; then
3420     ac_cpp_err=$ac_c_preproc_warn_flag
3421     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3422   else
3423     ac_cpp_err=
3424   fi
3425 else
3426   ac_cpp_err=yes
3427 fi
3428 if test -z "$ac_cpp_err"; then
3429   # Broken: success on invalid input.
3430 continue
3431 else
3432   echo "$as_me: failed program was:" >&5
3433 sed 's/^/| /' conftest.$ac_ext >&5
3434
3435   # Passes both tests.
3436 ac_preproc_ok=:
3437 break
3438 fi
3439
3440 rm -f conftest.err conftest.$ac_ext
3441
3442 done
3443 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3444 rm -f conftest.err conftest.$ac_ext
3445 if $ac_preproc_ok; then
3446   :
3447 else
3448   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3449 See \`config.log' for more details." >&5
3450 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3451 See \`config.log' for more details." >&2;}
3452    { (exit 1); exit 1; }; }
3453 fi
3454
3455 ac_ext=c
3456 ac_cpp='$CPP $CPPFLAGS'
3457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3460
3461
3462
3463
3464 # Check whether --enable-polly was given.
3465 if test "${enable_polly+set}" = set; then
3466   enableval=$enable_polly;
3467 else
3468   enableval=default
3469 fi
3470
3471 case "$enableval" in
3472   yes) ENABLE_POLLY=1
3473  ;;
3474   no)  ENABLE_POLLY=0
3475  ;;
3476   default) ENABLE_POLLY=1
3477  ;;
3478   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3479 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3480    { (exit 1); exit 1; }; } ;;
3481 esac
3482
3483
3484 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3485   LLVM_HAS_POLLY=1
3486
3487   subdirs="$subdirs tools/polly"
3488
3489 fi
3490
3491
3492 # Make sure we can run config.sub.
3493 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3494   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3495 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3496    { (exit 1); exit 1; }; }
3497
3498 { echo "$as_me:$LINENO: checking build system type" >&5
3499 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3500 if test "${ac_cv_build+set}" = set; then
3501   echo $ECHO_N "(cached) $ECHO_C" >&6
3502 else
3503   ac_build_alias=$build_alias
3504 test "x$ac_build_alias" = x &&
3505   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3506 test "x$ac_build_alias" = x &&
3507   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3508 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3509    { (exit 1); exit 1; }; }
3510 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3511   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3512 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3513    { (exit 1); exit 1; }; }
3514
3515 fi
3516 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3517 echo "${ECHO_T}$ac_cv_build" >&6; }
3518 case $ac_cv_build in
3519 *-*-*) ;;
3520 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3521 echo "$as_me: error: invalid value of canonical build" >&2;}
3522    { (exit 1); exit 1; }; };;
3523 esac
3524 build=$ac_cv_build
3525 ac_save_IFS=$IFS; IFS='-'
3526 set x $ac_cv_build
3527 shift
3528 build_cpu=$1
3529 build_vendor=$2
3530 shift; shift
3531 # Remember, the first character of IFS is used to create $*,
3532 # except with old shells:
3533 build_os=$*
3534 IFS=$ac_save_IFS
3535 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3536
3537
3538 { echo "$as_me:$LINENO: checking host system type" >&5
3539 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3540 if test "${ac_cv_host+set}" = set; then
3541   echo $ECHO_N "(cached) $ECHO_C" >&6
3542 else
3543   if test "x$host_alias" = x; then
3544   ac_cv_host=$ac_cv_build
3545 else
3546   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3547     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3548 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3549    { (exit 1); exit 1; }; }
3550 fi
3551
3552 fi
3553 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3554 echo "${ECHO_T}$ac_cv_host" >&6; }
3555 case $ac_cv_host in
3556 *-*-*) ;;
3557 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3558 echo "$as_me: error: invalid value of canonical host" >&2;}
3559    { (exit 1); exit 1; }; };;
3560 esac
3561 host=$ac_cv_host
3562 ac_save_IFS=$IFS; IFS='-'
3563 set x $ac_cv_host
3564 shift
3565 host_cpu=$1
3566 host_vendor=$2
3567 shift; shift
3568 # Remember, the first character of IFS is used to create $*,
3569 # except with old shells:
3570 host_os=$*
3571 IFS=$ac_save_IFS
3572 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3573
3574
3575 { echo "$as_me:$LINENO: checking target system type" >&5
3576 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3577 if test "${ac_cv_target+set}" = set; then
3578   echo $ECHO_N "(cached) $ECHO_C" >&6
3579 else
3580   if test "x$target_alias" = x; then
3581   ac_cv_target=$ac_cv_host
3582 else
3583   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3584     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3585 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3586    { (exit 1); exit 1; }; }
3587 fi
3588
3589 fi
3590 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3591 echo "${ECHO_T}$ac_cv_target" >&6; }
3592 case $ac_cv_target in
3593 *-*-*) ;;
3594 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3595 echo "$as_me: error: invalid value of canonical target" >&2;}
3596    { (exit 1); exit 1; }; };;
3597 esac
3598 target=$ac_cv_target
3599 ac_save_IFS=$IFS; IFS='-'
3600 set x $ac_cv_target
3601 shift
3602 target_cpu=$1
3603 target_vendor=$2
3604 shift; shift
3605 # Remember, the first character of IFS is used to create $*,
3606 # except with old shells:
3607 target_os=$*
3608 IFS=$ac_save_IFS
3609 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3610
3611
3612 # The aliases save the names the user supplied, while $host etc.
3613 # will get canonicalized.
3614 test -n "$target_alias" &&
3615   test "$program_prefix$program_suffix$program_transform_name" = \
3616     NONENONEs,x,x, &&
3617   program_prefix=${target_alias}-
3618
3619 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3620 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3621 if test "${llvm_cv_os_type+set}" = set; then
3622   echo $ECHO_N "(cached) $ECHO_C" >&6
3623 else
3624   case $host in
3625   *-*-aix*)
3626     llvm_cv_link_all_option="-Wl,--whole-archive"
3627     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3628     llvm_cv_os_type="AIX"
3629     llvm_cv_platform_type="Unix" ;;
3630   *-*-irix*)
3631     llvm_cv_link_all_option="-Wl,--whole-archive"
3632     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3633     llvm_cv_os_type="IRIX"
3634     llvm_cv_platform_type="Unix" ;;
3635   *-*-cygwin*)
3636     llvm_cv_link_all_option="-Wl,--whole-archive"
3637     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3638     llvm_cv_os_type="Cygwin"
3639     llvm_cv_platform_type="Unix" ;;
3640   *-*-darwin*)
3641     llvm_cv_link_all_option="-Wl,-all_load"
3642     llvm_cv_no_link_all_option="-Wl,-noall_load"
3643     llvm_cv_os_type="Darwin"
3644     llvm_cv_platform_type="Unix" ;;
3645   *-*-minix*)
3646     llvm_cv_link_all_option="-Wl,-all_load"
3647     llvm_cv_no_link_all_option="-Wl,-noall_load"
3648     llvm_cv_os_type="Minix"
3649     llvm_cv_platform_type="Unix" ;;
3650   *-*-freebsd* | *-*-kfreebsd-gnu)
3651     llvm_cv_link_all_option="-Wl,--whole-archive"
3652     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3653     llvm_cv_os_type="FreeBSD"
3654     llvm_cv_platform_type="Unix" ;;
3655   *-*-openbsd*)
3656     llvm_cv_link_all_option="-Wl,--whole-archive"
3657     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3658     llvm_cv_os_type="OpenBSD"
3659     llvm_cv_platform_type="Unix" ;;
3660   *-*-netbsd*)
3661     llvm_cv_link_all_option="-Wl,--whole-archive"
3662     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3663     llvm_cv_os_type="NetBSD"
3664     llvm_cv_platform_type="Unix" ;;
3665   *-*-dragonfly*)
3666     llvm_cv_link_all_option="-Wl,--whole-archive"
3667     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3668     llvm_cv_os_type="DragonFly"
3669     llvm_cv_platform_type="Unix" ;;
3670   *-*-hpux*)
3671     llvm_cv_link_all_option="-Wl,--whole-archive"
3672     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3673     llvm_cv_os_type="HP-UX"
3674     llvm_cv_platform_type="Unix" ;;
3675   *-*-interix*)
3676     llvm_cv_link_all_option="-Wl,--whole-archive"
3677     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3678     llvm_cv_os_type="Interix"
3679     llvm_cv_platform_type="Unix" ;;
3680   *-*-linux*)
3681     llvm_cv_link_all_option="-Wl,--whole-archive"
3682     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3683     llvm_cv_os_type="Linux"
3684     llvm_cv_platform_type="Unix" ;;
3685   *-*-gnu*)
3686     llvm_cv_link_all_option="-Wl,--whole-archive"
3687     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3688     llvm_cv_os_type="GNU"
3689     llvm_cv_platform_type="Unix" ;;
3690   *-*-solaris*)
3691     llvm_cv_link_all_option="-Wl,-z,allextract"
3692     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3693     llvm_cv_os_type="SunOS"
3694     llvm_cv_platform_type="Unix" ;;
3695   *-*-auroraux*)
3696     llvm_cv_link_all_option="-Wl,-z,allextract"
3697     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3698     llvm_cv_os_type="AuroraUX"
3699     llvm_cv_platform_type="Unix" ;;
3700   *-*-win32*)
3701     llvm_cv_link_all_option="-Wl,--whole-archive"
3702     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3703     llvm_cv_os_type="Win32"
3704     llvm_cv_platform_type="Win32" ;;
3705   *-*-mingw*)
3706     llvm_cv_link_all_option="-Wl,--whole-archive"
3707     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3708     llvm_cv_os_type="MingW"
3709     llvm_cv_platform_type="Win32" ;;
3710   *-*-haiku*)
3711     llvm_cv_link_all_option="-Wl,--whole-archive"
3712     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3713     llvm_cv_os_type="Haiku"
3714     llvm_cv_platform_type="Unix" ;;
3715   *-unknown-eabi*)
3716     llvm_cv_link_all_option="-Wl,--whole-archive"
3717     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3718     llvm_cv_os_type="Freestanding"
3719     llvm_cv_platform_type="Unix" ;;
3720   *-unknown-elf*)
3721     llvm_cv_link_all_option="-Wl,--whole-archive"
3722     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3723     llvm_cv_os_type="Freestanding"
3724     llvm_cv_platform_type="Unix" ;;
3725   *)
3726     llvm_cv_link_all_option=""
3727     llvm_cv_no_link_all_option=""
3728     llvm_cv_os_type="Unknown"
3729     llvm_cv_platform_type="Unknown" ;;
3730 esac
3731 fi
3732 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3733 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3734
3735 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3736 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3737 if test "${llvm_cv_target_os_type+set}" = set; then
3738   echo $ECHO_N "(cached) $ECHO_C" >&6
3739 else
3740   case $target in
3741   *-*-aix*)
3742     llvm_cv_target_os_type="AIX" ;;
3743   *-*-irix*)
3744     llvm_cv_target_os_type="IRIX" ;;
3745   *-*-cygwin*)
3746     llvm_cv_target_os_type="Cygwin" ;;
3747   *-*-darwin*)
3748     llvm_cv_target_os_type="Darwin" ;;
3749   *-*-minix*)
3750     llvm_cv_target_os_type="Minix" ;;
3751   *-*-freebsd* | *-*-kfreebsd-gnu)
3752     llvm_cv_target_os_type="FreeBSD" ;;
3753   *-*-openbsd*)
3754     llvm_cv_target_os_type="OpenBSD" ;;
3755   *-*-netbsd*)
3756     llvm_cv_target_os_type="NetBSD" ;;
3757   *-*-dragonfly*)
3758     llvm_cv_target_os_type="DragonFly" ;;
3759   *-*-hpux*)
3760     llvm_cv_target_os_type="HP-UX" ;;
3761   *-*-interix*)
3762     llvm_cv_target_os_type="Interix" ;;
3763   *-*-linux*)
3764     llvm_cv_target_os_type="Linux" ;;
3765   *-*-gnu*)
3766     llvm_cv_target_os_type="GNU" ;;
3767   *-*-solaris*)
3768     llvm_cv_target_os_type="SunOS" ;;
3769   *-*-auroraux*)
3770     llvm_cv_target_os_type="AuroraUX" ;;
3771   *-*-win32*)
3772     llvm_cv_target_os_type="Win32" ;;
3773   *-*-mingw*)
3774     llvm_cv_target_os_type="MingW" ;;
3775   *-*-haiku*)
3776     llvm_cv_target_os_type="Haiku" ;;
3777   *-*-rtems*)
3778     llvm_cv_target_os_type="RTEMS" ;;
3779   *-*-nacl*)
3780     llvm_cv_target_os_type="NativeClient" ;;
3781   *-unknown-eabi*)
3782     llvm_cv_target_os_type="Freestanding" ;;
3783   *)
3784     llvm_cv_target_os_type="Unknown" ;;
3785 esac
3786 fi
3787 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3788 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3789
3790 if test "$llvm_cv_os_type" = "Unknown" ; then
3791   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3792 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3793    { (exit 1); exit 1; }; }
3794 fi
3795
3796 OS=$llvm_cv_os_type
3797
3798 HOST_OS=$llvm_cv_os_type
3799
3800 TARGET_OS=$llvm_cv_target_os_type
3801
3802
3803 LINKALL=$llvm_cv_link_all_option
3804
3805 NOLINKALL=$llvm_cv_no_link_all_option
3806
3807
3808 case $llvm_cv_platform_type in
3809   Unix)
3810
3811 cat >>confdefs.h <<\_ACEOF
3812 #define LLVM_ON_UNIX 1
3813 _ACEOF
3814
3815     LLVM_ON_UNIX=1
3816
3817     LLVM_ON_WIN32=0
3818
3819     ;;
3820   Win32)
3821
3822 cat >>confdefs.h <<\_ACEOF
3823 #define LLVM_ON_WIN32 1
3824 _ACEOF
3825
3826     LLVM_ON_UNIX=0
3827
3828     LLVM_ON_WIN32=1
3829
3830     ;;
3831 esac
3832
3833 { echo "$as_me:$LINENO: checking target architecture" >&5
3834 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3835 if test "${llvm_cv_target_arch+set}" = set; then
3836   echo $ECHO_N "(cached) $ECHO_C" >&6
3837 else
3838   case $target in
3839   i?86-*)                 llvm_cv_target_arch="x86" ;;
3840   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3841   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3842   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3843   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3844   mips-*)                 llvm_cv_target_arch="Mips" ;;
3845   mipsel-*)               llvm_cv_target_arch="Mips" ;;
3846   xcore-*)                llvm_cv_target_arch="XCore" ;;
3847   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3848   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3849   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3850   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
3851   *)                      llvm_cv_target_arch="Unknown" ;;
3852 esac
3853 fi
3854 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3855 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3856
3857 if test "$llvm_cv_target_arch" = "Unknown" ; then
3858   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3859 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3860 fi
3861
3862 # Determine the LLVM native architecture for the target
3863 case "$llvm_cv_target_arch" in
3864     x86)     LLVM_NATIVE_ARCH="X86" ;;
3865     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3866     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3867 esac
3868
3869 ARCH=$llvm_cv_target_arch
3870
3871
3872
3873
3874 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3875 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3876 if test "${ac_cv_path_GREP+set}" = set; then
3877   echo $ECHO_N "(cached) $ECHO_C" >&6
3878 else
3879   # Extract the first word of "grep ggrep" to use in msg output
3880 if test -z "$GREP"; then
3881 set dummy grep ggrep; ac_prog_name=$2
3882 if test "${ac_cv_path_GREP+set}" = set; then
3883   echo $ECHO_N "(cached) $ECHO_C" >&6
3884 else
3885   ac_path_GREP_found=false
3886 # Loop through the user's path and test for each of PROGNAME-LIST
3887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3889 do
3890   IFS=$as_save_IFS
3891   test -z "$as_dir" && as_dir=.
3892   for ac_prog in grep ggrep; do
3893   for ac_exec_ext in '' $ac_executable_extensions; do
3894     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3895     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3896     # Check for GNU ac_path_GREP and select it if it is found.
3897   # Check for GNU $ac_path_GREP
3898 case `"$ac_path_GREP" --version 2>&1` in
3899 *GNU*)
3900   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3901 *)
3902   ac_count=0
3903   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3904   while :
3905   do
3906     cat "conftest.in" "conftest.in" >"conftest.tmp"
3907     mv "conftest.tmp" "conftest.in"
3908     cp "conftest.in" "conftest.nl"
3909     echo 'GREP' >> "conftest.nl"
3910     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3911     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3912     ac_count=`expr $ac_count + 1`
3913     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3914       # Best one so far, save it but keep looking for a better one
3915       ac_cv_path_GREP="$ac_path_GREP"
3916       ac_path_GREP_max=$ac_count
3917     fi
3918     # 10*(2^10) chars as input seems more than enough
3919     test $ac_count -gt 10 && break
3920   done
3921   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3922 esac
3923
3924
3925     $ac_path_GREP_found && break 3
3926   done
3927 done
3928
3929 done
3930 IFS=$as_save_IFS
3931
3932
3933 fi
3934
3935 GREP="$ac_cv_path_GREP"
3936 if test -z "$GREP"; then
3937   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3938 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3939    { (exit 1); exit 1; }; }
3940 fi
3941
3942 else
3943   ac_cv_path_GREP=$GREP
3944 fi
3945
3946
3947 fi
3948 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3949 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3950  GREP="$ac_cv_path_GREP"
3951
3952
3953 { echo "$as_me:$LINENO: checking for egrep" >&5
3954 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3955 if test "${ac_cv_path_EGREP+set}" = set; then
3956   echo $ECHO_N "(cached) $ECHO_C" >&6
3957 else
3958   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3959    then ac_cv_path_EGREP="$GREP -E"
3960    else
3961      # Extract the first word of "egrep" to use in msg output
3962 if test -z "$EGREP"; then
3963 set dummy egrep; ac_prog_name=$2
3964 if test "${ac_cv_path_EGREP+set}" = set; then
3965   echo $ECHO_N "(cached) $ECHO_C" >&6
3966 else
3967   ac_path_EGREP_found=false
3968 # Loop through the user's path and test for each of PROGNAME-LIST
3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3971 do
3972   IFS=$as_save_IFS
3973   test -z "$as_dir" && as_dir=.
3974   for ac_prog in egrep; do
3975   for ac_exec_ext in '' $ac_executable_extensions; do
3976     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3977     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3978     # Check for GNU ac_path_EGREP and select it if it is found.
3979   # Check for GNU $ac_path_EGREP
3980 case `"$ac_path_EGREP" --version 2>&1` in
3981 *GNU*)
3982   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3983 *)
3984   ac_count=0
3985   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3986   while :
3987   do
3988     cat "conftest.in" "conftest.in" >"conftest.tmp"
3989     mv "conftest.tmp" "conftest.in"
3990     cp "conftest.in" "conftest.nl"
3991     echo 'EGREP' >> "conftest.nl"
3992     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3993     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3994     ac_count=`expr $ac_count + 1`
3995     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3996       # Best one so far, save it but keep looking for a better one
3997       ac_cv_path_EGREP="$ac_path_EGREP"
3998       ac_path_EGREP_max=$ac_count
3999     fi
4000     # 10*(2^10) chars as input seems more than enough
4001     test $ac_count -gt 10 && break
4002   done
4003   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4004 esac
4005
4006
4007     $ac_path_EGREP_found && break 3
4008   done
4009 done
4010
4011 done
4012 IFS=$as_save_IFS
4013
4014
4015 fi
4016
4017 EGREP="$ac_cv_path_EGREP"
4018 if test -z "$EGREP"; then
4019   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4020 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4021    { (exit 1); exit 1; }; }
4022 fi
4023
4024 else
4025   ac_cv_path_EGREP=$EGREP
4026 fi
4027
4028
4029    fi
4030 fi
4031 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4032 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4033  EGREP="$ac_cv_path_EGREP"
4034
4035
4036 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4037 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4038 if test "${ac_cv_header_stdc+set}" = set; then
4039   echo $ECHO_N "(cached) $ECHO_C" >&6
4040 else
4041   cat >conftest.$ac_ext <<_ACEOF
4042 /* confdefs.h.  */
4043 _ACEOF
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h.  */
4047 #include <stdlib.h>
4048 #include <stdarg.h>
4049 #include <string.h>
4050 #include <float.h>
4051
4052 int
4053 main ()
4054 {
4055
4056   ;
4057   return 0;
4058 }
4059 _ACEOF
4060 rm -f conftest.$ac_objext
4061 if { (ac_try="$ac_compile"
4062 case "(($ac_try" in
4063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064   *) ac_try_echo=$ac_try;;
4065 esac
4066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4067   (eval "$ac_compile") 2>conftest.er1
4068   ac_status=$?
4069   grep -v '^ *+' conftest.er1 >conftest.err
4070   rm -f conftest.er1
4071   cat conftest.err >&5
4072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073   (exit $ac_status); } &&
4074          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4075   { (case "(($ac_try" in
4076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077   *) ac_try_echo=$ac_try;;
4078 esac
4079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4080   (eval "$ac_try") 2>&5
4081   ac_status=$?
4082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083   (exit $ac_status); }; } &&
4084          { ac_try='test -s conftest.$ac_objext'
4085   { (case "(($ac_try" in
4086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087   *) ac_try_echo=$ac_try;;
4088 esac
4089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4090   (eval "$ac_try") 2>&5
4091   ac_status=$?
4092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093   (exit $ac_status); }; }; then
4094   ac_cv_header_stdc=yes
4095 else
4096   echo "$as_me: failed program was:" >&5
4097 sed 's/^/| /' conftest.$ac_ext >&5
4098
4099         ac_cv_header_stdc=no
4100 fi
4101
4102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4103
4104 if test $ac_cv_header_stdc = yes; then
4105   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4106   cat >conftest.$ac_ext <<_ACEOF
4107 /* confdefs.h.  */
4108 _ACEOF
4109 cat confdefs.h >>conftest.$ac_ext
4110 cat >>conftest.$ac_ext <<_ACEOF
4111 /* end confdefs.h.  */
4112 #include <string.h>
4113
4114 _ACEOF
4115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4116   $EGREP "memchr" >/dev/null 2>&1; then
4117   :
4118 else
4119   ac_cv_header_stdc=no
4120 fi
4121 rm -f conftest*
4122
4123 fi
4124
4125 if test $ac_cv_header_stdc = yes; then
4126   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4127   cat >conftest.$ac_ext <<_ACEOF
4128 /* confdefs.h.  */
4129 _ACEOF
4130 cat confdefs.h >>conftest.$ac_ext
4131 cat >>conftest.$ac_ext <<_ACEOF
4132 /* end confdefs.h.  */
4133 #include <stdlib.h>
4134
4135 _ACEOF
4136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4137   $EGREP "free" >/dev/null 2>&1; then
4138   :
4139 else
4140   ac_cv_header_stdc=no
4141 fi
4142 rm -f conftest*
4143
4144 fi
4145
4146 if test $ac_cv_header_stdc = yes; then
4147   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4148   if test "$cross_compiling" = yes; then
4149   :
4150 else
4151   cat >conftest.$ac_ext <<_ACEOF
4152 /* confdefs.h.  */
4153 _ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h.  */
4157 #include <ctype.h>
4158 #include <stdlib.h>
4159 #if ((' ' & 0x0FF) == 0x020)
4160 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4161 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4162 #else
4163 # define ISLOWER(c) \
4164                    (('a' <= (c) && (c) <= 'i') \
4165                      || ('j' <= (c) && (c) <= 'r') \
4166                      || ('s' <= (c) && (c) <= 'z'))
4167 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4168 #endif
4169
4170 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4171 int
4172 main ()
4173 {
4174   int i;
4175   for (i = 0; i < 256; i++)
4176     if (XOR (islower (i), ISLOWER (i))
4177         || toupper (i) != TOUPPER (i))
4178       return 2;
4179   return 0;
4180 }
4181 _ACEOF
4182 rm -f conftest$ac_exeext
4183 if { (ac_try="$ac_link"
4184 case "(($ac_try" in
4185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186   *) ac_try_echo=$ac_try;;
4187 esac
4188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189   (eval "$ac_link") 2>&5
4190   ac_status=$?
4191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4193   { (case "(($ac_try" in
4194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4195   *) ac_try_echo=$ac_try;;
4196 esac
4197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4198   (eval "$ac_try") 2>&5
4199   ac_status=$?
4200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201   (exit $ac_status); }; }; then
4202   :
4203 else
4204   echo "$as_me: program exited with status $ac_status" >&5
4205 echo "$as_me: failed program was:" >&5
4206 sed 's/^/| /' conftest.$ac_ext >&5
4207
4208 ( exit $ac_status )
4209 ac_cv_header_stdc=no
4210 fi
4211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4212 fi
4213
4214
4215 fi
4216 fi
4217 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4218 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4219 if test $ac_cv_header_stdc = yes; then
4220
4221 cat >>confdefs.h <<\_ACEOF
4222 #define STDC_HEADERS 1
4223 _ACEOF
4224
4225 fi
4226
4227 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4238                   inttypes.h stdint.h unistd.h
4239 do
4240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4241 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4244   echo $ECHO_N "(cached) $ECHO_C" >&6
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
4254 #include <$ac_header>
4255 _ACEOF
4256 rm -f conftest.$ac_objext
4257 if { (ac_try="$ac_compile"
4258 case "(($ac_try" in
4259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260   *) ac_try_echo=$ac_try;;
4261 esac
4262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4263   (eval "$ac_compile") 2>conftest.er1
4264   ac_status=$?
4265   grep -v '^ *+' conftest.er1 >conftest.err
4266   rm -f conftest.er1
4267   cat conftest.err >&5
4268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269   (exit $ac_status); } &&
4270          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4271   { (case "(($ac_try" in
4272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273   *) ac_try_echo=$ac_try;;
4274 esac
4275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4276   (eval "$ac_try") 2>&5
4277   ac_status=$?
4278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279   (exit $ac_status); }; } &&
4280          { ac_try='test -s conftest.$ac_objext'
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   eval "$as_ac_Header=yes"
4291 else
4292   echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4294
4295         eval "$as_ac_Header=no"
4296 fi
4297
4298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4299 fi
4300 ac_res=`eval echo '${'$as_ac_Header'}'`
4301                { echo "$as_me:$LINENO: result: $ac_res" >&5
4302 echo "${ECHO_T}$ac_res" >&6; }
4303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4304   cat >>confdefs.h <<_ACEOF
4305 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4306 _ACEOF
4307
4308 fi
4309
4310 done
4311
4312
4313 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4314 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4315 if test "${ac_cv_c_bigendian+set}" = set; then
4316   echo $ECHO_N "(cached) $ECHO_C" >&6
4317 else
4318   # See if sys/param.h defines the BYTE_ORDER macro.
4319 cat >conftest.$ac_ext <<_ACEOF
4320 /* confdefs.h.  */
4321 _ACEOF
4322 cat confdefs.h >>conftest.$ac_ext
4323 cat >>conftest.$ac_ext <<_ACEOF
4324 /* end confdefs.h.  */
4325 #include <sys/types.h>
4326 #include <sys/param.h>
4327
4328 int
4329 main ()
4330 {
4331 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4332  bogus endian macros
4333 #endif
4334
4335   ;
4336   return 0;
4337 }
4338 _ACEOF
4339 rm -f conftest.$ac_objext
4340 if { (ac_try="$ac_compile"
4341 case "(($ac_try" in
4342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343   *) ac_try_echo=$ac_try;;
4344 esac
4345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4346   (eval "$ac_compile") 2>conftest.er1
4347   ac_status=$?
4348   grep -v '^ *+' conftest.er1 >conftest.err
4349   rm -f conftest.er1
4350   cat conftest.err >&5
4351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352   (exit $ac_status); } &&
4353          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4354   { (case "(($ac_try" in
4355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356   *) ac_try_echo=$ac_try;;
4357 esac
4358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4359   (eval "$ac_try") 2>&5
4360   ac_status=$?
4361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362   (exit $ac_status); }; } &&
4363          { ac_try='test -s conftest.$ac_objext'
4364   { (case "(($ac_try" in
4365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366   *) ac_try_echo=$ac_try;;
4367 esac
4368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4369   (eval "$ac_try") 2>&5
4370   ac_status=$?
4371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372   (exit $ac_status); }; }; then
4373   # It does; now see whether it defined to BIG_ENDIAN or not.
4374 cat >conftest.$ac_ext <<_ACEOF
4375 /* confdefs.h.  */
4376 _ACEOF
4377 cat confdefs.h >>conftest.$ac_ext
4378 cat >>conftest.$ac_ext <<_ACEOF
4379 /* end confdefs.h.  */
4380 #include <sys/types.h>
4381 #include <sys/param.h>
4382
4383 int
4384 main ()
4385 {
4386 #if BYTE_ORDER != BIG_ENDIAN
4387  not big endian
4388 #endif
4389
4390   ;
4391   return 0;
4392 }
4393 _ACEOF
4394 rm -f conftest.$ac_objext
4395 if { (ac_try="$ac_compile"
4396 case "(($ac_try" in
4397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398   *) ac_try_echo=$ac_try;;
4399 esac
4400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4401   (eval "$ac_compile") 2>conftest.er1
4402   ac_status=$?
4403   grep -v '^ *+' conftest.er1 >conftest.err
4404   rm -f conftest.er1
4405   cat conftest.err >&5
4406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407   (exit $ac_status); } &&
4408          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4409   { (case "(($ac_try" in
4410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411   *) ac_try_echo=$ac_try;;
4412 esac
4413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4414   (eval "$ac_try") 2>&5
4415   ac_status=$?
4416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417   (exit $ac_status); }; } &&
4418          { ac_try='test -s conftest.$ac_objext'
4419   { (case "(($ac_try" in
4420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421   *) ac_try_echo=$ac_try;;
4422 esac
4423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4424   (eval "$ac_try") 2>&5
4425   ac_status=$?
4426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427   (exit $ac_status); }; }; then
4428   ac_cv_c_bigendian=yes
4429 else
4430   echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4432
4433         ac_cv_c_bigendian=no
4434 fi
4435
4436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4437 else
4438   echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.$ac_ext >&5
4440
4441         # It does not; compile a test program.
4442 if test "$cross_compiling" = yes; then
4443   # try to guess the endianness by grepping values into an object file
4444   ac_cv_c_bigendian=unknown
4445   cat >conftest.$ac_ext <<_ACEOF
4446 /* confdefs.h.  */
4447 _ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h.  */
4451 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4452 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4453 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4454 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4455 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4456 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4457 int
4458 main ()
4459 {
4460  _ascii (); _ebcdic ();
4461   ;
4462   return 0;
4463 }
4464 _ACEOF
4465 rm -f conftest.$ac_objext
4466 if { (ac_try="$ac_compile"
4467 case "(($ac_try" in
4468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4469   *) ac_try_echo=$ac_try;;
4470 esac
4471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4472   (eval "$ac_compile") 2>conftest.er1
4473   ac_status=$?
4474   grep -v '^ *+' conftest.er1 >conftest.err
4475   rm -f conftest.er1
4476   cat conftest.err >&5
4477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478   (exit $ac_status); } &&
4479          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4480   { (case "(($ac_try" in
4481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482   *) ac_try_echo=$ac_try;;
4483 esac
4484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4485   (eval "$ac_try") 2>&5
4486   ac_status=$?
4487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488   (exit $ac_status); }; } &&
4489          { ac_try='test -s conftest.$ac_objext'
4490   { (case "(($ac_try" in
4491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4492   *) ac_try_echo=$ac_try;;
4493 esac
4494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4495   (eval "$ac_try") 2>&5
4496   ac_status=$?
4497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498   (exit $ac_status); }; }; then
4499   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4500   ac_cv_c_bigendian=yes
4501 fi
4502 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4503   if test "$ac_cv_c_bigendian" = unknown; then
4504     ac_cv_c_bigendian=no
4505   else
4506     # finding both strings is unlikely to happen, but who knows?
4507     ac_cv_c_bigendian=unknown
4508   fi
4509 fi
4510 else
4511   echo "$as_me: failed program was:" >&5
4512 sed 's/^/| /' conftest.$ac_ext >&5
4513
4514
4515 fi
4516
4517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4518 else
4519   cat >conftest.$ac_ext <<_ACEOF
4520 /* confdefs.h.  */
4521 _ACEOF
4522 cat confdefs.h >>conftest.$ac_ext
4523 cat >>conftest.$ac_ext <<_ACEOF
4524 /* end confdefs.h.  */
4525 $ac_includes_default
4526 int
4527 main ()
4528 {
4529
4530   /* Are we little or big endian?  From Harbison&Steele.  */
4531   union
4532   {
4533     long int l;
4534     char c[sizeof (long int)];
4535   } u;
4536   u.l = 1;
4537   return u.c[sizeof (long int) - 1] == 1;
4538
4539   ;
4540   return 0;
4541 }
4542 _ACEOF
4543 rm -f conftest$ac_exeext
4544 if { (ac_try="$ac_link"
4545 case "(($ac_try" in
4546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547   *) ac_try_echo=$ac_try;;
4548 esac
4549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4550   (eval "$ac_link") 2>&5
4551   ac_status=$?
4552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4554   { (case "(($ac_try" in
4555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556   *) ac_try_echo=$ac_try;;
4557 esac
4558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4559   (eval "$ac_try") 2>&5
4560   ac_status=$?
4561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562   (exit $ac_status); }; }; then
4563   ac_cv_c_bigendian=no
4564 else
4565   echo "$as_me: program exited with status $ac_status" >&5
4566 echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4568
4569 ( exit $ac_status )
4570 ac_cv_c_bigendian=yes
4571 fi
4572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4573 fi
4574
4575
4576 fi
4577
4578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4579 fi
4580 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4581 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4582 case $ac_cv_c_bigendian in
4583   yes)
4584     ENDIAN=big
4585  ;;
4586   no)
4587     ENDIAN=little
4588  ;;
4589   *)
4590     { { echo "$as_me:$LINENO: error: unknown endianness
4591 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4592 echo "$as_me: error: unknown endianness
4593 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4594    { (exit 1); exit 1; }; } ;;
4595 esac
4596
4597
4598 if test "$cross_compiling" = yes; then
4599   LLVM_CROSS_COMPILING=1
4600
4601
4602 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4603 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4604 if test "${ac_cv_build_exeext+set}" = set; then
4605   echo $ECHO_N "(cached) $ECHO_C" >&6
4606 else
4607   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4608   ac_cv_build_exeext=.exe
4609 else
4610   ac_build_prefix=${build_alias}-
4611
4612   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4613 set dummy ${ac_build_prefix}gcc; ac_word=$2
4614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4616 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4617   echo $ECHO_N "(cached) $ECHO_C" >&6
4618 else
4619   if test -n "$BUILD_CC"; then
4620   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4621 else
4622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623 for as_dir in $PATH
4624 do
4625   IFS=$as_save_IFS
4626   test -z "$as_dir" && as_dir=.
4627   for ac_exec_ext in '' $ac_executable_extensions; do
4628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4629     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4630     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4631     break 2
4632   fi
4633 done
4634 done
4635 IFS=$as_save_IFS
4636
4637 fi
4638 fi
4639 BUILD_CC=$ac_cv_prog_BUILD_CC
4640 if test -n "$BUILD_CC"; then
4641   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4642 echo "${ECHO_T}$BUILD_CC" >&6; }
4643 else
4644   { echo "$as_me:$LINENO: result: no" >&5
4645 echo "${ECHO_T}no" >&6; }
4646 fi
4647
4648
4649   if test -z "$BUILD_CC"; then
4650      # Extract the first word of "gcc", so it can be a program name with args.
4651 set dummy gcc; ac_word=$2
4652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4654 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4655   echo $ECHO_N "(cached) $ECHO_C" >&6
4656 else
4657   if test -n "$BUILD_CC"; then
4658   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4659 else
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 for as_dir in $PATH
4662 do
4663   IFS=$as_save_IFS
4664   test -z "$as_dir" && as_dir=.
4665   for ac_exec_ext in '' $ac_executable_extensions; do
4666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4667     ac_cv_prog_BUILD_CC="gcc"
4668     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4669     break 2
4670   fi
4671 done
4672 done
4673 IFS=$as_save_IFS
4674
4675 fi
4676 fi
4677 BUILD_CC=$ac_cv_prog_BUILD_CC
4678 if test -n "$BUILD_CC"; then
4679   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4680 echo "${ECHO_T}$BUILD_CC" >&6; }
4681 else
4682   { echo "$as_me:$LINENO: result: no" >&5
4683 echo "${ECHO_T}no" >&6; }
4684 fi
4685
4686
4687      if test -z "$BUILD_CC"; then
4688        # Extract the first word of "cc", so it can be a program name with args.
4689 set dummy cc; ac_word=$2
4690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4692 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4693   echo $ECHO_N "(cached) $ECHO_C" >&6
4694 else
4695   if test -n "$BUILD_CC"; then
4696   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4697 else
4698   ac_prog_rejected=no
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700 for as_dir in $PATH
4701 do
4702   IFS=$as_save_IFS
4703   test -z "$as_dir" && as_dir=.
4704   for ac_exec_ext in '' $ac_executable_extensions; do
4705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4706     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4707        ac_prog_rejected=yes
4708        continue
4709      fi
4710     ac_cv_prog_BUILD_CC="cc"
4711     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4712     break 2
4713   fi
4714 done
4715 done
4716 IFS=$as_save_IFS
4717
4718 if test $ac_prog_rejected = yes; then
4719   # We found a bogon in the path, so make sure we never use it.
4720   set dummy $ac_cv_prog_BUILD_CC
4721   shift
4722   if test $# != 0; then
4723     # We chose a different compiler from the bogus one.
4724     # However, it has the same basename, so the bogon will be chosen
4725     # first if we set BUILD_CC to just the basename; use the full file name.
4726     shift
4727     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4728   fi
4729 fi
4730 fi
4731 fi
4732 BUILD_CC=$ac_cv_prog_BUILD_CC
4733 if test -n "$BUILD_CC"; then
4734   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4735 echo "${ECHO_T}$BUILD_CC" >&6; }
4736 else
4737   { echo "$as_me:$LINENO: result: no" >&5
4738 echo "${ECHO_T}no" >&6; }
4739 fi
4740
4741
4742      fi
4743   fi
4744   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4745 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4746    { (exit 1); exit 1; }; }
4747   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4748   rm -f conftest*
4749   echo 'int main () { return 0; }' > conftest.$ac_ext
4750   ac_cv_build_exeext=
4751   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4752   (eval $ac_build_link) 2>&5
4753   ac_status=$?
4754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755   (exit $ac_status); }; then
4756     for file in conftest.*; do
4757       case $file in
4758       *.c | *.o | *.obj | *.dSYM) ;;
4759       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4760       esac
4761     done
4762   else
4763     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4764 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4765    { (exit 1); exit 1; }; }
4766   fi
4767   rm -f conftest*
4768   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4769 fi
4770 fi
4771
4772 BUILD_EXEEXT=""
4773 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4774 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4775 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4776 ac_build_exeext=$BUILD_EXEEXT
4777
4778   ac_build_prefix=${build_alias}-
4779   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4780 set dummy ${ac_build_prefix}g++; ac_word=$2
4781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4783 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4784   echo $ECHO_N "(cached) $ECHO_C" >&6
4785 else
4786   if test -n "$BUILD_CXX"; then
4787   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4788 else
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 for as_dir in $PATH
4791 do
4792   IFS=$as_save_IFS
4793   test -z "$as_dir" && as_dir=.
4794   for ac_exec_ext in '' $ac_executable_extensions; do
4795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4796     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4798     break 2
4799   fi
4800 done
4801 done
4802 IFS=$as_save_IFS
4803
4804 fi
4805 fi
4806 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4807 if test -n "$BUILD_CXX"; then
4808   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4809 echo "${ECHO_T}$BUILD_CXX" >&6; }
4810 else
4811   { echo "$as_me:$LINENO: result: no" >&5
4812 echo "${ECHO_T}no" >&6; }
4813 fi
4814
4815
4816   if test -z "$BUILD_CXX"; then
4817      # Extract the first word of "g++", so it can be a program name with args.
4818 set dummy g++; ac_word=$2
4819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4821 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4822   echo $ECHO_N "(cached) $ECHO_C" >&6
4823 else
4824   if test -n "$BUILD_CXX"; then
4825   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4826 else
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 for as_dir in $PATH
4829 do
4830   IFS=$as_save_IFS
4831   test -z "$as_dir" && as_dir=.
4832   for ac_exec_ext in '' $ac_executable_extensions; do
4833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4834     ac_cv_prog_BUILD_CXX="g++"
4835     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4836     break 2
4837   fi
4838 done
4839 done
4840 IFS=$as_save_IFS
4841
4842 fi
4843 fi
4844 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4845 if test -n "$BUILD_CXX"; then
4846   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4847 echo "${ECHO_T}$BUILD_CXX" >&6; }
4848 else
4849   { echo "$as_me:$LINENO: result: no" >&5
4850 echo "${ECHO_T}no" >&6; }
4851 fi
4852
4853
4854      if test -z "$BUILD_CXX"; then
4855        # Extract the first word of "c++", so it can be a program name with args.
4856 set dummy c++; ac_word=$2
4857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4859 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4860   echo $ECHO_N "(cached) $ECHO_C" >&6
4861 else
4862   if test -n "$BUILD_CXX"; then
4863   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4864 else
4865   ac_prog_rejected=no
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4868 do
4869   IFS=$as_save_IFS
4870   test -z "$as_dir" && as_dir=.
4871   for ac_exec_ext in '' $ac_executable_extensions; do
4872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4873     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4874        ac_prog_rejected=yes
4875        continue
4876      fi
4877     ac_cv_prog_BUILD_CXX="c++"
4878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879     break 2
4880   fi
4881 done
4882 done
4883 IFS=$as_save_IFS
4884
4885 if test $ac_prog_rejected = yes; then
4886   # We found a bogon in the path, so make sure we never use it.
4887   set dummy $ac_cv_prog_BUILD_CXX
4888   shift
4889   if test $# != 0; then
4890     # We chose a different compiler from the bogus one.
4891     # However, it has the same basename, so the bogon will be chosen
4892     # first if we set BUILD_CXX to just the basename; use the full file name.
4893     shift
4894     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4895   fi
4896 fi
4897 fi
4898 fi
4899 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4900 if test -n "$BUILD_CXX"; then
4901   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4902 echo "${ECHO_T}$BUILD_CXX" >&6; }
4903 else
4904   { echo "$as_me:$LINENO: result: no" >&5
4905 echo "${ECHO_T}no" >&6; }
4906 fi
4907
4908
4909      fi
4910   fi
4911 else
4912   LLVM_CROSS_COMPILING=0
4913
4914 fi
4915
4916 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4917   cvsbuild="yes"
4918   optimize="no"
4919   CVSBUILD=CVSBUILD=1
4920
4921 else
4922   cvsbuild="no"
4923   optimize="yes"
4924 fi
4925
4926
4927 # Check whether --enable-libcpp was given.
4928 if test "${enable_libcpp+set}" = set; then
4929   enableval=$enable_libcpp;
4930 else
4931   enableval=default
4932 fi
4933
4934 case "$enableval" in
4935   yes) ENABLE_LIBCPP=1
4936  ;;
4937   no)  ENABLE_LIBCPP=0
4938  ;;
4939   default) ENABLE_LIBCPP=0
4940 ;;
4941   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4942 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4943    { (exit 1); exit 1; }; } ;;
4944 esac
4945
4946 # Check whether --enable-optimized was given.
4947 if test "${enable_optimized+set}" = set; then
4948   enableval=$enable_optimized;
4949 else
4950   enableval=$optimize
4951 fi
4952
4953 if test ${enableval} = "no" ; then
4954   ENABLE_OPTIMIZED=
4955
4956 else
4957   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4958
4959 fi
4960
4961 # Check whether --enable-profiling was given.
4962 if test "${enable_profiling+set}" = set; then
4963   enableval=$enable_profiling;
4964 else
4965   enableval="no"
4966 fi
4967
4968 if test ${enableval} = "no" ; then
4969   ENABLE_PROFILING=
4970
4971 else
4972   ENABLE_PROFILING=ENABLE_PROFILING=1
4973
4974 fi
4975
4976 # Check whether --enable-assertions was given.
4977 if test "${enable_assertions+set}" = set; then
4978   enableval=$enable_assertions;
4979 else
4980   enableval="yes"
4981 fi
4982
4983 if test ${enableval} = "yes" ; then
4984   DISABLE_ASSERTIONS=
4985
4986 else
4987   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4988
4989 fi
4990
4991 # Check whether --enable-expensive-checks was given.
4992 if test "${enable_expensive_checks+set}" = set; then
4993   enableval=$enable_expensive_checks;
4994 else
4995   enableval="no"
4996 fi
4997
4998 if test ${enableval} = "yes" ; then
4999   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5000
5001   EXPENSIVE_CHECKS=yes
5002
5003 else
5004   ENABLE_EXPENSIVE_CHECKS=
5005
5006   EXPENSIVE_CHECKS=no
5007
5008 fi
5009
5010 # Check whether --enable-debug-runtime was given.
5011 if test "${enable_debug_runtime+set}" = set; then
5012   enableval=$enable_debug_runtime;
5013 else
5014   enableval=no
5015 fi
5016
5017 if test ${enableval} = "no" ; then
5018   DEBUG_RUNTIME=
5019
5020 else
5021   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5022
5023 fi
5024
5025 # Check whether --enable-debug-symbols was given.
5026 if test "${enable_debug_symbols+set}" = set; then
5027   enableval=$enable_debug_symbols;
5028 else
5029   enableval=no
5030 fi
5031
5032 if test ${enableval} = "no" ; then
5033   DEBUG_SYMBOLS=
5034
5035 else
5036   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5037
5038 fi
5039
5040 # Check whether --enable-jit was given.
5041 if test "${enable_jit+set}" = set; then
5042   enableval=$enable_jit;
5043 else
5044   enableval=default
5045 fi
5046
5047 if test ${enableval} = "no"
5048 then
5049   JIT=
5050
5051 else
5052   case "$llvm_cv_target_arch" in
5053     x86)         TARGET_HAS_JIT=1
5054  ;;
5055     Sparc)       TARGET_HAS_JIT=0
5056  ;;
5057     PowerPC)     TARGET_HAS_JIT=1
5058  ;;
5059     x86_64)      TARGET_HAS_JIT=1
5060  ;;
5061     ARM)         TARGET_HAS_JIT=1
5062  ;;
5063     Mips)        TARGET_HAS_JIT=1
5064  ;;
5065     XCore)       TARGET_HAS_JIT=0
5066  ;;
5067     MSP430)      TARGET_HAS_JIT=0
5068  ;;
5069     Hexagon)     TARGET_HAS_JIT=0
5070  ;;
5071     MBlaze)      TARGET_HAS_JIT=0
5072  ;;
5073     NVPTX)       TARGET_HAS_JIT=0
5074  ;;
5075     *)           TARGET_HAS_JIT=0
5076  ;;
5077   esac
5078 fi
5079
5080 # Check whether --enable-docs was given.
5081 if test "${enable_docs+set}" = set; then
5082   enableval=$enable_docs;
5083 else
5084   enableval=default
5085 fi
5086
5087 case "$enableval" in
5088   yes) ENABLE_DOCS=1
5089  ;;
5090   no)  ENABLE_DOCS=0
5091  ;;
5092   default) ENABLE_DOCS=1
5093  ;;
5094   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5095 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5096    { (exit 1); exit 1; }; } ;;
5097 esac
5098
5099 # Check whether --enable-doxygen was given.
5100 if test "${enable_doxygen+set}" = set; then
5101   enableval=$enable_doxygen;
5102 else
5103   enableval=default
5104 fi
5105
5106 case "$enableval" in
5107   yes) ENABLE_DOXYGEN=1
5108  ;;
5109   no)  ENABLE_DOXYGEN=0
5110  ;;
5111   default) ENABLE_DOXYGEN=0
5112  ;;
5113   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5114 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5115    { (exit 1); exit 1; }; } ;;
5116 esac
5117
5118 # Check whether --enable-threads was given.
5119 if test "${enable_threads+set}" = set; then
5120   enableval=$enable_threads;
5121 else
5122   enableval=default
5123 fi
5124
5125 case "$enableval" in
5126   yes) ENABLE_THREADS=1
5127  ;;
5128   no)  ENABLE_THREADS=0
5129  ;;
5130   default) ENABLE_THREADS=1
5131  ;;
5132   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5133 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5134    { (exit 1); exit 1; }; } ;;
5135 esac
5136
5137 cat >>confdefs.h <<_ACEOF
5138 #define ENABLE_THREADS $ENABLE_THREADS
5139 _ACEOF
5140
5141
5142 # Check whether --enable-pthreads was given.
5143 if test "${enable_pthreads+set}" = set; then
5144   enableval=$enable_pthreads;
5145 else
5146   enableval=default
5147 fi
5148
5149 case "$enableval" in
5150   yes) ENABLE_PTHREADS=1
5151  ;;
5152   no)  ENABLE_PTHREADS=0
5153  ;;
5154   default) ENABLE_PTHREADS=1
5155  ;;
5156   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5157 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5158    { (exit 1); exit 1; }; } ;;
5159 esac
5160
5161 # Check whether --enable-pic was given.
5162 if test "${enable_pic+set}" = set; then
5163   enableval=$enable_pic;
5164 else
5165   enableval=default
5166 fi
5167
5168 case "$enableval" in
5169   yes) ENABLE_PIC=1
5170  ;;
5171   no)  ENABLE_PIC=0
5172  ;;
5173   default) ENABLE_PIC=1
5174  ;;
5175   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5176 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5177    { (exit 1); exit 1; }; } ;;
5178 esac
5179
5180 cat >>confdefs.h <<_ACEOF
5181 #define ENABLE_PIC $ENABLE_PIC
5182 _ACEOF
5183
5184
5185 # Check whether --enable-shared was given.
5186 if test "${enable_shared+set}" = set; then
5187   enableval=$enable_shared;
5188 else
5189   enableval=default
5190 fi
5191
5192 case "$enableval" in
5193   yes) ENABLE_SHARED=1
5194  ;;
5195   no)  ENABLE_SHARED=0
5196  ;;
5197   default) ENABLE_SHARED=0
5198  ;;
5199   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5200 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5201    { (exit 1); exit 1; }; } ;;
5202 esac
5203
5204 # Check whether --enable-embed-stdcxx was given.
5205 if test "${enable_embed_stdcxx+set}" = set; then
5206   enableval=$enable_embed_stdcxx;
5207 else
5208   enableval=default
5209 fi
5210
5211 case "$enableval" in
5212   yes) ENABLE_EMBED_STDCXX=1
5213  ;;
5214   no)  ENABLE_EMBED_STDCXX=0
5215  ;;
5216   default) ENABLE_EMBED_STDCXX=1
5217  ;;
5218   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5219 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5220    { (exit 1); exit 1; }; } ;;
5221 esac
5222
5223 # Check whether --enable-timestamps was given.
5224 if test "${enable_timestamps+set}" = set; then
5225   enableval=$enable_timestamps;
5226 else
5227   enableval=default
5228 fi
5229
5230 case "$enableval" in
5231   yes) ENABLE_TIMESTAMPS=1
5232  ;;
5233   no)  ENABLE_TIMESTAMPS=0
5234  ;;
5235   default) ENABLE_TIMESTAMPS=1
5236  ;;
5237   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5238 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5239    { (exit 1); exit 1; }; } ;;
5240 esac
5241
5242 cat >>confdefs.h <<_ACEOF
5243 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5244 _ACEOF
5245
5246
5247 TARGETS_TO_BUILD=""
5248 # Check whether --enable-targets was given.
5249 if test "${enable_targets+set}" = set; then
5250   enableval=$enable_targets;
5251 else
5252   enableval=all
5253 fi
5254
5255 if test "$enableval" = host-only ; then
5256   enableval=host
5257 fi
5258 case "$enableval" in
5259   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 Hexagon CppBackend MBlaze NVPTX AMDGPU" ;;
5260   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5261       case "$a_target" in
5262         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5263         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5264         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5265         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5266         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5267         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5268         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5269         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5270         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5271         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5272         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5273         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5274         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5275         r600)     TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;;
5276         host) case "$llvm_cv_target_arch" in
5277             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5278             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5279             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5280             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5281             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5282             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5283             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5284             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5285             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5286             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5287             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5288             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5289             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5290 echo "$as_me: error: Can not set target to build" >&2;}
5291    { (exit 1); exit 1; }; } ;;
5292           esac ;;
5293         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5294 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5295    { (exit 1); exit 1; }; } ;;
5296       esac
5297   done
5298   ;;
5299 esac
5300 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5301
5302
5303 # Determine whether we are building LLVM support for the native architecture.
5304 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5305 for a_target in $TARGETS_TO_BUILD; do
5306   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5307
5308 cat >>confdefs.h <<_ACEOF
5309 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5310 _ACEOF
5311
5312     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5313     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5314     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5315     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5316     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5317       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5318     fi
5319     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5320       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5321     fi
5322
5323 cat >>confdefs.h <<_ACEOF
5324 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5325 _ACEOF
5326
5327
5328 cat >>confdefs.h <<_ACEOF
5329 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5330 _ACEOF
5331
5332
5333 cat >>confdefs.h <<_ACEOF
5334 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5335 _ACEOF
5336
5337
5338 cat >>confdefs.h <<_ACEOF
5339 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5340 _ACEOF
5341
5342     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5343
5344 cat >>confdefs.h <<_ACEOF
5345 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5346 _ACEOF
5347
5348     fi
5349     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5350
5351 cat >>confdefs.h <<_ACEOF
5352 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5353 _ACEOF
5354
5355     fi
5356   fi
5357 done
5358
5359 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5360 # target feature def files.
5361 LLVM_ENUM_TARGETS=""
5362 LLVM_ENUM_ASM_PRINTERS=""
5363 LLVM_ENUM_ASM_PARSERS=""
5364 LLVM_ENUM_DISASSEMBLERS=""
5365 for target_to_build in $TARGETS_TO_BUILD; do
5366   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5367   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5368     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5369   fi
5370   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5371     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5372   fi
5373   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5374     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5375   fi
5376 done
5377
5378
5379
5380
5381
5382
5383 # Check whether --with-optimize-option was given.
5384 if test "${with_optimize_option+set}" = set; then
5385   withval=$with_optimize_option;
5386 else
5387   withval=default
5388 fi
5389
5390 { echo "$as_me:$LINENO: checking optimization flags" >&5
5391 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5392 case "$withval" in
5393   default)
5394     case "$llvm_cv_os_type" in
5395     FreeBSD) optimize_option=-O2 ;;
5396     MingW) optimize_option=-O2 ;;
5397     *)     optimize_option=-O3 ;;
5398     esac ;;
5399   *) optimize_option="$withval" ;;
5400 esac
5401 OPTIMIZE_OPTION=$optimize_option
5402
5403 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5404 echo "${ECHO_T}$optimize_option" >&6; }
5405
5406
5407 # Check whether --with-extra-options was given.
5408 if test "${with_extra_options+set}" = set; then
5409   withval=$with_extra_options;
5410 else
5411   withval=default
5412 fi
5413
5414 case "$withval" in
5415   default) EXTRA_OPTIONS= ;;
5416   *) EXTRA_OPTIONS=$withval ;;
5417 esac
5418 EXTRA_OPTIONS=$EXTRA_OPTIONS
5419
5420
5421
5422 # Check whether --with-extra-ld-options was given.
5423 if test "${with_extra_ld_options+set}" = set; then
5424   withval=$with_extra_ld_options;
5425 else
5426   withval=default
5427 fi
5428
5429 case "$withval" in
5430   default) EXTRA_LD_OPTIONS= ;;
5431   *) EXTRA_LD_OPTIONS=$withval ;;
5432 esac
5433 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5434
5435
5436 # Check whether --enable-bindings was given.
5437 if test "${enable_bindings+set}" = set; then
5438   enableval=$enable_bindings;
5439 else
5440   enableval=default
5441 fi
5442
5443 BINDINGS_TO_BUILD=""
5444 case "$enableval" in
5445   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5446   all ) BINDINGS_TO_BUILD="ocaml" ;;
5447   none | no) BINDINGS_TO_BUILD="" ;;
5448   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5449       case "$a_binding" in
5450         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5451         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5452 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5453    { (exit 1); exit 1; }; } ;;
5454       esac
5455   done
5456   ;;
5457 esac
5458
5459
5460 # Check whether --with-ocaml-libdir was given.
5461 if test "${with_ocaml_libdir+set}" = set; then
5462   withval=$with_ocaml_libdir;
5463 else
5464   withval=auto
5465 fi
5466
5467 case "$withval" in
5468   auto) with_ocaml_libdir="$withval" ;;
5469   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5470   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5471 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5472    { (exit 1); exit 1; }; } ;;
5473 esac
5474
5475
5476 # Check whether --with-clang-resource-dir was given.
5477 if test "${with_clang_resource_dir+set}" = set; then
5478   withval=$with_clang_resource_dir;
5479 else
5480   withval=""
5481 fi
5482
5483
5484 cat >>confdefs.h <<_ACEOF
5485 #define CLANG_RESOURCE_DIR "$withval"
5486 _ACEOF
5487
5488
5489
5490 # Check whether --with-c-include-dirs was given.
5491 if test "${with_c_include_dirs+set}" = set; then
5492   withval=$with_c_include_dirs;
5493 else
5494   withval=""
5495 fi
5496
5497
5498 cat >>confdefs.h <<_ACEOF
5499 #define C_INCLUDE_DIRS "$withval"
5500 _ACEOF
5501
5502
5503 # Clang normally uses the system c++ headers and libraries. With this option,
5504 # clang will use the ones provided by a gcc installation instead. This option should
5505 # be passed the same value that was used with --prefix when configuring gcc.
5506
5507 # Check whether --with-gcc-toolchain was given.
5508 if test "${with_gcc_toolchain+set}" = set; then
5509   withval=$with_gcc_toolchain;
5510 else
5511   withval=""
5512 fi
5513
5514
5515 cat >>confdefs.h <<_ACEOF
5516 #define GCC_INSTALL_PREFIX "$withval"
5517 _ACEOF
5518
5519
5520
5521 # Check whether --with-binutils-include was given.
5522 if test "${with_binutils_include+set}" = set; then
5523   withval=$with_binutils_include;
5524 else
5525   withval=default
5526 fi
5527
5528 case "$withval" in
5529   default) WITH_BINUTILS_INCDIR=default ;;
5530   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5531   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5532 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5533    { (exit 1); exit 1; }; } ;;
5534 esac
5535 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5536   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5537
5538   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5539      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5540      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5541 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5542    { (exit 1); exit 1; }; };
5543   fi
5544 fi
5545
5546
5547 # Check whether --with-bug-report-url was given.
5548 if test "${with_bug_report_url+set}" = set; then
5549   withval=$with_bug_report_url;
5550 else
5551   withval="http://llvm.org/bugs/"
5552 fi
5553
5554
5555 cat >>confdefs.h <<_ACEOF
5556 #define BUG_REPORT_URL "$withval"
5557 _ACEOF
5558
5559
5560 # Check whether --enable-libffi was given.
5561 if test "${enable_libffi+set}" = set; then
5562   enableval=$enable_libffi; case "$enableval" in
5563     yes) llvm_cv_enable_libffi="yes" ;;
5564     no)  llvm_cv_enable_libffi="no"  ;;
5565     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5566 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5567    { (exit 1); exit 1; }; } ;;
5568   esac
5569 else
5570   llvm_cv_enable_libffi=no
5571 fi
5572
5573
5574
5575 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5576 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5577 if test "${lt_cv_path_NM+set}" = set; then
5578   echo $ECHO_N "(cached) $ECHO_C" >&6
5579 else
5580   if test -n "$NM"; then
5581   # Let the user override the test.
5582   lt_cv_path_NM="$NM"
5583 else
5584   lt_nm_to_check="${ac_tool_prefix}nm"
5585   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5586     lt_nm_to_check="$lt_nm_to_check nm"
5587   fi
5588   for lt_tmp_nm in $lt_nm_to_check; do
5589     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5590     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5591       IFS="$lt_save_ifs"
5592       test -z "$ac_dir" && ac_dir=.
5593       tmp_nm="$ac_dir/$lt_tmp_nm"
5594       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5595         # Check to see if the nm accepts a BSD-compat flag.
5596         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5597         #   nm: unknown option "B" ignored
5598         # Tru64's nm complains that /dev/null is an invalid object file
5599         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5600         */dev/null* | *'Invalid file or object type'*)
5601           lt_cv_path_NM="$tmp_nm -B"
5602           break
5603           ;;
5604         *)
5605           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5606           */dev/null*)
5607             lt_cv_path_NM="$tmp_nm -p"
5608             break
5609             ;;
5610           *)
5611             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5612             continue # so that we can try to find one that supports BSD flags
5613             ;;
5614           esac
5615           ;;
5616         esac
5617       fi
5618     done
5619     IFS="$lt_save_ifs"
5620   done
5621   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5622 fi
5623 fi
5624 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5625 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5626 NM="$lt_cv_path_NM"
5627
5628
5629
5630 { echo "$as_me:$LINENO: checking for GNU make" >&5
5631 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5632 if test "${llvm_cv_gnu_make_command+set}" = set; then
5633   echo $ECHO_N "(cached) $ECHO_C" >&6
5634 else
5635   llvm_cv_gnu_make_command=''
5636  for a in "$MAKE" make gmake gnumake ; do
5637   if test -z "$a" ; then continue ; fi ;
5638   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5639   then
5640    llvm_cv_gnu_make_command=$a ;
5641    break;
5642   fi
5643  done
5644 fi
5645 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5646 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5647  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5648    ifGNUmake='' ;
5649  else
5650    ifGNUmake='#' ;
5651    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5652 echo "${ECHO_T}\"Not found\"" >&6; };
5653  fi
5654
5655
5656 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5657 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5658 LN_S=$as_ln_s
5659 if test "$LN_S" = "ln -s"; then
5660   { echo "$as_me:$LINENO: result: yes" >&5
5661 echo "${ECHO_T}yes" >&6; }
5662 else
5663   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5664 echo "${ECHO_T}no, using $LN_S" >&6; }
5665 fi
5666
5667 # Extract the first word of "cmp", so it can be a program name with args.
5668 set dummy cmp; ac_word=$2
5669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5671 if test "${ac_cv_path_CMP+set}" = set; then
5672   echo $ECHO_N "(cached) $ECHO_C" >&6
5673 else
5674   case $CMP in
5675   [\\/]* | ?:[\\/]*)
5676   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5677   ;;
5678   *)
5679   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680 for as_dir in $PATH
5681 do
5682   IFS=$as_save_IFS
5683   test -z "$as_dir" && as_dir=.
5684   for ac_exec_ext in '' $ac_executable_extensions; do
5685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5686     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5688     break 2
5689   fi
5690 done
5691 done
5692 IFS=$as_save_IFS
5693
5694   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5695   ;;
5696 esac
5697 fi
5698 CMP=$ac_cv_path_CMP
5699 if test -n "$CMP"; then
5700   { echo "$as_me:$LINENO: result: $CMP" >&5
5701 echo "${ECHO_T}$CMP" >&6; }
5702 else
5703   { echo "$as_me:$LINENO: result: no" >&5
5704 echo "${ECHO_T}no" >&6; }
5705 fi
5706
5707
5708 # Extract the first word of "cp", so it can be a program name with args.
5709 set dummy cp; ac_word=$2
5710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5712 if test "${ac_cv_path_CP+set}" = set; then
5713   echo $ECHO_N "(cached) $ECHO_C" >&6
5714 else
5715   case $CP in
5716   [\\/]* | ?:[\\/]*)
5717   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5718   ;;
5719   *)
5720   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721 for as_dir in $PATH
5722 do
5723   IFS=$as_save_IFS
5724   test -z "$as_dir" && as_dir=.
5725   for ac_exec_ext in '' $ac_executable_extensions; do
5726   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5727     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5728     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5729     break 2
5730   fi
5731 done
5732 done
5733 IFS=$as_save_IFS
5734
5735   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5736   ;;
5737 esac
5738 fi
5739 CP=$ac_cv_path_CP
5740 if test -n "$CP"; then
5741   { echo "$as_me:$LINENO: result: $CP" >&5
5742 echo "${ECHO_T}$CP" >&6; }
5743 else
5744   { echo "$as_me:$LINENO: result: no" >&5
5745 echo "${ECHO_T}no" >&6; }
5746 fi
5747
5748
5749 # Extract the first word of "date", so it can be a program name with args.
5750 set dummy date; ac_word=$2
5751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5753 if test "${ac_cv_path_DATE+set}" = set; then
5754   echo $ECHO_N "(cached) $ECHO_C" >&6
5755 else
5756   case $DATE in
5757   [\\/]* | ?:[\\/]*)
5758   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5759   ;;
5760   *)
5761   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762 for as_dir in $PATH
5763 do
5764   IFS=$as_save_IFS
5765   test -z "$as_dir" && as_dir=.
5766   for ac_exec_ext in '' $ac_executable_extensions; do
5767   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5768     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5770     break 2
5771   fi
5772 done
5773 done
5774 IFS=$as_save_IFS
5775
5776   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5777   ;;
5778 esac
5779 fi
5780 DATE=$ac_cv_path_DATE
5781 if test -n "$DATE"; then
5782   { echo "$as_me:$LINENO: result: $DATE" >&5
5783 echo "${ECHO_T}$DATE" >&6; }
5784 else
5785   { echo "$as_me:$LINENO: result: no" >&5
5786 echo "${ECHO_T}no" >&6; }
5787 fi
5788
5789
5790 # Extract the first word of "find", so it can be a program name with args.
5791 set dummy find; ac_word=$2
5792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5794 if test "${ac_cv_path_FIND+set}" = set; then
5795   echo $ECHO_N "(cached) $ECHO_C" >&6
5796 else
5797   case $FIND in
5798   [\\/]* | ?:[\\/]*)
5799   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5800   ;;
5801   *)
5802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 for as_dir in $PATH
5804 do
5805   IFS=$as_save_IFS
5806   test -z "$as_dir" && as_dir=.
5807   for ac_exec_ext in '' $ac_executable_extensions; do
5808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5809     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5811     break 2
5812   fi
5813 done
5814 done
5815 IFS=$as_save_IFS
5816
5817   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5818   ;;
5819 esac
5820 fi
5821 FIND=$ac_cv_path_FIND
5822 if test -n "$FIND"; then
5823   { echo "$as_me:$LINENO: result: $FIND" >&5
5824 echo "${ECHO_T}$FIND" >&6; }
5825 else
5826   { echo "$as_me:$LINENO: result: no" >&5
5827 echo "${ECHO_T}no" >&6; }
5828 fi
5829
5830
5831 # Extract the first word of "grep", so it can be a program name with args.
5832 set dummy grep; ac_word=$2
5833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5835 if test "${ac_cv_path_GREP+set}" = set; then
5836   echo $ECHO_N "(cached) $ECHO_C" >&6
5837 else
5838   case $GREP in
5839   [\\/]* | ?:[\\/]*)
5840   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5841   ;;
5842   *)
5843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 for as_dir in $PATH
5845 do
5846   IFS=$as_save_IFS
5847   test -z "$as_dir" && as_dir=.
5848   for ac_exec_ext in '' $ac_executable_extensions; do
5849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5850     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5852     break 2
5853   fi
5854 done
5855 done
5856 IFS=$as_save_IFS
5857
5858   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5859   ;;
5860 esac
5861 fi
5862 GREP=$ac_cv_path_GREP
5863 if test -n "$GREP"; then
5864   { echo "$as_me:$LINENO: result: $GREP" >&5
5865 echo "${ECHO_T}$GREP" >&6; }
5866 else
5867   { echo "$as_me:$LINENO: result: no" >&5
5868 echo "${ECHO_T}no" >&6; }
5869 fi
5870
5871
5872 # Extract the first word of "mkdir", so it can be a program name with args.
5873 set dummy mkdir; ac_word=$2
5874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5876 if test "${ac_cv_path_MKDIR+set}" = set; then
5877   echo $ECHO_N "(cached) $ECHO_C" >&6
5878 else
5879   case $MKDIR in
5880   [\\/]* | ?:[\\/]*)
5881   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5882   ;;
5883   *)
5884   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 for as_dir in $PATH
5886 do
5887   IFS=$as_save_IFS
5888   test -z "$as_dir" && as_dir=.
5889   for ac_exec_ext in '' $ac_executable_extensions; do
5890   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5891     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5893     break 2
5894   fi
5895 done
5896 done
5897 IFS=$as_save_IFS
5898
5899   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5900   ;;
5901 esac
5902 fi
5903 MKDIR=$ac_cv_path_MKDIR
5904 if test -n "$MKDIR"; then
5905   { echo "$as_me:$LINENO: result: $MKDIR" >&5
5906 echo "${ECHO_T}$MKDIR" >&6; }
5907 else
5908   { echo "$as_me:$LINENO: result: no" >&5
5909 echo "${ECHO_T}no" >&6; }
5910 fi
5911
5912
5913 # Extract the first word of "mv", so it can be a program name with args.
5914 set dummy mv; ac_word=$2
5915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5917 if test "${ac_cv_path_MV+set}" = set; then
5918   echo $ECHO_N "(cached) $ECHO_C" >&6
5919 else
5920   case $MV in
5921   [\\/]* | ?:[\\/]*)
5922   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5923   ;;
5924   *)
5925   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 for as_dir in $PATH
5927 do
5928   IFS=$as_save_IFS
5929   test -z "$as_dir" && as_dir=.
5930   for ac_exec_ext in '' $ac_executable_extensions; do
5931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5932     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5934     break 2
5935   fi
5936 done
5937 done
5938 IFS=$as_save_IFS
5939
5940   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5941   ;;
5942 esac
5943 fi
5944 MV=$ac_cv_path_MV
5945 if test -n "$MV"; then
5946   { echo "$as_me:$LINENO: result: $MV" >&5
5947 echo "${ECHO_T}$MV" >&6; }
5948 else
5949   { echo "$as_me:$LINENO: result: no" >&5
5950 echo "${ECHO_T}no" >&6; }
5951 fi
5952
5953
5954 if test -n "$ac_tool_prefix"; then
5955   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5956 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5959 if test "${ac_cv_prog_RANLIB+set}" = set; then
5960   echo $ECHO_N "(cached) $ECHO_C" >&6
5961 else
5962   if test -n "$RANLIB"; then
5963   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5964 else
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 for as_dir in $PATH
5967 do
5968   IFS=$as_save_IFS
5969   test -z "$as_dir" && as_dir=.
5970   for ac_exec_ext in '' $ac_executable_extensions; do
5971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5972     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5973     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5974     break 2
5975   fi
5976 done
5977 done
5978 IFS=$as_save_IFS
5979
5980 fi
5981 fi
5982 RANLIB=$ac_cv_prog_RANLIB
5983 if test -n "$RANLIB"; then
5984   { echo "$as_me:$LINENO: result: $RANLIB" >&5
5985 echo "${ECHO_T}$RANLIB" >&6; }
5986 else
5987   { echo "$as_me:$LINENO: result: no" >&5
5988 echo "${ECHO_T}no" >&6; }
5989 fi
5990
5991
5992 fi
5993 if test -z "$ac_cv_prog_RANLIB"; then
5994   ac_ct_RANLIB=$RANLIB
5995   # Extract the first word of "ranlib", so it can be a program name with args.
5996 set dummy ranlib; ac_word=$2
5997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5999 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6000   echo $ECHO_N "(cached) $ECHO_C" >&6
6001 else
6002   if test -n "$ac_ct_RANLIB"; then
6003   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6004 else
6005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006 for as_dir in $PATH
6007 do
6008   IFS=$as_save_IFS
6009   test -z "$as_dir" && as_dir=.
6010   for ac_exec_ext in '' $ac_executable_extensions; do
6011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6012     ac_cv_prog_ac_ct_RANLIB="ranlib"
6013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6014     break 2
6015   fi
6016 done
6017 done
6018 IFS=$as_save_IFS
6019
6020 fi
6021 fi
6022 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6023 if test -n "$ac_ct_RANLIB"; then
6024   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6025 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6026 else
6027   { echo "$as_me:$LINENO: result: no" >&5
6028 echo "${ECHO_T}no" >&6; }
6029 fi
6030
6031   if test "x$ac_ct_RANLIB" = x; then
6032     RANLIB=":"
6033   else
6034     case $cross_compiling:$ac_tool_warned in
6035 yes:)
6036 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6037 whose name does not start with the host triplet.  If you think this
6038 configuration is useful to you, please write to autoconf@gnu.org." >&5
6039 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6040 whose name does not start with the host triplet.  If you think this
6041 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6042 ac_tool_warned=yes ;;
6043 esac
6044     RANLIB=$ac_ct_RANLIB
6045   fi
6046 else
6047   RANLIB="$ac_cv_prog_RANLIB"
6048 fi
6049
6050 if test -n "$ac_tool_prefix"; then
6051   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6052 set dummy ${ac_tool_prefix}ar; ac_word=$2
6053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6055 if test "${ac_cv_prog_AR+set}" = set; then
6056   echo $ECHO_N "(cached) $ECHO_C" >&6
6057 else
6058   if test -n "$AR"; then
6059   ac_cv_prog_AR="$AR" # Let the user override the test.
6060 else
6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 for as_dir in $PATH
6063 do
6064   IFS=$as_save_IFS
6065   test -z "$as_dir" && as_dir=.
6066   for ac_exec_ext in '' $ac_executable_extensions; do
6067   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6068     ac_cv_prog_AR="${ac_tool_prefix}ar"
6069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6070     break 2
6071   fi
6072 done
6073 done
6074 IFS=$as_save_IFS
6075
6076 fi
6077 fi
6078 AR=$ac_cv_prog_AR
6079 if test -n "$AR"; then
6080   { echo "$as_me:$LINENO: result: $AR" >&5
6081 echo "${ECHO_T}$AR" >&6; }
6082 else
6083   { echo "$as_me:$LINENO: result: no" >&5
6084 echo "${ECHO_T}no" >&6; }
6085 fi
6086
6087
6088 fi
6089 if test -z "$ac_cv_prog_AR"; then
6090   ac_ct_AR=$AR
6091   # Extract the first word of "ar", so it can be a program name with args.
6092 set dummy ar; ac_word=$2
6093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6095 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6096   echo $ECHO_N "(cached) $ECHO_C" >&6
6097 else
6098   if test -n "$ac_ct_AR"; then
6099   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6100 else
6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 for as_dir in $PATH
6103 do
6104   IFS=$as_save_IFS
6105   test -z "$as_dir" && as_dir=.
6106   for ac_exec_ext in '' $ac_executable_extensions; do
6107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6108     ac_cv_prog_ac_ct_AR="ar"
6109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6110     break 2
6111   fi
6112 done
6113 done
6114 IFS=$as_save_IFS
6115
6116 fi
6117 fi
6118 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6119 if test -n "$ac_ct_AR"; then
6120   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6121 echo "${ECHO_T}$ac_ct_AR" >&6; }
6122 else
6123   { echo "$as_me:$LINENO: result: no" >&5
6124 echo "${ECHO_T}no" >&6; }
6125 fi
6126
6127   if test "x$ac_ct_AR" = x; then
6128     AR="false"
6129   else
6130     case $cross_compiling:$ac_tool_warned in
6131 yes:)
6132 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6133 whose name does not start with the host triplet.  If you think this
6134 configuration is useful to you, please write to autoconf@gnu.org." >&5
6135 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6136 whose name does not start with the host triplet.  If you think this
6137 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6138 ac_tool_warned=yes ;;
6139 esac
6140     AR=$ac_ct_AR
6141   fi
6142 else
6143   AR="$ac_cv_prog_AR"
6144 fi
6145
6146 # Extract the first word of "rm", so it can be a program name with args.
6147 set dummy rm; ac_word=$2
6148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6150 if test "${ac_cv_path_RM+set}" = set; then
6151   echo $ECHO_N "(cached) $ECHO_C" >&6
6152 else
6153   case $RM in
6154   [\\/]* | ?:[\\/]*)
6155   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6156   ;;
6157   *)
6158   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159 for as_dir in $PATH
6160 do
6161   IFS=$as_save_IFS
6162   test -z "$as_dir" && as_dir=.
6163   for ac_exec_ext in '' $ac_executable_extensions; do
6164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6165     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6166     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6167     break 2
6168   fi
6169 done
6170 done
6171 IFS=$as_save_IFS
6172
6173   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6174   ;;
6175 esac
6176 fi
6177 RM=$ac_cv_path_RM
6178 if test -n "$RM"; then
6179   { echo "$as_me:$LINENO: result: $RM" >&5
6180 echo "${ECHO_T}$RM" >&6; }
6181 else
6182   { echo "$as_me:$LINENO: result: no" >&5
6183 echo "${ECHO_T}no" >&6; }
6184 fi
6185
6186
6187 # Extract the first word of "sed", so it can be a program name with args.
6188 set dummy sed; ac_word=$2
6189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6191 if test "${ac_cv_path_SED+set}" = set; then
6192   echo $ECHO_N "(cached) $ECHO_C" >&6
6193 else
6194   case $SED in
6195   [\\/]* | ?:[\\/]*)
6196   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6197   ;;
6198   *)
6199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200 for as_dir in $PATH
6201 do
6202   IFS=$as_save_IFS
6203   test -z "$as_dir" && as_dir=.
6204   for ac_exec_ext in '' $ac_executable_extensions; do
6205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6206     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6207     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6208     break 2
6209   fi
6210 done
6211 done
6212 IFS=$as_save_IFS
6213
6214   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6215   ;;
6216 esac
6217 fi
6218 SED=$ac_cv_path_SED
6219 if test -n "$SED"; then
6220   { echo "$as_me:$LINENO: result: $SED" >&5
6221 echo "${ECHO_T}$SED" >&6; }
6222 else
6223   { echo "$as_me:$LINENO: result: no" >&5
6224 echo "${ECHO_T}no" >&6; }
6225 fi
6226
6227
6228 # Extract the first word of "tar", so it can be a program name with args.
6229 set dummy tar; ac_word=$2
6230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6232 if test "${ac_cv_path_TAR+set}" = set; then
6233   echo $ECHO_N "(cached) $ECHO_C" >&6
6234 else
6235   case $TAR in
6236   [\\/]* | ?:[\\/]*)
6237   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6238   ;;
6239   *)
6240   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 for as_dir in $PATH
6242 do
6243   IFS=$as_save_IFS
6244   test -z "$as_dir" && as_dir=.
6245   for ac_exec_ext in '' $ac_executable_extensions; do
6246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6247     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6249     break 2
6250   fi
6251 done
6252 done
6253 IFS=$as_save_IFS
6254
6255   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6256   ;;
6257 esac
6258 fi
6259 TAR=$ac_cv_path_TAR
6260 if test -n "$TAR"; then
6261   { echo "$as_me:$LINENO: result: $TAR" >&5
6262 echo "${ECHO_T}$TAR" >&6; }
6263 else
6264   { echo "$as_me:$LINENO: result: no" >&5
6265 echo "${ECHO_T}no" >&6; }
6266 fi
6267
6268
6269 # Extract the first word of "pwd", so it can be a program name with args.
6270 set dummy pwd; ac_word=$2
6271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6273 if test "${ac_cv_path_BINPWD+set}" = set; then
6274   echo $ECHO_N "(cached) $ECHO_C" >&6
6275 else
6276   case $BINPWD in
6277   [\\/]* | ?:[\\/]*)
6278   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6279   ;;
6280   *)
6281   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282 for as_dir in $PATH
6283 do
6284   IFS=$as_save_IFS
6285   test -z "$as_dir" && as_dir=.
6286   for ac_exec_ext in '' $ac_executable_extensions; do
6287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6288     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6290     break 2
6291   fi
6292 done
6293 done
6294 IFS=$as_save_IFS
6295
6296   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6297   ;;
6298 esac
6299 fi
6300 BINPWD=$ac_cv_path_BINPWD
6301 if test -n "$BINPWD"; then
6302   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6303 echo "${ECHO_T}$BINPWD" >&6; }
6304 else
6305   { echo "$as_me:$LINENO: result: no" >&5
6306 echo "${ECHO_T}no" >&6; }
6307 fi
6308
6309
6310
6311 # Extract the first word of "Graphviz", so it can be a program name with args.
6312 set dummy Graphviz; ac_word=$2
6313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6315 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6316   echo $ECHO_N "(cached) $ECHO_C" >&6
6317 else
6318   case $GRAPHVIZ in
6319   [\\/]* | ?:[\\/]*)
6320   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6321   ;;
6322   *)
6323   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324 for as_dir in $PATH
6325 do
6326   IFS=$as_save_IFS
6327   test -z "$as_dir" && as_dir=.
6328   for ac_exec_ext in '' $ac_executable_extensions; do
6329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6330     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6332     break 2
6333   fi
6334 done
6335 done
6336 IFS=$as_save_IFS
6337
6338   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6339   ;;
6340 esac
6341 fi
6342 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6343 if test -n "$GRAPHVIZ"; then
6344   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6345 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6346 else
6347   { echo "$as_me:$LINENO: result: no" >&5
6348 echo "${ECHO_T}no" >&6; }
6349 fi
6350
6351
6352 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6353
6354 cat >>confdefs.h <<\_ACEOF
6355 #define HAVE_GRAPHVIZ 1
6356 _ACEOF
6357
6358     if test "$llvm_cv_os_type" = "MingW" ; then
6359     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6360   fi
6361
6362 cat >>confdefs.h <<_ACEOF
6363 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6364 _ACEOF
6365
6366 fi
6367 # Extract the first word of "dot", so it can be a program name with args.
6368 set dummy dot; ac_word=$2
6369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6371 if test "${ac_cv_path_DOT+set}" = set; then
6372   echo $ECHO_N "(cached) $ECHO_C" >&6
6373 else
6374   case $DOT in
6375   [\\/]* | ?:[\\/]*)
6376   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6377   ;;
6378   *)
6379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380 for as_dir in $PATH
6381 do
6382   IFS=$as_save_IFS
6383   test -z "$as_dir" && as_dir=.
6384   for ac_exec_ext in '' $ac_executable_extensions; do
6385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6386     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6387     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6388     break 2
6389   fi
6390 done
6391 done
6392 IFS=$as_save_IFS
6393
6394   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6395   ;;
6396 esac
6397 fi
6398 DOT=$ac_cv_path_DOT
6399 if test -n "$DOT"; then
6400   { echo "$as_me:$LINENO: result: $DOT" >&5
6401 echo "${ECHO_T}$DOT" >&6; }
6402 else
6403   { echo "$as_me:$LINENO: result: no" >&5
6404 echo "${ECHO_T}no" >&6; }
6405 fi
6406
6407
6408 if test "$DOT" != "echo dot" ; then
6409
6410 cat >>confdefs.h <<\_ACEOF
6411 #define HAVE_DOT 1
6412 _ACEOF
6413
6414     if test "$llvm_cv_os_type" = "MingW" ; then
6415     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6416   fi
6417
6418 cat >>confdefs.h <<_ACEOF
6419 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6420 _ACEOF
6421
6422 fi
6423 # Extract the first word of "fdp", so it can be a program name with args.
6424 set dummy fdp; ac_word=$2
6425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6427 if test "${ac_cv_path_FDP+set}" = set; then
6428   echo $ECHO_N "(cached) $ECHO_C" >&6
6429 else
6430   case $FDP in
6431   [\\/]* | ?:[\\/]*)
6432   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6433   ;;
6434   *)
6435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6436 for as_dir in $PATH
6437 do
6438   IFS=$as_save_IFS
6439   test -z "$as_dir" && as_dir=.
6440   for ac_exec_ext in '' $ac_executable_extensions; do
6441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6442     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6444     break 2
6445   fi
6446 done
6447 done
6448 IFS=$as_save_IFS
6449
6450   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6451   ;;
6452 esac
6453 fi
6454 FDP=$ac_cv_path_FDP
6455 if test -n "$FDP"; then
6456   { echo "$as_me:$LINENO: result: $FDP" >&5
6457 echo "${ECHO_T}$FDP" >&6; }
6458 else
6459   { echo "$as_me:$LINENO: result: no" >&5
6460 echo "${ECHO_T}no" >&6; }
6461 fi
6462
6463
6464 if test "$FDP" != "echo fdp" ; then
6465
6466 cat >>confdefs.h <<\_ACEOF
6467 #define HAVE_FDP 1
6468 _ACEOF
6469
6470     if test "$llvm_cv_os_type" = "MingW" ; then
6471     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6472   fi
6473
6474 cat >>confdefs.h <<_ACEOF
6475 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6476 _ACEOF
6477
6478 fi
6479 # Extract the first word of "neato", so it can be a program name with args.
6480 set dummy neato; ac_word=$2
6481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6483 if test "${ac_cv_path_NEATO+set}" = set; then
6484   echo $ECHO_N "(cached) $ECHO_C" >&6
6485 else
6486   case $NEATO in
6487   [\\/]* | ?:[\\/]*)
6488   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6489   ;;
6490   *)
6491   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492 for as_dir in $PATH
6493 do
6494   IFS=$as_save_IFS
6495   test -z "$as_dir" && as_dir=.
6496   for ac_exec_ext in '' $ac_executable_extensions; do
6497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6498     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6499     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6500     break 2
6501   fi
6502 done
6503 done
6504 IFS=$as_save_IFS
6505
6506   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6507   ;;
6508 esac
6509 fi
6510 NEATO=$ac_cv_path_NEATO
6511 if test -n "$NEATO"; then
6512   { echo "$as_me:$LINENO: result: $NEATO" >&5
6513 echo "${ECHO_T}$NEATO" >&6; }
6514 else
6515   { echo "$as_me:$LINENO: result: no" >&5
6516 echo "${ECHO_T}no" >&6; }
6517 fi
6518
6519
6520 if test "$NEATO" != "echo neato" ; then
6521
6522 cat >>confdefs.h <<\_ACEOF
6523 #define HAVE_NEATO 1
6524 _ACEOF
6525
6526     if test "$llvm_cv_os_type" = "MingW" ; then
6527     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6528   fi
6529
6530 cat >>confdefs.h <<_ACEOF
6531 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6532 _ACEOF
6533
6534 fi
6535 # Extract the first word of "twopi", so it can be a program name with args.
6536 set dummy twopi; ac_word=$2
6537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6539 if test "${ac_cv_path_TWOPI+set}" = set; then
6540   echo $ECHO_N "(cached) $ECHO_C" >&6
6541 else
6542   case $TWOPI in
6543   [\\/]* | ?:[\\/]*)
6544   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6545   ;;
6546   *)
6547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548 for as_dir in $PATH
6549 do
6550   IFS=$as_save_IFS
6551   test -z "$as_dir" && as_dir=.
6552   for ac_exec_ext in '' $ac_executable_extensions; do
6553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6554     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6556     break 2
6557   fi
6558 done
6559 done
6560 IFS=$as_save_IFS
6561
6562   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6563   ;;
6564 esac
6565 fi
6566 TWOPI=$ac_cv_path_TWOPI
6567 if test -n "$TWOPI"; then
6568   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6569 echo "${ECHO_T}$TWOPI" >&6; }
6570 else
6571   { echo "$as_me:$LINENO: result: no" >&5
6572 echo "${ECHO_T}no" >&6; }
6573 fi
6574
6575
6576 if test "$TWOPI" != "echo twopi" ; then
6577
6578 cat >>confdefs.h <<\_ACEOF
6579 #define HAVE_TWOPI 1
6580 _ACEOF
6581
6582     if test "$llvm_cv_os_type" = "MingW" ; then
6583     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6584   fi
6585
6586 cat >>confdefs.h <<_ACEOF
6587 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6588 _ACEOF
6589
6590 fi
6591 # Extract the first word of "circo", so it can be a program name with args.
6592 set dummy circo; ac_word=$2
6593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6595 if test "${ac_cv_path_CIRCO+set}" = set; then
6596   echo $ECHO_N "(cached) $ECHO_C" >&6
6597 else
6598   case $CIRCO in
6599   [\\/]* | ?:[\\/]*)
6600   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6601   ;;
6602   *)
6603   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604 for as_dir in $PATH
6605 do
6606   IFS=$as_save_IFS
6607   test -z "$as_dir" && as_dir=.
6608   for ac_exec_ext in '' $ac_executable_extensions; do
6609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6610     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6612     break 2
6613   fi
6614 done
6615 done
6616 IFS=$as_save_IFS
6617
6618   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6619   ;;
6620 esac
6621 fi
6622 CIRCO=$ac_cv_path_CIRCO
6623 if test -n "$CIRCO"; then
6624   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6625 echo "${ECHO_T}$CIRCO" >&6; }
6626 else
6627   { echo "$as_me:$LINENO: result: no" >&5
6628 echo "${ECHO_T}no" >&6; }
6629 fi
6630
6631
6632 if test "$CIRCO" != "echo circo" ; then
6633
6634 cat >>confdefs.h <<\_ACEOF
6635 #define HAVE_CIRCO 1
6636 _ACEOF
6637
6638     if test "$llvm_cv_os_type" = "MingW" ; then
6639     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6640   fi
6641
6642 cat >>confdefs.h <<_ACEOF
6643 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6644 _ACEOF
6645
6646 fi
6647 for ac_prog in gv gsview32
6648 do
6649   # Extract the first word of "$ac_prog", so it can be a program name with args.
6650 set dummy $ac_prog; ac_word=$2
6651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6653 if test "${ac_cv_path_GV+set}" = set; then
6654   echo $ECHO_N "(cached) $ECHO_C" >&6
6655 else
6656   case $GV in
6657   [\\/]* | ?:[\\/]*)
6658   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6659   ;;
6660   *)
6661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662 for as_dir in $PATH
6663 do
6664   IFS=$as_save_IFS
6665   test -z "$as_dir" && as_dir=.
6666   for ac_exec_ext in '' $ac_executable_extensions; do
6667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6668     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6670     break 2
6671   fi
6672 done
6673 done
6674 IFS=$as_save_IFS
6675
6676   ;;
6677 esac
6678 fi
6679 GV=$ac_cv_path_GV
6680 if test -n "$GV"; then
6681   { echo "$as_me:$LINENO: result: $GV" >&5
6682 echo "${ECHO_T}$GV" >&6; }
6683 else
6684   { echo "$as_me:$LINENO: result: no" >&5
6685 echo "${ECHO_T}no" >&6; }
6686 fi
6687
6688
6689   test -n "$GV" && break
6690 done
6691 test -n "$GV" || GV="echo gv"
6692
6693 if test "$GV" != "echo gv" ; then
6694
6695 cat >>confdefs.h <<\_ACEOF
6696 #define HAVE_GV 1
6697 _ACEOF
6698
6699     if test "$llvm_cv_os_type" = "MingW" ; then
6700     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6701   fi
6702
6703 cat >>confdefs.h <<_ACEOF
6704 #define LLVM_PATH_GV "$GV${EXEEXT}"
6705 _ACEOF
6706
6707 fi
6708 # Extract the first word of "dotty", so it can be a program name with args.
6709 set dummy dotty; ac_word=$2
6710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6712 if test "${ac_cv_path_DOTTY+set}" = set; then
6713   echo $ECHO_N "(cached) $ECHO_C" >&6
6714 else
6715   case $DOTTY in
6716   [\\/]* | ?:[\\/]*)
6717   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6718   ;;
6719   *)
6720   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721 for as_dir in $PATH
6722 do
6723   IFS=$as_save_IFS
6724   test -z "$as_dir" && as_dir=.
6725   for ac_exec_ext in '' $ac_executable_extensions; do
6726   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6727     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6728     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6729     break 2
6730   fi
6731 done
6732 done
6733 IFS=$as_save_IFS
6734
6735   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6736   ;;
6737 esac
6738 fi
6739 DOTTY=$ac_cv_path_DOTTY
6740 if test -n "$DOTTY"; then
6741   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6742 echo "${ECHO_T}$DOTTY" >&6; }
6743 else
6744   { echo "$as_me:$LINENO: result: no" >&5
6745 echo "${ECHO_T}no" >&6; }
6746 fi
6747
6748
6749 if test "$DOTTY" != "echo dotty" ; then
6750
6751 cat >>confdefs.h <<\_ACEOF
6752 #define HAVE_DOTTY 1
6753 _ACEOF
6754
6755     if test "$llvm_cv_os_type" = "MingW" ; then
6756     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6757   fi
6758
6759 cat >>confdefs.h <<_ACEOF
6760 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6761 _ACEOF
6762
6763 fi
6764 # Extract the first word of "xdot.py", so it can be a program name with args.
6765 set dummy xdot.py; 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_XDOT_PY+set}" = set; then
6769   echo $ECHO_N "(cached) $ECHO_C" >&6
6770 else
6771   case $XDOT_PY in
6772   [\\/]* | ?:[\\/]*)
6773   ac_cv_path_XDOT_PY="$XDOT_PY" # 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_XDOT_PY="$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_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6792   ;;
6793 esac
6794 fi
6795 XDOT_PY=$ac_cv_path_XDOT_PY
6796 if test -n "$XDOT_PY"; then
6797   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6798 echo "${ECHO_T}$XDOT_PY" >&6; }
6799 else
6800   { echo "$as_me:$LINENO: result: no" >&5
6801 echo "${ECHO_T}no" >&6; }
6802 fi
6803
6804
6805 if test "$XDOT_PY" != "echo xdot.py" ; then
6806
6807 cat >>confdefs.h <<\_ACEOF
6808 #define HAVE_XDOT_PY 1
6809 _ACEOF
6810
6811     if test "$llvm_cv_os_type" = "MingW" ; then
6812     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6813   fi
6814
6815 cat >>confdefs.h <<_ACEOF
6816 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6817 _ACEOF
6818
6819 fi
6820
6821 # Find a good install program.  We prefer a C program (faster),
6822 # so one script is as good as another.  But avoid the broken or
6823 # incompatible versions:
6824 # SysV /etc/install, /usr/sbin/install
6825 # SunOS /usr/etc/install
6826 # IRIX /sbin/install
6827 # AIX /bin/install
6828 # AmigaOS /C/install, which installs bootblocks on floppy discs
6829 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6830 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6831 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6832 # OS/2's system install, which has a completely different semantic
6833 # ./install, which can be erroneously created by make from ./install.sh.
6834 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6835 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6836 if test -z "$INSTALL"; then
6837 if test "${ac_cv_path_install+set}" = set; then
6838   echo $ECHO_N "(cached) $ECHO_C" >&6
6839 else
6840   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841 for as_dir in $PATH
6842 do
6843   IFS=$as_save_IFS
6844   test -z "$as_dir" && as_dir=.
6845   # Account for people who put trailing slashes in PATH elements.
6846 case $as_dir/ in
6847   ./ | .// | /cC/* | \
6848   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6849   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6850   /usr/ucb/* ) ;;
6851   *)
6852     # OSF1 and SCO ODT 3.0 have their own names for install.
6853     # Don't use installbsd from OSF since it installs stuff as root
6854     # by default.
6855     for ac_prog in ginstall scoinst install; do
6856       for ac_exec_ext in '' $ac_executable_extensions; do
6857         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6858           if test $ac_prog = install &&
6859             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6860             # AIX install.  It has an incompatible calling convention.
6861             :
6862           elif test $ac_prog = install &&
6863             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6864             # program-specific install script used by HP pwplus--don't use.
6865             :
6866           else
6867             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6868             break 3
6869           fi
6870         fi
6871       done
6872     done
6873     ;;
6874 esac
6875 done
6876 IFS=$as_save_IFS
6877
6878
6879 fi
6880   if test "${ac_cv_path_install+set}" = set; then
6881     INSTALL=$ac_cv_path_install
6882   else
6883     # As a last resort, use the slow shell script.  Don't cache a
6884     # value for INSTALL within a source directory, because that will
6885     # break other packages using the cache if that directory is
6886     # removed, or if the value is a relative name.
6887     INSTALL=$ac_install_sh
6888   fi
6889 fi
6890 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6891 echo "${ECHO_T}$INSTALL" >&6; }
6892
6893 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6894 # It thinks the first close brace ends the variable substitution.
6895 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6896
6897 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6898
6899 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6900
6901 case "$INSTALL" in
6902  [\\/$]* | ?:[\\/]* ) ;;
6903  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6904 esac
6905
6906 # Extract the first word of "bzip2", so it can be a program name with args.
6907 set dummy bzip2; ac_word=$2
6908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6910 if test "${ac_cv_path_BZIP2+set}" = set; then
6911   echo $ECHO_N "(cached) $ECHO_C" >&6
6912 else
6913   case $BZIP2 in
6914   [\\/]* | ?:[\\/]*)
6915   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6916   ;;
6917   *)
6918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919 for as_dir in $PATH
6920 do
6921   IFS=$as_save_IFS
6922   test -z "$as_dir" && as_dir=.
6923   for ac_exec_ext in '' $ac_executable_extensions; do
6924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6925     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6926     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6927     break 2
6928   fi
6929 done
6930 done
6931 IFS=$as_save_IFS
6932
6933   ;;
6934 esac
6935 fi
6936 BZIP2=$ac_cv_path_BZIP2
6937 if test -n "$BZIP2"; then
6938   { echo "$as_me:$LINENO: result: $BZIP2" >&5
6939 echo "${ECHO_T}$BZIP2" >&6; }
6940 else
6941   { echo "$as_me:$LINENO: result: no" >&5
6942 echo "${ECHO_T}no" >&6; }
6943 fi
6944
6945
6946 # Extract the first word of "cat", so it can be a program name with args.
6947 set dummy cat; ac_word=$2
6948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6950 if test "${ac_cv_path_CAT+set}" = set; then
6951   echo $ECHO_N "(cached) $ECHO_C" >&6
6952 else
6953   case $CAT in
6954   [\\/]* | ?:[\\/]*)
6955   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6956   ;;
6957   *)
6958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959 for as_dir in $PATH
6960 do
6961   IFS=$as_save_IFS
6962   test -z "$as_dir" && as_dir=.
6963   for ac_exec_ext in '' $ac_executable_extensions; do
6964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6965     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6966     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6967     break 2
6968   fi
6969 done
6970 done
6971 IFS=$as_save_IFS
6972
6973   ;;
6974 esac
6975 fi
6976 CAT=$ac_cv_path_CAT
6977 if test -n "$CAT"; then
6978   { echo "$as_me:$LINENO: result: $CAT" >&5
6979 echo "${ECHO_T}$CAT" >&6; }
6980 else
6981   { echo "$as_me:$LINENO: result: no" >&5
6982 echo "${ECHO_T}no" >&6; }
6983 fi
6984
6985
6986 # Extract the first word of "doxygen", so it can be a program name with args.
6987 set dummy doxygen; ac_word=$2
6988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6990 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6991   echo $ECHO_N "(cached) $ECHO_C" >&6
6992 else
6993   case $DOXYGEN in
6994   [\\/]* | ?:[\\/]*)
6995   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6996   ;;
6997   *)
6998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 for as_dir in $PATH
7000 do
7001   IFS=$as_save_IFS
7002   test -z "$as_dir" && as_dir=.
7003   for ac_exec_ext in '' $ac_executable_extensions; do
7004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7005     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7007     break 2
7008   fi
7009 done
7010 done
7011 IFS=$as_save_IFS
7012
7013   ;;
7014 esac
7015 fi
7016 DOXYGEN=$ac_cv_path_DOXYGEN
7017 if test -n "$DOXYGEN"; then
7018   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7019 echo "${ECHO_T}$DOXYGEN" >&6; }
7020 else
7021   { echo "$as_me:$LINENO: result: no" >&5
7022 echo "${ECHO_T}no" >&6; }
7023 fi
7024
7025
7026 # Extract the first word of "groff", so it can be a program name with args.
7027 set dummy groff; ac_word=$2
7028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7030 if test "${ac_cv_path_GROFF+set}" = set; then
7031   echo $ECHO_N "(cached) $ECHO_C" >&6
7032 else
7033   case $GROFF in
7034   [\\/]* | ?:[\\/]*)
7035   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7036   ;;
7037   *)
7038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 for as_dir in $PATH
7040 do
7041   IFS=$as_save_IFS
7042   test -z "$as_dir" && as_dir=.
7043   for ac_exec_ext in '' $ac_executable_extensions; do
7044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7045     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7047     break 2
7048   fi
7049 done
7050 done
7051 IFS=$as_save_IFS
7052
7053   ;;
7054 esac
7055 fi
7056 GROFF=$ac_cv_path_GROFF
7057 if test -n "$GROFF"; then
7058   { echo "$as_me:$LINENO: result: $GROFF" >&5
7059 echo "${ECHO_T}$GROFF" >&6; }
7060 else
7061   { echo "$as_me:$LINENO: result: no" >&5
7062 echo "${ECHO_T}no" >&6; }
7063 fi
7064
7065
7066 # Extract the first word of "gzip", so it can be a program name with args.
7067 set dummy gzip; ac_word=$2
7068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7070 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7071   echo $ECHO_N "(cached) $ECHO_C" >&6
7072 else
7073   case $GZIPBIN in
7074   [\\/]* | ?:[\\/]*)
7075   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7076   ;;
7077   *)
7078   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079 for as_dir in $PATH
7080 do
7081   IFS=$as_save_IFS
7082   test -z "$as_dir" && as_dir=.
7083   for ac_exec_ext in '' $ac_executable_extensions; do
7084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7085     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7087     break 2
7088   fi
7089 done
7090 done
7091 IFS=$as_save_IFS
7092
7093   ;;
7094 esac
7095 fi
7096 GZIPBIN=$ac_cv_path_GZIPBIN
7097 if test -n "$GZIPBIN"; then
7098   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7099 echo "${ECHO_T}$GZIPBIN" >&6; }
7100 else
7101   { echo "$as_me:$LINENO: result: no" >&5
7102 echo "${ECHO_T}no" >&6; }
7103 fi
7104
7105
7106 # Extract the first word of "pod2html", so it can be a program name with args.
7107 set dummy pod2html; ac_word=$2
7108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7110 if test "${ac_cv_path_POD2HTML+set}" = set; then
7111   echo $ECHO_N "(cached) $ECHO_C" >&6
7112 else
7113   case $POD2HTML in
7114   [\\/]* | ?:[\\/]*)
7115   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7116   ;;
7117   *)
7118   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119 for as_dir in $PATH
7120 do
7121   IFS=$as_save_IFS
7122   test -z "$as_dir" && as_dir=.
7123   for ac_exec_ext in '' $ac_executable_extensions; do
7124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7125     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7126     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7127     break 2
7128   fi
7129 done
7130 done
7131 IFS=$as_save_IFS
7132
7133   ;;
7134 esac
7135 fi
7136 POD2HTML=$ac_cv_path_POD2HTML
7137 if test -n "$POD2HTML"; then
7138   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7139 echo "${ECHO_T}$POD2HTML" >&6; }
7140 else
7141   { echo "$as_me:$LINENO: result: no" >&5
7142 echo "${ECHO_T}no" >&6; }
7143 fi
7144
7145
7146 # Extract the first word of "pod2man", so it can be a program name with args.
7147 set dummy pod2man; ac_word=$2
7148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7150 if test "${ac_cv_path_POD2MAN+set}" = set; then
7151   echo $ECHO_N "(cached) $ECHO_C" >&6
7152 else
7153   case $POD2MAN in
7154   [\\/]* | ?:[\\/]*)
7155   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7156   ;;
7157   *)
7158   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159 for as_dir in $PATH
7160 do
7161   IFS=$as_save_IFS
7162   test -z "$as_dir" && as_dir=.
7163   for ac_exec_ext in '' $ac_executable_extensions; do
7164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7165     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7166     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7167     break 2
7168   fi
7169 done
7170 done
7171 IFS=$as_save_IFS
7172
7173   ;;
7174 esac
7175 fi
7176 POD2MAN=$ac_cv_path_POD2MAN
7177 if test -n "$POD2MAN"; then
7178   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7179 echo "${ECHO_T}$POD2MAN" >&6; }
7180 else
7181   { echo "$as_me:$LINENO: result: no" >&5
7182 echo "${ECHO_T}no" >&6; }
7183 fi
7184
7185
7186 # Extract the first word of "pdfroff", so it can be a program name with args.
7187 set dummy pdfroff; ac_word=$2
7188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7190 if test "${ac_cv_path_PDFROFF+set}" = set; then
7191   echo $ECHO_N "(cached) $ECHO_C" >&6
7192 else
7193   case $PDFROFF in
7194   [\\/]* | ?:[\\/]*)
7195   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7196   ;;
7197   *)
7198   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 for as_dir in $PATH
7200 do
7201   IFS=$as_save_IFS
7202   test -z "$as_dir" && as_dir=.
7203   for ac_exec_ext in '' $ac_executable_extensions; do
7204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7205     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7207     break 2
7208   fi
7209 done
7210 done
7211 IFS=$as_save_IFS
7212
7213   ;;
7214 esac
7215 fi
7216 PDFROFF=$ac_cv_path_PDFROFF
7217 if test -n "$PDFROFF"; then
7218   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7219 echo "${ECHO_T}$PDFROFF" >&6; }
7220 else
7221   { echo "$as_me:$LINENO: result: no" >&5
7222 echo "${ECHO_T}no" >&6; }
7223 fi
7224
7225
7226 # Extract the first word of "runtest", so it can be a program name with args.
7227 set dummy runtest; ac_word=$2
7228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7230 if test "${ac_cv_path_RUNTEST+set}" = set; then
7231   echo $ECHO_N "(cached) $ECHO_C" >&6
7232 else
7233   case $RUNTEST in
7234   [\\/]* | ?:[\\/]*)
7235   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7236   ;;
7237   *)
7238   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239 for as_dir in $PATH
7240 do
7241   IFS=$as_save_IFS
7242   test -z "$as_dir" && as_dir=.
7243   for ac_exec_ext in '' $ac_executable_extensions; do
7244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7245     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7247     break 2
7248   fi
7249 done
7250 done
7251 IFS=$as_save_IFS
7252
7253   ;;
7254 esac
7255 fi
7256 RUNTEST=$ac_cv_path_RUNTEST
7257 if test -n "$RUNTEST"; then
7258   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7259 echo "${ECHO_T}$RUNTEST" >&6; }
7260 else
7261   { echo "$as_me:$LINENO: result: no" >&5
7262 echo "${ECHO_T}no" >&6; }
7263 fi
7264
7265
7266
7267 no_itcl=true
7268 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7269 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7270
7271 # Check whether --with-tclinclude was given.
7272 if test "${with_tclinclude+set}" = set; then
7273   withval=$with_tclinclude; with_tclinclude=${withval}
7274 else
7275   with_tclinclude=''
7276 fi
7277
7278 if test "${ac_cv_path_tclsh+set}" = set; then
7279   echo $ECHO_N "(cached) $ECHO_C" >&6
7280 else
7281
7282 if test x"${with_tclinclude}" != x ; then
7283   if test -f ${with_tclinclude}/tclsh ; then
7284     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7285   elif test -f ${with_tclinclude}/src/tclsh ; then
7286     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7287   else
7288     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7289 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7290    { (exit 1); exit 1; }; }
7291   fi
7292 fi
7293 fi
7294
7295
7296 if test x"${ac_cv_path_tclsh}" = x ; then
7297   { echo "$as_me:$LINENO: result: none" >&5
7298 echo "${ECHO_T}none" >&6; }
7299   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
7300 do
7301   # Extract the first word of "$ac_prog", so it can be a program name with args.
7302 set dummy $ac_prog; ac_word=$2
7303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7305 if test "${ac_cv_path_TCLSH+set}" = set; then
7306   echo $ECHO_N "(cached) $ECHO_C" >&6
7307 else
7308   case $TCLSH in
7309   [\\/]* | ?:[\\/]*)
7310   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7311   ;;
7312   *)
7313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 for as_dir in $PATH
7315 do
7316   IFS=$as_save_IFS
7317   test -z "$as_dir" && as_dir=.
7318   for ac_exec_ext in '' $ac_executable_extensions; do
7319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7320     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7321     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7322     break 2
7323   fi
7324 done
7325 done
7326 IFS=$as_save_IFS
7327
7328   ;;
7329 esac
7330 fi
7331 TCLSH=$ac_cv_path_TCLSH
7332 if test -n "$TCLSH"; then
7333   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7334 echo "${ECHO_T}$TCLSH" >&6; }
7335 else
7336   { echo "$as_me:$LINENO: result: no" >&5
7337 echo "${ECHO_T}no" >&6; }
7338 fi
7339
7340
7341   test -n "$TCLSH" && break
7342 done
7343
7344   if test x"${TCLSH}" = x ; then
7345     ac_cv_path_tclsh='';
7346   else
7347     ac_cv_path_tclsh="${TCLSH}";
7348   fi
7349 else
7350   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7351 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7352   TCLSH="${ac_cv_path_tclsh}"
7353
7354 fi
7355
7356 # Extract the first word of "zip", so it can be a program name with args.
7357 set dummy zip; 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_ZIP+set}" = set; then
7361   echo $ECHO_N "(cached) $ECHO_C" >&6
7362 else
7363   case $ZIP in
7364   [\\/]* | ?:[\\/]*)
7365   ac_cv_path_ZIP="$ZIP" # 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_ZIP="$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   ;;
7384 esac
7385 fi
7386 ZIP=$ac_cv_path_ZIP
7387 if test -n "$ZIP"; then
7388   { echo "$as_me:$LINENO: result: $ZIP" >&5
7389 echo "${ECHO_T}$ZIP" >&6; }
7390 else
7391   { echo "$as_me:$LINENO: result: no" >&5
7392 echo "${ECHO_T}no" >&6; }
7393 fi
7394
7395
7396 for ac_prog in ocamlc
7397 do
7398   # Extract the first word of "$ac_prog", so it can be a program name with args.
7399 set dummy $ac_prog; ac_word=$2
7400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7402 if test "${ac_cv_path_OCAMLC+set}" = set; then
7403   echo $ECHO_N "(cached) $ECHO_C" >&6
7404 else
7405   case $OCAMLC in
7406   [\\/]* | ?:[\\/]*)
7407   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7408   ;;
7409   *)
7410   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411 for as_dir in $PATH
7412 do
7413   IFS=$as_save_IFS
7414   test -z "$as_dir" && as_dir=.
7415   for ac_exec_ext in '' $ac_executable_extensions; do
7416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7417     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7419     break 2
7420   fi
7421 done
7422 done
7423 IFS=$as_save_IFS
7424
7425   ;;
7426 esac
7427 fi
7428 OCAMLC=$ac_cv_path_OCAMLC
7429 if test -n "$OCAMLC"; then
7430   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7431 echo "${ECHO_T}$OCAMLC" >&6; }
7432 else
7433   { echo "$as_me:$LINENO: result: no" >&5
7434 echo "${ECHO_T}no" >&6; }
7435 fi
7436
7437
7438   test -n "$OCAMLC" && break
7439 done
7440
7441 for ac_prog in ocamlopt
7442 do
7443   # Extract the first word of "$ac_prog", so it can be a program name with args.
7444 set dummy $ac_prog; ac_word=$2
7445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7447 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7448   echo $ECHO_N "(cached) $ECHO_C" >&6
7449 else
7450   case $OCAMLOPT in
7451   [\\/]* | ?:[\\/]*)
7452   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7453   ;;
7454   *)
7455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456 for as_dir in $PATH
7457 do
7458   IFS=$as_save_IFS
7459   test -z "$as_dir" && as_dir=.
7460   for ac_exec_ext in '' $ac_executable_extensions; do
7461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7462     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7464     break 2
7465   fi
7466 done
7467 done
7468 IFS=$as_save_IFS
7469
7470   ;;
7471 esac
7472 fi
7473 OCAMLOPT=$ac_cv_path_OCAMLOPT
7474 if test -n "$OCAMLOPT"; then
7475   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7476 echo "${ECHO_T}$OCAMLOPT" >&6; }
7477 else
7478   { echo "$as_me:$LINENO: result: no" >&5
7479 echo "${ECHO_T}no" >&6; }
7480 fi
7481
7482
7483   test -n "$OCAMLOPT" && break
7484 done
7485
7486 for ac_prog in ocamldep
7487 do
7488   # Extract the first word of "$ac_prog", so it can be a program name with args.
7489 set dummy $ac_prog; ac_word=$2
7490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7492 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7493   echo $ECHO_N "(cached) $ECHO_C" >&6
7494 else
7495   case $OCAMLDEP in
7496   [\\/]* | ?:[\\/]*)
7497   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7498   ;;
7499   *)
7500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501 for as_dir in $PATH
7502 do
7503   IFS=$as_save_IFS
7504   test -z "$as_dir" && as_dir=.
7505   for ac_exec_ext in '' $ac_executable_extensions; do
7506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7507     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7509     break 2
7510   fi
7511 done
7512 done
7513 IFS=$as_save_IFS
7514
7515   ;;
7516 esac
7517 fi
7518 OCAMLDEP=$ac_cv_path_OCAMLDEP
7519 if test -n "$OCAMLDEP"; then
7520   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7521 echo "${ECHO_T}$OCAMLDEP" >&6; }
7522 else
7523   { echo "$as_me:$LINENO: result: no" >&5
7524 echo "${ECHO_T}no" >&6; }
7525 fi
7526
7527
7528   test -n "$OCAMLDEP" && break
7529 done
7530
7531 for ac_prog in ocamldoc
7532 do
7533   # Extract the first word of "$ac_prog", so it can be a program name with args.
7534 set dummy $ac_prog; ac_word=$2
7535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7537 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7538   echo $ECHO_N "(cached) $ECHO_C" >&6
7539 else
7540   case $OCAMLDOC in
7541   [\\/]* | ?:[\\/]*)
7542   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7543   ;;
7544   *)
7545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546 for as_dir in $PATH
7547 do
7548   IFS=$as_save_IFS
7549   test -z "$as_dir" && as_dir=.
7550   for ac_exec_ext in '' $ac_executable_extensions; do
7551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7552     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7554     break 2
7555   fi
7556 done
7557 done
7558 IFS=$as_save_IFS
7559
7560   ;;
7561 esac
7562 fi
7563 OCAMLDOC=$ac_cv_path_OCAMLDOC
7564 if test -n "$OCAMLDOC"; then
7565   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7566 echo "${ECHO_T}$OCAMLDOC" >&6; }
7567 else
7568   { echo "$as_me:$LINENO: result: no" >&5
7569 echo "${ECHO_T}no" >&6; }
7570 fi
7571
7572
7573   test -n "$OCAMLDOC" && break
7574 done
7575
7576 for ac_prog in gas as
7577 do
7578   # Extract the first word of "$ac_prog", so it can be a program name with args.
7579 set dummy $ac_prog; ac_word=$2
7580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7582 if test "${ac_cv_path_GAS+set}" = set; then
7583   echo $ECHO_N "(cached) $ECHO_C" >&6
7584 else
7585   case $GAS in
7586   [\\/]* | ?:[\\/]*)
7587   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7588   ;;
7589   *)
7590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591 for as_dir in $PATH
7592 do
7593   IFS=$as_save_IFS
7594   test -z "$as_dir" && as_dir=.
7595   for ac_exec_ext in '' $ac_executable_extensions; do
7596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7597     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7599     break 2
7600   fi
7601 done
7602 done
7603 IFS=$as_save_IFS
7604
7605   ;;
7606 esac
7607 fi
7608 GAS=$ac_cv_path_GAS
7609 if test -n "$GAS"; then
7610   { echo "$as_me:$LINENO: result: $GAS" >&5
7611 echo "${ECHO_T}$GAS" >&6; }
7612 else
7613   { echo "$as_me:$LINENO: result: no" >&5
7614 echo "${ECHO_T}no" >&6; }
7615 fi
7616
7617
7618   test -n "$GAS" && break
7619 done
7620
7621
7622 { echo "$as_me:$LINENO: checking for linker version" >&5
7623 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7624 if test "${llvm_cv_link_version+set}" = set; then
7625   echo $ECHO_N "(cached) $ECHO_C" >&6
7626 else
7627
7628    version_string="$(ld -v 2>&1 | head -1)"
7629
7630    # Check for ld64.
7631    if (echo "$version_string" | grep -q "ld64"); then
7632      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7633    else
7634      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7635    fi
7636
7637 fi
7638 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7639 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7640
7641 cat >>confdefs.h <<_ACEOF
7642 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7643 _ACEOF
7644
7645
7646
7647 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7648 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7649 if test "${llvm_cv_link_use_r+set}" = set; then
7650   echo $ECHO_N "(cached) $ECHO_C" >&6
7651 else
7652    ac_ext=c
7653 ac_cpp='$CPP $CPPFLAGS'
7654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7657
7658   oldcflags="$CFLAGS"
7659   CFLAGS="$CFLAGS -Wl,-R."
7660   cat >conftest.$ac_ext <<_ACEOF
7661 /* confdefs.h.  */
7662 _ACEOF
7663 cat confdefs.h >>conftest.$ac_ext
7664 cat >>conftest.$ac_ext <<_ACEOF
7665 /* end confdefs.h.  */
7666
7667 int
7668 main ()
7669 {
7670
7671   ;
7672   return 0;
7673 }
7674 _ACEOF
7675 rm -f conftest.$ac_objext conftest$ac_exeext
7676 if { (ac_try="$ac_link"
7677 case "(($ac_try" in
7678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7679   *) ac_try_echo=$ac_try;;
7680 esac
7681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7682   (eval "$ac_link") 2>conftest.er1
7683   ac_status=$?
7684   grep -v '^ *+' conftest.er1 >conftest.err
7685   rm -f conftest.er1
7686   cat conftest.err >&5
7687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688   (exit $ac_status); } &&
7689          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7690   { (case "(($ac_try" in
7691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7692   *) ac_try_echo=$ac_try;;
7693 esac
7694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7695   (eval "$ac_try") 2>&5
7696   ac_status=$?
7697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698   (exit $ac_status); }; } &&
7699          { ac_try='test -s conftest$ac_exeext'
7700   { (case "(($ac_try" in
7701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7702   *) ac_try_echo=$ac_try;;
7703 esac
7704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7705   (eval "$ac_try") 2>&5
7706   ac_status=$?
7707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708   (exit $ac_status); }; }; then
7709   llvm_cv_link_use_r=yes
7710 else
7711   echo "$as_me: failed program was:" >&5
7712 sed 's/^/| /' conftest.$ac_ext >&5
7713
7714         llvm_cv_link_use_r=no
7715 fi
7716
7717 rm -f core conftest.err conftest.$ac_objext \
7718       conftest$ac_exeext conftest.$ac_ext
7719   CFLAGS="$oldcflags"
7720   ac_ext=c
7721 ac_cpp='$CPP $CPPFLAGS'
7722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7725
7726
7727 fi
7728 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7729 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7730 if test "$llvm_cv_link_use_r" = yes ; then
7731
7732 cat >>confdefs.h <<\_ACEOF
7733 #define HAVE_LINK_R 1
7734 _ACEOF
7735
7736   fi
7737
7738
7739 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7740 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7741 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7742   echo $ECHO_N "(cached) $ECHO_C" >&6
7743 else
7744    ac_ext=c
7745 ac_cpp='$CPP $CPPFLAGS'
7746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7749
7750   oldcflags="$CFLAGS"
7751   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7752   cat >conftest.$ac_ext <<_ACEOF
7753 /* confdefs.h.  */
7754 _ACEOF
7755 cat confdefs.h >>conftest.$ac_ext
7756 cat >>conftest.$ac_ext <<_ACEOF
7757 /* end confdefs.h.  */
7758
7759 int
7760 main ()
7761 {
7762
7763   ;
7764   return 0;
7765 }
7766 _ACEOF
7767 rm -f conftest.$ac_objext conftest$ac_exeext
7768 if { (ac_try="$ac_link"
7769 case "(($ac_try" in
7770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7771   *) ac_try_echo=$ac_try;;
7772 esac
7773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7774   (eval "$ac_link") 2>conftest.er1
7775   ac_status=$?
7776   grep -v '^ *+' conftest.er1 >conftest.err
7777   rm -f conftest.er1
7778   cat conftest.err >&5
7779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780   (exit $ac_status); } &&
7781          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7782   { (case "(($ac_try" in
7783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7784   *) ac_try_echo=$ac_try;;
7785 esac
7786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7787   (eval "$ac_try") 2>&5
7788   ac_status=$?
7789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790   (exit $ac_status); }; } &&
7791          { ac_try='test -s conftest$ac_exeext'
7792   { (case "(($ac_try" in
7793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7794   *) ac_try_echo=$ac_try;;
7795 esac
7796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7797   (eval "$ac_try") 2>&5
7798   ac_status=$?
7799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800   (exit $ac_status); }; }; then
7801   llvm_cv_link_use_export_dynamic=yes
7802 else
7803   echo "$as_me: failed program was:" >&5
7804 sed 's/^/| /' conftest.$ac_ext >&5
7805
7806         llvm_cv_link_use_export_dynamic=no
7807 fi
7808
7809 rm -f core conftest.err conftest.$ac_objext \
7810       conftest$ac_exeext conftest.$ac_ext
7811   CFLAGS="$oldcflags"
7812   ac_ext=c
7813 ac_cpp='$CPP $CPPFLAGS'
7814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7817
7818
7819 fi
7820 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7821 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7822 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7823
7824 cat >>confdefs.h <<\_ACEOF
7825 #define HAVE_LINK_EXPORT_DYNAMIC 1
7826 _ACEOF
7827
7828   fi
7829
7830
7831 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7832 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7833 if test "${llvm_cv_link_use_version_script+set}" = set; then
7834   echo $ECHO_N "(cached) $ECHO_C" >&6
7835 else
7836    ac_ext=c
7837 ac_cpp='$CPP $CPPFLAGS'
7838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7841
7842   oldcflags="$CFLAGS"
7843
7844   # The following code is from the autoconf manual,
7845   # "11.13: Limitations of Usual Tools".
7846   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7847   # Use mktemp if possible; otherwise fall back on mkdir,
7848   # with $RANDOM to make collisions less likely.
7849   : ${TMPDIR=/tmp}
7850   {
7851     tmp=`
7852       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7853     ` &&
7854     test -n "$tmp" && test -d "$tmp"
7855   } || {
7856     tmp=$TMPDIR/foo$$-$RANDOM
7857     (umask 077 && mkdir "$tmp")
7858   } || exit $?
7859
7860   echo "{" > "$tmp/export.map"
7861   echo "  global: main;" >> "$tmp/export.map"
7862   echo "  local: *;" >> "$tmp/export.map"
7863   echo "};" >> "$tmp/export.map"
7864
7865   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7866   cat >conftest.$ac_ext <<_ACEOF
7867 /* confdefs.h.  */
7868 _ACEOF
7869 cat confdefs.h >>conftest.$ac_ext
7870 cat >>conftest.$ac_ext <<_ACEOF
7871 /* end confdefs.h.  */
7872
7873 int
7874 main ()
7875 {
7876
7877   ;
7878   return 0;
7879 }
7880 _ACEOF
7881 rm -f conftest.$ac_objext conftest$ac_exeext
7882 if { (ac_try="$ac_link"
7883 case "(($ac_try" in
7884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7885   *) ac_try_echo=$ac_try;;
7886 esac
7887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7888   (eval "$ac_link") 2>conftest.er1
7889   ac_status=$?
7890   grep -v '^ *+' conftest.er1 >conftest.err
7891   rm -f conftest.er1
7892   cat conftest.err >&5
7893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894   (exit $ac_status); } &&
7895          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7896   { (case "(($ac_try" in
7897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7898   *) ac_try_echo=$ac_try;;
7899 esac
7900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7901   (eval "$ac_try") 2>&5
7902   ac_status=$?
7903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904   (exit $ac_status); }; } &&
7905          { ac_try='test -s conftest$ac_exeext'
7906   { (case "(($ac_try" in
7907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7908   *) ac_try_echo=$ac_try;;
7909 esac
7910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7911   (eval "$ac_try") 2>&5
7912   ac_status=$?
7913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914   (exit $ac_status); }; }; then
7915   llvm_cv_link_use_version_script=yes
7916 else
7917   echo "$as_me: failed program was:" >&5
7918 sed 's/^/| /' conftest.$ac_ext >&5
7919
7920         llvm_cv_link_use_version_script=no
7921 fi
7922
7923 rm -f core conftest.err conftest.$ac_objext \
7924       conftest$ac_exeext conftest.$ac_ext
7925   rm "$tmp/export.map"
7926   rmdir "$tmp"
7927   CFLAGS="$oldcflags"
7928   ac_ext=c
7929 ac_cpp='$CPP $CPPFLAGS'
7930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7933
7934
7935 fi
7936 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7937 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7938 if test "$llvm_cv_link_use_version_script" = yes ; then
7939   HAVE_LINK_VERSION_SCRIPT=1
7940
7941   fi
7942
7943
7944
7945
7946 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7947 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7948 if test "${ac_cv_c_const+set}" = set; then
7949   echo $ECHO_N "(cached) $ECHO_C" >&6
7950 else
7951   cat >conftest.$ac_ext <<_ACEOF
7952 /* confdefs.h.  */
7953 _ACEOF
7954 cat confdefs.h >>conftest.$ac_ext
7955 cat >>conftest.$ac_ext <<_ACEOF
7956 /* end confdefs.h.  */
7957
7958 int
7959 main ()
7960 {
7961 /* FIXME: Include the comments suggested by Paul. */
7962 #ifndef __cplusplus
7963   /* Ultrix mips cc rejects this.  */
7964   typedef int charset[2];
7965   const charset x;
7966   /* SunOS 4.1.1 cc rejects this.  */
7967   char const *const *ccp;
7968   char **p;
7969   /* NEC SVR4.0.2 mips cc rejects this.  */
7970   struct point {int x, y;};
7971   static struct point const zero = {0,0};
7972   /* AIX XL C 1.02.0.0 rejects this.
7973      It does not let you subtract one const X* pointer from another in
7974      an arm of an if-expression whose if-part is not a constant
7975      expression */
7976   const char *g = "string";
7977   ccp = &g + (g ? g-g : 0);
7978   /* HPUX 7.0 cc rejects these. */
7979   ++ccp;
7980   p = (char**) ccp;
7981   ccp = (char const *const *) p;
7982   { /* SCO 3.2v4 cc rejects this.  */
7983     char *t;
7984     char const *s = 0 ? (char *) 0 : (char const *) 0;
7985
7986     *t++ = 0;
7987     if (s) return 0;
7988   }
7989   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7990     int x[] = {25, 17};
7991     const int *foo = &x[0];
7992     ++foo;
7993   }
7994   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7995     typedef const int *iptr;
7996     iptr p = 0;
7997     ++p;
7998   }
7999   { /* AIX XL C 1.02.0.0 rejects this saying
8000        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8001     struct s { int j; const int *ap[3]; };
8002     struct s *b; b->j = 5;
8003   }
8004   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8005     const int foo = 10;
8006     if (!foo) return 0;
8007   }
8008   return !x[0] && !zero.x;
8009 #endif
8010
8011   ;
8012   return 0;
8013 }
8014 _ACEOF
8015 rm -f conftest.$ac_objext
8016 if { (ac_try="$ac_compile"
8017 case "(($ac_try" in
8018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8019   *) ac_try_echo=$ac_try;;
8020 esac
8021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8022   (eval "$ac_compile") 2>conftest.er1
8023   ac_status=$?
8024   grep -v '^ *+' conftest.er1 >conftest.err
8025   rm -f conftest.er1
8026   cat conftest.err >&5
8027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028   (exit $ac_status); } &&
8029          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8030   { (case "(($ac_try" in
8031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8032   *) ac_try_echo=$ac_try;;
8033 esac
8034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8035   (eval "$ac_try") 2>&5
8036   ac_status=$?
8037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038   (exit $ac_status); }; } &&
8039          { ac_try='test -s conftest.$ac_objext'
8040   { (case "(($ac_try" in
8041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8042   *) ac_try_echo=$ac_try;;
8043 esac
8044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8045   (eval "$ac_try") 2>&5
8046   ac_status=$?
8047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048   (exit $ac_status); }; }; then
8049   ac_cv_c_const=yes
8050 else
8051   echo "$as_me: failed program was:" >&5
8052 sed 's/^/| /' conftest.$ac_ext >&5
8053
8054         ac_cv_c_const=no
8055 fi
8056
8057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8058 fi
8059 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8060 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8061 if test $ac_cv_c_const = no; then
8062
8063 cat >>confdefs.h <<\_ACEOF
8064 #define const
8065 _ACEOF
8066
8067 fi
8068
8069
8070
8071
8072
8073
8074 ac_header_dirent=no
8075 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8076   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8077 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8078 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8080   echo $ECHO_N "(cached) $ECHO_C" >&6
8081 else
8082   cat >conftest.$ac_ext <<_ACEOF
8083 /* confdefs.h.  */
8084 _ACEOF
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h.  */
8088 #include <sys/types.h>
8089 #include <$ac_hdr>
8090
8091 int
8092 main ()
8093 {
8094 if ((DIR *) 0)
8095 return 0;
8096   ;
8097   return 0;
8098 }
8099 _ACEOF
8100 rm -f conftest.$ac_objext
8101 if { (ac_try="$ac_compile"
8102 case "(($ac_try" in
8103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8104   *) ac_try_echo=$ac_try;;
8105 esac
8106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8107   (eval "$ac_compile") 2>conftest.er1
8108   ac_status=$?
8109   grep -v '^ *+' conftest.er1 >conftest.err
8110   rm -f conftest.er1
8111   cat conftest.err >&5
8112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113   (exit $ac_status); } &&
8114          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8115   { (case "(($ac_try" in
8116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8117   *) ac_try_echo=$ac_try;;
8118 esac
8119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8120   (eval "$ac_try") 2>&5
8121   ac_status=$?
8122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123   (exit $ac_status); }; } &&
8124          { ac_try='test -s conftest.$ac_objext'
8125   { (case "(($ac_try" in
8126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8127   *) ac_try_echo=$ac_try;;
8128 esac
8129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8130   (eval "$ac_try") 2>&5
8131   ac_status=$?
8132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133   (exit $ac_status); }; }; then
8134   eval "$as_ac_Header=yes"
8135 else
8136   echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8138
8139         eval "$as_ac_Header=no"
8140 fi
8141
8142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8143 fi
8144 ac_res=`eval echo '${'$as_ac_Header'}'`
8145                { echo "$as_me:$LINENO: result: $ac_res" >&5
8146 echo "${ECHO_T}$ac_res" >&6; }
8147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8148   cat >>confdefs.h <<_ACEOF
8149 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8150 _ACEOF
8151
8152 ac_header_dirent=$ac_hdr; break
8153 fi
8154
8155 done
8156 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8157 if test $ac_header_dirent = dirent.h; then
8158   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8159 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8160 if test "${ac_cv_search_opendir+set}" = set; then
8161   echo $ECHO_N "(cached) $ECHO_C" >&6
8162 else
8163   ac_func_search_save_LIBS=$LIBS
8164 cat >conftest.$ac_ext <<_ACEOF
8165 /* confdefs.h.  */
8166 _ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h.  */
8170
8171 /* Override any GCC internal prototype to avoid an error.
8172    Use char because int might match the return type of a GCC
8173    builtin and then its argument prototype would still apply.  */
8174 #ifdef __cplusplus
8175 extern "C"
8176 #endif
8177 char opendir ();
8178 int
8179 main ()
8180 {
8181 return opendir ();
8182   ;
8183   return 0;
8184 }
8185 _ACEOF
8186 for ac_lib in '' dir; do
8187   if test -z "$ac_lib"; then
8188     ac_res="none required"
8189   else
8190     ac_res=-l$ac_lib
8191     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8192   fi
8193   rm -f conftest.$ac_objext conftest$ac_exeext
8194 if { (ac_try="$ac_link"
8195 case "(($ac_try" in
8196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8197   *) ac_try_echo=$ac_try;;
8198 esac
8199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8200   (eval "$ac_link") 2>conftest.er1
8201   ac_status=$?
8202   grep -v '^ *+' conftest.er1 >conftest.err
8203   rm -f conftest.er1
8204   cat conftest.err >&5
8205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206   (exit $ac_status); } &&
8207          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8208   { (case "(($ac_try" in
8209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8210   *) ac_try_echo=$ac_try;;
8211 esac
8212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8213   (eval "$ac_try") 2>&5
8214   ac_status=$?
8215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216   (exit $ac_status); }; } &&
8217          { ac_try='test -s conftest$ac_exeext'
8218   { (case "(($ac_try" in
8219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8220   *) ac_try_echo=$ac_try;;
8221 esac
8222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8223   (eval "$ac_try") 2>&5
8224   ac_status=$?
8225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226   (exit $ac_status); }; }; then
8227   ac_cv_search_opendir=$ac_res
8228 else
8229   echo "$as_me: failed program was:" >&5
8230 sed 's/^/| /' conftest.$ac_ext >&5
8231
8232
8233 fi
8234
8235 rm -f core conftest.err conftest.$ac_objext \
8236       conftest$ac_exeext
8237   if test "${ac_cv_search_opendir+set}" = set; then
8238   break
8239 fi
8240 done
8241 if test "${ac_cv_search_opendir+set}" = set; then
8242   :
8243 else
8244   ac_cv_search_opendir=no
8245 fi
8246 rm conftest.$ac_ext
8247 LIBS=$ac_func_search_save_LIBS
8248 fi
8249 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8250 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8251 ac_res=$ac_cv_search_opendir
8252 if test "$ac_res" != no; then
8253   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8254
8255 fi
8256
8257 else
8258   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8259 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8260 if test "${ac_cv_search_opendir+set}" = set; then
8261   echo $ECHO_N "(cached) $ECHO_C" >&6
8262 else
8263   ac_func_search_save_LIBS=$LIBS
8264 cat >conftest.$ac_ext <<_ACEOF
8265 /* confdefs.h.  */
8266 _ACEOF
8267 cat confdefs.h >>conftest.$ac_ext
8268 cat >>conftest.$ac_ext <<_ACEOF
8269 /* end confdefs.h.  */
8270
8271 /* Override any GCC internal prototype to avoid an error.
8272    Use char because int might match the return type of a GCC
8273    builtin and then its argument prototype would still apply.  */
8274 #ifdef __cplusplus
8275 extern "C"
8276 #endif
8277 char opendir ();
8278 int
8279 main ()
8280 {
8281 return opendir ();
8282   ;
8283   return 0;
8284 }
8285 _ACEOF
8286 for ac_lib in '' x; do
8287   if test -z "$ac_lib"; then
8288     ac_res="none required"
8289   else
8290     ac_res=-l$ac_lib
8291     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8292   fi
8293   rm -f conftest.$ac_objext conftest$ac_exeext
8294 if { (ac_try="$ac_link"
8295 case "(($ac_try" in
8296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8297   *) ac_try_echo=$ac_try;;
8298 esac
8299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8300   (eval "$ac_link") 2>conftest.er1
8301   ac_status=$?
8302   grep -v '^ *+' conftest.er1 >conftest.err
8303   rm -f conftest.er1
8304   cat conftest.err >&5
8305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306   (exit $ac_status); } &&
8307          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8308   { (case "(($ac_try" in
8309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8310   *) ac_try_echo=$ac_try;;
8311 esac
8312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8313   (eval "$ac_try") 2>&5
8314   ac_status=$?
8315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316   (exit $ac_status); }; } &&
8317          { ac_try='test -s conftest$ac_exeext'
8318   { (case "(($ac_try" in
8319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320   *) ac_try_echo=$ac_try;;
8321 esac
8322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323   (eval "$ac_try") 2>&5
8324   ac_status=$?
8325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326   (exit $ac_status); }; }; then
8327   ac_cv_search_opendir=$ac_res
8328 else
8329   echo "$as_me: failed program was:" >&5
8330 sed 's/^/| /' conftest.$ac_ext >&5
8331
8332
8333 fi
8334
8335 rm -f core conftest.err conftest.$ac_objext \
8336       conftest$ac_exeext
8337   if test "${ac_cv_search_opendir+set}" = set; then
8338   break
8339 fi
8340 done
8341 if test "${ac_cv_search_opendir+set}" = set; then
8342   :
8343 else
8344   ac_cv_search_opendir=no
8345 fi
8346 rm conftest.$ac_ext
8347 LIBS=$ac_func_search_save_LIBS
8348 fi
8349 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8350 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8351 ac_res=$ac_cv_search_opendir
8352 if test "$ac_res" != no; then
8353   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8354
8355 fi
8356
8357 fi
8358
8359
8360 for ac_header in dlfcn.h
8361 do
8362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8364   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8367   echo $ECHO_N "(cached) $ECHO_C" >&6
8368 fi
8369 ac_res=`eval echo '${'$as_ac_Header'}'`
8370                { echo "$as_me:$LINENO: result: $ac_res" >&5
8371 echo "${ECHO_T}$ac_res" >&6; }
8372 else
8373   # Is the header compilable?
8374 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8376 cat >conftest.$ac_ext <<_ACEOF
8377 /* confdefs.h.  */
8378 _ACEOF
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h.  */
8382 $ac_includes_default
8383 #include <$ac_header>
8384 _ACEOF
8385 rm -f conftest.$ac_objext
8386 if { (ac_try="$ac_compile"
8387 case "(($ac_try" in
8388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389   *) ac_try_echo=$ac_try;;
8390 esac
8391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8392   (eval "$ac_compile") 2>conftest.er1
8393   ac_status=$?
8394   grep -v '^ *+' conftest.er1 >conftest.err
8395   rm -f conftest.er1
8396   cat conftest.err >&5
8397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398   (exit $ac_status); } &&
8399          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8400   { (case "(($ac_try" in
8401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402   *) ac_try_echo=$ac_try;;
8403 esac
8404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405   (eval "$ac_try") 2>&5
8406   ac_status=$?
8407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408   (exit $ac_status); }; } &&
8409          { ac_try='test -s conftest.$ac_objext'
8410   { (case "(($ac_try" in
8411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8412   *) ac_try_echo=$ac_try;;
8413 esac
8414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8415   (eval "$ac_try") 2>&5
8416   ac_status=$?
8417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418   (exit $ac_status); }; }; then
8419   ac_header_compiler=yes
8420 else
8421   echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8423
8424         ac_header_compiler=no
8425 fi
8426
8427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8428 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8429 echo "${ECHO_T}$ac_header_compiler" >&6; }
8430
8431 # Is the header present?
8432 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8433 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8434 cat >conftest.$ac_ext <<_ACEOF
8435 /* confdefs.h.  */
8436 _ACEOF
8437 cat confdefs.h >>conftest.$ac_ext
8438 cat >>conftest.$ac_ext <<_ACEOF
8439 /* end confdefs.h.  */
8440 #include <$ac_header>
8441 _ACEOF
8442 if { (ac_try="$ac_cpp conftest.$ac_ext"
8443 case "(($ac_try" in
8444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445   *) ac_try_echo=$ac_try;;
8446 esac
8447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8448   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8449   ac_status=$?
8450   grep -v '^ *+' conftest.er1 >conftest.err
8451   rm -f conftest.er1
8452   cat conftest.err >&5
8453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454   (exit $ac_status); } >/dev/null; then
8455   if test -s conftest.err; then
8456     ac_cpp_err=$ac_c_preproc_warn_flag
8457     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8458   else
8459     ac_cpp_err=
8460   fi
8461 else
8462   ac_cpp_err=yes
8463 fi
8464 if test -z "$ac_cpp_err"; then
8465   ac_header_preproc=yes
8466 else
8467   echo "$as_me: failed program was:" >&5
8468 sed 's/^/| /' conftest.$ac_ext >&5
8469
8470   ac_header_preproc=no
8471 fi
8472
8473 rm -f conftest.err conftest.$ac_ext
8474 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8475 echo "${ECHO_T}$ac_header_preproc" >&6; }
8476
8477 # So?  What about this header?
8478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8479   yes:no: )
8480     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8481 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8482     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8483 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8484     ac_header_preproc=yes
8485     ;;
8486   no:yes:* )
8487     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8488 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8489     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8490 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8491     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8492 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8493     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8494 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8495     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8496 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8497     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8498 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8499     ( cat <<\_ASBOX
8500 ## ------------------------------ ##
8501 ## Report this to bugs@yourdomain ##
8502 ## ------------------------------ ##
8503 _ASBOX
8504      ) | sed "s/^/$as_me: WARNING:     /" >&2
8505     ;;
8506 esac
8507 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8510   echo $ECHO_N "(cached) $ECHO_C" >&6
8511 else
8512   eval "$as_ac_Header=\$ac_header_preproc"
8513 fi
8514 ac_res=`eval echo '${'$as_ac_Header'}'`
8515                { echo "$as_me:$LINENO: result: $ac_res" >&5
8516 echo "${ECHO_T}$ac_res" >&6; }
8517
8518 fi
8519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8520   cat >>confdefs.h <<_ACEOF
8521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8522 _ACEOF
8523
8524 fi
8525
8526 done
8527
8528 # Check whether --enable-ltdl-install was given.
8529 if test "${enable_ltdl_install+set}" = set; then
8530   enableval=$enable_ltdl_install;
8531 fi
8532
8533
8534
8535
8536 if test x"${enable_ltdl_install-no}" != xno; then
8537   INSTALL_LTDL_TRUE=
8538   INSTALL_LTDL_FALSE='#'
8539 else
8540   INSTALL_LTDL_TRUE='#'
8541   INSTALL_LTDL_FALSE=
8542 fi
8543
8544
8545
8546 if test x"${enable_ltdl_convenience-no}" != xno; then
8547   CONVENIENCE_LTDL_TRUE=
8548   CONVENIENCE_LTDL_FALSE='#'
8549 else
8550   CONVENIENCE_LTDL_TRUE='#'
8551   CONVENIENCE_LTDL_FALSE=
8552 fi
8553
8554
8555 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8556 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8557 library_names_spec=
8558 libname_spec='lib$name'
8559 soname_spec=
8560 shrext_cmds=".so"
8561 postinstall_cmds=
8562 postuninstall_cmds=
8563 finish_cmds=
8564 finish_eval=
8565 shlibpath_var=
8566 shlibpath_overrides_runpath=unknown
8567 version_type=none
8568 dynamic_linker="$host_os ld.so"
8569 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8570 if test "$GCC" = yes; then
8571   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8572   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8573     # if the path contains ";" then we assume it to be the separator
8574     # otherwise default to the standard path separator (i.e. ":") - it is
8575     # assumed that no part of a normal pathname contains ";" but that should
8576     # okay in the real world where ";" in dirpaths is itself problematic.
8577     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8578   else
8579     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8580   fi
8581 else
8582   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8583 fi
8584 need_lib_prefix=unknown
8585 hardcode_into_libs=no
8586
8587 # when you set need_version to no, make sure it does not cause -set_version
8588 # flags to be left without arguments
8589 need_version=unknown
8590
8591 case $host_os in
8592 aix3*)
8593   version_type=linux
8594   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8595   shlibpath_var=LIBPATH
8596
8597   # AIX 3 has no versioning support, so we append a major version to the name.
8598   soname_spec='${libname}${release}${shared_ext}$major'
8599   ;;
8600
8601 aix4* | aix5*)
8602   version_type=linux
8603   need_lib_prefix=no
8604   need_version=no
8605   hardcode_into_libs=yes
8606   if test "$host_cpu" = ia64; then
8607     # AIX 5 supports IA64
8608     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8609     shlibpath_var=LD_LIBRARY_PATH
8610   else
8611     # With GCC up to 2.95.x, collect2 would create an import file
8612     # for dependence libraries.  The import file would start with
8613     # the line `#! .'.  This would cause the generated library to
8614     # depend on `.', always an invalid library.  This was fixed in
8615     # development snapshots of GCC prior to 3.0.
8616     case $host_os in
8617       aix4 | aix4.[01] | aix4.[01].*)
8618       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8619            echo ' yes '
8620            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8621         :
8622       else
8623         can_build_shared=no
8624       fi
8625       ;;
8626     esac
8627     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8628     # soname into executable. Probably we can add versioning support to
8629     # collect2, so additional links can be useful in future.
8630     if test "$aix_use_runtimelinking" = yes; then
8631       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8632       # instead of lib<name>.a to let people know that these are not
8633       # typical AIX shared libraries.
8634       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8635     else
8636       # We preserve .a as extension for shared libraries through AIX4.2
8637       # and later when we are not doing run time linking.
8638       library_names_spec='${libname}${release}.a $libname.a'
8639       soname_spec='${libname}${release}${shared_ext}$major'
8640     fi
8641     shlibpath_var=LIBPATH
8642   fi
8643   ;;
8644
8645 amigaos*)
8646   library_names_spec='$libname.ixlibrary $libname.a'
8647   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8648   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'
8649   ;;
8650
8651 beos*)
8652   library_names_spec='${libname}${shared_ext}'
8653   dynamic_linker="$host_os ld.so"
8654   shlibpath_var=LIBRARY_PATH
8655   ;;
8656
8657 bsdi[45]*)
8658   version_type=linux
8659   need_version=no
8660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8661   soname_spec='${libname}${release}${shared_ext}$major'
8662   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8663   shlibpath_var=LD_LIBRARY_PATH
8664   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8665   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8666   # the default ld.so.conf also contains /usr/contrib/lib and
8667   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8668   # libtool to hard-code these into programs
8669   ;;
8670
8671 cygwin* | mingw* | pw32*)
8672   version_type=windows
8673   shrext_cmds=".dll"
8674   need_version=no
8675   need_lib_prefix=no
8676
8677   case $GCC,$host_os in
8678   yes,cygwin* | yes,mingw* | yes,pw32*)
8679     library_names_spec='$libname.dll.a'
8680     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8681     postinstall_cmds='base_file=`basename \${file}`~
8682       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8683       dldir=$destdir/`dirname \$dlpath`~
8684       test -d \$dldir || mkdir -p \$dldir~
8685       $install_prog $dir/$dlname \$dldir/$dlname~
8686       chmod a+x \$dldir/$dlname'
8687     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8688       dlpath=$dir/\$dldll~
8689        $rm \$dlpath'
8690     shlibpath_overrides_runpath=yes
8691
8692     case $host_os in
8693     cygwin*)
8694       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8695       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8696       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8697       ;;
8698     mingw*)
8699       # MinGW DLLs use traditional 'lib' prefix
8700       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8701       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8702       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8703         # It is most probably a Windows format PATH printed by
8704         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8705         # path with ; separators, and with drive letters. We can handle the
8706         # drive letters (cygwin fileutils understands them), so leave them,
8707         # especially as we might pass files found there to a mingw objdump,
8708         # which wouldn't understand a cygwinified path. Ahh.
8709         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8710       else
8711         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8712       fi
8713       ;;
8714     pw32*)
8715       # pw32 DLLs use 'pw' prefix rather than 'lib'
8716       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8717       ;;
8718     esac
8719     ;;
8720
8721   *)
8722     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8723     ;;
8724   esac
8725   dynamic_linker='Win32 ld.exe'
8726   # FIXME: first we should search . and the directory the executable is in
8727   shlibpath_var=PATH
8728   ;;
8729
8730 darwin* | rhapsody*)
8731   dynamic_linker="$host_os dyld"
8732   version_type=darwin
8733   need_lib_prefix=no
8734   need_version=no
8735   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8736   soname_spec='${libname}${release}${major}$shared_ext'
8737   shlibpath_overrides_runpath=yes
8738   shlibpath_var=DYLD_LIBRARY_PATH
8739   shrext_cmds='.dylib'
8740   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8741   if test "$GCC" = yes; then
8742     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"`
8743   else
8744     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8745   fi
8746   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8747   ;;
8748
8749 dgux*)
8750   version_type=linux
8751   need_lib_prefix=no
8752   need_version=no
8753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8754   soname_spec='${libname}${release}${shared_ext}$major'
8755   shlibpath_var=LD_LIBRARY_PATH
8756   ;;
8757
8758 freebsd1.*)
8759   dynamic_linker=no
8760   ;;
8761
8762 kfreebsd*-gnu)
8763   version_type=linux
8764   need_lib_prefix=no
8765   need_version=no
8766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8767   soname_spec='${libname}${release}${shared_ext}$major'
8768   shlibpath_var=LD_LIBRARY_PATH
8769   shlibpath_overrides_runpath=no
8770   hardcode_into_libs=yes
8771   dynamic_linker='GNU ld.so'
8772   ;;
8773
8774 freebsd* | dragonfly*)
8775   # DragonFly does not have aout.  When/if they implement a new
8776   # versioning mechanism, adjust this.
8777   if test -x /usr/bin/objformat; then
8778     objformat=`/usr/bin/objformat`
8779   else
8780     case $host_os in
8781     freebsd[123].*) objformat=aout ;;
8782     *) objformat=elf ;;
8783     esac
8784   fi
8785   version_type=freebsd-$objformat
8786   case $version_type in
8787     freebsd-elf*)
8788       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8789       need_version=no
8790       need_lib_prefix=no
8791       ;;
8792     freebsd-*)
8793       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8794       need_version=yes
8795       ;;
8796   esac
8797   shlibpath_var=LD_LIBRARY_PATH
8798   case $host_os in
8799   freebsd2.*)
8800     shlibpath_overrides_runpath=yes
8801     ;;
8802   freebsd3.[01]* | freebsdelf3.[01]*)
8803     shlibpath_overrides_runpath=yes
8804     hardcode_into_libs=yes
8805     ;;
8806   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8807   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8808     shlibpath_overrides_runpath=no
8809     hardcode_into_libs=yes
8810     ;;
8811   freebsd*) # from 4.6 on
8812     shlibpath_overrides_runpath=yes
8813     hardcode_into_libs=yes
8814     ;;
8815   esac
8816   ;;
8817
8818 gnu*)
8819   version_type=linux
8820   need_lib_prefix=no
8821   need_version=no
8822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8823   soname_spec='${libname}${release}${shared_ext}$major'
8824   shlibpath_var=LD_LIBRARY_PATH
8825   hardcode_into_libs=yes
8826   ;;
8827
8828 hpux9* | hpux10* | hpux11*)
8829   # Give a soname corresponding to the major version so that dld.sl refuses to
8830   # link against other versions.
8831   version_type=sunos
8832   need_lib_prefix=no
8833   need_version=no
8834   case $host_cpu in
8835   ia64*)
8836     shrext_cmds='.so'
8837     hardcode_into_libs=yes
8838     dynamic_linker="$host_os dld.so"
8839     shlibpath_var=LD_LIBRARY_PATH
8840     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8841     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8842     soname_spec='${libname}${release}${shared_ext}$major'
8843     if test "X$HPUX_IA64_MODE" = X32; then
8844       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8845     else
8846       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8847     fi
8848     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8849     ;;
8850    hppa*64*)
8851      shrext_cmds='.sl'
8852      hardcode_into_libs=yes
8853      dynamic_linker="$host_os dld.sl"
8854      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8855      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8856      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8857      soname_spec='${libname}${release}${shared_ext}$major'
8858      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8859      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8860      ;;
8861    *)
8862     shrext_cmds='.sl'
8863     dynamic_linker="$host_os dld.sl"
8864     shlibpath_var=SHLIB_PATH
8865     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8866     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8867     soname_spec='${libname}${release}${shared_ext}$major'
8868     ;;
8869   esac
8870   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8871   postinstall_cmds='chmod 555 $lib'
8872   ;;
8873
8874 interix3*)
8875   version_type=linux
8876   need_lib_prefix=no
8877   need_version=no
8878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8879   soname_spec='${libname}${release}${shared_ext}$major'
8880   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8881   shlibpath_var=LD_LIBRARY_PATH
8882   shlibpath_overrides_runpath=no
8883   hardcode_into_libs=yes
8884   ;;
8885
8886 irix5* | irix6* | nonstopux*)
8887   case $host_os in
8888     nonstopux*) version_type=nonstopux ;;
8889     *)
8890         if test "$lt_cv_prog_gnu_ld" = yes; then
8891                 version_type=linux
8892         else
8893                 version_type=irix
8894         fi ;;
8895   esac
8896   need_lib_prefix=no
8897   need_version=no
8898   soname_spec='${libname}${release}${shared_ext}$major'
8899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8900   case $host_os in
8901   irix5* | nonstopux*)
8902     libsuff= shlibsuff=
8903     ;;
8904   *)
8905     case $LD in # libtool.m4 will add one of these switches to LD
8906     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8907       libsuff= shlibsuff= libmagic=32-bit;;
8908     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8909       libsuff=32 shlibsuff=N32 libmagic=N32;;
8910     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8911       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8912     *) libsuff= shlibsuff= libmagic=never-match;;
8913     esac
8914     ;;
8915   esac
8916   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8917   shlibpath_overrides_runpath=no
8918   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8919   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8920   hardcode_into_libs=yes
8921   ;;
8922
8923 # No shared lib support for Linux oldld, aout, or coff.
8924 linux*oldld* | linux*aout* | linux*coff*)
8925   dynamic_linker=no
8926   ;;
8927
8928 # This must be Linux ELF.
8929 linux*)
8930   version_type=linux
8931   need_lib_prefix=no
8932   need_version=no
8933   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8934   soname_spec='${libname}${release}${shared_ext}$major'
8935   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8936   shlibpath_var=LD_LIBRARY_PATH
8937   shlibpath_overrides_runpath=no
8938   # This implies no fast_install, which is unacceptable.
8939   # Some rework will be needed to allow for fast_install
8940   # before this can be enabled.
8941   hardcode_into_libs=yes
8942
8943   # Append ld.so.conf contents to the search path
8944   if test -f /etc/ld.so.conf; then
8945     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' ' '`
8946     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8947   fi
8948
8949   # We used to test for /lib/ld.so.1 and disable shared libraries on
8950   # powerpc, because MkLinux only supported shared libraries with the
8951   # GNU dynamic linker.  Since this was broken with cross compilers,
8952   # most powerpc-linux boxes support dynamic linking these days and
8953   # people can always --disable-shared, the test was removed, and we
8954   # assume the GNU/Linux dynamic linker is in use.
8955   dynamic_linker='GNU/Linux ld.so'
8956   ;;
8957
8958 knetbsd*-gnu)
8959   version_type=linux
8960   need_lib_prefix=no
8961   need_version=no
8962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8963   soname_spec='${libname}${release}${shared_ext}$major'
8964   shlibpath_var=LD_LIBRARY_PATH
8965   shlibpath_overrides_runpath=no
8966   hardcode_into_libs=yes
8967   dynamic_linker='GNU ld.so'
8968   ;;
8969
8970 netbsd*)
8971   version_type=sunos
8972   need_lib_prefix=no
8973   need_version=no
8974   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8975     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8976     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8977     dynamic_linker='NetBSD (a.out) ld.so'
8978   else
8979     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8980     soname_spec='${libname}${release}${shared_ext}$major'
8981     dynamic_linker='NetBSD ld.elf_so'
8982   fi
8983   shlibpath_var=LD_LIBRARY_PATH
8984   shlibpath_overrides_runpath=yes
8985   hardcode_into_libs=yes
8986   ;;
8987
8988 newsos6)
8989   version_type=linux
8990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8991   shlibpath_var=LD_LIBRARY_PATH
8992   shlibpath_overrides_runpath=yes
8993   ;;
8994
8995 nto-qnx*)
8996   version_type=linux
8997   need_lib_prefix=no
8998   need_version=no
8999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9000   soname_spec='${libname}${release}${shared_ext}$major'
9001   shlibpath_var=LD_LIBRARY_PATH
9002   shlibpath_overrides_runpath=yes
9003   ;;
9004
9005 openbsd*)
9006   version_type=sunos
9007   sys_lib_dlsearch_path_spec="/usr/lib"
9008   need_lib_prefix=no
9009   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9010   case $host_os in
9011     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9012     *)                         need_version=no  ;;
9013   esac
9014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9015   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9016   shlibpath_var=LD_LIBRARY_PATH
9017   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9018     case $host_os in
9019       openbsd2.[89] | openbsd2.[89].*)
9020         shlibpath_overrides_runpath=no
9021         ;;
9022       *)
9023         shlibpath_overrides_runpath=yes
9024         ;;
9025       esac
9026   else
9027     shlibpath_overrides_runpath=yes
9028   fi
9029   ;;
9030
9031 os2*)
9032   libname_spec='$name'
9033   shrext_cmds=".dll"
9034   need_lib_prefix=no
9035   library_names_spec='$libname${shared_ext} $libname.a'
9036   dynamic_linker='OS/2 ld.exe'
9037   shlibpath_var=LIBPATH
9038   ;;
9039
9040 osf3* | osf4* | osf5*)
9041   version_type=osf
9042   need_lib_prefix=no
9043   need_version=no
9044   soname_spec='${libname}${release}${shared_ext}$major'
9045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9046   shlibpath_var=LD_LIBRARY_PATH
9047   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9048   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9049   ;;
9050
9051 solaris*)
9052   version_type=linux
9053   need_lib_prefix=no
9054   need_version=no
9055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9056   soname_spec='${libname}${release}${shared_ext}$major'
9057   shlibpath_var=LD_LIBRARY_PATH
9058   shlibpath_overrides_runpath=yes
9059   hardcode_into_libs=yes
9060   # ldd complains unless libraries are executable
9061   postinstall_cmds='chmod +x $lib'
9062   ;;
9063
9064 sunos4*)
9065   version_type=sunos
9066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9067   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9068   shlibpath_var=LD_LIBRARY_PATH
9069   shlibpath_overrides_runpath=yes
9070   if test "$with_gnu_ld" = yes; then
9071     need_lib_prefix=no
9072   fi
9073   need_version=yes
9074   ;;
9075
9076 sysv4 | sysv4.3*)
9077   version_type=linux
9078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9079   soname_spec='${libname}${release}${shared_ext}$major'
9080   shlibpath_var=LD_LIBRARY_PATH
9081   case $host_vendor in
9082     sni)
9083       shlibpath_overrides_runpath=no
9084       need_lib_prefix=no
9085       export_dynamic_flag_spec='${wl}-Blargedynsym'
9086       runpath_var=LD_RUN_PATH
9087       ;;
9088     siemens)
9089       need_lib_prefix=no
9090       ;;
9091     motorola)
9092       need_lib_prefix=no
9093       need_version=no
9094       shlibpath_overrides_runpath=no
9095       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9096       ;;
9097   esac
9098   ;;
9099
9100 sysv4*MP*)
9101   if test -d /usr/nec ;then
9102     version_type=linux
9103     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9104     soname_spec='$libname${shared_ext}.$major'
9105     shlibpath_var=LD_LIBRARY_PATH
9106   fi
9107   ;;
9108
9109 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9110   version_type=freebsd-elf
9111   need_lib_prefix=no
9112   need_version=no
9113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9114   soname_spec='${libname}${release}${shared_ext}$major'
9115   shlibpath_var=LD_LIBRARY_PATH
9116   hardcode_into_libs=yes
9117   if test "$with_gnu_ld" = yes; then
9118     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9119     shlibpath_overrides_runpath=no
9120   else
9121     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9122     shlibpath_overrides_runpath=yes
9123     case $host_os in
9124       sco3.2v5*)
9125         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9126         ;;
9127     esac
9128   fi
9129   sys_lib_dlsearch_path_spec='/usr/lib'
9130   ;;
9131
9132 uts4*)
9133   version_type=linux
9134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9135   soname_spec='${libname}${release}${shared_ext}$major'
9136   shlibpath_var=LD_LIBRARY_PATH
9137   ;;
9138
9139 *)
9140   dynamic_linker=no
9141   ;;
9142 esac
9143 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9144 echo "${ECHO_T}$dynamic_linker" >&6; }
9145 test "$dynamic_linker" = no && can_build_shared=no
9146
9147 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9148 if test "$GCC" = yes; then
9149   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9150 fi
9151
9152
9153 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9154 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9155 if test "${libltdl_cv_shlibext+set}" = set; then
9156   echo $ECHO_N "(cached) $ECHO_C" >&6
9157 else
9158
9159 module=yes
9160 eval libltdl_cv_shlibext=$shrext_cmds
9161
9162 fi
9163 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9164 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9165 if test -n "$libltdl_cv_shlibext"; then
9166
9167 cat >>confdefs.h <<_ACEOF
9168 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9169 _ACEOF
9170
9171 fi
9172
9173
9174 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9175 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9176 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9177   echo $ECHO_N "(cached) $ECHO_C" >&6
9178 else
9179   libltdl_cv_shlibpath_var="$shlibpath_var"
9180 fi
9181 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9182 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9183 if test -n "$libltdl_cv_shlibpath_var"; then
9184
9185 cat >>confdefs.h <<_ACEOF
9186 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9187 _ACEOF
9188
9189 fi
9190
9191
9192 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9193 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9194 if test "${libltdl_cv_sys_search_path+set}" = set; then
9195   echo $ECHO_N "(cached) $ECHO_C" >&6
9196 else
9197   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9198 fi
9199 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9200 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9201 if test -n "$libltdl_cv_sys_search_path"; then
9202   sys_search_path=
9203   for dir in $libltdl_cv_sys_search_path; do
9204     if test -z "$sys_search_path"; then
9205       sys_search_path="$dir"
9206     else
9207       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9208     fi
9209   done
9210
9211 cat >>confdefs.h <<_ACEOF
9212 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9213 _ACEOF
9214
9215 fi
9216
9217 { echo "$as_me:$LINENO: checking for objdir" >&5
9218 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9219 if test "${libltdl_cv_objdir+set}" = set; then
9220   echo $ECHO_N "(cached) $ECHO_C" >&6
9221 else
9222   libltdl_cv_objdir="$objdir"
9223   if test -n "$objdir"; then
9224     :
9225   else
9226     rm -f .libs 2>/dev/null
9227     mkdir .libs 2>/dev/null
9228     if test -d .libs; then
9229       libltdl_cv_objdir=.libs
9230     else
9231       # MS-DOS does not allow filenames that begin with a dot.
9232       libltdl_cv_objdir=_libs
9233     fi
9234   rmdir .libs 2>/dev/null
9235   fi
9236
9237 fi
9238 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9239 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9240
9241 cat >>confdefs.h <<_ACEOF
9242 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9243 _ACEOF
9244
9245
9246
9247
9248
9249
9250 # Check for command to grab the raw symbol name followed by C symbol from nm.
9251 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9252 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9253 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9254   echo $ECHO_N "(cached) $ECHO_C" >&6
9255 else
9256
9257 # These are sane defaults that work on at least a few old systems.
9258 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9259
9260 # Character class describing NM global symbol codes.
9261 symcode='[BCDEGRST]'
9262
9263 # Regexp to match symbols that can be accessed directly from C.
9264 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9265
9266 # Transform an extracted symbol line into a proper C declaration
9267 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9268
9269 # Transform an extracted symbol line into symbol name and symbol address
9270 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'"
9271
9272 # Define system-specific variables.
9273 case $host_os in
9274 aix*)
9275   symcode='[BCDT]'
9276   ;;
9277 cygwin* | mingw* | pw32*)
9278   symcode='[ABCDGISTW]'
9279   ;;
9280 hpux*) # Its linker distinguishes data from code symbols
9281   if test "$host_cpu" = ia64; then
9282     symcode='[ABCDEGRST]'
9283   fi
9284   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9285   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'"
9286   ;;
9287 linux*)
9288   if test "$host_cpu" = ia64; then
9289     symcode='[ABCDGIRSTW]'
9290     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9291     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'"
9292   fi
9293   ;;
9294 irix* | nonstopux*)
9295   symcode='[BCDEGRST]'
9296   ;;
9297 osf*)
9298   symcode='[BCDEGQRST]'
9299   ;;
9300 solaris*)
9301   symcode='[BDRT]'
9302   ;;
9303 sco3.2v5*)
9304   symcode='[DT]'
9305   ;;
9306 sysv4.2uw2*)
9307   symcode='[DT]'
9308   ;;
9309 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9310   symcode='[ABDT]'
9311   ;;
9312 sysv4)
9313   symcode='[DFNSTU]'
9314   ;;
9315 esac
9316
9317 # Handle CRLF in mingw tool chain
9318 opt_cr=
9319 case $build_os in
9320 mingw*)
9321   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9322   ;;
9323 esac
9324
9325 # If we're using GNU nm, then use its standard symbol codes.
9326 case `$NM -V 2>&1` in
9327 *GNU* | *'with BFD'*)
9328   symcode='[ABCDGIRSTW]' ;;
9329 esac
9330
9331 # Try without a prefix undercore, then with it.
9332 for ac_symprfx in "" "_"; do
9333
9334   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9335   symxfrm="\\1 $ac_symprfx\\2 \\2"
9336
9337   # Write the raw and C identifiers.
9338   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9339
9340   # Check to see that the pipe works correctly.
9341   pipe_works=no
9342
9343   rm -f conftest*
9344   cat > conftest.$ac_ext <<EOF
9345 #ifdef __cplusplus
9346 extern "C" {
9347 #endif
9348 char nm_test_var;
9349 void nm_test_func(){}
9350 #ifdef __cplusplus
9351 }
9352 #endif
9353 int main(){nm_test_var='a';nm_test_func();return(0);}
9354 EOF
9355
9356   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9357   (eval $ac_compile) 2>&5
9358   ac_status=$?
9359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360   (exit $ac_status); }; then
9361     # Now try to grab the symbols.
9362     nlist=conftest.nm
9363     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9364   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9365   ac_status=$?
9366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367   (exit $ac_status); } && test -s "$nlist"; then
9368       # Try sorting and uniquifying the output.
9369       if sort "$nlist" | uniq > "$nlist"T; then
9370         mv -f "$nlist"T "$nlist"
9371       else
9372         rm -f "$nlist"T
9373       fi
9374
9375       # Make sure that we snagged all the symbols we need.
9376       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9377         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9378           cat <<EOF > conftest.$ac_ext
9379 #ifdef __cplusplus
9380 extern "C" {
9381 #endif
9382
9383 EOF
9384           # Now generate the symbol file.
9385           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9386
9387           cat <<EOF >> conftest.$ac_ext
9388 #if defined (__STDC__) && __STDC__
9389 # define lt_ptr_t void *
9390 #else
9391 # define lt_ptr_t char *
9392 # define const
9393 #endif
9394
9395 /* The mapping between symbol names and symbols. */
9396 const struct {
9397   const char *name;
9398   lt_ptr_t address;
9399 }
9400 lt_preloaded_symbols[] =
9401 {
9402 EOF
9403           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9404           cat <<\EOF >> conftest.$ac_ext
9405   {0, (lt_ptr_t) 0}
9406 };
9407
9408 #ifdef __cplusplus
9409 }
9410 #endif
9411 EOF
9412           # Now try linking the two files.
9413           mv conftest.$ac_objext conftstm.$ac_objext
9414           lt_save_LIBS="$LIBS"
9415           lt_save_CFLAGS="$CFLAGS"
9416           LIBS="conftstm.$ac_objext"
9417           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9418           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9419   (eval $ac_link) 2>&5
9420   ac_status=$?
9421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9423             pipe_works=yes
9424           fi
9425           LIBS="$lt_save_LIBS"
9426           CFLAGS="$lt_save_CFLAGS"
9427         else
9428           echo "cannot find nm_test_func in $nlist" >&5
9429         fi
9430       else
9431         echo "cannot find nm_test_var in $nlist" >&5
9432       fi
9433     else
9434       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9435     fi
9436   else
9437     echo "$progname: failed program was:" >&5
9438     cat conftest.$ac_ext >&5
9439   fi
9440   rm -f conftest* conftst*
9441
9442   # Do not use the global_symbol_pipe unless it works.
9443   if test "$pipe_works" = yes; then
9444     break
9445   else
9446     lt_cv_sys_global_symbol_pipe=
9447   fi
9448 done
9449
9450 fi
9451
9452 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9453   lt_cv_sys_global_symbol_to_cdecl=
9454 fi
9455 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9456   { echo "$as_me:$LINENO: result: failed" >&5
9457 echo "${ECHO_T}failed" >&6; }
9458 else
9459   { echo "$as_me:$LINENO: result: ok" >&5
9460 echo "${ECHO_T}ok" >&6; }
9461 fi
9462
9463
9464 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9465 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9466 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9467   echo $ECHO_N "(cached) $ECHO_C" >&6
9468 else
9469   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9470     libltdl_cv_preloaded_symbols=yes
9471   else
9472     libltdl_cv_preloaded_symbols=no
9473   fi
9474
9475 fi
9476 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9477 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9478 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9479
9480 cat >>confdefs.h <<\_ACEOF
9481 #define HAVE_PRELOADED_SYMBOLS 1
9482 _ACEOF
9483
9484 fi
9485
9486 LIBADD_DL=
9487
9488 ac_ext=c
9489 ac_cpp='$CPP $CPPFLAGS'
9490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9493
9494
9495 { echo "$as_me:$LINENO: checking for shl_load" >&5
9496 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9497 if test "${ac_cv_func_shl_load+set}" = set; then
9498   echo $ECHO_N "(cached) $ECHO_C" >&6
9499 else
9500   cat >conftest.$ac_ext <<_ACEOF
9501 /* confdefs.h.  */
9502 _ACEOF
9503 cat confdefs.h >>conftest.$ac_ext
9504 cat >>conftest.$ac_ext <<_ACEOF
9505 /* end confdefs.h.  */
9506 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9507    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9508 #define shl_load innocuous_shl_load
9509
9510 /* System header to define __stub macros and hopefully few prototypes,
9511     which can conflict with char shl_load (); below.
9512     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9513     <limits.h> exists even on freestanding compilers.  */
9514
9515 #ifdef __STDC__
9516 # include <limits.h>
9517 #else
9518 # include <assert.h>
9519 #endif
9520
9521 #undef shl_load
9522
9523 /* Override any GCC internal prototype to avoid an error.
9524    Use char because int might match the return type of a GCC
9525    builtin and then its argument prototype would still apply.  */
9526 #ifdef __cplusplus
9527 extern "C"
9528 #endif
9529 char shl_load ();
9530 /* The GNU C library defines this for functions which it implements
9531     to always fail with ENOSYS.  Some functions are actually named
9532     something starting with __ and the normal name is an alias.  */
9533 #if defined __stub_shl_load || defined __stub___shl_load
9534 choke me
9535 #endif
9536
9537 int
9538 main ()
9539 {
9540 return shl_load ();
9541   ;
9542   return 0;
9543 }
9544 _ACEOF
9545 rm -f conftest.$ac_objext conftest$ac_exeext
9546 if { (ac_try="$ac_link"
9547 case "(($ac_try" in
9548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9549   *) ac_try_echo=$ac_try;;
9550 esac
9551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9552   (eval "$ac_link") 2>conftest.er1
9553   ac_status=$?
9554   grep -v '^ *+' conftest.er1 >conftest.err
9555   rm -f conftest.er1
9556   cat conftest.err >&5
9557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558   (exit $ac_status); } &&
9559          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9560   { (case "(($ac_try" in
9561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9562   *) ac_try_echo=$ac_try;;
9563 esac
9564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9565   (eval "$ac_try") 2>&5
9566   ac_status=$?
9567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568   (exit $ac_status); }; } &&
9569          { ac_try='test -s conftest$ac_exeext'
9570   { (case "(($ac_try" in
9571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9572   *) ac_try_echo=$ac_try;;
9573 esac
9574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9575   (eval "$ac_try") 2>&5
9576   ac_status=$?
9577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578   (exit $ac_status); }; }; then
9579   ac_cv_func_shl_load=yes
9580 else
9581   echo "$as_me: failed program was:" >&5
9582 sed 's/^/| /' conftest.$ac_ext >&5
9583
9584         ac_cv_func_shl_load=no
9585 fi
9586
9587 rm -f core conftest.err conftest.$ac_objext \
9588       conftest$ac_exeext conftest.$ac_ext
9589 fi
9590 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9591 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9592 if test $ac_cv_func_shl_load = yes; then
9593
9594 cat >>confdefs.h <<\_ACEOF
9595 #define HAVE_SHL_LOAD 1
9596 _ACEOF
9597
9598 else
9599   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9600 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9601 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9602   echo $ECHO_N "(cached) $ECHO_C" >&6
9603 else
9604   ac_check_lib_save_LIBS=$LIBS
9605 LIBS="-ldld  $LIBS"
9606 cat >conftest.$ac_ext <<_ACEOF
9607 /* confdefs.h.  */
9608 _ACEOF
9609 cat confdefs.h >>conftest.$ac_ext
9610 cat >>conftest.$ac_ext <<_ACEOF
9611 /* end confdefs.h.  */
9612
9613 /* Override any GCC internal prototype to avoid an error.
9614    Use char because int might match the return type of a GCC
9615    builtin and then its argument prototype would still apply.  */
9616 #ifdef __cplusplus
9617 extern "C"
9618 #endif
9619 char shl_load ();
9620 int
9621 main ()
9622 {
9623 return shl_load ();
9624   ;
9625   return 0;
9626 }
9627 _ACEOF
9628 rm -f conftest.$ac_objext conftest$ac_exeext
9629 if { (ac_try="$ac_link"
9630 case "(($ac_try" in
9631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9632   *) ac_try_echo=$ac_try;;
9633 esac
9634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9635   (eval "$ac_link") 2>conftest.er1
9636   ac_status=$?
9637   grep -v '^ *+' conftest.er1 >conftest.err
9638   rm -f conftest.er1
9639   cat conftest.err >&5
9640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641   (exit $ac_status); } &&
9642          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9643   { (case "(($ac_try" in
9644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9645   *) ac_try_echo=$ac_try;;
9646 esac
9647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9648   (eval "$ac_try") 2>&5
9649   ac_status=$?
9650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651   (exit $ac_status); }; } &&
9652          { ac_try='test -s conftest$ac_exeext'
9653   { (case "(($ac_try" in
9654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9655   *) ac_try_echo=$ac_try;;
9656 esac
9657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9658   (eval "$ac_try") 2>&5
9659   ac_status=$?
9660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661   (exit $ac_status); }; }; then
9662   ac_cv_lib_dld_shl_load=yes
9663 else
9664   echo "$as_me: failed program was:" >&5
9665 sed 's/^/| /' conftest.$ac_ext >&5
9666
9667         ac_cv_lib_dld_shl_load=no
9668 fi
9669
9670 rm -f core conftest.err conftest.$ac_objext \
9671       conftest$ac_exeext conftest.$ac_ext
9672 LIBS=$ac_check_lib_save_LIBS
9673 fi
9674 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9675 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9676 if test $ac_cv_lib_dld_shl_load = yes; then
9677
9678 cat >>confdefs.h <<\_ACEOF
9679 #define HAVE_SHL_LOAD 1
9680 _ACEOF
9681
9682         LIBADD_DL="$LIBADD_DL -ldld"
9683 else
9684   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9685 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9686 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9687   echo $ECHO_N "(cached) $ECHO_C" >&6
9688 else
9689   ac_check_lib_save_LIBS=$LIBS
9690 LIBS="-ldl  $LIBS"
9691 cat >conftest.$ac_ext <<_ACEOF
9692 /* confdefs.h.  */
9693 _ACEOF
9694 cat confdefs.h >>conftest.$ac_ext
9695 cat >>conftest.$ac_ext <<_ACEOF
9696 /* end confdefs.h.  */
9697
9698 /* Override any GCC internal prototype to avoid an error.
9699    Use char because int might match the return type of a GCC
9700    builtin and then its argument prototype would still apply.  */
9701 #ifdef __cplusplus
9702 extern "C"
9703 #endif
9704 char dlopen ();
9705 int
9706 main ()
9707 {
9708 return dlopen ();
9709   ;
9710   return 0;
9711 }
9712 _ACEOF
9713 rm -f conftest.$ac_objext conftest$ac_exeext
9714 if { (ac_try="$ac_link"
9715 case "(($ac_try" in
9716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9717   *) ac_try_echo=$ac_try;;
9718 esac
9719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9720   (eval "$ac_link") 2>conftest.er1
9721   ac_status=$?
9722   grep -v '^ *+' conftest.er1 >conftest.err
9723   rm -f conftest.er1
9724   cat conftest.err >&5
9725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726   (exit $ac_status); } &&
9727          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9728   { (case "(($ac_try" in
9729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9730   *) ac_try_echo=$ac_try;;
9731 esac
9732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9733   (eval "$ac_try") 2>&5
9734   ac_status=$?
9735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736   (exit $ac_status); }; } &&
9737          { ac_try='test -s conftest$ac_exeext'
9738   { (case "(($ac_try" in
9739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9740   *) ac_try_echo=$ac_try;;
9741 esac
9742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9743   (eval "$ac_try") 2>&5
9744   ac_status=$?
9745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746   (exit $ac_status); }; }; then
9747   ac_cv_lib_dl_dlopen=yes
9748 else
9749   echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.$ac_ext >&5
9751
9752         ac_cv_lib_dl_dlopen=no
9753 fi
9754
9755 rm -f core conftest.err conftest.$ac_objext \
9756       conftest$ac_exeext conftest.$ac_ext
9757 LIBS=$ac_check_lib_save_LIBS
9758 fi
9759 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9760 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9761 if test $ac_cv_lib_dl_dlopen = yes; then
9762
9763 cat >>confdefs.h <<\_ACEOF
9764 #define HAVE_LIBDL 1
9765 _ACEOF
9766
9767                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9768 else
9769   cat >conftest.$ac_ext <<_ACEOF
9770 /* confdefs.h.  */
9771 _ACEOF
9772 cat confdefs.h >>conftest.$ac_ext
9773 cat >>conftest.$ac_ext <<_ACEOF
9774 /* end confdefs.h.  */
9775 #if HAVE_DLFCN_H
9776 #  include <dlfcn.h>
9777 #endif
9778
9779 int
9780 main ()
9781 {
9782 dlopen(0, 0);
9783   ;
9784   return 0;
9785 }
9786 _ACEOF
9787 rm -f conftest.$ac_objext conftest$ac_exeext
9788 if { (ac_try="$ac_link"
9789 case "(($ac_try" in
9790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9791   *) ac_try_echo=$ac_try;;
9792 esac
9793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9794   (eval "$ac_link") 2>conftest.er1
9795   ac_status=$?
9796   grep -v '^ *+' conftest.er1 >conftest.err
9797   rm -f conftest.er1
9798   cat conftest.err >&5
9799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800   (exit $ac_status); } &&
9801          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9802   { (case "(($ac_try" in
9803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9804   *) ac_try_echo=$ac_try;;
9805 esac
9806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9807   (eval "$ac_try") 2>&5
9808   ac_status=$?
9809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810   (exit $ac_status); }; } &&
9811          { ac_try='test -s conftest$ac_exeext'
9812   { (case "(($ac_try" in
9813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9814   *) ac_try_echo=$ac_try;;
9815 esac
9816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9817   (eval "$ac_try") 2>&5
9818   ac_status=$?
9819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820   (exit $ac_status); }; }; then
9821
9822 cat >>confdefs.h <<\_ACEOF
9823 #define HAVE_LIBDL 1
9824 _ACEOF
9825  libltdl_cv_func_dlopen="yes"
9826 else
9827   echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.$ac_ext >&5
9829
9830         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9831 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9832 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9833   echo $ECHO_N "(cached) $ECHO_C" >&6
9834 else
9835   ac_check_lib_save_LIBS=$LIBS
9836 LIBS="-lsvld  $LIBS"
9837 cat >conftest.$ac_ext <<_ACEOF
9838 /* confdefs.h.  */
9839 _ACEOF
9840 cat confdefs.h >>conftest.$ac_ext
9841 cat >>conftest.$ac_ext <<_ACEOF
9842 /* end confdefs.h.  */
9843
9844 /* Override any GCC internal prototype to avoid an error.
9845    Use char because int might match the return type of a GCC
9846    builtin and then its argument prototype would still apply.  */
9847 #ifdef __cplusplus
9848 extern "C"
9849 #endif
9850 char dlopen ();
9851 int
9852 main ()
9853 {
9854 return dlopen ();
9855   ;
9856   return 0;
9857 }
9858 _ACEOF
9859 rm -f conftest.$ac_objext conftest$ac_exeext
9860 if { (ac_try="$ac_link"
9861 case "(($ac_try" in
9862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9863   *) ac_try_echo=$ac_try;;
9864 esac
9865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9866   (eval "$ac_link") 2>conftest.er1
9867   ac_status=$?
9868   grep -v '^ *+' conftest.er1 >conftest.err
9869   rm -f conftest.er1
9870   cat conftest.err >&5
9871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872   (exit $ac_status); } &&
9873          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9874   { (case "(($ac_try" in
9875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9876   *) ac_try_echo=$ac_try;;
9877 esac
9878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9879   (eval "$ac_try") 2>&5
9880   ac_status=$?
9881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882   (exit $ac_status); }; } &&
9883          { ac_try='test -s conftest$ac_exeext'
9884   { (case "(($ac_try" in
9885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886   *) ac_try_echo=$ac_try;;
9887 esac
9888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889   (eval "$ac_try") 2>&5
9890   ac_status=$?
9891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892   (exit $ac_status); }; }; then
9893   ac_cv_lib_svld_dlopen=yes
9894 else
9895   echo "$as_me: failed program was:" >&5
9896 sed 's/^/| /' conftest.$ac_ext >&5
9897
9898         ac_cv_lib_svld_dlopen=no
9899 fi
9900
9901 rm -f core conftest.err conftest.$ac_objext \
9902       conftest$ac_exeext conftest.$ac_ext
9903 LIBS=$ac_check_lib_save_LIBS
9904 fi
9905 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9906 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9907 if test $ac_cv_lib_svld_dlopen = yes; then
9908
9909 cat >>confdefs.h <<\_ACEOF
9910 #define HAVE_LIBDL 1
9911 _ACEOF
9912
9913                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9914 else
9915   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9916 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9917 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9918   echo $ECHO_N "(cached) $ECHO_C" >&6
9919 else
9920   ac_check_lib_save_LIBS=$LIBS
9921 LIBS="-ldld  $LIBS"
9922 cat >conftest.$ac_ext <<_ACEOF
9923 /* confdefs.h.  */
9924 _ACEOF
9925 cat confdefs.h >>conftest.$ac_ext
9926 cat >>conftest.$ac_ext <<_ACEOF
9927 /* end confdefs.h.  */
9928
9929 /* Override any GCC internal prototype to avoid an error.
9930    Use char because int might match the return type of a GCC
9931    builtin and then its argument prototype would still apply.  */
9932 #ifdef __cplusplus
9933 extern "C"
9934 #endif
9935 char dld_link ();
9936 int
9937 main ()
9938 {
9939 return dld_link ();
9940   ;
9941   return 0;
9942 }
9943 _ACEOF
9944 rm -f conftest.$ac_objext conftest$ac_exeext
9945 if { (ac_try="$ac_link"
9946 case "(($ac_try" in
9947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9948   *) ac_try_echo=$ac_try;;
9949 esac
9950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9951   (eval "$ac_link") 2>conftest.er1
9952   ac_status=$?
9953   grep -v '^ *+' conftest.er1 >conftest.err
9954   rm -f conftest.er1
9955   cat conftest.err >&5
9956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957   (exit $ac_status); } &&
9958          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9959   { (case "(($ac_try" in
9960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9961   *) ac_try_echo=$ac_try;;
9962 esac
9963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9964   (eval "$ac_try") 2>&5
9965   ac_status=$?
9966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967   (exit $ac_status); }; } &&
9968          { ac_try='test -s conftest$ac_exeext'
9969   { (case "(($ac_try" in
9970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9971   *) ac_try_echo=$ac_try;;
9972 esac
9973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9974   (eval "$ac_try") 2>&5
9975   ac_status=$?
9976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977   (exit $ac_status); }; }; then
9978   ac_cv_lib_dld_dld_link=yes
9979 else
9980   echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.$ac_ext >&5
9982
9983         ac_cv_lib_dld_dld_link=no
9984 fi
9985
9986 rm -f core conftest.err conftest.$ac_objext \
9987       conftest$ac_exeext conftest.$ac_ext
9988 LIBS=$ac_check_lib_save_LIBS
9989 fi
9990 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9991 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9992 if test $ac_cv_lib_dld_dld_link = yes; then
9993
9994 cat >>confdefs.h <<\_ACEOF
9995 #define HAVE_DLD 1
9996 _ACEOF
9997
9998                 LIBADD_DL="$LIBADD_DL -ldld"
9999 else
10000   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10001 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10002 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10003   echo $ECHO_N "(cached) $ECHO_C" >&6
10004 else
10005   cat >conftest.$ac_ext <<_ACEOF
10006 /* confdefs.h.  */
10007 _ACEOF
10008 cat confdefs.h >>conftest.$ac_ext
10009 cat >>conftest.$ac_ext <<_ACEOF
10010 /* end confdefs.h.  */
10011 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10012    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10013 #define _dyld_func_lookup innocuous__dyld_func_lookup
10014
10015 /* System header to define __stub macros and hopefully few prototypes,
10016     which can conflict with char _dyld_func_lookup (); below.
10017     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10018     <limits.h> exists even on freestanding compilers.  */
10019
10020 #ifdef __STDC__
10021 # include <limits.h>
10022 #else
10023 # include <assert.h>
10024 #endif
10025
10026 #undef _dyld_func_lookup
10027
10028 /* Override any GCC internal prototype to avoid an error.
10029    Use char because int might match the return type of a GCC
10030    builtin and then its argument prototype would still apply.  */
10031 #ifdef __cplusplus
10032 extern "C"
10033 #endif
10034 char _dyld_func_lookup ();
10035 /* The GNU C library defines this for functions which it implements
10036     to always fail with ENOSYS.  Some functions are actually named
10037     something starting with __ and the normal name is an alias.  */
10038 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10039 choke me
10040 #endif
10041
10042 int
10043 main ()
10044 {
10045 return _dyld_func_lookup ();
10046   ;
10047   return 0;
10048 }
10049 _ACEOF
10050 rm -f conftest.$ac_objext conftest$ac_exeext
10051 if { (ac_try="$ac_link"
10052 case "(($ac_try" in
10053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10054   *) ac_try_echo=$ac_try;;
10055 esac
10056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10057   (eval "$ac_link") 2>conftest.er1
10058   ac_status=$?
10059   grep -v '^ *+' conftest.er1 >conftest.err
10060   rm -f conftest.er1
10061   cat conftest.err >&5
10062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063   (exit $ac_status); } &&
10064          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10065   { (case "(($ac_try" in
10066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067   *) ac_try_echo=$ac_try;;
10068 esac
10069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10070   (eval "$ac_try") 2>&5
10071   ac_status=$?
10072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073   (exit $ac_status); }; } &&
10074          { ac_try='test -s conftest$ac_exeext'
10075   { (case "(($ac_try" in
10076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10077   *) ac_try_echo=$ac_try;;
10078 esac
10079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10080   (eval "$ac_try") 2>&5
10081   ac_status=$?
10082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083   (exit $ac_status); }; }; then
10084   ac_cv_func__dyld_func_lookup=yes
10085 else
10086   echo "$as_me: failed program was:" >&5
10087 sed 's/^/| /' conftest.$ac_ext >&5
10088
10089         ac_cv_func__dyld_func_lookup=no
10090 fi
10091
10092 rm -f core conftest.err conftest.$ac_objext \
10093       conftest$ac_exeext conftest.$ac_ext
10094 fi
10095 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10096 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10097 if test $ac_cv_func__dyld_func_lookup = yes; then
10098
10099 cat >>confdefs.h <<\_ACEOF
10100 #define HAVE_DYLD 1
10101 _ACEOF
10102
10103 fi
10104
10105
10106 fi
10107
10108
10109 fi
10110
10111
10112 fi
10113
10114 rm -f core conftest.err conftest.$ac_objext \
10115       conftest$ac_exeext conftest.$ac_ext
10116
10117 fi
10118
10119
10120 fi
10121
10122
10123 fi
10124
10125
10126 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10127 then
10128   lt_save_LIBS="$LIBS"
10129   LIBS="$LIBS $LIBADD_DL"
10130
10131 for ac_func in dlerror
10132 do
10133 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10134 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10136 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10137   echo $ECHO_N "(cached) $ECHO_C" >&6
10138 else
10139   cat >conftest.$ac_ext <<_ACEOF
10140 /* confdefs.h.  */
10141 _ACEOF
10142 cat confdefs.h >>conftest.$ac_ext
10143 cat >>conftest.$ac_ext <<_ACEOF
10144 /* end confdefs.h.  */
10145 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10146    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10147 #define $ac_func innocuous_$ac_func
10148
10149 /* System header to define __stub macros and hopefully few prototypes,
10150     which can conflict with char $ac_func (); below.
10151     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10152     <limits.h> exists even on freestanding compilers.  */
10153
10154 #ifdef __STDC__
10155 # include <limits.h>
10156 #else
10157 # include <assert.h>
10158 #endif
10159
10160 #undef $ac_func
10161
10162 /* Override any GCC internal prototype to avoid an error.
10163    Use char because int might match the return type of a GCC
10164    builtin and then its argument prototype would still apply.  */
10165 #ifdef __cplusplus
10166 extern "C"
10167 #endif
10168 char $ac_func ();
10169 /* The GNU C library defines this for functions which it implements
10170     to always fail with ENOSYS.  Some functions are actually named
10171     something starting with __ and the normal name is an alias.  */
10172 #if defined __stub_$ac_func || defined __stub___$ac_func
10173 choke me
10174 #endif
10175
10176 int
10177 main ()
10178 {
10179 return $ac_func ();
10180   ;
10181   return 0;
10182 }
10183 _ACEOF
10184 rm -f conftest.$ac_objext conftest$ac_exeext
10185 if { (ac_try="$ac_link"
10186 case "(($ac_try" in
10187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10188   *) ac_try_echo=$ac_try;;
10189 esac
10190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10191   (eval "$ac_link") 2>conftest.er1
10192   ac_status=$?
10193   grep -v '^ *+' conftest.er1 >conftest.err
10194   rm -f conftest.er1
10195   cat conftest.err >&5
10196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197   (exit $ac_status); } &&
10198          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10199   { (case "(($ac_try" in
10200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10201   *) ac_try_echo=$ac_try;;
10202 esac
10203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10204   (eval "$ac_try") 2>&5
10205   ac_status=$?
10206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207   (exit $ac_status); }; } &&
10208          { ac_try='test -s conftest$ac_exeext'
10209   { (case "(($ac_try" in
10210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10211   *) ac_try_echo=$ac_try;;
10212 esac
10213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10214   (eval "$ac_try") 2>&5
10215   ac_status=$?
10216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217   (exit $ac_status); }; }; then
10218   eval "$as_ac_var=yes"
10219 else
10220   echo "$as_me: failed program was:" >&5
10221 sed 's/^/| /' conftest.$ac_ext >&5
10222
10223         eval "$as_ac_var=no"
10224 fi
10225
10226 rm -f core conftest.err conftest.$ac_objext \
10227       conftest$ac_exeext conftest.$ac_ext
10228 fi
10229 ac_res=`eval echo '${'$as_ac_var'}'`
10230                { echo "$as_me:$LINENO: result: $ac_res" >&5
10231 echo "${ECHO_T}$ac_res" >&6; }
10232 if test `eval echo '${'$as_ac_var'}'` = yes; then
10233   cat >>confdefs.h <<_ACEOF
10234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10235 _ACEOF
10236
10237 fi
10238 done
10239
10240   LIBS="$lt_save_LIBS"
10241 fi
10242 ac_ext=c
10243 ac_cpp='$CPP $CPPFLAGS'
10244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10247
10248
10249
10250 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10251 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10252 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10253   echo $ECHO_N "(cached) $ECHO_C" >&6
10254 else
10255   ac_cv_sys_symbol_underscore=no
10256   cat > conftest.$ac_ext <<EOF
10257 void nm_test_func(){}
10258 int main(){nm_test_func;return 0;}
10259 EOF
10260   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10261   (eval $ac_compile) 2>&5
10262   ac_status=$?
10263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264   (exit $ac_status); }; then
10265     # Now try to grab the symbols.
10266     ac_nlist=conftest.nm
10267     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10268   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10269   ac_status=$?
10270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271   (exit $ac_status); } && test -s "$ac_nlist"; then
10272       # See whether the symbols have a leading underscore.
10273       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10274         ac_cv_sys_symbol_underscore=yes
10275       else
10276         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10277           :
10278         else
10279           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10280         fi
10281       fi
10282     else
10283       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10284     fi
10285   else
10286     echo "configure: failed program was:" >&5
10287     cat conftest.c >&5
10288   fi
10289   rm -rf conftest*
10290
10291 fi
10292 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10293 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10294
10295
10296 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10297   if test x"$libltdl_cv_func_dlopen" = xyes ||
10298      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10299         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10300 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10301 if test "${libltdl_cv_need_uscore+set}" = set; then
10302   echo $ECHO_N "(cached) $ECHO_C" >&6
10303 else
10304   libltdl_cv_need_uscore=unknown
10305           save_LIBS="$LIBS"
10306           LIBS="$LIBS $LIBADD_DL"
10307           if test "$cross_compiling" = yes; then :
10308   libltdl_cv_need_uscore=cross
10309 else
10310   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10311   lt_status=$lt_dlunknown
10312   cat > conftest.$ac_ext <<EOF
10313 #line 10312 "configure"
10314 #include "confdefs.h"
10315
10316 #if HAVE_DLFCN_H
10317 #include <dlfcn.h>
10318 #endif
10319
10320 #include <stdio.h>
10321
10322 #ifdef RTLD_GLOBAL
10323 #  define LT_DLGLOBAL           RTLD_GLOBAL
10324 #else
10325 #  ifdef DL_GLOBAL
10326 #    define LT_DLGLOBAL         DL_GLOBAL
10327 #  else
10328 #    define LT_DLGLOBAL         0
10329 #  endif
10330 #endif
10331
10332 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10333    find out it does not work in some platform. */
10334 #ifndef LT_DLLAZY_OR_NOW
10335 #  ifdef RTLD_LAZY
10336 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10337 #  else
10338 #    ifdef DL_LAZY
10339 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10340 #    else
10341 #      ifdef RTLD_NOW
10342 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10343 #      else
10344 #        ifdef DL_NOW
10345 #          define LT_DLLAZY_OR_NOW      DL_NOW
10346 #        else
10347 #          define LT_DLLAZY_OR_NOW      0
10348 #        endif
10349 #      endif
10350 #    endif
10351 #  endif
10352 #endif
10353
10354 #ifdef __cplusplus
10355 extern "C" void exit (int);
10356 #endif
10357
10358 void fnord() { int i=42;}
10359 int main ()
10360 {
10361   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10362   int status = $lt_dlunknown;
10363
10364   if (self)
10365     {
10366       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10367       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10368       /* dlclose (self); */
10369     }
10370   else
10371     puts (dlerror ());
10372
10373     exit (status);
10374 }
10375 EOF
10376   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10377   (eval $ac_link) 2>&5
10378   ac_status=$?
10379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10381     (./conftest; exit; ) >&5 2>/dev/null
10382     lt_status=$?
10383     case x$lt_status in
10384       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10385       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10386       x$lt_dlunknown|x*)  ;;
10387     esac
10388   else :
10389     # compilation failed
10390
10391   fi
10392 fi
10393 rm -fr conftest*
10394
10395           LIBS="$save_LIBS"
10396
10397 fi
10398 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10399 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10400   fi
10401 fi
10402
10403 if test x"$libltdl_cv_need_uscore" = xyes; then
10404
10405 cat >>confdefs.h <<\_ACEOF
10406 #define NEED_USCORE 1
10407 _ACEOF
10408
10409 fi
10410
10411
10412 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10413 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10414 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10415   echo $ECHO_N "(cached) $ECHO_C" >&6
10416 else
10417   # PORTME does your system automatically load deplibs for dlopen?
10418   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10419   # For now, we just catch OSes we know something about -- in the
10420   # future, we'll try test this programmatically.
10421   libltdl_cv_sys_dlopen_deplibs=unknown
10422   case "$host_os" in
10423   aix3*|aix4.1.*|aix4.2.*)
10424     # Unknown whether this is true for these versions of AIX, but
10425     # we want this `case' here to explicitly catch those versions.
10426     libltdl_cv_sys_dlopen_deplibs=unknown
10427     ;;
10428   aix[45]*)
10429     libltdl_cv_sys_dlopen_deplibs=yes
10430     ;;
10431   darwin*)
10432     # Assuming the user has installed a libdl from somewhere, this is true
10433     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10434     libltdl_cv_sys_dlopen_deplibs=yes
10435     ;;
10436   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10437     # GNU and its variants, using gnu ld.so (Glibc)
10438     libltdl_cv_sys_dlopen_deplibs=yes
10439     ;;
10440   hpux10*|hpux11*)
10441     libltdl_cv_sys_dlopen_deplibs=yes
10442     ;;
10443   interix*)
10444     libltdl_cv_sys_dlopen_deplibs=yes
10445     ;;
10446   irix[12345]*|irix6.[01]*)
10447     # Catch all versions of IRIX before 6.2, and indicate that we don't
10448     # know how it worked for any of those versions.
10449     libltdl_cv_sys_dlopen_deplibs=unknown
10450     ;;
10451   irix*)
10452     # The case above catches anything before 6.2, and it's known that
10453     # at 6.2 and later dlopen does load deplibs.
10454     libltdl_cv_sys_dlopen_deplibs=yes
10455     ;;
10456   netbsd*)
10457     libltdl_cv_sys_dlopen_deplibs=yes
10458     ;;
10459   openbsd*)
10460     libltdl_cv_sys_dlopen_deplibs=yes
10461     ;;
10462   osf[1234]*)
10463     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10464     # it did *not* use an RPATH in a shared library to find objects the
10465     # library depends on, so we explicitly say `no'.
10466     libltdl_cv_sys_dlopen_deplibs=no
10467     ;;
10468   osf5.0|osf5.0a|osf5.1)
10469     # dlopen *does* load deplibs and with the right loader patch applied
10470     # it even uses RPATH in a shared library to search for shared objects
10471     # that the library depends on, but there's no easy way to know if that
10472     # patch is installed.  Since this is the case, all we can really
10473     # say is unknown -- it depends on the patch being installed.  If
10474     # it is, this changes to `yes'.  Without it, it would be `no'.
10475     libltdl_cv_sys_dlopen_deplibs=unknown
10476     ;;
10477   osf*)
10478     # the two cases above should catch all versions of osf <= 5.1.  Read
10479     # the comments above for what we know about them.
10480     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10481     # is used to find them so we can finally say `yes'.
10482     libltdl_cv_sys_dlopen_deplibs=yes
10483     ;;
10484   solaris*)
10485     libltdl_cv_sys_dlopen_deplibs=yes
10486     ;;
10487   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10488     libltdl_cv_sys_dlopen_deplibs=yes
10489     ;;
10490   esac
10491
10492 fi
10493 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10494 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10495 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10496
10497 cat >>confdefs.h <<\_ACEOF
10498 #define LTDL_DLOPEN_DEPLIBS 1
10499 _ACEOF
10500
10501 fi
10502
10503
10504 for ac_header in argz.h
10505 do
10506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10508   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10511   echo $ECHO_N "(cached) $ECHO_C" >&6
10512 fi
10513 ac_res=`eval echo '${'$as_ac_Header'}'`
10514                { echo "$as_me:$LINENO: result: $ac_res" >&5
10515 echo "${ECHO_T}$ac_res" >&6; }
10516 else
10517   # Is the header compilable?
10518 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10520 cat >conftest.$ac_ext <<_ACEOF
10521 /* confdefs.h.  */
10522 _ACEOF
10523 cat confdefs.h >>conftest.$ac_ext
10524 cat >>conftest.$ac_ext <<_ACEOF
10525 /* end confdefs.h.  */
10526 $ac_includes_default
10527 #include <$ac_header>
10528 _ACEOF
10529 rm -f conftest.$ac_objext
10530 if { (ac_try="$ac_compile"
10531 case "(($ac_try" in
10532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10533   *) ac_try_echo=$ac_try;;
10534 esac
10535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10536   (eval "$ac_compile") 2>conftest.er1
10537   ac_status=$?
10538   grep -v '^ *+' conftest.er1 >conftest.err
10539   rm -f conftest.er1
10540   cat conftest.err >&5
10541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542   (exit $ac_status); } &&
10543          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10544   { (case "(($ac_try" in
10545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10546   *) ac_try_echo=$ac_try;;
10547 esac
10548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10549   (eval "$ac_try") 2>&5
10550   ac_status=$?
10551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552   (exit $ac_status); }; } &&
10553          { ac_try='test -s conftest.$ac_objext'
10554   { (case "(($ac_try" in
10555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10556   *) ac_try_echo=$ac_try;;
10557 esac
10558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10559   (eval "$ac_try") 2>&5
10560   ac_status=$?
10561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562   (exit $ac_status); }; }; then
10563   ac_header_compiler=yes
10564 else
10565   echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.$ac_ext >&5
10567
10568         ac_header_compiler=no
10569 fi
10570
10571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10572 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10573 echo "${ECHO_T}$ac_header_compiler" >&6; }
10574
10575 # Is the header present?
10576 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10577 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10578 cat >conftest.$ac_ext <<_ACEOF
10579 /* confdefs.h.  */
10580 _ACEOF
10581 cat confdefs.h >>conftest.$ac_ext
10582 cat >>conftest.$ac_ext <<_ACEOF
10583 /* end confdefs.h.  */
10584 #include <$ac_header>
10585 _ACEOF
10586 if { (ac_try="$ac_cpp conftest.$ac_ext"
10587 case "(($ac_try" in
10588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10589   *) ac_try_echo=$ac_try;;
10590 esac
10591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10592   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10593   ac_status=$?
10594   grep -v '^ *+' conftest.er1 >conftest.err
10595   rm -f conftest.er1
10596   cat conftest.err >&5
10597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598   (exit $ac_status); } >/dev/null; then
10599   if test -s conftest.err; then
10600     ac_cpp_err=$ac_c_preproc_warn_flag
10601     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10602   else
10603     ac_cpp_err=
10604   fi
10605 else
10606   ac_cpp_err=yes
10607 fi
10608 if test -z "$ac_cpp_err"; then
10609   ac_header_preproc=yes
10610 else
10611   echo "$as_me: failed program was:" >&5
10612 sed 's/^/| /' conftest.$ac_ext >&5
10613
10614   ac_header_preproc=no
10615 fi
10616
10617 rm -f conftest.err conftest.$ac_ext
10618 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10619 echo "${ECHO_T}$ac_header_preproc" >&6; }
10620
10621 # So?  What about this header?
10622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10623   yes:no: )
10624     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10625 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10626     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10627 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10628     ac_header_preproc=yes
10629     ;;
10630   no:yes:* )
10631     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10632 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10633     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10634 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10635     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10636 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10637     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10638 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10639     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10640 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10641     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10642 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10643     ( cat <<\_ASBOX
10644 ## ------------------------------ ##
10645 ## Report this to bugs@yourdomain ##
10646 ## ------------------------------ ##
10647 _ASBOX
10648      ) | sed "s/^/$as_me: WARNING:     /" >&2
10649     ;;
10650 esac
10651 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10654   echo $ECHO_N "(cached) $ECHO_C" >&6
10655 else
10656   eval "$as_ac_Header=\$ac_header_preproc"
10657 fi
10658 ac_res=`eval echo '${'$as_ac_Header'}'`
10659                { echo "$as_me:$LINENO: result: $ac_res" >&5
10660 echo "${ECHO_T}$ac_res" >&6; }
10661
10662 fi
10663 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10664   cat >>confdefs.h <<_ACEOF
10665 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10666 _ACEOF
10667
10668 fi
10669
10670 done
10671
10672
10673 { echo "$as_me:$LINENO: checking for error_t" >&5
10674 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10675 if test "${ac_cv_type_error_t+set}" = set; then
10676   echo $ECHO_N "(cached) $ECHO_C" >&6
10677 else
10678   cat >conftest.$ac_ext <<_ACEOF
10679 /* confdefs.h.  */
10680 _ACEOF
10681 cat confdefs.h >>conftest.$ac_ext
10682 cat >>conftest.$ac_ext <<_ACEOF
10683 /* end confdefs.h.  */
10684 #if HAVE_ARGZ_H
10685 #  include <argz.h>
10686 #endif
10687
10688 typedef error_t ac__type_new_;
10689 int
10690 main ()
10691 {
10692 if ((ac__type_new_ *) 0)
10693   return 0;
10694 if (sizeof (ac__type_new_))
10695   return 0;
10696   ;
10697   return 0;
10698 }
10699 _ACEOF
10700 rm -f conftest.$ac_objext
10701 if { (ac_try="$ac_compile"
10702 case "(($ac_try" in
10703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10704   *) ac_try_echo=$ac_try;;
10705 esac
10706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10707   (eval "$ac_compile") 2>conftest.er1
10708   ac_status=$?
10709   grep -v '^ *+' conftest.er1 >conftest.err
10710   rm -f conftest.er1
10711   cat conftest.err >&5
10712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713   (exit $ac_status); } &&
10714          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10715   { (case "(($ac_try" in
10716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10717   *) ac_try_echo=$ac_try;;
10718 esac
10719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10720   (eval "$ac_try") 2>&5
10721   ac_status=$?
10722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723   (exit $ac_status); }; } &&
10724          { ac_try='test -s conftest.$ac_objext'
10725   { (case "(($ac_try" in
10726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10727   *) ac_try_echo=$ac_try;;
10728 esac
10729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10730   (eval "$ac_try") 2>&5
10731   ac_status=$?
10732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733   (exit $ac_status); }; }; then
10734   ac_cv_type_error_t=yes
10735 else
10736   echo "$as_me: failed program was:" >&5
10737 sed 's/^/| /' conftest.$ac_ext >&5
10738
10739         ac_cv_type_error_t=no
10740 fi
10741
10742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10743 fi
10744 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10745 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10746 if test $ac_cv_type_error_t = yes; then
10747
10748 cat >>confdefs.h <<_ACEOF
10749 #define HAVE_ERROR_T 1
10750 _ACEOF
10751
10752
10753 else
10754
10755 cat >>confdefs.h <<\_ACEOF
10756 #define error_t int
10757 _ACEOF
10758
10759 fi
10760
10761
10762
10763
10764
10765
10766
10767 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10768 do
10769 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10770 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10772 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10773   echo $ECHO_N "(cached) $ECHO_C" >&6
10774 else
10775   cat >conftest.$ac_ext <<_ACEOF
10776 /* confdefs.h.  */
10777 _ACEOF
10778 cat confdefs.h >>conftest.$ac_ext
10779 cat >>conftest.$ac_ext <<_ACEOF
10780 /* end confdefs.h.  */
10781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10782    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10783 #define $ac_func innocuous_$ac_func
10784
10785 /* System header to define __stub macros and hopefully few prototypes,
10786     which can conflict with char $ac_func (); below.
10787     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10788     <limits.h> exists even on freestanding compilers.  */
10789
10790 #ifdef __STDC__
10791 # include <limits.h>
10792 #else
10793 # include <assert.h>
10794 #endif
10795
10796 #undef $ac_func
10797
10798 /* Override any GCC internal prototype to avoid an error.
10799    Use char because int might match the return type of a GCC
10800    builtin and then its argument prototype would still apply.  */
10801 #ifdef __cplusplus
10802 extern "C"
10803 #endif
10804 char $ac_func ();
10805 /* The GNU C library defines this for functions which it implements
10806     to always fail with ENOSYS.  Some functions are actually named
10807     something starting with __ and the normal name is an alias.  */
10808 #if defined __stub_$ac_func || defined __stub___$ac_func
10809 choke me
10810 #endif
10811
10812 int
10813 main ()
10814 {
10815 return $ac_func ();
10816   ;
10817   return 0;
10818 }
10819 _ACEOF
10820 rm -f conftest.$ac_objext conftest$ac_exeext
10821 if { (ac_try="$ac_link"
10822 case "(($ac_try" in
10823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10824   *) ac_try_echo=$ac_try;;
10825 esac
10826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10827   (eval "$ac_link") 2>conftest.er1
10828   ac_status=$?
10829   grep -v '^ *+' conftest.er1 >conftest.err
10830   rm -f conftest.er1
10831   cat conftest.err >&5
10832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833   (exit $ac_status); } &&
10834          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10835   { (case "(($ac_try" in
10836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10837   *) ac_try_echo=$ac_try;;
10838 esac
10839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10840   (eval "$ac_try") 2>&5
10841   ac_status=$?
10842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843   (exit $ac_status); }; } &&
10844          { ac_try='test -s conftest$ac_exeext'
10845   { (case "(($ac_try" in
10846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10847   *) ac_try_echo=$ac_try;;
10848 esac
10849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10850   (eval "$ac_try") 2>&5
10851   ac_status=$?
10852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853   (exit $ac_status); }; }; then
10854   eval "$as_ac_var=yes"
10855 else
10856   echo "$as_me: failed program was:" >&5
10857 sed 's/^/| /' conftest.$ac_ext >&5
10858
10859         eval "$as_ac_var=no"
10860 fi
10861
10862 rm -f core conftest.err conftest.$ac_objext \
10863       conftest$ac_exeext conftest.$ac_ext
10864 fi
10865 ac_res=`eval echo '${'$as_ac_var'}'`
10866                { echo "$as_me:$LINENO: result: $ac_res" >&5
10867 echo "${ECHO_T}$ac_res" >&6; }
10868 if test `eval echo '${'$as_ac_var'}'` = yes; then
10869   cat >>confdefs.h <<_ACEOF
10870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10871 _ACEOF
10872
10873 fi
10874 done
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10904                   stdio.h unistd.h
10905 do
10906 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10908   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10911   echo $ECHO_N "(cached) $ECHO_C" >&6
10912 fi
10913 ac_res=`eval echo '${'$as_ac_Header'}'`
10914                { echo "$as_me:$LINENO: result: $ac_res" >&5
10915 echo "${ECHO_T}$ac_res" >&6; }
10916 else
10917   # Is the header compilable?
10918 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10919 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10920 cat >conftest.$ac_ext <<_ACEOF
10921 /* confdefs.h.  */
10922 _ACEOF
10923 cat confdefs.h >>conftest.$ac_ext
10924 cat >>conftest.$ac_ext <<_ACEOF
10925 /* end confdefs.h.  */
10926 $ac_includes_default
10927 #include <$ac_header>
10928 _ACEOF
10929 rm -f conftest.$ac_objext
10930 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
10937   ac_status=$?
10938   grep -v '^ *+' conftest.er1 >conftest.err
10939   rm -f conftest.er1
10940   cat conftest.err >&5
10941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942   (exit $ac_status); } &&
10943          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10944   { (case "(($ac_try" in
10945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10946   *) ac_try_echo=$ac_try;;
10947 esac
10948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10949   (eval "$ac_try") 2>&5
10950   ac_status=$?
10951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952   (exit $ac_status); }; } &&
10953          { ac_try='test -s conftest.$ac_objext'
10954   { (case "(($ac_try" in
10955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10956   *) ac_try_echo=$ac_try;;
10957 esac
10958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10959   (eval "$ac_try") 2>&5
10960   ac_status=$?
10961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962   (exit $ac_status); }; }; then
10963   ac_header_compiler=yes
10964 else
10965   echo "$as_me: failed program was:" >&5
10966 sed 's/^/| /' conftest.$ac_ext >&5
10967
10968         ac_header_compiler=no
10969 fi
10970
10971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10972 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10973 echo "${ECHO_T}$ac_header_compiler" >&6; }
10974
10975 # Is the header present?
10976 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10978 cat >conftest.$ac_ext <<_ACEOF
10979 /* confdefs.h.  */
10980 _ACEOF
10981 cat confdefs.h >>conftest.$ac_ext
10982 cat >>conftest.$ac_ext <<_ACEOF
10983 /* end confdefs.h.  */
10984 #include <$ac_header>
10985 _ACEOF
10986 if { (ac_try="$ac_cpp conftest.$ac_ext"
10987 case "(($ac_try" in
10988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989   *) ac_try_echo=$ac_try;;
10990 esac
10991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10993   ac_status=$?
10994   grep -v '^ *+' conftest.er1 >conftest.err
10995   rm -f conftest.er1
10996   cat conftest.err >&5
10997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998   (exit $ac_status); } >/dev/null; then
10999   if test -s conftest.err; then
11000     ac_cpp_err=$ac_c_preproc_warn_flag
11001     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11002   else
11003     ac_cpp_err=
11004   fi
11005 else
11006   ac_cpp_err=yes
11007 fi
11008 if test -z "$ac_cpp_err"; then
11009   ac_header_preproc=yes
11010 else
11011   echo "$as_me: failed program was:" >&5
11012 sed 's/^/| /' conftest.$ac_ext >&5
11013
11014   ac_header_preproc=no
11015 fi
11016
11017 rm -f conftest.err conftest.$ac_ext
11018 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11019 echo "${ECHO_T}$ac_header_preproc" >&6; }
11020
11021 # So?  What about this header?
11022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11023   yes:no: )
11024     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11025 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11026     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11027 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11028     ac_header_preproc=yes
11029     ;;
11030   no:yes:* )
11031     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11032 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11033     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11034 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11035     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11036 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11037     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11038 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11039     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11040 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11041     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11042 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11043     ( cat <<\_ASBOX
11044 ## ------------------------------ ##
11045 ## Report this to bugs@yourdomain ##
11046 ## ------------------------------ ##
11047 _ASBOX
11048      ) | sed "s/^/$as_me: WARNING:     /" >&2
11049     ;;
11050 esac
11051 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11054   echo $ECHO_N "(cached) $ECHO_C" >&6
11055 else
11056   eval "$as_ac_Header=\$ac_header_preproc"
11057 fi
11058 ac_res=`eval echo '${'$as_ac_Header'}'`
11059                { echo "$as_me:$LINENO: result: $ac_res" >&5
11060 echo "${ECHO_T}$ac_res" >&6; }
11061
11062 fi
11063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11064   cat >>confdefs.h <<_ACEOF
11065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11066 _ACEOF
11067
11068 fi
11069
11070 done
11071
11072
11073
11074
11075
11076 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11077 do
11078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11080   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11083   echo $ECHO_N "(cached) $ECHO_C" >&6
11084 fi
11085 ac_res=`eval echo '${'$as_ac_Header'}'`
11086                { echo "$as_me:$LINENO: result: $ac_res" >&5
11087 echo "${ECHO_T}$ac_res" >&6; }
11088 else
11089   # Is the header compilable?
11090 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11092 cat >conftest.$ac_ext <<_ACEOF
11093 /* confdefs.h.  */
11094 _ACEOF
11095 cat confdefs.h >>conftest.$ac_ext
11096 cat >>conftest.$ac_ext <<_ACEOF
11097 /* end confdefs.h.  */
11098 $ac_includes_default
11099 #include <$ac_header>
11100 _ACEOF
11101 rm -f conftest.$ac_objext
11102 if { (ac_try="$ac_compile"
11103 case "(($ac_try" in
11104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11105   *) ac_try_echo=$ac_try;;
11106 esac
11107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11108   (eval "$ac_compile") 2>conftest.er1
11109   ac_status=$?
11110   grep -v '^ *+' conftest.er1 >conftest.err
11111   rm -f conftest.er1
11112   cat conftest.err >&5
11113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114   (exit $ac_status); } &&
11115          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11116   { (case "(($ac_try" in
11117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11118   *) ac_try_echo=$ac_try;;
11119 esac
11120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11121   (eval "$ac_try") 2>&5
11122   ac_status=$?
11123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124   (exit $ac_status); }; } &&
11125          { ac_try='test -s conftest.$ac_objext'
11126   { (case "(($ac_try" in
11127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11128   *) ac_try_echo=$ac_try;;
11129 esac
11130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11131   (eval "$ac_try") 2>&5
11132   ac_status=$?
11133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134   (exit $ac_status); }; }; then
11135   ac_header_compiler=yes
11136 else
11137   echo "$as_me: failed program was:" >&5
11138 sed 's/^/| /' conftest.$ac_ext >&5
11139
11140         ac_header_compiler=no
11141 fi
11142
11143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11144 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11145 echo "${ECHO_T}$ac_header_compiler" >&6; }
11146
11147 # Is the header present?
11148 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11149 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11150 cat >conftest.$ac_ext <<_ACEOF
11151 /* confdefs.h.  */
11152 _ACEOF
11153 cat confdefs.h >>conftest.$ac_ext
11154 cat >>conftest.$ac_ext <<_ACEOF
11155 /* end confdefs.h.  */
11156 #include <$ac_header>
11157 _ACEOF
11158 if { (ac_try="$ac_cpp conftest.$ac_ext"
11159 case "(($ac_try" in
11160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11161   *) ac_try_echo=$ac_try;;
11162 esac
11163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11164   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11165   ac_status=$?
11166   grep -v '^ *+' conftest.er1 >conftest.err
11167   rm -f conftest.er1
11168   cat conftest.err >&5
11169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170   (exit $ac_status); } >/dev/null; then
11171   if test -s conftest.err; then
11172     ac_cpp_err=$ac_c_preproc_warn_flag
11173     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11174   else
11175     ac_cpp_err=
11176   fi
11177 else
11178   ac_cpp_err=yes
11179 fi
11180 if test -z "$ac_cpp_err"; then
11181   ac_header_preproc=yes
11182 else
11183   echo "$as_me: failed program was:" >&5
11184 sed 's/^/| /' conftest.$ac_ext >&5
11185
11186   ac_header_preproc=no
11187 fi
11188
11189 rm -f conftest.err conftest.$ac_ext
11190 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11191 echo "${ECHO_T}$ac_header_preproc" >&6; }
11192
11193 # So?  What about this header?
11194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11195   yes:no: )
11196     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11197 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11198     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11199 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11200     ac_header_preproc=yes
11201     ;;
11202   no:yes:* )
11203     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11204 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11205     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11206 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11207     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11208 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11209     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11210 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11211     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11213     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11214 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11215     ( cat <<\_ASBOX
11216 ## ------------------------------ ##
11217 ## Report this to bugs@yourdomain ##
11218 ## ------------------------------ ##
11219 _ASBOX
11220      ) | sed "s/^/$as_me: WARNING:     /" >&2
11221     ;;
11222 esac
11223 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11226   echo $ECHO_N "(cached) $ECHO_C" >&6
11227 else
11228   eval "$as_ac_Header=\$ac_header_preproc"
11229 fi
11230 ac_res=`eval echo '${'$as_ac_Header'}'`
11231                { echo "$as_me:$LINENO: result: $ac_res" >&5
11232 echo "${ECHO_T}$ac_res" >&6; }
11233
11234 fi
11235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11236   cat >>confdefs.h <<_ACEOF
11237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11238 _ACEOF
11239
11240 fi
11241
11242 done
11243
11244
11245
11246 for ac_header in string.h strings.h
11247 do
11248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11250   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11253   echo $ECHO_N "(cached) $ECHO_C" >&6
11254 fi
11255 ac_res=`eval echo '${'$as_ac_Header'}'`
11256                { echo "$as_me:$LINENO: result: $ac_res" >&5
11257 echo "${ECHO_T}$ac_res" >&6; }
11258 else
11259   # Is the header compilable?
11260 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11262 cat >conftest.$ac_ext <<_ACEOF
11263 /* confdefs.h.  */
11264 _ACEOF
11265 cat confdefs.h >>conftest.$ac_ext
11266 cat >>conftest.$ac_ext <<_ACEOF
11267 /* end confdefs.h.  */
11268 $ac_includes_default
11269 #include <$ac_header>
11270 _ACEOF
11271 rm -f conftest.$ac_objext
11272 if { (ac_try="$ac_compile"
11273 case "(($ac_try" in
11274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11275   *) ac_try_echo=$ac_try;;
11276 esac
11277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11278   (eval "$ac_compile") 2>conftest.er1
11279   ac_status=$?
11280   grep -v '^ *+' conftest.er1 >conftest.err
11281   rm -f conftest.er1
11282   cat conftest.err >&5
11283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284   (exit $ac_status); } &&
11285          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11286   { (case "(($ac_try" in
11287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11288   *) ac_try_echo=$ac_try;;
11289 esac
11290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11291   (eval "$ac_try") 2>&5
11292   ac_status=$?
11293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294   (exit $ac_status); }; } &&
11295          { ac_try='test -s conftest.$ac_objext'
11296   { (case "(($ac_try" in
11297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11298   *) ac_try_echo=$ac_try;;
11299 esac
11300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11301   (eval "$ac_try") 2>&5
11302   ac_status=$?
11303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304   (exit $ac_status); }; }; then
11305   ac_header_compiler=yes
11306 else
11307   echo "$as_me: failed program was:" >&5
11308 sed 's/^/| /' conftest.$ac_ext >&5
11309
11310         ac_header_compiler=no
11311 fi
11312
11313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11314 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11315 echo "${ECHO_T}$ac_header_compiler" >&6; }
11316
11317 # Is the header present?
11318 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11319 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11320 cat >conftest.$ac_ext <<_ACEOF
11321 /* confdefs.h.  */
11322 _ACEOF
11323 cat confdefs.h >>conftest.$ac_ext
11324 cat >>conftest.$ac_ext <<_ACEOF
11325 /* end confdefs.h.  */
11326 #include <$ac_header>
11327 _ACEOF
11328 if { (ac_try="$ac_cpp conftest.$ac_ext"
11329 case "(($ac_try" in
11330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331   *) ac_try_echo=$ac_try;;
11332 esac
11333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11335   ac_status=$?
11336   grep -v '^ *+' conftest.er1 >conftest.err
11337   rm -f conftest.er1
11338   cat conftest.err >&5
11339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340   (exit $ac_status); } >/dev/null; then
11341   if test -s conftest.err; then
11342     ac_cpp_err=$ac_c_preproc_warn_flag
11343     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11344   else
11345     ac_cpp_err=
11346   fi
11347 else
11348   ac_cpp_err=yes
11349 fi
11350 if test -z "$ac_cpp_err"; then
11351   ac_header_preproc=yes
11352 else
11353   echo "$as_me: failed program was:" >&5
11354 sed 's/^/| /' conftest.$ac_ext >&5
11355
11356   ac_header_preproc=no
11357 fi
11358
11359 rm -f conftest.err conftest.$ac_ext
11360 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11361 echo "${ECHO_T}$ac_header_preproc" >&6; }
11362
11363 # So?  What about this header?
11364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11365   yes:no: )
11366     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11367 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11368     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11369 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11370     ac_header_preproc=yes
11371     ;;
11372   no:yes:* )
11373     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11374 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11375     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11376 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11377     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11378 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11379     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11380 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11381     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11383     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11384 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11385     ( cat <<\_ASBOX
11386 ## ------------------------------ ##
11387 ## Report this to bugs@yourdomain ##
11388 ## ------------------------------ ##
11389 _ASBOX
11390      ) | sed "s/^/$as_me: WARNING:     /" >&2
11391     ;;
11392 esac
11393 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11396   echo $ECHO_N "(cached) $ECHO_C" >&6
11397 else
11398   eval "$as_ac_Header=\$ac_header_preproc"
11399 fi
11400 ac_res=`eval echo '${'$as_ac_Header'}'`
11401                { echo "$as_me:$LINENO: result: $ac_res" >&5
11402 echo "${ECHO_T}$ac_res" >&6; }
11403
11404 fi
11405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11406   cat >>confdefs.h <<_ACEOF
11407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11408 _ACEOF
11409  break
11410 fi
11411
11412 done
11413
11414
11415
11416
11417 for ac_func in strchr index
11418 do
11419 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11420 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11422 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11423   echo $ECHO_N "(cached) $ECHO_C" >&6
11424 else
11425   cat >conftest.$ac_ext <<_ACEOF
11426 /* confdefs.h.  */
11427 _ACEOF
11428 cat confdefs.h >>conftest.$ac_ext
11429 cat >>conftest.$ac_ext <<_ACEOF
11430 /* end confdefs.h.  */
11431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11432    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11433 #define $ac_func innocuous_$ac_func
11434
11435 /* System header to define __stub macros and hopefully few prototypes,
11436     which can conflict with char $ac_func (); below.
11437     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11438     <limits.h> exists even on freestanding compilers.  */
11439
11440 #ifdef __STDC__
11441 # include <limits.h>
11442 #else
11443 # include <assert.h>
11444 #endif
11445
11446 #undef $ac_func
11447
11448 /* Override any GCC internal prototype to avoid an error.
11449    Use char because int might match the return type of a GCC
11450    builtin and then its argument prototype would still apply.  */
11451 #ifdef __cplusplus
11452 extern "C"
11453 #endif
11454 char $ac_func ();
11455 /* The GNU C library defines this for functions which it implements
11456     to always fail with ENOSYS.  Some functions are actually named
11457     something starting with __ and the normal name is an alias.  */
11458 #if defined __stub_$ac_func || defined __stub___$ac_func
11459 choke me
11460 #endif
11461
11462 int
11463 main ()
11464 {
11465 return $ac_func ();
11466   ;
11467   return 0;
11468 }
11469 _ACEOF
11470 rm -f conftest.$ac_objext conftest$ac_exeext
11471 if { (ac_try="$ac_link"
11472 case "(($ac_try" in
11473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11474   *) ac_try_echo=$ac_try;;
11475 esac
11476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11477   (eval "$ac_link") 2>conftest.er1
11478   ac_status=$?
11479   grep -v '^ *+' conftest.er1 >conftest.err
11480   rm -f conftest.er1
11481   cat conftest.err >&5
11482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483   (exit $ac_status); } &&
11484          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11485   { (case "(($ac_try" in
11486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11487   *) ac_try_echo=$ac_try;;
11488 esac
11489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11490   (eval "$ac_try") 2>&5
11491   ac_status=$?
11492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493   (exit $ac_status); }; } &&
11494          { ac_try='test -s conftest$ac_exeext'
11495   { (case "(($ac_try" in
11496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497   *) ac_try_echo=$ac_try;;
11498 esac
11499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11500   (eval "$ac_try") 2>&5
11501   ac_status=$?
11502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503   (exit $ac_status); }; }; then
11504   eval "$as_ac_var=yes"
11505 else
11506   echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.$ac_ext >&5
11508
11509         eval "$as_ac_var=no"
11510 fi
11511
11512 rm -f core conftest.err conftest.$ac_objext \
11513       conftest$ac_exeext conftest.$ac_ext
11514 fi
11515 ac_res=`eval echo '${'$as_ac_var'}'`
11516                { echo "$as_me:$LINENO: result: $ac_res" >&5
11517 echo "${ECHO_T}$ac_res" >&6; }
11518 if test `eval echo '${'$as_ac_var'}'` = yes; then
11519   cat >>confdefs.h <<_ACEOF
11520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11521 _ACEOF
11522  break
11523 fi
11524 done
11525
11526
11527
11528 for ac_func in strrchr rindex
11529 do
11530 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11531 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11533 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11534   echo $ECHO_N "(cached) $ECHO_C" >&6
11535 else
11536   cat >conftest.$ac_ext <<_ACEOF
11537 /* confdefs.h.  */
11538 _ACEOF
11539 cat confdefs.h >>conftest.$ac_ext
11540 cat >>conftest.$ac_ext <<_ACEOF
11541 /* end confdefs.h.  */
11542 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11543    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11544 #define $ac_func innocuous_$ac_func
11545
11546 /* System header to define __stub macros and hopefully few prototypes,
11547     which can conflict with char $ac_func (); below.
11548     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11549     <limits.h> exists even on freestanding compilers.  */
11550
11551 #ifdef __STDC__
11552 # include <limits.h>
11553 #else
11554 # include <assert.h>
11555 #endif
11556
11557 #undef $ac_func
11558
11559 /* Override any GCC internal prototype to avoid an error.
11560    Use char because int might match the return type of a GCC
11561    builtin and then its argument prototype would still apply.  */
11562 #ifdef __cplusplus
11563 extern "C"
11564 #endif
11565 char $ac_func ();
11566 /* The GNU C library defines this for functions which it implements
11567     to always fail with ENOSYS.  Some functions are actually named
11568     something starting with __ and the normal name is an alias.  */
11569 #if defined __stub_$ac_func || defined __stub___$ac_func
11570 choke me
11571 #endif
11572
11573 int
11574 main ()
11575 {
11576 return $ac_func ();
11577   ;
11578   return 0;
11579 }
11580 _ACEOF
11581 rm -f conftest.$ac_objext conftest$ac_exeext
11582 if { (ac_try="$ac_link"
11583 case "(($ac_try" in
11584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11585   *) ac_try_echo=$ac_try;;
11586 esac
11587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11588   (eval "$ac_link") 2>conftest.er1
11589   ac_status=$?
11590   grep -v '^ *+' conftest.er1 >conftest.err
11591   rm -f conftest.er1
11592   cat conftest.err >&5
11593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594   (exit $ac_status); } &&
11595          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11596   { (case "(($ac_try" in
11597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11598   *) ac_try_echo=$ac_try;;
11599 esac
11600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11601   (eval "$ac_try") 2>&5
11602   ac_status=$?
11603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604   (exit $ac_status); }; } &&
11605          { ac_try='test -s conftest$ac_exeext'
11606   { (case "(($ac_try" in
11607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11608   *) ac_try_echo=$ac_try;;
11609 esac
11610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11611   (eval "$ac_try") 2>&5
11612   ac_status=$?
11613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614   (exit $ac_status); }; }; then
11615   eval "$as_ac_var=yes"
11616 else
11617   echo "$as_me: failed program was:" >&5
11618 sed 's/^/| /' conftest.$ac_ext >&5
11619
11620         eval "$as_ac_var=no"
11621 fi
11622
11623 rm -f core conftest.err conftest.$ac_objext \
11624       conftest$ac_exeext conftest.$ac_ext
11625 fi
11626 ac_res=`eval echo '${'$as_ac_var'}'`
11627                { echo "$as_me:$LINENO: result: $ac_res" >&5
11628 echo "${ECHO_T}$ac_res" >&6; }
11629 if test `eval echo '${'$as_ac_var'}'` = yes; then
11630   cat >>confdefs.h <<_ACEOF
11631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11632 _ACEOF
11633  break
11634 fi
11635 done
11636
11637
11638
11639 for ac_func in memcpy bcopy
11640 do
11641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11645   echo $ECHO_N "(cached) $ECHO_C" >&6
11646 else
11647   cat >conftest.$ac_ext <<_ACEOF
11648 /* confdefs.h.  */
11649 _ACEOF
11650 cat confdefs.h >>conftest.$ac_ext
11651 cat >>conftest.$ac_ext <<_ACEOF
11652 /* end confdefs.h.  */
11653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11654    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11655 #define $ac_func innocuous_$ac_func
11656
11657 /* System header to define __stub macros and hopefully few prototypes,
11658     which can conflict with char $ac_func (); below.
11659     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11660     <limits.h> exists even on freestanding compilers.  */
11661
11662 #ifdef __STDC__
11663 # include <limits.h>
11664 #else
11665 # include <assert.h>
11666 #endif
11667
11668 #undef $ac_func
11669
11670 /* Override any GCC internal prototype to avoid an error.
11671    Use char because int might match the return type of a GCC
11672    builtin and then its argument prototype would still apply.  */
11673 #ifdef __cplusplus
11674 extern "C"
11675 #endif
11676 char $ac_func ();
11677 /* The GNU C library defines this for functions which it implements
11678     to always fail with ENOSYS.  Some functions are actually named
11679     something starting with __ and the normal name is an alias.  */
11680 #if defined __stub_$ac_func || defined __stub___$ac_func
11681 choke me
11682 #endif
11683
11684 int
11685 main ()
11686 {
11687 return $ac_func ();
11688   ;
11689   return 0;
11690 }
11691 _ACEOF
11692 rm -f conftest.$ac_objext conftest$ac_exeext
11693 if { (ac_try="$ac_link"
11694 case "(($ac_try" in
11695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11696   *) ac_try_echo=$ac_try;;
11697 esac
11698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11699   (eval "$ac_link") 2>conftest.er1
11700   ac_status=$?
11701   grep -v '^ *+' conftest.er1 >conftest.err
11702   rm -f conftest.er1
11703   cat conftest.err >&5
11704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705   (exit $ac_status); } &&
11706          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11707   { (case "(($ac_try" in
11708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11709   *) ac_try_echo=$ac_try;;
11710 esac
11711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11712   (eval "$ac_try") 2>&5
11713   ac_status=$?
11714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715   (exit $ac_status); }; } &&
11716          { ac_try='test -s conftest$ac_exeext'
11717   { (case "(($ac_try" in
11718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11719   *) ac_try_echo=$ac_try;;
11720 esac
11721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11722   (eval "$ac_try") 2>&5
11723   ac_status=$?
11724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725   (exit $ac_status); }; }; then
11726   eval "$as_ac_var=yes"
11727 else
11728   echo "$as_me: failed program was:" >&5
11729 sed 's/^/| /' conftest.$ac_ext >&5
11730
11731         eval "$as_ac_var=no"
11732 fi
11733
11734 rm -f core conftest.err conftest.$ac_objext \
11735       conftest$ac_exeext conftest.$ac_ext
11736 fi
11737 ac_res=`eval echo '${'$as_ac_var'}'`
11738                { echo "$as_me:$LINENO: result: $ac_res" >&5
11739 echo "${ECHO_T}$ac_res" >&6; }
11740 if test `eval echo '${'$as_ac_var'}'` = yes; then
11741   cat >>confdefs.h <<_ACEOF
11742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11743 _ACEOF
11744  break
11745 fi
11746 done
11747
11748
11749
11750 for ac_func in memmove strcmp
11751 do
11752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11753 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11755 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11756   echo $ECHO_N "(cached) $ECHO_C" >&6
11757 else
11758   cat >conftest.$ac_ext <<_ACEOF
11759 /* confdefs.h.  */
11760 _ACEOF
11761 cat confdefs.h >>conftest.$ac_ext
11762 cat >>conftest.$ac_ext <<_ACEOF
11763 /* end confdefs.h.  */
11764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11765    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11766 #define $ac_func innocuous_$ac_func
11767
11768 /* System header to define __stub macros and hopefully few prototypes,
11769     which can conflict with char $ac_func (); below.
11770     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11771     <limits.h> exists even on freestanding compilers.  */
11772
11773 #ifdef __STDC__
11774 # include <limits.h>
11775 #else
11776 # include <assert.h>
11777 #endif
11778
11779 #undef $ac_func
11780
11781 /* Override any GCC internal prototype to avoid an error.
11782    Use char because int might match the return type of a GCC
11783    builtin and then its argument prototype would still apply.  */
11784 #ifdef __cplusplus
11785 extern "C"
11786 #endif
11787 char $ac_func ();
11788 /* The GNU C library defines this for functions which it implements
11789     to always fail with ENOSYS.  Some functions are actually named
11790     something starting with __ and the normal name is an alias.  */
11791 #if defined __stub_$ac_func || defined __stub___$ac_func
11792 choke me
11793 #endif
11794
11795 int
11796 main ()
11797 {
11798 return $ac_func ();
11799   ;
11800   return 0;
11801 }
11802 _ACEOF
11803 rm -f conftest.$ac_objext conftest$ac_exeext
11804 if { (ac_try="$ac_link"
11805 case "(($ac_try" in
11806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11807   *) ac_try_echo=$ac_try;;
11808 esac
11809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11810   (eval "$ac_link") 2>conftest.er1
11811   ac_status=$?
11812   grep -v '^ *+' conftest.er1 >conftest.err
11813   rm -f conftest.er1
11814   cat conftest.err >&5
11815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816   (exit $ac_status); } &&
11817          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11818   { (case "(($ac_try" in
11819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11820   *) ac_try_echo=$ac_try;;
11821 esac
11822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11823   (eval "$ac_try") 2>&5
11824   ac_status=$?
11825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826   (exit $ac_status); }; } &&
11827          { ac_try='test -s conftest$ac_exeext'
11828   { (case "(($ac_try" in
11829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11830   *) ac_try_echo=$ac_try;;
11831 esac
11832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11833   (eval "$ac_try") 2>&5
11834   ac_status=$?
11835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836   (exit $ac_status); }; }; then
11837   eval "$as_ac_var=yes"
11838 else
11839   echo "$as_me: failed program was:" >&5
11840 sed 's/^/| /' conftest.$ac_ext >&5
11841
11842         eval "$as_ac_var=no"
11843 fi
11844
11845 rm -f core conftest.err conftest.$ac_objext \
11846       conftest$ac_exeext conftest.$ac_ext
11847 fi
11848 ac_res=`eval echo '${'$as_ac_var'}'`
11849                { echo "$as_me:$LINENO: result: $ac_res" >&5
11850 echo "${ECHO_T}$ac_res" >&6; }
11851 if test `eval echo '${'$as_ac_var'}'` = yes; then
11852   cat >>confdefs.h <<_ACEOF
11853 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11854 _ACEOF
11855
11856 fi
11857 done
11858
11859
11860
11861
11862 for ac_func in closedir opendir readdir
11863 do
11864 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11865 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11866 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11867 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11868   echo $ECHO_N "(cached) $ECHO_C" >&6
11869 else
11870   cat >conftest.$ac_ext <<_ACEOF
11871 /* confdefs.h.  */
11872 _ACEOF
11873 cat confdefs.h >>conftest.$ac_ext
11874 cat >>conftest.$ac_ext <<_ACEOF
11875 /* end confdefs.h.  */
11876 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11877    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11878 #define $ac_func innocuous_$ac_func
11879
11880 /* System header to define __stub macros and hopefully few prototypes,
11881     which can conflict with char $ac_func (); below.
11882     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11883     <limits.h> exists even on freestanding compilers.  */
11884
11885 #ifdef __STDC__
11886 # include <limits.h>
11887 #else
11888 # include <assert.h>
11889 #endif
11890
11891 #undef $ac_func
11892
11893 /* Override any GCC internal prototype to avoid an error.
11894    Use char because int might match the return type of a GCC
11895    builtin and then its argument prototype would still apply.  */
11896 #ifdef __cplusplus
11897 extern "C"
11898 #endif
11899 char $ac_func ();
11900 /* The GNU C library defines this for functions which it implements
11901     to always fail with ENOSYS.  Some functions are actually named
11902     something starting with __ and the normal name is an alias.  */
11903 #if defined __stub_$ac_func || defined __stub___$ac_func
11904 choke me
11905 #endif
11906
11907 int
11908 main ()
11909 {
11910 return $ac_func ();
11911   ;
11912   return 0;
11913 }
11914 _ACEOF
11915 rm -f conftest.$ac_objext conftest$ac_exeext
11916 if { (ac_try="$ac_link"
11917 case "(($ac_try" in
11918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11919   *) ac_try_echo=$ac_try;;
11920 esac
11921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11922   (eval "$ac_link") 2>conftest.er1
11923   ac_status=$?
11924   grep -v '^ *+' conftest.er1 >conftest.err
11925   rm -f conftest.er1
11926   cat conftest.err >&5
11927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928   (exit $ac_status); } &&
11929          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11930   { (case "(($ac_try" in
11931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11932   *) ac_try_echo=$ac_try;;
11933 esac
11934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11935   (eval "$ac_try") 2>&5
11936   ac_status=$?
11937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938   (exit $ac_status); }; } &&
11939          { ac_try='test -s conftest$ac_exeext'
11940   { (case "(($ac_try" in
11941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11942   *) ac_try_echo=$ac_try;;
11943 esac
11944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11945   (eval "$ac_try") 2>&5
11946   ac_status=$?
11947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948   (exit $ac_status); }; }; then
11949   eval "$as_ac_var=yes"
11950 else
11951   echo "$as_me: failed program was:" >&5
11952 sed 's/^/| /' conftest.$ac_ext >&5
11953
11954         eval "$as_ac_var=no"
11955 fi
11956
11957 rm -f core conftest.err conftest.$ac_objext \
11958       conftest$ac_exeext conftest.$ac_ext
11959 fi
11960 ac_res=`eval echo '${'$as_ac_var'}'`
11961                { echo "$as_me:$LINENO: result: $ac_res" >&5
11962 echo "${ECHO_T}$ac_res" >&6; }
11963 if test `eval echo '${'$as_ac_var'}'` = yes; then
11964   cat >>confdefs.h <<_ACEOF
11965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11966 _ACEOF
11967
11968 fi
11969 done
11970
11971
11972
11973 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11974 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11975
11976 ICC=no
11977 IXX=no
11978 case $CC in
11979   icc*|icpc*)
11980     ICC=yes
11981     IXX=yes
11982     ;;
11983    *)
11984     ;;
11985 esac
11986
11987 if test "$GCC" != "yes" && test "$ICC" != "yes"
11988 then
11989   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11990 echo "$as_me: error: gcc|icc required but not found" >&2;}
11991    { (exit 1); exit 1; }; }
11992 fi
11993
11994 if test "$GXX" != "yes" && test "$IXX" != "yes"
11995 then
11996   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11997 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11998    { (exit 1); exit 1; }; }
11999 fi
12000
12001 if test "$GCC" = "yes"
12002 then
12003   cat >conftest.$ac_ext <<_ACEOF
12004 #if !defined(__GNUC__) || __GNUC__ < 3
12005 #error Unsupported GCC version
12006 #endif
12007
12008 _ACEOF
12009 rm -f conftest.$ac_objext
12010 if { (ac_try="$ac_compile"
12011 case "(($ac_try" in
12012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12013   *) ac_try_echo=$ac_try;;
12014 esac
12015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12016   (eval "$ac_compile") 2>conftest.er1
12017   ac_status=$?
12018   grep -v '^ *+' conftest.er1 >conftest.err
12019   rm -f conftest.er1
12020   cat conftest.err >&5
12021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022   (exit $ac_status); } &&
12023          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12024   { (case "(($ac_try" in
12025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12026   *) ac_try_echo=$ac_try;;
12027 esac
12028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12029   (eval "$ac_try") 2>&5
12030   ac_status=$?
12031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032   (exit $ac_status); }; } &&
12033          { ac_try='test -s conftest.$ac_objext'
12034   { (case "(($ac_try" in
12035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12036   *) ac_try_echo=$ac_try;;
12037 esac
12038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12039   (eval "$ac_try") 2>&5
12040   ac_status=$?
12041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042   (exit $ac_status); }; }; then
12043   :
12044 else
12045   echo "$as_me: failed program was:" >&5
12046 sed 's/^/| /' conftest.$ac_ext >&5
12047
12048         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12049 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12050    { (exit 1); exit 1; }; }
12051 fi
12052
12053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12054 fi
12055
12056 if test -z "$llvm_cv_gnu_make_command"
12057 then
12058   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12059 echo "$as_me: error: GNU Make required but not found" >&2;}
12060    { (exit 1); exit 1; }; }
12061 fi
12062
12063 { echo "$as_me:$LINENO: result: ok" >&5
12064 echo "${ECHO_T}ok" >&6; }
12065
12066 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12067 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12068 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12069
12070 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12071
12072 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12073
12074 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12075 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12076
12077
12078
12079 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12080 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12081 if test "${ac_cv_lib_m_sin+set}" = set; then
12082   echo $ECHO_N "(cached) $ECHO_C" >&6
12083 else
12084   ac_check_lib_save_LIBS=$LIBS
12085 LIBS="-lm  $LIBS"
12086 cat >conftest.$ac_ext <<_ACEOF
12087 /* confdefs.h.  */
12088 _ACEOF
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h.  */
12092
12093 /* Override any GCC internal prototype to avoid an error.
12094    Use char because int might match the return type of a GCC
12095    builtin and then its argument prototype would still apply.  */
12096 #ifdef __cplusplus
12097 extern "C"
12098 #endif
12099 char sin ();
12100 int
12101 main ()
12102 {
12103 return sin ();
12104   ;
12105   return 0;
12106 }
12107 _ACEOF
12108 rm -f conftest.$ac_objext conftest$ac_exeext
12109 if { (ac_try="$ac_link"
12110 case "(($ac_try" in
12111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12112   *) ac_try_echo=$ac_try;;
12113 esac
12114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12115   (eval "$ac_link") 2>conftest.er1
12116   ac_status=$?
12117   grep -v '^ *+' conftest.er1 >conftest.err
12118   rm -f conftest.er1
12119   cat conftest.err >&5
12120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121   (exit $ac_status); } &&
12122          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12123   { (case "(($ac_try" in
12124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12125   *) ac_try_echo=$ac_try;;
12126 esac
12127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12128   (eval "$ac_try") 2>&5
12129   ac_status=$?
12130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131   (exit $ac_status); }; } &&
12132          { ac_try='test -s conftest$ac_exeext'
12133   { (case "(($ac_try" in
12134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12135   *) ac_try_echo=$ac_try;;
12136 esac
12137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12138   (eval "$ac_try") 2>&5
12139   ac_status=$?
12140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141   (exit $ac_status); }; }; then
12142   ac_cv_lib_m_sin=yes
12143 else
12144   echo "$as_me: failed program was:" >&5
12145 sed 's/^/| /' conftest.$ac_ext >&5
12146
12147         ac_cv_lib_m_sin=no
12148 fi
12149
12150 rm -f core conftest.err conftest.$ac_objext \
12151       conftest$ac_exeext conftest.$ac_ext
12152 LIBS=$ac_check_lib_save_LIBS
12153 fi
12154 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12155 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12156 if test $ac_cv_lib_m_sin = yes; then
12157   cat >>confdefs.h <<_ACEOF
12158 #define HAVE_LIBM 1
12159 _ACEOF
12160
12161   LIBS="-lm $LIBS"
12162
12163 fi
12164
12165 if test "$llvm_cv_os_type" = "MingW" ; then
12166
12167 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12168 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12169 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12170   echo $ECHO_N "(cached) $ECHO_C" >&6
12171 else
12172   ac_check_lib_save_LIBS=$LIBS
12173 LIBS="-limagehlp  $LIBS"
12174 cat >conftest.$ac_ext <<_ACEOF
12175 /* confdefs.h.  */
12176 _ACEOF
12177 cat confdefs.h >>conftest.$ac_ext
12178 cat >>conftest.$ac_ext <<_ACEOF
12179 /* end confdefs.h.  */
12180
12181
12182 int
12183 main ()
12184 {
12185 return main ();
12186   ;
12187   return 0;
12188 }
12189 _ACEOF
12190 rm -f conftest.$ac_objext conftest$ac_exeext
12191 if { (ac_try="$ac_link"
12192 case "(($ac_try" in
12193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12194   *) ac_try_echo=$ac_try;;
12195 esac
12196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12197   (eval "$ac_link") 2>conftest.er1
12198   ac_status=$?
12199   grep -v '^ *+' conftest.er1 >conftest.err
12200   rm -f conftest.er1
12201   cat conftest.err >&5
12202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203   (exit $ac_status); } &&
12204          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12205   { (case "(($ac_try" in
12206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12207   *) ac_try_echo=$ac_try;;
12208 esac
12209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12210   (eval "$ac_try") 2>&5
12211   ac_status=$?
12212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213   (exit $ac_status); }; } &&
12214          { ac_try='test -s conftest$ac_exeext'
12215   { (case "(($ac_try" in
12216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217   *) ac_try_echo=$ac_try;;
12218 esac
12219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12220   (eval "$ac_try") 2>&5
12221   ac_status=$?
12222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223   (exit $ac_status); }; }; then
12224   ac_cv_lib_imagehlp_main=yes
12225 else
12226   echo "$as_me: failed program was:" >&5
12227 sed 's/^/| /' conftest.$ac_ext >&5
12228
12229         ac_cv_lib_imagehlp_main=no
12230 fi
12231
12232 rm -f core conftest.err conftest.$ac_objext \
12233       conftest$ac_exeext conftest.$ac_ext
12234 LIBS=$ac_check_lib_save_LIBS
12235 fi
12236 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12237 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12238 if test $ac_cv_lib_imagehlp_main = yes; then
12239   cat >>confdefs.h <<_ACEOF
12240 #define HAVE_LIBIMAGEHLP 1
12241 _ACEOF
12242
12243   LIBS="-limagehlp $LIBS"
12244
12245 fi
12246
12247
12248 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12249 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12250 if test "${ac_cv_lib_psapi_main+set}" = set; then
12251   echo $ECHO_N "(cached) $ECHO_C" >&6
12252 else
12253   ac_check_lib_save_LIBS=$LIBS
12254 LIBS="-lpsapi  $LIBS"
12255 cat >conftest.$ac_ext <<_ACEOF
12256 /* confdefs.h.  */
12257 _ACEOF
12258 cat confdefs.h >>conftest.$ac_ext
12259 cat >>conftest.$ac_ext <<_ACEOF
12260 /* end confdefs.h.  */
12261
12262
12263 int
12264 main ()
12265 {
12266 return main ();
12267   ;
12268   return 0;
12269 }
12270 _ACEOF
12271 rm -f conftest.$ac_objext conftest$ac_exeext
12272 if { (ac_try="$ac_link"
12273 case "(($ac_try" in
12274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12275   *) ac_try_echo=$ac_try;;
12276 esac
12277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12278   (eval "$ac_link") 2>conftest.er1
12279   ac_status=$?
12280   grep -v '^ *+' conftest.er1 >conftest.err
12281   rm -f conftest.er1
12282   cat conftest.err >&5
12283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284   (exit $ac_status); } &&
12285          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12286   { (case "(($ac_try" in
12287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12288   *) ac_try_echo=$ac_try;;
12289 esac
12290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12291   (eval "$ac_try") 2>&5
12292   ac_status=$?
12293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294   (exit $ac_status); }; } &&
12295          { ac_try='test -s conftest$ac_exeext'
12296   { (case "(($ac_try" in
12297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12298   *) ac_try_echo=$ac_try;;
12299 esac
12300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12301   (eval "$ac_try") 2>&5
12302   ac_status=$?
12303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304   (exit $ac_status); }; }; then
12305   ac_cv_lib_psapi_main=yes
12306 else
12307   echo "$as_me: failed program was:" >&5
12308 sed 's/^/| /' conftest.$ac_ext >&5
12309
12310         ac_cv_lib_psapi_main=no
12311 fi
12312
12313 rm -f core conftest.err conftest.$ac_objext \
12314       conftest$ac_exeext conftest.$ac_ext
12315 LIBS=$ac_check_lib_save_LIBS
12316 fi
12317 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12318 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12319 if test $ac_cv_lib_psapi_main = yes; then
12320   cat >>confdefs.h <<_ACEOF
12321 #define HAVE_LIBPSAPI 1
12322 _ACEOF
12323
12324   LIBS="-lpsapi $LIBS"
12325
12326 fi
12327
12328 fi
12329
12330 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12331 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12332 if test "${ac_cv_search_dlopen+set}" = set; then
12333   echo $ECHO_N "(cached) $ECHO_C" >&6
12334 else
12335   ac_func_search_save_LIBS=$LIBS
12336 cat >conftest.$ac_ext <<_ACEOF
12337 /* confdefs.h.  */
12338 _ACEOF
12339 cat confdefs.h >>conftest.$ac_ext
12340 cat >>conftest.$ac_ext <<_ACEOF
12341 /* end confdefs.h.  */
12342
12343 /* Override any GCC internal prototype to avoid an error.
12344    Use char because int might match the return type of a GCC
12345    builtin and then its argument prototype would still apply.  */
12346 #ifdef __cplusplus
12347 extern "C"
12348 #endif
12349 char dlopen ();
12350 int
12351 main ()
12352 {
12353 return dlopen ();
12354   ;
12355   return 0;
12356 }
12357 _ACEOF
12358 for ac_lib in '' dl; do
12359   if test -z "$ac_lib"; then
12360     ac_res="none required"
12361   else
12362     ac_res=-l$ac_lib
12363     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12364   fi
12365   rm -f conftest.$ac_objext conftest$ac_exeext
12366 if { (ac_try="$ac_link"
12367 case "(($ac_try" in
12368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12369   *) ac_try_echo=$ac_try;;
12370 esac
12371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12372   (eval "$ac_link") 2>conftest.er1
12373   ac_status=$?
12374   grep -v '^ *+' conftest.er1 >conftest.err
12375   rm -f conftest.er1
12376   cat conftest.err >&5
12377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378   (exit $ac_status); } &&
12379          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12380   { (case "(($ac_try" in
12381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12382   *) ac_try_echo=$ac_try;;
12383 esac
12384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12385   (eval "$ac_try") 2>&5
12386   ac_status=$?
12387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388   (exit $ac_status); }; } &&
12389          { ac_try='test -s conftest$ac_exeext'
12390   { (case "(($ac_try" in
12391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12392   *) ac_try_echo=$ac_try;;
12393 esac
12394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12395   (eval "$ac_try") 2>&5
12396   ac_status=$?
12397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398   (exit $ac_status); }; }; then
12399   ac_cv_search_dlopen=$ac_res
12400 else
12401   echo "$as_me: failed program was:" >&5
12402 sed 's/^/| /' conftest.$ac_ext >&5
12403
12404
12405 fi
12406
12407 rm -f core conftest.err conftest.$ac_objext \
12408       conftest$ac_exeext
12409   if test "${ac_cv_search_dlopen+set}" = set; then
12410   break
12411 fi
12412 done
12413 if test "${ac_cv_search_dlopen+set}" = set; then
12414   :
12415 else
12416   ac_cv_search_dlopen=no
12417 fi
12418 rm conftest.$ac_ext
12419 LIBS=$ac_func_search_save_LIBS
12420 fi
12421 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12422 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12423 ac_res=$ac_cv_search_dlopen
12424 if test "$ac_res" != no; then
12425   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12426
12427 cat >>confdefs.h <<\_ACEOF
12428 #define HAVE_DLOPEN 1
12429 _ACEOF
12430
12431 else
12432   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12433 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12434 fi
12435
12436
12437 if test "$llvm_cv_enable_libffi" = "yes" ; then
12438   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12439 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12440 if test "${ac_cv_search_ffi_call+set}" = set; then
12441   echo $ECHO_N "(cached) $ECHO_C" >&6
12442 else
12443   ac_func_search_save_LIBS=$LIBS
12444 cat >conftest.$ac_ext <<_ACEOF
12445 /* confdefs.h.  */
12446 _ACEOF
12447 cat confdefs.h >>conftest.$ac_ext
12448 cat >>conftest.$ac_ext <<_ACEOF
12449 /* end confdefs.h.  */
12450
12451 /* Override any GCC internal prototype to avoid an error.
12452    Use char because int might match the return type of a GCC
12453    builtin and then its argument prototype would still apply.  */
12454 #ifdef __cplusplus
12455 extern "C"
12456 #endif
12457 char ffi_call ();
12458 int
12459 main ()
12460 {
12461 return ffi_call ();
12462   ;
12463   return 0;
12464 }
12465 _ACEOF
12466 for ac_lib in '' ffi; do
12467   if test -z "$ac_lib"; then
12468     ac_res="none required"
12469   else
12470     ac_res=-l$ac_lib
12471     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12472   fi
12473   rm -f conftest.$ac_objext conftest$ac_exeext
12474 if { (ac_try="$ac_link"
12475 case "(($ac_try" in
12476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12477   *) ac_try_echo=$ac_try;;
12478 esac
12479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12480   (eval "$ac_link") 2>conftest.er1
12481   ac_status=$?
12482   grep -v '^ *+' conftest.er1 >conftest.err
12483   rm -f conftest.er1
12484   cat conftest.err >&5
12485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486   (exit $ac_status); } &&
12487          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12488   { (case "(($ac_try" in
12489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12490   *) ac_try_echo=$ac_try;;
12491 esac
12492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12493   (eval "$ac_try") 2>&5
12494   ac_status=$?
12495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496   (exit $ac_status); }; } &&
12497          { ac_try='test -s conftest$ac_exeext'
12498   { (case "(($ac_try" in
12499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12500   *) ac_try_echo=$ac_try;;
12501 esac
12502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12503   (eval "$ac_try") 2>&5
12504   ac_status=$?
12505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506   (exit $ac_status); }; }; then
12507   ac_cv_search_ffi_call=$ac_res
12508 else
12509   echo "$as_me: failed program was:" >&5
12510 sed 's/^/| /' conftest.$ac_ext >&5
12511
12512
12513 fi
12514
12515 rm -f core conftest.err conftest.$ac_objext \
12516       conftest$ac_exeext
12517   if test "${ac_cv_search_ffi_call+set}" = set; then
12518   break
12519 fi
12520 done
12521 if test "${ac_cv_search_ffi_call+set}" = set; then
12522   :
12523 else
12524   ac_cv_search_ffi_call=no
12525 fi
12526 rm conftest.$ac_ext
12527 LIBS=$ac_func_search_save_LIBS
12528 fi
12529 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12530 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12531 ac_res=$ac_cv_search_ffi_call
12532 if test "$ac_res" != no; then
12533   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12534
12535 cat >>confdefs.h <<\_ACEOF
12536 #define HAVE_FFI_CALL 1
12537 _ACEOF
12538
12539 else
12540   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12541 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12542    { (exit 1); exit 1; }; }
12543 fi
12544
12545 fi
12546
12547 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12548 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12549 if test "${ac_cv_search_mallinfo+set}" = set; then
12550   echo $ECHO_N "(cached) $ECHO_C" >&6
12551 else
12552   ac_func_search_save_LIBS=$LIBS
12553 cat >conftest.$ac_ext <<_ACEOF
12554 /* confdefs.h.  */
12555 _ACEOF
12556 cat confdefs.h >>conftest.$ac_ext
12557 cat >>conftest.$ac_ext <<_ACEOF
12558 /* end confdefs.h.  */
12559
12560 /* Override any GCC internal prototype to avoid an error.
12561    Use char because int might match the return type of a GCC
12562    builtin and then its argument prototype would still apply.  */
12563 #ifdef __cplusplus
12564 extern "C"
12565 #endif
12566 char mallinfo ();
12567 int
12568 main ()
12569 {
12570 return mallinfo ();
12571   ;
12572   return 0;
12573 }
12574 _ACEOF
12575 for ac_lib in '' malloc; do
12576   if test -z "$ac_lib"; then
12577     ac_res="none required"
12578   else
12579     ac_res=-l$ac_lib
12580     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12581   fi
12582   rm -f conftest.$ac_objext conftest$ac_exeext
12583 if { (ac_try="$ac_link"
12584 case "(($ac_try" in
12585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12586   *) ac_try_echo=$ac_try;;
12587 esac
12588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12589   (eval "$ac_link") 2>conftest.er1
12590   ac_status=$?
12591   grep -v '^ *+' conftest.er1 >conftest.err
12592   rm -f conftest.er1
12593   cat conftest.err >&5
12594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595   (exit $ac_status); } &&
12596          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12597   { (case "(($ac_try" in
12598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12599   *) ac_try_echo=$ac_try;;
12600 esac
12601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12602   (eval "$ac_try") 2>&5
12603   ac_status=$?
12604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605   (exit $ac_status); }; } &&
12606          { ac_try='test -s conftest$ac_exeext'
12607   { (case "(($ac_try" in
12608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12609   *) ac_try_echo=$ac_try;;
12610 esac
12611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12612   (eval "$ac_try") 2>&5
12613   ac_status=$?
12614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615   (exit $ac_status); }; }; then
12616   ac_cv_search_mallinfo=$ac_res
12617 else
12618   echo "$as_me: failed program was:" >&5
12619 sed 's/^/| /' conftest.$ac_ext >&5
12620
12621
12622 fi
12623
12624 rm -f core conftest.err conftest.$ac_objext \
12625       conftest$ac_exeext
12626   if test "${ac_cv_search_mallinfo+set}" = set; then
12627   break
12628 fi
12629 done
12630 if test "${ac_cv_search_mallinfo+set}" = set; then
12631   :
12632 else
12633   ac_cv_search_mallinfo=no
12634 fi
12635 rm conftest.$ac_ext
12636 LIBS=$ac_func_search_save_LIBS
12637 fi
12638 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12639 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12640 ac_res=$ac_cv_search_mallinfo
12641 if test "$ac_res" != no; then
12642   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12643
12644 cat >>confdefs.h <<\_ACEOF
12645 #define HAVE_MALLINFO 1
12646 _ACEOF
12647
12648 fi
12649
12650
12651 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12652
12653 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12654 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12655 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12656   echo $ECHO_N "(cached) $ECHO_C" >&6
12657 else
12658   ac_check_lib_save_LIBS=$LIBS
12659 LIBS="-lpthread  $LIBS"
12660 cat >conftest.$ac_ext <<_ACEOF
12661 /* confdefs.h.  */
12662 _ACEOF
12663 cat confdefs.h >>conftest.$ac_ext
12664 cat >>conftest.$ac_ext <<_ACEOF
12665 /* end confdefs.h.  */
12666
12667 /* Override any GCC internal prototype to avoid an error.
12668    Use char because int might match the return type of a GCC
12669    builtin and then its argument prototype would still apply.  */
12670 #ifdef __cplusplus
12671 extern "C"
12672 #endif
12673 char pthread_mutex_init ();
12674 int
12675 main ()
12676 {
12677 return pthread_mutex_init ();
12678   ;
12679   return 0;
12680 }
12681 _ACEOF
12682 rm -f conftest.$ac_objext conftest$ac_exeext
12683 if { (ac_try="$ac_link"
12684 case "(($ac_try" in
12685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12686   *) ac_try_echo=$ac_try;;
12687 esac
12688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12689   (eval "$ac_link") 2>conftest.er1
12690   ac_status=$?
12691   grep -v '^ *+' conftest.er1 >conftest.err
12692   rm -f conftest.er1
12693   cat conftest.err >&5
12694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695   (exit $ac_status); } &&
12696          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12697   { (case "(($ac_try" in
12698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12699   *) ac_try_echo=$ac_try;;
12700 esac
12701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12702   (eval "$ac_try") 2>&5
12703   ac_status=$?
12704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705   (exit $ac_status); }; } &&
12706          { ac_try='test -s conftest$ac_exeext'
12707   { (case "(($ac_try" in
12708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12709   *) ac_try_echo=$ac_try;;
12710 esac
12711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12712   (eval "$ac_try") 2>&5
12713   ac_status=$?
12714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715   (exit $ac_status); }; }; then
12716   ac_cv_lib_pthread_pthread_mutex_init=yes
12717 else
12718   echo "$as_me: failed program was:" >&5
12719 sed 's/^/| /' conftest.$ac_ext >&5
12720
12721         ac_cv_lib_pthread_pthread_mutex_init=no
12722 fi
12723
12724 rm -f core conftest.err conftest.$ac_objext \
12725       conftest$ac_exeext conftest.$ac_ext
12726 LIBS=$ac_check_lib_save_LIBS
12727 fi
12728 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12729 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12730 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12731   cat >>confdefs.h <<_ACEOF
12732 #define HAVE_LIBPTHREAD 1
12733 _ACEOF
12734
12735   LIBS="-lpthread $LIBS"
12736
12737 fi
12738
12739   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12740 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12741 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12742   echo $ECHO_N "(cached) $ECHO_C" >&6
12743 else
12744   ac_func_search_save_LIBS=$LIBS
12745 cat >conftest.$ac_ext <<_ACEOF
12746 /* confdefs.h.  */
12747 _ACEOF
12748 cat confdefs.h >>conftest.$ac_ext
12749 cat >>conftest.$ac_ext <<_ACEOF
12750 /* end confdefs.h.  */
12751
12752 /* Override any GCC internal prototype to avoid an error.
12753    Use char because int might match the return type of a GCC
12754    builtin and then its argument prototype would still apply.  */
12755 #ifdef __cplusplus
12756 extern "C"
12757 #endif
12758 char pthread_mutex_lock ();
12759 int
12760 main ()
12761 {
12762 return pthread_mutex_lock ();
12763   ;
12764   return 0;
12765 }
12766 _ACEOF
12767 for ac_lib in '' pthread; do
12768   if test -z "$ac_lib"; then
12769     ac_res="none required"
12770   else
12771     ac_res=-l$ac_lib
12772     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12773   fi
12774   rm -f conftest.$ac_objext conftest$ac_exeext
12775 if { (ac_try="$ac_link"
12776 case "(($ac_try" in
12777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12778   *) ac_try_echo=$ac_try;;
12779 esac
12780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12781   (eval "$ac_link") 2>conftest.er1
12782   ac_status=$?
12783   grep -v '^ *+' conftest.er1 >conftest.err
12784   rm -f conftest.er1
12785   cat conftest.err >&5
12786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787   (exit $ac_status); } &&
12788          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12789   { (case "(($ac_try" in
12790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12791   *) ac_try_echo=$ac_try;;
12792 esac
12793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12794   (eval "$ac_try") 2>&5
12795   ac_status=$?
12796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797   (exit $ac_status); }; } &&
12798          { ac_try='test -s conftest$ac_exeext'
12799   { (case "(($ac_try" in
12800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12801   *) ac_try_echo=$ac_try;;
12802 esac
12803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12804   (eval "$ac_try") 2>&5
12805   ac_status=$?
12806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807   (exit $ac_status); }; }; then
12808   ac_cv_search_pthread_mutex_lock=$ac_res
12809 else
12810   echo "$as_me: failed program was:" >&5
12811 sed 's/^/| /' conftest.$ac_ext >&5
12812
12813
12814 fi
12815
12816 rm -f core conftest.err conftest.$ac_objext \
12817       conftest$ac_exeext
12818   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12819   break
12820 fi
12821 done
12822 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12823   :
12824 else
12825   ac_cv_search_pthread_mutex_lock=no
12826 fi
12827 rm conftest.$ac_ext
12828 LIBS=$ac_func_search_save_LIBS
12829 fi
12830 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12831 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12832 ac_res=$ac_cv_search_pthread_mutex_lock
12833 if test "$ac_res" != no; then
12834   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12835
12836 cat >>confdefs.h <<\_ACEOF
12837 #define HAVE_PTHREAD_MUTEX_LOCK 1
12838 _ACEOF
12839
12840 fi
12841
12842   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12843 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12844 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12845   echo $ECHO_N "(cached) $ECHO_C" >&6
12846 else
12847   ac_func_search_save_LIBS=$LIBS
12848 cat >conftest.$ac_ext <<_ACEOF
12849 /* confdefs.h.  */
12850 _ACEOF
12851 cat confdefs.h >>conftest.$ac_ext
12852 cat >>conftest.$ac_ext <<_ACEOF
12853 /* end confdefs.h.  */
12854
12855 /* Override any GCC internal prototype to avoid an error.
12856    Use char because int might match the return type of a GCC
12857    builtin and then its argument prototype would still apply.  */
12858 #ifdef __cplusplus
12859 extern "C"
12860 #endif
12861 char pthread_rwlock_init ();
12862 int
12863 main ()
12864 {
12865 return pthread_rwlock_init ();
12866   ;
12867   return 0;
12868 }
12869 _ACEOF
12870 for ac_lib in '' pthread; do
12871   if test -z "$ac_lib"; then
12872     ac_res="none required"
12873   else
12874     ac_res=-l$ac_lib
12875     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12876   fi
12877   rm -f conftest.$ac_objext conftest$ac_exeext
12878 if { (ac_try="$ac_link"
12879 case "(($ac_try" in
12880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12881   *) ac_try_echo=$ac_try;;
12882 esac
12883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12884   (eval "$ac_link") 2>conftest.er1
12885   ac_status=$?
12886   grep -v '^ *+' conftest.er1 >conftest.err
12887   rm -f conftest.er1
12888   cat conftest.err >&5
12889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890   (exit $ac_status); } &&
12891          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12892   { (case "(($ac_try" in
12893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894   *) ac_try_echo=$ac_try;;
12895 esac
12896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12897   (eval "$ac_try") 2>&5
12898   ac_status=$?
12899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900   (exit $ac_status); }; } &&
12901          { ac_try='test -s conftest$ac_exeext'
12902   { (case "(($ac_try" in
12903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12904   *) ac_try_echo=$ac_try;;
12905 esac
12906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12907   (eval "$ac_try") 2>&5
12908   ac_status=$?
12909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910   (exit $ac_status); }; }; then
12911   ac_cv_search_pthread_rwlock_init=$ac_res
12912 else
12913   echo "$as_me: failed program was:" >&5
12914 sed 's/^/| /' conftest.$ac_ext >&5
12915
12916
12917 fi
12918
12919 rm -f core conftest.err conftest.$ac_objext \
12920       conftest$ac_exeext
12921   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12922   break
12923 fi
12924 done
12925 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12926   :
12927 else
12928   ac_cv_search_pthread_rwlock_init=no
12929 fi
12930 rm conftest.$ac_ext
12931 LIBS=$ac_func_search_save_LIBS
12932 fi
12933 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12934 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12935 ac_res=$ac_cv_search_pthread_rwlock_init
12936 if test "$ac_res" != no; then
12937   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12938
12939 cat >>confdefs.h <<\_ACEOF
12940 #define HAVE_PTHREAD_RWLOCK_INIT 1
12941 _ACEOF
12942
12943 fi
12944
12945   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12946 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12947 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12948   echo $ECHO_N "(cached) $ECHO_C" >&6
12949 else
12950   ac_func_search_save_LIBS=$LIBS
12951 cat >conftest.$ac_ext <<_ACEOF
12952 /* confdefs.h.  */
12953 _ACEOF
12954 cat confdefs.h >>conftest.$ac_ext
12955 cat >>conftest.$ac_ext <<_ACEOF
12956 /* end confdefs.h.  */
12957
12958 /* Override any GCC internal prototype to avoid an error.
12959    Use char because int might match the return type of a GCC
12960    builtin and then its argument prototype would still apply.  */
12961 #ifdef __cplusplus
12962 extern "C"
12963 #endif
12964 char pthread_getspecific ();
12965 int
12966 main ()
12967 {
12968 return pthread_getspecific ();
12969   ;
12970   return 0;
12971 }
12972 _ACEOF
12973 for ac_lib in '' pthread; do
12974   if test -z "$ac_lib"; then
12975     ac_res="none required"
12976   else
12977     ac_res=-l$ac_lib
12978     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12979   fi
12980   rm -f conftest.$ac_objext conftest$ac_exeext
12981 if { (ac_try="$ac_link"
12982 case "(($ac_try" in
12983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12984   *) ac_try_echo=$ac_try;;
12985 esac
12986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12987   (eval "$ac_link") 2>conftest.er1
12988   ac_status=$?
12989   grep -v '^ *+' conftest.er1 >conftest.err
12990   rm -f conftest.er1
12991   cat conftest.err >&5
12992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993   (exit $ac_status); } &&
12994          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12995   { (case "(($ac_try" in
12996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12997   *) ac_try_echo=$ac_try;;
12998 esac
12999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13000   (eval "$ac_try") 2>&5
13001   ac_status=$?
13002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003   (exit $ac_status); }; } &&
13004          { ac_try='test -s conftest$ac_exeext'
13005   { (case "(($ac_try" in
13006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13007   *) ac_try_echo=$ac_try;;
13008 esac
13009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13010   (eval "$ac_try") 2>&5
13011   ac_status=$?
13012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013   (exit $ac_status); }; }; then
13014   ac_cv_search_pthread_getspecific=$ac_res
13015 else
13016   echo "$as_me: failed program was:" >&5
13017 sed 's/^/| /' conftest.$ac_ext >&5
13018
13019
13020 fi
13021
13022 rm -f core conftest.err conftest.$ac_objext \
13023       conftest$ac_exeext
13024   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13025   break
13026 fi
13027 done
13028 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13029   :
13030 else
13031   ac_cv_search_pthread_getspecific=no
13032 fi
13033 rm conftest.$ac_ext
13034 LIBS=$ac_func_search_save_LIBS
13035 fi
13036 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13037 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13038 ac_res=$ac_cv_search_pthread_getspecific
13039 if test "$ac_res" != no; then
13040   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13041
13042 cat >>confdefs.h <<\_ACEOF
13043 #define HAVE_PTHREAD_GETSPECIFIC 1
13044 _ACEOF
13045
13046 fi
13047
13048 fi
13049
13050
13051 # Check whether --with-udis86 was given.
13052 if test "${with_udis86+set}" = set; then
13053   withval=$with_udis86;
13054       USE_UDIS86=1
13055
13056       case "$withval" in
13057         /usr/lib|yes) ;;
13058         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13059       esac
13060
13061 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13062 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13063 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13064   echo $ECHO_N "(cached) $ECHO_C" >&6
13065 else
13066   ac_check_lib_save_LIBS=$LIBS
13067 LIBS="-ludis86  $LIBS"
13068 cat >conftest.$ac_ext <<_ACEOF
13069 /* confdefs.h.  */
13070 _ACEOF
13071 cat confdefs.h >>conftest.$ac_ext
13072 cat >>conftest.$ac_ext <<_ACEOF
13073 /* end confdefs.h.  */
13074
13075 /* Override any GCC internal prototype to avoid an error.
13076    Use char because int might match the return type of a GCC
13077    builtin and then its argument prototype would still apply.  */
13078 #ifdef __cplusplus
13079 extern "C"
13080 #endif
13081 char ud_init ();
13082 int
13083 main ()
13084 {
13085 return ud_init ();
13086   ;
13087   return 0;
13088 }
13089 _ACEOF
13090 rm -f conftest.$ac_objext conftest$ac_exeext
13091 if { (ac_try="$ac_link"
13092 case "(($ac_try" in
13093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13094   *) ac_try_echo=$ac_try;;
13095 esac
13096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13097   (eval "$ac_link") 2>conftest.er1
13098   ac_status=$?
13099   grep -v '^ *+' conftest.er1 >conftest.err
13100   rm -f conftest.er1
13101   cat conftest.err >&5
13102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103   (exit $ac_status); } &&
13104          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13105   { (case "(($ac_try" in
13106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13107   *) ac_try_echo=$ac_try;;
13108 esac
13109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13110   (eval "$ac_try") 2>&5
13111   ac_status=$?
13112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113   (exit $ac_status); }; } &&
13114          { ac_try='test -s conftest$ac_exeext'
13115   { (case "(($ac_try" in
13116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13117   *) ac_try_echo=$ac_try;;
13118 esac
13119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13120   (eval "$ac_try") 2>&5
13121   ac_status=$?
13122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123   (exit $ac_status); }; }; then
13124   ac_cv_lib_udis86_ud_init=yes
13125 else
13126   echo "$as_me: failed program was:" >&5
13127 sed 's/^/| /' conftest.$ac_ext >&5
13128
13129         ac_cv_lib_udis86_ud_init=no
13130 fi
13131
13132 rm -f core conftest.err conftest.$ac_objext \
13133       conftest$ac_exeext conftest.$ac_ext
13134 LIBS=$ac_check_lib_save_LIBS
13135 fi
13136 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13137 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13138 if test $ac_cv_lib_udis86_ud_init = yes; then
13139   cat >>confdefs.h <<_ACEOF
13140 #define HAVE_LIBUDIS86 1
13141 _ACEOF
13142
13143   LIBS="-ludis86 $LIBS"
13144
13145 else
13146
13147         echo "Error! You need to have libudis86 around."
13148         exit -1
13149
13150 fi
13151
13152
13153 else
13154   USE_UDIS86=0
13155
13156 fi
13157
13158
13159 cat >>confdefs.h <<_ACEOF
13160 #define USE_UDIS86 $USE_UDIS86
13161 _ACEOF
13162
13163
13164
13165 # Check whether --with-oprofile was given.
13166 if test "${with_oprofile+set}" = set; then
13167   withval=$with_oprofile;
13168       USE_OPROFILE=1
13169
13170       case "$withval" in
13171         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13172         no) llvm_cv_oppath=
13173             USE_OPROFILE=0
13174  ;;
13175         *) llvm_cv_oppath="${withval}/lib/oprofile"
13176            CPPFLAGS="-I${withval}/include";;
13177       esac
13178       if test -n "$llvm_cv_oppath" ; then
13179         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13180                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13181 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13182 if test "${ac_cv_search_bfd_init+set}" = set; then
13183   echo $ECHO_N "(cached) $ECHO_C" >&6
13184 else
13185   ac_func_search_save_LIBS=$LIBS
13186 cat >conftest.$ac_ext <<_ACEOF
13187 /* confdefs.h.  */
13188 _ACEOF
13189 cat confdefs.h >>conftest.$ac_ext
13190 cat >>conftest.$ac_ext <<_ACEOF
13191 /* end confdefs.h.  */
13192
13193 /* Override any GCC internal prototype to avoid an error.
13194    Use char because int might match the return type of a GCC
13195    builtin and then its argument prototype would still apply.  */
13196 #ifdef __cplusplus
13197 extern "C"
13198 #endif
13199 char bfd_init ();
13200 int
13201 main ()
13202 {
13203 return bfd_init ();
13204   ;
13205   return 0;
13206 }
13207 _ACEOF
13208 for ac_lib in '' bfd; do
13209   if test -z "$ac_lib"; then
13210     ac_res="none required"
13211   else
13212     ac_res=-l$ac_lib
13213     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13214   fi
13215   rm -f conftest.$ac_objext conftest$ac_exeext
13216 if { (ac_try="$ac_link"
13217 case "(($ac_try" in
13218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13219   *) ac_try_echo=$ac_try;;
13220 esac
13221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13222   (eval "$ac_link") 2>conftest.er1
13223   ac_status=$?
13224   grep -v '^ *+' conftest.er1 >conftest.err
13225   rm -f conftest.er1
13226   cat conftest.err >&5
13227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228   (exit $ac_status); } &&
13229          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13230   { (case "(($ac_try" in
13231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13232   *) ac_try_echo=$ac_try;;
13233 esac
13234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13235   (eval "$ac_try") 2>&5
13236   ac_status=$?
13237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238   (exit $ac_status); }; } &&
13239          { ac_try='test -s conftest$ac_exeext'
13240   { (case "(($ac_try" in
13241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13242   *) ac_try_echo=$ac_try;;
13243 esac
13244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13245   (eval "$ac_try") 2>&5
13246   ac_status=$?
13247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248   (exit $ac_status); }; }; then
13249   ac_cv_search_bfd_init=$ac_res
13250 else
13251   echo "$as_me: failed program was:" >&5
13252 sed 's/^/| /' conftest.$ac_ext >&5
13253
13254
13255 fi
13256
13257 rm -f core conftest.err conftest.$ac_objext \
13258       conftest$ac_exeext
13259   if test "${ac_cv_search_bfd_init+set}" = set; then
13260   break
13261 fi
13262 done
13263 if test "${ac_cv_search_bfd_init+set}" = set; then
13264   :
13265 else
13266   ac_cv_search_bfd_init=no
13267 fi
13268 rm conftest.$ac_ext
13269 LIBS=$ac_func_search_save_LIBS
13270 fi
13271 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13272 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13273 ac_res=$ac_cv_search_bfd_init
13274 if test "$ac_res" != no; then
13275   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13276
13277 fi
13278
13279         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13280 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13281 if test "${ac_cv_search_op_open_agent+set}" = set; then
13282   echo $ECHO_N "(cached) $ECHO_C" >&6
13283 else
13284   ac_func_search_save_LIBS=$LIBS
13285 cat >conftest.$ac_ext <<_ACEOF
13286 /* confdefs.h.  */
13287 _ACEOF
13288 cat confdefs.h >>conftest.$ac_ext
13289 cat >>conftest.$ac_ext <<_ACEOF
13290 /* end confdefs.h.  */
13291
13292 /* Override any GCC internal prototype to avoid an error.
13293    Use char because int might match the return type of a GCC
13294    builtin and then its argument prototype would still apply.  */
13295 #ifdef __cplusplus
13296 extern "C"
13297 #endif
13298 char op_open_agent ();
13299 int
13300 main ()
13301 {
13302 return op_open_agent ();
13303   ;
13304   return 0;
13305 }
13306 _ACEOF
13307 for ac_lib in '' opagent; do
13308   if test -z "$ac_lib"; then
13309     ac_res="none required"
13310   else
13311     ac_res=-l$ac_lib
13312     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13313   fi
13314   rm -f conftest.$ac_objext conftest$ac_exeext
13315 if { (ac_try="$ac_link"
13316 case "(($ac_try" in
13317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13318   *) ac_try_echo=$ac_try;;
13319 esac
13320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13321   (eval "$ac_link") 2>conftest.er1
13322   ac_status=$?
13323   grep -v '^ *+' conftest.er1 >conftest.err
13324   rm -f conftest.er1
13325   cat conftest.err >&5
13326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327   (exit $ac_status); } &&
13328          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13329   { (case "(($ac_try" in
13330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13331   *) ac_try_echo=$ac_try;;
13332 esac
13333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13334   (eval "$ac_try") 2>&5
13335   ac_status=$?
13336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337   (exit $ac_status); }; } &&
13338          { ac_try='test -s conftest$ac_exeext'
13339   { (case "(($ac_try" in
13340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13341   *) ac_try_echo=$ac_try;;
13342 esac
13343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13344   (eval "$ac_try") 2>&5
13345   ac_status=$?
13346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347   (exit $ac_status); }; }; then
13348   ac_cv_search_op_open_agent=$ac_res
13349 else
13350   echo "$as_me: failed program was:" >&5
13351 sed 's/^/| /' conftest.$ac_ext >&5
13352
13353
13354 fi
13355
13356 rm -f core conftest.err conftest.$ac_objext \
13357       conftest$ac_exeext
13358   if test "${ac_cv_search_op_open_agent+set}" = set; then
13359   break
13360 fi
13361 done
13362 if test "${ac_cv_search_op_open_agent+set}" = set; then
13363   :
13364 else
13365   ac_cv_search_op_open_agent=no
13366 fi
13367 rm conftest.$ac_ext
13368 LIBS=$ac_func_search_save_LIBS
13369 fi
13370 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13371 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13372 ac_res=$ac_cv_search_op_open_agent
13373 if test "$ac_res" != no; then
13374   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13375
13376 else
13377
13378           echo "Error! You need to have libopagent around."
13379           exit -1
13380
13381 fi
13382
13383         if test "${ac_cv_header_opagent_h+set}" = set; then
13384   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13385 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13386 if test "${ac_cv_header_opagent_h+set}" = set; then
13387   echo $ECHO_N "(cached) $ECHO_C" >&6
13388 fi
13389 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13390 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13391 else
13392   # Is the header compilable?
13393 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13394 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13395 cat >conftest.$ac_ext <<_ACEOF
13396 /* confdefs.h.  */
13397 _ACEOF
13398 cat confdefs.h >>conftest.$ac_ext
13399 cat >>conftest.$ac_ext <<_ACEOF
13400 /* end confdefs.h.  */
13401 $ac_includes_default
13402 #include <opagent.h>
13403 _ACEOF
13404 rm -f conftest.$ac_objext
13405 if { (ac_try="$ac_compile"
13406 case "(($ac_try" in
13407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13408   *) ac_try_echo=$ac_try;;
13409 esac
13410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13411   (eval "$ac_compile") 2>conftest.er1
13412   ac_status=$?
13413   grep -v '^ *+' conftest.er1 >conftest.err
13414   rm -f conftest.er1
13415   cat conftest.err >&5
13416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417   (exit $ac_status); } &&
13418          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13419   { (case "(($ac_try" in
13420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13421   *) ac_try_echo=$ac_try;;
13422 esac
13423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13424   (eval "$ac_try") 2>&5
13425   ac_status=$?
13426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427   (exit $ac_status); }; } &&
13428          { ac_try='test -s conftest.$ac_objext'
13429   { (case "(($ac_try" in
13430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13431   *) ac_try_echo=$ac_try;;
13432 esac
13433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13434   (eval "$ac_try") 2>&5
13435   ac_status=$?
13436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437   (exit $ac_status); }; }; then
13438   ac_header_compiler=yes
13439 else
13440   echo "$as_me: failed program was:" >&5
13441 sed 's/^/| /' conftest.$ac_ext >&5
13442
13443         ac_header_compiler=no
13444 fi
13445
13446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13447 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13448 echo "${ECHO_T}$ac_header_compiler" >&6; }
13449
13450 # Is the header present?
13451 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13452 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13453 cat >conftest.$ac_ext <<_ACEOF
13454 /* confdefs.h.  */
13455 _ACEOF
13456 cat confdefs.h >>conftest.$ac_ext
13457 cat >>conftest.$ac_ext <<_ACEOF
13458 /* end confdefs.h.  */
13459 #include <opagent.h>
13460 _ACEOF
13461 if { (ac_try="$ac_cpp conftest.$ac_ext"
13462 case "(($ac_try" in
13463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464   *) ac_try_echo=$ac_try;;
13465 esac
13466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13468   ac_status=$?
13469   grep -v '^ *+' conftest.er1 >conftest.err
13470   rm -f conftest.er1
13471   cat conftest.err >&5
13472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473   (exit $ac_status); } >/dev/null; then
13474   if test -s conftest.err; then
13475     ac_cpp_err=$ac_c_preproc_warn_flag
13476     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13477   else
13478     ac_cpp_err=
13479   fi
13480 else
13481   ac_cpp_err=yes
13482 fi
13483 if test -z "$ac_cpp_err"; then
13484   ac_header_preproc=yes
13485 else
13486   echo "$as_me: failed program was:" >&5
13487 sed 's/^/| /' conftest.$ac_ext >&5
13488
13489   ac_header_preproc=no
13490 fi
13491
13492 rm -f conftest.err conftest.$ac_ext
13493 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13494 echo "${ECHO_T}$ac_header_preproc" >&6; }
13495
13496 # So?  What about this header?
13497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13498   yes:no: )
13499     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13500 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13501     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13502 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13503     ac_header_preproc=yes
13504     ;;
13505   no:yes:* )
13506     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13507 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13508     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13509 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13510     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13511 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13512     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13513 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13514     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13515 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13516     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13517 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13518     ( cat <<\_ASBOX
13519 ## ------------------------------ ##
13520 ## Report this to bugs@yourdomain ##
13521 ## ------------------------------ ##
13522 _ASBOX
13523      ) | sed "s/^/$as_me: WARNING:     /" >&2
13524     ;;
13525 esac
13526 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13527 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13528 if test "${ac_cv_header_opagent_h+set}" = set; then
13529   echo $ECHO_N "(cached) $ECHO_C" >&6
13530 else
13531   ac_cv_header_opagent_h=$ac_header_preproc
13532 fi
13533 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13534 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13535
13536 fi
13537 if test $ac_cv_header_opagent_h = yes; then
13538   :
13539 else
13540
13541           echo "Error! You need to have opagent.h around."
13542           exit -1
13543
13544 fi
13545
13546
13547       fi
13548
13549 else
13550
13551       USE_OPROFILE=0
13552
13553
13554 fi
13555
13556
13557 cat >>confdefs.h <<_ACEOF
13558 #define USE_OPROFILE $USE_OPROFILE
13559 _ACEOF
13560
13561
13562
13563
13564
13565
13566
13567
13568 ac_header_dirent=no
13569 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13570   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13571 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13572 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13574   echo $ECHO_N "(cached) $ECHO_C" >&6
13575 else
13576   cat >conftest.$ac_ext <<_ACEOF
13577 /* confdefs.h.  */
13578 _ACEOF
13579 cat confdefs.h >>conftest.$ac_ext
13580 cat >>conftest.$ac_ext <<_ACEOF
13581 /* end confdefs.h.  */
13582 #include <sys/types.h>
13583 #include <$ac_hdr>
13584
13585 int
13586 main ()
13587 {
13588 if ((DIR *) 0)
13589 return 0;
13590   ;
13591   return 0;
13592 }
13593 _ACEOF
13594 rm -f conftest.$ac_objext
13595 if { (ac_try="$ac_compile"
13596 case "(($ac_try" in
13597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13598   *) ac_try_echo=$ac_try;;
13599 esac
13600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13601   (eval "$ac_compile") 2>conftest.er1
13602   ac_status=$?
13603   grep -v '^ *+' conftest.er1 >conftest.err
13604   rm -f conftest.er1
13605   cat conftest.err >&5
13606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607   (exit $ac_status); } &&
13608          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13609   { (case "(($ac_try" in
13610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13611   *) ac_try_echo=$ac_try;;
13612 esac
13613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13614   (eval "$ac_try") 2>&5
13615   ac_status=$?
13616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617   (exit $ac_status); }; } &&
13618          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13628   eval "$as_ac_Header=yes"
13629 else
13630   echo "$as_me: failed program was:" >&5
13631 sed 's/^/| /' conftest.$ac_ext >&5
13632
13633         eval "$as_ac_Header=no"
13634 fi
13635
13636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13637 fi
13638 ac_res=`eval echo '${'$as_ac_Header'}'`
13639                { echo "$as_me:$LINENO: result: $ac_res" >&5
13640 echo "${ECHO_T}$ac_res" >&6; }
13641 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13642   cat >>confdefs.h <<_ACEOF
13643 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13644 _ACEOF
13645
13646 ac_header_dirent=$ac_hdr; break
13647 fi
13648
13649 done
13650 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13651 if test $ac_header_dirent = dirent.h; then
13652   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13653 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13654 if test "${ac_cv_search_opendir+set}" = set; then
13655   echo $ECHO_N "(cached) $ECHO_C" >&6
13656 else
13657   ac_func_search_save_LIBS=$LIBS
13658 cat >conftest.$ac_ext <<_ACEOF
13659 /* confdefs.h.  */
13660 _ACEOF
13661 cat confdefs.h >>conftest.$ac_ext
13662 cat >>conftest.$ac_ext <<_ACEOF
13663 /* end confdefs.h.  */
13664
13665 /* Override any GCC internal prototype to avoid an error.
13666    Use char because int might match the return type of a GCC
13667    builtin and then its argument prototype would still apply.  */
13668 #ifdef __cplusplus
13669 extern "C"
13670 #endif
13671 char opendir ();
13672 int
13673 main ()
13674 {
13675 return opendir ();
13676   ;
13677   return 0;
13678 }
13679 _ACEOF
13680 for ac_lib in '' dir; do
13681   if test -z "$ac_lib"; then
13682     ac_res="none required"
13683   else
13684     ac_res=-l$ac_lib
13685     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13686   fi
13687   rm -f conftest.$ac_objext conftest$ac_exeext
13688 if { (ac_try="$ac_link"
13689 case "(($ac_try" in
13690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691   *) ac_try_echo=$ac_try;;
13692 esac
13693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13694   (eval "$ac_link") 2>conftest.er1
13695   ac_status=$?
13696   grep -v '^ *+' conftest.er1 >conftest.err
13697   rm -f conftest.er1
13698   cat conftest.err >&5
13699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700   (exit $ac_status); } &&
13701          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13702   { (case "(($ac_try" in
13703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13704   *) ac_try_echo=$ac_try;;
13705 esac
13706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13707   (eval "$ac_try") 2>&5
13708   ac_status=$?
13709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710   (exit $ac_status); }; } &&
13711          { ac_try='test -s conftest$ac_exeext'
13712   { (case "(($ac_try" in
13713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13714   *) ac_try_echo=$ac_try;;
13715 esac
13716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13717   (eval "$ac_try") 2>&5
13718   ac_status=$?
13719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720   (exit $ac_status); }; }; then
13721   ac_cv_search_opendir=$ac_res
13722 else
13723   echo "$as_me: failed program was:" >&5
13724 sed 's/^/| /' conftest.$ac_ext >&5
13725
13726
13727 fi
13728
13729 rm -f core conftest.err conftest.$ac_objext \
13730       conftest$ac_exeext
13731   if test "${ac_cv_search_opendir+set}" = set; then
13732   break
13733 fi
13734 done
13735 if test "${ac_cv_search_opendir+set}" = set; then
13736   :
13737 else
13738   ac_cv_search_opendir=no
13739 fi
13740 rm conftest.$ac_ext
13741 LIBS=$ac_func_search_save_LIBS
13742 fi
13743 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13744 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13745 ac_res=$ac_cv_search_opendir
13746 if test "$ac_res" != no; then
13747   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13748
13749 fi
13750
13751 else
13752   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13753 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13754 if test "${ac_cv_search_opendir+set}" = set; then
13755   echo $ECHO_N "(cached) $ECHO_C" >&6
13756 else
13757   ac_func_search_save_LIBS=$LIBS
13758 cat >conftest.$ac_ext <<_ACEOF
13759 /* confdefs.h.  */
13760 _ACEOF
13761 cat confdefs.h >>conftest.$ac_ext
13762 cat >>conftest.$ac_ext <<_ACEOF
13763 /* end confdefs.h.  */
13764
13765 /* Override any GCC internal prototype to avoid an error.
13766    Use char because int might match the return type of a GCC
13767    builtin and then its argument prototype would still apply.  */
13768 #ifdef __cplusplus
13769 extern "C"
13770 #endif
13771 char opendir ();
13772 int
13773 main ()
13774 {
13775 return opendir ();
13776   ;
13777   return 0;
13778 }
13779 _ACEOF
13780 for ac_lib in '' x; do
13781   if test -z "$ac_lib"; then
13782     ac_res="none required"
13783   else
13784     ac_res=-l$ac_lib
13785     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13786   fi
13787   rm -f conftest.$ac_objext conftest$ac_exeext
13788 if { (ac_try="$ac_link"
13789 case "(($ac_try" in
13790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13791   *) ac_try_echo=$ac_try;;
13792 esac
13793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13794   (eval "$ac_link") 2>conftest.er1
13795   ac_status=$?
13796   grep -v '^ *+' conftest.er1 >conftest.err
13797   rm -f conftest.er1
13798   cat conftest.err >&5
13799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800   (exit $ac_status); } &&
13801          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13802   { (case "(($ac_try" in
13803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13804   *) ac_try_echo=$ac_try;;
13805 esac
13806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13807   (eval "$ac_try") 2>&5
13808   ac_status=$?
13809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810   (exit $ac_status); }; } &&
13811          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
13818   ac_status=$?
13819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820   (exit $ac_status); }; }; then
13821   ac_cv_search_opendir=$ac_res
13822 else
13823   echo "$as_me: failed program was:" >&5
13824 sed 's/^/| /' conftest.$ac_ext >&5
13825
13826
13827 fi
13828
13829 rm -f core conftest.err conftest.$ac_objext \
13830       conftest$ac_exeext
13831   if test "${ac_cv_search_opendir+set}" = set; then
13832   break
13833 fi
13834 done
13835 if test "${ac_cv_search_opendir+set}" = set; then
13836   :
13837 else
13838   ac_cv_search_opendir=no
13839 fi
13840 rm conftest.$ac_ext
13841 LIBS=$ac_func_search_save_LIBS
13842 fi
13843 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13844 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13845 ac_res=$ac_cv_search_opendir
13846 if test "$ac_res" != no; then
13847   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13848
13849 fi
13850
13851 fi
13852
13853 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13854 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13855 if test "${ac_cv_header_mmap_anon+set}" = set; then
13856   echo $ECHO_N "(cached) $ECHO_C" >&6
13857 else
13858    ac_ext=c
13859 ac_cpp='$CPP $CPPFLAGS'
13860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13863
13864   cat >conftest.$ac_ext <<_ACEOF
13865 /* confdefs.h.  */
13866 _ACEOF
13867 cat confdefs.h >>conftest.$ac_ext
13868 cat >>conftest.$ac_ext <<_ACEOF
13869 /* end confdefs.h.  */
13870 #include <sys/mman.h>
13871 #include <unistd.h>
13872 #include <fcntl.h>
13873 int
13874 main ()
13875 {
13876 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13877   ;
13878   return 0;
13879 }
13880 _ACEOF
13881 rm -f conftest.$ac_objext
13882 if { (ac_try="$ac_compile"
13883 case "(($ac_try" in
13884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13885   *) ac_try_echo=$ac_try;;
13886 esac
13887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13888   (eval "$ac_compile") 2>conftest.er1
13889   ac_status=$?
13890   grep -v '^ *+' conftest.er1 >conftest.err
13891   rm -f conftest.er1
13892   cat conftest.err >&5
13893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894   (exit $ac_status); } &&
13895          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13896   { (case "(($ac_try" in
13897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13898   *) ac_try_echo=$ac_try;;
13899 esac
13900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13901   (eval "$ac_try") 2>&5
13902   ac_status=$?
13903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904   (exit $ac_status); }; } &&
13905          { ac_try='test -s conftest.$ac_objext'
13906   { (case "(($ac_try" in
13907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13908   *) ac_try_echo=$ac_try;;
13909 esac
13910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13911   (eval "$ac_try") 2>&5
13912   ac_status=$?
13913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914   (exit $ac_status); }; }; then
13915   ac_cv_header_mmap_anon=yes
13916 else
13917   echo "$as_me: failed program was:" >&5
13918 sed 's/^/| /' conftest.$ac_ext >&5
13919
13920         ac_cv_header_mmap_anon=no
13921 fi
13922
13923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13924   ac_ext=c
13925 ac_cpp='$CPP $CPPFLAGS'
13926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13929
13930
13931 fi
13932 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13933 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13934 if test "$ac_cv_header_mmap_anon" = yes; then
13935
13936 cat >>confdefs.h <<\_ACEOF
13937 #define HAVE_MMAP_ANONYMOUS 1
13938 _ACEOF
13939
13940 fi
13941
13942 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13943 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
13944 if test "${ac_cv_header_stat_broken+set}" = set; then
13945   echo $ECHO_N "(cached) $ECHO_C" >&6
13946 else
13947   cat >conftest.$ac_ext <<_ACEOF
13948 /* confdefs.h.  */
13949 _ACEOF
13950 cat confdefs.h >>conftest.$ac_ext
13951 cat >>conftest.$ac_ext <<_ACEOF
13952 /* end confdefs.h.  */
13953 #include <sys/types.h>
13954 #include <sys/stat.h>
13955
13956 #if defined S_ISBLK && defined S_IFDIR
13957 # if S_ISBLK (S_IFDIR)
13958 You lose.
13959 # endif
13960 #endif
13961
13962 #if defined S_ISBLK && defined S_IFCHR
13963 # if S_ISBLK (S_IFCHR)
13964 You lose.
13965 # endif
13966 #endif
13967
13968 #if defined S_ISLNK && defined S_IFREG
13969 # if S_ISLNK (S_IFREG)
13970 You lose.
13971 # endif
13972 #endif
13973
13974 #if defined S_ISSOCK && defined S_IFREG
13975 # if S_ISSOCK (S_IFREG)
13976 You lose.
13977 # endif
13978 #endif
13979
13980 _ACEOF
13981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13982   $EGREP "You lose" >/dev/null 2>&1; then
13983   ac_cv_header_stat_broken=yes
13984 else
13985   ac_cv_header_stat_broken=no
13986 fi
13987 rm -f conftest*
13988
13989 fi
13990 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
13991 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
13992 if test $ac_cv_header_stat_broken = yes; then
13993
13994 cat >>confdefs.h <<\_ACEOF
13995 #define STAT_MACROS_BROKEN 1
13996 _ACEOF
13997
13998 fi
13999
14000 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14001 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14002 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14003   echo $ECHO_N "(cached) $ECHO_C" >&6
14004 else
14005   cat >conftest.$ac_ext <<_ACEOF
14006 /* confdefs.h.  */
14007 _ACEOF
14008 cat confdefs.h >>conftest.$ac_ext
14009 cat >>conftest.$ac_ext <<_ACEOF
14010 /* end confdefs.h.  */
14011 #include <sys/types.h>
14012 #include <sys/wait.h>
14013 #ifndef WEXITSTATUS
14014 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14015 #endif
14016 #ifndef WIFEXITED
14017 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14018 #endif
14019
14020 int
14021 main ()
14022 {
14023   int s;
14024   wait (&s);
14025   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14026   ;
14027   return 0;
14028 }
14029 _ACEOF
14030 rm -f conftest.$ac_objext
14031 if { (ac_try="$ac_compile"
14032 case "(($ac_try" in
14033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14034   *) ac_try_echo=$ac_try;;
14035 esac
14036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14037   (eval "$ac_compile") 2>conftest.er1
14038   ac_status=$?
14039   grep -v '^ *+' conftest.er1 >conftest.err
14040   rm -f conftest.er1
14041   cat conftest.err >&5
14042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043   (exit $ac_status); } &&
14044          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14045   { (case "(($ac_try" in
14046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14047   *) ac_try_echo=$ac_try;;
14048 esac
14049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14050   (eval "$ac_try") 2>&5
14051   ac_status=$?
14052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053   (exit $ac_status); }; } &&
14054          { ac_try='test -s conftest.$ac_objext'
14055   { (case "(($ac_try" in
14056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14057   *) ac_try_echo=$ac_try;;
14058 esac
14059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14060   (eval "$ac_try") 2>&5
14061   ac_status=$?
14062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063   (exit $ac_status); }; }; then
14064   ac_cv_header_sys_wait_h=yes
14065 else
14066   echo "$as_me: failed program was:" >&5
14067 sed 's/^/| /' conftest.$ac_ext >&5
14068
14069         ac_cv_header_sys_wait_h=no
14070 fi
14071
14072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14073 fi
14074 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14075 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14076 if test $ac_cv_header_sys_wait_h = yes; then
14077
14078 cat >>confdefs.h <<\_ACEOF
14079 #define HAVE_SYS_WAIT_H 1
14080 _ACEOF
14081
14082 fi
14083
14084 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14085 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14086 if test "${ac_cv_header_time+set}" = set; then
14087   echo $ECHO_N "(cached) $ECHO_C" >&6
14088 else
14089   cat >conftest.$ac_ext <<_ACEOF
14090 /* confdefs.h.  */
14091 _ACEOF
14092 cat confdefs.h >>conftest.$ac_ext
14093 cat >>conftest.$ac_ext <<_ACEOF
14094 /* end confdefs.h.  */
14095 #include <sys/types.h>
14096 #include <sys/time.h>
14097 #include <time.h>
14098
14099 int
14100 main ()
14101 {
14102 if ((struct tm *) 0)
14103 return 0;
14104   ;
14105   return 0;
14106 }
14107 _ACEOF
14108 rm -f conftest.$ac_objext
14109 if { (ac_try="$ac_compile"
14110 case "(($ac_try" in
14111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14112   *) ac_try_echo=$ac_try;;
14113 esac
14114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14115   (eval "$ac_compile") 2>conftest.er1
14116   ac_status=$?
14117   grep -v '^ *+' conftest.er1 >conftest.err
14118   rm -f conftest.er1
14119   cat conftest.err >&5
14120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121   (exit $ac_status); } &&
14122          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14123   { (case "(($ac_try" in
14124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14125   *) ac_try_echo=$ac_try;;
14126 esac
14127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14128   (eval "$ac_try") 2>&5
14129   ac_status=$?
14130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131   (exit $ac_status); }; } &&
14132          { ac_try='test -s conftest.$ac_objext'
14133   { (case "(($ac_try" in
14134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14135   *) ac_try_echo=$ac_try;;
14136 esac
14137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14138   (eval "$ac_try") 2>&5
14139   ac_status=$?
14140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141   (exit $ac_status); }; }; then
14142   ac_cv_header_time=yes
14143 else
14144   echo "$as_me: failed program was:" >&5
14145 sed 's/^/| /' conftest.$ac_ext >&5
14146
14147         ac_cv_header_time=no
14148 fi
14149
14150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14151 fi
14152 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14153 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14154 if test $ac_cv_header_time = yes; then
14155
14156 cat >>confdefs.h <<\_ACEOF
14157 #define TIME_WITH_SYS_TIME 1
14158 _ACEOF
14159
14160 fi
14161
14162
14163
14164
14165
14166
14167
14168
14169 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14170 do
14171 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14173   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14176   echo $ECHO_N "(cached) $ECHO_C" >&6
14177 fi
14178 ac_res=`eval echo '${'$as_ac_Header'}'`
14179                { echo "$as_me:$LINENO: result: $ac_res" >&5
14180 echo "${ECHO_T}$ac_res" >&6; }
14181 else
14182   # Is the header compilable?
14183 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14184 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14185 cat >conftest.$ac_ext <<_ACEOF
14186 /* confdefs.h.  */
14187 _ACEOF
14188 cat confdefs.h >>conftest.$ac_ext
14189 cat >>conftest.$ac_ext <<_ACEOF
14190 /* end confdefs.h.  */
14191 $ac_includes_default
14192 #include <$ac_header>
14193 _ACEOF
14194 rm -f conftest.$ac_objext
14195 if { (ac_try="$ac_compile"
14196 case "(($ac_try" in
14197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14198   *) ac_try_echo=$ac_try;;
14199 esac
14200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14201   (eval "$ac_compile") 2>conftest.er1
14202   ac_status=$?
14203   grep -v '^ *+' conftest.er1 >conftest.err
14204   rm -f conftest.er1
14205   cat conftest.err >&5
14206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207   (exit $ac_status); } &&
14208          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14209   { (case "(($ac_try" in
14210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14211   *) ac_try_echo=$ac_try;;
14212 esac
14213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14214   (eval "$ac_try") 2>&5
14215   ac_status=$?
14216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217   (exit $ac_status); }; } &&
14218          { ac_try='test -s conftest.$ac_objext'
14219   { (case "(($ac_try" in
14220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14221   *) ac_try_echo=$ac_try;;
14222 esac
14223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14224   (eval "$ac_try") 2>&5
14225   ac_status=$?
14226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227   (exit $ac_status); }; }; then
14228   ac_header_compiler=yes
14229 else
14230   echo "$as_me: failed program was:" >&5
14231 sed 's/^/| /' conftest.$ac_ext >&5
14232
14233         ac_header_compiler=no
14234 fi
14235
14236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14237 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14238 echo "${ECHO_T}$ac_header_compiler" >&6; }
14239
14240 # Is the header present?
14241 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14242 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14243 cat >conftest.$ac_ext <<_ACEOF
14244 /* confdefs.h.  */
14245 _ACEOF
14246 cat confdefs.h >>conftest.$ac_ext
14247 cat >>conftest.$ac_ext <<_ACEOF
14248 /* end confdefs.h.  */
14249 #include <$ac_header>
14250 _ACEOF
14251 if { (ac_try="$ac_cpp conftest.$ac_ext"
14252 case "(($ac_try" in
14253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14254   *) ac_try_echo=$ac_try;;
14255 esac
14256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14257   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14258   ac_status=$?
14259   grep -v '^ *+' conftest.er1 >conftest.err
14260   rm -f conftest.er1
14261   cat conftest.err >&5
14262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263   (exit $ac_status); } >/dev/null; then
14264   if test -s conftest.err; then
14265     ac_cpp_err=$ac_c_preproc_warn_flag
14266     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14267   else
14268     ac_cpp_err=
14269   fi
14270 else
14271   ac_cpp_err=yes
14272 fi
14273 if test -z "$ac_cpp_err"; then
14274   ac_header_preproc=yes
14275 else
14276   echo "$as_me: failed program was:" >&5
14277 sed 's/^/| /' conftest.$ac_ext >&5
14278
14279   ac_header_preproc=no
14280 fi
14281
14282 rm -f conftest.err conftest.$ac_ext
14283 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14284 echo "${ECHO_T}$ac_header_preproc" >&6; }
14285
14286 # So?  What about this header?
14287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14288   yes:no: )
14289     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14290 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14291     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14292 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14293     ac_header_preproc=yes
14294     ;;
14295   no:yes:* )
14296     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14298     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14299 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14300     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14301 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14302     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14303 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14304     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14306     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14307 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14308     ( cat <<\_ASBOX
14309 ## ------------------------------ ##
14310 ## Report this to bugs@yourdomain ##
14311 ## ------------------------------ ##
14312 _ASBOX
14313      ) | sed "s/^/$as_me: WARNING:     /" >&2
14314     ;;
14315 esac
14316 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14319   echo $ECHO_N "(cached) $ECHO_C" >&6
14320 else
14321   eval "$as_ac_Header=\$ac_header_preproc"
14322 fi
14323 ac_res=`eval echo '${'$as_ac_Header'}'`
14324                { echo "$as_me:$LINENO: result: $ac_res" >&5
14325 echo "${ECHO_T}$ac_res" >&6; }
14326
14327 fi
14328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14329   cat >>confdefs.h <<_ACEOF
14330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14331 _ACEOF
14332
14333 fi
14334
14335 done
14336
14337
14338
14339
14340
14341
14342
14343 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14344 do
14345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14347   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14350   echo $ECHO_N "(cached) $ECHO_C" >&6
14351 fi
14352 ac_res=`eval echo '${'$as_ac_Header'}'`
14353                { echo "$as_me:$LINENO: result: $ac_res" >&5
14354 echo "${ECHO_T}$ac_res" >&6; }
14355 else
14356   # Is the header compilable?
14357 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14359 cat >conftest.$ac_ext <<_ACEOF
14360 /* confdefs.h.  */
14361 _ACEOF
14362 cat confdefs.h >>conftest.$ac_ext
14363 cat >>conftest.$ac_ext <<_ACEOF
14364 /* end confdefs.h.  */
14365 $ac_includes_default
14366 #include <$ac_header>
14367 _ACEOF
14368 rm -f conftest.$ac_objext
14369 if { (ac_try="$ac_compile"
14370 case "(($ac_try" in
14371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14372   *) ac_try_echo=$ac_try;;
14373 esac
14374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14375   (eval "$ac_compile") 2>conftest.er1
14376   ac_status=$?
14377   grep -v '^ *+' conftest.er1 >conftest.err
14378   rm -f conftest.er1
14379   cat conftest.err >&5
14380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381   (exit $ac_status); } &&
14382          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14383   { (case "(($ac_try" in
14384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14385   *) ac_try_echo=$ac_try;;
14386 esac
14387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14388   (eval "$ac_try") 2>&5
14389   ac_status=$?
14390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391   (exit $ac_status); }; } &&
14392          { ac_try='test -s conftest.$ac_objext'
14393   { (case "(($ac_try" in
14394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14395   *) ac_try_echo=$ac_try;;
14396 esac
14397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14398   (eval "$ac_try") 2>&5
14399   ac_status=$?
14400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401   (exit $ac_status); }; }; then
14402   ac_header_compiler=yes
14403 else
14404   echo "$as_me: failed program was:" >&5
14405 sed 's/^/| /' conftest.$ac_ext >&5
14406
14407         ac_header_compiler=no
14408 fi
14409
14410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14411 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14412 echo "${ECHO_T}$ac_header_compiler" >&6; }
14413
14414 # Is the header present?
14415 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14417 cat >conftest.$ac_ext <<_ACEOF
14418 /* confdefs.h.  */
14419 _ACEOF
14420 cat confdefs.h >>conftest.$ac_ext
14421 cat >>conftest.$ac_ext <<_ACEOF
14422 /* end confdefs.h.  */
14423 #include <$ac_header>
14424 _ACEOF
14425 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
14438   if test -s conftest.err; then
14439     ac_cpp_err=$ac_c_preproc_warn_flag
14440     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14441   else
14442     ac_cpp_err=
14443   fi
14444 else
14445   ac_cpp_err=yes
14446 fi
14447 if test -z "$ac_cpp_err"; then
14448   ac_header_preproc=yes
14449 else
14450   echo "$as_me: failed program was:" >&5
14451 sed 's/^/| /' conftest.$ac_ext >&5
14452
14453   ac_header_preproc=no
14454 fi
14455
14456 rm -f conftest.err conftest.$ac_ext
14457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14458 echo "${ECHO_T}$ac_header_preproc" >&6; }
14459
14460 # So?  What about this header?
14461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14462   yes:no: )
14463     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14465     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14467     ac_header_preproc=yes
14468     ;;
14469   no:yes:* )
14470     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14472     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14473 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14474     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14476     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14477 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14478     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14480     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14482     ( cat <<\_ASBOX
14483 ## ------------------------------ ##
14484 ## Report this to bugs@yourdomain ##
14485 ## ------------------------------ ##
14486 _ASBOX
14487      ) | sed "s/^/$as_me: WARNING:     /" >&2
14488     ;;
14489 esac
14490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14493   echo $ECHO_N "(cached) $ECHO_C" >&6
14494 else
14495   eval "$as_ac_Header=\$ac_header_preproc"
14496 fi
14497 ac_res=`eval echo '${'$as_ac_Header'}'`
14498                { echo "$as_me:$LINENO: result: $ac_res" >&5
14499 echo "${ECHO_T}$ac_res" >&6; }
14500
14501 fi
14502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14503   cat >>confdefs.h <<_ACEOF
14504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14505 _ACEOF
14506
14507 fi
14508
14509 done
14510
14511
14512
14513 for ac_header in utime.h windows.h
14514 do
14515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14517   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14520   echo $ECHO_N "(cached) $ECHO_C" >&6
14521 fi
14522 ac_res=`eval echo '${'$as_ac_Header'}'`
14523                { echo "$as_me:$LINENO: result: $ac_res" >&5
14524 echo "${ECHO_T}$ac_res" >&6; }
14525 else
14526   # Is the header compilable?
14527 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14528 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14529 cat >conftest.$ac_ext <<_ACEOF
14530 /* confdefs.h.  */
14531 _ACEOF
14532 cat confdefs.h >>conftest.$ac_ext
14533 cat >>conftest.$ac_ext <<_ACEOF
14534 /* end confdefs.h.  */
14535 $ac_includes_default
14536 #include <$ac_header>
14537 _ACEOF
14538 rm -f conftest.$ac_objext
14539 if { (ac_try="$ac_compile"
14540 case "(($ac_try" in
14541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14542   *) ac_try_echo=$ac_try;;
14543 esac
14544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14545   (eval "$ac_compile") 2>conftest.er1
14546   ac_status=$?
14547   grep -v '^ *+' conftest.er1 >conftest.err
14548   rm -f conftest.er1
14549   cat conftest.err >&5
14550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551   (exit $ac_status); } &&
14552          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14553   { (case "(($ac_try" in
14554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14555   *) ac_try_echo=$ac_try;;
14556 esac
14557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14558   (eval "$ac_try") 2>&5
14559   ac_status=$?
14560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561   (exit $ac_status); }; } &&
14562          { ac_try='test -s conftest.$ac_objext'
14563   { (case "(($ac_try" in
14564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14565   *) ac_try_echo=$ac_try;;
14566 esac
14567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14568   (eval "$ac_try") 2>&5
14569   ac_status=$?
14570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571   (exit $ac_status); }; }; then
14572   ac_header_compiler=yes
14573 else
14574   echo "$as_me: failed program was:" >&5
14575 sed 's/^/| /' conftest.$ac_ext >&5
14576
14577         ac_header_compiler=no
14578 fi
14579
14580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14581 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14582 echo "${ECHO_T}$ac_header_compiler" >&6; }
14583
14584 # Is the header present?
14585 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14586 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14587 cat >conftest.$ac_ext <<_ACEOF
14588 /* confdefs.h.  */
14589 _ACEOF
14590 cat confdefs.h >>conftest.$ac_ext
14591 cat >>conftest.$ac_ext <<_ACEOF
14592 /* end confdefs.h.  */
14593 #include <$ac_header>
14594 _ACEOF
14595 if { (ac_try="$ac_cpp conftest.$ac_ext"
14596 case "(($ac_try" in
14597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14598   *) ac_try_echo=$ac_try;;
14599 esac
14600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14601   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14602   ac_status=$?
14603   grep -v '^ *+' conftest.er1 >conftest.err
14604   rm -f conftest.er1
14605   cat conftest.err >&5
14606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607   (exit $ac_status); } >/dev/null; then
14608   if test -s conftest.err; then
14609     ac_cpp_err=$ac_c_preproc_warn_flag
14610     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14611   else
14612     ac_cpp_err=
14613   fi
14614 else
14615   ac_cpp_err=yes
14616 fi
14617 if test -z "$ac_cpp_err"; then
14618   ac_header_preproc=yes
14619 else
14620   echo "$as_me: failed program was:" >&5
14621 sed 's/^/| /' conftest.$ac_ext >&5
14622
14623   ac_header_preproc=no
14624 fi
14625
14626 rm -f conftest.err conftest.$ac_ext
14627 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14628 echo "${ECHO_T}$ac_header_preproc" >&6; }
14629
14630 # So?  What about this header?
14631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14632   yes:no: )
14633     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14634 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14635     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14636 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14637     ac_header_preproc=yes
14638     ;;
14639   no:yes:* )
14640     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14641 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14642     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14643 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14644     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14645 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14646     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14647 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14648     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14649 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14650     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14651 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14652     ( cat <<\_ASBOX
14653 ## ------------------------------ ##
14654 ## Report this to bugs@yourdomain ##
14655 ## ------------------------------ ##
14656 _ASBOX
14657      ) | sed "s/^/$as_me: WARNING:     /" >&2
14658     ;;
14659 esac
14660 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14663   echo $ECHO_N "(cached) $ECHO_C" >&6
14664 else
14665   eval "$as_ac_Header=\$ac_header_preproc"
14666 fi
14667 ac_res=`eval echo '${'$as_ac_Header'}'`
14668                { echo "$as_me:$LINENO: result: $ac_res" >&5
14669 echo "${ECHO_T}$ac_res" >&6; }
14670
14671 fi
14672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14673   cat >>confdefs.h <<_ACEOF
14674 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14675 _ACEOF
14676
14677 fi
14678
14679 done
14680
14681
14682
14683
14684
14685
14686 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14687 do
14688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14690   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14693   echo $ECHO_N "(cached) $ECHO_C" >&6
14694 fi
14695 ac_res=`eval echo '${'$as_ac_Header'}'`
14696                { echo "$as_me:$LINENO: result: $ac_res" >&5
14697 echo "${ECHO_T}$ac_res" >&6; }
14698 else
14699   # Is the header compilable?
14700 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14701 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14702 cat >conftest.$ac_ext <<_ACEOF
14703 /* confdefs.h.  */
14704 _ACEOF
14705 cat confdefs.h >>conftest.$ac_ext
14706 cat >>conftest.$ac_ext <<_ACEOF
14707 /* end confdefs.h.  */
14708 $ac_includes_default
14709 #include <$ac_header>
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_header_compiler=yes
14746 else
14747   echo "$as_me: failed program was:" >&5
14748 sed 's/^/| /' conftest.$ac_ext >&5
14749
14750         ac_header_compiler=no
14751 fi
14752
14753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14754 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14755 echo "${ECHO_T}$ac_header_compiler" >&6; }
14756
14757 # Is the header present?
14758 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14759 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14760 cat >conftest.$ac_ext <<_ACEOF
14761 /* confdefs.h.  */
14762 _ACEOF
14763 cat confdefs.h >>conftest.$ac_ext
14764 cat >>conftest.$ac_ext <<_ACEOF
14765 /* end confdefs.h.  */
14766 #include <$ac_header>
14767 _ACEOF
14768 if { (ac_try="$ac_cpp conftest.$ac_ext"
14769 case "(($ac_try" in
14770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14771   *) ac_try_echo=$ac_try;;
14772 esac
14773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14774   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14775   ac_status=$?
14776   grep -v '^ *+' conftest.er1 >conftest.err
14777   rm -f conftest.er1
14778   cat conftest.err >&5
14779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780   (exit $ac_status); } >/dev/null; then
14781   if test -s conftest.err; then
14782     ac_cpp_err=$ac_c_preproc_warn_flag
14783     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14784   else
14785     ac_cpp_err=
14786   fi
14787 else
14788   ac_cpp_err=yes
14789 fi
14790 if test -z "$ac_cpp_err"; then
14791   ac_header_preproc=yes
14792 else
14793   echo "$as_me: failed program was:" >&5
14794 sed 's/^/| /' conftest.$ac_ext >&5
14795
14796   ac_header_preproc=no
14797 fi
14798
14799 rm -f conftest.err conftest.$ac_ext
14800 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14801 echo "${ECHO_T}$ac_header_preproc" >&6; }
14802
14803 # So?  What about this header?
14804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14805   yes:no: )
14806     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14807 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14808     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14809 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14810     ac_header_preproc=yes
14811     ;;
14812   no:yes:* )
14813     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14814 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14815     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14816 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14817     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14818 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14819     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14820 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14821     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14822 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14823     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14824 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14825     ( cat <<\_ASBOX
14826 ## ------------------------------ ##
14827 ## Report this to bugs@yourdomain ##
14828 ## ------------------------------ ##
14829 _ASBOX
14830      ) | sed "s/^/$as_me: WARNING:     /" >&2
14831     ;;
14832 esac
14833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14836   echo $ECHO_N "(cached) $ECHO_C" >&6
14837 else
14838   eval "$as_ac_Header=\$ac_header_preproc"
14839 fi
14840 ac_res=`eval echo '${'$as_ac_Header'}'`
14841                { echo "$as_me:$LINENO: result: $ac_res" >&5
14842 echo "${ECHO_T}$ac_res" >&6; }
14843
14844 fi
14845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14846   cat >>confdefs.h <<_ACEOF
14847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14848 _ACEOF
14849
14850 fi
14851
14852 done
14853
14854
14855
14856
14857
14858 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14859 do
14860 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14862   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14865   echo $ECHO_N "(cached) $ECHO_C" >&6
14866 fi
14867 ac_res=`eval echo '${'$as_ac_Header'}'`
14868                { echo "$as_me:$LINENO: result: $ac_res" >&5
14869 echo "${ECHO_T}$ac_res" >&6; }
14870 else
14871   # Is the header compilable?
14872 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14873 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14874 cat >conftest.$ac_ext <<_ACEOF
14875 /* confdefs.h.  */
14876 _ACEOF
14877 cat confdefs.h >>conftest.$ac_ext
14878 cat >>conftest.$ac_ext <<_ACEOF
14879 /* end confdefs.h.  */
14880 $ac_includes_default
14881 #include <$ac_header>
14882 _ACEOF
14883 rm -f conftest.$ac_objext
14884 if { (ac_try="$ac_compile"
14885 case "(($ac_try" in
14886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14887   *) ac_try_echo=$ac_try;;
14888 esac
14889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14890   (eval "$ac_compile") 2>conftest.er1
14891   ac_status=$?
14892   grep -v '^ *+' conftest.er1 >conftest.err
14893   rm -f conftest.er1
14894   cat conftest.err >&5
14895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896   (exit $ac_status); } &&
14897          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14898   { (case "(($ac_try" in
14899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14900   *) ac_try_echo=$ac_try;;
14901 esac
14902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14903   (eval "$ac_try") 2>&5
14904   ac_status=$?
14905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906   (exit $ac_status); }; } &&
14907          { ac_try='test -s conftest.$ac_objext'
14908   { (case "(($ac_try" in
14909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14910   *) ac_try_echo=$ac_try;;
14911 esac
14912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14913   (eval "$ac_try") 2>&5
14914   ac_status=$?
14915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916   (exit $ac_status); }; }; then
14917   ac_header_compiler=yes
14918 else
14919   echo "$as_me: failed program was:" >&5
14920 sed 's/^/| /' conftest.$ac_ext >&5
14921
14922         ac_header_compiler=no
14923 fi
14924
14925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14926 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14927 echo "${ECHO_T}$ac_header_compiler" >&6; }
14928
14929 # Is the header present?
14930 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14931 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14932 cat >conftest.$ac_ext <<_ACEOF
14933 /* confdefs.h.  */
14934 _ACEOF
14935 cat confdefs.h >>conftest.$ac_ext
14936 cat >>conftest.$ac_ext <<_ACEOF
14937 /* end confdefs.h.  */
14938 #include <$ac_header>
14939 _ACEOF
14940 if { (ac_try="$ac_cpp conftest.$ac_ext"
14941 case "(($ac_try" in
14942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14943   *) ac_try_echo=$ac_try;;
14944 esac
14945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14946   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14947   ac_status=$?
14948   grep -v '^ *+' conftest.er1 >conftest.err
14949   rm -f conftest.er1
14950   cat conftest.err >&5
14951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952   (exit $ac_status); } >/dev/null; then
14953   if test -s conftest.err; then
14954     ac_cpp_err=$ac_c_preproc_warn_flag
14955     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14956   else
14957     ac_cpp_err=
14958   fi
14959 else
14960   ac_cpp_err=yes
14961 fi
14962 if test -z "$ac_cpp_err"; then
14963   ac_header_preproc=yes
14964 else
14965   echo "$as_me: failed program was:" >&5
14966 sed 's/^/| /' conftest.$ac_ext >&5
14967
14968   ac_header_preproc=no
14969 fi
14970
14971 rm -f conftest.err conftest.$ac_ext
14972 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14973 echo "${ECHO_T}$ac_header_preproc" >&6; }
14974
14975 # So?  What about this header?
14976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14977   yes:no: )
14978     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14979 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14980     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14981 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14982     ac_header_preproc=yes
14983     ;;
14984   no:yes:* )
14985     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14986 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14987     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14988 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14989     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14990 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14991     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14992 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14993     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14995     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14996 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14997     ( cat <<\_ASBOX
14998 ## ------------------------------ ##
14999 ## Report this to bugs@yourdomain ##
15000 ## ------------------------------ ##
15001 _ASBOX
15002      ) | sed "s/^/$as_me: WARNING:     /" >&2
15003     ;;
15004 esac
15005 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15008   echo $ECHO_N "(cached) $ECHO_C" >&6
15009 else
15010   eval "$as_ac_Header=\$ac_header_preproc"
15011 fi
15012 ac_res=`eval echo '${'$as_ac_Header'}'`
15013                { echo "$as_me:$LINENO: result: $ac_res" >&5
15014 echo "${ECHO_T}$ac_res" >&6; }
15015
15016 fi
15017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15018   cat >>confdefs.h <<_ACEOF
15019 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15020 _ACEOF
15021
15022 fi
15023
15024 done
15025
15026
15027 for ac_header in valgrind/valgrind.h
15028 do
15029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15031   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15034   echo $ECHO_N "(cached) $ECHO_C" >&6
15035 fi
15036 ac_res=`eval echo '${'$as_ac_Header'}'`
15037                { echo "$as_me:$LINENO: result: $ac_res" >&5
15038 echo "${ECHO_T}$ac_res" >&6; }
15039 else
15040   # Is the header compilable?
15041 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15043 cat >conftest.$ac_ext <<_ACEOF
15044 /* confdefs.h.  */
15045 _ACEOF
15046 cat confdefs.h >>conftest.$ac_ext
15047 cat >>conftest.$ac_ext <<_ACEOF
15048 /* end confdefs.h.  */
15049 $ac_includes_default
15050 #include <$ac_header>
15051 _ACEOF
15052 rm -f conftest.$ac_objext
15053 if { (ac_try="$ac_compile"
15054 case "(($ac_try" in
15055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15056   *) ac_try_echo=$ac_try;;
15057 esac
15058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15059   (eval "$ac_compile") 2>conftest.er1
15060   ac_status=$?
15061   grep -v '^ *+' conftest.er1 >conftest.err
15062   rm -f conftest.er1
15063   cat conftest.err >&5
15064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065   (exit $ac_status); } &&
15066          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15067   { (case "(($ac_try" in
15068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15069   *) ac_try_echo=$ac_try;;
15070 esac
15071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15072   (eval "$ac_try") 2>&5
15073   ac_status=$?
15074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075   (exit $ac_status); }; } &&
15076          { ac_try='test -s conftest.$ac_objext'
15077   { (case "(($ac_try" in
15078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15079   *) ac_try_echo=$ac_try;;
15080 esac
15081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15082   (eval "$ac_try") 2>&5
15083   ac_status=$?
15084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085   (exit $ac_status); }; }; then
15086   ac_header_compiler=yes
15087 else
15088   echo "$as_me: failed program was:" >&5
15089 sed 's/^/| /' conftest.$ac_ext >&5
15090
15091         ac_header_compiler=no
15092 fi
15093
15094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15095 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15096 echo "${ECHO_T}$ac_header_compiler" >&6; }
15097
15098 # Is the header present?
15099 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15101 cat >conftest.$ac_ext <<_ACEOF
15102 /* confdefs.h.  */
15103 _ACEOF
15104 cat confdefs.h >>conftest.$ac_ext
15105 cat >>conftest.$ac_ext <<_ACEOF
15106 /* end confdefs.h.  */
15107 #include <$ac_header>
15108 _ACEOF
15109 if { (ac_try="$ac_cpp conftest.$ac_ext"
15110 case "(($ac_try" in
15111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15112   *) ac_try_echo=$ac_try;;
15113 esac
15114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15115   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15116   ac_status=$?
15117   grep -v '^ *+' conftest.er1 >conftest.err
15118   rm -f conftest.er1
15119   cat conftest.err >&5
15120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121   (exit $ac_status); } >/dev/null; then
15122   if test -s conftest.err; then
15123     ac_cpp_err=$ac_c_preproc_warn_flag
15124     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15125   else
15126     ac_cpp_err=
15127   fi
15128 else
15129   ac_cpp_err=yes
15130 fi
15131 if test -z "$ac_cpp_err"; then
15132   ac_header_preproc=yes
15133 else
15134   echo "$as_me: failed program was:" >&5
15135 sed 's/^/| /' conftest.$ac_ext >&5
15136
15137   ac_header_preproc=no
15138 fi
15139
15140 rm -f conftest.err conftest.$ac_ext
15141 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15142 echo "${ECHO_T}$ac_header_preproc" >&6; }
15143
15144 # So?  What about this header?
15145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15146   yes:no: )
15147     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15149     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15150 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15151     ac_header_preproc=yes
15152     ;;
15153   no:yes:* )
15154     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15155 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15156     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15157 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15158     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15159 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15160     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15161 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15162     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15164     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15165 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15166     ( cat <<\_ASBOX
15167 ## ------------------------------ ##
15168 ## Report this to bugs@yourdomain ##
15169 ## ------------------------------ ##
15170 _ASBOX
15171      ) | sed "s/^/$as_me: WARNING:     /" >&2
15172     ;;
15173 esac
15174 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15177   echo $ECHO_N "(cached) $ECHO_C" >&6
15178 else
15179   eval "$as_ac_Header=\$ac_header_preproc"
15180 fi
15181 ac_res=`eval echo '${'$as_ac_Header'}'`
15182                { echo "$as_me:$LINENO: result: $ac_res" >&5
15183 echo "${ECHO_T}$ac_res" >&6; }
15184
15185 fi
15186 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15187   cat >>confdefs.h <<_ACEOF
15188 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15189 _ACEOF
15190
15191 fi
15192
15193 done
15194
15195
15196 for ac_header in fenv.h
15197 do
15198 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15200   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15203   echo $ECHO_N "(cached) $ECHO_C" >&6
15204 fi
15205 ac_res=`eval echo '${'$as_ac_Header'}'`
15206                { echo "$as_me:$LINENO: result: $ac_res" >&5
15207 echo "${ECHO_T}$ac_res" >&6; }
15208 else
15209   # Is the header compilable?
15210 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15212 cat >conftest.$ac_ext <<_ACEOF
15213 /* confdefs.h.  */
15214 _ACEOF
15215 cat confdefs.h >>conftest.$ac_ext
15216 cat >>conftest.$ac_ext <<_ACEOF
15217 /* end confdefs.h.  */
15218 $ac_includes_default
15219 #include <$ac_header>
15220 _ACEOF
15221 rm -f conftest.$ac_objext
15222 if { (ac_try="$ac_compile"
15223 case "(($ac_try" in
15224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15225   *) ac_try_echo=$ac_try;;
15226 esac
15227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15228   (eval "$ac_compile") 2>conftest.er1
15229   ac_status=$?
15230   grep -v '^ *+' conftest.er1 >conftest.err
15231   rm -f conftest.er1
15232   cat conftest.err >&5
15233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234   (exit $ac_status); } &&
15235          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15236   { (case "(($ac_try" in
15237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15238   *) ac_try_echo=$ac_try;;
15239 esac
15240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15241   (eval "$ac_try") 2>&5
15242   ac_status=$?
15243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244   (exit $ac_status); }; } &&
15245          { ac_try='test -s conftest.$ac_objext'
15246   { (case "(($ac_try" in
15247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15248   *) ac_try_echo=$ac_try;;
15249 esac
15250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15251   (eval "$ac_try") 2>&5
15252   ac_status=$?
15253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254   (exit $ac_status); }; }; then
15255   ac_header_compiler=yes
15256 else
15257   echo "$as_me: failed program was:" >&5
15258 sed 's/^/| /' conftest.$ac_ext >&5
15259
15260         ac_header_compiler=no
15261 fi
15262
15263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15264 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15265 echo "${ECHO_T}$ac_header_compiler" >&6; }
15266
15267 # Is the header present?
15268 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15269 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15270 cat >conftest.$ac_ext <<_ACEOF
15271 /* confdefs.h.  */
15272 _ACEOF
15273 cat confdefs.h >>conftest.$ac_ext
15274 cat >>conftest.$ac_ext <<_ACEOF
15275 /* end confdefs.h.  */
15276 #include <$ac_header>
15277 _ACEOF
15278 if { (ac_try="$ac_cpp conftest.$ac_ext"
15279 case "(($ac_try" in
15280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15281   *) ac_try_echo=$ac_try;;
15282 esac
15283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15284   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15285   ac_status=$?
15286   grep -v '^ *+' conftest.er1 >conftest.err
15287   rm -f conftest.er1
15288   cat conftest.err >&5
15289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290   (exit $ac_status); } >/dev/null; then
15291   if test -s conftest.err; then
15292     ac_cpp_err=$ac_c_preproc_warn_flag
15293     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15294   else
15295     ac_cpp_err=
15296   fi
15297 else
15298   ac_cpp_err=yes
15299 fi
15300 if test -z "$ac_cpp_err"; then
15301   ac_header_preproc=yes
15302 else
15303   echo "$as_me: failed program was:" >&5
15304 sed 's/^/| /' conftest.$ac_ext >&5
15305
15306   ac_header_preproc=no
15307 fi
15308
15309 rm -f conftest.err conftest.$ac_ext
15310 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15311 echo "${ECHO_T}$ac_header_preproc" >&6; }
15312
15313 # So?  What about this header?
15314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15315   yes:no: )
15316     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15317 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15318     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15319 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15320     ac_header_preproc=yes
15321     ;;
15322   no:yes:* )
15323     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15324 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15325     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15326 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15327     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15328 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15329     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15330 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15331     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15333     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15334 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15335     ( cat <<\_ASBOX
15336 ## ------------------------------ ##
15337 ## Report this to bugs@yourdomain ##
15338 ## ------------------------------ ##
15339 _ASBOX
15340      ) | sed "s/^/$as_me: WARNING:     /" >&2
15341     ;;
15342 esac
15343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15346   echo $ECHO_N "(cached) $ECHO_C" >&6
15347 else
15348   eval "$as_ac_Header=\$ac_header_preproc"
15349 fi
15350 ac_res=`eval echo '${'$as_ac_Header'}'`
15351                { echo "$as_me:$LINENO: result: $ac_res" >&5
15352 echo "${ECHO_T}$ac_res" >&6; }
15353
15354 fi
15355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15356   cat >>confdefs.h <<_ACEOF
15357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15358 _ACEOF
15359
15360 fi
15361
15362 done
15363
15364 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15365
15366 for ac_header in pthread.h
15367 do
15368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15370   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15373   echo $ECHO_N "(cached) $ECHO_C" >&6
15374 fi
15375 ac_res=`eval echo '${'$as_ac_Header'}'`
15376                { echo "$as_me:$LINENO: result: $ac_res" >&5
15377 echo "${ECHO_T}$ac_res" >&6; }
15378 else
15379   # Is the header compilable?
15380 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15382 cat >conftest.$ac_ext <<_ACEOF
15383 /* confdefs.h.  */
15384 _ACEOF
15385 cat confdefs.h >>conftest.$ac_ext
15386 cat >>conftest.$ac_ext <<_ACEOF
15387 /* end confdefs.h.  */
15388 $ac_includes_default
15389 #include <$ac_header>
15390 _ACEOF
15391 rm -f conftest.$ac_objext
15392 if { (ac_try="$ac_compile"
15393 case "(($ac_try" in
15394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15395   *) ac_try_echo=$ac_try;;
15396 esac
15397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15398   (eval "$ac_compile") 2>conftest.er1
15399   ac_status=$?
15400   grep -v '^ *+' conftest.er1 >conftest.err
15401   rm -f conftest.er1
15402   cat conftest.err >&5
15403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404   (exit $ac_status); } &&
15405          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15406   { (case "(($ac_try" in
15407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15408   *) ac_try_echo=$ac_try;;
15409 esac
15410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15411   (eval "$ac_try") 2>&5
15412   ac_status=$?
15413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414   (exit $ac_status); }; } &&
15415          { ac_try='test -s conftest.$ac_objext'
15416   { (case "(($ac_try" in
15417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15418   *) ac_try_echo=$ac_try;;
15419 esac
15420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15421   (eval "$ac_try") 2>&5
15422   ac_status=$?
15423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424   (exit $ac_status); }; }; then
15425   ac_header_compiler=yes
15426 else
15427   echo "$as_me: failed program was:" >&5
15428 sed 's/^/| /' conftest.$ac_ext >&5
15429
15430         ac_header_compiler=no
15431 fi
15432
15433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15434 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15435 echo "${ECHO_T}$ac_header_compiler" >&6; }
15436
15437 # Is the header present?
15438 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15439 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15440 cat >conftest.$ac_ext <<_ACEOF
15441 /* confdefs.h.  */
15442 _ACEOF
15443 cat confdefs.h >>conftest.$ac_ext
15444 cat >>conftest.$ac_ext <<_ACEOF
15445 /* end confdefs.h.  */
15446 #include <$ac_header>
15447 _ACEOF
15448 if { (ac_try="$ac_cpp conftest.$ac_ext"
15449 case "(($ac_try" in
15450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15451   *) ac_try_echo=$ac_try;;
15452 esac
15453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15454   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15455   ac_status=$?
15456   grep -v '^ *+' conftest.er1 >conftest.err
15457   rm -f conftest.er1
15458   cat conftest.err >&5
15459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460   (exit $ac_status); } >/dev/null; then
15461   if test -s conftest.err; then
15462     ac_cpp_err=$ac_c_preproc_warn_flag
15463     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15464   else
15465     ac_cpp_err=
15466   fi
15467 else
15468   ac_cpp_err=yes
15469 fi
15470 if test -z "$ac_cpp_err"; then
15471   ac_header_preproc=yes
15472 else
15473   echo "$as_me: failed program was:" >&5
15474 sed 's/^/| /' conftest.$ac_ext >&5
15475
15476   ac_header_preproc=no
15477 fi
15478
15479 rm -f conftest.err conftest.$ac_ext
15480 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15481 echo "${ECHO_T}$ac_header_preproc" >&6; }
15482
15483 # So?  What about this header?
15484 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15485   yes:no: )
15486     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15487 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15488     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15489 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15490     ac_header_preproc=yes
15491     ;;
15492   no:yes:* )
15493     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15494 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15495     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15496 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15497     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15498 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15499     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15500 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15501     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15502 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15503     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15504 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15505     ( cat <<\_ASBOX
15506 ## ------------------------------ ##
15507 ## Report this to bugs@yourdomain ##
15508 ## ------------------------------ ##
15509 _ASBOX
15510      ) | sed "s/^/$as_me: WARNING:     /" >&2
15511     ;;
15512 esac
15513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15516   echo $ECHO_N "(cached) $ECHO_C" >&6
15517 else
15518   eval "$as_ac_Header=\$ac_header_preproc"
15519 fi
15520 ac_res=`eval echo '${'$as_ac_Header'}'`
15521                { echo "$as_me:$LINENO: result: $ac_res" >&5
15522 echo "${ECHO_T}$ac_res" >&6; }
15523
15524 fi
15525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15526   cat >>confdefs.h <<_ACEOF
15527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15528 _ACEOF
15529  HAVE_PTHREAD=1
15530
15531 else
15532   HAVE_PTHREAD=0
15533
15534 fi
15535
15536 done
15537
15538 else
15539   HAVE_PTHREAD=0
15540
15541 fi
15542
15543 if test "$llvm_cv_enable_libffi" = "yes" ; then
15544
15545
15546 for ac_header in ffi.h ffi/ffi.h
15547 do
15548 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15550   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15553   echo $ECHO_N "(cached) $ECHO_C" >&6
15554 fi
15555 ac_res=`eval echo '${'$as_ac_Header'}'`
15556                { echo "$as_me:$LINENO: result: $ac_res" >&5
15557 echo "${ECHO_T}$ac_res" >&6; }
15558 else
15559   # Is the header compilable?
15560 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15561 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15562 cat >conftest.$ac_ext <<_ACEOF
15563 /* confdefs.h.  */
15564 _ACEOF
15565 cat confdefs.h >>conftest.$ac_ext
15566 cat >>conftest.$ac_ext <<_ACEOF
15567 /* end confdefs.h.  */
15568 $ac_includes_default
15569 #include <$ac_header>
15570 _ACEOF
15571 rm -f conftest.$ac_objext
15572 if { (ac_try="$ac_compile"
15573 case "(($ac_try" in
15574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15575   *) ac_try_echo=$ac_try;;
15576 esac
15577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15578   (eval "$ac_compile") 2>conftest.er1
15579   ac_status=$?
15580   grep -v '^ *+' conftest.er1 >conftest.err
15581   rm -f conftest.er1
15582   cat conftest.err >&5
15583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584   (exit $ac_status); } &&
15585          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15586   { (case "(($ac_try" in
15587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15588   *) ac_try_echo=$ac_try;;
15589 esac
15590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15591   (eval "$ac_try") 2>&5
15592   ac_status=$?
15593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594   (exit $ac_status); }; } &&
15595          { ac_try='test -s conftest.$ac_objext'
15596   { (case "(($ac_try" in
15597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15598   *) ac_try_echo=$ac_try;;
15599 esac
15600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15601   (eval "$ac_try") 2>&5
15602   ac_status=$?
15603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604   (exit $ac_status); }; }; then
15605   ac_header_compiler=yes
15606 else
15607   echo "$as_me: failed program was:" >&5
15608 sed 's/^/| /' conftest.$ac_ext >&5
15609
15610         ac_header_compiler=no
15611 fi
15612
15613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15614 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15615 echo "${ECHO_T}$ac_header_compiler" >&6; }
15616
15617 # Is the header present?
15618 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15619 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15620 cat >conftest.$ac_ext <<_ACEOF
15621 /* confdefs.h.  */
15622 _ACEOF
15623 cat confdefs.h >>conftest.$ac_ext
15624 cat >>conftest.$ac_ext <<_ACEOF
15625 /* end confdefs.h.  */
15626 #include <$ac_header>
15627 _ACEOF
15628 if { (ac_try="$ac_cpp conftest.$ac_ext"
15629 case "(($ac_try" in
15630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15631   *) ac_try_echo=$ac_try;;
15632 esac
15633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15634   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15635   ac_status=$?
15636   grep -v '^ *+' conftest.er1 >conftest.err
15637   rm -f conftest.er1
15638   cat conftest.err >&5
15639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640   (exit $ac_status); } >/dev/null; then
15641   if test -s conftest.err; then
15642     ac_cpp_err=$ac_c_preproc_warn_flag
15643     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15644   else
15645     ac_cpp_err=
15646   fi
15647 else
15648   ac_cpp_err=yes
15649 fi
15650 if test -z "$ac_cpp_err"; then
15651   ac_header_preproc=yes
15652 else
15653   echo "$as_me: failed program was:" >&5
15654 sed 's/^/| /' conftest.$ac_ext >&5
15655
15656   ac_header_preproc=no
15657 fi
15658
15659 rm -f conftest.err conftest.$ac_ext
15660 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15661 echo "${ECHO_T}$ac_header_preproc" >&6; }
15662
15663 # So?  What about this header?
15664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15665   yes:no: )
15666     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15667 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15668     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15669 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15670     ac_header_preproc=yes
15671     ;;
15672   no:yes:* )
15673     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15674 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15675     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15676 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15677     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15678 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15679     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15680 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15681     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15683     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15684 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15685     ( cat <<\_ASBOX
15686 ## ------------------------------ ##
15687 ## Report this to bugs@yourdomain ##
15688 ## ------------------------------ ##
15689 _ASBOX
15690      ) | sed "s/^/$as_me: WARNING:     /" >&2
15691     ;;
15692 esac
15693 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15696   echo $ECHO_N "(cached) $ECHO_C" >&6
15697 else
15698   eval "$as_ac_Header=\$ac_header_preproc"
15699 fi
15700 ac_res=`eval echo '${'$as_ac_Header'}'`
15701                { echo "$as_me:$LINENO: result: $ac_res" >&5
15702 echo "${ECHO_T}$ac_res" >&6; }
15703
15704 fi
15705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15706   cat >>confdefs.h <<_ACEOF
15707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15708 _ACEOF
15709
15710 fi
15711
15712 done
15713
15714 fi
15715
15716
15717 for ac_header in CrashReporterClient.h
15718 do
15719 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15721   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15724   echo $ECHO_N "(cached) $ECHO_C" >&6
15725 fi
15726 ac_res=`eval echo '${'$as_ac_Header'}'`
15727                { echo "$as_me:$LINENO: result: $ac_res" >&5
15728 echo "${ECHO_T}$ac_res" >&6; }
15729 else
15730   # Is the header compilable?
15731 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15733 cat >conftest.$ac_ext <<_ACEOF
15734 /* confdefs.h.  */
15735 _ACEOF
15736 cat confdefs.h >>conftest.$ac_ext
15737 cat >>conftest.$ac_ext <<_ACEOF
15738 /* end confdefs.h.  */
15739 $ac_includes_default
15740 #include <$ac_header>
15741 _ACEOF
15742 rm -f conftest.$ac_objext
15743 if { (ac_try="$ac_compile"
15744 case "(($ac_try" in
15745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15746   *) ac_try_echo=$ac_try;;
15747 esac
15748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15749   (eval "$ac_compile") 2>conftest.er1
15750   ac_status=$?
15751   grep -v '^ *+' conftest.er1 >conftest.err
15752   rm -f conftest.er1
15753   cat conftest.err >&5
15754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755   (exit $ac_status); } &&
15756          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15757   { (case "(($ac_try" in
15758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15759   *) ac_try_echo=$ac_try;;
15760 esac
15761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15762   (eval "$ac_try") 2>&5
15763   ac_status=$?
15764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765   (exit $ac_status); }; } &&
15766          { ac_try='test -s conftest.$ac_objext'
15767   { (case "(($ac_try" in
15768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15769   *) ac_try_echo=$ac_try;;
15770 esac
15771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15772   (eval "$ac_try") 2>&5
15773   ac_status=$?
15774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775   (exit $ac_status); }; }; then
15776   ac_header_compiler=yes
15777 else
15778   echo "$as_me: failed program was:" >&5
15779 sed 's/^/| /' conftest.$ac_ext >&5
15780
15781         ac_header_compiler=no
15782 fi
15783
15784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15785 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15786 echo "${ECHO_T}$ac_header_compiler" >&6; }
15787
15788 # Is the header present?
15789 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15790 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15791 cat >conftest.$ac_ext <<_ACEOF
15792 /* confdefs.h.  */
15793 _ACEOF
15794 cat confdefs.h >>conftest.$ac_ext
15795 cat >>conftest.$ac_ext <<_ACEOF
15796 /* end confdefs.h.  */
15797 #include <$ac_header>
15798 _ACEOF
15799 if { (ac_try="$ac_cpp conftest.$ac_ext"
15800 case "(($ac_try" in
15801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15802   *) ac_try_echo=$ac_try;;
15803 esac
15804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15805   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15806   ac_status=$?
15807   grep -v '^ *+' conftest.er1 >conftest.err
15808   rm -f conftest.er1
15809   cat conftest.err >&5
15810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811   (exit $ac_status); } >/dev/null; then
15812   if test -s conftest.err; then
15813     ac_cpp_err=$ac_c_preproc_warn_flag
15814     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15815   else
15816     ac_cpp_err=
15817   fi
15818 else
15819   ac_cpp_err=yes
15820 fi
15821 if test -z "$ac_cpp_err"; then
15822   ac_header_preproc=yes
15823 else
15824   echo "$as_me: failed program was:" >&5
15825 sed 's/^/| /' conftest.$ac_ext >&5
15826
15827   ac_header_preproc=no
15828 fi
15829
15830 rm -f conftest.err conftest.$ac_ext
15831 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15832 echo "${ECHO_T}$ac_header_preproc" >&6; }
15833
15834 # So?  What about this header?
15835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15836   yes:no: )
15837     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15839     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15841     ac_header_preproc=yes
15842     ;;
15843   no:yes:* )
15844     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15846     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15847 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15848     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15850     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15851 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15852     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15854     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15856     ( cat <<\_ASBOX
15857 ## ------------------------------ ##
15858 ## Report this to bugs@yourdomain ##
15859 ## ------------------------------ ##
15860 _ASBOX
15861      ) | sed "s/^/$as_me: WARNING:     /" >&2
15862     ;;
15863 esac
15864 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15867   echo $ECHO_N "(cached) $ECHO_C" >&6
15868 else
15869   eval "$as_ac_Header=\$ac_header_preproc"
15870 fi
15871 ac_res=`eval echo '${'$as_ac_Header'}'`
15872                { echo "$as_me:$LINENO: result: $ac_res" >&5
15873 echo "${ECHO_T}$ac_res" >&6; }
15874
15875 fi
15876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15877   cat >>confdefs.h <<_ACEOF
15878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15879 _ACEOF
15880
15881 fi
15882
15883 done
15884
15885
15886 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15887 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15888 cat >conftest.$ac_ext <<_ACEOF
15889 /* confdefs.h.  */
15890 _ACEOF
15891 cat confdefs.h >>conftest.$ac_ext
15892 cat >>conftest.$ac_ext <<_ACEOF
15893 /* end confdefs.h.  */
15894 extern const char *__crashreporter_info__;
15895       int main() {
15896         __crashreporter_info__ = "test";
15897         return 0;
15898       }
15899
15900 _ACEOF
15901 rm -f conftest.$ac_objext conftest$ac_exeext
15902 if { (ac_try="$ac_link"
15903 case "(($ac_try" in
15904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15905   *) ac_try_echo=$ac_try;;
15906 esac
15907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15908   (eval "$ac_link") 2>conftest.er1
15909   ac_status=$?
15910   grep -v '^ *+' conftest.er1 >conftest.err
15911   rm -f conftest.er1
15912   cat conftest.err >&5
15913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914   (exit $ac_status); } &&
15915          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15916   { (case "(($ac_try" in
15917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15918   *) ac_try_echo=$ac_try;;
15919 esac
15920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15921   (eval "$ac_try") 2>&5
15922   ac_status=$?
15923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924   (exit $ac_status); }; } &&
15925          { ac_try='test -s conftest$ac_exeext'
15926   { (case "(($ac_try" in
15927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15928   *) ac_try_echo=$ac_try;;
15929 esac
15930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15931   (eval "$ac_try") 2>&5
15932   ac_status=$?
15933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934   (exit $ac_status); }; }; then
15935   { echo "$as_me:$LINENO: result: yes" >&5
15936 echo "${ECHO_T}yes" >&6; }
15937
15938 cat >>confdefs.h <<\_ACEOF
15939 #define HAVE_CRASHREPORTER_INFO 1
15940 _ACEOF
15941
15942 else
15943   echo "$as_me: failed program was:" >&5
15944 sed 's/^/| /' conftest.$ac_ext >&5
15945
15946         { echo "$as_me:$LINENO: result: no" >&5
15947 echo "${ECHO_T}no" >&6; }
15948
15949 cat >>confdefs.h <<\_ACEOF
15950 #define HAVE_CRASHREPORTER_INFO 0
15951 _ACEOF
15952
15953 fi
15954
15955 rm -f core conftest.err conftest.$ac_objext \
15956       conftest$ac_exeext conftest.$ac_ext
15957
15958
15959
15960
15961   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
15962 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
15963 if test "${ac_cv_huge_val_sanity+set}" = set; then
15964   echo $ECHO_N "(cached) $ECHO_C" >&6
15965 else
15966
15967     ac_ext=cpp
15968 ac_cpp='$CXXCPP $CPPFLAGS'
15969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15972
15973     ac_save_CXXFLAGS=$CXXFLAGS
15974     CXXFLAGS="$CXXFLAGS -pedantic"
15975     if test "$cross_compiling" = yes; then
15976   ac_cv_huge_val_sanity=yes
15977 else
15978   cat >conftest.$ac_ext <<_ACEOF
15979 /* confdefs.h.  */
15980 _ACEOF
15981 cat confdefs.h >>conftest.$ac_ext
15982 cat >>conftest.$ac_ext <<_ACEOF
15983 /* end confdefs.h.  */
15984 #include <math.h>
15985 int
15986 main ()
15987 {
15988 double x = HUGE_VAL; return x != x;
15989   ;
15990   return 0;
15991 }
15992 _ACEOF
15993 rm -f conftest$ac_exeext
15994 if { (ac_try="$ac_link"
15995 case "(($ac_try" in
15996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15997   *) ac_try_echo=$ac_try;;
15998 esac
15999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16000   (eval "$ac_link") 2>&5
16001   ac_status=$?
16002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16004   { (case "(($ac_try" in
16005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16006   *) ac_try_echo=$ac_try;;
16007 esac
16008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16009   (eval "$ac_try") 2>&5
16010   ac_status=$?
16011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012   (exit $ac_status); }; }; then
16013   ac_cv_huge_val_sanity=yes
16014 else
16015   echo "$as_me: program exited with status $ac_status" >&5
16016 echo "$as_me: failed program was:" >&5
16017 sed 's/^/| /' conftest.$ac_ext >&5
16018
16019 ( exit $ac_status )
16020 ac_cv_huge_val_sanity=no
16021 fi
16022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16023 fi
16024
16025
16026     CXXFLAGS=$ac_save_CXXFLAGS
16027     ac_ext=c
16028 ac_cpp='$CPP $CPPFLAGS'
16029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16032
16033
16034 fi
16035 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16036 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16037   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16038
16039
16040 { echo "$as_me:$LINENO: checking for pid_t" >&5
16041 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16042 if test "${ac_cv_type_pid_t+set}" = set; then
16043   echo $ECHO_N "(cached) $ECHO_C" >&6
16044 else
16045   cat >conftest.$ac_ext <<_ACEOF
16046 /* confdefs.h.  */
16047 _ACEOF
16048 cat confdefs.h >>conftest.$ac_ext
16049 cat >>conftest.$ac_ext <<_ACEOF
16050 /* end confdefs.h.  */
16051 $ac_includes_default
16052 typedef pid_t ac__type_new_;
16053 int
16054 main ()
16055 {
16056 if ((ac__type_new_ *) 0)
16057   return 0;
16058 if (sizeof (ac__type_new_))
16059   return 0;
16060   ;
16061   return 0;
16062 }
16063 _ACEOF
16064 rm -f conftest.$ac_objext
16065 if { (ac_try="$ac_compile"
16066 case "(($ac_try" in
16067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16068   *) ac_try_echo=$ac_try;;
16069 esac
16070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16071   (eval "$ac_compile") 2>conftest.er1
16072   ac_status=$?
16073   grep -v '^ *+' conftest.er1 >conftest.err
16074   rm -f conftest.er1
16075   cat conftest.err >&5
16076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077   (exit $ac_status); } &&
16078          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16079   { (case "(($ac_try" in
16080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16081   *) ac_try_echo=$ac_try;;
16082 esac
16083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16084   (eval "$ac_try") 2>&5
16085   ac_status=$?
16086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087   (exit $ac_status); }; } &&
16088          { ac_try='test -s conftest.$ac_objext'
16089   { (case "(($ac_try" in
16090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16091   *) ac_try_echo=$ac_try;;
16092 esac
16093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16094   (eval "$ac_try") 2>&5
16095   ac_status=$?
16096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097   (exit $ac_status); }; }; then
16098   ac_cv_type_pid_t=yes
16099 else
16100   echo "$as_me: failed program was:" >&5
16101 sed 's/^/| /' conftest.$ac_ext >&5
16102
16103         ac_cv_type_pid_t=no
16104 fi
16105
16106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16107 fi
16108 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16109 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16110 if test $ac_cv_type_pid_t = yes; then
16111   :
16112 else
16113
16114 cat >>confdefs.h <<_ACEOF
16115 #define pid_t int
16116 _ACEOF
16117
16118 fi
16119
16120 { echo "$as_me:$LINENO: checking for size_t" >&5
16121 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16122 if test "${ac_cv_type_size_t+set}" = set; then
16123   echo $ECHO_N "(cached) $ECHO_C" >&6
16124 else
16125   cat >conftest.$ac_ext <<_ACEOF
16126 /* confdefs.h.  */
16127 _ACEOF
16128 cat confdefs.h >>conftest.$ac_ext
16129 cat >>conftest.$ac_ext <<_ACEOF
16130 /* end confdefs.h.  */
16131 $ac_includes_default
16132 typedef size_t ac__type_new_;
16133 int
16134 main ()
16135 {
16136 if ((ac__type_new_ *) 0)
16137   return 0;
16138 if (sizeof (ac__type_new_))
16139   return 0;
16140   ;
16141   return 0;
16142 }
16143 _ACEOF
16144 rm -f conftest.$ac_objext
16145 if { (ac_try="$ac_compile"
16146 case "(($ac_try" in
16147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16148   *) ac_try_echo=$ac_try;;
16149 esac
16150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16151   (eval "$ac_compile") 2>conftest.er1
16152   ac_status=$?
16153   grep -v '^ *+' conftest.er1 >conftest.err
16154   rm -f conftest.er1
16155   cat conftest.err >&5
16156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157   (exit $ac_status); } &&
16158          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16159   { (case "(($ac_try" in
16160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16161   *) ac_try_echo=$ac_try;;
16162 esac
16163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16164   (eval "$ac_try") 2>&5
16165   ac_status=$?
16166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167   (exit $ac_status); }; } &&
16168          { ac_try='test -s conftest.$ac_objext'
16169   { (case "(($ac_try" in
16170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16171   *) ac_try_echo=$ac_try;;
16172 esac
16173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16174   (eval "$ac_try") 2>&5
16175   ac_status=$?
16176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177   (exit $ac_status); }; }; then
16178   ac_cv_type_size_t=yes
16179 else
16180   echo "$as_me: failed program was:" >&5
16181 sed 's/^/| /' conftest.$ac_ext >&5
16182
16183         ac_cv_type_size_t=no
16184 fi
16185
16186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16187 fi
16188 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16189 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16190 if test $ac_cv_type_size_t = yes; then
16191   :
16192 else
16193
16194 cat >>confdefs.h <<_ACEOF
16195 #define size_t unsigned int
16196 _ACEOF
16197
16198 fi
16199
16200
16201 cat >>confdefs.h <<_ACEOF
16202 #define RETSIGTYPE void
16203 _ACEOF
16204
16205 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16206 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16207 if test "${ac_cv_struct_tm+set}" = set; then
16208   echo $ECHO_N "(cached) $ECHO_C" >&6
16209 else
16210   cat >conftest.$ac_ext <<_ACEOF
16211 /* confdefs.h.  */
16212 _ACEOF
16213 cat confdefs.h >>conftest.$ac_ext
16214 cat >>conftest.$ac_ext <<_ACEOF
16215 /* end confdefs.h.  */
16216 #include <sys/types.h>
16217 #include <time.h>
16218
16219 int
16220 main ()
16221 {
16222 struct tm *tp; tp->tm_sec;
16223   ;
16224   return 0;
16225 }
16226 _ACEOF
16227 rm -f conftest.$ac_objext
16228 if { (ac_try="$ac_compile"
16229 case "(($ac_try" in
16230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16231   *) ac_try_echo=$ac_try;;
16232 esac
16233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16234   (eval "$ac_compile") 2>conftest.er1
16235   ac_status=$?
16236   grep -v '^ *+' conftest.er1 >conftest.err
16237   rm -f conftest.er1
16238   cat conftest.err >&5
16239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240   (exit $ac_status); } &&
16241          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16242   { (case "(($ac_try" in
16243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16244   *) ac_try_echo=$ac_try;;
16245 esac
16246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16247   (eval "$ac_try") 2>&5
16248   ac_status=$?
16249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250   (exit $ac_status); }; } &&
16251          { ac_try='test -s conftest.$ac_objext'
16252   { (case "(($ac_try" in
16253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16254   *) ac_try_echo=$ac_try;;
16255 esac
16256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16257   (eval "$ac_try") 2>&5
16258   ac_status=$?
16259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260   (exit $ac_status); }; }; then
16261   ac_cv_struct_tm=time.h
16262 else
16263   echo "$as_me: failed program was:" >&5
16264 sed 's/^/| /' conftest.$ac_ext >&5
16265
16266         ac_cv_struct_tm=sys/time.h
16267 fi
16268
16269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16270 fi
16271 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16272 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16273 if test $ac_cv_struct_tm = sys/time.h; then
16274
16275 cat >>confdefs.h <<\_ACEOF
16276 #define TM_IN_SYS_TIME 1
16277 _ACEOF
16278
16279 fi
16280
16281 { echo "$as_me:$LINENO: checking for int64_t" >&5
16282 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16283 if test "${ac_cv_type_int64_t+set}" = set; then
16284   echo $ECHO_N "(cached) $ECHO_C" >&6
16285 else
16286   cat >conftest.$ac_ext <<_ACEOF
16287 /* confdefs.h.  */
16288 _ACEOF
16289 cat confdefs.h >>conftest.$ac_ext
16290 cat >>conftest.$ac_ext <<_ACEOF
16291 /* end confdefs.h.  */
16292 $ac_includes_default
16293 typedef int64_t ac__type_new_;
16294 int
16295 main ()
16296 {
16297 if ((ac__type_new_ *) 0)
16298   return 0;
16299 if (sizeof (ac__type_new_))
16300   return 0;
16301   ;
16302   return 0;
16303 }
16304 _ACEOF
16305 rm -f conftest.$ac_objext
16306 if { (ac_try="$ac_compile"
16307 case "(($ac_try" in
16308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16309   *) ac_try_echo=$ac_try;;
16310 esac
16311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16312   (eval "$ac_compile") 2>conftest.er1
16313   ac_status=$?
16314   grep -v '^ *+' conftest.er1 >conftest.err
16315   rm -f conftest.er1
16316   cat conftest.err >&5
16317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318   (exit $ac_status); } &&
16319          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16320   { (case "(($ac_try" in
16321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16322   *) ac_try_echo=$ac_try;;
16323 esac
16324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16325   (eval "$ac_try") 2>&5
16326   ac_status=$?
16327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328   (exit $ac_status); }; } &&
16329          { ac_try='test -s conftest.$ac_objext'
16330   { (case "(($ac_try" in
16331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16332   *) ac_try_echo=$ac_try;;
16333 esac
16334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16335   (eval "$ac_try") 2>&5
16336   ac_status=$?
16337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338   (exit $ac_status); }; }; then
16339   ac_cv_type_int64_t=yes
16340 else
16341   echo "$as_me: failed program was:" >&5
16342 sed 's/^/| /' conftest.$ac_ext >&5
16343
16344         ac_cv_type_int64_t=no
16345 fi
16346
16347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16348 fi
16349 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16350 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16351 if test $ac_cv_type_int64_t = yes; then
16352
16353 cat >>confdefs.h <<_ACEOF
16354 #define HAVE_INT64_T 1
16355 _ACEOF
16356
16357
16358 else
16359   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16360 echo "$as_me: error: Type int64_t required but not found" >&2;}
16361    { (exit 1); exit 1; }; }
16362 fi
16363
16364 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16365 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16366 if test "${ac_cv_type_uint64_t+set}" = set; then
16367   echo $ECHO_N "(cached) $ECHO_C" >&6
16368 else
16369   cat >conftest.$ac_ext <<_ACEOF
16370 /* confdefs.h.  */
16371 _ACEOF
16372 cat confdefs.h >>conftest.$ac_ext
16373 cat >>conftest.$ac_ext <<_ACEOF
16374 /* end confdefs.h.  */
16375 $ac_includes_default
16376 typedef uint64_t ac__type_new_;
16377 int
16378 main ()
16379 {
16380 if ((ac__type_new_ *) 0)
16381   return 0;
16382 if (sizeof (ac__type_new_))
16383   return 0;
16384   ;
16385   return 0;
16386 }
16387 _ACEOF
16388 rm -f conftest.$ac_objext
16389 if { (ac_try="$ac_compile"
16390 case "(($ac_try" in
16391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16392   *) ac_try_echo=$ac_try;;
16393 esac
16394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16395   (eval "$ac_compile") 2>conftest.er1
16396   ac_status=$?
16397   grep -v '^ *+' conftest.er1 >conftest.err
16398   rm -f conftest.er1
16399   cat conftest.err >&5
16400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401   (exit $ac_status); } &&
16402          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16403   { (case "(($ac_try" in
16404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16405   *) ac_try_echo=$ac_try;;
16406 esac
16407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16408   (eval "$ac_try") 2>&5
16409   ac_status=$?
16410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411   (exit $ac_status); }; } &&
16412          { ac_try='test -s conftest.$ac_objext'
16413   { (case "(($ac_try" in
16414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16415   *) ac_try_echo=$ac_try;;
16416 esac
16417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16418   (eval "$ac_try") 2>&5
16419   ac_status=$?
16420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421   (exit $ac_status); }; }; then
16422   ac_cv_type_uint64_t=yes
16423 else
16424   echo "$as_me: failed program was:" >&5
16425 sed 's/^/| /' conftest.$ac_ext >&5
16426
16427         ac_cv_type_uint64_t=no
16428 fi
16429
16430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16431 fi
16432 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16433 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16434 if test $ac_cv_type_uint64_t = yes; then
16435
16436 cat >>confdefs.h <<_ACEOF
16437 #define HAVE_UINT64_T 1
16438 _ACEOF
16439
16440
16441 else
16442   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16443 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16444 if test "${ac_cv_type_u_int64_t+set}" = set; then
16445   echo $ECHO_N "(cached) $ECHO_C" >&6
16446 else
16447   cat >conftest.$ac_ext <<_ACEOF
16448 /* confdefs.h.  */
16449 _ACEOF
16450 cat confdefs.h >>conftest.$ac_ext
16451 cat >>conftest.$ac_ext <<_ACEOF
16452 /* end confdefs.h.  */
16453 $ac_includes_default
16454 typedef u_int64_t ac__type_new_;
16455 int
16456 main ()
16457 {
16458 if ((ac__type_new_ *) 0)
16459   return 0;
16460 if (sizeof (ac__type_new_))
16461   return 0;
16462   ;
16463   return 0;
16464 }
16465 _ACEOF
16466 rm -f conftest.$ac_objext
16467 if { (ac_try="$ac_compile"
16468 case "(($ac_try" in
16469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16470   *) ac_try_echo=$ac_try;;
16471 esac
16472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16473   (eval "$ac_compile") 2>conftest.er1
16474   ac_status=$?
16475   grep -v '^ *+' conftest.er1 >conftest.err
16476   rm -f conftest.er1
16477   cat conftest.err >&5
16478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479   (exit $ac_status); } &&
16480          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16481   { (case "(($ac_try" in
16482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16483   *) ac_try_echo=$ac_try;;
16484 esac
16485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16486   (eval "$ac_try") 2>&5
16487   ac_status=$?
16488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489   (exit $ac_status); }; } &&
16490          { ac_try='test -s conftest.$ac_objext'
16491   { (case "(($ac_try" in
16492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16493   *) ac_try_echo=$ac_try;;
16494 esac
16495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16496   (eval "$ac_try") 2>&5
16497   ac_status=$?
16498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499   (exit $ac_status); }; }; then
16500   ac_cv_type_u_int64_t=yes
16501 else
16502   echo "$as_me: failed program was:" >&5
16503 sed 's/^/| /' conftest.$ac_ext >&5
16504
16505         ac_cv_type_u_int64_t=no
16506 fi
16507
16508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16509 fi
16510 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16511 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16512 if test $ac_cv_type_u_int64_t = yes; then
16513
16514 cat >>confdefs.h <<_ACEOF
16515 #define HAVE_U_INT64_T 1
16516 _ACEOF
16517
16518
16519 else
16520   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16521 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16522    { (exit 1); exit 1; }; }
16523 fi
16524
16525 fi
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16537 do
16538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16539 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16541 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16542   echo $ECHO_N "(cached) $ECHO_C" >&6
16543 else
16544   cat >conftest.$ac_ext <<_ACEOF
16545 /* confdefs.h.  */
16546 _ACEOF
16547 cat confdefs.h >>conftest.$ac_ext
16548 cat >>conftest.$ac_ext <<_ACEOF
16549 /* end confdefs.h.  */
16550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16551    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16552 #define $ac_func innocuous_$ac_func
16553
16554 /* System header to define __stub macros and hopefully few prototypes,
16555     which can conflict with char $ac_func (); below.
16556     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16557     <limits.h> exists even on freestanding compilers.  */
16558
16559 #ifdef __STDC__
16560 # include <limits.h>
16561 #else
16562 # include <assert.h>
16563 #endif
16564
16565 #undef $ac_func
16566
16567 /* Override any GCC internal prototype to avoid an error.
16568    Use char because int might match the return type of a GCC
16569    builtin and then its argument prototype would still apply.  */
16570 #ifdef __cplusplus
16571 extern "C"
16572 #endif
16573 char $ac_func ();
16574 /* The GNU C library defines this for functions which it implements
16575     to always fail with ENOSYS.  Some functions are actually named
16576     something starting with __ and the normal name is an alias.  */
16577 #if defined __stub_$ac_func || defined __stub___$ac_func
16578 choke me
16579 #endif
16580
16581 int
16582 main ()
16583 {
16584 return $ac_func ();
16585   ;
16586   return 0;
16587 }
16588 _ACEOF
16589 rm -f conftest.$ac_objext conftest$ac_exeext
16590 if { (ac_try="$ac_link"
16591 case "(($ac_try" in
16592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16593   *) ac_try_echo=$ac_try;;
16594 esac
16595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16596   (eval "$ac_link") 2>conftest.er1
16597   ac_status=$?
16598   grep -v '^ *+' conftest.er1 >conftest.err
16599   rm -f conftest.er1
16600   cat conftest.err >&5
16601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602   (exit $ac_status); } &&
16603          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16604   { (case "(($ac_try" in
16605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16606   *) ac_try_echo=$ac_try;;
16607 esac
16608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16609   (eval "$ac_try") 2>&5
16610   ac_status=$?
16611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612   (exit $ac_status); }; } &&
16613          { ac_try='test -s conftest$ac_exeext'
16614   { (case "(($ac_try" in
16615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16616   *) ac_try_echo=$ac_try;;
16617 esac
16618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16619   (eval "$ac_try") 2>&5
16620   ac_status=$?
16621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622   (exit $ac_status); }; }; then
16623   eval "$as_ac_var=yes"
16624 else
16625   echo "$as_me: failed program was:" >&5
16626 sed 's/^/| /' conftest.$ac_ext >&5
16627
16628         eval "$as_ac_var=no"
16629 fi
16630
16631 rm -f core conftest.err conftest.$ac_objext \
16632       conftest$ac_exeext conftest.$ac_ext
16633 fi
16634 ac_res=`eval echo '${'$as_ac_var'}'`
16635                { echo "$as_me:$LINENO: result: $ac_res" >&5
16636 echo "${ECHO_T}$ac_res" >&6; }
16637 if test `eval echo '${'$as_ac_var'}'` = yes; then
16638   cat >>confdefs.h <<_ACEOF
16639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16640 _ACEOF
16641
16642 fi
16643 done
16644
16645
16646
16647
16648
16649 for ac_func in powf fmodf strtof round
16650 do
16651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16652 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16654 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16655   echo $ECHO_N "(cached) $ECHO_C" >&6
16656 else
16657   cat >conftest.$ac_ext <<_ACEOF
16658 /* confdefs.h.  */
16659 _ACEOF
16660 cat confdefs.h >>conftest.$ac_ext
16661 cat >>conftest.$ac_ext <<_ACEOF
16662 /* end confdefs.h.  */
16663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16664    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16665 #define $ac_func innocuous_$ac_func
16666
16667 /* System header to define __stub macros and hopefully few prototypes,
16668     which can conflict with char $ac_func (); below.
16669     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16670     <limits.h> exists even on freestanding compilers.  */
16671
16672 #ifdef __STDC__
16673 # include <limits.h>
16674 #else
16675 # include <assert.h>
16676 #endif
16677
16678 #undef $ac_func
16679
16680 /* Override any GCC internal prototype to avoid an error.
16681    Use char because int might match the return type of a GCC
16682    builtin and then its argument prototype would still apply.  */
16683 #ifdef __cplusplus
16684 extern "C"
16685 #endif
16686 char $ac_func ();
16687 /* The GNU C library defines this for functions which it implements
16688     to always fail with ENOSYS.  Some functions are actually named
16689     something starting with __ and the normal name is an alias.  */
16690 #if defined __stub_$ac_func || defined __stub___$ac_func
16691 choke me
16692 #endif
16693
16694 int
16695 main ()
16696 {
16697 return $ac_func ();
16698   ;
16699   return 0;
16700 }
16701 _ACEOF
16702 rm -f conftest.$ac_objext conftest$ac_exeext
16703 if { (ac_try="$ac_link"
16704 case "(($ac_try" in
16705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706   *) ac_try_echo=$ac_try;;
16707 esac
16708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709   (eval "$ac_link") 2>conftest.er1
16710   ac_status=$?
16711   grep -v '^ *+' conftest.er1 >conftest.err
16712   rm -f conftest.er1
16713   cat conftest.err >&5
16714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715   (exit $ac_status); } &&
16716          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16717   { (case "(($ac_try" in
16718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16719   *) ac_try_echo=$ac_try;;
16720 esac
16721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16722   (eval "$ac_try") 2>&5
16723   ac_status=$?
16724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725   (exit $ac_status); }; } &&
16726          { ac_try='test -s conftest$ac_exeext'
16727   { (case "(($ac_try" in
16728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16729   *) ac_try_echo=$ac_try;;
16730 esac
16731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16732   (eval "$ac_try") 2>&5
16733   ac_status=$?
16734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735   (exit $ac_status); }; }; then
16736   eval "$as_ac_var=yes"
16737 else
16738   echo "$as_me: failed program was:" >&5
16739 sed 's/^/| /' conftest.$ac_ext >&5
16740
16741         eval "$as_ac_var=no"
16742 fi
16743
16744 rm -f core conftest.err conftest.$ac_objext \
16745       conftest$ac_exeext conftest.$ac_ext
16746 fi
16747 ac_res=`eval echo '${'$as_ac_var'}'`
16748                { echo "$as_me:$LINENO: result: $ac_res" >&5
16749 echo "${ECHO_T}$ac_res" >&6; }
16750 if test `eval echo '${'$as_ac_var'}'` = yes; then
16751   cat >>confdefs.h <<_ACEOF
16752 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16753 _ACEOF
16754
16755 fi
16756 done
16757
16758
16759
16760
16761
16762
16763 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16764 do
16765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16766 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16768 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16769   echo $ECHO_N "(cached) $ECHO_C" >&6
16770 else
16771   cat >conftest.$ac_ext <<_ACEOF
16772 /* confdefs.h.  */
16773 _ACEOF
16774 cat confdefs.h >>conftest.$ac_ext
16775 cat >>conftest.$ac_ext <<_ACEOF
16776 /* end confdefs.h.  */
16777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16778    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16779 #define $ac_func innocuous_$ac_func
16780
16781 /* System header to define __stub macros and hopefully few prototypes,
16782     which can conflict with char $ac_func (); below.
16783     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16784     <limits.h> exists even on freestanding compilers.  */
16785
16786 #ifdef __STDC__
16787 # include <limits.h>
16788 #else
16789 # include <assert.h>
16790 #endif
16791
16792 #undef $ac_func
16793
16794 /* Override any GCC internal prototype to avoid an error.
16795    Use char because int might match the return type of a GCC
16796    builtin and then its argument prototype would still apply.  */
16797 #ifdef __cplusplus
16798 extern "C"
16799 #endif
16800 char $ac_func ();
16801 /* The GNU C library defines this for functions which it implements
16802     to always fail with ENOSYS.  Some functions are actually named
16803     something starting with __ and the normal name is an alias.  */
16804 #if defined __stub_$ac_func || defined __stub___$ac_func
16805 choke me
16806 #endif
16807
16808 int
16809 main ()
16810 {
16811 return $ac_func ();
16812   ;
16813   return 0;
16814 }
16815 _ACEOF
16816 rm -f conftest.$ac_objext conftest$ac_exeext
16817 if { (ac_try="$ac_link"
16818 case "(($ac_try" in
16819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16820   *) ac_try_echo=$ac_try;;
16821 esac
16822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16823   (eval "$ac_link") 2>conftest.er1
16824   ac_status=$?
16825   grep -v '^ *+' conftest.er1 >conftest.err
16826   rm -f conftest.er1
16827   cat conftest.err >&5
16828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829   (exit $ac_status); } &&
16830          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16831   { (case "(($ac_try" in
16832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16833   *) ac_try_echo=$ac_try;;
16834 esac
16835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16836   (eval "$ac_try") 2>&5
16837   ac_status=$?
16838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839   (exit $ac_status); }; } &&
16840          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16850   eval "$as_ac_var=yes"
16851 else
16852   echo "$as_me: failed program was:" >&5
16853 sed 's/^/| /' conftest.$ac_ext >&5
16854
16855         eval "$as_ac_var=no"
16856 fi
16857
16858 rm -f core conftest.err conftest.$ac_objext \
16859       conftest$ac_exeext conftest.$ac_ext
16860 fi
16861 ac_res=`eval echo '${'$as_ac_var'}'`
16862                { echo "$as_me:$LINENO: result: $ac_res" >&5
16863 echo "${ECHO_T}$ac_res" >&6; }
16864 if test `eval echo '${'$as_ac_var'}'` = yes; then
16865   cat >>confdefs.h <<_ACEOF
16866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16867 _ACEOF
16868
16869 fi
16870 done
16871
16872
16873
16874
16875 for ac_func in isatty mkdtemp mkstemp
16876 do
16877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16878 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16880 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16881   echo $ECHO_N "(cached) $ECHO_C" >&6
16882 else
16883   cat >conftest.$ac_ext <<_ACEOF
16884 /* confdefs.h.  */
16885 _ACEOF
16886 cat confdefs.h >>conftest.$ac_ext
16887 cat >>conftest.$ac_ext <<_ACEOF
16888 /* end confdefs.h.  */
16889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16890    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16891 #define $ac_func innocuous_$ac_func
16892
16893 /* System header to define __stub macros and hopefully few prototypes,
16894     which can conflict with char $ac_func (); below.
16895     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16896     <limits.h> exists even on freestanding compilers.  */
16897
16898 #ifdef __STDC__
16899 # include <limits.h>
16900 #else
16901 # include <assert.h>
16902 #endif
16903
16904 #undef $ac_func
16905
16906 /* Override any GCC internal prototype to avoid an error.
16907    Use char because int might match the return type of a GCC
16908    builtin and then its argument prototype would still apply.  */
16909 #ifdef __cplusplus
16910 extern "C"
16911 #endif
16912 char $ac_func ();
16913 /* The GNU C library defines this for functions which it implements
16914     to always fail with ENOSYS.  Some functions are actually named
16915     something starting with __ and the normal name is an alias.  */
16916 #if defined __stub_$ac_func || defined __stub___$ac_func
16917 choke me
16918 #endif
16919
16920 int
16921 main ()
16922 {
16923 return $ac_func ();
16924   ;
16925   return 0;
16926 }
16927 _ACEOF
16928 rm -f conftest.$ac_objext conftest$ac_exeext
16929 if { (ac_try="$ac_link"
16930 case "(($ac_try" in
16931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16932   *) ac_try_echo=$ac_try;;
16933 esac
16934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16935   (eval "$ac_link") 2>conftest.er1
16936   ac_status=$?
16937   grep -v '^ *+' conftest.er1 >conftest.err
16938   rm -f conftest.er1
16939   cat conftest.err >&5
16940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941   (exit $ac_status); } &&
16942          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16943   { (case "(($ac_try" in
16944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16945   *) ac_try_echo=$ac_try;;
16946 esac
16947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16948   (eval "$ac_try") 2>&5
16949   ac_status=$?
16950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951   (exit $ac_status); }; } &&
16952          { ac_try='test -s conftest$ac_exeext'
16953   { (case "(($ac_try" in
16954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16955   *) ac_try_echo=$ac_try;;
16956 esac
16957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16958   (eval "$ac_try") 2>&5
16959   ac_status=$?
16960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961   (exit $ac_status); }; }; then
16962   eval "$as_ac_var=yes"
16963 else
16964   echo "$as_me: failed program was:" >&5
16965 sed 's/^/| /' conftest.$ac_ext >&5
16966
16967         eval "$as_ac_var=no"
16968 fi
16969
16970 rm -f core conftest.err conftest.$ac_objext \
16971       conftest$ac_exeext conftest.$ac_ext
16972 fi
16973 ac_res=`eval echo '${'$as_ac_var'}'`
16974                { echo "$as_me:$LINENO: result: $ac_res" >&5
16975 echo "${ECHO_T}$ac_res" >&6; }
16976 if test `eval echo '${'$as_ac_var'}'` = yes; then
16977   cat >>confdefs.h <<_ACEOF
16978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16979 _ACEOF
16980
16981 fi
16982 done
16983
16984
16985
16986
16987
16988
16989
16990 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
16991 do
16992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16993 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16995 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16996   echo $ECHO_N "(cached) $ECHO_C" >&6
16997 else
16998   cat >conftest.$ac_ext <<_ACEOF
16999 /* confdefs.h.  */
17000 _ACEOF
17001 cat confdefs.h >>conftest.$ac_ext
17002 cat >>conftest.$ac_ext <<_ACEOF
17003 /* end confdefs.h.  */
17004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17005    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17006 #define $ac_func innocuous_$ac_func
17007
17008 /* System header to define __stub macros and hopefully few prototypes,
17009     which can conflict with char $ac_func (); below.
17010     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17011     <limits.h> exists even on freestanding compilers.  */
17012
17013 #ifdef __STDC__
17014 # include <limits.h>
17015 #else
17016 # include <assert.h>
17017 #endif
17018
17019 #undef $ac_func
17020
17021 /* Override any GCC internal prototype to avoid an error.
17022    Use char because int might match the return type of a GCC
17023    builtin and then its argument prototype would still apply.  */
17024 #ifdef __cplusplus
17025 extern "C"
17026 #endif
17027 char $ac_func ();
17028 /* The GNU C library defines this for functions which it implements
17029     to always fail with ENOSYS.  Some functions are actually named
17030     something starting with __ and the normal name is an alias.  */
17031 #if defined __stub_$ac_func || defined __stub___$ac_func
17032 choke me
17033 #endif
17034
17035 int
17036 main ()
17037 {
17038 return $ac_func ();
17039   ;
17040   return 0;
17041 }
17042 _ACEOF
17043 rm -f conftest.$ac_objext conftest$ac_exeext
17044 if { (ac_try="$ac_link"
17045 case "(($ac_try" in
17046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17047   *) ac_try_echo=$ac_try;;
17048 esac
17049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17050   (eval "$ac_link") 2>conftest.er1
17051   ac_status=$?
17052   grep -v '^ *+' conftest.er1 >conftest.err
17053   rm -f conftest.er1
17054   cat conftest.err >&5
17055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056   (exit $ac_status); } &&
17057          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17058   { (case "(($ac_try" in
17059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17060   *) ac_try_echo=$ac_try;;
17061 esac
17062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17063   (eval "$ac_try") 2>&5
17064   ac_status=$?
17065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066   (exit $ac_status); }; } &&
17067          { ac_try='test -s conftest$ac_exeext'
17068   { (case "(($ac_try" in
17069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17070   *) ac_try_echo=$ac_try;;
17071 esac
17072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17073   (eval "$ac_try") 2>&5
17074   ac_status=$?
17075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076   (exit $ac_status); }; }; then
17077   eval "$as_ac_var=yes"
17078 else
17079   echo "$as_me: failed program was:" >&5
17080 sed 's/^/| /' conftest.$ac_ext >&5
17081
17082         eval "$as_ac_var=no"
17083 fi
17084
17085 rm -f core conftest.err conftest.$ac_objext \
17086       conftest$ac_exeext conftest.$ac_ext
17087 fi
17088 ac_res=`eval echo '${'$as_ac_var'}'`
17089                { echo "$as_me:$LINENO: result: $ac_res" >&5
17090 echo "${ECHO_T}$ac_res" >&6; }
17091 if test `eval echo '${'$as_ac_var'}'` = yes; then
17092   cat >>confdefs.h <<_ACEOF
17093 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17094 _ACEOF
17095
17096 fi
17097 done
17098
17099
17100
17101
17102 for ac_func in strerror strerror_r setenv
17103 do
17104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17105 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17107 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17108   echo $ECHO_N "(cached) $ECHO_C" >&6
17109 else
17110   cat >conftest.$ac_ext <<_ACEOF
17111 /* confdefs.h.  */
17112 _ACEOF
17113 cat confdefs.h >>conftest.$ac_ext
17114 cat >>conftest.$ac_ext <<_ACEOF
17115 /* end confdefs.h.  */
17116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17117    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17118 #define $ac_func innocuous_$ac_func
17119
17120 /* System header to define __stub macros and hopefully few prototypes,
17121     which can conflict with char $ac_func (); below.
17122     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17123     <limits.h> exists even on freestanding compilers.  */
17124
17125 #ifdef __STDC__
17126 # include <limits.h>
17127 #else
17128 # include <assert.h>
17129 #endif
17130
17131 #undef $ac_func
17132
17133 /* Override any GCC internal prototype to avoid an error.
17134    Use char because int might match the return type of a GCC
17135    builtin and then its argument prototype would still apply.  */
17136 #ifdef __cplusplus
17137 extern "C"
17138 #endif
17139 char $ac_func ();
17140 /* The GNU C library defines this for functions which it implements
17141     to always fail with ENOSYS.  Some functions are actually named
17142     something starting with __ and the normal name is an alias.  */
17143 #if defined __stub_$ac_func || defined __stub___$ac_func
17144 choke me
17145 #endif
17146
17147 int
17148 main ()
17149 {
17150 return $ac_func ();
17151   ;
17152   return 0;
17153 }
17154 _ACEOF
17155 rm -f conftest.$ac_objext conftest$ac_exeext
17156 if { (ac_try="$ac_link"
17157 case "(($ac_try" in
17158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17159   *) ac_try_echo=$ac_try;;
17160 esac
17161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17162   (eval "$ac_link") 2>conftest.er1
17163   ac_status=$?
17164   grep -v '^ *+' conftest.er1 >conftest.err
17165   rm -f conftest.er1
17166   cat conftest.err >&5
17167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168   (exit $ac_status); } &&
17169          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17170   { (case "(($ac_try" in
17171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17172   *) ac_try_echo=$ac_try;;
17173 esac
17174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17175   (eval "$ac_try") 2>&5
17176   ac_status=$?
17177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178   (exit $ac_status); }; } &&
17179          { ac_try='test -s conftest$ac_exeext'
17180   { (case "(($ac_try" in
17181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17182   *) ac_try_echo=$ac_try;;
17183 esac
17184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17185   (eval "$ac_try") 2>&5
17186   ac_status=$?
17187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188   (exit $ac_status); }; }; then
17189   eval "$as_ac_var=yes"
17190 else
17191   echo "$as_me: failed program was:" >&5
17192 sed 's/^/| /' conftest.$ac_ext >&5
17193
17194         eval "$as_ac_var=no"
17195 fi
17196
17197 rm -f core conftest.err conftest.$ac_objext \
17198       conftest$ac_exeext conftest.$ac_ext
17199 fi
17200 ac_res=`eval echo '${'$as_ac_var'}'`
17201                { echo "$as_me:$LINENO: result: $ac_res" >&5
17202 echo "${ECHO_T}$ac_res" >&6; }
17203 if test `eval echo '${'$as_ac_var'}'` = yes; then
17204   cat >>confdefs.h <<_ACEOF
17205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17206 _ACEOF
17207
17208 fi
17209 done
17210
17211
17212
17213
17214
17215 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17216 do
17217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17218 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17221   echo $ECHO_N "(cached) $ECHO_C" >&6
17222 else
17223   cat >conftest.$ac_ext <<_ACEOF
17224 /* confdefs.h.  */
17225 _ACEOF
17226 cat confdefs.h >>conftest.$ac_ext
17227 cat >>conftest.$ac_ext <<_ACEOF
17228 /* end confdefs.h.  */
17229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17230    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17231 #define $ac_func innocuous_$ac_func
17232
17233 /* System header to define __stub macros and hopefully few prototypes,
17234     which can conflict with char $ac_func (); below.
17235     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17236     <limits.h> exists even on freestanding compilers.  */
17237
17238 #ifdef __STDC__
17239 # include <limits.h>
17240 #else
17241 # include <assert.h>
17242 #endif
17243
17244 #undef $ac_func
17245
17246 /* Override any GCC internal prototype to avoid an error.
17247    Use char because int might match the return type of a GCC
17248    builtin and then its argument prototype would still apply.  */
17249 #ifdef __cplusplus
17250 extern "C"
17251 #endif
17252 char $ac_func ();
17253 /* The GNU C library defines this for functions which it implements
17254     to always fail with ENOSYS.  Some functions are actually named
17255     something starting with __ and the normal name is an alias.  */
17256 #if defined __stub_$ac_func || defined __stub___$ac_func
17257 choke me
17258 #endif
17259
17260 int
17261 main ()
17262 {
17263 return $ac_func ();
17264   ;
17265   return 0;
17266 }
17267 _ACEOF
17268 rm -f conftest.$ac_objext conftest$ac_exeext
17269 if { (ac_try="$ac_link"
17270 case "(($ac_try" in
17271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17272   *) ac_try_echo=$ac_try;;
17273 esac
17274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17275   (eval "$ac_link") 2>conftest.er1
17276   ac_status=$?
17277   grep -v '^ *+' conftest.er1 >conftest.err
17278   rm -f conftest.er1
17279   cat conftest.err >&5
17280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281   (exit $ac_status); } &&
17282          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17283   { (case "(($ac_try" in
17284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17285   *) ac_try_echo=$ac_try;;
17286 esac
17287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17288   (eval "$ac_try") 2>&5
17289   ac_status=$?
17290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291   (exit $ac_status); }; } &&
17292          { ac_try='test -s conftest$ac_exeext'
17293   { (case "(($ac_try" in
17294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17295   *) ac_try_echo=$ac_try;;
17296 esac
17297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17298   (eval "$ac_try") 2>&5
17299   ac_status=$?
17300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301   (exit $ac_status); }; }; then
17302   eval "$as_ac_var=yes"
17303 else
17304   echo "$as_me: failed program was:" >&5
17305 sed 's/^/| /' conftest.$ac_ext >&5
17306
17307         eval "$as_ac_var=no"
17308 fi
17309
17310 rm -f core conftest.err conftest.$ac_objext \
17311       conftest$ac_exeext conftest.$ac_ext
17312 fi
17313 ac_res=`eval echo '${'$as_ac_var'}'`
17314                { echo "$as_me:$LINENO: result: $ac_res" >&5
17315 echo "${ECHO_T}$ac_res" >&6; }
17316 if test `eval echo '${'$as_ac_var'}'` = yes; then
17317   cat >>confdefs.h <<_ACEOF
17318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17319 _ACEOF
17320
17321 fi
17322 done
17323
17324
17325
17326
17327
17328
17329 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17330 do
17331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17332 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17334 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17335   echo $ECHO_N "(cached) $ECHO_C" >&6
17336 else
17337   cat >conftest.$ac_ext <<_ACEOF
17338 /* confdefs.h.  */
17339 _ACEOF
17340 cat confdefs.h >>conftest.$ac_ext
17341 cat >>conftest.$ac_ext <<_ACEOF
17342 /* end confdefs.h.  */
17343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17344    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17345 #define $ac_func innocuous_$ac_func
17346
17347 /* System header to define __stub macros and hopefully few prototypes,
17348     which can conflict with char $ac_func (); below.
17349     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17350     <limits.h> exists even on freestanding compilers.  */
17351
17352 #ifdef __STDC__
17353 # include <limits.h>
17354 #else
17355 # include <assert.h>
17356 #endif
17357
17358 #undef $ac_func
17359
17360 /* Override any GCC internal prototype to avoid an error.
17361    Use char because int might match the return type of a GCC
17362    builtin and then its argument prototype would still apply.  */
17363 #ifdef __cplusplus
17364 extern "C"
17365 #endif
17366 char $ac_func ();
17367 /* The GNU C library defines this for functions which it implements
17368     to always fail with ENOSYS.  Some functions are actually named
17369     something starting with __ and the normal name is an alias.  */
17370 #if defined __stub_$ac_func || defined __stub___$ac_func
17371 choke me
17372 #endif
17373
17374 int
17375 main ()
17376 {
17377 return $ac_func ();
17378   ;
17379   return 0;
17380 }
17381 _ACEOF
17382 rm -f conftest.$ac_objext conftest$ac_exeext
17383 if { (ac_try="$ac_link"
17384 case "(($ac_try" in
17385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17386   *) ac_try_echo=$ac_try;;
17387 esac
17388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17389   (eval "$ac_link") 2>conftest.er1
17390   ac_status=$?
17391   grep -v '^ *+' conftest.er1 >conftest.err
17392   rm -f conftest.er1
17393   cat conftest.err >&5
17394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395   (exit $ac_status); } &&
17396          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17397   { (case "(($ac_try" in
17398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17399   *) ac_try_echo=$ac_try;;
17400 esac
17401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17402   (eval "$ac_try") 2>&5
17403   ac_status=$?
17404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405   (exit $ac_status); }; } &&
17406          { ac_try='test -s conftest$ac_exeext'
17407   { (case "(($ac_try" in
17408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17409   *) ac_try_echo=$ac_try;;
17410 esac
17411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17412   (eval "$ac_try") 2>&5
17413   ac_status=$?
17414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415   (exit $ac_status); }; }; then
17416   eval "$as_ac_var=yes"
17417 else
17418   echo "$as_me: failed program was:" >&5
17419 sed 's/^/| /' conftest.$ac_ext >&5
17420
17421         eval "$as_ac_var=no"
17422 fi
17423
17424 rm -f core conftest.err conftest.$ac_objext \
17425       conftest$ac_exeext conftest.$ac_ext
17426 fi
17427 ac_res=`eval echo '${'$as_ac_var'}'`
17428                { echo "$as_me:$LINENO: result: $ac_res" >&5
17429 echo "${ECHO_T}$ac_res" >&6; }
17430 if test `eval echo '${'$as_ac_var'}'` = yes; then
17431   cat >>confdefs.h <<_ACEOF
17432 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17433 _ACEOF
17434
17435 fi
17436 done
17437
17438 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17439 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17440 if test "${llvm_cv_c_printf_a+set}" = set; then
17441   echo $ECHO_N "(cached) $ECHO_C" >&6
17442 else
17443   ac_ext=c
17444 ac_cpp='$CPP $CPPFLAGS'
17445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17448
17449  if test "$cross_compiling" = yes; then
17450   llvmac_cv_c_printf_a=no
17451 else
17452   cat >conftest.$ac_ext <<_ACEOF
17453
17454   /* confdefs.h.  */
17455 _ACEOF
17456 cat confdefs.h >>conftest.$ac_ext
17457 cat >>conftest.$ac_ext <<_ACEOF
17458 /* end confdefs.h.  */
17459
17460 #include <stdio.h>
17461 #include <stdlib.h>
17462
17463 int
17464 main ()
17465 {
17466
17467 volatile double A, B;
17468 char Buffer[100];
17469 A = 1;
17470 A /= 10.0;
17471 sprintf(Buffer, "%a", A);
17472 B = atof(Buffer);
17473 if (A != B)
17474   return (1);
17475 if (A != 0x1.999999999999ap-4)
17476   return (1);
17477 return (0);
17478   ;
17479   return 0;
17480 }
17481 _ACEOF
17482 rm -f conftest$ac_exeext
17483 if { (ac_try="$ac_link"
17484 case "(($ac_try" in
17485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17486   *) ac_try_echo=$ac_try;;
17487 esac
17488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17489   (eval "$ac_link") 2>&5
17490   ac_status=$?
17491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17493   { (case "(($ac_try" in
17494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17495   *) ac_try_echo=$ac_try;;
17496 esac
17497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17498   (eval "$ac_try") 2>&5
17499   ac_status=$?
17500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501   (exit $ac_status); }; }; then
17502   llvm_cv_c_printf_a=yes
17503 else
17504   echo "$as_me: program exited with status $ac_status" >&5
17505 echo "$as_me: failed program was:" >&5
17506 sed 's/^/| /' conftest.$ac_ext >&5
17507
17508 ( exit $ac_status )
17509 llvmac_cv_c_printf_a=no
17510 fi
17511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17512 fi
17513
17514
17515  ac_ext=c
17516 ac_cpp='$CPP $CPPFLAGS'
17517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17520
17521 fi
17522 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17523 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17524  if test "$llvm_cv_c_printf_a" = "yes"; then
17525
17526 cat >>confdefs.h <<\_ACEOF
17527 #define HAVE_PRINTF_A 1
17528 _ACEOF
17529
17530  fi
17531
17532
17533 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17534 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17535 if test "${ac_cv_func_rand48+set}" = set; then
17536   echo $ECHO_N "(cached) $ECHO_C" >&6
17537 else
17538   ac_ext=cpp
17539 ac_cpp='$CXXCPP $CPPFLAGS'
17540 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17541 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17542 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17543
17544    cat >conftest.$ac_ext <<_ACEOF
17545 /* confdefs.h.  */
17546 _ACEOF
17547 cat confdefs.h >>conftest.$ac_ext
17548 cat >>conftest.$ac_ext <<_ACEOF
17549 /* end confdefs.h.  */
17550 #include <stdlib.h>
17551 int
17552 main ()
17553 {
17554 srand48(0);lrand48();drand48();
17555   ;
17556   return 0;
17557 }
17558 _ACEOF
17559 rm -f conftest.$ac_objext
17560 if { (ac_try="$ac_compile"
17561 case "(($ac_try" in
17562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17563   *) ac_try_echo=$ac_try;;
17564 esac
17565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17566   (eval "$ac_compile") 2>conftest.er1
17567   ac_status=$?
17568   grep -v '^ *+' conftest.er1 >conftest.err
17569   rm -f conftest.er1
17570   cat conftest.err >&5
17571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572   (exit $ac_status); } &&
17573          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17574   { (case "(($ac_try" in
17575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17576   *) ac_try_echo=$ac_try;;
17577 esac
17578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17579   (eval "$ac_try") 2>&5
17580   ac_status=$?
17581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582   (exit $ac_status); }; } &&
17583          { ac_try='test -s conftest.$ac_objext'
17584   { (case "(($ac_try" in
17585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17586   *) ac_try_echo=$ac_try;;
17587 esac
17588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17589   (eval "$ac_try") 2>&5
17590   ac_status=$?
17591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592   (exit $ac_status); }; }; then
17593   ac_cv_func_rand48=yes
17594 else
17595   echo "$as_me: failed program was:" >&5
17596 sed 's/^/| /' conftest.$ac_ext >&5
17597
17598         ac_cv_func_rand48=no
17599 fi
17600
17601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17602   ac_ext=c
17603 ac_cpp='$CPP $CPPFLAGS'
17604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17607
17608 fi
17609 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17610 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17611
17612 if test "$ac_cv_func_rand48" = "yes" ; then
17613
17614 cat >>confdefs.h <<\_ACEOF
17615 #define HAVE_RAND48 1
17616 _ACEOF
17617
17618 fi
17619
17620
17621 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17622 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17623 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17624   echo $ECHO_N "(cached) $ECHO_C" >&6
17625 else
17626   cat >conftest.$ac_ext <<_ACEOF
17627 /* confdefs.h.  */
17628 _ACEOF
17629 cat confdefs.h >>conftest.$ac_ext
17630 cat >>conftest.$ac_ext <<_ACEOF
17631 /* end confdefs.h.  */
17632 $ac_includes_default
17633 int
17634 main ()
17635 {
17636 #ifndef strerror_s
17637   char *p = (char *) strerror_s;
17638   return !p;
17639 #endif
17640
17641   ;
17642   return 0;
17643 }
17644 _ACEOF
17645 rm -f conftest.$ac_objext
17646 if { (ac_try="$ac_compile"
17647 case "(($ac_try" in
17648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17649   *) ac_try_echo=$ac_try;;
17650 esac
17651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17652   (eval "$ac_compile") 2>conftest.er1
17653   ac_status=$?
17654   grep -v '^ *+' conftest.er1 >conftest.err
17655   rm -f conftest.er1
17656   cat conftest.err >&5
17657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658   (exit $ac_status); } &&
17659          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17660   { (case "(($ac_try" in
17661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662   *) ac_try_echo=$ac_try;;
17663 esac
17664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17665   (eval "$ac_try") 2>&5
17666   ac_status=$?
17667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668   (exit $ac_status); }; } &&
17669          { ac_try='test -s conftest.$ac_objext'
17670   { (case "(($ac_try" in
17671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17672   *) ac_try_echo=$ac_try;;
17673 esac
17674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17675   (eval "$ac_try") 2>&5
17676   ac_status=$?
17677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678   (exit $ac_status); }; }; then
17679   ac_cv_have_decl_strerror_s=yes
17680 else
17681   echo "$as_me: failed program was:" >&5
17682 sed 's/^/| /' conftest.$ac_ext >&5
17683
17684         ac_cv_have_decl_strerror_s=no
17685 fi
17686
17687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17688 fi
17689 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17690 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17691 if test $ac_cv_have_decl_strerror_s = yes; then
17692
17693 cat >>confdefs.h <<_ACEOF
17694 #define HAVE_DECL_STRERROR_S 1
17695 _ACEOF
17696
17697
17698 else
17699   cat >>confdefs.h <<_ACEOF
17700 #define HAVE_DECL_STRERROR_S 0
17701 _ACEOF
17702
17703
17704 fi
17705
17706
17707
17708 if test "$llvm_cv_os_type" = "MingW" ; then
17709   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17710 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17711 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17712   echo $ECHO_N "(cached) $ECHO_C" >&6
17713 else
17714   ac_check_lib_save_LIBS=$LIBS
17715 LIBS="-lgcc  $LIBS"
17716 cat >conftest.$ac_ext <<_ACEOF
17717 /* confdefs.h.  */
17718 _ACEOF
17719 cat confdefs.h >>conftest.$ac_ext
17720 cat >>conftest.$ac_ext <<_ACEOF
17721 /* end confdefs.h.  */
17722
17723 /* Override any GCC internal prototype to avoid an error.
17724    Use char because int might match the return type of a GCC
17725    builtin and then its argument prototype would still apply.  */
17726 #ifdef __cplusplus
17727 extern "C"
17728 #endif
17729 char _alloca ();
17730 int
17731 main ()
17732 {
17733 return _alloca ();
17734   ;
17735   return 0;
17736 }
17737 _ACEOF
17738 rm -f conftest.$ac_objext conftest$ac_exeext
17739 if { (ac_try="$ac_link"
17740 case "(($ac_try" in
17741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17742   *) ac_try_echo=$ac_try;;
17743 esac
17744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17745   (eval "$ac_link") 2>conftest.er1
17746   ac_status=$?
17747   grep -v '^ *+' conftest.er1 >conftest.err
17748   rm -f conftest.er1
17749   cat conftest.err >&5
17750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751   (exit $ac_status); } &&
17752          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17753   { (case "(($ac_try" in
17754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17755   *) ac_try_echo=$ac_try;;
17756 esac
17757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17758   (eval "$ac_try") 2>&5
17759   ac_status=$?
17760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761   (exit $ac_status); }; } &&
17762          { ac_try='test -s conftest$ac_exeext'
17763   { (case "(($ac_try" in
17764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17765   *) ac_try_echo=$ac_try;;
17766 esac
17767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17768   (eval "$ac_try") 2>&5
17769   ac_status=$?
17770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771   (exit $ac_status); }; }; then
17772   ac_cv_lib_gcc__alloca=yes
17773 else
17774   echo "$as_me: failed program was:" >&5
17775 sed 's/^/| /' conftest.$ac_ext >&5
17776
17777         ac_cv_lib_gcc__alloca=no
17778 fi
17779
17780 rm -f core conftest.err conftest.$ac_objext \
17781       conftest$ac_exeext conftest.$ac_ext
17782 LIBS=$ac_check_lib_save_LIBS
17783 fi
17784 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17785 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17786 if test $ac_cv_lib_gcc__alloca = yes; then
17787
17788 cat >>confdefs.h <<\_ACEOF
17789 #define HAVE__ALLOCA 1
17790 _ACEOF
17791
17792 fi
17793
17794   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17795 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17796 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17797   echo $ECHO_N "(cached) $ECHO_C" >&6
17798 else
17799   ac_check_lib_save_LIBS=$LIBS
17800 LIBS="-lgcc  $LIBS"
17801 cat >conftest.$ac_ext <<_ACEOF
17802 /* confdefs.h.  */
17803 _ACEOF
17804 cat confdefs.h >>conftest.$ac_ext
17805 cat >>conftest.$ac_ext <<_ACEOF
17806 /* end confdefs.h.  */
17807
17808 /* Override any GCC internal prototype to avoid an error.
17809    Use char because int might match the return type of a GCC
17810    builtin and then its argument prototype would still apply.  */
17811 #ifdef __cplusplus
17812 extern "C"
17813 #endif
17814 char __alloca ();
17815 int
17816 main ()
17817 {
17818 return __alloca ();
17819   ;
17820   return 0;
17821 }
17822 _ACEOF
17823 rm -f conftest.$ac_objext conftest$ac_exeext
17824 if { (ac_try="$ac_link"
17825 case "(($ac_try" in
17826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827   *) ac_try_echo=$ac_try;;
17828 esac
17829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17830   (eval "$ac_link") 2>conftest.er1
17831   ac_status=$?
17832   grep -v '^ *+' conftest.er1 >conftest.err
17833   rm -f conftest.er1
17834   cat conftest.err >&5
17835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836   (exit $ac_status); } &&
17837          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17838   { (case "(($ac_try" in
17839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17840   *) ac_try_echo=$ac_try;;
17841 esac
17842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17843   (eval "$ac_try") 2>&5
17844   ac_status=$?
17845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846   (exit $ac_status); }; } &&
17847          { ac_try='test -s conftest$ac_exeext'
17848   { (case "(($ac_try" in
17849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17850   *) ac_try_echo=$ac_try;;
17851 esac
17852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17853   (eval "$ac_try") 2>&5
17854   ac_status=$?
17855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856   (exit $ac_status); }; }; then
17857   ac_cv_lib_gcc___alloca=yes
17858 else
17859   echo "$as_me: failed program was:" >&5
17860 sed 's/^/| /' conftest.$ac_ext >&5
17861
17862         ac_cv_lib_gcc___alloca=no
17863 fi
17864
17865 rm -f core conftest.err conftest.$ac_objext \
17866       conftest$ac_exeext conftest.$ac_ext
17867 LIBS=$ac_check_lib_save_LIBS
17868 fi
17869 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17870 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17871 if test $ac_cv_lib_gcc___alloca = yes; then
17872
17873 cat >>confdefs.h <<\_ACEOF
17874 #define HAVE___ALLOCA 1
17875 _ACEOF
17876
17877 fi
17878
17879   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17880 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17881 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17882   echo $ECHO_N "(cached) $ECHO_C" >&6
17883 else
17884   ac_check_lib_save_LIBS=$LIBS
17885 LIBS="-lgcc  $LIBS"
17886 cat >conftest.$ac_ext <<_ACEOF
17887 /* confdefs.h.  */
17888 _ACEOF
17889 cat confdefs.h >>conftest.$ac_ext
17890 cat >>conftest.$ac_ext <<_ACEOF
17891 /* end confdefs.h.  */
17892
17893 /* Override any GCC internal prototype to avoid an error.
17894    Use char because int might match the return type of a GCC
17895    builtin and then its argument prototype would still apply.  */
17896 #ifdef __cplusplus
17897 extern "C"
17898 #endif
17899 char __chkstk ();
17900 int
17901 main ()
17902 {
17903 return __chkstk ();
17904   ;
17905   return 0;
17906 }
17907 _ACEOF
17908 rm -f conftest.$ac_objext conftest$ac_exeext
17909 if { (ac_try="$ac_link"
17910 case "(($ac_try" in
17911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17912   *) ac_try_echo=$ac_try;;
17913 esac
17914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17915   (eval "$ac_link") 2>conftest.er1
17916   ac_status=$?
17917   grep -v '^ *+' conftest.er1 >conftest.err
17918   rm -f conftest.er1
17919   cat conftest.err >&5
17920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921   (exit $ac_status); } &&
17922          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17923   { (case "(($ac_try" in
17924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17925   *) ac_try_echo=$ac_try;;
17926 esac
17927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17928   (eval "$ac_try") 2>&5
17929   ac_status=$?
17930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931   (exit $ac_status); }; } &&
17932          { ac_try='test -s conftest$ac_exeext'
17933   { (case "(($ac_try" in
17934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17935   *) ac_try_echo=$ac_try;;
17936 esac
17937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17938   (eval "$ac_try") 2>&5
17939   ac_status=$?
17940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941   (exit $ac_status); }; }; then
17942   ac_cv_lib_gcc___chkstk=yes
17943 else
17944   echo "$as_me: failed program was:" >&5
17945 sed 's/^/| /' conftest.$ac_ext >&5
17946
17947         ac_cv_lib_gcc___chkstk=no
17948 fi
17949
17950 rm -f core conftest.err conftest.$ac_objext \
17951       conftest$ac_exeext conftest.$ac_ext
17952 LIBS=$ac_check_lib_save_LIBS
17953 fi
17954 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
17955 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
17956 if test $ac_cv_lib_gcc___chkstk = yes; then
17957
17958 cat >>confdefs.h <<\_ACEOF
17959 #define HAVE___CHKSTK 1
17960 _ACEOF
17961
17962 fi
17963
17964   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
17965 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
17966 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
17967   echo $ECHO_N "(cached) $ECHO_C" >&6
17968 else
17969   ac_check_lib_save_LIBS=$LIBS
17970 LIBS="-lgcc  $LIBS"
17971 cat >conftest.$ac_ext <<_ACEOF
17972 /* confdefs.h.  */
17973 _ACEOF
17974 cat confdefs.h >>conftest.$ac_ext
17975 cat >>conftest.$ac_ext <<_ACEOF
17976 /* end confdefs.h.  */
17977
17978 /* Override any GCC internal prototype to avoid an error.
17979    Use char because int might match the return type of a GCC
17980    builtin and then its argument prototype would still apply.  */
17981 #ifdef __cplusplus
17982 extern "C"
17983 #endif
17984 char ___chkstk ();
17985 int
17986 main ()
17987 {
17988 return ___chkstk ();
17989   ;
17990   return 0;
17991 }
17992 _ACEOF
17993 rm -f conftest.$ac_objext conftest$ac_exeext
17994 if { (ac_try="$ac_link"
17995 case "(($ac_try" in
17996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17997   *) ac_try_echo=$ac_try;;
17998 esac
17999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18000   (eval "$ac_link") 2>conftest.er1
18001   ac_status=$?
18002   grep -v '^ *+' conftest.er1 >conftest.err
18003   rm -f conftest.er1
18004   cat conftest.err >&5
18005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006   (exit $ac_status); } &&
18007          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18008   { (case "(($ac_try" in
18009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010   *) ac_try_echo=$ac_try;;
18011 esac
18012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18013   (eval "$ac_try") 2>&5
18014   ac_status=$?
18015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016   (exit $ac_status); }; } &&
18017          { ac_try='test -s conftest$ac_exeext'
18018   { (case "(($ac_try" in
18019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18020   *) ac_try_echo=$ac_try;;
18021 esac
18022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18023   (eval "$ac_try") 2>&5
18024   ac_status=$?
18025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026   (exit $ac_status); }; }; then
18027   ac_cv_lib_gcc____chkstk=yes
18028 else
18029   echo "$as_me: failed program was:" >&5
18030 sed 's/^/| /' conftest.$ac_ext >&5
18031
18032         ac_cv_lib_gcc____chkstk=no
18033 fi
18034
18035 rm -f core conftest.err conftest.$ac_objext \
18036       conftest$ac_exeext conftest.$ac_ext
18037 LIBS=$ac_check_lib_save_LIBS
18038 fi
18039 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18040 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18041 if test $ac_cv_lib_gcc____chkstk = yes; then
18042
18043 cat >>confdefs.h <<\_ACEOF
18044 #define HAVE____CHKSTK 1
18045 _ACEOF
18046
18047 fi
18048
18049
18050   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18051 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18052 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18053   echo $ECHO_N "(cached) $ECHO_C" >&6
18054 else
18055   ac_check_lib_save_LIBS=$LIBS
18056 LIBS="-lgcc  $LIBS"
18057 cat >conftest.$ac_ext <<_ACEOF
18058 /* confdefs.h.  */
18059 _ACEOF
18060 cat confdefs.h >>conftest.$ac_ext
18061 cat >>conftest.$ac_ext <<_ACEOF
18062 /* end confdefs.h.  */
18063
18064 /* Override any GCC internal prototype to avoid an error.
18065    Use char because int might match the return type of a GCC
18066    builtin and then its argument prototype would still apply.  */
18067 #ifdef __cplusplus
18068 extern "C"
18069 #endif
18070 char __ashldi3 ();
18071 int
18072 main ()
18073 {
18074 return __ashldi3 ();
18075   ;
18076   return 0;
18077 }
18078 _ACEOF
18079 rm -f conftest.$ac_objext conftest$ac_exeext
18080 if { (ac_try="$ac_link"
18081 case "(($ac_try" in
18082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18083   *) ac_try_echo=$ac_try;;
18084 esac
18085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18086   (eval "$ac_link") 2>conftest.er1
18087   ac_status=$?
18088   grep -v '^ *+' conftest.er1 >conftest.err
18089   rm -f conftest.er1
18090   cat conftest.err >&5
18091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092   (exit $ac_status); } &&
18093          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18094   { (case "(($ac_try" in
18095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18096   *) ac_try_echo=$ac_try;;
18097 esac
18098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18099   (eval "$ac_try") 2>&5
18100   ac_status=$?
18101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102   (exit $ac_status); }; } &&
18103          { ac_try='test -s conftest$ac_exeext'
18104   { (case "(($ac_try" in
18105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18106   *) ac_try_echo=$ac_try;;
18107 esac
18108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18109   (eval "$ac_try") 2>&5
18110   ac_status=$?
18111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112   (exit $ac_status); }; }; then
18113   ac_cv_lib_gcc___ashldi3=yes
18114 else
18115   echo "$as_me: failed program was:" >&5
18116 sed 's/^/| /' conftest.$ac_ext >&5
18117
18118         ac_cv_lib_gcc___ashldi3=no
18119 fi
18120
18121 rm -f core conftest.err conftest.$ac_objext \
18122       conftest$ac_exeext conftest.$ac_ext
18123 LIBS=$ac_check_lib_save_LIBS
18124 fi
18125 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18126 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18127 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18128
18129 cat >>confdefs.h <<\_ACEOF
18130 #define HAVE___ASHLDI3 1
18131 _ACEOF
18132
18133 fi
18134
18135   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18136 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18137 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18138   echo $ECHO_N "(cached) $ECHO_C" >&6
18139 else
18140   ac_check_lib_save_LIBS=$LIBS
18141 LIBS="-lgcc  $LIBS"
18142 cat >conftest.$ac_ext <<_ACEOF
18143 /* confdefs.h.  */
18144 _ACEOF
18145 cat confdefs.h >>conftest.$ac_ext
18146 cat >>conftest.$ac_ext <<_ACEOF
18147 /* end confdefs.h.  */
18148
18149 /* Override any GCC internal prototype to avoid an error.
18150    Use char because int might match the return type of a GCC
18151    builtin and then its argument prototype would still apply.  */
18152 #ifdef __cplusplus
18153 extern "C"
18154 #endif
18155 char __ashrdi3 ();
18156 int
18157 main ()
18158 {
18159 return __ashrdi3 ();
18160   ;
18161   return 0;
18162 }
18163 _ACEOF
18164 rm -f conftest.$ac_objext conftest$ac_exeext
18165 if { (ac_try="$ac_link"
18166 case "(($ac_try" in
18167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168   *) ac_try_echo=$ac_try;;
18169 esac
18170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18171   (eval "$ac_link") 2>conftest.er1
18172   ac_status=$?
18173   grep -v '^ *+' conftest.er1 >conftest.err
18174   rm -f conftest.er1
18175   cat conftest.err >&5
18176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177   (exit $ac_status); } &&
18178          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18179   { (case "(($ac_try" in
18180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18181   *) ac_try_echo=$ac_try;;
18182 esac
18183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18184   (eval "$ac_try") 2>&5
18185   ac_status=$?
18186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187   (exit $ac_status); }; } &&
18188          { ac_try='test -s conftest$ac_exeext'
18189   { (case "(($ac_try" in
18190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18191   *) ac_try_echo=$ac_try;;
18192 esac
18193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18194   (eval "$ac_try") 2>&5
18195   ac_status=$?
18196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197   (exit $ac_status); }; }; then
18198   ac_cv_lib_gcc___ashrdi3=yes
18199 else
18200   echo "$as_me: failed program was:" >&5
18201 sed 's/^/| /' conftest.$ac_ext >&5
18202
18203         ac_cv_lib_gcc___ashrdi3=no
18204 fi
18205
18206 rm -f core conftest.err conftest.$ac_objext \
18207       conftest$ac_exeext conftest.$ac_ext
18208 LIBS=$ac_check_lib_save_LIBS
18209 fi
18210 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18211 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18212 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18213
18214 cat >>confdefs.h <<\_ACEOF
18215 #define HAVE___ASHRDI3 1
18216 _ACEOF
18217
18218 fi
18219
18220   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18221 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18222 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18223   echo $ECHO_N "(cached) $ECHO_C" >&6
18224 else
18225   ac_check_lib_save_LIBS=$LIBS
18226 LIBS="-lgcc  $LIBS"
18227 cat >conftest.$ac_ext <<_ACEOF
18228 /* confdefs.h.  */
18229 _ACEOF
18230 cat confdefs.h >>conftest.$ac_ext
18231 cat >>conftest.$ac_ext <<_ACEOF
18232 /* end confdefs.h.  */
18233
18234 /* Override any GCC internal prototype to avoid an error.
18235    Use char because int might match the return type of a GCC
18236    builtin and then its argument prototype would still apply.  */
18237 #ifdef __cplusplus
18238 extern "C"
18239 #endif
18240 char __divdi3 ();
18241 int
18242 main ()
18243 {
18244 return __divdi3 ();
18245   ;
18246   return 0;
18247 }
18248 _ACEOF
18249 rm -f conftest.$ac_objext conftest$ac_exeext
18250 if { (ac_try="$ac_link"
18251 case "(($ac_try" in
18252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18253   *) ac_try_echo=$ac_try;;
18254 esac
18255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18256   (eval "$ac_link") 2>conftest.er1
18257   ac_status=$?
18258   grep -v '^ *+' conftest.er1 >conftest.err
18259   rm -f conftest.er1
18260   cat conftest.err >&5
18261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262   (exit $ac_status); } &&
18263          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18264   { (case "(($ac_try" in
18265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18266   *) ac_try_echo=$ac_try;;
18267 esac
18268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18269   (eval "$ac_try") 2>&5
18270   ac_status=$?
18271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272   (exit $ac_status); }; } &&
18273          { ac_try='test -s conftest$ac_exeext'
18274   { (case "(($ac_try" in
18275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18276   *) ac_try_echo=$ac_try;;
18277 esac
18278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18279   (eval "$ac_try") 2>&5
18280   ac_status=$?
18281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282   (exit $ac_status); }; }; then
18283   ac_cv_lib_gcc___divdi3=yes
18284 else
18285   echo "$as_me: failed program was:" >&5
18286 sed 's/^/| /' conftest.$ac_ext >&5
18287
18288         ac_cv_lib_gcc___divdi3=no
18289 fi
18290
18291 rm -f core conftest.err conftest.$ac_objext \
18292       conftest$ac_exeext conftest.$ac_ext
18293 LIBS=$ac_check_lib_save_LIBS
18294 fi
18295 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18296 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18297 if test $ac_cv_lib_gcc___divdi3 = yes; then
18298
18299 cat >>confdefs.h <<\_ACEOF
18300 #define HAVE___DIVDI3 1
18301 _ACEOF
18302
18303 fi
18304
18305   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18306 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18307 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18308   echo $ECHO_N "(cached) $ECHO_C" >&6
18309 else
18310   ac_check_lib_save_LIBS=$LIBS
18311 LIBS="-lgcc  $LIBS"
18312 cat >conftest.$ac_ext <<_ACEOF
18313 /* confdefs.h.  */
18314 _ACEOF
18315 cat confdefs.h >>conftest.$ac_ext
18316 cat >>conftest.$ac_ext <<_ACEOF
18317 /* end confdefs.h.  */
18318
18319 /* Override any GCC internal prototype to avoid an error.
18320    Use char because int might match the return type of a GCC
18321    builtin and then its argument prototype would still apply.  */
18322 #ifdef __cplusplus
18323 extern "C"
18324 #endif
18325 char __fixdfdi ();
18326 int
18327 main ()
18328 {
18329 return __fixdfdi ();
18330   ;
18331   return 0;
18332 }
18333 _ACEOF
18334 rm -f conftest.$ac_objext conftest$ac_exeext
18335 if { (ac_try="$ac_link"
18336 case "(($ac_try" in
18337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18338   *) ac_try_echo=$ac_try;;
18339 esac
18340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18341   (eval "$ac_link") 2>conftest.er1
18342   ac_status=$?
18343   grep -v '^ *+' conftest.er1 >conftest.err
18344   rm -f conftest.er1
18345   cat conftest.err >&5
18346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347   (exit $ac_status); } &&
18348          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18349   { (case "(($ac_try" in
18350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18351   *) ac_try_echo=$ac_try;;
18352 esac
18353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18354   (eval "$ac_try") 2>&5
18355   ac_status=$?
18356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357   (exit $ac_status); }; } &&
18358          { ac_try='test -s conftest$ac_exeext'
18359   { (case "(($ac_try" in
18360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18361   *) ac_try_echo=$ac_try;;
18362 esac
18363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18364   (eval "$ac_try") 2>&5
18365   ac_status=$?
18366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367   (exit $ac_status); }; }; then
18368   ac_cv_lib_gcc___fixdfdi=yes
18369 else
18370   echo "$as_me: failed program was:" >&5
18371 sed 's/^/| /' conftest.$ac_ext >&5
18372
18373         ac_cv_lib_gcc___fixdfdi=no
18374 fi
18375
18376 rm -f core conftest.err conftest.$ac_objext \
18377       conftest$ac_exeext conftest.$ac_ext
18378 LIBS=$ac_check_lib_save_LIBS
18379 fi
18380 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18381 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18382 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18383
18384 cat >>confdefs.h <<\_ACEOF
18385 #define HAVE___FIXDFDI 1
18386 _ACEOF
18387
18388 fi
18389
18390   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18391 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18392 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18393   echo $ECHO_N "(cached) $ECHO_C" >&6
18394 else
18395   ac_check_lib_save_LIBS=$LIBS
18396 LIBS="-lgcc  $LIBS"
18397 cat >conftest.$ac_ext <<_ACEOF
18398 /* confdefs.h.  */
18399 _ACEOF
18400 cat confdefs.h >>conftest.$ac_ext
18401 cat >>conftest.$ac_ext <<_ACEOF
18402 /* end confdefs.h.  */
18403
18404 /* Override any GCC internal prototype to avoid an error.
18405    Use char because int might match the return type of a GCC
18406    builtin and then its argument prototype would still apply.  */
18407 #ifdef __cplusplus
18408 extern "C"
18409 #endif
18410 char __fixsfdi ();
18411 int
18412 main ()
18413 {
18414 return __fixsfdi ();
18415   ;
18416   return 0;
18417 }
18418 _ACEOF
18419 rm -f conftest.$ac_objext conftest$ac_exeext
18420 if { (ac_try="$ac_link"
18421 case "(($ac_try" in
18422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18423   *) ac_try_echo=$ac_try;;
18424 esac
18425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18426   (eval "$ac_link") 2>conftest.er1
18427   ac_status=$?
18428   grep -v '^ *+' conftest.er1 >conftest.err
18429   rm -f conftest.er1
18430   cat conftest.err >&5
18431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432   (exit $ac_status); } &&
18433          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18434   { (case "(($ac_try" in
18435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18436   *) ac_try_echo=$ac_try;;
18437 esac
18438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18439   (eval "$ac_try") 2>&5
18440   ac_status=$?
18441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442   (exit $ac_status); }; } &&
18443          { ac_try='test -s conftest$ac_exeext'
18444   { (case "(($ac_try" in
18445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18446   *) ac_try_echo=$ac_try;;
18447 esac
18448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18449   (eval "$ac_try") 2>&5
18450   ac_status=$?
18451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452   (exit $ac_status); }; }; then
18453   ac_cv_lib_gcc___fixsfdi=yes
18454 else
18455   echo "$as_me: failed program was:" >&5
18456 sed 's/^/| /' conftest.$ac_ext >&5
18457
18458         ac_cv_lib_gcc___fixsfdi=no
18459 fi
18460
18461 rm -f core conftest.err conftest.$ac_objext \
18462       conftest$ac_exeext conftest.$ac_ext
18463 LIBS=$ac_check_lib_save_LIBS
18464 fi
18465 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18466 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18467 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18468
18469 cat >>confdefs.h <<\_ACEOF
18470 #define HAVE___FIXSFDI 1
18471 _ACEOF
18472
18473 fi
18474
18475   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18476 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18477 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18478   echo $ECHO_N "(cached) $ECHO_C" >&6
18479 else
18480   ac_check_lib_save_LIBS=$LIBS
18481 LIBS="-lgcc  $LIBS"
18482 cat >conftest.$ac_ext <<_ACEOF
18483 /* confdefs.h.  */
18484 _ACEOF
18485 cat confdefs.h >>conftest.$ac_ext
18486 cat >>conftest.$ac_ext <<_ACEOF
18487 /* end confdefs.h.  */
18488
18489 /* Override any GCC internal prototype to avoid an error.
18490    Use char because int might match the return type of a GCC
18491    builtin and then its argument prototype would still apply.  */
18492 #ifdef __cplusplus
18493 extern "C"
18494 #endif
18495 char __floatdidf ();
18496 int
18497 main ()
18498 {
18499 return __floatdidf ();
18500   ;
18501   return 0;
18502 }
18503 _ACEOF
18504 rm -f conftest.$ac_objext conftest$ac_exeext
18505 if { (ac_try="$ac_link"
18506 case "(($ac_try" in
18507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18508   *) ac_try_echo=$ac_try;;
18509 esac
18510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18511   (eval "$ac_link") 2>conftest.er1
18512   ac_status=$?
18513   grep -v '^ *+' conftest.er1 >conftest.err
18514   rm -f conftest.er1
18515   cat conftest.err >&5
18516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517   (exit $ac_status); } &&
18518          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18519   { (case "(($ac_try" in
18520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18521   *) ac_try_echo=$ac_try;;
18522 esac
18523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18524   (eval "$ac_try") 2>&5
18525   ac_status=$?
18526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527   (exit $ac_status); }; } &&
18528          { ac_try='test -s conftest$ac_exeext'
18529   { (case "(($ac_try" in
18530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18531   *) ac_try_echo=$ac_try;;
18532 esac
18533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18534   (eval "$ac_try") 2>&5
18535   ac_status=$?
18536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537   (exit $ac_status); }; }; then
18538   ac_cv_lib_gcc___floatdidf=yes
18539 else
18540   echo "$as_me: failed program was:" >&5
18541 sed 's/^/| /' conftest.$ac_ext >&5
18542
18543         ac_cv_lib_gcc___floatdidf=no
18544 fi
18545
18546 rm -f core conftest.err conftest.$ac_objext \
18547       conftest$ac_exeext conftest.$ac_ext
18548 LIBS=$ac_check_lib_save_LIBS
18549 fi
18550 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18551 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18552 if test $ac_cv_lib_gcc___floatdidf = yes; then
18553
18554 cat >>confdefs.h <<\_ACEOF
18555 #define HAVE___FLOATDIDF 1
18556 _ACEOF
18557
18558 fi
18559
18560   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18561 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18562 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18563   echo $ECHO_N "(cached) $ECHO_C" >&6
18564 else
18565   ac_check_lib_save_LIBS=$LIBS
18566 LIBS="-lgcc  $LIBS"
18567 cat >conftest.$ac_ext <<_ACEOF
18568 /* confdefs.h.  */
18569 _ACEOF
18570 cat confdefs.h >>conftest.$ac_ext
18571 cat >>conftest.$ac_ext <<_ACEOF
18572 /* end confdefs.h.  */
18573
18574 /* Override any GCC internal prototype to avoid an error.
18575    Use char because int might match the return type of a GCC
18576    builtin and then its argument prototype would still apply.  */
18577 #ifdef __cplusplus
18578 extern "C"
18579 #endif
18580 char __lshrdi3 ();
18581 int
18582 main ()
18583 {
18584 return __lshrdi3 ();
18585   ;
18586   return 0;
18587 }
18588 _ACEOF
18589 rm -f conftest.$ac_objext conftest$ac_exeext
18590 if { (ac_try="$ac_link"
18591 case "(($ac_try" in
18592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18593   *) ac_try_echo=$ac_try;;
18594 esac
18595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18596   (eval "$ac_link") 2>conftest.er1
18597   ac_status=$?
18598   grep -v '^ *+' conftest.er1 >conftest.err
18599   rm -f conftest.er1
18600   cat conftest.err >&5
18601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602   (exit $ac_status); } &&
18603          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18604   { (case "(($ac_try" in
18605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18606   *) ac_try_echo=$ac_try;;
18607 esac
18608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18609   (eval "$ac_try") 2>&5
18610   ac_status=$?
18611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612   (exit $ac_status); }; } &&
18613          { ac_try='test -s conftest$ac_exeext'
18614   { (case "(($ac_try" in
18615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18616   *) ac_try_echo=$ac_try;;
18617 esac
18618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18619   (eval "$ac_try") 2>&5
18620   ac_status=$?
18621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622   (exit $ac_status); }; }; then
18623   ac_cv_lib_gcc___lshrdi3=yes
18624 else
18625   echo "$as_me: failed program was:" >&5
18626 sed 's/^/| /' conftest.$ac_ext >&5
18627
18628         ac_cv_lib_gcc___lshrdi3=no
18629 fi
18630
18631 rm -f core conftest.err conftest.$ac_objext \
18632       conftest$ac_exeext conftest.$ac_ext
18633 LIBS=$ac_check_lib_save_LIBS
18634 fi
18635 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18636 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18637 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18638
18639 cat >>confdefs.h <<\_ACEOF
18640 #define HAVE___LSHRDI3 1
18641 _ACEOF
18642
18643 fi
18644
18645   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18646 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18647 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18648   echo $ECHO_N "(cached) $ECHO_C" >&6
18649 else
18650   ac_check_lib_save_LIBS=$LIBS
18651 LIBS="-lgcc  $LIBS"
18652 cat >conftest.$ac_ext <<_ACEOF
18653 /* confdefs.h.  */
18654 _ACEOF
18655 cat confdefs.h >>conftest.$ac_ext
18656 cat >>conftest.$ac_ext <<_ACEOF
18657 /* end confdefs.h.  */
18658
18659 /* Override any GCC internal prototype to avoid an error.
18660    Use char because int might match the return type of a GCC
18661    builtin and then its argument prototype would still apply.  */
18662 #ifdef __cplusplus
18663 extern "C"
18664 #endif
18665 char __moddi3 ();
18666 int
18667 main ()
18668 {
18669 return __moddi3 ();
18670   ;
18671   return 0;
18672 }
18673 _ACEOF
18674 rm -f conftest.$ac_objext conftest$ac_exeext
18675 if { (ac_try="$ac_link"
18676 case "(($ac_try" in
18677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18678   *) ac_try_echo=$ac_try;;
18679 esac
18680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18681   (eval "$ac_link") 2>conftest.er1
18682   ac_status=$?
18683   grep -v '^ *+' conftest.er1 >conftest.err
18684   rm -f conftest.er1
18685   cat conftest.err >&5
18686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687   (exit $ac_status); } &&
18688          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18689   { (case "(($ac_try" in
18690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18691   *) ac_try_echo=$ac_try;;
18692 esac
18693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18694   (eval "$ac_try") 2>&5
18695   ac_status=$?
18696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697   (exit $ac_status); }; } &&
18698          { ac_try='test -s conftest$ac_exeext'
18699   { (case "(($ac_try" in
18700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18701   *) ac_try_echo=$ac_try;;
18702 esac
18703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18704   (eval "$ac_try") 2>&5
18705   ac_status=$?
18706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707   (exit $ac_status); }; }; then
18708   ac_cv_lib_gcc___moddi3=yes
18709 else
18710   echo "$as_me: failed program was:" >&5
18711 sed 's/^/| /' conftest.$ac_ext >&5
18712
18713         ac_cv_lib_gcc___moddi3=no
18714 fi
18715
18716 rm -f core conftest.err conftest.$ac_objext \
18717       conftest$ac_exeext conftest.$ac_ext
18718 LIBS=$ac_check_lib_save_LIBS
18719 fi
18720 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18721 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18722 if test $ac_cv_lib_gcc___moddi3 = yes; then
18723
18724 cat >>confdefs.h <<\_ACEOF
18725 #define HAVE___MODDI3 1
18726 _ACEOF
18727
18728 fi
18729
18730   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18731 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18732 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18733   echo $ECHO_N "(cached) $ECHO_C" >&6
18734 else
18735   ac_check_lib_save_LIBS=$LIBS
18736 LIBS="-lgcc  $LIBS"
18737 cat >conftest.$ac_ext <<_ACEOF
18738 /* confdefs.h.  */
18739 _ACEOF
18740 cat confdefs.h >>conftest.$ac_ext
18741 cat >>conftest.$ac_ext <<_ACEOF
18742 /* end confdefs.h.  */
18743
18744 /* Override any GCC internal prototype to avoid an error.
18745    Use char because int might match the return type of a GCC
18746    builtin and then its argument prototype would still apply.  */
18747 #ifdef __cplusplus
18748 extern "C"
18749 #endif
18750 char __udivdi3 ();
18751 int
18752 main ()
18753 {
18754 return __udivdi3 ();
18755   ;
18756   return 0;
18757 }
18758 _ACEOF
18759 rm -f conftest.$ac_objext conftest$ac_exeext
18760 if { (ac_try="$ac_link"
18761 case "(($ac_try" in
18762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18763   *) ac_try_echo=$ac_try;;
18764 esac
18765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18766   (eval "$ac_link") 2>conftest.er1
18767   ac_status=$?
18768   grep -v '^ *+' conftest.er1 >conftest.err
18769   rm -f conftest.er1
18770   cat conftest.err >&5
18771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772   (exit $ac_status); } &&
18773          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18774   { (case "(($ac_try" in
18775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18776   *) ac_try_echo=$ac_try;;
18777 esac
18778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18779   (eval "$ac_try") 2>&5
18780   ac_status=$?
18781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782   (exit $ac_status); }; } &&
18783          { ac_try='test -s conftest$ac_exeext'
18784   { (case "(($ac_try" in
18785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18786   *) ac_try_echo=$ac_try;;
18787 esac
18788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18789   (eval "$ac_try") 2>&5
18790   ac_status=$?
18791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792   (exit $ac_status); }; }; then
18793   ac_cv_lib_gcc___udivdi3=yes
18794 else
18795   echo "$as_me: failed program was:" >&5
18796 sed 's/^/| /' conftest.$ac_ext >&5
18797
18798         ac_cv_lib_gcc___udivdi3=no
18799 fi
18800
18801 rm -f core conftest.err conftest.$ac_objext \
18802       conftest$ac_exeext conftest.$ac_ext
18803 LIBS=$ac_check_lib_save_LIBS
18804 fi
18805 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18806 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18807 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18808
18809 cat >>confdefs.h <<\_ACEOF
18810 #define HAVE___UDIVDI3 1
18811 _ACEOF
18812
18813 fi
18814
18815   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18816 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18817 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18818   echo $ECHO_N "(cached) $ECHO_C" >&6
18819 else
18820   ac_check_lib_save_LIBS=$LIBS
18821 LIBS="-lgcc  $LIBS"
18822 cat >conftest.$ac_ext <<_ACEOF
18823 /* confdefs.h.  */
18824 _ACEOF
18825 cat confdefs.h >>conftest.$ac_ext
18826 cat >>conftest.$ac_ext <<_ACEOF
18827 /* end confdefs.h.  */
18828
18829 /* Override any GCC internal prototype to avoid an error.
18830    Use char because int might match the return type of a GCC
18831    builtin and then its argument prototype would still apply.  */
18832 #ifdef __cplusplus
18833 extern "C"
18834 #endif
18835 char __umoddi3 ();
18836 int
18837 main ()
18838 {
18839 return __umoddi3 ();
18840   ;
18841   return 0;
18842 }
18843 _ACEOF
18844 rm -f conftest.$ac_objext conftest$ac_exeext
18845 if { (ac_try="$ac_link"
18846 case "(($ac_try" in
18847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18848   *) ac_try_echo=$ac_try;;
18849 esac
18850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18851   (eval "$ac_link") 2>conftest.er1
18852   ac_status=$?
18853   grep -v '^ *+' conftest.er1 >conftest.err
18854   rm -f conftest.er1
18855   cat conftest.err >&5
18856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857   (exit $ac_status); } &&
18858          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18859   { (case "(($ac_try" in
18860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18861   *) ac_try_echo=$ac_try;;
18862 esac
18863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18864   (eval "$ac_try") 2>&5
18865   ac_status=$?
18866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867   (exit $ac_status); }; } &&
18868          { ac_try='test -s conftest$ac_exeext'
18869   { (case "(($ac_try" in
18870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18871   *) ac_try_echo=$ac_try;;
18872 esac
18873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18874   (eval "$ac_try") 2>&5
18875   ac_status=$?
18876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877   (exit $ac_status); }; }; then
18878   ac_cv_lib_gcc___umoddi3=yes
18879 else
18880   echo "$as_me: failed program was:" >&5
18881 sed 's/^/| /' conftest.$ac_ext >&5
18882
18883         ac_cv_lib_gcc___umoddi3=no
18884 fi
18885
18886 rm -f core conftest.err conftest.$ac_objext \
18887       conftest$ac_exeext conftest.$ac_ext
18888 LIBS=$ac_check_lib_save_LIBS
18889 fi
18890 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18891 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18892 if test $ac_cv_lib_gcc___umoddi3 = yes; then
18893
18894 cat >>confdefs.h <<\_ACEOF
18895 #define HAVE___UMODDI3 1
18896 _ACEOF
18897
18898 fi
18899
18900
18901   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18902 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18903 if test "${ac_cv_lib_gcc___main+set}" = set; then
18904   echo $ECHO_N "(cached) $ECHO_C" >&6
18905 else
18906   ac_check_lib_save_LIBS=$LIBS
18907 LIBS="-lgcc  $LIBS"
18908 cat >conftest.$ac_ext <<_ACEOF
18909 /* confdefs.h.  */
18910 _ACEOF
18911 cat confdefs.h >>conftest.$ac_ext
18912 cat >>conftest.$ac_ext <<_ACEOF
18913 /* end confdefs.h.  */
18914
18915 /* Override any GCC internal prototype to avoid an error.
18916    Use char because int might match the return type of a GCC
18917    builtin and then its argument prototype would still apply.  */
18918 #ifdef __cplusplus
18919 extern "C"
18920 #endif
18921 char __main ();
18922 int
18923 main ()
18924 {
18925 return __main ();
18926   ;
18927   return 0;
18928 }
18929 _ACEOF
18930 rm -f conftest.$ac_objext conftest$ac_exeext
18931 if { (ac_try="$ac_link"
18932 case "(($ac_try" in
18933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18934   *) ac_try_echo=$ac_try;;
18935 esac
18936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18937   (eval "$ac_link") 2>conftest.er1
18938   ac_status=$?
18939   grep -v '^ *+' conftest.er1 >conftest.err
18940   rm -f conftest.er1
18941   cat conftest.err >&5
18942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943   (exit $ac_status); } &&
18944          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18945   { (case "(($ac_try" in
18946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18947   *) ac_try_echo=$ac_try;;
18948 esac
18949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18950   (eval "$ac_try") 2>&5
18951   ac_status=$?
18952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953   (exit $ac_status); }; } &&
18954          { ac_try='test -s conftest$ac_exeext'
18955   { (case "(($ac_try" in
18956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18957   *) ac_try_echo=$ac_try;;
18958 esac
18959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18960   (eval "$ac_try") 2>&5
18961   ac_status=$?
18962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963   (exit $ac_status); }; }; then
18964   ac_cv_lib_gcc___main=yes
18965 else
18966   echo "$as_me: failed program was:" >&5
18967 sed 's/^/| /' conftest.$ac_ext >&5
18968
18969         ac_cv_lib_gcc___main=no
18970 fi
18971
18972 rm -f core conftest.err conftest.$ac_objext \
18973       conftest$ac_exeext conftest.$ac_ext
18974 LIBS=$ac_check_lib_save_LIBS
18975 fi
18976 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
18977 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
18978 if test $ac_cv_lib_gcc___main = yes; then
18979
18980 cat >>confdefs.h <<\_ACEOF
18981 #define HAVE___MAIN 1
18982 _ACEOF
18983
18984 fi
18985
18986   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
18987 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
18988 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
18989   echo $ECHO_N "(cached) $ECHO_C" >&6
18990 else
18991   ac_check_lib_save_LIBS=$LIBS
18992 LIBS="-lgcc  $LIBS"
18993 cat >conftest.$ac_ext <<_ACEOF
18994 /* confdefs.h.  */
18995 _ACEOF
18996 cat confdefs.h >>conftest.$ac_ext
18997 cat >>conftest.$ac_ext <<_ACEOF
18998 /* end confdefs.h.  */
18999
19000 /* Override any GCC internal prototype to avoid an error.
19001    Use char because int might match the return type of a GCC
19002    builtin and then its argument prototype would still apply.  */
19003 #ifdef __cplusplus
19004 extern "C"
19005 #endif
19006 char __cmpdi2 ();
19007 int
19008 main ()
19009 {
19010 return __cmpdi2 ();
19011   ;
19012   return 0;
19013 }
19014 _ACEOF
19015 rm -f conftest.$ac_objext conftest$ac_exeext
19016 if { (ac_try="$ac_link"
19017 case "(($ac_try" in
19018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19019   *) ac_try_echo=$ac_try;;
19020 esac
19021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19022   (eval "$ac_link") 2>conftest.er1
19023   ac_status=$?
19024   grep -v '^ *+' conftest.er1 >conftest.err
19025   rm -f conftest.er1
19026   cat conftest.err >&5
19027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028   (exit $ac_status); } &&
19029          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19030   { (case "(($ac_try" in
19031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19032   *) ac_try_echo=$ac_try;;
19033 esac
19034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19035   (eval "$ac_try") 2>&5
19036   ac_status=$?
19037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038   (exit $ac_status); }; } &&
19039          { ac_try='test -s conftest$ac_exeext'
19040   { (case "(($ac_try" in
19041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19042   *) ac_try_echo=$ac_try;;
19043 esac
19044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19045   (eval "$ac_try") 2>&5
19046   ac_status=$?
19047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048   (exit $ac_status); }; }; then
19049   ac_cv_lib_gcc___cmpdi2=yes
19050 else
19051   echo "$as_me: failed program was:" >&5
19052 sed 's/^/| /' conftest.$ac_ext >&5
19053
19054         ac_cv_lib_gcc___cmpdi2=no
19055 fi
19056
19057 rm -f core conftest.err conftest.$ac_objext \
19058       conftest$ac_exeext conftest.$ac_ext
19059 LIBS=$ac_check_lib_save_LIBS
19060 fi
19061 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19062 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19063 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19064
19065 cat >>confdefs.h <<\_ACEOF
19066 #define HAVE___CMPDI2 1
19067 _ACEOF
19068
19069 fi
19070
19071 fi
19072
19073 if test "$llvm_cv_os_type" = "MingW" ; then
19074   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19075 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19076   cat >conftest.$ac_ext <<_ACEOF
19077 #include <windows.h>
19078 #include <imagehlp.h>
19079 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19080 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19081 _ACEOF
19082 rm -f conftest.$ac_objext
19083 if { (ac_try="$ac_compile"
19084 case "(($ac_try" in
19085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19086   *) ac_try_echo=$ac_try;;
19087 esac
19088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19089   (eval "$ac_compile") 2>conftest.er1
19090   ac_status=$?
19091   grep -v '^ *+' conftest.er1 >conftest.err
19092   rm -f conftest.er1
19093   cat conftest.err >&5
19094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095   (exit $ac_status); } &&
19096          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19097   { (case "(($ac_try" in
19098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19099   *) ac_try_echo=$ac_try;;
19100 esac
19101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19102   (eval "$ac_try") 2>&5
19103   ac_status=$?
19104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105   (exit $ac_status); }; } &&
19106          { ac_try='test -s conftest.$ac_objext'
19107   { (case "(($ac_try" in
19108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19109   *) ac_try_echo=$ac_try;;
19110 esac
19111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19112   (eval "$ac_try") 2>&5
19113   ac_status=$?
19114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115   (exit $ac_status); }; }; then
19116
19117   { echo "$as_me:$LINENO: result: yes" >&5
19118 echo "${ECHO_T}yes" >&6; }
19119   llvm_cv_win32_elmcb_pcstr="PCSTR"
19120
19121 else
19122   echo "$as_me: failed program was:" >&5
19123 sed 's/^/| /' conftest.$ac_ext >&5
19124
19125
19126   { echo "$as_me:$LINENO: result: no" >&5
19127 echo "${ECHO_T}no" >&6; }
19128   llvm_cv_win32_elmcb_pcstr="PSTR"
19129
19130 fi
19131
19132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19133
19134 cat >>confdefs.h <<_ACEOF
19135 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19136 _ACEOF
19137
19138 fi
19139
19140
19141 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19142 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19143 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19144   echo $ECHO_N "(cached) $ECHO_C" >&6
19145 else
19146   ac_ext=cpp
19147 ac_cpp='$CXXCPP $CPPFLAGS'
19148 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19149 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19150 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19151
19152    cat >conftest.$ac_ext <<_ACEOF
19153 /* confdefs.h.  */
19154 _ACEOF
19155 cat confdefs.h >>conftest.$ac_ext
19156 cat >>conftest.$ac_ext <<_ACEOF
19157 /* end confdefs.h.  */
19158 #include <math.h>
19159 int
19160 main ()
19161 {
19162 float f; isnan(f);
19163   ;
19164   return 0;
19165 }
19166 _ACEOF
19167 rm -f conftest.$ac_objext
19168 if { (ac_try="$ac_compile"
19169 case "(($ac_try" in
19170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19171   *) ac_try_echo=$ac_try;;
19172 esac
19173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19174   (eval "$ac_compile") 2>conftest.er1
19175   ac_status=$?
19176   grep -v '^ *+' conftest.er1 >conftest.err
19177   rm -f conftest.er1
19178   cat conftest.err >&5
19179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180   (exit $ac_status); } &&
19181          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19182   { (case "(($ac_try" in
19183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184   *) ac_try_echo=$ac_try;;
19185 esac
19186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19187   (eval "$ac_try") 2>&5
19188   ac_status=$?
19189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190   (exit $ac_status); }; } &&
19191          { ac_try='test -s conftest.$ac_objext'
19192   { (case "(($ac_try" in
19193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19194   *) ac_try_echo=$ac_try;;
19195 esac
19196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19197   (eval "$ac_try") 2>&5
19198   ac_status=$?
19199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200   (exit $ac_status); }; }; then
19201   ac_cv_func_isnan_in_math_h=yes
19202 else
19203   echo "$as_me: failed program was:" >&5
19204 sed 's/^/| /' conftest.$ac_ext >&5
19205
19206         ac_cv_func_isnan_in_math_h=no
19207 fi
19208
19209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19210   ac_ext=c
19211 ac_cpp='$CPP $CPPFLAGS'
19212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19215
19216 fi
19217 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19218 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19219
19220
19221 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19222
19223 cat >>confdefs.h <<\_ACEOF
19224 #define HAVE_ISNAN_IN_MATH_H 1
19225 _ACEOF
19226
19227 fi
19228
19229 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19230 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19231 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19232   echo $ECHO_N "(cached) $ECHO_C" >&6
19233 else
19234   ac_ext=cpp
19235 ac_cpp='$CXXCPP $CPPFLAGS'
19236 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19237 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19238 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19239
19240    cat >conftest.$ac_ext <<_ACEOF
19241 /* confdefs.h.  */
19242 _ACEOF
19243 cat confdefs.h >>conftest.$ac_ext
19244 cat >>conftest.$ac_ext <<_ACEOF
19245 /* end confdefs.h.  */
19246 #include <cmath>
19247 int
19248 main ()
19249 {
19250 float f; isnan(f);
19251   ;
19252   return 0;
19253 }
19254 _ACEOF
19255 rm -f conftest.$ac_objext
19256 if { (ac_try="$ac_compile"
19257 case "(($ac_try" in
19258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19259   *) ac_try_echo=$ac_try;;
19260 esac
19261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19262   (eval "$ac_compile") 2>conftest.er1
19263   ac_status=$?
19264   grep -v '^ *+' conftest.er1 >conftest.err
19265   rm -f conftest.er1
19266   cat conftest.err >&5
19267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268   (exit $ac_status); } &&
19269          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19270   { (case "(($ac_try" in
19271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19272   *) ac_try_echo=$ac_try;;
19273 esac
19274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19275   (eval "$ac_try") 2>&5
19276   ac_status=$?
19277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278   (exit $ac_status); }; } &&
19279          { ac_try='test -s conftest.$ac_objext'
19280   { (case "(($ac_try" in
19281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282   *) ac_try_echo=$ac_try;;
19283 esac
19284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19285   (eval "$ac_try") 2>&5
19286   ac_status=$?
19287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288   (exit $ac_status); }; }; then
19289   ac_cv_func_isnan_in_cmath=yes
19290 else
19291   echo "$as_me: failed program was:" >&5
19292 sed 's/^/| /' conftest.$ac_ext >&5
19293
19294         ac_cv_func_isnan_in_cmath=no
19295 fi
19296
19297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19298   ac_ext=c
19299 ac_cpp='$CPP $CPPFLAGS'
19300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19303
19304 fi
19305 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19306 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19307
19308 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19309
19310 cat >>confdefs.h <<\_ACEOF
19311 #define HAVE_ISNAN_IN_CMATH 1
19312 _ACEOF
19313
19314 fi
19315
19316 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19317 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19318 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19319   echo $ECHO_N "(cached) $ECHO_C" >&6
19320 else
19321   ac_ext=cpp
19322 ac_cpp='$CXXCPP $CPPFLAGS'
19323 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19324 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19325 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19326
19327    cat >conftest.$ac_ext <<_ACEOF
19328 /* confdefs.h.  */
19329 _ACEOF
19330 cat confdefs.h >>conftest.$ac_ext
19331 cat >>conftest.$ac_ext <<_ACEOF
19332 /* end confdefs.h.  */
19333 #include <cmath>
19334 int
19335 main ()
19336 {
19337 float f; std::isnan(f);
19338   ;
19339   return 0;
19340 }
19341 _ACEOF
19342 rm -f conftest.$ac_objext
19343 if { (ac_try="$ac_compile"
19344 case "(($ac_try" in
19345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19346   *) ac_try_echo=$ac_try;;
19347 esac
19348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19349   (eval "$ac_compile") 2>conftest.er1
19350   ac_status=$?
19351   grep -v '^ *+' conftest.er1 >conftest.err
19352   rm -f conftest.er1
19353   cat conftest.err >&5
19354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355   (exit $ac_status); } &&
19356          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19357   { (case "(($ac_try" in
19358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19359   *) ac_try_echo=$ac_try;;
19360 esac
19361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19362   (eval "$ac_try") 2>&5
19363   ac_status=$?
19364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365   (exit $ac_status); }; } &&
19366          { ac_try='test -s conftest.$ac_objext'
19367   { (case "(($ac_try" in
19368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19369   *) ac_try_echo=$ac_try;;
19370 esac
19371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19372   (eval "$ac_try") 2>&5
19373   ac_status=$?
19374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375   (exit $ac_status); }; }; then
19376   ac_cv_func_std_isnan_in_cmath=yes
19377 else
19378   echo "$as_me: failed program was:" >&5
19379 sed 's/^/| /' conftest.$ac_ext >&5
19380
19381         ac_cv_func_std_isnan_in_cmath=no
19382 fi
19383
19384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19385   ac_ext=c
19386 ac_cpp='$CPP $CPPFLAGS'
19387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19390
19391 fi
19392 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19393 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19394
19395 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19396
19397 cat >>confdefs.h <<\_ACEOF
19398 #define HAVE_STD_ISNAN_IN_CMATH 1
19399 _ACEOF
19400
19401 fi
19402
19403
19404 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19405 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19406 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19407   echo $ECHO_N "(cached) $ECHO_C" >&6
19408 else
19409   ac_ext=cpp
19410 ac_cpp='$CXXCPP $CPPFLAGS'
19411 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19412 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19413 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19414
19415    cat >conftest.$ac_ext <<_ACEOF
19416 /* confdefs.h.  */
19417 _ACEOF
19418 cat confdefs.h >>conftest.$ac_ext
19419 cat >>conftest.$ac_ext <<_ACEOF
19420 /* end confdefs.h.  */
19421 #include <math.h>
19422 int
19423 main ()
19424 {
19425 float f; isinf(f);
19426   ;
19427   return 0;
19428 }
19429 _ACEOF
19430 rm -f conftest.$ac_objext
19431 if { (ac_try="$ac_compile"
19432 case "(($ac_try" in
19433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19434   *) ac_try_echo=$ac_try;;
19435 esac
19436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19437   (eval "$ac_compile") 2>conftest.er1
19438   ac_status=$?
19439   grep -v '^ *+' conftest.er1 >conftest.err
19440   rm -f conftest.er1
19441   cat conftest.err >&5
19442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443   (exit $ac_status); } &&
19444          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19445   { (case "(($ac_try" in
19446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19447   *) ac_try_echo=$ac_try;;
19448 esac
19449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19450   (eval "$ac_try") 2>&5
19451   ac_status=$?
19452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453   (exit $ac_status); }; } &&
19454          { ac_try='test -s conftest.$ac_objext'
19455   { (case "(($ac_try" in
19456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19457   *) ac_try_echo=$ac_try;;
19458 esac
19459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19460   (eval "$ac_try") 2>&5
19461   ac_status=$?
19462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463   (exit $ac_status); }; }; then
19464   ac_cv_func_isinf_in_math_h=yes
19465 else
19466   echo "$as_me: failed program was:" >&5
19467 sed 's/^/| /' conftest.$ac_ext >&5
19468
19469         ac_cv_func_isinf_in_math_h=no
19470 fi
19471
19472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19473   ac_ext=c
19474 ac_cpp='$CPP $CPPFLAGS'
19475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19478
19479 fi
19480 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19481 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19482
19483 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19484
19485 cat >>confdefs.h <<\_ACEOF
19486 #define HAVE_ISINF_IN_MATH_H 1
19487 _ACEOF
19488
19489 fi
19490
19491 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19492 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19493 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19494   echo $ECHO_N "(cached) $ECHO_C" >&6
19495 else
19496   ac_ext=cpp
19497 ac_cpp='$CXXCPP $CPPFLAGS'
19498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19501
19502    cat >conftest.$ac_ext <<_ACEOF
19503 /* confdefs.h.  */
19504 _ACEOF
19505 cat confdefs.h >>conftest.$ac_ext
19506 cat >>conftest.$ac_ext <<_ACEOF
19507 /* end confdefs.h.  */
19508 #include <cmath>
19509 int
19510 main ()
19511 {
19512 float f; isinf(f);
19513   ;
19514   return 0;
19515 }
19516 _ACEOF
19517 rm -f conftest.$ac_objext
19518 if { (ac_try="$ac_compile"
19519 case "(($ac_try" in
19520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19521   *) ac_try_echo=$ac_try;;
19522 esac
19523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19524   (eval "$ac_compile") 2>conftest.er1
19525   ac_status=$?
19526   grep -v '^ *+' conftest.er1 >conftest.err
19527   rm -f conftest.er1
19528   cat conftest.err >&5
19529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530   (exit $ac_status); } &&
19531          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19532   { (case "(($ac_try" in
19533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19534   *) ac_try_echo=$ac_try;;
19535 esac
19536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19537   (eval "$ac_try") 2>&5
19538   ac_status=$?
19539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540   (exit $ac_status); }; } &&
19541          { ac_try='test -s conftest.$ac_objext'
19542   { (case "(($ac_try" in
19543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19544   *) ac_try_echo=$ac_try;;
19545 esac
19546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19547   (eval "$ac_try") 2>&5
19548   ac_status=$?
19549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550   (exit $ac_status); }; }; then
19551   ac_cv_func_isinf_in_cmath=yes
19552 else
19553   echo "$as_me: failed program was:" >&5
19554 sed 's/^/| /' conftest.$ac_ext >&5
19555
19556         ac_cv_func_isinf_in_cmath=no
19557 fi
19558
19559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19560   ac_ext=c
19561 ac_cpp='$CPP $CPPFLAGS'
19562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19565
19566 fi
19567 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19568 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19569
19570 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19571
19572 cat >>confdefs.h <<\_ACEOF
19573 #define HAVE_ISINF_IN_CMATH 1
19574 _ACEOF
19575
19576 fi
19577
19578 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19579 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19580 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19581   echo $ECHO_N "(cached) $ECHO_C" >&6
19582 else
19583   ac_ext=cpp
19584 ac_cpp='$CXXCPP $CPPFLAGS'
19585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19588
19589    cat >conftest.$ac_ext <<_ACEOF
19590 /* confdefs.h.  */
19591 _ACEOF
19592 cat confdefs.h >>conftest.$ac_ext
19593 cat >>conftest.$ac_ext <<_ACEOF
19594 /* end confdefs.h.  */
19595 #include <cmath>
19596 int
19597 main ()
19598 {
19599 float f; std::isinf(f);
19600   ;
19601   return 0;
19602 }
19603 _ACEOF
19604 rm -f conftest.$ac_objext
19605 if { (ac_try="$ac_compile"
19606 case "(($ac_try" in
19607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19608   *) ac_try_echo=$ac_try;;
19609 esac
19610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19611   (eval "$ac_compile") 2>conftest.er1
19612   ac_status=$?
19613   grep -v '^ *+' conftest.er1 >conftest.err
19614   rm -f conftest.er1
19615   cat conftest.err >&5
19616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617   (exit $ac_status); } &&
19618          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19619   { (case "(($ac_try" in
19620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19621   *) ac_try_echo=$ac_try;;
19622 esac
19623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19624   (eval "$ac_try") 2>&5
19625   ac_status=$?
19626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627   (exit $ac_status); }; } &&
19628          { ac_try='test -s conftest.$ac_objext'
19629   { (case "(($ac_try" in
19630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19631   *) ac_try_echo=$ac_try;;
19632 esac
19633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19634   (eval "$ac_try") 2>&5
19635   ac_status=$?
19636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637   (exit $ac_status); }; }; then
19638   ac_cv_func_std_isinf_in_cmath=yes
19639 else
19640   echo "$as_me: failed program was:" >&5
19641 sed 's/^/| /' conftest.$ac_ext >&5
19642
19643         ac_cv_func_std_isinf_in_cmath=no
19644 fi
19645
19646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19647   ac_ext=c
19648 ac_cpp='$CPP $CPPFLAGS'
19649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19652
19653 fi
19654 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19655 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19656
19657 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19658
19659 cat >>confdefs.h <<\_ACEOF
19660 #define HAVE_STD_ISINF_IN_CMATH 1
19661 _ACEOF
19662
19663 fi
19664
19665 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19666 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19667 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19668   echo $ECHO_N "(cached) $ECHO_C" >&6
19669 else
19670   ac_ext=cpp
19671 ac_cpp='$CXXCPP $CPPFLAGS'
19672 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19673 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19674 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19675
19676    cat >conftest.$ac_ext <<_ACEOF
19677 /* confdefs.h.  */
19678 _ACEOF
19679 cat confdefs.h >>conftest.$ac_ext
19680 cat >>conftest.$ac_ext <<_ACEOF
19681 /* end confdefs.h.  */
19682 #include <ieeefp.h>
19683 int
19684 main ()
19685 {
19686 float f; finite(f);
19687   ;
19688   return 0;
19689 }
19690 _ACEOF
19691 rm -f conftest.$ac_objext
19692 if { (ac_try="$ac_compile"
19693 case "(($ac_try" in
19694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19695   *) ac_try_echo=$ac_try;;
19696 esac
19697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19698   (eval "$ac_compile") 2>conftest.er1
19699   ac_status=$?
19700   grep -v '^ *+' conftest.er1 >conftest.err
19701   rm -f conftest.er1
19702   cat conftest.err >&5
19703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704   (exit $ac_status); } &&
19705          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19706   { (case "(($ac_try" in
19707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19708   *) ac_try_echo=$ac_try;;
19709 esac
19710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19711   (eval "$ac_try") 2>&5
19712   ac_status=$?
19713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714   (exit $ac_status); }; } &&
19715          { ac_try='test -s conftest.$ac_objext'
19716   { (case "(($ac_try" in
19717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19718   *) ac_try_echo=$ac_try;;
19719 esac
19720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19721   (eval "$ac_try") 2>&5
19722   ac_status=$?
19723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724   (exit $ac_status); }; }; then
19725   ac_cv_func_finite_in_ieeefp_h=yes
19726 else
19727   echo "$as_me: failed program was:" >&5
19728 sed 's/^/| /' conftest.$ac_ext >&5
19729
19730         ac_cv_func_finite_in_ieeefp_h=no
19731 fi
19732
19733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19734   ac_ext=c
19735 ac_cpp='$CPP $CPPFLAGS'
19736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19739
19740 fi
19741 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19742 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19743
19744 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19745
19746 cat >>confdefs.h <<\_ACEOF
19747 #define HAVE_FINITE_IN_IEEEFP_H 1
19748 _ACEOF
19749
19750 fi
19751
19752
19753
19754 if test "$llvm_cv_platform_type" = "Unix" ; then
19755
19756
19757 for ac_header in stdlib.h unistd.h
19758 do
19759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19761   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19764   echo $ECHO_N "(cached) $ECHO_C" >&6
19765 fi
19766 ac_res=`eval echo '${'$as_ac_Header'}'`
19767                { echo "$as_me:$LINENO: result: $ac_res" >&5
19768 echo "${ECHO_T}$ac_res" >&6; }
19769 else
19770   # Is the header compilable?
19771 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19772 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19773 cat >conftest.$ac_ext <<_ACEOF
19774 /* confdefs.h.  */
19775 _ACEOF
19776 cat confdefs.h >>conftest.$ac_ext
19777 cat >>conftest.$ac_ext <<_ACEOF
19778 /* end confdefs.h.  */
19779 $ac_includes_default
19780 #include <$ac_header>
19781 _ACEOF
19782 rm -f conftest.$ac_objext
19783 if { (ac_try="$ac_compile"
19784 case "(($ac_try" in
19785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19786   *) ac_try_echo=$ac_try;;
19787 esac
19788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19789   (eval "$ac_compile") 2>conftest.er1
19790   ac_status=$?
19791   grep -v '^ *+' conftest.er1 >conftest.err
19792   rm -f conftest.er1
19793   cat conftest.err >&5
19794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795   (exit $ac_status); } &&
19796          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19797   { (case "(($ac_try" in
19798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799   *) ac_try_echo=$ac_try;;
19800 esac
19801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19802   (eval "$ac_try") 2>&5
19803   ac_status=$?
19804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805   (exit $ac_status); }; } &&
19806          { ac_try='test -s conftest.$ac_objext'
19807   { (case "(($ac_try" in
19808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19809   *) ac_try_echo=$ac_try;;
19810 esac
19811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19812   (eval "$ac_try") 2>&5
19813   ac_status=$?
19814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815   (exit $ac_status); }; }; then
19816   ac_header_compiler=yes
19817 else
19818   echo "$as_me: failed program was:" >&5
19819 sed 's/^/| /' conftest.$ac_ext >&5
19820
19821         ac_header_compiler=no
19822 fi
19823
19824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19825 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19826 echo "${ECHO_T}$ac_header_compiler" >&6; }
19827
19828 # Is the header present?
19829 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19831 cat >conftest.$ac_ext <<_ACEOF
19832 /* confdefs.h.  */
19833 _ACEOF
19834 cat confdefs.h >>conftest.$ac_ext
19835 cat >>conftest.$ac_ext <<_ACEOF
19836 /* end confdefs.h.  */
19837 #include <$ac_header>
19838 _ACEOF
19839 if { (ac_try="$ac_cpp conftest.$ac_ext"
19840 case "(($ac_try" in
19841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19842   *) ac_try_echo=$ac_try;;
19843 esac
19844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19845   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19846   ac_status=$?
19847   grep -v '^ *+' conftest.er1 >conftest.err
19848   rm -f conftest.er1
19849   cat conftest.err >&5
19850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851   (exit $ac_status); } >/dev/null; then
19852   if test -s conftest.err; then
19853     ac_cpp_err=$ac_c_preproc_warn_flag
19854     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19855   else
19856     ac_cpp_err=
19857   fi
19858 else
19859   ac_cpp_err=yes
19860 fi
19861 if test -z "$ac_cpp_err"; then
19862   ac_header_preproc=yes
19863 else
19864   echo "$as_me: failed program was:" >&5
19865 sed 's/^/| /' conftest.$ac_ext >&5
19866
19867   ac_header_preproc=no
19868 fi
19869
19870 rm -f conftest.err conftest.$ac_ext
19871 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19872 echo "${ECHO_T}$ac_header_preproc" >&6; }
19873
19874 # So?  What about this header?
19875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19876   yes:no: )
19877     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19878 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19879     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19880 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19881     ac_header_preproc=yes
19882     ;;
19883   no:yes:* )
19884     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19885 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19886     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19887 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19888     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19889 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19890     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19891 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19892     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19894     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19895 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19896     ( cat <<\_ASBOX
19897 ## ------------------------------ ##
19898 ## Report this to bugs@yourdomain ##
19899 ## ------------------------------ ##
19900 _ASBOX
19901      ) | sed "s/^/$as_me: WARNING:     /" >&2
19902     ;;
19903 esac
19904 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19907   echo $ECHO_N "(cached) $ECHO_C" >&6
19908 else
19909   eval "$as_ac_Header=\$ac_header_preproc"
19910 fi
19911 ac_res=`eval echo '${'$as_ac_Header'}'`
19912                { echo "$as_me:$LINENO: result: $ac_res" >&5
19913 echo "${ECHO_T}$ac_res" >&6; }
19914
19915 fi
19916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19917   cat >>confdefs.h <<_ACEOF
19918 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19919 _ACEOF
19920
19921 fi
19922
19923 done
19924
19925
19926 for ac_func in getpagesize
19927 do
19928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19929 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19931 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19932   echo $ECHO_N "(cached) $ECHO_C" >&6
19933 else
19934   cat >conftest.$ac_ext <<_ACEOF
19935 /* confdefs.h.  */
19936 _ACEOF
19937 cat confdefs.h >>conftest.$ac_ext
19938 cat >>conftest.$ac_ext <<_ACEOF
19939 /* end confdefs.h.  */
19940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19941    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19942 #define $ac_func innocuous_$ac_func
19943
19944 /* System header to define __stub macros and hopefully few prototypes,
19945     which can conflict with char $ac_func (); below.
19946     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19947     <limits.h> exists even on freestanding compilers.  */
19948
19949 #ifdef __STDC__
19950 # include <limits.h>
19951 #else
19952 # include <assert.h>
19953 #endif
19954
19955 #undef $ac_func
19956
19957 /* Override any GCC internal prototype to avoid an error.
19958    Use char because int might match the return type of a GCC
19959    builtin and then its argument prototype would still apply.  */
19960 #ifdef __cplusplus
19961 extern "C"
19962 #endif
19963 char $ac_func ();
19964 /* The GNU C library defines this for functions which it implements
19965     to always fail with ENOSYS.  Some functions are actually named
19966     something starting with __ and the normal name is an alias.  */
19967 #if defined __stub_$ac_func || defined __stub___$ac_func
19968 choke me
19969 #endif
19970
19971 int
19972 main ()
19973 {
19974 return $ac_func ();
19975   ;
19976   return 0;
19977 }
19978 _ACEOF
19979 rm -f conftest.$ac_objext conftest$ac_exeext
19980 if { (ac_try="$ac_link"
19981 case "(($ac_try" in
19982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19983   *) ac_try_echo=$ac_try;;
19984 esac
19985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19986   (eval "$ac_link") 2>conftest.er1
19987   ac_status=$?
19988   grep -v '^ *+' conftest.er1 >conftest.err
19989   rm -f conftest.er1
19990   cat conftest.err >&5
19991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992   (exit $ac_status); } &&
19993          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19994   { (case "(($ac_try" in
19995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996   *) ac_try_echo=$ac_try;;
19997 esac
19998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19999   (eval "$ac_try") 2>&5
20000   ac_status=$?
20001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002   (exit $ac_status); }; } &&
20003          { ac_try='test -s conftest$ac_exeext'
20004   { (case "(($ac_try" in
20005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20006   *) ac_try_echo=$ac_try;;
20007 esac
20008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20009   (eval "$ac_try") 2>&5
20010   ac_status=$?
20011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012   (exit $ac_status); }; }; then
20013   eval "$as_ac_var=yes"
20014 else
20015   echo "$as_me: failed program was:" >&5
20016 sed 's/^/| /' conftest.$ac_ext >&5
20017
20018         eval "$as_ac_var=no"
20019 fi
20020
20021 rm -f core conftest.err conftest.$ac_objext \
20022       conftest$ac_exeext conftest.$ac_ext
20023 fi
20024 ac_res=`eval echo '${'$as_ac_var'}'`
20025                { echo "$as_me:$LINENO: result: $ac_res" >&5
20026 echo "${ECHO_T}$ac_res" >&6; }
20027 if test `eval echo '${'$as_ac_var'}'` = yes; then
20028   cat >>confdefs.h <<_ACEOF
20029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20030 _ACEOF
20031
20032 fi
20033 done
20034
20035 { echo "$as_me:$LINENO: checking for working mmap" >&5
20036 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20037 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20038   echo $ECHO_N "(cached) $ECHO_C" >&6
20039 else
20040   if test "$cross_compiling" = yes; then
20041   ac_cv_func_mmap_fixed_mapped=no
20042 else
20043   cat >conftest.$ac_ext <<_ACEOF
20044 /* confdefs.h.  */
20045 _ACEOF
20046 cat confdefs.h >>conftest.$ac_ext
20047 cat >>conftest.$ac_ext <<_ACEOF
20048 /* end confdefs.h.  */
20049 $ac_includes_default
20050 /* malloc might have been renamed as rpl_malloc. */
20051 #undef malloc
20052
20053 /* Thanks to Mike Haertel and Jim Avera for this test.
20054    Here is a matrix of mmap possibilities:
20055         mmap private not fixed
20056         mmap private fixed at somewhere currently unmapped
20057         mmap private fixed at somewhere already mapped
20058         mmap shared not fixed
20059         mmap shared fixed at somewhere currently unmapped
20060         mmap shared fixed at somewhere already mapped
20061    For private mappings, we should verify that changes cannot be read()
20062    back from the file, nor mmap's back from the file at a different
20063    address.  (There have been systems where private was not correctly
20064    implemented like the infamous i386 svr4.0, and systems where the
20065    VM page cache was not coherent with the file system buffer cache
20066    like early versions of FreeBSD and possibly contemporary NetBSD.)
20067    For shared mappings, we should conversely verify that changes get
20068    propagated back to all the places they're supposed to be.
20069
20070    Grep wants private fixed already mapped.
20071    The main things grep needs to know about mmap are:
20072    * does it exist and is it safe to write into the mmap'd area
20073    * how to use it (BSD variants)  */
20074
20075 #include <fcntl.h>
20076 #include <sys/mman.h>
20077
20078 #if !STDC_HEADERS && !HAVE_STDLIB_H
20079 char *malloc ();
20080 #endif
20081
20082 /* This mess was copied from the GNU getpagesize.h.  */
20083 #if !HAVE_GETPAGESIZE
20084 /* Assume that all systems that can run configure have sys/param.h.  */
20085 # if !HAVE_SYS_PARAM_H
20086 #  define HAVE_SYS_PARAM_H 1
20087 # endif
20088
20089 # ifdef _SC_PAGESIZE
20090 #  define getpagesize() sysconf(_SC_PAGESIZE)
20091 # else /* no _SC_PAGESIZE */
20092 #  if HAVE_SYS_PARAM_H
20093 #   include <sys/param.h>
20094 #   ifdef EXEC_PAGESIZE
20095 #    define getpagesize() EXEC_PAGESIZE
20096 #   else /* no EXEC_PAGESIZE */
20097 #    ifdef NBPG
20098 #     define getpagesize() NBPG * CLSIZE
20099 #     ifndef CLSIZE
20100 #      define CLSIZE 1
20101 #     endif /* no CLSIZE */
20102 #    else /* no NBPG */
20103 #     ifdef NBPC
20104 #      define getpagesize() NBPC
20105 #     else /* no NBPC */
20106 #      ifdef PAGESIZE
20107 #       define getpagesize() PAGESIZE
20108 #      endif /* PAGESIZE */
20109 #     endif /* no NBPC */
20110 #    endif /* no NBPG */
20111 #   endif /* no EXEC_PAGESIZE */
20112 #  else /* no HAVE_SYS_PARAM_H */
20113 #   define getpagesize() 8192   /* punt totally */
20114 #  endif /* no HAVE_SYS_PARAM_H */
20115 # endif /* no _SC_PAGESIZE */
20116
20117 #endif /* no HAVE_GETPAGESIZE */
20118
20119 int
20120 main ()
20121 {
20122   char *data, *data2, *data3;
20123   int i, pagesize;
20124   int fd;
20125
20126   pagesize = getpagesize ();
20127
20128   /* First, make a file with some known garbage in it. */
20129   data = (char *) malloc (pagesize);
20130   if (!data)
20131     return 1;
20132   for (i = 0; i < pagesize; ++i)
20133     *(data + i) = rand ();
20134   umask (0);
20135   fd = creat ("conftest.mmap", 0600);
20136   if (fd < 0)
20137     return 1;
20138   if (write (fd, data, pagesize) != pagesize)
20139     return 1;
20140   close (fd);
20141
20142   /* Next, try to mmap the file at a fixed address which already has
20143      something else allocated at it.  If we can, also make sure that
20144      we see the same garbage.  */
20145   fd = open ("conftest.mmap", O_RDWR);
20146   if (fd < 0)
20147     return 1;
20148   data2 = (char *) malloc (2 * pagesize);
20149   if (!data2)
20150     return 1;
20151   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20152   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20153                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20154     return 1;
20155   for (i = 0; i < pagesize; ++i)
20156     if (*(data + i) != *(data2 + i))
20157       return 1;
20158
20159   /* Finally, make sure that changes to the mapped area do not
20160      percolate back to the file as seen by read().  (This is a bug on
20161      some variants of i386 svr4.0.)  */
20162   for (i = 0; i < pagesize; ++i)
20163     *(data2 + i) = *(data2 + i) + 1;
20164   data3 = (char *) malloc (pagesize);
20165   if (!data3)
20166     return 1;
20167   if (read (fd, data3, pagesize) != pagesize)
20168     return 1;
20169   for (i = 0; i < pagesize; ++i)
20170     if (*(data + i) != *(data3 + i))
20171       return 1;
20172   close (fd);
20173   return 0;
20174 }
20175 _ACEOF
20176 rm -f conftest$ac_exeext
20177 if { (ac_try="$ac_link"
20178 case "(($ac_try" in
20179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20180   *) ac_try_echo=$ac_try;;
20181 esac
20182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20183   (eval "$ac_link") 2>&5
20184   ac_status=$?
20185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20187   { (case "(($ac_try" in
20188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20189   *) ac_try_echo=$ac_try;;
20190 esac
20191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20192   (eval "$ac_try") 2>&5
20193   ac_status=$?
20194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195   (exit $ac_status); }; }; then
20196   ac_cv_func_mmap_fixed_mapped=yes
20197 else
20198   echo "$as_me: program exited with status $ac_status" >&5
20199 echo "$as_me: failed program was:" >&5
20200 sed 's/^/| /' conftest.$ac_ext >&5
20201
20202 ( exit $ac_status )
20203 ac_cv_func_mmap_fixed_mapped=no
20204 fi
20205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20206 fi
20207
20208
20209 fi
20210 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20211 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20212 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20213
20214 cat >>confdefs.h <<\_ACEOF
20215 #define HAVE_MMAP 1
20216 _ACEOF
20217
20218 fi
20219 rm -f conftest.mmap
20220
20221   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20222 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20223 if test "${ac_cv_func_mmap_file+set}" = set; then
20224   echo $ECHO_N "(cached) $ECHO_C" >&6
20225 else
20226    ac_ext=c
20227 ac_cpp='$CPP $CPPFLAGS'
20228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20231
20232   if test "$cross_compiling" = yes; then
20233   ac_cv_func_mmap_file=no
20234 else
20235   cat >conftest.$ac_ext <<_ACEOF
20236
20237     /* confdefs.h.  */
20238 _ACEOF
20239 cat confdefs.h >>conftest.$ac_ext
20240 cat >>conftest.$ac_ext <<_ACEOF
20241 /* end confdefs.h.  */
20242
20243 #include <sys/types.h>
20244 #include <sys/mman.h>
20245 #include <fcntl.h>
20246
20247 int
20248 main ()
20249 {
20250
20251   int fd;
20252   fd = creat ("foo",0777);
20253   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20254   unlink ("foo");
20255   return (fd != (int) MAP_FAILED);
20256   ;
20257   return 0;
20258 }
20259 _ACEOF
20260 rm -f conftest$ac_exeext
20261 if { (ac_try="$ac_link"
20262 case "(($ac_try" in
20263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20264   *) ac_try_echo=$ac_try;;
20265 esac
20266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20267   (eval "$ac_link") 2>&5
20268   ac_status=$?
20269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20271   { (case "(($ac_try" in
20272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20273   *) ac_try_echo=$ac_try;;
20274 esac
20275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20276   (eval "$ac_try") 2>&5
20277   ac_status=$?
20278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279   (exit $ac_status); }; }; then
20280   ac_cv_func_mmap_file=yes
20281 else
20282   echo "$as_me: program exited with status $ac_status" >&5
20283 echo "$as_me: failed program was:" >&5
20284 sed 's/^/| /' conftest.$ac_ext >&5
20285
20286 ( exit $ac_status )
20287 ac_cv_func_mmap_file=no
20288 fi
20289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20290 fi
20291
20292
20293   ac_ext=c
20294 ac_cpp='$CPP $CPPFLAGS'
20295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20298
20299
20300 fi
20301 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20302 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20303 if test "$ac_cv_func_mmap_file" = yes; then
20304
20305 cat >>confdefs.h <<\_ACEOF
20306 #define HAVE_MMAP_FILE
20307 _ACEOF
20308
20309    MMAP_FILE=yes
20310
20311 fi
20312
20313   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20314 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20315 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20316   echo $ECHO_N "(cached) $ECHO_C" >&6
20317 else
20318   if test "$llvm_cv_os_type" = "Interix" ; then
20319    ac_cv_need_dev_zero_for_mmap=yes
20320  else
20321    ac_cv_need_dev_zero_for_mmap=no
20322  fi
20323
20324 fi
20325 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20326 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20327 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20328
20329 cat >>confdefs.h <<\_ACEOF
20330 #define NEED_DEV_ZERO_FOR_MMAP 1
20331 _ACEOF
20332
20333 fi
20334
20335   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20336   then
20337     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20338 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20339   fi
20340   if test "$ac_cv_func_mmap_file" = "no"
20341   then
20342     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20343 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20344   fi
20345 fi
20346
20347 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20348 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20349 ac_ext=cpp
20350 ac_cpp='$CXXCPP $CPPFLAGS'
20351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20354
20355 cat >conftest.$ac_ext <<_ACEOF
20356 /* confdefs.h.  */
20357 _ACEOF
20358 cat confdefs.h >>conftest.$ac_ext
20359 cat >>conftest.$ac_ext <<_ACEOF
20360 /* end confdefs.h.  */
20361 int main() {
20362         volatile unsigned long val = 1;
20363         __sync_synchronize();
20364         __sync_val_compare_and_swap(&val, 1, 0);
20365         __sync_add_and_fetch(&val, 1);
20366         __sync_sub_and_fetch(&val, 1);
20367         return 0;
20368       }
20369
20370 _ACEOF
20371 rm -f conftest.$ac_objext conftest$ac_exeext
20372 if { (ac_try="$ac_link"
20373 case "(($ac_try" in
20374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20375   *) ac_try_echo=$ac_try;;
20376 esac
20377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20378   (eval "$ac_link") 2>conftest.er1
20379   ac_status=$?
20380   grep -v '^ *+' conftest.er1 >conftest.err
20381   rm -f conftest.er1
20382   cat conftest.err >&5
20383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384   (exit $ac_status); } &&
20385          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20386   { (case "(($ac_try" in
20387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20388   *) ac_try_echo=$ac_try;;
20389 esac
20390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20391   (eval "$ac_try") 2>&5
20392   ac_status=$?
20393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394   (exit $ac_status); }; } &&
20395          { ac_try='test -s conftest$ac_exeext'
20396   { (case "(($ac_try" in
20397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20398   *) ac_try_echo=$ac_try;;
20399 esac
20400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20401   (eval "$ac_try") 2>&5
20402   ac_status=$?
20403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404   (exit $ac_status); }; }; then
20405   ac_ext=c
20406 ac_cpp='$CPP $CPPFLAGS'
20407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20410
20411   { echo "$as_me:$LINENO: result: yes" >&5
20412 echo "${ECHO_T}yes" >&6; }
20413
20414 cat >>confdefs.h <<\_ACEOF
20415 #define LLVM_HAS_ATOMICS 1
20416 _ACEOF
20417
20418 else
20419   echo "$as_me: failed program was:" >&5
20420 sed 's/^/| /' conftest.$ac_ext >&5
20421
20422         { echo "$as_me:$LINENO: result: no" >&5
20423 echo "${ECHO_T}no" >&6; }
20424
20425 cat >>confdefs.h <<\_ACEOF
20426 #define LLVM_HAS_ATOMICS 0
20427 _ACEOF
20428
20429   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20430 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20431 fi
20432
20433 rm -f core conftest.err conftest.$ac_objext \
20434       conftest$ac_exeext conftest.$ac_ext
20435
20436
20437 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20438   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20439 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20440 if test "${llvm_cv_linux_mixed+set}" = set; then
20441   echo $ECHO_N "(cached) $ECHO_C" >&6
20442 else
20443    ac_ext=c
20444 ac_cpp='$CPP $CPPFLAGS'
20445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20448
20449   cat >conftest.$ac_ext <<_ACEOF
20450 /* confdefs.h.  */
20451 _ACEOF
20452 cat confdefs.h >>conftest.$ac_ext
20453 cat >>conftest.$ac_ext <<_ACEOF
20454 /* end confdefs.h.  */
20455 #ifndef __x86_64__
20456        error: Not x86-64 even if uname says so!
20457       #endif
20458
20459 int
20460 main ()
20461 {
20462
20463   ;
20464   return 0;
20465 }
20466 _ACEOF
20467 rm -f conftest.$ac_objext
20468 if { (ac_try="$ac_compile"
20469 case "(($ac_try" in
20470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20471   *) ac_try_echo=$ac_try;;
20472 esac
20473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20474   (eval "$ac_compile") 2>conftest.er1
20475   ac_status=$?
20476   grep -v '^ *+' conftest.er1 >conftest.err
20477   rm -f conftest.er1
20478   cat conftest.err >&5
20479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480   (exit $ac_status); } &&
20481          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20482   { (case "(($ac_try" in
20483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20484   *) ac_try_echo=$ac_try;;
20485 esac
20486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20487   (eval "$ac_try") 2>&5
20488   ac_status=$?
20489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490   (exit $ac_status); }; } &&
20491          { ac_try='test -s conftest.$ac_objext'
20492   { (case "(($ac_try" in
20493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20494   *) ac_try_echo=$ac_try;;
20495 esac
20496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20497   (eval "$ac_try") 2>&5
20498   ac_status=$?
20499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500   (exit $ac_status); }; }; then
20501   llvm_cv_linux_mixed=no
20502 else
20503   echo "$as_me: failed program was:" >&5
20504 sed 's/^/| /' conftest.$ac_ext >&5
20505
20506         llvm_cv_linux_mixed=yes
20507 fi
20508
20509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20510   ac_ext=c
20511 ac_cpp='$CPP $CPPFLAGS'
20512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20515
20516
20517 fi
20518 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20519 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20520
20521   if test "$llvm_cv_linux_mixed" = "yes"; then
20522     llvm_cv_target_arch="x86"
20523     ARCH="x86"
20524   fi
20525 fi
20526
20527
20528 for ac_func in __dso_handle
20529 do
20530 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20531 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20533 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20534   echo $ECHO_N "(cached) $ECHO_C" >&6
20535 else
20536   cat >conftest.$ac_ext <<_ACEOF
20537 /* confdefs.h.  */
20538 _ACEOF
20539 cat confdefs.h >>conftest.$ac_ext
20540 cat >>conftest.$ac_ext <<_ACEOF
20541 /* end confdefs.h.  */
20542 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20543    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20544 #define $ac_func innocuous_$ac_func
20545
20546 /* System header to define __stub macros and hopefully few prototypes,
20547     which can conflict with char $ac_func (); below.
20548     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20549     <limits.h> exists even on freestanding compilers.  */
20550
20551 #ifdef __STDC__
20552 # include <limits.h>
20553 #else
20554 # include <assert.h>
20555 #endif
20556
20557 #undef $ac_func
20558
20559 /* Override any GCC internal prototype to avoid an error.
20560    Use char because int might match the return type of a GCC
20561    builtin and then its argument prototype would still apply.  */
20562 #ifdef __cplusplus
20563 extern "C"
20564 #endif
20565 char $ac_func ();
20566 /* The GNU C library defines this for functions which it implements
20567     to always fail with ENOSYS.  Some functions are actually named
20568     something starting with __ and the normal name is an alias.  */
20569 #if defined __stub_$ac_func || defined __stub___$ac_func
20570 choke me
20571 #endif
20572
20573 int
20574 main ()
20575 {
20576 return $ac_func ();
20577   ;
20578   return 0;
20579 }
20580 _ACEOF
20581 rm -f conftest.$ac_objext conftest$ac_exeext
20582 if { (ac_try="$ac_link"
20583 case "(($ac_try" in
20584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20585   *) ac_try_echo=$ac_try;;
20586 esac
20587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20588   (eval "$ac_link") 2>conftest.er1
20589   ac_status=$?
20590   grep -v '^ *+' conftest.er1 >conftest.err
20591   rm -f conftest.er1
20592   cat conftest.err >&5
20593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594   (exit $ac_status); } &&
20595          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20596   { (case "(($ac_try" in
20597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20598   *) ac_try_echo=$ac_try;;
20599 esac
20600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20601   (eval "$ac_try") 2>&5
20602   ac_status=$?
20603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604   (exit $ac_status); }; } &&
20605          { ac_try='test -s conftest$ac_exeext'
20606   { (case "(($ac_try" in
20607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20608   *) ac_try_echo=$ac_try;;
20609 esac
20610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20611   (eval "$ac_try") 2>&5
20612   ac_status=$?
20613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614   (exit $ac_status); }; }; then
20615   eval "$as_ac_var=yes"
20616 else
20617   echo "$as_me: failed program was:" >&5
20618 sed 's/^/| /' conftest.$ac_ext >&5
20619
20620         eval "$as_ac_var=no"
20621 fi
20622
20623 rm -f core conftest.err conftest.$ac_objext \
20624       conftest$ac_exeext conftest.$ac_ext
20625 fi
20626 ac_res=`eval echo '${'$as_ac_var'}'`
20627                { echo "$as_me:$LINENO: result: $ac_res" >&5
20628 echo "${ECHO_T}$ac_res" >&6; }
20629 if test `eval echo '${'$as_ac_var'}'` = yes; then
20630   cat >>confdefs.h <<_ACEOF
20631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20632 _ACEOF
20633
20634 fi
20635 done
20636
20637
20638 SHLIBEXT=$libltdl_cv_shlibext
20639
20640
20641 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20642
20643
20644 # Translate the various configuration directories and other basic
20645 # information into substitutions that will end up in Makefile.config.in
20646 # that these configured values can be used by the makefiles
20647 if test "${prefix}" = "NONE" ; then
20648   prefix="/usr/local"
20649 fi
20650 eval LLVM_PREFIX="${prefix}";
20651 eval LLVM_BINDIR="${prefix}/bin";
20652 eval LLVM_LIBDIR="${prefix}/lib";
20653 eval LLVM_DATADIR="${prefix}/share/llvm";
20654 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20655 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20656 eval LLVM_INCLUDEDIR="${prefix}/include";
20657 eval LLVM_INFODIR="${prefix}/info";
20658 eval LLVM_MANDIR="${prefix}/man";
20659 LLVM_CONFIGTIME=`date`
20660
20661
20662
20663
20664
20665
20666
20667
20668
20669
20670
20671 # Place the various directores into the config.h file as #defines so that we
20672 # can know about the installation paths within LLVM.
20673
20674 cat >>confdefs.h <<_ACEOF
20675 #define LLVM_PREFIX "$LLVM_PREFIX"
20676 _ACEOF
20677
20678
20679 cat >>confdefs.h <<_ACEOF
20680 #define LLVM_BINDIR "$LLVM_BINDIR"
20681 _ACEOF
20682
20683
20684 cat >>confdefs.h <<_ACEOF
20685 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20686 _ACEOF
20687
20688
20689 cat >>confdefs.h <<_ACEOF
20690 #define LLVM_DATADIR "$LLVM_DATADIR"
20691 _ACEOF
20692
20693
20694 cat >>confdefs.h <<_ACEOF
20695 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20696 _ACEOF
20697
20698
20699 cat >>confdefs.h <<_ACEOF
20700 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20701 _ACEOF
20702
20703
20704 cat >>confdefs.h <<_ACEOF
20705 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20706 _ACEOF
20707
20708
20709 cat >>confdefs.h <<_ACEOF
20710 #define LLVM_INFODIR "$LLVM_INFODIR"
20711 _ACEOF
20712
20713
20714 cat >>confdefs.h <<_ACEOF
20715 #define LLVM_MANDIR "$LLVM_MANDIR"
20716 _ACEOF
20717
20718
20719 cat >>confdefs.h <<_ACEOF
20720 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20721 _ACEOF
20722
20723
20724 cat >>confdefs.h <<_ACEOF
20725 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20726 _ACEOF
20727
20728
20729 # Determine which bindings to build.
20730 if test "$BINDINGS_TO_BUILD" = auto ; then
20731   BINDINGS_TO_BUILD=""
20732   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20733     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20734   fi
20735 fi
20736 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20737
20738
20739 # This isn't really configurey, but it avoids having to repeat the list in
20740 # other files.
20741 ALL_BINDINGS=ocaml
20742
20743
20744 # Do any work necessary to ensure that bindings have what they need.
20745 binding_prereqs_failed=0
20746 for a_binding in $BINDINGS_TO_BUILD ; do
20747   case "$a_binding" in
20748   ocaml)
20749     if test "x$OCAMLC" = x ; then
20750       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20751 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20752       binding_prereqs_failed=1
20753     fi
20754     if test "x$OCAMLDEP" = x ; then
20755       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20756 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20757       binding_prereqs_failed=1
20758     fi
20759     if test "x$OCAMLOPT" = x ; then
20760       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20761 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20762           fi
20763     if test "x$with_ocaml_libdir" != xauto ; then
20764       OCAML_LIBDIR=$with_ocaml_libdir
20765
20766     else
20767       ocaml_stdlib="`"$OCAMLC" -where`"
20768       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20769       then
20770         # ocaml stdlib is beneath our prefix; use stdlib
20771         OCAML_LIBDIR=$ocaml_stdlib
20772
20773       else
20774         # ocaml stdlib is outside our prefix; use libdir/ocaml
20775         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20776
20777       fi
20778     fi
20779     ;;
20780   esac
20781 done
20782 if test "$binding_prereqs_failed" = 1 ; then
20783   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20784 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20785    { (exit 1); exit 1; }; }
20786 fi
20787
20788 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20789 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20790 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20791   echo $ECHO_N "(cached) $ECHO_C" >&6
20792 else
20793    ac_ext=cpp
20794 ac_cpp='$CXXCPP $CPPFLAGS'
20795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20796 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20798
20799   oldcxxflags="$CXXFLAGS"
20800   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
20801   cat >conftest.$ac_ext <<_ACEOF
20802 /* confdefs.h.  */
20803 _ACEOF
20804 cat confdefs.h >>conftest.$ac_ext
20805 cat >>conftest.$ac_ext <<_ACEOF
20806 /* end confdefs.h.  */
20807 template <typename T> struct X { void __attribute__((noinline)) f() {} };
20808 int
20809 main ()
20810 {
20811 X<int>().f();
20812   ;
20813   return 0;
20814 }
20815 _ACEOF
20816 rm -f conftest.$ac_objext
20817 if { (ac_try="$ac_compile"
20818 case "(($ac_try" in
20819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20820   *) ac_try_echo=$ac_try;;
20821 esac
20822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20823   (eval "$ac_compile") 2>conftest.er1
20824   ac_status=$?
20825   grep -v '^ *+' conftest.er1 >conftest.err
20826   rm -f conftest.er1
20827   cat conftest.err >&5
20828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829   (exit $ac_status); } &&
20830          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20831   { (case "(($ac_try" in
20832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20833   *) ac_try_echo=$ac_try;;
20834 esac
20835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20836   (eval "$ac_try") 2>&5
20837   ac_status=$?
20838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839   (exit $ac_status); }; } &&
20840          { ac_try='test -s conftest.$ac_objext'
20841   { (case "(($ac_try" in
20842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20843   *) ac_try_echo=$ac_try;;
20844 esac
20845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20846   (eval "$ac_try") 2>&5
20847   ac_status=$?
20848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849   (exit $ac_status); }; }; then
20850   llvm_cv_cxx_visibility_inlines_hidden=yes
20851 else
20852   echo "$as_me: failed program was:" >&5
20853 sed 's/^/| /' conftest.$ac_ext >&5
20854
20855         llvm_cv_cxx_visibility_inlines_hidden=no
20856 fi
20857
20858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20859   CXXFLAGS="$oldcxxflags"
20860   ac_ext=c
20861 ac_cpp='$CPP $CPPFLAGS'
20862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20865
20866
20867 fi
20868 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20869 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20870 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20871   ENABLE_VISIBILITY_INLINES_HIDDEN=1
20872
20873 else
20874   ENABLE_VISIBILITY_INLINES_HIDDEN=0
20875
20876 fi
20877
20878
20879 if test "$llvm_cv_link_use_r" = "yes" ; then
20880   RPATH="-Wl,-R"
20881 else
20882   RPATH="-Wl,-rpath"
20883 fi
20884
20885
20886 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20887   RDYNAMIC="-Wl,-export-dynamic"
20888 else
20889   RDYNAMIC=""
20890 fi
20891
20892
20893
20894
20895 ac_config_files="$ac_config_files Makefile.common"
20896
20897 ac_config_files="$ac_config_files Makefile.llvm.config"
20898
20899
20900 ac_config_commands="$ac_config_commands Makefile"
20901
20902
20903 ac_config_commands="$ac_config_commands lib/Makefile"
20904
20905
20906 ac_config_commands="$ac_config_commands lib/sample/Makefile"
20907
20908
20909 ac_config_commands="$ac_config_commands tools/Makefile"
20910
20911
20912 ac_config_commands="$ac_config_commands tools/sample/Makefile"
20913
20914
20915
20916 cat >confcache <<\_ACEOF
20917 # This file is a shell script that caches the results of configure
20918 # tests run on this system so they can be shared between configure
20919 # scripts and configure runs, see configure's option --config-cache.
20920 # It is not useful on other systems.  If it contains results you don't
20921 # want to keep, you may remove or edit it.
20922 #
20923 # config.status only pays attention to the cache file if you give it
20924 # the --recheck option to rerun configure.
20925 #
20926 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20927 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20928 # following values.
20929
20930 _ACEOF
20931
20932 # The following way of writing the cache mishandles newlines in values,
20933 # but we know of no workaround that is simple, portable, and efficient.
20934 # So, we kill variables containing newlines.
20935 # Ultrix sh set writes to stderr and can't be redirected directly,
20936 # and sets the high bit in the cache file unless we assign to the vars.
20937 (
20938   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20939     eval ac_val=\$$ac_var
20940     case $ac_val in #(
20941     *${as_nl}*)
20942       case $ac_var in #(
20943       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20944 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20945       esac
20946       case $ac_var in #(
20947       _ | IFS | as_nl) ;; #(
20948       *) $as_unset $ac_var ;;
20949       esac ;;
20950     esac
20951   done
20952
20953   (set) 2>&1 |
20954     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20955     *${as_nl}ac_space=\ *)
20956       # `set' does not quote correctly, so add quotes (double-quote
20957       # substitution turns \\\\ into \\, and sed turns \\ into \).
20958       sed -n \
20959         "s/'/'\\\\''/g;
20960           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20961       ;; #(
20962     *)
20963       # `set' quotes correctly as required by POSIX, so do not add quotes.
20964       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20965       ;;
20966     esac |
20967     sort
20968 ) |
20969   sed '
20970      /^ac_cv_env_/b end
20971      t clear
20972      :clear
20973      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20974      t end
20975      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20976      :end' >>confcache
20977 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20978   if test -w "$cache_file"; then
20979     test "x$cache_file" != "x/dev/null" &&
20980       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20981 echo "$as_me: updating cache $cache_file" >&6;}
20982     cat confcache >$cache_file
20983   else
20984     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20985 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20986   fi
20987 fi
20988 rm -f confcache
20989
20990 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20991 # Let make expand exec_prefix.
20992 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20993
20994 # Transform confdefs.h into DEFS.
20995 # Protect against shell expansion while executing Makefile rules.
20996 # Protect against Makefile macro expansion.
20997 #
20998 # If the first sed substitution is executed (which looks for macros that
20999 # take arguments), then branch to the quote section.  Otherwise,
21000 # look for a macro that doesn't take arguments.
21001 ac_script='
21002 t clear
21003 :clear
21004 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
21005 t quote
21006 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
21007 t quote
21008 b any
21009 :quote
21010 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21011 s/\[/\\&/g
21012 s/\]/\\&/g
21013 s/\$/$$/g
21014 H
21015 :any
21016 ${
21017         g
21018         s/^\n//
21019         s/\n/ /g
21020         p
21021 }
21022 '
21023 DEFS=`sed -n "$ac_script" confdefs.h`
21024
21025
21026 ac_libobjs=
21027 ac_ltlibobjs=
21028 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21029   # 1. Remove the extension, and $U if already installed.
21030   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21031   ac_i=`echo "$ac_i" | sed "$ac_script"`
21032   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21033   #    will be set to the directory where LIBOBJS objects are built.
21034   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21035   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21036 done
21037 LIBOBJS=$ac_libobjs
21038
21039 LTLIBOBJS=$ac_ltlibobjs
21040
21041
21042 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21043   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21044 Usually this means the macro was only invoked conditionally." >&5
21045 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21046 Usually this means the macro was only invoked conditionally." >&2;}
21047    { (exit 1); exit 1; }; }
21048 fi
21049 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21050   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21051 Usually this means the macro was only invoked conditionally." >&5
21052 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21053 Usually this means the macro was only invoked conditionally." >&2;}
21054    { (exit 1); exit 1; }; }
21055 fi
21056
21057 : ${CONFIG_STATUS=./config.status}
21058 ac_clean_files_save=$ac_clean_files
21059 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21060 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21061 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21062 cat >$CONFIG_STATUS <<_ACEOF
21063 #! $SHELL
21064 # Generated by $as_me.
21065 # Run this file to recreate the current configuration.
21066 # Compiler output produced by configure, useful for debugging
21067 # configure, is in config.log if it exists.
21068
21069 debug=false
21070 ac_cs_recheck=false
21071 ac_cs_silent=false
21072 SHELL=\${CONFIG_SHELL-$SHELL}
21073 _ACEOF
21074
21075 cat >>$CONFIG_STATUS <<\_ACEOF
21076 ## --------------------- ##
21077 ## M4sh Initialization.  ##
21078 ## --------------------- ##
21079
21080 # Be Bourne compatible
21081 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21082   emulate sh
21083   NULLCMD=:
21084   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21085   # is contrary to our usage.  Disable this feature.
21086   alias -g '${1+"$@"}'='"$@"'
21087   setopt NO_GLOB_SUBST
21088 else
21089   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21090 fi
21091 BIN_SH=xpg4; export BIN_SH # for Tru64
21092 DUALCASE=1; export DUALCASE # for MKS sh
21093
21094
21095 # PATH needs CR
21096 # Avoid depending upon Character Ranges.
21097 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21098 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21099 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21100 as_cr_digits='0123456789'
21101 as_cr_alnum=$as_cr_Letters$as_cr_digits
21102
21103 # The user is always right.
21104 if test "${PATH_SEPARATOR+set}" != set; then
21105   echo "#! /bin/sh" >conf$$.sh
21106   echo  "exit 0"   >>conf$$.sh
21107   chmod +x conf$$.sh
21108   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21109     PATH_SEPARATOR=';'
21110   else
21111     PATH_SEPARATOR=:
21112   fi
21113   rm -f conf$$.sh
21114 fi
21115
21116 # Support unset when possible.
21117 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21118   as_unset=unset
21119 else
21120   as_unset=false
21121 fi
21122
21123
21124 # IFS
21125 # We need space, tab and new line, in precisely that order.  Quoting is
21126 # there to prevent editors from complaining about space-tab.
21127 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21128 # splitting by setting IFS to empty value.)
21129 as_nl='
21130 '
21131 IFS=" ""        $as_nl"
21132
21133 # Find who we are.  Look in the path if we contain no directory separator.
21134 case $0 in
21135   *[\\/]* ) as_myself=$0 ;;
21136   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21137 for as_dir in $PATH
21138 do
21139   IFS=$as_save_IFS
21140   test -z "$as_dir" && as_dir=.
21141   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21142 done
21143 IFS=$as_save_IFS
21144
21145      ;;
21146 esac
21147 # We did not find ourselves, most probably we were run as `sh COMMAND'
21148 # in which case we are not to be found in the path.
21149 if test "x$as_myself" = x; then
21150   as_myself=$0
21151 fi
21152 if test ! -f "$as_myself"; then
21153   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21154   { (exit 1); exit 1; }
21155 fi
21156
21157 # Work around bugs in pre-3.0 UWIN ksh.
21158 for as_var in ENV MAIL MAILPATH
21159 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21160 done
21161 PS1='$ '
21162 PS2='> '
21163 PS4='+ '
21164
21165 # NLS nuisances.
21166 for as_var in \
21167   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21168   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21169   LC_TELEPHONE LC_TIME
21170 do
21171   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21172     eval $as_var=C; export $as_var
21173   else
21174     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21175   fi
21176 done
21177
21178 # Required to use basename.
21179 if expr a : '\(a\)' >/dev/null 2>&1 &&
21180    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21181   as_expr=expr
21182 else
21183   as_expr=false
21184 fi
21185
21186 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21187   as_basename=basename
21188 else
21189   as_basename=false
21190 fi
21191
21192
21193 # Name of the executable.
21194 as_me=`$as_basename -- "$0" ||
21195 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21196          X"$0" : 'X\(//\)$' \| \
21197          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21198 echo X/"$0" |
21199     sed '/^.*\/\([^/][^/]*\)\/*$/{
21200             s//\1/
21201             q
21202           }
21203           /^X\/\(\/\/\)$/{
21204             s//\1/
21205             q
21206           }
21207           /^X\/\(\/\).*/{
21208             s//\1/
21209             q
21210           }
21211           s/.*/./; q'`
21212
21213 # CDPATH.
21214 $as_unset CDPATH
21215
21216
21217
21218   as_lineno_1=$LINENO
21219   as_lineno_2=$LINENO
21220   test "x$as_lineno_1" != "x$as_lineno_2" &&
21221   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21222
21223   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21224   # uniformly replaced by the line number.  The first 'sed' inserts a
21225   # line-number line after each line using $LINENO; the second 'sed'
21226   # does the real work.  The second script uses 'N' to pair each
21227   # line-number line with the line containing $LINENO, and appends
21228   # trailing '-' during substitution so that $LINENO is not a special
21229   # case at line end.
21230   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21231   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21232   # E. McMahon (1931-1989) for sed's syntax.  :-)
21233   sed -n '
21234     p
21235     /[$]LINENO/=
21236   ' <$as_myself |
21237     sed '
21238       s/[$]LINENO.*/&-/
21239       t lineno
21240       b
21241       :lineno
21242       N
21243       :loop
21244       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21245       t loop
21246       s/-\n.*//
21247     ' >$as_me.lineno &&
21248   chmod +x "$as_me.lineno" ||
21249     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21250    { (exit 1); exit 1; }; }
21251
21252   # Don't try to exec as it changes $[0], causing all sort of problems
21253   # (the dirname of $[0] is not the place where we might find the
21254   # original and so on.  Autoconf is especially sensitive to this).
21255   . "./$as_me.lineno"
21256   # Exit status is that of the last command.
21257   exit
21258 }
21259
21260
21261 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21262   as_dirname=dirname
21263 else
21264   as_dirname=false
21265 fi
21266
21267 ECHO_C= ECHO_N= ECHO_T=
21268 case `echo -n x` in
21269 -n*)
21270   case `echo 'x\c'` in
21271   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21272   *)   ECHO_C='\c';;
21273   esac;;
21274 *)
21275   ECHO_N='-n';;
21276 esac
21277
21278 if expr a : '\(a\)' >/dev/null 2>&1 &&
21279    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21280   as_expr=expr
21281 else
21282   as_expr=false
21283 fi
21284
21285 rm -f conf$$ conf$$.exe conf$$.file
21286 if test -d conf$$.dir; then
21287   rm -f conf$$.dir/conf$$.file
21288 else
21289   rm -f conf$$.dir
21290   mkdir conf$$.dir
21291 fi
21292 echo >conf$$.file
21293 if ln -s conf$$.file conf$$ 2>/dev/null; then
21294   as_ln_s='ln -s'
21295   # ... but there are two gotchas:
21296   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21297   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21298   # In both cases, we have to default to `cp -p'.
21299   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21300     as_ln_s='cp -p'
21301 elif ln conf$$.file conf$$ 2>/dev/null; then
21302   as_ln_s=ln
21303 else
21304   as_ln_s='cp -p'
21305 fi
21306 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21307 rmdir conf$$.dir 2>/dev/null
21308
21309 if mkdir -p . 2>/dev/null; then
21310   as_mkdir_p=:
21311 else
21312   test -d ./-p && rmdir ./-p
21313   as_mkdir_p=false
21314 fi
21315
21316 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21317 # systems may use methods other than mode bits to determine executability.
21318 cat >conf$$.file <<_ASEOF
21319 #! /bin/sh
21320 exit 0
21321 _ASEOF
21322 chmod +x conf$$.file
21323 if test -x conf$$.file >/dev/null 2>&1; then
21324   as_executable_p="test -x"
21325 else
21326   as_executable_p=:
21327 fi
21328 rm -f conf$$.file
21329
21330 # Sed expression to map a string onto a valid CPP name.
21331 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21332
21333 # Sed expression to map a string onto a valid variable name.
21334 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21335
21336
21337 exec 6>&1
21338
21339 # Save the log message, to keep $[0] and so on meaningful, and to
21340 # report actual input values of CONFIG_FILES etc. instead of their
21341 # values after options handling.
21342 ac_log="
21343 This file was extended by [SAMPLE] $as_me [x.xx], which was
21344 generated by GNU Autoconf 2.60.  Invocation command line was
21345
21346   CONFIG_FILES    = $CONFIG_FILES
21347   CONFIG_HEADERS  = $CONFIG_HEADERS
21348   CONFIG_LINKS    = $CONFIG_LINKS
21349   CONFIG_COMMANDS = $CONFIG_COMMANDS
21350   $ $0 $@
21351
21352 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21353 "
21354
21355 _ACEOF
21356
21357 cat >>$CONFIG_STATUS <<_ACEOF
21358 # Files that config.status was made for.
21359 config_files="$ac_config_files"
21360 config_commands="$ac_config_commands"
21361
21362 _ACEOF
21363
21364 cat >>$CONFIG_STATUS <<\_ACEOF
21365 ac_cs_usage="\
21366 \`$as_me' instantiates files from templates according to the
21367 current configuration.
21368
21369 Usage: $0 [OPTIONS] [FILE]...
21370
21371   -h, --help       print this help, then exit
21372   -V, --version    print version number, then exit
21373   -q, --quiet      do not print progress messages
21374   -d, --debug      don't remove temporary files
21375       --recheck    update $as_me by reconfiguring in the same conditions
21376   --file=FILE[:TEMPLATE]
21377                    instantiate the configuration file FILE
21378
21379 Configuration files:
21380 $config_files
21381
21382 Configuration commands:
21383 $config_commands
21384
21385 Report bugs to <bug-autoconf@gnu.org>."
21386
21387 _ACEOF
21388 cat >>$CONFIG_STATUS <<_ACEOF
21389 ac_cs_version="\\
21390 [SAMPLE] config.status [x.xx]
21391 configured by $0, generated by GNU Autoconf 2.60,
21392   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21393
21394 Copyright (C) 2006 Free Software Foundation, Inc.
21395 This config.status script is free software; the Free Software Foundation
21396 gives unlimited permission to copy, distribute and modify it."
21397
21398 ac_pwd='$ac_pwd'
21399 srcdir='$srcdir'
21400 INSTALL='$INSTALL'
21401 _ACEOF
21402
21403 cat >>$CONFIG_STATUS <<\_ACEOF
21404 # If no file are specified by the user, then we need to provide default
21405 # value.  By we need to know if files were specified by the user.
21406 ac_need_defaults=:
21407 while test $# != 0
21408 do
21409   case $1 in
21410   --*=*)
21411     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21412     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21413     ac_shift=:
21414     ;;
21415   *)
21416     ac_option=$1
21417     ac_optarg=$2
21418     ac_shift=shift
21419     ;;
21420   esac
21421
21422   case $ac_option in
21423   # Handling of the options.
21424   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21425     ac_cs_recheck=: ;;
21426   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21427     echo "$ac_cs_version"; exit ;;
21428   --debug | --debu | --deb | --de | --d | -d )
21429     debug=: ;;
21430   --file | --fil | --fi | --f )
21431     $ac_shift
21432     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21433     ac_need_defaults=false;;
21434   --he | --h |  --help | --hel | -h )
21435     echo "$ac_cs_usage"; exit ;;
21436   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21437   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21438     ac_cs_silent=: ;;
21439
21440   # This is an error.
21441   -*) { echo "$as_me: error: unrecognized option: $1
21442 Try \`$0 --help' for more information." >&2
21443    { (exit 1); exit 1; }; } ;;
21444
21445   *) ac_config_targets="$ac_config_targets $1"
21446      ac_need_defaults=false ;;
21447
21448   esac
21449   shift
21450 done
21451
21452 ac_configure_extra_args=
21453
21454 if $ac_cs_silent; then
21455   exec 6>/dev/null
21456   ac_configure_extra_args="$ac_configure_extra_args --silent"
21457 fi
21458
21459 _ACEOF
21460 cat >>$CONFIG_STATUS <<_ACEOF
21461 if \$ac_cs_recheck; then
21462   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21463   CONFIG_SHELL=$SHELL
21464   export CONFIG_SHELL
21465   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21466 fi
21467
21468 _ACEOF
21469 cat >>$CONFIG_STATUS <<\_ACEOF
21470 exec 5>>config.log
21471 {
21472   echo
21473   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21474 ## Running $as_me. ##
21475 _ASBOX
21476   echo "$ac_log"
21477 } >&5
21478
21479 _ACEOF
21480 cat >>$CONFIG_STATUS <<_ACEOF
21481 #
21482 # INIT-COMMANDS
21483 #
21484 llvm_src="${LLVM_SRC}"
21485
21486 _ACEOF
21487
21488 cat >>$CONFIG_STATUS <<\_ACEOF
21489
21490 # Handling of arguments.
21491 for ac_config_target in $ac_config_targets
21492 do
21493   case $ac_config_target in
21494     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21495     "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
21496     "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
21497     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21498     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21499     "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21500     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21501     "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21502
21503   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21504 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21505    { (exit 1); exit 1; }; };;
21506   esac
21507 done
21508
21509
21510 # If the user did not use the arguments to specify the items to instantiate,
21511 # then the envvar interface is used.  Set only those that are not.
21512 # We use the long form for the default assignment because of an extremely
21513 # bizarre bug on SunOS 4.1.3.
21514 if $ac_need_defaults; then
21515   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21516   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21517 fi
21518
21519 # Have a temporary directory for convenience.  Make it in the build tree
21520 # simply because there is no reason against having it here, and in addition,
21521 # creating and moving files from /tmp can sometimes cause problems.
21522 # Hook for its removal unless debugging.
21523 # Note that there is a small window in which the directory will not be cleaned:
21524 # after its creation but before its name has been assigned to `$tmp'.
21525 $debug ||
21526 {
21527   tmp=
21528   trap 'exit_status=$?
21529   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21530 ' 0
21531   trap '{ (exit 1); exit 1; }' 1 2 13 15
21532 }
21533 # Create a (secure) tmp directory for tmp files.
21534
21535 {
21536   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21537   test -n "$tmp" && test -d "$tmp"
21538 }  ||
21539 {
21540   tmp=./conf$$-$RANDOM
21541   (umask 077 && mkdir "$tmp")
21542 } ||
21543 {
21544    echo "$me: cannot create a temporary directory in ." >&2
21545    { (exit 1); exit 1; }
21546 }
21547
21548 #
21549 # Set up the sed scripts for CONFIG_FILES section.
21550 #
21551
21552 # No need to generate the scripts if there are no CONFIG_FILES.
21553 # This happens for instance when ./config.status config.h
21554 if test -n "$CONFIG_FILES"; then
21555
21556 _ACEOF
21557
21558
21559
21560 ac_delim='%!_!# '
21561 for ac_last_try in false false false false false :; do
21562   cat >conf$$subs.sed <<_ACEOF
21563 SHELL!$SHELL$ac_delim
21564 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21565 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21566 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21567 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21568 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21569 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21570 exec_prefix!$exec_prefix$ac_delim
21571 prefix!$prefix$ac_delim
21572 program_transform_name!$program_transform_name$ac_delim
21573 bindir!$bindir$ac_delim
21574 sbindir!$sbindir$ac_delim
21575 libexecdir!$libexecdir$ac_delim
21576 datarootdir!$datarootdir$ac_delim
21577 datadir!$datadir$ac_delim
21578 sysconfdir!$sysconfdir$ac_delim
21579 sharedstatedir!$sharedstatedir$ac_delim
21580 localstatedir!$localstatedir$ac_delim
21581 includedir!$includedir$ac_delim
21582 oldincludedir!$oldincludedir$ac_delim
21583 docdir!$docdir$ac_delim
21584 infodir!$infodir$ac_delim
21585 htmldir!$htmldir$ac_delim
21586 dvidir!$dvidir$ac_delim
21587 pdfdir!$pdfdir$ac_delim
21588 psdir!$psdir$ac_delim
21589 libdir!$libdir$ac_delim
21590 localedir!$localedir$ac_delim
21591 mandir!$mandir$ac_delim
21592 DEFS!$DEFS$ac_delim
21593 ECHO_C!$ECHO_C$ac_delim
21594 ECHO_N!$ECHO_N$ac_delim
21595 ECHO_T!$ECHO_T$ac_delim
21596 LIBS!$LIBS$ac_delim
21597 build_alias!$build_alias$ac_delim
21598 host_alias!$host_alias$ac_delim
21599 target_alias!$target_alias$ac_delim
21600 LLVM_SRC!$LLVM_SRC$ac_delim
21601 LLVM_OBJ!$LLVM_OBJ$ac_delim
21602 LLVM_VERSION!$LLVM_VERSION$ac_delim
21603 CC!$CC$ac_delim
21604 CFLAGS!$CFLAGS$ac_delim
21605 LDFLAGS!$LDFLAGS$ac_delim
21606 CPPFLAGS!$CPPFLAGS$ac_delim
21607 ac_ct_CC!$ac_ct_CC$ac_delim
21608 EXEEXT!$EXEEXT$ac_delim
21609 OBJEXT!$OBJEXT$ac_delim
21610 CXX!$CXX$ac_delim
21611 CXXFLAGS!$CXXFLAGS$ac_delim
21612 ac_ct_CXX!$ac_ct_CXX$ac_delim
21613 CPP!$CPP$ac_delim
21614 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21615 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21616 subdirs!$subdirs$ac_delim
21617 build!$build$ac_delim
21618 build_cpu!$build_cpu$ac_delim
21619 build_vendor!$build_vendor$ac_delim
21620 build_os!$build_os$ac_delim
21621 host!$host$ac_delim
21622 host_cpu!$host_cpu$ac_delim
21623 host_vendor!$host_vendor$ac_delim
21624 host_os!$host_os$ac_delim
21625 target!$target$ac_delim
21626 target_cpu!$target_cpu$ac_delim
21627 target_vendor!$target_vendor$ac_delim
21628 target_os!$target_os$ac_delim
21629 OS!$OS$ac_delim
21630 HOST_OS!$HOST_OS$ac_delim
21631 TARGET_OS!$TARGET_OS$ac_delim
21632 LINKALL!$LINKALL$ac_delim
21633 NOLINKALL!$NOLINKALL$ac_delim
21634 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21635 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21636 ARCH!$ARCH$ac_delim
21637 ENDIAN!$ENDIAN$ac_delim
21638 GREP!$GREP$ac_delim
21639 EGREP!$EGREP$ac_delim
21640 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21641 BUILD_CC!$BUILD_CC$ac_delim
21642 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21643 BUILD_CXX!$BUILD_CXX$ac_delim
21644 CVSBUILD!$CVSBUILD$ac_delim
21645 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21646 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21647 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21648 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21649 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21650 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21651 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21652 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21653 JIT!$JIT$ac_delim
21654 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21655 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21656 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21657 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21658 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21659 ENABLE_PIC!$ENABLE_PIC$ac_delim
21660 _ACEOF
21661
21662   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21663     break
21664   elif $ac_last_try; then
21665     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21666 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21667    { (exit 1); exit 1; }; }
21668   else
21669     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21670   fi
21671 done
21672
21673 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21674 if test -n "$ac_eof"; then
21675   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21676   ac_eof=`expr $ac_eof + 1`
21677 fi
21678
21679 cat >>$CONFIG_STATUS <<_ACEOF
21680 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21681 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21682 _ACEOF
21683 sed '
21684 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21685 s/^/s,@/; s/!/@,|#_!!_#|/
21686 :n
21687 t n
21688 s/'"$ac_delim"'$/,g/; t
21689 s/$/\\/; p
21690 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21691 ' >>$CONFIG_STATUS <conf$$subs.sed
21692 rm -f conf$$subs.sed
21693 cat >>$CONFIG_STATUS <<_ACEOF
21694 CEOF$ac_eof
21695 _ACEOF
21696
21697
21698 ac_delim='%!_!# '
21699 for ac_last_try in false false false false false :; do
21700   cat >conf$$subs.sed <<_ACEOF
21701 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21702 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21703 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21704 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21705 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21706 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21707 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21708 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21709 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21710 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21711 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21712 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21713 NM!$NM$ac_delim
21714 ifGNUmake!$ifGNUmake$ac_delim
21715 LN_S!$LN_S$ac_delim
21716 CMP!$CMP$ac_delim
21717 CP!$CP$ac_delim
21718 DATE!$DATE$ac_delim
21719 FIND!$FIND$ac_delim
21720 MKDIR!$MKDIR$ac_delim
21721 MV!$MV$ac_delim
21722 RANLIB!$RANLIB$ac_delim
21723 AR!$AR$ac_delim
21724 RM!$RM$ac_delim
21725 SED!$SED$ac_delim
21726 TAR!$TAR$ac_delim
21727 BINPWD!$BINPWD$ac_delim
21728 GRAPHVIZ!$GRAPHVIZ$ac_delim
21729 DOT!$DOT$ac_delim
21730 FDP!$FDP$ac_delim
21731 NEATO!$NEATO$ac_delim
21732 TWOPI!$TWOPI$ac_delim
21733 CIRCO!$CIRCO$ac_delim
21734 GV!$GV$ac_delim
21735 DOTTY!$DOTTY$ac_delim
21736 XDOT_PY!$XDOT_PY$ac_delim
21737 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21738 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21739 INSTALL_DATA!$INSTALL_DATA$ac_delim
21740 BZIP2!$BZIP2$ac_delim
21741 CAT!$CAT$ac_delim
21742 DOXYGEN!$DOXYGEN$ac_delim
21743 GROFF!$GROFF$ac_delim
21744 GZIPBIN!$GZIPBIN$ac_delim
21745 POD2HTML!$POD2HTML$ac_delim
21746 POD2MAN!$POD2MAN$ac_delim
21747 PDFROFF!$PDFROFF$ac_delim
21748 RUNTEST!$RUNTEST$ac_delim
21749 TCLSH!$TCLSH$ac_delim
21750 ZIP!$ZIP$ac_delim
21751 OCAMLC!$OCAMLC$ac_delim
21752 OCAMLOPT!$OCAMLOPT$ac_delim
21753 OCAMLDEP!$OCAMLDEP$ac_delim
21754 OCAMLDOC!$OCAMLDOC$ac_delim
21755 GAS!$GAS$ac_delim
21756 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21757 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21758 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21759 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21760 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21761 LIBADD_DL!$LIBADD_DL$ac_delim
21762 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21763 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21764 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
21765 USE_UDIS86!$USE_UDIS86$ac_delim
21766 USE_OPROFILE!$USE_OPROFILE$ac_delim
21767 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21768 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21769 MMAP_FILE!$MMAP_FILE$ac_delim
21770 SHLIBEXT!$SHLIBEXT$ac_delim
21771 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21772 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21773 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21774 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21775 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21776 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21777 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21778 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21779 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21780 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21781 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21782 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21783 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21784 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21785 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21786 RPATH!$RPATH$ac_delim
21787 RDYNAMIC!$RDYNAMIC$ac_delim
21788 LIBOBJS!$LIBOBJS$ac_delim
21789 LTLIBOBJS!$LTLIBOBJS$ac_delim
21790 _ACEOF
21791
21792   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
21793     break
21794   elif $ac_last_try; then
21795     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21796 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21797    { (exit 1); exit 1; }; }
21798   else
21799     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21800   fi
21801 done
21802
21803 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21804 if test -n "$ac_eof"; then
21805   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21806   ac_eof=`expr $ac_eof + 1`
21807 fi
21808
21809 cat >>$CONFIG_STATUS <<_ACEOF
21810 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21811 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21812 _ACEOF
21813 sed '
21814 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21815 s/^/s,@/; s/!/@,|#_!!_#|/
21816 :n
21817 t n
21818 s/'"$ac_delim"'$/,g/; t
21819 s/$/\\/; p
21820 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21821 ' >>$CONFIG_STATUS <conf$$subs.sed
21822 rm -f conf$$subs.sed
21823 cat >>$CONFIG_STATUS <<_ACEOF
21824 :end
21825 s/|#_!!_#|//g
21826 CEOF$ac_eof
21827 _ACEOF
21828
21829
21830 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21831 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21832 # trailing colons and then remove the whole line if VPATH becomes empty
21833 # (actually we leave an empty line to preserve line numbers).
21834 if test "x$srcdir" = x.; then
21835   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21836 s/:*\$(srcdir):*/:/
21837 s/:*\${srcdir}:*/:/
21838 s/:*@srcdir@:*/:/
21839 s/^\([^=]*=[     ]*\):*/\1/
21840 s/:*$//
21841 s/^[^=]*=[       ]*$//
21842 }'
21843 fi
21844
21845 cat >>$CONFIG_STATUS <<\_ACEOF
21846 fi # test -n "$CONFIG_FILES"
21847
21848
21849 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
21850 do
21851   case $ac_tag in
21852   :[FHLC]) ac_mode=$ac_tag; continue;;
21853   esac
21854   case $ac_mode$ac_tag in
21855   :[FHL]*:*);;
21856   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21857 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21858    { (exit 1); exit 1; }; };;
21859   :[FH]-) ac_tag=-:-;;
21860   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21861   esac
21862   ac_save_IFS=$IFS
21863   IFS=:
21864   set x $ac_tag
21865   IFS=$ac_save_IFS
21866   shift
21867   ac_file=$1
21868   shift
21869
21870   case $ac_mode in
21871   :L) ac_source=$1;;
21872   :[FH])
21873     ac_file_inputs=
21874     for ac_f
21875     do
21876       case $ac_f in
21877       -) ac_f="$tmp/stdin";;
21878       *) # Look for the file first in the build tree, then in the source tree
21879          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21880          # because $ac_f cannot contain `:'.
21881          test -f "$ac_f" ||
21882            case $ac_f in
21883            [\\/$]*) false;;
21884            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21885            esac ||
21886            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21887 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21888    { (exit 1); exit 1; }; };;
21889       esac
21890       ac_file_inputs="$ac_file_inputs $ac_f"
21891     done
21892
21893     # Let's still pretend it is `configure' which instantiates (i.e., don't
21894     # use $as_me), people would be surprised to read:
21895     #    /* config.h.  Generated by config.status.  */
21896     configure_input="Generated from "`IFS=:
21897           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21898     if test x"$ac_file" != x-; then
21899       configure_input="$ac_file.  $configure_input"
21900       { echo "$as_me:$LINENO: creating $ac_file" >&5
21901 echo "$as_me: creating $ac_file" >&6;}
21902     fi
21903
21904     case $ac_tag in
21905     *:-:* | *:-) cat >"$tmp/stdin";;
21906     esac
21907     ;;
21908   esac
21909
21910   ac_dir=`$as_dirname -- "$ac_file" ||
21911 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21912          X"$ac_file" : 'X\(//\)[^/]' \| \
21913          X"$ac_file" : 'X\(//\)$' \| \
21914          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21915 echo X"$ac_file" |
21916     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21917             s//\1/
21918             q
21919           }
21920           /^X\(\/\/\)[^/].*/{
21921             s//\1/
21922             q
21923           }
21924           /^X\(\/\/\)$/{
21925             s//\1/
21926             q
21927           }
21928           /^X\(\/\).*/{
21929             s//\1/
21930             q
21931           }
21932           s/.*/./; q'`
21933   { as_dir="$ac_dir"
21934   case $as_dir in #(
21935   -*) as_dir=./$as_dir;;
21936   esac
21937   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21938     as_dirs=
21939     while :; do
21940       case $as_dir in #(
21941       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21942       *) as_qdir=$as_dir;;
21943       esac
21944       as_dirs="'$as_qdir' $as_dirs"
21945       as_dir=`$as_dirname -- "$as_dir" ||
21946 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21947          X"$as_dir" : 'X\(//\)[^/]' \| \
21948          X"$as_dir" : 'X\(//\)$' \| \
21949          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21950 echo X"$as_dir" |
21951     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21952             s//\1/
21953             q
21954           }
21955           /^X\(\/\/\)[^/].*/{
21956             s//\1/
21957             q
21958           }
21959           /^X\(\/\/\)$/{
21960             s//\1/
21961             q
21962           }
21963           /^X\(\/\).*/{
21964             s//\1/
21965             q
21966           }
21967           s/.*/./; q'`
21968       test -d "$as_dir" && break
21969     done
21970     test -z "$as_dirs" || eval "mkdir $as_dirs"
21971   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21972 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21973    { (exit 1); exit 1; }; }; }
21974   ac_builddir=.
21975
21976 case "$ac_dir" in
21977 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21978 *)
21979   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21980   # A ".." for each directory in $ac_dir_suffix.
21981   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21982   case $ac_top_builddir_sub in
21983   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21984   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21985   esac ;;
21986 esac
21987 ac_abs_top_builddir=$ac_pwd
21988 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21989 # for backward compatibility:
21990 ac_top_builddir=$ac_top_build_prefix
21991
21992 case $srcdir in
21993   .)  # We are building in place.
21994     ac_srcdir=.
21995     ac_top_srcdir=$ac_top_builddir_sub
21996     ac_abs_top_srcdir=$ac_pwd ;;
21997   [\\/]* | ?:[\\/]* )  # Absolute name.
21998     ac_srcdir=$srcdir$ac_dir_suffix;
21999     ac_top_srcdir=$srcdir
22000     ac_abs_top_srcdir=$srcdir ;;
22001   *) # Relative name.
22002     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22003     ac_top_srcdir=$ac_top_build_prefix$srcdir
22004     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22005 esac
22006 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22007
22008
22009   case $ac_mode in
22010   :F)
22011   #
22012   # CONFIG_FILE
22013   #
22014
22015   case $INSTALL in
22016   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22017   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22018   esac
22019 _ACEOF
22020
22021 cat >>$CONFIG_STATUS <<\_ACEOF
22022 # If the template does not know about datarootdir, expand it.
22023 # FIXME: This hack should be removed a few years after 2.60.
22024 ac_datarootdir_hack=; ac_datarootdir_seen=
22025
22026 case `sed -n '/datarootdir/ {
22027   p
22028   q
22029 }
22030 /@datadir@/p
22031 /@docdir@/p
22032 /@infodir@/p
22033 /@localedir@/p
22034 /@mandir@/p
22035 ' $ac_file_inputs` in
22036 *datarootdir*) ac_datarootdir_seen=yes;;
22037 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22038   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22039 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22040 _ACEOF
22041 cat >>$CONFIG_STATUS <<_ACEOF
22042   ac_datarootdir_hack='
22043   s&@datadir@&$datadir&g
22044   s&@docdir@&$docdir&g
22045   s&@infodir@&$infodir&g
22046   s&@localedir@&$localedir&g
22047   s&@mandir@&$mandir&g
22048     s&\\\${datarootdir}&$datarootdir&g' ;;
22049 esac
22050 _ACEOF
22051
22052 # Neutralize VPATH when `$srcdir' = `.'.
22053 # Shell code in configure.ac might set extrasub.
22054 # FIXME: do we really want to maintain this feature?
22055 cat >>$CONFIG_STATUS <<_ACEOF
22056   sed "$ac_vpsub
22057 $extrasub
22058 _ACEOF
22059 cat >>$CONFIG_STATUS <<\_ACEOF
22060 :t
22061 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22062 s&@configure_input@&$configure_input&;t t
22063 s&@top_builddir@&$ac_top_builddir_sub&;t t
22064 s&@srcdir@&$ac_srcdir&;t t
22065 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22066 s&@top_srcdir@&$ac_top_srcdir&;t t
22067 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22068 s&@builddir@&$ac_builddir&;t t
22069 s&@abs_builddir@&$ac_abs_builddir&;t t
22070 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22071 s&@INSTALL@&$ac_INSTALL&;t t
22072 $ac_datarootdir_hack
22073 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22074
22075 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22076   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22077   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22078   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22079 which seems to be undefined.  Please make sure it is defined." >&5
22080 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22081 which seems to be undefined.  Please make sure it is defined." >&2;}
22082
22083   rm -f "$tmp/stdin"
22084   case $ac_file in
22085   -) cat "$tmp/out"; rm -f "$tmp/out";;
22086   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22087   esac
22088  ;;
22089
22090
22091   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22092 echo "$as_me: executing $ac_file commands" >&6;}
22093  ;;
22094   esac
22095
22096
22097   case $ac_file$ac_mode in
22098     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22099    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22100     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22101    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22102     "lib/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22103    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22104     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22105    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22106     "tools/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22107    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22108
22109   esac
22110 done # for ac_tag
22111
22112
22113 { (exit 0); exit 0; }
22114 _ACEOF
22115 chmod +x $CONFIG_STATUS
22116 ac_clean_files=$ac_clean_files_save
22117
22118
22119 # configure is writing to config.log, and then calls config.status.
22120 # config.status does its own redirection, appending to config.log.
22121 # Unfortunately, on DOS this fails, as config.log is still kept open
22122 # by configure, so config.status won't be able to write to it; its
22123 # output is simply discarded.  So we exec the FD to /dev/null,
22124 # effectively closing config.log, so it can be properly (re)opened and
22125 # appended to by config.status.  When coming back to configure, we
22126 # need to make the FD available again.
22127 if test "$no_create" != yes; then
22128   ac_cs_success=:
22129   ac_config_status_args=
22130   test "$silent" = yes &&
22131     ac_config_status_args="$ac_config_status_args --quiet"
22132   exec 5>/dev/null
22133   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22134   exec 5>>config.log
22135   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22136   # would make configure fail if this is the last instruction.
22137   $ac_cs_success || { (exit 1); exit 1; }
22138 fi
22139
22140 #
22141 # CONFIG_SUBDIRS section.
22142 #
22143 if test "$no_recursion" != yes; then
22144
22145   # Remove --cache-file and --srcdir arguments so they do not pile up.
22146   ac_sub_configure_args=
22147   ac_prev=
22148   eval "set x $ac_configure_args"
22149   shift
22150   for ac_arg
22151   do
22152     if test -n "$ac_prev"; then
22153       ac_prev=
22154       continue
22155     fi
22156     case $ac_arg in
22157     -cache-file | --cache-file | --cache-fil | --cache-fi \
22158     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22159       ac_prev=cache_file ;;
22160     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22161     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22162     | --c=*)
22163       ;;
22164     --config-cache | -C)
22165       ;;
22166     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22167       ac_prev=srcdir ;;
22168     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22169       ;;
22170     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22171       ac_prev=prefix ;;
22172     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22173       ;;
22174     *)
22175       case $ac_arg in
22176       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22177       esac
22178       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22179     esac
22180   done
22181
22182   # Always prepend --prefix to ensure using the same prefix
22183   # in subdir configurations.
22184   ac_arg="--prefix=$prefix"
22185   case $ac_arg in
22186   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22187   esac
22188   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22189
22190   ac_popdir=`pwd`
22191   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22192
22193     # Do not complain, so a configure script can configure whichever
22194     # parts of a large source tree are present.
22195     test -d "$srcdir/$ac_dir" || continue
22196
22197     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22198     echo "$as_me:$LINENO: $ac_msg" >&5
22199     echo "$ac_msg" >&6
22200     { as_dir="$ac_dir"
22201   case $as_dir in #(
22202   -*) as_dir=./$as_dir;;
22203   esac
22204   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22205     as_dirs=
22206     while :; do
22207       case $as_dir in #(
22208       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22209       *) as_qdir=$as_dir;;
22210       esac
22211       as_dirs="'$as_qdir' $as_dirs"
22212       as_dir=`$as_dirname -- "$as_dir" ||
22213 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22214          X"$as_dir" : 'X\(//\)[^/]' \| \
22215          X"$as_dir" : 'X\(//\)$' \| \
22216          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22217 echo X"$as_dir" |
22218     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22219             s//\1/
22220             q
22221           }
22222           /^X\(\/\/\)[^/].*/{
22223             s//\1/
22224             q
22225           }
22226           /^X\(\/\/\)$/{
22227             s//\1/
22228             q
22229           }
22230           /^X\(\/\).*/{
22231             s//\1/
22232             q
22233           }
22234           s/.*/./; q'`
22235       test -d "$as_dir" && break
22236     done
22237     test -z "$as_dirs" || eval "mkdir $as_dirs"
22238   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22239 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22240    { (exit 1); exit 1; }; }; }
22241     ac_builddir=.
22242
22243 case "$ac_dir" in
22244 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22245 *)
22246   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22247   # A ".." for each directory in $ac_dir_suffix.
22248   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22249   case $ac_top_builddir_sub in
22250   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22251   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22252   esac ;;
22253 esac
22254 ac_abs_top_builddir=$ac_pwd
22255 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22256 # for backward compatibility:
22257 ac_top_builddir=$ac_top_build_prefix
22258
22259 case $srcdir in
22260   .)  # We are building in place.
22261     ac_srcdir=.
22262     ac_top_srcdir=$ac_top_builddir_sub
22263     ac_abs_top_srcdir=$ac_pwd ;;
22264   [\\/]* | ?:[\\/]* )  # Absolute name.
22265     ac_srcdir=$srcdir$ac_dir_suffix;
22266     ac_top_srcdir=$srcdir
22267     ac_abs_top_srcdir=$srcdir ;;
22268   *) # Relative name.
22269     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22270     ac_top_srcdir=$ac_top_build_prefix$srcdir
22271     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22272 esac
22273 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22274
22275
22276     cd "$ac_dir"
22277
22278     # Check for guested configure; otherwise get Cygnus style configure.
22279     if test -f "$ac_srcdir/configure.gnu"; then
22280       ac_sub_configure=$ac_srcdir/configure.gnu
22281     elif test -f "$ac_srcdir/configure"; then
22282       ac_sub_configure=$ac_srcdir/configure
22283     elif test -f "$ac_srcdir/configure.in"; then
22284       # This should be Cygnus configure.
22285       ac_sub_configure=$ac_aux_dir/configure
22286     else
22287       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22288 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22289       ac_sub_configure=
22290     fi
22291
22292     # The recursion is here.
22293     if test -n "$ac_sub_configure"; then
22294       # Make the cache file name correct relative to the subdirectory.
22295       case $cache_file in
22296       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22297       *) # Relative name.
22298         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22299       esac
22300
22301       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22302 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22303       # The eval makes quoting arguments work.
22304       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22305            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22306         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22307 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22308    { (exit 1); exit 1; }; }
22309     fi
22310
22311     cd "$ac_popdir"
22312   done
22313 fi
22314