DataFlowSanitizer: Factor the wrapper builder out to buildWrapperFunction.
[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_CXX11
687 ENABLE_OPTIMIZED
688 ENABLE_PROFILING
689 DISABLE_ASSERTIONS
690 ENABLE_WERROR
691 ENABLE_EXPENSIVE_CHECKS
692 EXPENSIVE_CHECKS
693 DEBUG_RUNTIME
694 DEBUG_SYMBOLS
695 JIT
696 TARGET_HAS_JIT
697 ENABLE_DOCS
698 ENABLE_DOXYGEN
699 ENABLE_THREADS
700 ENABLE_PTHREADS
701 LLVM_ENABLE_ZLIB
702 ENABLE_PIC
703 ENABLE_SHARED
704 ENABLE_EMBED_STDCXX
705 ENABLE_TIMESTAMPS
706 TARGETS_TO_BUILD
707 LLVM_ENUM_TARGETS
708 LLVM_ENUM_ASM_PRINTERS
709 LLVM_ENUM_ASM_PARSERS
710 LLVM_ENUM_DISASSEMBLERS
711 OPTIMIZE_OPTION
712 EXTRA_OPTIONS
713 EXTRA_LD_OPTIONS
714 BINUTILS_INCDIR
715 NM
716 ifGNUmake
717 LN_S
718 CMP
719 CP
720 DATE
721 FIND
722 MKDIR
723 MV
724 RANLIB
725 AR
726 RM
727 SED
728 TAR
729 BINPWD
730 GRAPHVIZ
731 DOT
732 FDP
733 NEATO
734 TWOPI
735 CIRCO
736 GV
737 DOTTY
738 XDOT_PY
739 INSTALL_PROGRAM
740 INSTALL_SCRIPT
741 INSTALL_DATA
742 BZIP2
743 CAT
744 DOXYGEN
745 GROFF
746 GZIPBIN
747 POD2HTML
748 POD2MAN
749 PDFROFF
750 RUNTEST
751 TCLSH
752 ZIP
753 OCAMLC
754 OCAMLOPT
755 OCAMLDEP
756 OCAMLDOC
757 GAS
758 HAVE_LINK_VERSION_SCRIPT
759 INSTALL_LTDL_TRUE
760 INSTALL_LTDL_FALSE
761 CONVENIENCE_LTDL_TRUE
762 CONVENIENCE_LTDL_FALSE
763 LIBADD_DL
764 NO_VARIADIC_MACROS
765 NO_MISSING_FIELD_INITIALIZERS
766 COVERED_SWITCH_DEFAULT
767 USE_UDIS86
768 USE_OPROFILE
769 HAVE_PTHREAD
770 HAVE_LIBZ
771 HUGE_VAL_SANITY
772 MMAP_FILE
773 SHLIBEXT
774 SHLIBPATH_VAR
775 LLVM_PREFIX
776 LLVM_BINDIR
777 LLVM_DATADIR
778 LLVM_DOCSDIR
779 LLVM_ETCDIR
780 LLVM_INCLUDEDIR
781 LLVM_INFODIR
782 LLVM_MANDIR
783 LLVM_CONFIGTIME
784 BINDINGS_TO_BUILD
785 ALL_BINDINGS
786 OCAML_LIBDIR
787 ENABLE_VISIBILITY_INLINES_HIDDEN
788 RPATH
789 RDYNAMIC
790 LIBOBJS
791 LTLIBOBJS'
792 ac_subst_files=''
793       ac_precious_vars='build_alias
794 host_alias
795 target_alias
796 CC
797 CFLAGS
798 LDFLAGS
799 CPPFLAGS
800 CXX
801 CXXFLAGS
802 CCC
803 CPP'
804 ac_subdirs_all='tools/polly'
805
806 # Initialize some variables set by options.
807 ac_init_help=
808 ac_init_version=false
809 # The variables have the same names as the options, with
810 # dashes changed to underlines.
811 cache_file=/dev/null
812 exec_prefix=NONE
813 no_create=
814 no_recursion=
815 prefix=NONE
816 program_prefix=NONE
817 program_suffix=NONE
818 program_transform_name=s,x,x,
819 silent=
820 site=
821 srcdir=
822 verbose=
823 x_includes=NONE
824 x_libraries=NONE
825
826 # Installation directory options.
827 # These are left unexpanded so users can "make install exec_prefix=/foo"
828 # and all the variables that are supposed to be based on exec_prefix
829 # by default will actually change.
830 # Use braces instead of parens because sh, perl, etc. also accept them.
831 # (The list follows the same order as the GNU Coding Standards.)
832 bindir='${exec_prefix}/bin'
833 sbindir='${exec_prefix}/sbin'
834 libexecdir='${exec_prefix}/libexec'
835 datarootdir='${prefix}/share'
836 datadir='${datarootdir}'
837 sysconfdir='${prefix}/etc'
838 sharedstatedir='${prefix}/com'
839 localstatedir='${prefix}/var'
840 includedir='${prefix}/include'
841 oldincludedir='/usr/include'
842 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
843 infodir='${datarootdir}/info'
844 htmldir='${docdir}'
845 dvidir='${docdir}'
846 pdfdir='${docdir}'
847 psdir='${docdir}'
848 libdir='${exec_prefix}/lib'
849 localedir='${datarootdir}/locale'
850 mandir='${datarootdir}/man'
851
852 ac_prev=
853 ac_dashdash=
854 for ac_option
855 do
856   # If the previous option needs an argument, assign it.
857   if test -n "$ac_prev"; then
858     eval $ac_prev=\$ac_option
859     ac_prev=
860     continue
861   fi
862
863   case $ac_option in
864   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
865   *)    ac_optarg=yes ;;
866   esac
867
868   # Accept the important Cygnus configure options, so we can diagnose typos.
869
870   case $ac_dashdash$ac_option in
871   --)
872     ac_dashdash=yes ;;
873
874   -bindir | --bindir | --bindi | --bind | --bin | --bi)
875     ac_prev=bindir ;;
876   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
877     bindir=$ac_optarg ;;
878
879   -build | --build | --buil | --bui | --bu)
880     ac_prev=build_alias ;;
881   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
882     build_alias=$ac_optarg ;;
883
884   -cache-file | --cache-file | --cache-fil | --cache-fi \
885   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
886     ac_prev=cache_file ;;
887   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
888   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
889     cache_file=$ac_optarg ;;
890
891   --config-cache | -C)
892     cache_file=config.cache ;;
893
894   -datadir | --datadir | --datadi | --datad)
895     ac_prev=datadir ;;
896   -datadir=* | --datadir=* | --datadi=* | --datad=*)
897     datadir=$ac_optarg ;;
898
899   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
900   | --dataroo | --dataro | --datar)
901     ac_prev=datarootdir ;;
902   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
903   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
904     datarootdir=$ac_optarg ;;
905
906   -disable-* | --disable-*)
907     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
908     # Reject names that are not valid shell variable names.
909     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
910       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
911    { (exit 1); exit 1; }; }
912     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
913     eval enable_$ac_feature=no ;;
914
915   -docdir | --docdir | --docdi | --doc | --do)
916     ac_prev=docdir ;;
917   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
918     docdir=$ac_optarg ;;
919
920   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
921     ac_prev=dvidir ;;
922   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
923     dvidir=$ac_optarg ;;
924
925   -enable-* | --enable-*)
926     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
927     # Reject names that are not valid shell variable names.
928     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
929       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
930    { (exit 1); exit 1; }; }
931     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
932     eval enable_$ac_feature=\$ac_optarg ;;
933
934   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936   | --exec | --exe | --ex)
937     ac_prev=exec_prefix ;;
938   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940   | --exec=* | --exe=* | --ex=*)
941     exec_prefix=$ac_optarg ;;
942
943   -gas | --gas | --ga | --g)
944     # Obsolete; use --with-gas.
945     with_gas=yes ;;
946
947   -help | --help | --hel | --he | -h)
948     ac_init_help=long ;;
949   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950     ac_init_help=recursive ;;
951   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952     ac_init_help=short ;;
953
954   -host | --host | --hos | --ho)
955     ac_prev=host_alias ;;
956   -host=* | --host=* | --hos=* | --ho=*)
957     host_alias=$ac_optarg ;;
958
959   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960     ac_prev=htmldir ;;
961   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962   | --ht=*)
963     htmldir=$ac_optarg ;;
964
965   -includedir | --includedir | --includedi | --included | --include \
966   | --includ | --inclu | --incl | --inc)
967     ac_prev=includedir ;;
968   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969   | --includ=* | --inclu=* | --incl=* | --inc=*)
970     includedir=$ac_optarg ;;
971
972   -infodir | --infodir | --infodi | --infod | --info | --inf)
973     ac_prev=infodir ;;
974   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
975     infodir=$ac_optarg ;;
976
977   -libdir | --libdir | --libdi | --libd)
978     ac_prev=libdir ;;
979   -libdir=* | --libdir=* | --libdi=* | --libd=*)
980     libdir=$ac_optarg ;;
981
982   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983   | --libexe | --libex | --libe)
984     ac_prev=libexecdir ;;
985   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986   | --libexe=* | --libex=* | --libe=*)
987     libexecdir=$ac_optarg ;;
988
989   -localedir | --localedir | --localedi | --localed | --locale)
990     ac_prev=localedir ;;
991   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992     localedir=$ac_optarg ;;
993
994   -localstatedir | --localstatedir | --localstatedi | --localstated \
995   | --localstate | --localstat | --localsta | --localst | --locals)
996     ac_prev=localstatedir ;;
997   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
998   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
999     localstatedir=$ac_optarg ;;
1000
1001   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002     ac_prev=mandir ;;
1003   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1004     mandir=$ac_optarg ;;
1005
1006   -nfp | --nfp | --nf)
1007     # Obsolete; use --without-fp.
1008     with_fp=no ;;
1009
1010   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011   | --no-cr | --no-c | -n)
1012     no_create=yes ;;
1013
1014   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016     no_recursion=yes ;;
1017
1018   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020   | --oldin | --oldi | --old | --ol | --o)
1021     ac_prev=oldincludedir ;;
1022   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1025     oldincludedir=$ac_optarg ;;
1026
1027   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028     ac_prev=prefix ;;
1029   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1030     prefix=$ac_optarg ;;
1031
1032   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033   | --program-pre | --program-pr | --program-p)
1034     ac_prev=program_prefix ;;
1035   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1037     program_prefix=$ac_optarg ;;
1038
1039   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040   | --program-suf | --program-su | --program-s)
1041     ac_prev=program_suffix ;;
1042   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1044     program_suffix=$ac_optarg ;;
1045
1046   -program-transform-name | --program-transform-name \
1047   | --program-transform-nam | --program-transform-na \
1048   | --program-transform-n | --program-transform- \
1049   | --program-transform | --program-transfor \
1050   | --program-transfo | --program-transf \
1051   | --program-trans | --program-tran \
1052   | --progr-tra | --program-tr | --program-t)
1053     ac_prev=program_transform_name ;;
1054   -program-transform-name=* | --program-transform-name=* \
1055   | --program-transform-nam=* | --program-transform-na=* \
1056   | --program-transform-n=* | --program-transform-=* \
1057   | --program-transform=* | --program-transfor=* \
1058   | --program-transfo=* | --program-transf=* \
1059   | --program-trans=* | --program-tran=* \
1060   | --progr-tra=* | --program-tr=* | --program-t=*)
1061     program_transform_name=$ac_optarg ;;
1062
1063   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064     ac_prev=pdfdir ;;
1065   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066     pdfdir=$ac_optarg ;;
1067
1068   -psdir | --psdir | --psdi | --psd | --ps)
1069     ac_prev=psdir ;;
1070   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071     psdir=$ac_optarg ;;
1072
1073   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074   | -silent | --silent | --silen | --sile | --sil)
1075     silent=yes ;;
1076
1077   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078     ac_prev=sbindir ;;
1079   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080   | --sbi=* | --sb=*)
1081     sbindir=$ac_optarg ;;
1082
1083   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085   | --sharedst | --shareds | --shared | --share | --shar \
1086   | --sha | --sh)
1087     ac_prev=sharedstatedir ;;
1088   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091   | --sha=* | --sh=*)
1092     sharedstatedir=$ac_optarg ;;
1093
1094   -site | --site | --sit)
1095     ac_prev=site ;;
1096   -site=* | --site=* | --sit=*)
1097     site=$ac_optarg ;;
1098
1099   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100     ac_prev=srcdir ;;
1101   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1102     srcdir=$ac_optarg ;;
1103
1104   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105   | --syscon | --sysco | --sysc | --sys | --sy)
1106     ac_prev=sysconfdir ;;
1107   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1109     sysconfdir=$ac_optarg ;;
1110
1111   -target | --target | --targe | --targ | --tar | --ta | --t)
1112     ac_prev=target_alias ;;
1113   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1114     target_alias=$ac_optarg ;;
1115
1116   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117     verbose=yes ;;
1118
1119   -version | --version | --versio | --versi | --vers | -V)
1120     ac_init_version=: ;;
1121
1122   -with-* | --with-*)
1123     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1124     # Reject names that are not valid shell variable names.
1125     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1126       { echo "$as_me: error: invalid package name: $ac_package" >&2
1127    { (exit 1); exit 1; }; }
1128     ac_package=`echo $ac_package| sed 's/-/_/g'`
1129     eval with_$ac_package=\$ac_optarg ;;
1130
1131   -without-* | --without-*)
1132     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1133     # Reject names that are not valid shell variable names.
1134     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1135       { echo "$as_me: error: invalid package name: $ac_package" >&2
1136    { (exit 1); exit 1; }; }
1137     ac_package=`echo $ac_package | sed 's/-/_/g'`
1138     eval with_$ac_package=no ;;
1139
1140   --x)
1141     # Obsolete; use --with-x.
1142     with_x=yes ;;
1143
1144   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1145   | --x-incl | --x-inc | --x-in | --x-i)
1146     ac_prev=x_includes ;;
1147   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1148   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1149     x_includes=$ac_optarg ;;
1150
1151   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1152   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1153     ac_prev=x_libraries ;;
1154   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1155   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1156     x_libraries=$ac_optarg ;;
1157
1158   -*) { echo "$as_me: error: unrecognized option: $ac_option
1159 Try \`$0 --help' for more information." >&2
1160    { (exit 1); exit 1; }; }
1161     ;;
1162
1163   *=*)
1164     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1165     # Reject names that are not valid shell variable names.
1166     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1167       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1168    { (exit 1); exit 1; }; }
1169     eval $ac_envvar=\$ac_optarg
1170     export $ac_envvar ;;
1171
1172   *)
1173     # FIXME: should be removed in autoconf 3.0.
1174     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1175     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1176       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1177     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1178     ;;
1179
1180   esac
1181 done
1182
1183 if test -n "$ac_prev"; then
1184   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1185   { echo "$as_me: error: missing argument to $ac_option" >&2
1186    { (exit 1); exit 1; }; }
1187 fi
1188
1189 # Be sure to have absolute directory names.
1190 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1191                 datadir sysconfdir sharedstatedir localstatedir includedir \
1192                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1193                 libdir localedir mandir
1194 do
1195   eval ac_val=\$$ac_var
1196   case $ac_val in
1197     [\\/$]* | ?:[\\/]* )  continue;;
1198     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1199   esac
1200   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1201    { (exit 1); exit 1; }; }
1202 done
1203
1204 # There might be people who depend on the old broken behavior: `$host'
1205 # used to hold the argument of --host etc.
1206 # FIXME: To remove some day.
1207 build=$build_alias
1208 host=$host_alias
1209 target=$target_alias
1210
1211 # FIXME: To remove some day.
1212 if test "x$host_alias" != x; then
1213   if test "x$build_alias" = x; then
1214     cross_compiling=maybe
1215     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1216     If a cross compiler is detected then cross compile mode will be used." >&2
1217   elif test "x$build_alias" != "x$host_alias"; then
1218     cross_compiling=yes
1219   fi
1220 fi
1221
1222 ac_tool_prefix=
1223 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1224
1225 test "$silent" = yes && exec 6>/dev/null
1226
1227
1228 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1229 ac_ls_di=`ls -di .` &&
1230 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1231   { echo "$as_me: error: Working directory cannot be determined" >&2
1232    { (exit 1); exit 1; }; }
1233 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1234   { echo "$as_me: error: pwd does not report name of working directory" >&2
1235    { (exit 1); exit 1; }; }
1236
1237
1238 # Find the source files, if location was not specified.
1239 if test -z "$srcdir"; then
1240   ac_srcdir_defaulted=yes
1241   # Try the directory containing this script, then the parent directory.
1242   ac_confdir=`$as_dirname -- "$0" ||
1243 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1244          X"$0" : 'X\(//\)[^/]' \| \
1245          X"$0" : 'X\(//\)$' \| \
1246          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1247 echo X"$0" |
1248     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1249             s//\1/
1250             q
1251           }
1252           /^X\(\/\/\)[^/].*/{
1253             s//\1/
1254             q
1255           }
1256           /^X\(\/\/\)$/{
1257             s//\1/
1258             q
1259           }
1260           /^X\(\/\).*/{
1261             s//\1/
1262             q
1263           }
1264           s/.*/./; q'`
1265   srcdir=$ac_confdir
1266   if test ! -r "$srcdir/$ac_unique_file"; then
1267     srcdir=..
1268   fi
1269 else
1270   ac_srcdir_defaulted=no
1271 fi
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1273   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1274   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1275    { (exit 1); exit 1; }; }
1276 fi
1277 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1278 ac_abs_confdir=`(
1279         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1280    { (exit 1); exit 1; }; }
1281         pwd)`
1282 # When building in place, set srcdir=.
1283 if test "$ac_abs_confdir" = "$ac_pwd"; then
1284   srcdir=.
1285 fi
1286 # Remove unnecessary trailing slashes from srcdir.
1287 # Double slashes in file names in object file debugging info
1288 # mess up M-x gdb in Emacs.
1289 case $srcdir in
1290 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1291 esac
1292 for ac_var in $ac_precious_vars; do
1293   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1294   eval ac_env_${ac_var}_value=\$${ac_var}
1295   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1296   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1297 done
1298
1299 #
1300 # Report the --help message.
1301 #
1302 if test "$ac_init_help" = "long"; then
1303   # Omit some internal or obsolete options to make the list less imposing.
1304   # This message is too long to be a string in the A/UX 3.1 sh.
1305   cat <<_ACEOF
1306 \`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1307
1308 Usage: $0 [OPTION]... [VAR=VALUE]...
1309
1310 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1311 VAR=VALUE.  See below for descriptions of some of the useful variables.
1312
1313 Defaults for the options are specified in brackets.
1314
1315 Configuration:
1316   -h, --help              display this help and exit
1317       --help=short        display options specific to this package
1318       --help=recursive    display the short help of all the included packages
1319   -V, --version           display version information and exit
1320   -q, --quiet, --silent   do not print \`checking...' messages
1321       --cache-file=FILE   cache test results in FILE [disabled]
1322   -C, --config-cache      alias for \`--cache-file=config.cache'
1323   -n, --no-create         do not create output files
1324       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1325
1326 Installation directories:
1327   --prefix=PREFIX         install architecture-independent files in PREFIX
1328                           [$ac_default_prefix]
1329   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1330                           [PREFIX]
1331
1332 By default, \`make install' will install all the files in
1333 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1334 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1335 for instance \`--prefix=\$HOME'.
1336
1337 For better control, use the options below.
1338
1339 Fine tuning of the installation directories:
1340   --bindir=DIR           user executables [EPREFIX/bin]
1341   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1342   --libexecdir=DIR       program executables [EPREFIX/libexec]
1343   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1344   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1345   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1346   --libdir=DIR           object code libraries [EPREFIX/lib]
1347   --includedir=DIR       C header files [PREFIX/include]
1348   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1349   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1350   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1351   --infodir=DIR          info documentation [DATAROOTDIR/info]
1352   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1353   --mandir=DIR           man documentation [DATAROOTDIR/man]
1354   --docdir=DIR           documentation root [DATAROOTDIR/doc/--sample--]
1355   --htmldir=DIR          html documentation [DOCDIR]
1356   --dvidir=DIR           dvi documentation [DOCDIR]
1357   --pdfdir=DIR           pdf documentation [DOCDIR]
1358   --psdir=DIR            ps documentation [DOCDIR]
1359 _ACEOF
1360
1361   cat <<\_ACEOF
1362
1363 System types:
1364   --build=BUILD     configure for building on BUILD [guessed]
1365   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1366   --target=TARGET   configure for building compilers for TARGET [HOST]
1367 _ACEOF
1368 fi
1369
1370 if test -n "$ac_init_help"; then
1371   case $ac_init_help in
1372      short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1373    esac
1374   cat <<\_ACEOF
1375
1376 Optional Features:
1377   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1378   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1379   --enable-polly          Use polly if available (default is YES)
1380   --enable-libcpp         Use libc++ if available (default is NO)
1381   --enable-cxx11          Use c++11 if available (default is NO)
1382   --enable-optimized      Compile with optimizations enabled (default is NO)
1383   --enable-profiling      Compile with profiling enabled (default is NO)
1384   --enable-assertions     Compile with assertion checks enabled (default is
1385                           YES)
1386   --enable-werror         Compile with -Werror enabled (default is NO)
1387   --enable-expensive-checks
1388                           Compile with expensive debug checks enabled (default
1389                           is NO)
1390   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1391                           NO)
1392   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1393                           optimization is on and YES if it's off)
1394   --enable-jit            Enable Just In Time Compiling (default is YES)
1395   --enable-docs           Build documents (default is YES)
1396   --enable-doxygen        Build doxygen documentation (default is NO)
1397   --enable-threads        Use threads if available (default is YES)
1398   --enable-pthreads       Use pthreads if available (default is YES)
1399   --enable-zlib           Use zlib for compression/decompression if available
1400                           (default is YES)
1401   --enable-pic            Build LLVM with Position Independent Code (default
1402                           is YES)
1403   --enable-shared         Build a shared library and link tools against it
1404                           (default is NO)
1405   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1406                           Win32 DLL (default is YES)
1407   --enable-timestamps     Enable embedding timestamp information in build
1408                           (default is YES)
1409   --enable-targets        Build specific host targets: all or
1410                           target1,target2,... Valid targets are: host, x86,
1411                           x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1412                           xcore, msp430, nvptx, systemz, r600, and cpp
1413                           (default=all)
1414   --enable-bindings       Build specific language bindings:
1415                           all,auto,none,{binding-name} (default=auto)
1416   --enable-terminfo       Query the terminfo database if available (default is
1417                           YES)
1418   --enable-libffi         Check for the presence of libffi (default is NO)
1419   --enable-ltdl-install   install libltdl
1420
1421 Optional Packages:
1422   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1423   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1424   --with-llvmsrc          Location of LLVM Source Code
1425   --with-llvmobj          Location of LLVM Object Code
1426   --with-optimize-option  Select the compiler options to use for optimized
1427                           builds
1428   --with-extra-options    Specify additional options to compile LLVM with
1429   --with-extra-ld-options Specify additional options to link LLVM with
1430   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1431                           is stdlib)
1432   --with-clang-resource-dir
1433                           Relative directory from the Clang binary for
1434                           resource files
1435   --with-c-include-dirs   Colon separated list of directories clang will
1436                           search for headers
1437   --with-gcc-toolchain    Directory where gcc is installed.
1438   --with-binutils-include Specify path to binutils/include/ containing
1439                           plugin-api.h file for gold plugin.
1440   --with-bug-report-url   Specify the URL where bug reports should be
1441                           submitted (default=http://llvm.org/bugs/)
1442   --with-tclinclude       directory where tcl headers are
1443   --with-udis86=<path>    Use udis86 external x86 disassembler library
1444   --with-oprofile=<prefix>
1445                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1446
1447 Some influential environment variables:
1448   CC          C compiler command
1449   CFLAGS      C compiler flags
1450   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1451               nonstandard directory <lib dir>
1452   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1453               you have headers in a nonstandard directory <include dir>
1454   CXX         C++ compiler command
1455   CXXFLAGS    C++ compiler flags
1456   CPP         C preprocessor
1457
1458 Use these variables to override the choices made by `configure' or to help
1459 it to find libraries and programs with nonstandard names/locations.
1460
1461 Report bugs to <bugs@yourdomain>.
1462 _ACEOF
1463 ac_status=$?
1464 fi
1465
1466 if test "$ac_init_help" = "recursive"; then
1467   # If there are subdirs, report their specific --help.
1468   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1469     test -d "$ac_dir" || continue
1470     ac_builddir=.
1471
1472 case "$ac_dir" in
1473 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 *)
1475   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1476   # A ".." for each directory in $ac_dir_suffix.
1477   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1478   case $ac_top_builddir_sub in
1479   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1481   esac ;;
1482 esac
1483 ac_abs_top_builddir=$ac_pwd
1484 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1485 # for backward compatibility:
1486 ac_top_builddir=$ac_top_build_prefix
1487
1488 case $srcdir in
1489   .)  # We are building in place.
1490     ac_srcdir=.
1491     ac_top_srcdir=$ac_top_builddir_sub
1492     ac_abs_top_srcdir=$ac_pwd ;;
1493   [\\/]* | ?:[\\/]* )  # Absolute name.
1494     ac_srcdir=$srcdir$ac_dir_suffix;
1495     ac_top_srcdir=$srcdir
1496     ac_abs_top_srcdir=$srcdir ;;
1497   *) # Relative name.
1498     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1499     ac_top_srcdir=$ac_top_build_prefix$srcdir
1500     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1501 esac
1502 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1503
1504     cd "$ac_dir" || { ac_status=$?; continue; }
1505     # Check for guested configure.
1506     if test -f "$ac_srcdir/configure.gnu"; then
1507       echo &&
1508       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1509     elif test -f "$ac_srcdir/configure"; then
1510       echo &&
1511       $SHELL "$ac_srcdir/configure" --help=recursive
1512     else
1513       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1514     fi || ac_status=$?
1515     cd "$ac_pwd" || { ac_status=$?; break; }
1516   done
1517 fi
1518
1519 test -n "$ac_init_help" && exit $ac_status
1520 if $ac_init_version; then
1521   cat <<\_ACEOF
1522 [SAMPLE] configure [x.xx]
1523 generated by GNU Autoconf 2.60
1524
1525 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1526 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1527 This configure script is free software; the Free Software Foundation
1528 gives unlimited permission to copy, distribute and modify it.
1529 _ACEOF
1530   exit
1531 fi
1532 cat >config.log <<_ACEOF
1533 This file contains any messages produced by compilers while
1534 running configure, to aid debugging if configure makes a mistake.
1535
1536 It was created by [SAMPLE] $as_me [x.xx], which was
1537 generated by GNU Autoconf 2.60.  Invocation command line was
1538
1539   $ $0 $@
1540
1541 _ACEOF
1542 exec 5>>config.log
1543 {
1544 cat <<_ASUNAME
1545 ## --------- ##
1546 ## Platform. ##
1547 ## --------- ##
1548
1549 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1550 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1551 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1552 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1553 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1554
1555 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1556 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1557
1558 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1559 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1560 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1561 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1562 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1563 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1564 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1565
1566 _ASUNAME
1567
1568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569 for as_dir in $PATH
1570 do
1571   IFS=$as_save_IFS
1572   test -z "$as_dir" && as_dir=.
1573   echo "PATH: $as_dir"
1574 done
1575 IFS=$as_save_IFS
1576
1577 } >&5
1578
1579 cat >&5 <<_ACEOF
1580
1581
1582 ## ----------- ##
1583 ## Core tests. ##
1584 ## ----------- ##
1585
1586 _ACEOF
1587
1588
1589 # Keep a trace of the command line.
1590 # Strip out --no-create and --no-recursion so they do not pile up.
1591 # Strip out --silent because we don't want to record it for future runs.
1592 # Also quote any args containing shell meta-characters.
1593 # Make two passes to allow for proper duplicate-argument suppression.
1594 ac_configure_args=
1595 ac_configure_args0=
1596 ac_configure_args1=
1597 ac_must_keep_next=false
1598 for ac_pass in 1 2
1599 do
1600   for ac_arg
1601   do
1602     case $ac_arg in
1603     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1604     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1605     | -silent | --silent | --silen | --sile | --sil)
1606       continue ;;
1607     *\'*)
1608       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1609     esac
1610     case $ac_pass in
1611     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1612     2)
1613       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1614       if test $ac_must_keep_next = true; then
1615         ac_must_keep_next=false # Got value, back to normal.
1616       else
1617         case $ac_arg in
1618           *=* | --config-cache | -C | -disable-* | --disable-* \
1619           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1620           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1621           | -with-* | --with-* | -without-* | --without-* | --x)
1622             case "$ac_configure_args0 " in
1623               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1624             esac
1625             ;;
1626           -* ) ac_must_keep_next=true ;;
1627         esac
1628       fi
1629       ac_configure_args="$ac_configure_args '$ac_arg'"
1630       ;;
1631     esac
1632   done
1633 done
1634 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1635 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1636
1637 # When interrupted or exit'd, cleanup temporary files, and complete
1638 # config.log.  We remove comments because anyway the quotes in there
1639 # would cause problems or look ugly.
1640 # WARNING: Use '\'' to represent an apostrophe within the trap.
1641 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1642 trap 'exit_status=$?
1643   # Save into config.log some information that might help in debugging.
1644   {
1645     echo
1646
1647     cat <<\_ASBOX
1648 ## ---------------- ##
1649 ## Cache variables. ##
1650 ## ---------------- ##
1651 _ASBOX
1652     echo
1653     # The following way of writing the cache mishandles newlines in values,
1654 (
1655   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1656     eval ac_val=\$$ac_var
1657     case $ac_val in #(
1658     *${as_nl}*)
1659       case $ac_var in #(
1660       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1661 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1662       esac
1663       case $ac_var in #(
1664       _ | IFS | as_nl) ;; #(
1665       *) $as_unset $ac_var ;;
1666       esac ;;
1667     esac
1668   done
1669   (set) 2>&1 |
1670     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1671     *${as_nl}ac_space=\ *)
1672       sed -n \
1673         "s/'\''/'\''\\\\'\'''\''/g;
1674           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1675       ;; #(
1676     *)
1677       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1678       ;;
1679     esac |
1680     sort
1681 )
1682     echo
1683
1684     cat <<\_ASBOX
1685 ## ----------------- ##
1686 ## Output variables. ##
1687 ## ----------------- ##
1688 _ASBOX
1689     echo
1690     for ac_var in $ac_subst_vars
1691     do
1692       eval ac_val=\$$ac_var
1693       case $ac_val in
1694       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1695       esac
1696       echo "$ac_var='\''$ac_val'\''"
1697     done | sort
1698     echo
1699
1700     if test -n "$ac_subst_files"; then
1701       cat <<\_ASBOX
1702 ## ------------------- ##
1703 ## File substitutions. ##
1704 ## ------------------- ##
1705 _ASBOX
1706       echo
1707       for ac_var in $ac_subst_files
1708       do
1709         eval ac_val=\$$ac_var
1710         case $ac_val in
1711         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1712         esac
1713         echo "$ac_var='\''$ac_val'\''"
1714       done | sort
1715       echo
1716     fi
1717
1718     if test -s confdefs.h; then
1719       cat <<\_ASBOX
1720 ## ----------- ##
1721 ## confdefs.h. ##
1722 ## ----------- ##
1723 _ASBOX
1724       echo
1725       cat confdefs.h
1726       echo
1727     fi
1728     test "$ac_signal" != 0 &&
1729       echo "$as_me: caught signal $ac_signal"
1730     echo "$as_me: exit $exit_status"
1731   } >&5
1732   rm -f core *.core core.conftest.* &&
1733     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1734     exit $exit_status
1735 ' 0
1736 for ac_signal in 1 2 13 15; do
1737   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1738 done
1739 ac_signal=0
1740
1741 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1742 rm -f -r conftest* confdefs.h
1743
1744 # Predefined preprocessor variables.
1745
1746 cat >>confdefs.h <<_ACEOF
1747 #define PACKAGE_NAME "$PACKAGE_NAME"
1748 _ACEOF
1749
1750
1751 cat >>confdefs.h <<_ACEOF
1752 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1753 _ACEOF
1754
1755
1756 cat >>confdefs.h <<_ACEOF
1757 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1758 _ACEOF
1759
1760
1761 cat >>confdefs.h <<_ACEOF
1762 #define PACKAGE_STRING "$PACKAGE_STRING"
1763 _ACEOF
1764
1765
1766 cat >>confdefs.h <<_ACEOF
1767 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1768 _ACEOF
1769
1770
1771 # Let the site file select an alternate cache file if it wants to.
1772 # Prefer explicitly selected file to automatically selected ones.
1773 if test -n "$CONFIG_SITE"; then
1774   set x "$CONFIG_SITE"
1775 elif test "x$prefix" != xNONE; then
1776   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1777 else
1778   set x "$ac_default_prefix/share/config.site" \
1779         "$ac_default_prefix/etc/config.site"
1780 fi
1781 shift
1782 for ac_site_file
1783 do
1784   if test -r "$ac_site_file"; then
1785     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1786 echo "$as_me: loading site script $ac_site_file" >&6;}
1787     sed 's/^/| /' "$ac_site_file" >&5
1788     . "$ac_site_file"
1789   fi
1790 done
1791
1792 if test -r "$cache_file"; then
1793   # Some versions of bash will fail to source /dev/null (special
1794   # files actually), so we avoid doing that.
1795   if test -f "$cache_file"; then
1796     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1797 echo "$as_me: loading cache $cache_file" >&6;}
1798     case $cache_file in
1799       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1800       *)                      . "./$cache_file";;
1801     esac
1802   fi
1803 else
1804   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1805 echo "$as_me: creating cache $cache_file" >&6;}
1806   >$cache_file
1807 fi
1808
1809 # Check that the precious variables saved in the cache have kept the same
1810 # value.
1811 ac_cache_corrupted=false
1812 for ac_var in $ac_precious_vars; do
1813   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1814   eval ac_new_set=\$ac_env_${ac_var}_set
1815   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1816   eval ac_new_val=\$ac_env_${ac_var}_value
1817   case $ac_old_set,$ac_new_set in
1818     set,)
1819       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1820 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1821       ac_cache_corrupted=: ;;
1822     ,set)
1823       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1824 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1825       ac_cache_corrupted=: ;;
1826     ,);;
1827     *)
1828       if test "x$ac_old_val" != "x$ac_new_val"; then
1829         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1830 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1831         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1832 echo "$as_me:   former value:  $ac_old_val" >&2;}
1833         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1834 echo "$as_me:   current value: $ac_new_val" >&2;}
1835         ac_cache_corrupted=:
1836       fi;;
1837   esac
1838   # Pass precious variables to config.status.
1839   if test "$ac_new_set" = set; then
1840     case $ac_new_val in
1841     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1842     *) ac_arg=$ac_var=$ac_new_val ;;
1843     esac
1844     case " $ac_configure_args " in
1845       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1846       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1847     esac
1848   fi
1849 done
1850 if $ac_cache_corrupted; then
1851   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1852 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1853   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1854 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1855    { (exit 1); exit 1; }; }
1856 fi
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882 ac_ext=c
1883 ac_cpp='$CPP $CPPFLAGS'
1884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1887
1888
1889
1890 LLVM_SRC_ROOT="../.."
1891 LLVM_OBJ_ROOT="../.."
1892
1893 LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1894 LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
1895
1896
1897 # Check whether --with-llvmsrc was given.
1898 if test "${with_llvmsrc+set}" = set; then
1899   withval=$with_llvmsrc; llvm_src="$withval"
1900 else
1901   llvm_src="$LLVM_ABS_SRC_ROOT"
1902 fi
1903
1904   LLVM_SRC=$llvm_src
1905
1906
1907 # Check whether --with-llvmobj was given.
1908 if test "${with_llvmobj+set}" = set; then
1909   withval=$with_llvmobj; llvm_obj="$withval"
1910 else
1911   llvm_obj="$LLVM_ABS_OBJ_ROOT"
1912 fi
1913
1914   LLVM_OBJ=$llvm_obj
1915
1916   ac_config_commands="$ac_config_commands setup"
1917
1918
1919
1920 { echo "$as_me:$LINENO: checking llvm-config" >&5
1921 echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1922 llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1923 if ! test -f "$llvm_config_path" ; then
1924    llvm_config_path="no"
1925 fi
1926 { echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1927 echo "${ECHO_T}$llvm_config_path" >&6; }
1928
1929 { echo "$as_me:$LINENO: checking LLVM package version" >&5
1930 echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1931 if test "$llvm_config_path" != no ; then
1932   llvm_package_version=`$llvm_config_path --version`
1933 else
1934   llvm_package_version="unknown";
1935 fi
1936 { echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1937 echo "${ECHO_T}$llvm_package_version" >&6; }
1938 LLVM_VERSION=$llvm_package_version
1939
1940
1941
1942
1943 ac_aux_dir=
1944 for ac_dir in autoconf "$srcdir"/autoconf; do
1945   if test -f "$ac_dir/install-sh"; then
1946     ac_aux_dir=$ac_dir
1947     ac_install_sh="$ac_aux_dir/install-sh -c"
1948     break
1949   elif test -f "$ac_dir/install.sh"; then
1950     ac_aux_dir=$ac_dir
1951     ac_install_sh="$ac_aux_dir/install.sh -c"
1952     break
1953   elif test -f "$ac_dir/shtool"; then
1954     ac_aux_dir=$ac_dir
1955     ac_install_sh="$ac_aux_dir/shtool install -c"
1956     break
1957   fi
1958 done
1959 if test -z "$ac_aux_dir"; then
1960   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1961 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1962    { (exit 1); exit 1; }; }
1963 fi
1964
1965 # These three variables are undocumented and unsupported,
1966 # and are intended to be withdrawn in a future Autoconf release.
1967 # They can cause serious problems if a builder's source tree is in a directory
1968 # whose full name contains unusual characters.
1969 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1970 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1971 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1972
1973
1974
1975
1976 ac_ext=c
1977 ac_cpp='$CPP $CPPFLAGS'
1978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1981 if test -n "$ac_tool_prefix"; then
1982   for ac_prog in clang llvm-gcc gcc
1983   do
1984     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1985 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1988 if test "${ac_cv_prog_CC+set}" = set; then
1989   echo $ECHO_N "(cached) $ECHO_C" >&6
1990 else
1991   if test -n "$CC"; then
1992   ac_cv_prog_CC="$CC" # Let the user override the test.
1993 else
1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 for as_dir in $PATH
1996 do
1997   IFS=$as_save_IFS
1998   test -z "$as_dir" && as_dir=.
1999   for ac_exec_ext in '' $ac_executable_extensions; do
2000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2001     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2003     break 2
2004   fi
2005 done
2006 done
2007 IFS=$as_save_IFS
2008
2009 fi
2010 fi
2011 CC=$ac_cv_prog_CC
2012 if test -n "$CC"; then
2013   { echo "$as_me:$LINENO: result: $CC" >&5
2014 echo "${ECHO_T}$CC" >&6; }
2015 else
2016   { echo "$as_me:$LINENO: result: no" >&5
2017 echo "${ECHO_T}no" >&6; }
2018 fi
2019
2020
2021     test -n "$CC" && break
2022   done
2023 fi
2024 if test -z "$CC"; then
2025   ac_ct_CC=$CC
2026   for ac_prog in clang llvm-gcc gcc
2027 do
2028   # Extract the first word of "$ac_prog", so it can be a program name with args.
2029 set dummy $ac_prog; ac_word=$2
2030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2032 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2033   echo $ECHO_N "(cached) $ECHO_C" >&6
2034 else
2035   if test -n "$ac_ct_CC"; then
2036   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2037 else
2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039 for as_dir in $PATH
2040 do
2041   IFS=$as_save_IFS
2042   test -z "$as_dir" && as_dir=.
2043   for ac_exec_ext in '' $ac_executable_extensions; do
2044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2045     ac_cv_prog_ac_ct_CC="$ac_prog"
2046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047     break 2
2048   fi
2049 done
2050 done
2051 IFS=$as_save_IFS
2052
2053 fi
2054 fi
2055 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2056 if test -n "$ac_ct_CC"; then
2057   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2058 echo "${ECHO_T}$ac_ct_CC" >&6; }
2059 else
2060   { echo "$as_me:$LINENO: result: no" >&5
2061 echo "${ECHO_T}no" >&6; }
2062 fi
2063
2064
2065   test -n "$ac_ct_CC" && break
2066 done
2067
2068   if test "x$ac_ct_CC" = x; then
2069     CC=""
2070   else
2071     case $cross_compiling:$ac_tool_warned in
2072 yes:)
2073 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2074 whose name does not start with the host triplet.  If you think this
2075 configuration is useful to you, please write to autoconf@gnu.org." >&5
2076 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2077 whose name does not start with the host triplet.  If you think this
2078 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2079 ac_tool_warned=yes ;;
2080 esac
2081     CC=$ac_ct_CC
2082   fi
2083 fi
2084
2085
2086 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2087 See \`config.log' for more details." >&5
2088 echo "$as_me: error: no acceptable C compiler found in \$PATH
2089 See \`config.log' for more details." >&2;}
2090    { (exit 1); exit 1; }; }
2091
2092 # Provide some information about the compiler.
2093 echo "$as_me:$LINENO: checking for C compiler version" >&5
2094 ac_compiler=`set X $ac_compile; echo $2`
2095 { (ac_try="$ac_compiler --version >&5"
2096 case "(($ac_try" in
2097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2098   *) ac_try_echo=$ac_try;;
2099 esac
2100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2101   (eval "$ac_compiler --version >&5") 2>&5
2102   ac_status=$?
2103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104   (exit $ac_status); }
2105 { (ac_try="$ac_compiler -v >&5"
2106 case "(($ac_try" in
2107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2108   *) ac_try_echo=$ac_try;;
2109 esac
2110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2111   (eval "$ac_compiler -v >&5") 2>&5
2112   ac_status=$?
2113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114   (exit $ac_status); }
2115 { (ac_try="$ac_compiler -V >&5"
2116 case "(($ac_try" in
2117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2118   *) ac_try_echo=$ac_try;;
2119 esac
2120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2121   (eval "$ac_compiler -V >&5") 2>&5
2122   ac_status=$?
2123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124   (exit $ac_status); }
2125
2126 cat >conftest.$ac_ext <<_ACEOF
2127 /* confdefs.h.  */
2128 _ACEOF
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.h.  */
2132
2133 int
2134 main ()
2135 {
2136
2137   ;
2138   return 0;
2139 }
2140 _ACEOF
2141 ac_clean_files_save=$ac_clean_files
2142 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2143 # Try to create an executable without -o first, disregard a.out.
2144 # It will help us diagnose broken compilers, and finding out an intuition
2145 # of exeext.
2146 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2147 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2148 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2149 #
2150 # List of possible output files, starting from the most likely.
2151 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2152 # only as a last resort.  b.out is created by i960 compilers.
2153 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2154 #
2155 # The IRIX 6 linker writes into existing files which may not be
2156 # executable, retaining their permissions.  Remove them first so a
2157 # subsequent execution test works.
2158 ac_rmfiles=
2159 for ac_file in $ac_files
2160 do
2161   case $ac_file in
2162     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2163     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2164   esac
2165 done
2166 rm -f $ac_rmfiles
2167
2168 if { (ac_try="$ac_link_default"
2169 case "(($ac_try" in
2170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2171   *) ac_try_echo=$ac_try;;
2172 esac
2173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2174   (eval "$ac_link_default") 2>&5
2175   ac_status=$?
2176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177   (exit $ac_status); }; then
2178   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2179 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2180 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2181 # so that the user can short-circuit this test for compilers unknown to
2182 # Autoconf.
2183 for ac_file in $ac_files
2184 do
2185   test -f "$ac_file" || continue
2186   case $ac_file in
2187     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2188         ;;
2189     [ab].out )
2190         # We found the default executable, but exeext='' is most
2191         # certainly right.
2192         break;;
2193     *.* )
2194         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2195         then :; else
2196            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2197         fi
2198         # We set ac_cv_exeext here because the later test for it is not
2199         # safe: cross compilers may not add the suffix if given an `-o'
2200         # argument, so we may need to know it at that point already.
2201         # Even if this section looks crufty: it has the advantage of
2202         # actually working.
2203         break;;
2204     * )
2205         break;;
2206   esac
2207 done
2208 test "$ac_cv_exeext" = no && ac_cv_exeext=
2209
2210 else
2211   echo "$as_me: failed program was:" >&5
2212 sed 's/^/| /' conftest.$ac_ext >&5
2213
2214 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2215 See \`config.log' for more details." >&5
2216 echo "$as_me: error: C compiler cannot create executables
2217 See \`config.log' for more details." >&2;}
2218    { (exit 77); exit 77; }; }
2219 fi
2220
2221 ac_exeext=$ac_cv_exeext
2222 { echo "$as_me:$LINENO: result: $ac_file" >&5
2223 echo "${ECHO_T}$ac_file" >&6; }
2224
2225 # Check that the compiler produces executables we can run.  If not, either
2226 # the compiler is broken, or we cross compile.
2227 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2228 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2229 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2230 # If not cross compiling, check that we can run a simple program.
2231 if test "$cross_compiling" != yes; then
2232   if { ac_try='./$ac_file'
2233   { (case "(($ac_try" in
2234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2235   *) ac_try_echo=$ac_try;;
2236 esac
2237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2238   (eval "$ac_try") 2>&5
2239   ac_status=$?
2240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241   (exit $ac_status); }; }; then
2242     cross_compiling=no
2243   else
2244     if test "$cross_compiling" = maybe; then
2245         cross_compiling=yes
2246     else
2247         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2248 If you meant to cross compile, use \`--host'.
2249 See \`config.log' for more details." >&5
2250 echo "$as_me: error: cannot run C compiled programs.
2251 If you meant to cross compile, use \`--host'.
2252 See \`config.log' for more details." >&2;}
2253    { (exit 1); exit 1; }; }
2254     fi
2255   fi
2256 fi
2257 { echo "$as_me:$LINENO: result: yes" >&5
2258 echo "${ECHO_T}yes" >&6; }
2259
2260 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2261 ac_clean_files=$ac_clean_files_save
2262 # Check that the compiler produces executables we can run.  If not, either
2263 # the compiler is broken, or we cross compile.
2264 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2265 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2266 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2267 echo "${ECHO_T}$cross_compiling" >&6; }
2268
2269 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2270 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2271 if { (ac_try="$ac_link"
2272 case "(($ac_try" in
2273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2274   *) ac_try_echo=$ac_try;;
2275 esac
2276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2277   (eval "$ac_link") 2>&5
2278   ac_status=$?
2279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280   (exit $ac_status); }; then
2281   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2282 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2283 # work properly (i.e., refer to `conftest.exe'), while it won't with
2284 # `rm'.
2285 for ac_file in conftest.exe conftest conftest.*; do
2286   test -f "$ac_file" || continue
2287   case $ac_file in
2288     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2289     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2290           break;;
2291     * ) break;;
2292   esac
2293 done
2294 else
2295   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2296 See \`config.log' for more details." >&5
2297 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2298 See \`config.log' for more details." >&2;}
2299    { (exit 1); exit 1; }; }
2300 fi
2301
2302 rm -f conftest$ac_cv_exeext
2303 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2304 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2305
2306 rm -f conftest.$ac_ext
2307 EXEEXT=$ac_cv_exeext
2308 ac_exeext=$EXEEXT
2309 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2310 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2311 if test "${ac_cv_objext+set}" = set; then
2312   echo $ECHO_N "(cached) $ECHO_C" >&6
2313 else
2314   cat >conftest.$ac_ext <<_ACEOF
2315 /* confdefs.h.  */
2316 _ACEOF
2317 cat confdefs.h >>conftest.$ac_ext
2318 cat >>conftest.$ac_ext <<_ACEOF
2319 /* end confdefs.h.  */
2320
2321 int
2322 main ()
2323 {
2324
2325   ;
2326   return 0;
2327 }
2328 _ACEOF
2329 rm -f conftest.o conftest.obj
2330 if { (ac_try="$ac_compile"
2331 case "(($ac_try" in
2332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2333   *) ac_try_echo=$ac_try;;
2334 esac
2335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2336   (eval "$ac_compile") 2>&5
2337   ac_status=$?
2338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339   (exit $ac_status); }; then
2340   for ac_file in conftest.o conftest.obj conftest.*; do
2341   test -f "$ac_file" || continue;
2342   case $ac_file in
2343     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2344     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2345        break;;
2346   esac
2347 done
2348 else
2349   echo "$as_me: failed program was:" >&5
2350 sed 's/^/| /' conftest.$ac_ext >&5
2351
2352 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2353 See \`config.log' for more details." >&5
2354 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2355 See \`config.log' for more details." >&2;}
2356    { (exit 1); exit 1; }; }
2357 fi
2358
2359 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2360 fi
2361 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2362 echo "${ECHO_T}$ac_cv_objext" >&6; }
2363 OBJEXT=$ac_cv_objext
2364 ac_objext=$OBJEXT
2365 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2366 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2367 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2368   echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370   cat >conftest.$ac_ext <<_ACEOF
2371 /* confdefs.h.  */
2372 _ACEOF
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h.  */
2376
2377 int
2378 main ()
2379 {
2380 #ifndef __GNUC__
2381        choke me
2382 #endif
2383
2384   ;
2385   return 0;
2386 }
2387 _ACEOF
2388 rm -f conftest.$ac_objext
2389 if { (ac_try="$ac_compile"
2390 case "(($ac_try" in
2391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2392   *) ac_try_echo=$ac_try;;
2393 esac
2394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2395   (eval "$ac_compile") 2>conftest.er1
2396   ac_status=$?
2397   grep -v '^ *+' conftest.er1 >conftest.err
2398   rm -f conftest.er1
2399   cat conftest.err >&5
2400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401   (exit $ac_status); } &&
2402          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2403   { (case "(($ac_try" in
2404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2405   *) ac_try_echo=$ac_try;;
2406 esac
2407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2408   (eval "$ac_try") 2>&5
2409   ac_status=$?
2410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411   (exit $ac_status); }; } &&
2412          { ac_try='test -s conftest.$ac_objext'
2413   { (case "(($ac_try" in
2414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2415   *) ac_try_echo=$ac_try;;
2416 esac
2417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2418   (eval "$ac_try") 2>&5
2419   ac_status=$?
2420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421   (exit $ac_status); }; }; then
2422   ac_compiler_gnu=yes
2423 else
2424   echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2426
2427         ac_compiler_gnu=no
2428 fi
2429
2430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2431 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2432
2433 fi
2434 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2435 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2436 GCC=`test $ac_compiler_gnu = yes && echo yes`
2437 ac_test_CFLAGS=${CFLAGS+set}
2438 ac_save_CFLAGS=$CFLAGS
2439 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2440 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2441 if test "${ac_cv_prog_cc_g+set}" = set; then
2442   echo $ECHO_N "(cached) $ECHO_C" >&6
2443 else
2444   ac_save_c_werror_flag=$ac_c_werror_flag
2445    ac_c_werror_flag=yes
2446    ac_cv_prog_cc_g=no
2447    CFLAGS="-g"
2448    cat >conftest.$ac_ext <<_ACEOF
2449 /* confdefs.h.  */
2450 _ACEOF
2451 cat confdefs.h >>conftest.$ac_ext
2452 cat >>conftest.$ac_ext <<_ACEOF
2453 /* end confdefs.h.  */
2454
2455 int
2456 main ()
2457 {
2458
2459   ;
2460   return 0;
2461 }
2462 _ACEOF
2463 rm -f conftest.$ac_objext
2464 if { (ac_try="$ac_compile"
2465 case "(($ac_try" in
2466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2467   *) ac_try_echo=$ac_try;;
2468 esac
2469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2470   (eval "$ac_compile") 2>conftest.er1
2471   ac_status=$?
2472   grep -v '^ *+' conftest.er1 >conftest.err
2473   rm -f conftest.er1
2474   cat conftest.err >&5
2475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476   (exit $ac_status); } &&
2477          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2478   { (case "(($ac_try" in
2479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480   *) ac_try_echo=$ac_try;;
2481 esac
2482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2483   (eval "$ac_try") 2>&5
2484   ac_status=$?
2485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486   (exit $ac_status); }; } &&
2487          { ac_try='test -s conftest.$ac_objext'
2488   { (case "(($ac_try" in
2489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490   *) ac_try_echo=$ac_try;;
2491 esac
2492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2493   (eval "$ac_try") 2>&5
2494   ac_status=$?
2495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496   (exit $ac_status); }; }; then
2497   ac_cv_prog_cc_g=yes
2498 else
2499   echo "$as_me: failed program was:" >&5
2500 sed 's/^/| /' conftest.$ac_ext >&5
2501
2502         CFLAGS=""
2503       cat >conftest.$ac_ext <<_ACEOF
2504 /* confdefs.h.  */
2505 _ACEOF
2506 cat confdefs.h >>conftest.$ac_ext
2507 cat >>conftest.$ac_ext <<_ACEOF
2508 /* end confdefs.h.  */
2509
2510 int
2511 main ()
2512 {
2513
2514   ;
2515   return 0;
2516 }
2517 _ACEOF
2518 rm -f conftest.$ac_objext
2519 if { (ac_try="$ac_compile"
2520 case "(($ac_try" in
2521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2522   *) ac_try_echo=$ac_try;;
2523 esac
2524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2525   (eval "$ac_compile") 2>conftest.er1
2526   ac_status=$?
2527   grep -v '^ *+' conftest.er1 >conftest.err
2528   rm -f conftest.er1
2529   cat conftest.err >&5
2530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531   (exit $ac_status); } &&
2532          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2533   { (case "(($ac_try" in
2534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2535   *) ac_try_echo=$ac_try;;
2536 esac
2537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2538   (eval "$ac_try") 2>&5
2539   ac_status=$?
2540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541   (exit $ac_status); }; } &&
2542          { ac_try='test -s conftest.$ac_objext'
2543   { (case "(($ac_try" in
2544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2545   *) ac_try_echo=$ac_try;;
2546 esac
2547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2548   (eval "$ac_try") 2>&5
2549   ac_status=$?
2550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551   (exit $ac_status); }; }; then
2552   :
2553 else
2554   echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2556
2557         ac_c_werror_flag=$ac_save_c_werror_flag
2558          CFLAGS="-g"
2559          cat >conftest.$ac_ext <<_ACEOF
2560 /* confdefs.h.  */
2561 _ACEOF
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h.  */
2565
2566 int
2567 main ()
2568 {
2569
2570   ;
2571   return 0;
2572 }
2573 _ACEOF
2574 rm -f conftest.$ac_objext
2575 if { (ac_try="$ac_compile"
2576 case "(($ac_try" in
2577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578   *) ac_try_echo=$ac_try;;
2579 esac
2580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2581   (eval "$ac_compile") 2>conftest.er1
2582   ac_status=$?
2583   grep -v '^ *+' conftest.er1 >conftest.err
2584   rm -f conftest.er1
2585   cat conftest.err >&5
2586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587   (exit $ac_status); } &&
2588          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2589   { (case "(($ac_try" in
2590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591   *) ac_try_echo=$ac_try;;
2592 esac
2593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2594   (eval "$ac_try") 2>&5
2595   ac_status=$?
2596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597   (exit $ac_status); }; } &&
2598          { ac_try='test -s conftest.$ac_objext'
2599   { (case "(($ac_try" in
2600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2601   *) ac_try_echo=$ac_try;;
2602 esac
2603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2604   (eval "$ac_try") 2>&5
2605   ac_status=$?
2606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607   (exit $ac_status); }; }; then
2608   ac_cv_prog_cc_g=yes
2609 else
2610   echo "$as_me: failed program was:" >&5
2611 sed 's/^/| /' conftest.$ac_ext >&5
2612
2613
2614 fi
2615
2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 fi
2618
2619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2620 fi
2621
2622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2623    ac_c_werror_flag=$ac_save_c_werror_flag
2624 fi
2625 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2626 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2627 if test "$ac_test_CFLAGS" = set; then
2628   CFLAGS=$ac_save_CFLAGS
2629 elif test $ac_cv_prog_cc_g = yes; then
2630   if test "$GCC" = yes; then
2631     CFLAGS="-g -O2"
2632   else
2633     CFLAGS="-g"
2634   fi
2635 else
2636   if test "$GCC" = yes; then
2637     CFLAGS="-O2"
2638   else
2639     CFLAGS=
2640   fi
2641 fi
2642 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2643 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2644 if test "${ac_cv_prog_cc_c89+set}" = set; then
2645   echo $ECHO_N "(cached) $ECHO_C" >&6
2646 else
2647   ac_cv_prog_cc_c89=no
2648 ac_save_CC=$CC
2649 cat >conftest.$ac_ext <<_ACEOF
2650 /* confdefs.h.  */
2651 _ACEOF
2652 cat confdefs.h >>conftest.$ac_ext
2653 cat >>conftest.$ac_ext <<_ACEOF
2654 /* end confdefs.h.  */
2655 #include <stdarg.h>
2656 #include <stdio.h>
2657 #include <sys/types.h>
2658 #include <sys/stat.h>
2659 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2660 struct buf { int x; };
2661 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2662 static char *e (p, i)
2663      char **p;
2664      int i;
2665 {
2666   return p[i];
2667 }
2668 static char *f (char * (*g) (char **, int), char **p, ...)
2669 {
2670   char *s;
2671   va_list v;
2672   va_start (v,p);
2673   s = g (p, va_arg (v,int));
2674   va_end (v);
2675   return s;
2676 }
2677
2678 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2679    function prototypes and stuff, but not '\xHH' hex character constants.
2680    These don't provoke an error unfortunately, instead are silently treated
2681    as 'x'.  The following induces an error, until -std is added to get
2682    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2683    array size at least.  It's necessary to write '\x00'==0 to get something
2684    that's true only with -std.  */
2685 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2686
2687 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2688    inside strings and character constants.  */
2689 #define FOO(x) 'x'
2690 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2691
2692 int test (int i, double x);
2693 struct s1 {int (*f) (int a);};
2694 struct s2 {int (*f) (double a);};
2695 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2696 int argc;
2697 char **argv;
2698 int
2699 main ()
2700 {
2701 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2702   ;
2703   return 0;
2704 }
2705 _ACEOF
2706 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2707         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2708 do
2709   CC="$ac_save_CC $ac_arg"
2710   rm -f conftest.$ac_objext
2711 if { (ac_try="$ac_compile"
2712 case "(($ac_try" in
2713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714   *) ac_try_echo=$ac_try;;
2715 esac
2716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717   (eval "$ac_compile") 2>conftest.er1
2718   ac_status=$?
2719   grep -v '^ *+' conftest.er1 >conftest.err
2720   rm -f conftest.er1
2721   cat conftest.err >&5
2722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723   (exit $ac_status); } &&
2724          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2725   { (case "(($ac_try" in
2726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727   *) ac_try_echo=$ac_try;;
2728 esac
2729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730   (eval "$ac_try") 2>&5
2731   ac_status=$?
2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); }; } &&
2734          { ac_try='test -s conftest.$ac_objext'
2735   { (case "(($ac_try" in
2736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737   *) ac_try_echo=$ac_try;;
2738 esac
2739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2740   (eval "$ac_try") 2>&5
2741   ac_status=$?
2742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743   (exit $ac_status); }; }; then
2744   ac_cv_prog_cc_c89=$ac_arg
2745 else
2746   echo "$as_me: failed program was:" >&5
2747 sed 's/^/| /' conftest.$ac_ext >&5
2748
2749
2750 fi
2751
2752 rm -f core conftest.err conftest.$ac_objext
2753   test "x$ac_cv_prog_cc_c89" != "xno" && break
2754 done
2755 rm -f conftest.$ac_ext
2756 CC=$ac_save_CC
2757
2758 fi
2759 # AC_CACHE_VAL
2760 case "x$ac_cv_prog_cc_c89" in
2761   x)
2762     { echo "$as_me:$LINENO: result: none needed" >&5
2763 echo "${ECHO_T}none needed" >&6; } ;;
2764   xno)
2765     { echo "$as_me:$LINENO: result: unsupported" >&5
2766 echo "${ECHO_T}unsupported" >&6; } ;;
2767   *)
2768     CC="$CC $ac_cv_prog_cc_c89"
2769     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2770 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2771 esac
2772
2773
2774 ac_ext=c
2775 ac_cpp='$CPP $CPPFLAGS'
2776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2779
2780 ac_ext=cpp
2781 ac_cpp='$CXXCPP $CPPFLAGS'
2782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2785 if test -z "$CXX"; then
2786   if test -n "$CCC"; then
2787     CXX=$CCC
2788   else
2789     if test -n "$ac_tool_prefix"; then
2790   for ac_prog in clang++ llvm-g++ g++
2791   do
2792     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2793 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2796 if test "${ac_cv_prog_CXX+set}" = set; then
2797   echo $ECHO_N "(cached) $ECHO_C" >&6
2798 else
2799   if test -n "$CXX"; then
2800   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2801 else
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803 for as_dir in $PATH
2804 do
2805   IFS=$as_save_IFS
2806   test -z "$as_dir" && as_dir=.
2807   for ac_exec_ext in '' $ac_executable_extensions; do
2808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2809     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2811     break 2
2812   fi
2813 done
2814 done
2815 IFS=$as_save_IFS
2816
2817 fi
2818 fi
2819 CXX=$ac_cv_prog_CXX
2820 if test -n "$CXX"; then
2821   { echo "$as_me:$LINENO: result: $CXX" >&5
2822 echo "${ECHO_T}$CXX" >&6; }
2823 else
2824   { echo "$as_me:$LINENO: result: no" >&5
2825 echo "${ECHO_T}no" >&6; }
2826 fi
2827
2828
2829     test -n "$CXX" && break
2830   done
2831 fi
2832 if test -z "$CXX"; then
2833   ac_ct_CXX=$CXX
2834   for ac_prog in clang++ llvm-g++ g++
2835 do
2836   # Extract the first word of "$ac_prog", so it can be a program name with args.
2837 set dummy $ac_prog; ac_word=$2
2838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2840 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2841   echo $ECHO_N "(cached) $ECHO_C" >&6
2842 else
2843   if test -n "$ac_ct_CXX"; then
2844   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2845 else
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2848 do
2849   IFS=$as_save_IFS
2850   test -z "$as_dir" && as_dir=.
2851   for ac_exec_ext in '' $ac_executable_extensions; do
2852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2853     ac_cv_prog_ac_ct_CXX="$ac_prog"
2854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2855     break 2
2856   fi
2857 done
2858 done
2859 IFS=$as_save_IFS
2860
2861 fi
2862 fi
2863 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2864 if test -n "$ac_ct_CXX"; then
2865   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2866 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2867 else
2868   { echo "$as_me:$LINENO: result: no" >&5
2869 echo "${ECHO_T}no" >&6; }
2870 fi
2871
2872
2873   test -n "$ac_ct_CXX" && break
2874 done
2875
2876   if test "x$ac_ct_CXX" = x; then
2877     CXX="g++"
2878   else
2879     case $cross_compiling:$ac_tool_warned in
2880 yes:)
2881 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2882 whose name does not start with the host triplet.  If you think this
2883 configuration is useful to you, please write to autoconf@gnu.org." >&5
2884 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2885 whose name does not start with the host triplet.  If you think this
2886 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2887 ac_tool_warned=yes ;;
2888 esac
2889     CXX=$ac_ct_CXX
2890   fi
2891 fi
2892
2893   fi
2894 fi
2895 # Provide some information about the compiler.
2896 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2897 ac_compiler=`set X $ac_compile; echo $2`
2898 { (ac_try="$ac_compiler --version >&5"
2899 case "(($ac_try" in
2900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901   *) ac_try_echo=$ac_try;;
2902 esac
2903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904   (eval "$ac_compiler --version >&5") 2>&5
2905   ac_status=$?
2906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907   (exit $ac_status); }
2908 { (ac_try="$ac_compiler -v >&5"
2909 case "(($ac_try" in
2910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911   *) ac_try_echo=$ac_try;;
2912 esac
2913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914   (eval "$ac_compiler -v >&5") 2>&5
2915   ac_status=$?
2916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917   (exit $ac_status); }
2918 { (ac_try="$ac_compiler -V >&5"
2919 case "(($ac_try" in
2920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921   *) ac_try_echo=$ac_try;;
2922 esac
2923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2924   (eval "$ac_compiler -V >&5") 2>&5
2925   ac_status=$?
2926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927   (exit $ac_status); }
2928
2929 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2930 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2931 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2932   echo $ECHO_N "(cached) $ECHO_C" >&6
2933 else
2934   cat >conftest.$ac_ext <<_ACEOF
2935 /* confdefs.h.  */
2936 _ACEOF
2937 cat confdefs.h >>conftest.$ac_ext
2938 cat >>conftest.$ac_ext <<_ACEOF
2939 /* end confdefs.h.  */
2940
2941 int
2942 main ()
2943 {
2944 #ifndef __GNUC__
2945        choke me
2946 #endif
2947
2948   ;
2949   return 0;
2950 }
2951 _ACEOF
2952 rm -f conftest.$ac_objext
2953 if { (ac_try="$ac_compile"
2954 case "(($ac_try" in
2955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956   *) ac_try_echo=$ac_try;;
2957 esac
2958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959   (eval "$ac_compile") 2>conftest.er1
2960   ac_status=$?
2961   grep -v '^ *+' conftest.er1 >conftest.err
2962   rm -f conftest.er1
2963   cat conftest.err >&5
2964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965   (exit $ac_status); } &&
2966          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2967   { (case "(($ac_try" in
2968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969   *) ac_try_echo=$ac_try;;
2970 esac
2971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972   (eval "$ac_try") 2>&5
2973   ac_status=$?
2974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975   (exit $ac_status); }; } &&
2976          { ac_try='test -s conftest.$ac_objext'
2977   { (case "(($ac_try" in
2978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979   *) ac_try_echo=$ac_try;;
2980 esac
2981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982   (eval "$ac_try") 2>&5
2983   ac_status=$?
2984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985   (exit $ac_status); }; }; then
2986   ac_compiler_gnu=yes
2987 else
2988   echo "$as_me: failed program was:" >&5
2989 sed 's/^/| /' conftest.$ac_ext >&5
2990
2991         ac_compiler_gnu=no
2992 fi
2993
2994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2995 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2996
2997 fi
2998 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2999 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3000 GXX=`test $ac_compiler_gnu = yes && echo yes`
3001 ac_test_CXXFLAGS=${CXXFLAGS+set}
3002 ac_save_CXXFLAGS=$CXXFLAGS
3003 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3004 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3005 if test "${ac_cv_prog_cxx_g+set}" = set; then
3006   echo $ECHO_N "(cached) $ECHO_C" >&6
3007 else
3008   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3009    ac_cxx_werror_flag=yes
3010    ac_cv_prog_cxx_g=no
3011    CXXFLAGS="-g"
3012    cat >conftest.$ac_ext <<_ACEOF
3013 /* confdefs.h.  */
3014 _ACEOF
3015 cat confdefs.h >>conftest.$ac_ext
3016 cat >>conftest.$ac_ext <<_ACEOF
3017 /* end confdefs.h.  */
3018
3019 int
3020 main ()
3021 {
3022
3023   ;
3024   return 0;
3025 }
3026 _ACEOF
3027 rm -f conftest.$ac_objext
3028 if { (ac_try="$ac_compile"
3029 case "(($ac_try" in
3030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031   *) ac_try_echo=$ac_try;;
3032 esac
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034   (eval "$ac_compile") 2>conftest.er1
3035   ac_status=$?
3036   grep -v '^ *+' conftest.er1 >conftest.err
3037   rm -f conftest.er1
3038   cat conftest.err >&5
3039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040   (exit $ac_status); } &&
3041          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3042   { (case "(($ac_try" in
3043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044   *) ac_try_echo=$ac_try;;
3045 esac
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047   (eval "$ac_try") 2>&5
3048   ac_status=$?
3049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050   (exit $ac_status); }; } &&
3051          { ac_try='test -s conftest.$ac_objext'
3052   { (case "(($ac_try" in
3053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054   *) ac_try_echo=$ac_try;;
3055 esac
3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057   (eval "$ac_try") 2>&5
3058   ac_status=$?
3059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060   (exit $ac_status); }; }; then
3061   ac_cv_prog_cxx_g=yes
3062 else
3063   echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3065
3066         CXXFLAGS=""
3067       cat >conftest.$ac_ext <<_ACEOF
3068 /* confdefs.h.  */
3069 _ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h.  */
3073
3074 int
3075 main ()
3076 {
3077
3078   ;
3079   return 0;
3080 }
3081 _ACEOF
3082 rm -f conftest.$ac_objext
3083 if { (ac_try="$ac_compile"
3084 case "(($ac_try" in
3085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086   *) ac_try_echo=$ac_try;;
3087 esac
3088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089   (eval "$ac_compile") 2>conftest.er1
3090   ac_status=$?
3091   grep -v '^ *+' conftest.er1 >conftest.err
3092   rm -f conftest.er1
3093   cat conftest.err >&5
3094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095   (exit $ac_status); } &&
3096          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3097   { (case "(($ac_try" in
3098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099   *) ac_try_echo=$ac_try;;
3100 esac
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102   (eval "$ac_try") 2>&5
3103   ac_status=$?
3104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105   (exit $ac_status); }; } &&
3106          { ac_try='test -s conftest.$ac_objext'
3107   { (case "(($ac_try" in
3108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109   *) ac_try_echo=$ac_try;;
3110 esac
3111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112   (eval "$ac_try") 2>&5
3113   ac_status=$?
3114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115   (exit $ac_status); }; }; then
3116   :
3117 else
3118   echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3120
3121         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3122          CXXFLAGS="-g"
3123          cat >conftest.$ac_ext <<_ACEOF
3124 /* confdefs.h.  */
3125 _ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h.  */
3129
3130 int
3131 main ()
3132 {
3133
3134   ;
3135   return 0;
3136 }
3137 _ACEOF
3138 rm -f conftest.$ac_objext
3139 if { (ac_try="$ac_compile"
3140 case "(($ac_try" in
3141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142   *) ac_try_echo=$ac_try;;
3143 esac
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145   (eval "$ac_compile") 2>conftest.er1
3146   ac_status=$?
3147   grep -v '^ *+' conftest.er1 >conftest.err
3148   rm -f conftest.er1
3149   cat conftest.err >&5
3150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151   (exit $ac_status); } &&
3152          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3153   { (case "(($ac_try" in
3154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155   *) ac_try_echo=$ac_try;;
3156 esac
3157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158   (eval "$ac_try") 2>&5
3159   ac_status=$?
3160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161   (exit $ac_status); }; } &&
3162          { ac_try='test -s conftest.$ac_objext'
3163   { (case "(($ac_try" in
3164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165   *) ac_try_echo=$ac_try;;
3166 esac
3167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168   (eval "$ac_try") 2>&5
3169   ac_status=$?
3170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171   (exit $ac_status); }; }; then
3172   ac_cv_prog_cxx_g=yes
3173 else
3174   echo "$as_me: failed program was:" >&5
3175 sed 's/^/| /' conftest.$ac_ext >&5
3176
3177
3178 fi
3179
3180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181 fi
3182
3183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184 fi
3185
3186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3188 fi
3189 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3190 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3191 if test "$ac_test_CXXFLAGS" = set; then
3192   CXXFLAGS=$ac_save_CXXFLAGS
3193 elif test $ac_cv_prog_cxx_g = yes; then
3194   if test "$GXX" = yes; then
3195     CXXFLAGS="-g -O2"
3196   else
3197     CXXFLAGS="-g"
3198   fi
3199 else
3200   if test "$GXX" = yes; then
3201     CXXFLAGS="-O2"
3202   else
3203     CXXFLAGS=
3204   fi
3205 fi
3206 ac_ext=c
3207 ac_cpp='$CPP $CPPFLAGS'
3208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211
3212 ac_ext=c
3213 ac_cpp='$CPP $CPPFLAGS'
3214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3217 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3218 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3219 # On Suns, sometimes $CPP names a directory.
3220 if test -n "$CPP" && test -d "$CPP"; then
3221   CPP=
3222 fi
3223 if test -z "$CPP"; then
3224   if test "${ac_cv_prog_CPP+set}" = set; then
3225   echo $ECHO_N "(cached) $ECHO_C" >&6
3226 else
3227       # Double quotes because CPP needs to be expanded
3228     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3229     do
3230       ac_preproc_ok=false
3231 for ac_c_preproc_warn_flag in '' yes
3232 do
3233   # Use a header file that comes with gcc, so configuring glibc
3234   # with a fresh cross-compiler works.
3235   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3236   # <limits.h> exists even on freestanding compilers.
3237   # On the NeXT, cc -E runs the code through the compiler's parser,
3238   # not just through cpp. "Syntax error" is here to catch this case.
3239   cat >conftest.$ac_ext <<_ACEOF
3240 /* confdefs.h.  */
3241 _ACEOF
3242 cat confdefs.h >>conftest.$ac_ext
3243 cat >>conftest.$ac_ext <<_ACEOF
3244 /* end confdefs.h.  */
3245 #ifdef __STDC__
3246 # include <limits.h>
3247 #else
3248 # include <assert.h>
3249 #endif
3250                      Syntax error
3251 _ACEOF
3252 if { (ac_try="$ac_cpp conftest.$ac_ext"
3253 case "(($ac_try" in
3254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255   *) ac_try_echo=$ac_try;;
3256 esac
3257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3258   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3259   ac_status=$?
3260   grep -v '^ *+' conftest.er1 >conftest.err
3261   rm -f conftest.er1
3262   cat conftest.err >&5
3263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264   (exit $ac_status); } >/dev/null; then
3265   if test -s conftest.err; then
3266     ac_cpp_err=$ac_c_preproc_warn_flag
3267     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3268   else
3269     ac_cpp_err=
3270   fi
3271 else
3272   ac_cpp_err=yes
3273 fi
3274 if test -z "$ac_cpp_err"; then
3275   :
3276 else
3277   echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3279
3280   # Broken: fails on valid input.
3281 continue
3282 fi
3283
3284 rm -f conftest.err conftest.$ac_ext
3285
3286   # OK, works on sane cases.  Now check whether nonexistent headers
3287   # can be detected and how.
3288   cat >conftest.$ac_ext <<_ACEOF
3289 /* confdefs.h.  */
3290 _ACEOF
3291 cat confdefs.h >>conftest.$ac_ext
3292 cat >>conftest.$ac_ext <<_ACEOF
3293 /* end confdefs.h.  */
3294 #include <ac_nonexistent.h>
3295 _ACEOF
3296 if { (ac_try="$ac_cpp conftest.$ac_ext"
3297 case "(($ac_try" in
3298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299   *) ac_try_echo=$ac_try;;
3300 esac
3301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3302   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3303   ac_status=$?
3304   grep -v '^ *+' conftest.er1 >conftest.err
3305   rm -f conftest.er1
3306   cat conftest.err >&5
3307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308   (exit $ac_status); } >/dev/null; then
3309   if test -s conftest.err; then
3310     ac_cpp_err=$ac_c_preproc_warn_flag
3311     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3312   else
3313     ac_cpp_err=
3314   fi
3315 else
3316   ac_cpp_err=yes
3317 fi
3318 if test -z "$ac_cpp_err"; then
3319   # Broken: success on invalid input.
3320 continue
3321 else
3322   echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3324
3325   # Passes both tests.
3326 ac_preproc_ok=:
3327 break
3328 fi
3329
3330 rm -f conftest.err conftest.$ac_ext
3331
3332 done
3333 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3334 rm -f conftest.err conftest.$ac_ext
3335 if $ac_preproc_ok; then
3336   break
3337 fi
3338
3339     done
3340     ac_cv_prog_CPP=$CPP
3341
3342 fi
3343   CPP=$ac_cv_prog_CPP
3344 else
3345   ac_cv_prog_CPP=$CPP
3346 fi
3347 { echo "$as_me:$LINENO: result: $CPP" >&5
3348 echo "${ECHO_T}$CPP" >&6; }
3349 ac_preproc_ok=false
3350 for ac_c_preproc_warn_flag in '' yes
3351 do
3352   # Use a header file that comes with gcc, so configuring glibc
3353   # with a fresh cross-compiler works.
3354   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3355   # <limits.h> exists even on freestanding compilers.
3356   # On the NeXT, cc -E runs the code through the compiler's parser,
3357   # not just through cpp. "Syntax error" is here to catch this case.
3358   cat >conftest.$ac_ext <<_ACEOF
3359 /* confdefs.h.  */
3360 _ACEOF
3361 cat confdefs.h >>conftest.$ac_ext
3362 cat >>conftest.$ac_ext <<_ACEOF
3363 /* end confdefs.h.  */
3364 #ifdef __STDC__
3365 # include <limits.h>
3366 #else
3367 # include <assert.h>
3368 #endif
3369                      Syntax error
3370 _ACEOF
3371 if { (ac_try="$ac_cpp conftest.$ac_ext"
3372 case "(($ac_try" in
3373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374   *) ac_try_echo=$ac_try;;
3375 esac
3376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3377   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3378   ac_status=$?
3379   grep -v '^ *+' conftest.er1 >conftest.err
3380   rm -f conftest.er1
3381   cat conftest.err >&5
3382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383   (exit $ac_status); } >/dev/null; then
3384   if test -s conftest.err; then
3385     ac_cpp_err=$ac_c_preproc_warn_flag
3386     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3387   else
3388     ac_cpp_err=
3389   fi
3390 else
3391   ac_cpp_err=yes
3392 fi
3393 if test -z "$ac_cpp_err"; then
3394   :
3395 else
3396   echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3398
3399   # Broken: fails on valid input.
3400 continue
3401 fi
3402
3403 rm -f conftest.err conftest.$ac_ext
3404
3405   # OK, works on sane cases.  Now check whether nonexistent headers
3406   # can be detected and how.
3407   cat >conftest.$ac_ext <<_ACEOF
3408 /* confdefs.h.  */
3409 _ACEOF
3410 cat confdefs.h >>conftest.$ac_ext
3411 cat >>conftest.$ac_ext <<_ACEOF
3412 /* end confdefs.h.  */
3413 #include <ac_nonexistent.h>
3414 _ACEOF
3415 if { (ac_try="$ac_cpp conftest.$ac_ext"
3416 case "(($ac_try" in
3417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418   *) ac_try_echo=$ac_try;;
3419 esac
3420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3422   ac_status=$?
3423   grep -v '^ *+' conftest.er1 >conftest.err
3424   rm -f conftest.er1
3425   cat conftest.err >&5
3426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427   (exit $ac_status); } >/dev/null; then
3428   if test -s conftest.err; then
3429     ac_cpp_err=$ac_c_preproc_warn_flag
3430     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3431   else
3432     ac_cpp_err=
3433   fi
3434 else
3435   ac_cpp_err=yes
3436 fi
3437 if test -z "$ac_cpp_err"; then
3438   # Broken: success on invalid input.
3439 continue
3440 else
3441   echo "$as_me: failed program was:" >&5
3442 sed 's/^/| /' conftest.$ac_ext >&5
3443
3444   # Passes both tests.
3445 ac_preproc_ok=:
3446 break
3447 fi
3448
3449 rm -f conftest.err conftest.$ac_ext
3450
3451 done
3452 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3453 rm -f conftest.err conftest.$ac_ext
3454 if $ac_preproc_ok; then
3455   :
3456 else
3457   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3458 See \`config.log' for more details." >&5
3459 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3460 See \`config.log' for more details." >&2;}
3461    { (exit 1); exit 1; }; }
3462 fi
3463
3464 ac_ext=c
3465 ac_cpp='$CPP $CPPFLAGS'
3466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3469
3470
3471
3472
3473 # Check whether --enable-polly was given.
3474 if test "${enable_polly+set}" = set; then
3475   enableval=$enable_polly;
3476 else
3477   enableval=default
3478 fi
3479
3480 case "$enableval" in
3481   yes) ENABLE_POLLY=1
3482  ;;
3483   no)  ENABLE_POLLY=0
3484  ;;
3485   default) ENABLE_POLLY=1
3486  ;;
3487   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3488 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3489    { (exit 1); exit 1; }; } ;;
3490 esac
3491
3492
3493 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3494   LLVM_HAS_POLLY=1
3495
3496   subdirs="$subdirs tools/polly"
3497
3498 fi
3499
3500
3501 # Make sure we can run config.sub.
3502 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3503   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3504 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3505    { (exit 1); exit 1; }; }
3506
3507 { echo "$as_me:$LINENO: checking build system type" >&5
3508 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3509 if test "${ac_cv_build+set}" = set; then
3510   echo $ECHO_N "(cached) $ECHO_C" >&6
3511 else
3512   ac_build_alias=$build_alias
3513 test "x$ac_build_alias" = x &&
3514   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3515 test "x$ac_build_alias" = x &&
3516   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3517 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3518    { (exit 1); exit 1; }; }
3519 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3520   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3521 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3522    { (exit 1); exit 1; }; }
3523
3524 fi
3525 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3526 echo "${ECHO_T}$ac_cv_build" >&6; }
3527 case $ac_cv_build in
3528 *-*-*) ;;
3529 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3530 echo "$as_me: error: invalid value of canonical build" >&2;}
3531    { (exit 1); exit 1; }; };;
3532 esac
3533 build=$ac_cv_build
3534 ac_save_IFS=$IFS; IFS='-'
3535 set x $ac_cv_build
3536 shift
3537 build_cpu=$1
3538 build_vendor=$2
3539 shift; shift
3540 # Remember, the first character of IFS is used to create $*,
3541 # except with old shells:
3542 build_os=$*
3543 IFS=$ac_save_IFS
3544 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3545
3546
3547 { echo "$as_me:$LINENO: checking host system type" >&5
3548 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3549 if test "${ac_cv_host+set}" = set; then
3550   echo $ECHO_N "(cached) $ECHO_C" >&6
3551 else
3552   if test "x$host_alias" = x; then
3553   ac_cv_host=$ac_cv_build
3554 else
3555   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3556     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3557 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3558    { (exit 1); exit 1; }; }
3559 fi
3560
3561 fi
3562 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3563 echo "${ECHO_T}$ac_cv_host" >&6; }
3564 case $ac_cv_host in
3565 *-*-*) ;;
3566 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3567 echo "$as_me: error: invalid value of canonical host" >&2;}
3568    { (exit 1); exit 1; }; };;
3569 esac
3570 host=$ac_cv_host
3571 ac_save_IFS=$IFS; IFS='-'
3572 set x $ac_cv_host
3573 shift
3574 host_cpu=$1
3575 host_vendor=$2
3576 shift; shift
3577 # Remember, the first character of IFS is used to create $*,
3578 # except with old shells:
3579 host_os=$*
3580 IFS=$ac_save_IFS
3581 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3582
3583
3584 { echo "$as_me:$LINENO: checking target system type" >&5
3585 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3586 if test "${ac_cv_target+set}" = set; then
3587   echo $ECHO_N "(cached) $ECHO_C" >&6
3588 else
3589   if test "x$target_alias" = x; then
3590   ac_cv_target=$ac_cv_host
3591 else
3592   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3593     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3594 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3595    { (exit 1); exit 1; }; }
3596 fi
3597
3598 fi
3599 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3600 echo "${ECHO_T}$ac_cv_target" >&6; }
3601 case $ac_cv_target in
3602 *-*-*) ;;
3603 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3604 echo "$as_me: error: invalid value of canonical target" >&2;}
3605    { (exit 1); exit 1; }; };;
3606 esac
3607 target=$ac_cv_target
3608 ac_save_IFS=$IFS; IFS='-'
3609 set x $ac_cv_target
3610 shift
3611 target_cpu=$1
3612 target_vendor=$2
3613 shift; shift
3614 # Remember, the first character of IFS is used to create $*,
3615 # except with old shells:
3616 target_os=$*
3617 IFS=$ac_save_IFS
3618 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3619
3620
3621 # The aliases save the names the user supplied, while $host etc.
3622 # will get canonicalized.
3623 test -n "$target_alias" &&
3624   test "$program_prefix$program_suffix$program_transform_name" = \
3625     NONENONEs,x,x, &&
3626   program_prefix=${target_alias}-
3627
3628 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3629 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3630 if test "${llvm_cv_os_type+set}" = set; then
3631   echo $ECHO_N "(cached) $ECHO_C" >&6
3632 else
3633   case $host in
3634   *-*-aix*)
3635     llvm_cv_link_all_option="-Wl,--whole-archive"
3636     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3637     llvm_cv_os_type="AIX"
3638     llvm_cv_platform_type="Unix" ;;
3639   *-*-irix*)
3640     llvm_cv_link_all_option="-Wl,--whole-archive"
3641     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3642     llvm_cv_os_type="IRIX"
3643     llvm_cv_platform_type="Unix" ;;
3644   *-*-cygwin*)
3645     llvm_cv_link_all_option="-Wl,--whole-archive"
3646     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3647     llvm_cv_os_type="Cygwin"
3648     llvm_cv_platform_type="Unix" ;;
3649   *-*-darwin*)
3650     llvm_cv_link_all_option="-Wl,-all_load"
3651     llvm_cv_no_link_all_option="-Wl,-noall_load"
3652     llvm_cv_os_type="Darwin"
3653     llvm_cv_platform_type="Unix" ;;
3654   *-*-minix*)
3655     llvm_cv_link_all_option="-Wl,-all_load"
3656     llvm_cv_no_link_all_option="-Wl,-noall_load"
3657     llvm_cv_os_type="Minix"
3658     llvm_cv_platform_type="Unix" ;;
3659   *-*-freebsd* | *-*-kfreebsd-gnu)
3660     llvm_cv_link_all_option="-Wl,--whole-archive"
3661     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3662     llvm_cv_os_type="FreeBSD"
3663     llvm_cv_platform_type="Unix" ;;
3664   *-*-openbsd*)
3665     llvm_cv_link_all_option="-Wl,--whole-archive"
3666     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3667     llvm_cv_os_type="OpenBSD"
3668     llvm_cv_platform_type="Unix" ;;
3669   *-*-netbsd*)
3670     llvm_cv_link_all_option="-Wl,--whole-archive"
3671     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3672     llvm_cv_os_type="NetBSD"
3673     llvm_cv_platform_type="Unix" ;;
3674   *-*-dragonfly*)
3675     llvm_cv_link_all_option="-Wl,--whole-archive"
3676     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3677     llvm_cv_os_type="DragonFly"
3678     llvm_cv_platform_type="Unix" ;;
3679   *-*-hpux*)
3680     llvm_cv_link_all_option="-Wl,--whole-archive"
3681     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3682     llvm_cv_os_type="HP-UX"
3683     llvm_cv_platform_type="Unix" ;;
3684   *-*-interix*)
3685     llvm_cv_link_all_option="-Wl,--whole-archive"
3686     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3687     llvm_cv_os_type="Interix"
3688     llvm_cv_platform_type="Unix" ;;
3689   *-*-linux*)
3690     llvm_cv_link_all_option="-Wl,--whole-archive"
3691     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3692     llvm_cv_os_type="Linux"
3693     llvm_cv_platform_type="Unix" ;;
3694   *-*-gnu*)
3695     llvm_cv_link_all_option="-Wl,--whole-archive"
3696     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3697     llvm_cv_os_type="GNU"
3698     llvm_cv_platform_type="Unix" ;;
3699   *-*-solaris*)
3700     llvm_cv_link_all_option="-Wl,-z,allextract"
3701     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3702     llvm_cv_os_type="SunOS"
3703     llvm_cv_platform_type="Unix" ;;
3704   *-*-auroraux*)
3705     llvm_cv_link_all_option="-Wl,-z,allextract"
3706     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3707     llvm_cv_os_type="AuroraUX"
3708     llvm_cv_platform_type="Unix" ;;
3709   *-*-win32*)
3710     llvm_cv_link_all_option="-Wl,--whole-archive"
3711     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3712     llvm_cv_os_type="Win32"
3713     llvm_cv_platform_type="Win32" ;;
3714   *-*-mingw*)
3715     llvm_cv_link_all_option="-Wl,--whole-archive"
3716     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3717     llvm_cv_os_type="MingW"
3718     llvm_cv_platform_type="Win32" ;;
3719   *-*-haiku*)
3720     llvm_cv_link_all_option="-Wl,--whole-archive"
3721     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3722     llvm_cv_os_type="Haiku"
3723     llvm_cv_platform_type="Unix" ;;
3724   *-unknown-eabi*)
3725     llvm_cv_link_all_option="-Wl,--whole-archive"
3726     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3727     llvm_cv_os_type="Freestanding"
3728     llvm_cv_platform_type="Unix" ;;
3729   *-unknown-elf*)
3730     llvm_cv_link_all_option="-Wl,--whole-archive"
3731     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3732     llvm_cv_os_type="Freestanding"
3733     llvm_cv_platform_type="Unix" ;;
3734   *)
3735     llvm_cv_link_all_option=""
3736     llvm_cv_no_link_all_option=""
3737     llvm_cv_os_type="Unknown"
3738     llvm_cv_platform_type="Unknown" ;;
3739 esac
3740 fi
3741 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3742 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3743
3744 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3745 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3746 if test "${llvm_cv_target_os_type+set}" = set; then
3747   echo $ECHO_N "(cached) $ECHO_C" >&6
3748 else
3749   case $target in
3750   *-*-aix*)
3751     llvm_cv_target_os_type="AIX" ;;
3752   *-*-irix*)
3753     llvm_cv_target_os_type="IRIX" ;;
3754   *-*-cygwin*)
3755     llvm_cv_target_os_type="Cygwin" ;;
3756   *-*-darwin*)
3757     llvm_cv_target_os_type="Darwin" ;;
3758   *-*-minix*)
3759     llvm_cv_target_os_type="Minix" ;;
3760   *-*-freebsd* | *-*-kfreebsd-gnu)
3761     llvm_cv_target_os_type="FreeBSD" ;;
3762   *-*-openbsd*)
3763     llvm_cv_target_os_type="OpenBSD" ;;
3764   *-*-netbsd*)
3765     llvm_cv_target_os_type="NetBSD" ;;
3766   *-*-dragonfly*)
3767     llvm_cv_target_os_type="DragonFly" ;;
3768   *-*-hpux*)
3769     llvm_cv_target_os_type="HP-UX" ;;
3770   *-*-interix*)
3771     llvm_cv_target_os_type="Interix" ;;
3772   *-*-linux*)
3773     llvm_cv_target_os_type="Linux" ;;
3774   *-*-gnu*)
3775     llvm_cv_target_os_type="GNU" ;;
3776   *-*-solaris*)
3777     llvm_cv_target_os_type="SunOS" ;;
3778   *-*-auroraux*)
3779     llvm_cv_target_os_type="AuroraUX" ;;
3780   *-*-win32*)
3781     llvm_cv_target_os_type="Win32" ;;
3782   *-*-mingw*)
3783     llvm_cv_target_os_type="MingW" ;;
3784   *-*-haiku*)
3785     llvm_cv_target_os_type="Haiku" ;;
3786   *-*-rtems*)
3787     llvm_cv_target_os_type="RTEMS" ;;
3788   *-*-nacl*)
3789     llvm_cv_target_os_type="NativeClient" ;;
3790   *-unknown-eabi*)
3791     llvm_cv_target_os_type="Freestanding" ;;
3792   *)
3793     llvm_cv_target_os_type="Unknown" ;;
3794 esac
3795 fi
3796 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3797 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3798
3799 if test "$llvm_cv_os_type" = "Unknown" ; then
3800   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3801 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3802    { (exit 1); exit 1; }; }
3803 fi
3804
3805 OS=$llvm_cv_os_type
3806
3807 HOST_OS=$llvm_cv_os_type
3808
3809 TARGET_OS=$llvm_cv_target_os_type
3810
3811
3812 LINKALL=$llvm_cv_link_all_option
3813
3814 NOLINKALL=$llvm_cv_no_link_all_option
3815
3816
3817 case $llvm_cv_platform_type in
3818   Unix)
3819
3820 cat >>confdefs.h <<\_ACEOF
3821 #define LLVM_ON_UNIX 1
3822 _ACEOF
3823
3824     LLVM_ON_UNIX=1
3825
3826     LLVM_ON_WIN32=0
3827
3828     ;;
3829   Win32)
3830
3831 cat >>confdefs.h <<\_ACEOF
3832 #define LLVM_ON_WIN32 1
3833 _ACEOF
3834
3835     LLVM_ON_UNIX=0
3836
3837     LLVM_ON_WIN32=1
3838
3839     ;;
3840 esac
3841
3842 { echo "$as_me:$LINENO: checking target architecture" >&5
3843 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3844 if test "${llvm_cv_target_arch+set}" = set; then
3845   echo $ECHO_N "(cached) $ECHO_C" >&6
3846 else
3847   case $target in
3848   i?86-*)                 llvm_cv_target_arch="x86" ;;
3849   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3850   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3851   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3852   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3853   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
3854   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
3855   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
3856   xcore-*)                llvm_cv_target_arch="XCore" ;;
3857   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3858   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3859   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
3860   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
3861   *)                      llvm_cv_target_arch="Unknown" ;;
3862 esac
3863 fi
3864 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3865 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3866
3867 if test "$llvm_cv_target_arch" = "Unknown" ; then
3868   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3869 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3870 fi
3871
3872 # Determine the LLVM native architecture for the target
3873 case "$llvm_cv_target_arch" in
3874     x86)     LLVM_NATIVE_ARCH="X86" ;;
3875     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3876     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3877 esac
3878
3879 ARCH=$llvm_cv_target_arch
3880
3881
3882
3883
3884 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3885 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3886 if test "${ac_cv_path_GREP+set}" = set; then
3887   echo $ECHO_N "(cached) $ECHO_C" >&6
3888 else
3889   # Extract the first word of "grep ggrep" to use in msg output
3890 if test -z "$GREP"; then
3891 set dummy grep ggrep; ac_prog_name=$2
3892 if test "${ac_cv_path_GREP+set}" = set; then
3893   echo $ECHO_N "(cached) $ECHO_C" >&6
3894 else
3895   ac_path_GREP_found=false
3896 # Loop through the user's path and test for each of PROGNAME-LIST
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3899 do
3900   IFS=$as_save_IFS
3901   test -z "$as_dir" && as_dir=.
3902   for ac_prog in grep ggrep; do
3903   for ac_exec_ext in '' $ac_executable_extensions; do
3904     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3905     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3906     # Check for GNU ac_path_GREP and select it if it is found.
3907   # Check for GNU $ac_path_GREP
3908 case `"$ac_path_GREP" --version 2>&1` in
3909 *GNU*)
3910   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3911 *)
3912   ac_count=0
3913   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3914   while :
3915   do
3916     cat "conftest.in" "conftest.in" >"conftest.tmp"
3917     mv "conftest.tmp" "conftest.in"
3918     cp "conftest.in" "conftest.nl"
3919     echo 'GREP' >> "conftest.nl"
3920     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3921     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3922     ac_count=`expr $ac_count + 1`
3923     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3924       # Best one so far, save it but keep looking for a better one
3925       ac_cv_path_GREP="$ac_path_GREP"
3926       ac_path_GREP_max=$ac_count
3927     fi
3928     # 10*(2^10) chars as input seems more than enough
3929     test $ac_count -gt 10 && break
3930   done
3931   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3932 esac
3933
3934
3935     $ac_path_GREP_found && break 3
3936   done
3937 done
3938
3939 done
3940 IFS=$as_save_IFS
3941
3942
3943 fi
3944
3945 GREP="$ac_cv_path_GREP"
3946 if test -z "$GREP"; then
3947   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3948 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3949    { (exit 1); exit 1; }; }
3950 fi
3951
3952 else
3953   ac_cv_path_GREP=$GREP
3954 fi
3955
3956
3957 fi
3958 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3959 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3960  GREP="$ac_cv_path_GREP"
3961
3962
3963 { echo "$as_me:$LINENO: checking for egrep" >&5
3964 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3965 if test "${ac_cv_path_EGREP+set}" = set; then
3966   echo $ECHO_N "(cached) $ECHO_C" >&6
3967 else
3968   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3969    then ac_cv_path_EGREP="$GREP -E"
3970    else
3971      # Extract the first word of "egrep" to use in msg output
3972 if test -z "$EGREP"; then
3973 set dummy egrep; ac_prog_name=$2
3974 if test "${ac_cv_path_EGREP+set}" = set; then
3975   echo $ECHO_N "(cached) $ECHO_C" >&6
3976 else
3977   ac_path_EGREP_found=false
3978 # Loop through the user's path and test for each of PROGNAME-LIST
3979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3981 do
3982   IFS=$as_save_IFS
3983   test -z "$as_dir" && as_dir=.
3984   for ac_prog in egrep; do
3985   for ac_exec_ext in '' $ac_executable_extensions; do
3986     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3987     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3988     # Check for GNU ac_path_EGREP and select it if it is found.
3989   # Check for GNU $ac_path_EGREP
3990 case `"$ac_path_EGREP" --version 2>&1` in
3991 *GNU*)
3992   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3993 *)
3994   ac_count=0
3995   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3996   while :
3997   do
3998     cat "conftest.in" "conftest.in" >"conftest.tmp"
3999     mv "conftest.tmp" "conftest.in"
4000     cp "conftest.in" "conftest.nl"
4001     echo 'EGREP' >> "conftest.nl"
4002     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4003     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4004     ac_count=`expr $ac_count + 1`
4005     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4006       # Best one so far, save it but keep looking for a better one
4007       ac_cv_path_EGREP="$ac_path_EGREP"
4008       ac_path_EGREP_max=$ac_count
4009     fi
4010     # 10*(2^10) chars as input seems more than enough
4011     test $ac_count -gt 10 && break
4012   done
4013   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4014 esac
4015
4016
4017     $ac_path_EGREP_found && break 3
4018   done
4019 done
4020
4021 done
4022 IFS=$as_save_IFS
4023
4024
4025 fi
4026
4027 EGREP="$ac_cv_path_EGREP"
4028 if test -z "$EGREP"; then
4029   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4030 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4031    { (exit 1); exit 1; }; }
4032 fi
4033
4034 else
4035   ac_cv_path_EGREP=$EGREP
4036 fi
4037
4038
4039    fi
4040 fi
4041 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4042 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4043  EGREP="$ac_cv_path_EGREP"
4044
4045
4046 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4047 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4048 if test "${ac_cv_header_stdc+set}" = set; then
4049   echo $ECHO_N "(cached) $ECHO_C" >&6
4050 else
4051   cat >conftest.$ac_ext <<_ACEOF
4052 /* confdefs.h.  */
4053 _ACEOF
4054 cat confdefs.h >>conftest.$ac_ext
4055 cat >>conftest.$ac_ext <<_ACEOF
4056 /* end confdefs.h.  */
4057 #include <stdlib.h>
4058 #include <stdarg.h>
4059 #include <string.h>
4060 #include <float.h>
4061
4062 int
4063 main ()
4064 {
4065
4066   ;
4067   return 0;
4068 }
4069 _ACEOF
4070 rm -f conftest.$ac_objext
4071 if { (ac_try="$ac_compile"
4072 case "(($ac_try" in
4073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4074   *) ac_try_echo=$ac_try;;
4075 esac
4076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4077   (eval "$ac_compile") 2>conftest.er1
4078   ac_status=$?
4079   grep -v '^ *+' conftest.er1 >conftest.err
4080   rm -f conftest.er1
4081   cat conftest.err >&5
4082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083   (exit $ac_status); } &&
4084          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
4094          { ac_try='test -s conftest.$ac_objext'
4095   { (case "(($ac_try" in
4096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097   *) ac_try_echo=$ac_try;;
4098 esac
4099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4100   (eval "$ac_try") 2>&5
4101   ac_status=$?
4102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103   (exit $ac_status); }; }; then
4104   ac_cv_header_stdc=yes
4105 else
4106   echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4108
4109         ac_cv_header_stdc=no
4110 fi
4111
4112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4113
4114 if test $ac_cv_header_stdc = yes; then
4115   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4116   cat >conftest.$ac_ext <<_ACEOF
4117 /* confdefs.h.  */
4118 _ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h.  */
4122 #include <string.h>
4123
4124 _ACEOF
4125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4126   $EGREP "memchr" >/dev/null 2>&1; then
4127   :
4128 else
4129   ac_cv_header_stdc=no
4130 fi
4131 rm -f conftest*
4132
4133 fi
4134
4135 if test $ac_cv_header_stdc = yes; then
4136   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4137   cat >conftest.$ac_ext <<_ACEOF
4138 /* confdefs.h.  */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h.  */
4143 #include <stdlib.h>
4144
4145 _ACEOF
4146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4147   $EGREP "free" >/dev/null 2>&1; then
4148   :
4149 else
4150   ac_cv_header_stdc=no
4151 fi
4152 rm -f conftest*
4153
4154 fi
4155
4156 if test $ac_cv_header_stdc = yes; then
4157   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4158   if test "$cross_compiling" = yes; then
4159   :
4160 else
4161   cat >conftest.$ac_ext <<_ACEOF
4162 /* confdefs.h.  */
4163 _ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h.  */
4167 #include <ctype.h>
4168 #include <stdlib.h>
4169 #if ((' ' & 0x0FF) == 0x020)
4170 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4171 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4172 #else
4173 # define ISLOWER(c) \
4174                    (('a' <= (c) && (c) <= 'i') \
4175                      || ('j' <= (c) && (c) <= 'r') \
4176                      || ('s' <= (c) && (c) <= 'z'))
4177 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4178 #endif
4179
4180 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4181 int
4182 main ()
4183 {
4184   int i;
4185   for (i = 0; i < 256; i++)
4186     if (XOR (islower (i), ISLOWER (i))
4187         || toupper (i) != TOUPPER (i))
4188       return 2;
4189   return 0;
4190 }
4191 _ACEOF
4192 rm -f conftest$ac_exeext
4193 if { (ac_try="$ac_link"
4194 case "(($ac_try" in
4195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196   *) ac_try_echo=$ac_try;;
4197 esac
4198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4199   (eval "$ac_link") 2>&5
4200   ac_status=$?
4201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4203   { (case "(($ac_try" in
4204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205   *) ac_try_echo=$ac_try;;
4206 esac
4207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4208   (eval "$ac_try") 2>&5
4209   ac_status=$?
4210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211   (exit $ac_status); }; }; then
4212   :
4213 else
4214   echo "$as_me: program exited with status $ac_status" >&5
4215 echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4217
4218 ( exit $ac_status )
4219 ac_cv_header_stdc=no
4220 fi
4221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4222 fi
4223
4224
4225 fi
4226 fi
4227 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4228 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4229 if test $ac_cv_header_stdc = yes; then
4230
4231 cat >>confdefs.h <<\_ACEOF
4232 #define STDC_HEADERS 1
4233 _ACEOF
4234
4235 fi
4236
4237 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4248                   inttypes.h stdint.h unistd.h
4249 do
4250 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4251 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4254   echo $ECHO_N "(cached) $ECHO_C" >&6
4255 else
4256   cat >conftest.$ac_ext <<_ACEOF
4257 /* confdefs.h.  */
4258 _ACEOF
4259 cat confdefs.h >>conftest.$ac_ext
4260 cat >>conftest.$ac_ext <<_ACEOF
4261 /* end confdefs.h.  */
4262 $ac_includes_default
4263
4264 #include <$ac_header>
4265 _ACEOF
4266 rm -f conftest.$ac_objext
4267 if { (ac_try="$ac_compile"
4268 case "(($ac_try" in
4269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270   *) ac_try_echo=$ac_try;;
4271 esac
4272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4273   (eval "$ac_compile") 2>conftest.er1
4274   ac_status=$?
4275   grep -v '^ *+' conftest.er1 >conftest.err
4276   rm -f conftest.er1
4277   cat conftest.err >&5
4278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279   (exit $ac_status); } &&
4280          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
4290          { ac_try='test -s conftest.$ac_objext'
4291   { (case "(($ac_try" in
4292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293   *) ac_try_echo=$ac_try;;
4294 esac
4295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4296   (eval "$ac_try") 2>&5
4297   ac_status=$?
4298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299   (exit $ac_status); }; }; then
4300   eval "$as_ac_Header=yes"
4301 else
4302   echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4304
4305         eval "$as_ac_Header=no"
4306 fi
4307
4308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309 fi
4310 ac_res=`eval echo '${'$as_ac_Header'}'`
4311                { echo "$as_me:$LINENO: result: $ac_res" >&5
4312 echo "${ECHO_T}$ac_res" >&6; }
4313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4314   cat >>confdefs.h <<_ACEOF
4315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4316 _ACEOF
4317
4318 fi
4319
4320 done
4321
4322
4323 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4324 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4325 if test "${ac_cv_c_bigendian+set}" = set; then
4326   echo $ECHO_N "(cached) $ECHO_C" >&6
4327 else
4328   # See if sys/param.h defines the BYTE_ORDER macro.
4329 cat >conftest.$ac_ext <<_ACEOF
4330 /* confdefs.h.  */
4331 _ACEOF
4332 cat confdefs.h >>conftest.$ac_ext
4333 cat >>conftest.$ac_ext <<_ACEOF
4334 /* end confdefs.h.  */
4335 #include <sys/types.h>
4336 #include <sys/param.h>
4337
4338 int
4339 main ()
4340 {
4341 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4342  bogus endian macros
4343 #endif
4344
4345   ;
4346   return 0;
4347 }
4348 _ACEOF
4349 rm -f conftest.$ac_objext
4350 if { (ac_try="$ac_compile"
4351 case "(($ac_try" in
4352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353   *) ac_try_echo=$ac_try;;
4354 esac
4355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4356   (eval "$ac_compile") 2>conftest.er1
4357   ac_status=$?
4358   grep -v '^ *+' conftest.er1 >conftest.err
4359   rm -f conftest.er1
4360   cat conftest.err >&5
4361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362   (exit $ac_status); } &&
4363          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
4373          { ac_try='test -s conftest.$ac_objext'
4374   { (case "(($ac_try" in
4375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376   *) ac_try_echo=$ac_try;;
4377 esac
4378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4379   (eval "$ac_try") 2>&5
4380   ac_status=$?
4381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382   (exit $ac_status); }; }; then
4383   # It does; now see whether it defined to BIG_ENDIAN or not.
4384 cat >conftest.$ac_ext <<_ACEOF
4385 /* confdefs.h.  */
4386 _ACEOF
4387 cat confdefs.h >>conftest.$ac_ext
4388 cat >>conftest.$ac_ext <<_ACEOF
4389 /* end confdefs.h.  */
4390 #include <sys/types.h>
4391 #include <sys/param.h>
4392
4393 int
4394 main ()
4395 {
4396 #if BYTE_ORDER != BIG_ENDIAN
4397  not big endian
4398 #endif
4399
4400   ;
4401   return 0;
4402 }
4403 _ACEOF
4404 rm -f conftest.$ac_objext
4405 if { (ac_try="$ac_compile"
4406 case "(($ac_try" in
4407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4408   *) ac_try_echo=$ac_try;;
4409 esac
4410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4411   (eval "$ac_compile") 2>conftest.er1
4412   ac_status=$?
4413   grep -v '^ *+' conftest.er1 >conftest.err
4414   rm -f conftest.er1
4415   cat conftest.err >&5
4416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417   (exit $ac_status); } &&
4418          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
4428          { ac_try='test -s conftest.$ac_objext'
4429   { (case "(($ac_try" in
4430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431   *) ac_try_echo=$ac_try;;
4432 esac
4433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4434   (eval "$ac_try") 2>&5
4435   ac_status=$?
4436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437   (exit $ac_status); }; }; then
4438   ac_cv_c_bigendian=yes
4439 else
4440   echo "$as_me: failed program was:" >&5
4441 sed 's/^/| /' conftest.$ac_ext >&5
4442
4443         ac_cv_c_bigendian=no
4444 fi
4445
4446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4447 else
4448   echo "$as_me: failed program was:" >&5
4449 sed 's/^/| /' conftest.$ac_ext >&5
4450
4451         # It does not; compile a test program.
4452 if test "$cross_compiling" = yes; then
4453   # try to guess the endianness by grepping values into an object file
4454   ac_cv_c_bigendian=unknown
4455   cat >conftest.$ac_ext <<_ACEOF
4456 /* confdefs.h.  */
4457 _ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h.  */
4461 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4462 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4463 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4464 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4465 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4466 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4467 int
4468 main ()
4469 {
4470  _ascii (); _ebcdic ();
4471   ;
4472   return 0;
4473 }
4474 _ACEOF
4475 rm -f conftest.$ac_objext
4476 if { (ac_try="$ac_compile"
4477 case "(($ac_try" in
4478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4479   *) ac_try_echo=$ac_try;;
4480 esac
4481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4482   (eval "$ac_compile") 2>conftest.er1
4483   ac_status=$?
4484   grep -v '^ *+' conftest.er1 >conftest.err
4485   rm -f conftest.er1
4486   cat conftest.err >&5
4487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488   (exit $ac_status); } &&
4489          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
4499          { ac_try='test -s conftest.$ac_objext'
4500   { (case "(($ac_try" in
4501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4502   *) ac_try_echo=$ac_try;;
4503 esac
4504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4505   (eval "$ac_try") 2>&5
4506   ac_status=$?
4507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508   (exit $ac_status); }; }; then
4509   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4510   ac_cv_c_bigendian=yes
4511 fi
4512 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4513   if test "$ac_cv_c_bigendian" = unknown; then
4514     ac_cv_c_bigendian=no
4515   else
4516     # finding both strings is unlikely to happen, but who knows?
4517     ac_cv_c_bigendian=unknown
4518   fi
4519 fi
4520 else
4521   echo "$as_me: failed program was:" >&5
4522 sed 's/^/| /' conftest.$ac_ext >&5
4523
4524
4525 fi
4526
4527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4528 else
4529   cat >conftest.$ac_ext <<_ACEOF
4530 /* confdefs.h.  */
4531 _ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h.  */
4535 $ac_includes_default
4536 int
4537 main ()
4538 {
4539
4540   /* Are we little or big endian?  From Harbison&Steele.  */
4541   union
4542   {
4543     long int l;
4544     char c[sizeof (long int)];
4545   } u;
4546   u.l = 1;
4547   return u.c[sizeof (long int) - 1] == 1;
4548
4549   ;
4550   return 0;
4551 }
4552 _ACEOF
4553 rm -f conftest$ac_exeext
4554 if { (ac_try="$ac_link"
4555 case "(($ac_try" in
4556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4557   *) ac_try_echo=$ac_try;;
4558 esac
4559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4560   (eval "$ac_link") 2>&5
4561   ac_status=$?
4562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4564   { (case "(($ac_try" in
4565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566   *) ac_try_echo=$ac_try;;
4567 esac
4568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4569   (eval "$ac_try") 2>&5
4570   ac_status=$?
4571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572   (exit $ac_status); }; }; then
4573   ac_cv_c_bigendian=no
4574 else
4575   echo "$as_me: program exited with status $ac_status" >&5
4576 echo "$as_me: failed program was:" >&5
4577 sed 's/^/| /' conftest.$ac_ext >&5
4578
4579 ( exit $ac_status )
4580 ac_cv_c_bigendian=yes
4581 fi
4582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4583 fi
4584
4585
4586 fi
4587
4588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4589 fi
4590 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4591 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4592 case $ac_cv_c_bigendian in
4593   yes)
4594     ENDIAN=big
4595  ;;
4596   no)
4597     ENDIAN=little
4598  ;;
4599   *)
4600     { { echo "$as_me:$LINENO: error: unknown endianness
4601 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4602 echo "$as_me: error: unknown endianness
4603 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4604    { (exit 1); exit 1; }; } ;;
4605 esac
4606
4607
4608 if test "$cross_compiling" = yes; then
4609   LLVM_CROSS_COMPILING=1
4610
4611
4612 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4613 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4614 if test "${ac_cv_build_exeext+set}" = set; then
4615   echo $ECHO_N "(cached) $ECHO_C" >&6
4616 else
4617   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4618   ac_cv_build_exeext=.exe
4619 else
4620   ac_build_prefix=${build_alias}-
4621
4622   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4623 set dummy ${ac_build_prefix}gcc; ac_word=$2
4624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4626 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4627   echo $ECHO_N "(cached) $ECHO_C" >&6
4628 else
4629   if test -n "$BUILD_CC"; then
4630   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4631 else
4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 for as_dir in $PATH
4634 do
4635   IFS=$as_save_IFS
4636   test -z "$as_dir" && as_dir=.
4637   for ac_exec_ext in '' $ac_executable_extensions; do
4638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4639     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4641     break 2
4642   fi
4643 done
4644 done
4645 IFS=$as_save_IFS
4646
4647 fi
4648 fi
4649 BUILD_CC=$ac_cv_prog_BUILD_CC
4650 if test -n "$BUILD_CC"; then
4651   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4652 echo "${ECHO_T}$BUILD_CC" >&6; }
4653 else
4654   { echo "$as_me:$LINENO: result: no" >&5
4655 echo "${ECHO_T}no" >&6; }
4656 fi
4657
4658
4659   if test -z "$BUILD_CC"; then
4660      # Extract the first word of "gcc", so it can be a program name with args.
4661 set dummy gcc; ac_word=$2
4662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4664 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4665   echo $ECHO_N "(cached) $ECHO_C" >&6
4666 else
4667   if test -n "$BUILD_CC"; then
4668   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4669 else
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH
4672 do
4673   IFS=$as_save_IFS
4674   test -z "$as_dir" && as_dir=.
4675   for ac_exec_ext in '' $ac_executable_extensions; do
4676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4677     ac_cv_prog_BUILD_CC="gcc"
4678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4679     break 2
4680   fi
4681 done
4682 done
4683 IFS=$as_save_IFS
4684
4685 fi
4686 fi
4687 BUILD_CC=$ac_cv_prog_BUILD_CC
4688 if test -n "$BUILD_CC"; then
4689   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4690 echo "${ECHO_T}$BUILD_CC" >&6; }
4691 else
4692   { echo "$as_me:$LINENO: result: no" >&5
4693 echo "${ECHO_T}no" >&6; }
4694 fi
4695
4696
4697      if test -z "$BUILD_CC"; then
4698        # Extract the first word of "cc", so it can be a program name with args.
4699 set dummy cc; ac_word=$2
4700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4702 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4703   echo $ECHO_N "(cached) $ECHO_C" >&6
4704 else
4705   if test -n "$BUILD_CC"; then
4706   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4707 else
4708   ac_prog_rejected=no
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH
4711 do
4712   IFS=$as_save_IFS
4713   test -z "$as_dir" && as_dir=.
4714   for ac_exec_ext in '' $ac_executable_extensions; do
4715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4716     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4717        ac_prog_rejected=yes
4718        continue
4719      fi
4720     ac_cv_prog_BUILD_CC="cc"
4721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722     break 2
4723   fi
4724 done
4725 done
4726 IFS=$as_save_IFS
4727
4728 if test $ac_prog_rejected = yes; then
4729   # We found a bogon in the path, so make sure we never use it.
4730   set dummy $ac_cv_prog_BUILD_CC
4731   shift
4732   if test $# != 0; then
4733     # We chose a different compiler from the bogus one.
4734     # However, it has the same basename, so the bogon will be chosen
4735     # first if we set BUILD_CC to just the basename; use the full file name.
4736     shift
4737     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4738   fi
4739 fi
4740 fi
4741 fi
4742 BUILD_CC=$ac_cv_prog_BUILD_CC
4743 if test -n "$BUILD_CC"; then
4744   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4745 echo "${ECHO_T}$BUILD_CC" >&6; }
4746 else
4747   { echo "$as_me:$LINENO: result: no" >&5
4748 echo "${ECHO_T}no" >&6; }
4749 fi
4750
4751
4752      fi
4753   fi
4754   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4755 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4756    { (exit 1); exit 1; }; }
4757   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4758   rm -f conftest*
4759   echo 'int main () { return 0; }' > conftest.$ac_ext
4760   ac_cv_build_exeext=
4761   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4762   (eval $ac_build_link) 2>&5
4763   ac_status=$?
4764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765   (exit $ac_status); }; then
4766     for file in conftest.*; do
4767       case $file in
4768       *.c | *.o | *.obj | *.dSYM) ;;
4769       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4770       esac
4771     done
4772   else
4773     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4774 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4775    { (exit 1); exit 1; }; }
4776   fi
4777   rm -f conftest*
4778   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4779 fi
4780 fi
4781
4782 BUILD_EXEEXT=""
4783 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4784 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4785 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4786 ac_build_exeext=$BUILD_EXEEXT
4787
4788   ac_build_prefix=${build_alias}-
4789   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4790 set dummy ${ac_build_prefix}g++; ac_word=$2
4791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4793 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4794   echo $ECHO_N "(cached) $ECHO_C" >&6
4795 else
4796   if test -n "$BUILD_CXX"; then
4797   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4798 else
4799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4800 for as_dir in $PATH
4801 do
4802   IFS=$as_save_IFS
4803   test -z "$as_dir" && as_dir=.
4804   for ac_exec_ext in '' $ac_executable_extensions; do
4805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4806     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4807     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4808     break 2
4809   fi
4810 done
4811 done
4812 IFS=$as_save_IFS
4813
4814 fi
4815 fi
4816 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4817 if test -n "$BUILD_CXX"; then
4818   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4819 echo "${ECHO_T}$BUILD_CXX" >&6; }
4820 else
4821   { echo "$as_me:$LINENO: result: no" >&5
4822 echo "${ECHO_T}no" >&6; }
4823 fi
4824
4825
4826   if test -z "$BUILD_CXX"; then
4827      # Extract the first word of "g++", so it can be a program name with args.
4828 set dummy g++; ac_word=$2
4829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4831 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4832   echo $ECHO_N "(cached) $ECHO_C" >&6
4833 else
4834   if test -n "$BUILD_CXX"; then
4835   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4836 else
4837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838 for as_dir in $PATH
4839 do
4840   IFS=$as_save_IFS
4841   test -z "$as_dir" && as_dir=.
4842   for ac_exec_ext in '' $ac_executable_extensions; do
4843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4844     ac_cv_prog_BUILD_CXX="g++"
4845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4846     break 2
4847   fi
4848 done
4849 done
4850 IFS=$as_save_IFS
4851
4852 fi
4853 fi
4854 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4855 if test -n "$BUILD_CXX"; then
4856   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4857 echo "${ECHO_T}$BUILD_CXX" >&6; }
4858 else
4859   { echo "$as_me:$LINENO: result: no" >&5
4860 echo "${ECHO_T}no" >&6; }
4861 fi
4862
4863
4864      if test -z "$BUILD_CXX"; then
4865        # Extract the first word of "c++", so it can be a program name with args.
4866 set dummy c++; ac_word=$2
4867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4869 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4870   echo $ECHO_N "(cached) $ECHO_C" >&6
4871 else
4872   if test -n "$BUILD_CXX"; then
4873   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4874 else
4875   ac_prog_rejected=no
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH
4878 do
4879   IFS=$as_save_IFS
4880   test -z "$as_dir" && as_dir=.
4881   for ac_exec_ext in '' $ac_executable_extensions; do
4882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4883     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4884        ac_prog_rejected=yes
4885        continue
4886      fi
4887     ac_cv_prog_BUILD_CXX="c++"
4888     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4889     break 2
4890   fi
4891 done
4892 done
4893 IFS=$as_save_IFS
4894
4895 if test $ac_prog_rejected = yes; then
4896   # We found a bogon in the path, so make sure we never use it.
4897   set dummy $ac_cv_prog_BUILD_CXX
4898   shift
4899   if test $# != 0; then
4900     # We chose a different compiler from the bogus one.
4901     # However, it has the same basename, so the bogon will be chosen
4902     # first if we set BUILD_CXX to just the basename; use the full file name.
4903     shift
4904     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4905   fi
4906 fi
4907 fi
4908 fi
4909 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4910 if test -n "$BUILD_CXX"; then
4911   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4912 echo "${ECHO_T}$BUILD_CXX" >&6; }
4913 else
4914   { echo "$as_me:$LINENO: result: no" >&5
4915 echo "${ECHO_T}no" >&6; }
4916 fi
4917
4918
4919      fi
4920   fi
4921 else
4922   LLVM_CROSS_COMPILING=0
4923
4924 fi
4925
4926 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4927   cvsbuild="yes"
4928   optimize="no"
4929   CVSBUILD=CVSBUILD=1
4930
4931 else
4932   cvsbuild="no"
4933   optimize="yes"
4934 fi
4935
4936
4937 # Check whether --enable-libcpp was given.
4938 if test "${enable_libcpp+set}" = set; then
4939   enableval=$enable_libcpp;
4940 else
4941   enableval=default
4942 fi
4943
4944 case "$enableval" in
4945   yes) ENABLE_LIBCPP=1
4946  ;;
4947   no)  ENABLE_LIBCPP=0
4948  ;;
4949   default) ENABLE_LIBCPP=0
4950 ;;
4951   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4952 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4953    { (exit 1); exit 1; }; } ;;
4954 esac
4955
4956 # Check whether --enable-cxx11 was given.
4957 if test "${enable_cxx11+set}" = set; then
4958   enableval=$enable_cxx11;
4959 else
4960   enableval=default
4961 fi
4962
4963 case "$enableval" in
4964   yes) ENABLE_CXX11=1
4965  ;;
4966   no)  ENABLE_CXX11=0
4967  ;;
4968   default) ENABLE_CXX11=0
4969 ;;
4970   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4971 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4972    { (exit 1); exit 1; }; } ;;
4973 esac
4974
4975 # Check whether --enable-optimized was given.
4976 if test "${enable_optimized+set}" = set; then
4977   enableval=$enable_optimized;
4978 else
4979   enableval=$optimize
4980 fi
4981
4982 if test ${enableval} = "no" ; then
4983   ENABLE_OPTIMIZED=
4984
4985 else
4986   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4987
4988 fi
4989
4990 # Check whether --enable-profiling was given.
4991 if test "${enable_profiling+set}" = set; then
4992   enableval=$enable_profiling;
4993 else
4994   enableval="no"
4995 fi
4996
4997 if test ${enableval} = "no" ; then
4998   ENABLE_PROFILING=
4999
5000 else
5001   ENABLE_PROFILING=ENABLE_PROFILING=1
5002
5003 fi
5004
5005 # Check whether --enable-assertions was given.
5006 if test "${enable_assertions+set}" = set; then
5007   enableval=$enable_assertions;
5008 else
5009   enableval="yes"
5010 fi
5011
5012 if test ${enableval} = "yes" ; then
5013   DISABLE_ASSERTIONS=
5014
5015 else
5016   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5017
5018 fi
5019
5020 # Check whether --enable-werror was given.
5021 if test "${enable_werror+set}" = set; then
5022   enableval=$enable_werror;
5023 else
5024   enableval="no"
5025 fi
5026
5027 case "$enableval" in
5028   yes) ENABLE_WERROR=1
5029  ;;
5030   no)  ENABLE_WERROR=0
5031  ;;
5032   default) ENABLE_WERROR=0
5033 ;;
5034   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5035 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5036    { (exit 1); exit 1; }; } ;;
5037 esac
5038
5039 # Check whether --enable-expensive-checks was given.
5040 if test "${enable_expensive_checks+set}" = set; then
5041   enableval=$enable_expensive_checks;
5042 else
5043   enableval="no"
5044 fi
5045
5046 if test ${enableval} = "yes" ; then
5047   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5048
5049   EXPENSIVE_CHECKS=yes
5050
5051 else
5052   ENABLE_EXPENSIVE_CHECKS=
5053
5054   EXPENSIVE_CHECKS=no
5055
5056 fi
5057
5058 # Check whether --enable-debug-runtime was given.
5059 if test "${enable_debug_runtime+set}" = set; then
5060   enableval=$enable_debug_runtime;
5061 else
5062   enableval=no
5063 fi
5064
5065 if test ${enableval} = "no" ; then
5066   DEBUG_RUNTIME=
5067
5068 else
5069   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5070
5071 fi
5072
5073 # Check whether --enable-debug-symbols was given.
5074 if test "${enable_debug_symbols+set}" = set; then
5075   enableval=$enable_debug_symbols;
5076 else
5077   enableval=no
5078 fi
5079
5080 if test ${enableval} = "no" ; then
5081   DEBUG_SYMBOLS=
5082
5083 else
5084   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5085
5086 fi
5087
5088 # Check whether --enable-jit was given.
5089 if test "${enable_jit+set}" = set; then
5090   enableval=$enable_jit;
5091 else
5092   enableval=default
5093 fi
5094
5095 if test ${enableval} = "no"
5096 then
5097   JIT=
5098
5099 else
5100   case "$llvm_cv_target_arch" in
5101     x86)         TARGET_HAS_JIT=1
5102  ;;
5103     Sparc)       TARGET_HAS_JIT=0
5104  ;;
5105     PowerPC)     TARGET_HAS_JIT=1
5106  ;;
5107     x86_64)      TARGET_HAS_JIT=1
5108  ;;
5109     ARM)         TARGET_HAS_JIT=1
5110  ;;
5111     AArch64)     TARGET_HAS_JIT=0
5112  ;;
5113     Mips)        TARGET_HAS_JIT=1
5114  ;;
5115     XCore)       TARGET_HAS_JIT=0
5116  ;;
5117     MSP430)      TARGET_HAS_JIT=0
5118  ;;
5119     Hexagon)     TARGET_HAS_JIT=0
5120  ;;
5121     NVPTX)       TARGET_HAS_JIT=0
5122  ;;
5123     SystemZ)     TARGET_HAS_JIT=1
5124  ;;
5125     *)           TARGET_HAS_JIT=0
5126  ;;
5127   esac
5128 fi
5129
5130 # Check whether --enable-docs was given.
5131 if test "${enable_docs+set}" = set; then
5132   enableval=$enable_docs;
5133 else
5134   enableval=default
5135 fi
5136
5137 case "$enableval" in
5138   yes) ENABLE_DOCS=1
5139  ;;
5140   no)  ENABLE_DOCS=0
5141  ;;
5142   default) ENABLE_DOCS=1
5143  ;;
5144   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5145 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5146    { (exit 1); exit 1; }; } ;;
5147 esac
5148
5149 # Check whether --enable-doxygen was given.
5150 if test "${enable_doxygen+set}" = set; then
5151   enableval=$enable_doxygen;
5152 else
5153   enableval=default
5154 fi
5155
5156 case "$enableval" in
5157   yes) ENABLE_DOXYGEN=1
5158  ;;
5159   no)  ENABLE_DOXYGEN=0
5160  ;;
5161   default) ENABLE_DOXYGEN=0
5162  ;;
5163   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5164 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5165    { (exit 1); exit 1; }; } ;;
5166 esac
5167
5168 # Check whether --enable-threads was given.
5169 if test "${enable_threads+set}" = set; then
5170   enableval=$enable_threads;
5171 else
5172   enableval=default
5173 fi
5174
5175 case "$enableval" in
5176   yes) ENABLE_THREADS=1
5177  ;;
5178   no)  ENABLE_THREADS=0
5179  ;;
5180   default) ENABLE_THREADS=1
5181  ;;
5182   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5183 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5184    { (exit 1); exit 1; }; } ;;
5185 esac
5186
5187 cat >>confdefs.h <<_ACEOF
5188 #define ENABLE_THREADS $ENABLE_THREADS
5189 _ACEOF
5190
5191
5192 # Check whether --enable-pthreads was given.
5193 if test "${enable_pthreads+set}" = set; then
5194   enableval=$enable_pthreads;
5195 else
5196   enableval=default
5197 fi
5198
5199 case "$enableval" in
5200   yes) ENABLE_PTHREADS=1
5201  ;;
5202   no)  ENABLE_PTHREADS=0
5203  ;;
5204   default) ENABLE_PTHREADS=1
5205  ;;
5206   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5207 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5208    { (exit 1); exit 1; }; } ;;
5209 esac
5210
5211 # Check whether --enable-zlib was given.
5212 if test "${enable_zlib+set}" = set; then
5213   enableval=$enable_zlib;
5214 else
5215   enableval=default
5216 fi
5217
5218 case "$enableval" in
5219   yes) LLVM_ENABLE_ZLIB=1
5220  ;;
5221   no)  LLVM_ENABLE_ZLIB=0
5222  ;;
5223   default) LLVM_ENABLE_ZLIB=1
5224  ;;
5225   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5226 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5227    { (exit 1); exit 1; }; } ;;
5228 esac
5229
5230 cat >>confdefs.h <<_ACEOF
5231 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5232 _ACEOF
5233
5234
5235 # Check whether --enable-pic was given.
5236 if test "${enable_pic+set}" = set; then
5237   enableval=$enable_pic;
5238 else
5239   enableval=default
5240 fi
5241
5242 case "$enableval" in
5243   yes) ENABLE_PIC=1
5244  ;;
5245   no)  ENABLE_PIC=0
5246  ;;
5247   default) ENABLE_PIC=1
5248  ;;
5249   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5250 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5251    { (exit 1); exit 1; }; } ;;
5252 esac
5253
5254 cat >>confdefs.h <<_ACEOF
5255 #define ENABLE_PIC $ENABLE_PIC
5256 _ACEOF
5257
5258
5259 # Check whether --enable-shared was given.
5260 if test "${enable_shared+set}" = set; then
5261   enableval=$enable_shared;
5262 else
5263   enableval=default
5264 fi
5265
5266 case "$enableval" in
5267   yes) ENABLE_SHARED=1
5268  ;;
5269   no)  ENABLE_SHARED=0
5270  ;;
5271   default) ENABLE_SHARED=0
5272  ;;
5273   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5274 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5275    { (exit 1); exit 1; }; } ;;
5276 esac
5277
5278 # Check whether --enable-embed-stdcxx was given.
5279 if test "${enable_embed_stdcxx+set}" = set; then
5280   enableval=$enable_embed_stdcxx;
5281 else
5282   enableval=default
5283 fi
5284
5285 case "$enableval" in
5286   yes) ENABLE_EMBED_STDCXX=1
5287  ;;
5288   no)  ENABLE_EMBED_STDCXX=0
5289  ;;
5290   default) ENABLE_EMBED_STDCXX=1
5291  ;;
5292   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5293 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5294    { (exit 1); exit 1; }; } ;;
5295 esac
5296
5297 # Check whether --enable-timestamps was given.
5298 if test "${enable_timestamps+set}" = set; then
5299   enableval=$enable_timestamps;
5300 else
5301   enableval=default
5302 fi
5303
5304 case "$enableval" in
5305   yes) ENABLE_TIMESTAMPS=1
5306  ;;
5307   no)  ENABLE_TIMESTAMPS=0
5308  ;;
5309   default) ENABLE_TIMESTAMPS=1
5310  ;;
5311   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5312 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5313    { (exit 1); exit 1; }; } ;;
5314 esac
5315
5316 cat >>confdefs.h <<_ACEOF
5317 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5318 _ACEOF
5319
5320
5321 TARGETS_TO_BUILD=""
5322 # Check whether --enable-targets was given.
5323 if test "${enable_targets+set}" = set; then
5324   enableval=$enable_targets;
5325 else
5326   enableval=all
5327 fi
5328
5329 if test "$enableval" = host-only ; then
5330   enableval=host
5331 fi
5332 case "$enableval" in
5333   all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
5334   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5335       case "$a_target" in
5336         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5337         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5338         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5339         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5340         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5341         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5342         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5343         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5344         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5345         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5346         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5347         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5348         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5349         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5350         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5351         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5352         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5353         host) case "$llvm_cv_target_arch" in
5354             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5355             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5356             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5357             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5358             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5359             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5360             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5361             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5362             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5363             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5364             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5365             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5366             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5367 echo "$as_me: error: Can not set target to build" >&2;}
5368    { (exit 1); exit 1; }; } ;;
5369           esac ;;
5370         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5371 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5372    { (exit 1); exit 1; }; } ;;
5373       esac
5374   done
5375   ;;
5376 esac
5377 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5378
5379
5380 # Determine whether we are building LLVM support for the native architecture.
5381 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5382 for a_target in $TARGETS_TO_BUILD; do
5383   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5384
5385 cat >>confdefs.h <<_ACEOF
5386 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5387 _ACEOF
5388
5389     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5390     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5391     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5392     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5393     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5394       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5395     fi
5396     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5397       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5398     fi
5399
5400 cat >>confdefs.h <<_ACEOF
5401 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5402 _ACEOF
5403
5404
5405 cat >>confdefs.h <<_ACEOF
5406 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5407 _ACEOF
5408
5409
5410 cat >>confdefs.h <<_ACEOF
5411 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5412 _ACEOF
5413
5414
5415 cat >>confdefs.h <<_ACEOF
5416 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5417 _ACEOF
5418
5419     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5420
5421 cat >>confdefs.h <<_ACEOF
5422 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5423 _ACEOF
5424
5425     fi
5426     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5427
5428 cat >>confdefs.h <<_ACEOF
5429 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5430 _ACEOF
5431
5432     fi
5433   fi
5434 done
5435
5436 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5437 # target feature def files.
5438 LLVM_ENUM_TARGETS=""
5439 LLVM_ENUM_ASM_PRINTERS=""
5440 LLVM_ENUM_ASM_PARSERS=""
5441 LLVM_ENUM_DISASSEMBLERS=""
5442 for target_to_build in $TARGETS_TO_BUILD; do
5443   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5444   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5445     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5446   fi
5447   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5448     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5449   fi
5450   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5451     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5452   fi
5453 done
5454
5455
5456
5457
5458
5459
5460 # Check whether --with-optimize-option was given.
5461 if test "${with_optimize_option+set}" = set; then
5462   withval=$with_optimize_option;
5463 else
5464   withval=default
5465 fi
5466
5467 { echo "$as_me:$LINENO: checking optimization flags" >&5
5468 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5469 case "$withval" in
5470   default)
5471     case "$llvm_cv_os_type" in
5472     FreeBSD) optimize_option=-O2 ;;
5473     MingW) optimize_option=-O2 ;;
5474     *)     optimize_option=-O3 ;;
5475     esac ;;
5476   *) optimize_option="$withval" ;;
5477 esac
5478 OPTIMIZE_OPTION=$optimize_option
5479
5480 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5481 echo "${ECHO_T}$optimize_option" >&6; }
5482
5483
5484 # Check whether --with-extra-options was given.
5485 if test "${with_extra_options+set}" = set; then
5486   withval=$with_extra_options;
5487 else
5488   withval=default
5489 fi
5490
5491 case "$withval" in
5492   default) EXTRA_OPTIONS= ;;
5493   *) EXTRA_OPTIONS=$withval ;;
5494 esac
5495 EXTRA_OPTIONS=$EXTRA_OPTIONS
5496
5497
5498
5499 # Check whether --with-extra-ld-options was given.
5500 if test "${with_extra_ld_options+set}" = set; then
5501   withval=$with_extra_ld_options;
5502 else
5503   withval=default
5504 fi
5505
5506 case "$withval" in
5507   default) EXTRA_LD_OPTIONS= ;;
5508   *) EXTRA_LD_OPTIONS=$withval ;;
5509 esac
5510 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5511
5512
5513 # Check whether --enable-bindings was given.
5514 if test "${enable_bindings+set}" = set; then
5515   enableval=$enable_bindings;
5516 else
5517   enableval=default
5518 fi
5519
5520 BINDINGS_TO_BUILD=""
5521 case "$enableval" in
5522   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5523   all ) BINDINGS_TO_BUILD="ocaml" ;;
5524   none | no) BINDINGS_TO_BUILD="" ;;
5525   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5526       case "$a_binding" in
5527         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5528         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5529 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5530    { (exit 1); exit 1; }; } ;;
5531       esac
5532   done
5533   ;;
5534 esac
5535
5536
5537 # Check whether --with-ocaml-libdir was given.
5538 if test "${with_ocaml_libdir+set}" = set; then
5539   withval=$with_ocaml_libdir;
5540 else
5541   withval=auto
5542 fi
5543
5544 case "$withval" in
5545   auto) with_ocaml_libdir="$withval" ;;
5546   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5547   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5548 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5549    { (exit 1); exit 1; }; } ;;
5550 esac
5551
5552
5553 # Check whether --with-clang-resource-dir was given.
5554 if test "${with_clang_resource_dir+set}" = set; then
5555   withval=$with_clang_resource_dir;
5556 else
5557   withval=""
5558 fi
5559
5560
5561 cat >>confdefs.h <<_ACEOF
5562 #define CLANG_RESOURCE_DIR "$withval"
5563 _ACEOF
5564
5565
5566
5567 # Check whether --with-c-include-dirs was given.
5568 if test "${with_c_include_dirs+set}" = set; then
5569   withval=$with_c_include_dirs;
5570 else
5571   withval=""
5572 fi
5573
5574
5575 cat >>confdefs.h <<_ACEOF
5576 #define C_INCLUDE_DIRS "$withval"
5577 _ACEOF
5578
5579
5580 # Clang normally uses the system c++ headers and libraries. With this option,
5581 # clang will use the ones provided by a gcc installation instead. This option should
5582 # be passed the same value that was used with --prefix when configuring gcc.
5583
5584 # Check whether --with-gcc-toolchain was given.
5585 if test "${with_gcc_toolchain+set}" = set; then
5586   withval=$with_gcc_toolchain;
5587 else
5588   withval=""
5589 fi
5590
5591
5592 cat >>confdefs.h <<_ACEOF
5593 #define GCC_INSTALL_PREFIX "$withval"
5594 _ACEOF
5595
5596
5597
5598 # Check whether --with-binutils-include was given.
5599 if test "${with_binutils_include+set}" = set; then
5600   withval=$with_binutils_include;
5601 else
5602   withval=default
5603 fi
5604
5605 case "$withval" in
5606   default) WITH_BINUTILS_INCDIR=default ;;
5607   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5608   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5609 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5610    { (exit 1); exit 1; }; } ;;
5611 esac
5612 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5613   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5614
5615   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5616      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5617      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5618 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5619    { (exit 1); exit 1; }; };
5620   fi
5621 fi
5622
5623
5624 # Check whether --with-bug-report-url was given.
5625 if test "${with_bug_report_url+set}" = set; then
5626   withval=$with_bug_report_url;
5627 else
5628   withval="http://llvm.org/bugs/"
5629 fi
5630
5631
5632 cat >>confdefs.h <<_ACEOF
5633 #define BUG_REPORT_URL "$withval"
5634 _ACEOF
5635
5636
5637 # Check whether --enable-terminfo was given.
5638 if test "${enable_terminfo+set}" = set; then
5639   enableval=$enable_terminfo; case "$enableval" in
5640     yes) llvm_cv_enable_terminfo="yes" ;;
5641     no)  llvm_cv_enable_terminfo="no"  ;;
5642     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5643 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5644    { (exit 1); exit 1; }; } ;;
5645   esac
5646 else
5647   llvm_cv_enable_terminfo="yes"
5648 fi
5649
5650
5651 # Check whether --enable-libffi was given.
5652 if test "${enable_libffi+set}" = set; then
5653   enableval=$enable_libffi; case "$enableval" in
5654     yes) llvm_cv_enable_libffi="yes" ;;
5655     no)  llvm_cv_enable_libffi="no"  ;;
5656     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5657 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5658    { (exit 1); exit 1; }; } ;;
5659   esac
5660 else
5661   llvm_cv_enable_libffi=no
5662 fi
5663
5664
5665
5666 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5667 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5668 if test "${lt_cv_path_NM+set}" = set; then
5669   echo $ECHO_N "(cached) $ECHO_C" >&6
5670 else
5671   if test -n "$NM"; then
5672   # Let the user override the test.
5673   lt_cv_path_NM="$NM"
5674 else
5675   lt_nm_to_check="${ac_tool_prefix}nm"
5676   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5677     lt_nm_to_check="$lt_nm_to_check nm"
5678   fi
5679   for lt_tmp_nm in $lt_nm_to_check; do
5680     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5681     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5682       IFS="$lt_save_ifs"
5683       test -z "$ac_dir" && ac_dir=.
5684       tmp_nm="$ac_dir/$lt_tmp_nm"
5685       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5686         # Check to see if the nm accepts a BSD-compat flag.
5687         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5688         #   nm: unknown option "B" ignored
5689         # Tru64's nm complains that /dev/null is an invalid object file
5690         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5691         */dev/null* | *'Invalid file or object type'*)
5692           lt_cv_path_NM="$tmp_nm -B"
5693           break
5694           ;;
5695         *)
5696           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5697           */dev/null*)
5698             lt_cv_path_NM="$tmp_nm -p"
5699             break
5700             ;;
5701           *)
5702             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5703             continue # so that we can try to find one that supports BSD flags
5704             ;;
5705           esac
5706           ;;
5707         esac
5708       fi
5709     done
5710     IFS="$lt_save_ifs"
5711   done
5712   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5713 fi
5714 fi
5715 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5716 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5717 NM="$lt_cv_path_NM"
5718
5719
5720
5721 { echo "$as_me:$LINENO: checking for GNU make" >&5
5722 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5723 if test "${llvm_cv_gnu_make_command+set}" = set; then
5724   echo $ECHO_N "(cached) $ECHO_C" >&6
5725 else
5726   llvm_cv_gnu_make_command=''
5727  for a in "$MAKE" make gmake gnumake ; do
5728   if test -z "$a" ; then continue ; fi ;
5729   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5730   then
5731    llvm_cv_gnu_make_command=$a ;
5732    break;
5733   fi
5734  done
5735 fi
5736 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5737 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5738  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5739    ifGNUmake='' ;
5740  else
5741    ifGNUmake='#' ;
5742    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5743 echo "${ECHO_T}\"Not found\"" >&6; };
5744  fi
5745
5746
5747 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5748 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5749 LN_S=$as_ln_s
5750 if test "$LN_S" = "ln -s"; then
5751   { echo "$as_me:$LINENO: result: yes" >&5
5752 echo "${ECHO_T}yes" >&6; }
5753 else
5754   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5755 echo "${ECHO_T}no, using $LN_S" >&6; }
5756 fi
5757
5758 # Extract the first word of "cmp", so it can be a program name with args.
5759 set dummy cmp; ac_word=$2
5760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5762 if test "${ac_cv_path_CMP+set}" = set; then
5763   echo $ECHO_N "(cached) $ECHO_C" >&6
5764 else
5765   case $CMP in
5766   [\\/]* | ?:[\\/]*)
5767   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5768   ;;
5769   *)
5770   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771 for as_dir in $PATH
5772 do
5773   IFS=$as_save_IFS
5774   test -z "$as_dir" && as_dir=.
5775   for ac_exec_ext in '' $ac_executable_extensions; do
5776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5777     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5778     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5779     break 2
5780   fi
5781 done
5782 done
5783 IFS=$as_save_IFS
5784
5785   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5786   ;;
5787 esac
5788 fi
5789 CMP=$ac_cv_path_CMP
5790 if test -n "$CMP"; then
5791   { echo "$as_me:$LINENO: result: $CMP" >&5
5792 echo "${ECHO_T}$CMP" >&6; }
5793 else
5794   { echo "$as_me:$LINENO: result: no" >&5
5795 echo "${ECHO_T}no" >&6; }
5796 fi
5797
5798
5799 # Extract the first word of "cp", so it can be a program name with args.
5800 set dummy cp; ac_word=$2
5801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5803 if test "${ac_cv_path_CP+set}" = set; then
5804   echo $ECHO_N "(cached) $ECHO_C" >&6
5805 else
5806   case $CP in
5807   [\\/]* | ?:[\\/]*)
5808   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5809   ;;
5810   *)
5811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812 for as_dir in $PATH
5813 do
5814   IFS=$as_save_IFS
5815   test -z "$as_dir" && as_dir=.
5816   for ac_exec_ext in '' $ac_executable_extensions; do
5817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5818     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5820     break 2
5821   fi
5822 done
5823 done
5824 IFS=$as_save_IFS
5825
5826   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5827   ;;
5828 esac
5829 fi
5830 CP=$ac_cv_path_CP
5831 if test -n "$CP"; then
5832   { echo "$as_me:$LINENO: result: $CP" >&5
5833 echo "${ECHO_T}$CP" >&6; }
5834 else
5835   { echo "$as_me:$LINENO: result: no" >&5
5836 echo "${ECHO_T}no" >&6; }
5837 fi
5838
5839
5840 # Extract the first word of "date", so it can be a program name with args.
5841 set dummy date; ac_word=$2
5842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5844 if test "${ac_cv_path_DATE+set}" = set; then
5845   echo $ECHO_N "(cached) $ECHO_C" >&6
5846 else
5847   case $DATE in
5848   [\\/]* | ?:[\\/]*)
5849   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5850   ;;
5851   *)
5852   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853 for as_dir in $PATH
5854 do
5855   IFS=$as_save_IFS
5856   test -z "$as_dir" && as_dir=.
5857   for ac_exec_ext in '' $ac_executable_extensions; do
5858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5859     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5861     break 2
5862   fi
5863 done
5864 done
5865 IFS=$as_save_IFS
5866
5867   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5868   ;;
5869 esac
5870 fi
5871 DATE=$ac_cv_path_DATE
5872 if test -n "$DATE"; then
5873   { echo "$as_me:$LINENO: result: $DATE" >&5
5874 echo "${ECHO_T}$DATE" >&6; }
5875 else
5876   { echo "$as_me:$LINENO: result: no" >&5
5877 echo "${ECHO_T}no" >&6; }
5878 fi
5879
5880
5881 # Extract the first word of "find", so it can be a program name with args.
5882 set dummy find; ac_word=$2
5883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5885 if test "${ac_cv_path_FIND+set}" = set; then
5886   echo $ECHO_N "(cached) $ECHO_C" >&6
5887 else
5888   case $FIND in
5889   [\\/]* | ?:[\\/]*)
5890   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5891   ;;
5892   *)
5893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894 for as_dir in $PATH
5895 do
5896   IFS=$as_save_IFS
5897   test -z "$as_dir" && as_dir=.
5898   for ac_exec_ext in '' $ac_executable_extensions; do
5899   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5900     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5901     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5902     break 2
5903   fi
5904 done
5905 done
5906 IFS=$as_save_IFS
5907
5908   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5909   ;;
5910 esac
5911 fi
5912 FIND=$ac_cv_path_FIND
5913 if test -n "$FIND"; then
5914   { echo "$as_me:$LINENO: result: $FIND" >&5
5915 echo "${ECHO_T}$FIND" >&6; }
5916 else
5917   { echo "$as_me:$LINENO: result: no" >&5
5918 echo "${ECHO_T}no" >&6; }
5919 fi
5920
5921
5922 # Extract the first word of "grep", so it can be a program name with args.
5923 set dummy grep; ac_word=$2
5924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5926 if test "${ac_cv_path_GREP+set}" = set; then
5927   echo $ECHO_N "(cached) $ECHO_C" >&6
5928 else
5929   case $GREP in
5930   [\\/]* | ?:[\\/]*)
5931   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5932   ;;
5933   *)
5934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 for as_dir in $PATH
5936 do
5937   IFS=$as_save_IFS
5938   test -z "$as_dir" && as_dir=.
5939   for ac_exec_ext in '' $ac_executable_extensions; do
5940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5941     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5943     break 2
5944   fi
5945 done
5946 done
5947 IFS=$as_save_IFS
5948
5949   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5950   ;;
5951 esac
5952 fi
5953 GREP=$ac_cv_path_GREP
5954 if test -n "$GREP"; then
5955   { echo "$as_me:$LINENO: result: $GREP" >&5
5956 echo "${ECHO_T}$GREP" >&6; }
5957 else
5958   { echo "$as_me:$LINENO: result: no" >&5
5959 echo "${ECHO_T}no" >&6; }
5960 fi
5961
5962
5963 # Extract the first word of "mkdir", so it can be a program name with args.
5964 set dummy mkdir; ac_word=$2
5965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5967 if test "${ac_cv_path_MKDIR+set}" = set; then
5968   echo $ECHO_N "(cached) $ECHO_C" >&6
5969 else
5970   case $MKDIR in
5971   [\\/]* | ?:[\\/]*)
5972   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5973   ;;
5974   *)
5975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 for as_dir in $PATH
5977 do
5978   IFS=$as_save_IFS
5979   test -z "$as_dir" && as_dir=.
5980   for ac_exec_ext in '' $ac_executable_extensions; do
5981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5982     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5984     break 2
5985   fi
5986 done
5987 done
5988 IFS=$as_save_IFS
5989
5990   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5991   ;;
5992 esac
5993 fi
5994 MKDIR=$ac_cv_path_MKDIR
5995 if test -n "$MKDIR"; then
5996   { echo "$as_me:$LINENO: result: $MKDIR" >&5
5997 echo "${ECHO_T}$MKDIR" >&6; }
5998 else
5999   { echo "$as_me:$LINENO: result: no" >&5
6000 echo "${ECHO_T}no" >&6; }
6001 fi
6002
6003
6004 # Extract the first word of "mv", so it can be a program name with args.
6005 set dummy mv; ac_word=$2
6006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6008 if test "${ac_cv_path_MV+set}" = set; then
6009   echo $ECHO_N "(cached) $ECHO_C" >&6
6010 else
6011   case $MV in
6012   [\\/]* | ?:[\\/]*)
6013   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6014   ;;
6015   *)
6016   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017 for as_dir in $PATH
6018 do
6019   IFS=$as_save_IFS
6020   test -z "$as_dir" && as_dir=.
6021   for ac_exec_ext in '' $ac_executable_extensions; do
6022   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6023     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6025     break 2
6026   fi
6027 done
6028 done
6029 IFS=$as_save_IFS
6030
6031   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6032   ;;
6033 esac
6034 fi
6035 MV=$ac_cv_path_MV
6036 if test -n "$MV"; then
6037   { echo "$as_me:$LINENO: result: $MV" >&5
6038 echo "${ECHO_T}$MV" >&6; }
6039 else
6040   { echo "$as_me:$LINENO: result: no" >&5
6041 echo "${ECHO_T}no" >&6; }
6042 fi
6043
6044
6045 if test -n "$ac_tool_prefix"; then
6046   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6047 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6050 if test "${ac_cv_prog_RANLIB+set}" = set; then
6051   echo $ECHO_N "(cached) $ECHO_C" >&6
6052 else
6053   if test -n "$RANLIB"; then
6054   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6055 else
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057 for as_dir in $PATH
6058 do
6059   IFS=$as_save_IFS
6060   test -z "$as_dir" && as_dir=.
6061   for ac_exec_ext in '' $ac_executable_extensions; do
6062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6063     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6065     break 2
6066   fi
6067 done
6068 done
6069 IFS=$as_save_IFS
6070
6071 fi
6072 fi
6073 RANLIB=$ac_cv_prog_RANLIB
6074 if test -n "$RANLIB"; then
6075   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6076 echo "${ECHO_T}$RANLIB" >&6; }
6077 else
6078   { echo "$as_me:$LINENO: result: no" >&5
6079 echo "${ECHO_T}no" >&6; }
6080 fi
6081
6082
6083 fi
6084 if test -z "$ac_cv_prog_RANLIB"; then
6085   ac_ct_RANLIB=$RANLIB
6086   # Extract the first word of "ranlib", so it can be a program name with args.
6087 set dummy ranlib; ac_word=$2
6088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6090 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6091   echo $ECHO_N "(cached) $ECHO_C" >&6
6092 else
6093   if test -n "$ac_ct_RANLIB"; then
6094   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6095 else
6096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097 for as_dir in $PATH
6098 do
6099   IFS=$as_save_IFS
6100   test -z "$as_dir" && as_dir=.
6101   for ac_exec_ext in '' $ac_executable_extensions; do
6102   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6103     ac_cv_prog_ac_ct_RANLIB="ranlib"
6104     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6105     break 2
6106   fi
6107 done
6108 done
6109 IFS=$as_save_IFS
6110
6111 fi
6112 fi
6113 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6114 if test -n "$ac_ct_RANLIB"; then
6115   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6116 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6117 else
6118   { echo "$as_me:$LINENO: result: no" >&5
6119 echo "${ECHO_T}no" >&6; }
6120 fi
6121
6122   if test "x$ac_ct_RANLIB" = x; then
6123     RANLIB=":"
6124   else
6125     case $cross_compiling:$ac_tool_warned in
6126 yes:)
6127 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6128 whose name does not start with the host triplet.  If you think this
6129 configuration is useful to you, please write to autoconf@gnu.org." >&5
6130 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6131 whose name does not start with the host triplet.  If you think this
6132 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6133 ac_tool_warned=yes ;;
6134 esac
6135     RANLIB=$ac_ct_RANLIB
6136   fi
6137 else
6138   RANLIB="$ac_cv_prog_RANLIB"
6139 fi
6140
6141 if test -n "$ac_tool_prefix"; then
6142   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6143 set dummy ${ac_tool_prefix}ar; ac_word=$2
6144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6146 if test "${ac_cv_prog_AR+set}" = set; then
6147   echo $ECHO_N "(cached) $ECHO_C" >&6
6148 else
6149   if test -n "$AR"; then
6150   ac_cv_prog_AR="$AR" # Let the user override the test.
6151 else
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 for as_dir in $PATH
6154 do
6155   IFS=$as_save_IFS
6156   test -z "$as_dir" && as_dir=.
6157   for ac_exec_ext in '' $ac_executable_extensions; do
6158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6159     ac_cv_prog_AR="${ac_tool_prefix}ar"
6160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6161     break 2
6162   fi
6163 done
6164 done
6165 IFS=$as_save_IFS
6166
6167 fi
6168 fi
6169 AR=$ac_cv_prog_AR
6170 if test -n "$AR"; then
6171   { echo "$as_me:$LINENO: result: $AR" >&5
6172 echo "${ECHO_T}$AR" >&6; }
6173 else
6174   { echo "$as_me:$LINENO: result: no" >&5
6175 echo "${ECHO_T}no" >&6; }
6176 fi
6177
6178
6179 fi
6180 if test -z "$ac_cv_prog_AR"; then
6181   ac_ct_AR=$AR
6182   # Extract the first word of "ar", so it can be a program name with args.
6183 set dummy ar; ac_word=$2
6184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6186 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6187   echo $ECHO_N "(cached) $ECHO_C" >&6
6188 else
6189   if test -n "$ac_ct_AR"; then
6190   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6191 else
6192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 for as_dir in $PATH
6194 do
6195   IFS=$as_save_IFS
6196   test -z "$as_dir" && as_dir=.
6197   for ac_exec_ext in '' $ac_executable_extensions; do
6198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6199     ac_cv_prog_ac_ct_AR="ar"
6200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6201     break 2
6202   fi
6203 done
6204 done
6205 IFS=$as_save_IFS
6206
6207 fi
6208 fi
6209 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6210 if test -n "$ac_ct_AR"; then
6211   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6212 echo "${ECHO_T}$ac_ct_AR" >&6; }
6213 else
6214   { echo "$as_me:$LINENO: result: no" >&5
6215 echo "${ECHO_T}no" >&6; }
6216 fi
6217
6218   if test "x$ac_ct_AR" = x; then
6219     AR="false"
6220   else
6221     case $cross_compiling:$ac_tool_warned in
6222 yes:)
6223 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6224 whose name does not start with the host triplet.  If you think this
6225 configuration is useful to you, please write to autoconf@gnu.org." >&5
6226 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6227 whose name does not start with the host triplet.  If you think this
6228 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6229 ac_tool_warned=yes ;;
6230 esac
6231     AR=$ac_ct_AR
6232   fi
6233 else
6234   AR="$ac_cv_prog_AR"
6235 fi
6236
6237 # Extract the first word of "rm", so it can be a program name with args.
6238 set dummy rm; ac_word=$2
6239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6241 if test "${ac_cv_path_RM+set}" = set; then
6242   echo $ECHO_N "(cached) $ECHO_C" >&6
6243 else
6244   case $RM in
6245   [\\/]* | ?:[\\/]*)
6246   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6247   ;;
6248   *)
6249   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250 for as_dir in $PATH
6251 do
6252   IFS=$as_save_IFS
6253   test -z "$as_dir" && as_dir=.
6254   for ac_exec_ext in '' $ac_executable_extensions; do
6255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6256     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6257     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6258     break 2
6259   fi
6260 done
6261 done
6262 IFS=$as_save_IFS
6263
6264   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6265   ;;
6266 esac
6267 fi
6268 RM=$ac_cv_path_RM
6269 if test -n "$RM"; then
6270   { echo "$as_me:$LINENO: result: $RM" >&5
6271 echo "${ECHO_T}$RM" >&6; }
6272 else
6273   { echo "$as_me:$LINENO: result: no" >&5
6274 echo "${ECHO_T}no" >&6; }
6275 fi
6276
6277
6278 # Extract the first word of "sed", so it can be a program name with args.
6279 set dummy sed; ac_word=$2
6280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6282 if test "${ac_cv_path_SED+set}" = set; then
6283   echo $ECHO_N "(cached) $ECHO_C" >&6
6284 else
6285   case $SED in
6286   [\\/]* | ?:[\\/]*)
6287   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6288   ;;
6289   *)
6290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291 for as_dir in $PATH
6292 do
6293   IFS=$as_save_IFS
6294   test -z "$as_dir" && as_dir=.
6295   for ac_exec_ext in '' $ac_executable_extensions; do
6296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6297     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6298     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6299     break 2
6300   fi
6301 done
6302 done
6303 IFS=$as_save_IFS
6304
6305   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6306   ;;
6307 esac
6308 fi
6309 SED=$ac_cv_path_SED
6310 if test -n "$SED"; then
6311   { echo "$as_me:$LINENO: result: $SED" >&5
6312 echo "${ECHO_T}$SED" >&6; }
6313 else
6314   { echo "$as_me:$LINENO: result: no" >&5
6315 echo "${ECHO_T}no" >&6; }
6316 fi
6317
6318
6319 # Extract the first word of "tar", so it can be a program name with args.
6320 set dummy tar; ac_word=$2
6321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6323 if test "${ac_cv_path_TAR+set}" = set; then
6324   echo $ECHO_N "(cached) $ECHO_C" >&6
6325 else
6326   case $TAR in
6327   [\\/]* | ?:[\\/]*)
6328   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6329   ;;
6330   *)
6331   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332 for as_dir in $PATH
6333 do
6334   IFS=$as_save_IFS
6335   test -z "$as_dir" && as_dir=.
6336   for ac_exec_ext in '' $ac_executable_extensions; do
6337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6338     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6339     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6340     break 2
6341   fi
6342 done
6343 done
6344 IFS=$as_save_IFS
6345
6346   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6347   ;;
6348 esac
6349 fi
6350 TAR=$ac_cv_path_TAR
6351 if test -n "$TAR"; then
6352   { echo "$as_me:$LINENO: result: $TAR" >&5
6353 echo "${ECHO_T}$TAR" >&6; }
6354 else
6355   { echo "$as_me:$LINENO: result: no" >&5
6356 echo "${ECHO_T}no" >&6; }
6357 fi
6358
6359
6360 # Extract the first word of "pwd", so it can be a program name with args.
6361 set dummy pwd; ac_word=$2
6362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6364 if test "${ac_cv_path_BINPWD+set}" = set; then
6365   echo $ECHO_N "(cached) $ECHO_C" >&6
6366 else
6367   case $BINPWD in
6368   [\\/]* | ?:[\\/]*)
6369   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6370   ;;
6371   *)
6372   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373 for as_dir in $PATH
6374 do
6375   IFS=$as_save_IFS
6376   test -z "$as_dir" && as_dir=.
6377   for ac_exec_ext in '' $ac_executable_extensions; do
6378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6379     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6381     break 2
6382   fi
6383 done
6384 done
6385 IFS=$as_save_IFS
6386
6387   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6388   ;;
6389 esac
6390 fi
6391 BINPWD=$ac_cv_path_BINPWD
6392 if test -n "$BINPWD"; then
6393   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6394 echo "${ECHO_T}$BINPWD" >&6; }
6395 else
6396   { echo "$as_me:$LINENO: result: no" >&5
6397 echo "${ECHO_T}no" >&6; }
6398 fi
6399
6400
6401
6402 # Extract the first word of "Graphviz", so it can be a program name with args.
6403 set dummy Graphviz; ac_word=$2
6404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6406 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6407   echo $ECHO_N "(cached) $ECHO_C" >&6
6408 else
6409   case $GRAPHVIZ in
6410   [\\/]* | ?:[\\/]*)
6411   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6412   ;;
6413   *)
6414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415 for as_dir in $PATH
6416 do
6417   IFS=$as_save_IFS
6418   test -z "$as_dir" && as_dir=.
6419   for ac_exec_ext in '' $ac_executable_extensions; do
6420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6421     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6423     break 2
6424   fi
6425 done
6426 done
6427 IFS=$as_save_IFS
6428
6429   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6430   ;;
6431 esac
6432 fi
6433 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6434 if test -n "$GRAPHVIZ"; then
6435   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6436 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6437 else
6438   { echo "$as_me:$LINENO: result: no" >&5
6439 echo "${ECHO_T}no" >&6; }
6440 fi
6441
6442
6443 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6444
6445 cat >>confdefs.h <<\_ACEOF
6446 #define HAVE_GRAPHVIZ 1
6447 _ACEOF
6448
6449     if test "$llvm_cv_os_type" = "MingW" ; then
6450     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6451   fi
6452
6453 cat >>confdefs.h <<_ACEOF
6454 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6455 _ACEOF
6456
6457 fi
6458 # Extract the first word of "dot", so it can be a program name with args.
6459 set dummy dot; ac_word=$2
6460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6462 if test "${ac_cv_path_DOT+set}" = set; then
6463   echo $ECHO_N "(cached) $ECHO_C" >&6
6464 else
6465   case $DOT in
6466   [\\/]* | ?:[\\/]*)
6467   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6468   ;;
6469   *)
6470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471 for as_dir in $PATH
6472 do
6473   IFS=$as_save_IFS
6474   test -z "$as_dir" && as_dir=.
6475   for ac_exec_ext in '' $ac_executable_extensions; do
6476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6477     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6479     break 2
6480   fi
6481 done
6482 done
6483 IFS=$as_save_IFS
6484
6485   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6486   ;;
6487 esac
6488 fi
6489 DOT=$ac_cv_path_DOT
6490 if test -n "$DOT"; then
6491   { echo "$as_me:$LINENO: result: $DOT" >&5
6492 echo "${ECHO_T}$DOT" >&6; }
6493 else
6494   { echo "$as_me:$LINENO: result: no" >&5
6495 echo "${ECHO_T}no" >&6; }
6496 fi
6497
6498
6499 if test "$DOT" != "echo dot" ; then
6500
6501 cat >>confdefs.h <<\_ACEOF
6502 #define HAVE_DOT 1
6503 _ACEOF
6504
6505     if test "$llvm_cv_os_type" = "MingW" ; then
6506     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6507   fi
6508
6509 cat >>confdefs.h <<_ACEOF
6510 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6511 _ACEOF
6512
6513 fi
6514 # Extract the first word of "fdp", so it can be a program name with args.
6515 set dummy fdp; ac_word=$2
6516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6518 if test "${ac_cv_path_FDP+set}" = set; then
6519   echo $ECHO_N "(cached) $ECHO_C" >&6
6520 else
6521   case $FDP in
6522   [\\/]* | ?:[\\/]*)
6523   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6524   ;;
6525   *)
6526   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527 for as_dir in $PATH
6528 do
6529   IFS=$as_save_IFS
6530   test -z "$as_dir" && as_dir=.
6531   for ac_exec_ext in '' $ac_executable_extensions; do
6532   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6533     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6535     break 2
6536   fi
6537 done
6538 done
6539 IFS=$as_save_IFS
6540
6541   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6542   ;;
6543 esac
6544 fi
6545 FDP=$ac_cv_path_FDP
6546 if test -n "$FDP"; then
6547   { echo "$as_me:$LINENO: result: $FDP" >&5
6548 echo "${ECHO_T}$FDP" >&6; }
6549 else
6550   { echo "$as_me:$LINENO: result: no" >&5
6551 echo "${ECHO_T}no" >&6; }
6552 fi
6553
6554
6555 if test "$FDP" != "echo fdp" ; then
6556
6557 cat >>confdefs.h <<\_ACEOF
6558 #define HAVE_FDP 1
6559 _ACEOF
6560
6561     if test "$llvm_cv_os_type" = "MingW" ; then
6562     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6563   fi
6564
6565 cat >>confdefs.h <<_ACEOF
6566 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6567 _ACEOF
6568
6569 fi
6570 # Extract the first word of "neato", so it can be a program name with args.
6571 set dummy neato; ac_word=$2
6572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6574 if test "${ac_cv_path_NEATO+set}" = set; then
6575   echo $ECHO_N "(cached) $ECHO_C" >&6
6576 else
6577   case $NEATO in
6578   [\\/]* | ?:[\\/]*)
6579   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6580   ;;
6581   *)
6582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 for as_dir in $PATH
6584 do
6585   IFS=$as_save_IFS
6586   test -z "$as_dir" && as_dir=.
6587   for ac_exec_ext in '' $ac_executable_extensions; do
6588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6589     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6590     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6591     break 2
6592   fi
6593 done
6594 done
6595 IFS=$as_save_IFS
6596
6597   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6598   ;;
6599 esac
6600 fi
6601 NEATO=$ac_cv_path_NEATO
6602 if test -n "$NEATO"; then
6603   { echo "$as_me:$LINENO: result: $NEATO" >&5
6604 echo "${ECHO_T}$NEATO" >&6; }
6605 else
6606   { echo "$as_me:$LINENO: result: no" >&5
6607 echo "${ECHO_T}no" >&6; }
6608 fi
6609
6610
6611 if test "$NEATO" != "echo neato" ; then
6612
6613 cat >>confdefs.h <<\_ACEOF
6614 #define HAVE_NEATO 1
6615 _ACEOF
6616
6617     if test "$llvm_cv_os_type" = "MingW" ; then
6618     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6619   fi
6620
6621 cat >>confdefs.h <<_ACEOF
6622 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6623 _ACEOF
6624
6625 fi
6626 # Extract the first word of "twopi", so it can be a program name with args.
6627 set dummy twopi; ac_word=$2
6628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6630 if test "${ac_cv_path_TWOPI+set}" = set; then
6631   echo $ECHO_N "(cached) $ECHO_C" >&6
6632 else
6633   case $TWOPI in
6634   [\\/]* | ?:[\\/]*)
6635   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6636   ;;
6637   *)
6638   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 for as_dir in $PATH
6640 do
6641   IFS=$as_save_IFS
6642   test -z "$as_dir" && as_dir=.
6643   for ac_exec_ext in '' $ac_executable_extensions; do
6644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6645     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6646     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6647     break 2
6648   fi
6649 done
6650 done
6651 IFS=$as_save_IFS
6652
6653   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6654   ;;
6655 esac
6656 fi
6657 TWOPI=$ac_cv_path_TWOPI
6658 if test -n "$TWOPI"; then
6659   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6660 echo "${ECHO_T}$TWOPI" >&6; }
6661 else
6662   { echo "$as_me:$LINENO: result: no" >&5
6663 echo "${ECHO_T}no" >&6; }
6664 fi
6665
6666
6667 if test "$TWOPI" != "echo twopi" ; then
6668
6669 cat >>confdefs.h <<\_ACEOF
6670 #define HAVE_TWOPI 1
6671 _ACEOF
6672
6673     if test "$llvm_cv_os_type" = "MingW" ; then
6674     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6675   fi
6676
6677 cat >>confdefs.h <<_ACEOF
6678 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6679 _ACEOF
6680
6681 fi
6682 # Extract the first word of "circo", so it can be a program name with args.
6683 set dummy circo; ac_word=$2
6684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6686 if test "${ac_cv_path_CIRCO+set}" = set; then
6687   echo $ECHO_N "(cached) $ECHO_C" >&6
6688 else
6689   case $CIRCO in
6690   [\\/]* | ?:[\\/]*)
6691   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6692   ;;
6693   *)
6694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695 for as_dir in $PATH
6696 do
6697   IFS=$as_save_IFS
6698   test -z "$as_dir" && as_dir=.
6699   for ac_exec_ext in '' $ac_executable_extensions; do
6700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6701     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6703     break 2
6704   fi
6705 done
6706 done
6707 IFS=$as_save_IFS
6708
6709   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6710   ;;
6711 esac
6712 fi
6713 CIRCO=$ac_cv_path_CIRCO
6714 if test -n "$CIRCO"; then
6715   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6716 echo "${ECHO_T}$CIRCO" >&6; }
6717 else
6718   { echo "$as_me:$LINENO: result: no" >&5
6719 echo "${ECHO_T}no" >&6; }
6720 fi
6721
6722
6723 if test "$CIRCO" != "echo circo" ; then
6724
6725 cat >>confdefs.h <<\_ACEOF
6726 #define HAVE_CIRCO 1
6727 _ACEOF
6728
6729     if test "$llvm_cv_os_type" = "MingW" ; then
6730     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6731   fi
6732
6733 cat >>confdefs.h <<_ACEOF
6734 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6735 _ACEOF
6736
6737 fi
6738 for ac_prog in gv gsview32
6739 do
6740   # Extract the first word of "$ac_prog", so it can be a program name with args.
6741 set dummy $ac_prog; ac_word=$2
6742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6744 if test "${ac_cv_path_GV+set}" = set; then
6745   echo $ECHO_N "(cached) $ECHO_C" >&6
6746 else
6747   case $GV in
6748   [\\/]* | ?:[\\/]*)
6749   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6750   ;;
6751   *)
6752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753 for as_dir in $PATH
6754 do
6755   IFS=$as_save_IFS
6756   test -z "$as_dir" && as_dir=.
6757   for ac_exec_ext in '' $ac_executable_extensions; do
6758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6759     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6761     break 2
6762   fi
6763 done
6764 done
6765 IFS=$as_save_IFS
6766
6767   ;;
6768 esac
6769 fi
6770 GV=$ac_cv_path_GV
6771 if test -n "$GV"; then
6772   { echo "$as_me:$LINENO: result: $GV" >&5
6773 echo "${ECHO_T}$GV" >&6; }
6774 else
6775   { echo "$as_me:$LINENO: result: no" >&5
6776 echo "${ECHO_T}no" >&6; }
6777 fi
6778
6779
6780   test -n "$GV" && break
6781 done
6782 test -n "$GV" || GV="echo gv"
6783
6784 if test "$GV" != "echo gv" ; then
6785
6786 cat >>confdefs.h <<\_ACEOF
6787 #define HAVE_GV 1
6788 _ACEOF
6789
6790     if test "$llvm_cv_os_type" = "MingW" ; then
6791     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6792   fi
6793
6794 cat >>confdefs.h <<_ACEOF
6795 #define LLVM_PATH_GV "$GV${EXEEXT}"
6796 _ACEOF
6797
6798 fi
6799 # Extract the first word of "dotty", so it can be a program name with args.
6800 set dummy dotty; ac_word=$2
6801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6803 if test "${ac_cv_path_DOTTY+set}" = set; then
6804   echo $ECHO_N "(cached) $ECHO_C" >&6
6805 else
6806   case $DOTTY in
6807   [\\/]* | ?:[\\/]*)
6808   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6809   ;;
6810   *)
6811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812 for as_dir in $PATH
6813 do
6814   IFS=$as_save_IFS
6815   test -z "$as_dir" && as_dir=.
6816   for ac_exec_ext in '' $ac_executable_extensions; do
6817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6818     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6820     break 2
6821   fi
6822 done
6823 done
6824 IFS=$as_save_IFS
6825
6826   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6827   ;;
6828 esac
6829 fi
6830 DOTTY=$ac_cv_path_DOTTY
6831 if test -n "$DOTTY"; then
6832   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6833 echo "${ECHO_T}$DOTTY" >&6; }
6834 else
6835   { echo "$as_me:$LINENO: result: no" >&5
6836 echo "${ECHO_T}no" >&6; }
6837 fi
6838
6839
6840 if test "$DOTTY" != "echo dotty" ; then
6841
6842 cat >>confdefs.h <<\_ACEOF
6843 #define HAVE_DOTTY 1
6844 _ACEOF
6845
6846     if test "$llvm_cv_os_type" = "MingW" ; then
6847     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6848   fi
6849
6850 cat >>confdefs.h <<_ACEOF
6851 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6852 _ACEOF
6853
6854 fi
6855 # Extract the first word of "xdot.py", so it can be a program name with args.
6856 set dummy xdot.py; ac_word=$2
6857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6859 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6860   echo $ECHO_N "(cached) $ECHO_C" >&6
6861 else
6862   case $XDOT_PY in
6863   [\\/]* | ?:[\\/]*)
6864   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6865   ;;
6866   *)
6867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 for as_dir in $PATH
6869 do
6870   IFS=$as_save_IFS
6871   test -z "$as_dir" && as_dir=.
6872   for ac_exec_ext in '' $ac_executable_extensions; do
6873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6874     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6876     break 2
6877   fi
6878 done
6879 done
6880 IFS=$as_save_IFS
6881
6882   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6883   ;;
6884 esac
6885 fi
6886 XDOT_PY=$ac_cv_path_XDOT_PY
6887 if test -n "$XDOT_PY"; then
6888   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6889 echo "${ECHO_T}$XDOT_PY" >&6; }
6890 else
6891   { echo "$as_me:$LINENO: result: no" >&5
6892 echo "${ECHO_T}no" >&6; }
6893 fi
6894
6895
6896 if test "$XDOT_PY" != "echo xdot.py" ; then
6897
6898 cat >>confdefs.h <<\_ACEOF
6899 #define HAVE_XDOT_PY 1
6900 _ACEOF
6901
6902     if test "$llvm_cv_os_type" = "MingW" ; then
6903     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6904   fi
6905
6906 cat >>confdefs.h <<_ACEOF
6907 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6908 _ACEOF
6909
6910 fi
6911
6912 # Find a good install program.  We prefer a C program (faster),
6913 # so one script is as good as another.  But avoid the broken or
6914 # incompatible versions:
6915 # SysV /etc/install, /usr/sbin/install
6916 # SunOS /usr/etc/install
6917 # IRIX /sbin/install
6918 # AIX /bin/install
6919 # AmigaOS /C/install, which installs bootblocks on floppy discs
6920 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6921 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6922 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6923 # OS/2's system install, which has a completely different semantic
6924 # ./install, which can be erroneously created by make from ./install.sh.
6925 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6926 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6927 if test -z "$INSTALL"; then
6928 if test "${ac_cv_path_install+set}" = set; then
6929   echo $ECHO_N "(cached) $ECHO_C" >&6
6930 else
6931   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932 for as_dir in $PATH
6933 do
6934   IFS=$as_save_IFS
6935   test -z "$as_dir" && as_dir=.
6936   # Account for people who put trailing slashes in PATH elements.
6937 case $as_dir/ in
6938   ./ | .// | /cC/* | \
6939   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6940   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6941   /usr/ucb/* ) ;;
6942   *)
6943     # OSF1 and SCO ODT 3.0 have their own names for install.
6944     # Don't use installbsd from OSF since it installs stuff as root
6945     # by default.
6946     for ac_prog in ginstall scoinst install; do
6947       for ac_exec_ext in '' $ac_executable_extensions; do
6948         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6949           if test $ac_prog = install &&
6950             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6951             # AIX install.  It has an incompatible calling convention.
6952             :
6953           elif test $ac_prog = install &&
6954             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6955             # program-specific install script used by HP pwplus--don't use.
6956             :
6957           else
6958             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6959             break 3
6960           fi
6961         fi
6962       done
6963     done
6964     ;;
6965 esac
6966 done
6967 IFS=$as_save_IFS
6968
6969
6970 fi
6971   if test "${ac_cv_path_install+set}" = set; then
6972     INSTALL=$ac_cv_path_install
6973   else
6974     # As a last resort, use the slow shell script.  Don't cache a
6975     # value for INSTALL within a source directory, because that will
6976     # break other packages using the cache if that directory is
6977     # removed, or if the value is a relative name.
6978     INSTALL=$ac_install_sh
6979   fi
6980 fi
6981 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6982 echo "${ECHO_T}$INSTALL" >&6; }
6983
6984 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6985 # It thinks the first close brace ends the variable substitution.
6986 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6987
6988 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6989
6990 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6991
6992 case "$INSTALL" in
6993  [\\/$]* | ?:[\\/]* ) ;;
6994  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6995 esac
6996
6997 # Extract the first word of "bzip2", so it can be a program name with args.
6998 set dummy bzip2; ac_word=$2
6999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7001 if test "${ac_cv_path_BZIP2+set}" = set; then
7002   echo $ECHO_N "(cached) $ECHO_C" >&6
7003 else
7004   case $BZIP2 in
7005   [\\/]* | ?:[\\/]*)
7006   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7007   ;;
7008   *)
7009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010 for as_dir in $PATH
7011 do
7012   IFS=$as_save_IFS
7013   test -z "$as_dir" && as_dir=.
7014   for ac_exec_ext in '' $ac_executable_extensions; do
7015   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7016     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7018     break 2
7019   fi
7020 done
7021 done
7022 IFS=$as_save_IFS
7023
7024   ;;
7025 esac
7026 fi
7027 BZIP2=$ac_cv_path_BZIP2
7028 if test -n "$BZIP2"; then
7029   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7030 echo "${ECHO_T}$BZIP2" >&6; }
7031 else
7032   { echo "$as_me:$LINENO: result: no" >&5
7033 echo "${ECHO_T}no" >&6; }
7034 fi
7035
7036
7037 # Extract the first word of "cat", so it can be a program name with args.
7038 set dummy cat; ac_word=$2
7039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7041 if test "${ac_cv_path_CAT+set}" = set; then
7042   echo $ECHO_N "(cached) $ECHO_C" >&6
7043 else
7044   case $CAT in
7045   [\\/]* | ?:[\\/]*)
7046   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7047   ;;
7048   *)
7049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050 for as_dir in $PATH
7051 do
7052   IFS=$as_save_IFS
7053   test -z "$as_dir" && as_dir=.
7054   for ac_exec_ext in '' $ac_executable_extensions; do
7055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7056     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7058     break 2
7059   fi
7060 done
7061 done
7062 IFS=$as_save_IFS
7063
7064   ;;
7065 esac
7066 fi
7067 CAT=$ac_cv_path_CAT
7068 if test -n "$CAT"; then
7069   { echo "$as_me:$LINENO: result: $CAT" >&5
7070 echo "${ECHO_T}$CAT" >&6; }
7071 else
7072   { echo "$as_me:$LINENO: result: no" >&5
7073 echo "${ECHO_T}no" >&6; }
7074 fi
7075
7076
7077 # Extract the first word of "doxygen", so it can be a program name with args.
7078 set dummy doxygen; ac_word=$2
7079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7081 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7082   echo $ECHO_N "(cached) $ECHO_C" >&6
7083 else
7084   case $DOXYGEN in
7085   [\\/]* | ?:[\\/]*)
7086   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7087   ;;
7088   *)
7089   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 for as_dir in $PATH
7091 do
7092   IFS=$as_save_IFS
7093   test -z "$as_dir" && as_dir=.
7094   for ac_exec_ext in '' $ac_executable_extensions; do
7095   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7096     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7098     break 2
7099   fi
7100 done
7101 done
7102 IFS=$as_save_IFS
7103
7104   ;;
7105 esac
7106 fi
7107 DOXYGEN=$ac_cv_path_DOXYGEN
7108 if test -n "$DOXYGEN"; then
7109   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7110 echo "${ECHO_T}$DOXYGEN" >&6; }
7111 else
7112   { echo "$as_me:$LINENO: result: no" >&5
7113 echo "${ECHO_T}no" >&6; }
7114 fi
7115
7116
7117 # Extract the first word of "groff", so it can be a program name with args.
7118 set dummy groff; ac_word=$2
7119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7121 if test "${ac_cv_path_GROFF+set}" = set; then
7122   echo $ECHO_N "(cached) $ECHO_C" >&6
7123 else
7124   case $GROFF in
7125   [\\/]* | ?:[\\/]*)
7126   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7127   ;;
7128   *)
7129   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 for as_dir in $PATH
7131 do
7132   IFS=$as_save_IFS
7133   test -z "$as_dir" && as_dir=.
7134   for ac_exec_ext in '' $ac_executable_extensions; do
7135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7136     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7137     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7138     break 2
7139   fi
7140 done
7141 done
7142 IFS=$as_save_IFS
7143
7144   ;;
7145 esac
7146 fi
7147 GROFF=$ac_cv_path_GROFF
7148 if test -n "$GROFF"; then
7149   { echo "$as_me:$LINENO: result: $GROFF" >&5
7150 echo "${ECHO_T}$GROFF" >&6; }
7151 else
7152   { echo "$as_me:$LINENO: result: no" >&5
7153 echo "${ECHO_T}no" >&6; }
7154 fi
7155
7156
7157 # Extract the first word of "gzip", so it can be a program name with args.
7158 set dummy gzip; ac_word=$2
7159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7161 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7162   echo $ECHO_N "(cached) $ECHO_C" >&6
7163 else
7164   case $GZIPBIN in
7165   [\\/]* | ?:[\\/]*)
7166   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7167   ;;
7168   *)
7169   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 for as_dir in $PATH
7171 do
7172   IFS=$as_save_IFS
7173   test -z "$as_dir" && as_dir=.
7174   for ac_exec_ext in '' $ac_executable_extensions; do
7175   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7176     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7177     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7178     break 2
7179   fi
7180 done
7181 done
7182 IFS=$as_save_IFS
7183
7184   ;;
7185 esac
7186 fi
7187 GZIPBIN=$ac_cv_path_GZIPBIN
7188 if test -n "$GZIPBIN"; then
7189   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7190 echo "${ECHO_T}$GZIPBIN" >&6; }
7191 else
7192   { echo "$as_me:$LINENO: result: no" >&5
7193 echo "${ECHO_T}no" >&6; }
7194 fi
7195
7196
7197 # Extract the first word of "pod2html", so it can be a program name with args.
7198 set dummy pod2html; ac_word=$2
7199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7201 if test "${ac_cv_path_POD2HTML+set}" = set; then
7202   echo $ECHO_N "(cached) $ECHO_C" >&6
7203 else
7204   case $POD2HTML in
7205   [\\/]* | ?:[\\/]*)
7206   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7207   ;;
7208   *)
7209   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210 for as_dir in $PATH
7211 do
7212   IFS=$as_save_IFS
7213   test -z "$as_dir" && as_dir=.
7214   for ac_exec_ext in '' $ac_executable_extensions; do
7215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7216     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7218     break 2
7219   fi
7220 done
7221 done
7222 IFS=$as_save_IFS
7223
7224   ;;
7225 esac
7226 fi
7227 POD2HTML=$ac_cv_path_POD2HTML
7228 if test -n "$POD2HTML"; then
7229   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7230 echo "${ECHO_T}$POD2HTML" >&6; }
7231 else
7232   { echo "$as_me:$LINENO: result: no" >&5
7233 echo "${ECHO_T}no" >&6; }
7234 fi
7235
7236
7237 # Extract the first word of "pod2man", so it can be a program name with args.
7238 set dummy pod2man; ac_word=$2
7239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7241 if test "${ac_cv_path_POD2MAN+set}" = set; then
7242   echo $ECHO_N "(cached) $ECHO_C" >&6
7243 else
7244   case $POD2MAN in
7245   [\\/]* | ?:[\\/]*)
7246   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7247   ;;
7248   *)
7249   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250 for as_dir in $PATH
7251 do
7252   IFS=$as_save_IFS
7253   test -z "$as_dir" && as_dir=.
7254   for ac_exec_ext in '' $ac_executable_extensions; do
7255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7256     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7257     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7258     break 2
7259   fi
7260 done
7261 done
7262 IFS=$as_save_IFS
7263
7264   ;;
7265 esac
7266 fi
7267 POD2MAN=$ac_cv_path_POD2MAN
7268 if test -n "$POD2MAN"; then
7269   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7270 echo "${ECHO_T}$POD2MAN" >&6; }
7271 else
7272   { echo "$as_me:$LINENO: result: no" >&5
7273 echo "${ECHO_T}no" >&6; }
7274 fi
7275
7276
7277 # Extract the first word of "pdfroff", so it can be a program name with args.
7278 set dummy pdfroff; ac_word=$2
7279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7281 if test "${ac_cv_path_PDFROFF+set}" = set; then
7282   echo $ECHO_N "(cached) $ECHO_C" >&6
7283 else
7284   case $PDFROFF in
7285   [\\/]* | ?:[\\/]*)
7286   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7287   ;;
7288   *)
7289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7290 for as_dir in $PATH
7291 do
7292   IFS=$as_save_IFS
7293   test -z "$as_dir" && as_dir=.
7294   for ac_exec_ext in '' $ac_executable_extensions; do
7295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7296     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7297     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7298     break 2
7299   fi
7300 done
7301 done
7302 IFS=$as_save_IFS
7303
7304   ;;
7305 esac
7306 fi
7307 PDFROFF=$ac_cv_path_PDFROFF
7308 if test -n "$PDFROFF"; then
7309   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7310 echo "${ECHO_T}$PDFROFF" >&6; }
7311 else
7312   { echo "$as_me:$LINENO: result: no" >&5
7313 echo "${ECHO_T}no" >&6; }
7314 fi
7315
7316
7317 # Extract the first word of "runtest", so it can be a program name with args.
7318 set dummy runtest; ac_word=$2
7319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7321 if test "${ac_cv_path_RUNTEST+set}" = set; then
7322   echo $ECHO_N "(cached) $ECHO_C" >&6
7323 else
7324   case $RUNTEST in
7325   [\\/]* | ?:[\\/]*)
7326   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7327   ;;
7328   *)
7329   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7330 for as_dir in $PATH
7331 do
7332   IFS=$as_save_IFS
7333   test -z "$as_dir" && as_dir=.
7334   for ac_exec_ext in '' $ac_executable_extensions; do
7335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7336     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7337     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7338     break 2
7339   fi
7340 done
7341 done
7342 IFS=$as_save_IFS
7343
7344   ;;
7345 esac
7346 fi
7347 RUNTEST=$ac_cv_path_RUNTEST
7348 if test -n "$RUNTEST"; then
7349   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7350 echo "${ECHO_T}$RUNTEST" >&6; }
7351 else
7352   { echo "$as_me:$LINENO: result: no" >&5
7353 echo "${ECHO_T}no" >&6; }
7354 fi
7355
7356
7357
7358 no_itcl=true
7359 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7360 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7361
7362 # Check whether --with-tclinclude was given.
7363 if test "${with_tclinclude+set}" = set; then
7364   withval=$with_tclinclude; with_tclinclude=${withval}
7365 else
7366   with_tclinclude=''
7367 fi
7368
7369 if test "${ac_cv_path_tclsh+set}" = set; then
7370   echo $ECHO_N "(cached) $ECHO_C" >&6
7371 else
7372
7373 if test x"${with_tclinclude}" != x ; then
7374   if test -f ${with_tclinclude}/tclsh ; then
7375     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7376   elif test -f ${with_tclinclude}/src/tclsh ; then
7377     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7378   else
7379     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7380 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7381    { (exit 1); exit 1; }; }
7382   fi
7383 fi
7384 fi
7385
7386
7387 if test x"${ac_cv_path_tclsh}" = x ; then
7388   { echo "$as_me:$LINENO: result: none" >&5
7389 echo "${ECHO_T}none" >&6; }
7390   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
7391 do
7392   # Extract the first word of "$ac_prog", so it can be a program name with args.
7393 set dummy $ac_prog; ac_word=$2
7394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7396 if test "${ac_cv_path_TCLSH+set}" = set; then
7397   echo $ECHO_N "(cached) $ECHO_C" >&6
7398 else
7399   case $TCLSH in
7400   [\\/]* | ?:[\\/]*)
7401   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7402   ;;
7403   *)
7404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405 for as_dir in $PATH
7406 do
7407   IFS=$as_save_IFS
7408   test -z "$as_dir" && as_dir=.
7409   for ac_exec_ext in '' $ac_executable_extensions; do
7410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7411     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7413     break 2
7414   fi
7415 done
7416 done
7417 IFS=$as_save_IFS
7418
7419   ;;
7420 esac
7421 fi
7422 TCLSH=$ac_cv_path_TCLSH
7423 if test -n "$TCLSH"; then
7424   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7425 echo "${ECHO_T}$TCLSH" >&6; }
7426 else
7427   { echo "$as_me:$LINENO: result: no" >&5
7428 echo "${ECHO_T}no" >&6; }
7429 fi
7430
7431
7432   test -n "$TCLSH" && break
7433 done
7434
7435   if test x"${TCLSH}" = x ; then
7436     ac_cv_path_tclsh='';
7437   else
7438     ac_cv_path_tclsh="${TCLSH}";
7439   fi
7440 else
7441   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7442 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7443   TCLSH="${ac_cv_path_tclsh}"
7444
7445 fi
7446
7447 # Extract the first word of "zip", so it can be a program name with args.
7448 set dummy zip; ac_word=$2
7449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7451 if test "${ac_cv_path_ZIP+set}" = set; then
7452   echo $ECHO_N "(cached) $ECHO_C" >&6
7453 else
7454   case $ZIP in
7455   [\\/]* | ?:[\\/]*)
7456   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7457   ;;
7458   *)
7459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460 for as_dir in $PATH
7461 do
7462   IFS=$as_save_IFS
7463   test -z "$as_dir" && as_dir=.
7464   for ac_exec_ext in '' $ac_executable_extensions; do
7465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7466     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7468     break 2
7469   fi
7470 done
7471 done
7472 IFS=$as_save_IFS
7473
7474   ;;
7475 esac
7476 fi
7477 ZIP=$ac_cv_path_ZIP
7478 if test -n "$ZIP"; then
7479   { echo "$as_me:$LINENO: result: $ZIP" >&5
7480 echo "${ECHO_T}$ZIP" >&6; }
7481 else
7482   { echo "$as_me:$LINENO: result: no" >&5
7483 echo "${ECHO_T}no" >&6; }
7484 fi
7485
7486
7487 for ac_prog in ocamlc
7488 do
7489   # Extract the first word of "$ac_prog", so it can be a program name with args.
7490 set dummy $ac_prog; ac_word=$2
7491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7493 if test "${ac_cv_path_OCAMLC+set}" = set; then
7494   echo $ECHO_N "(cached) $ECHO_C" >&6
7495 else
7496   case $OCAMLC in
7497   [\\/]* | ?:[\\/]*)
7498   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7499   ;;
7500   *)
7501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502 for as_dir in $PATH
7503 do
7504   IFS=$as_save_IFS
7505   test -z "$as_dir" && as_dir=.
7506   for ac_exec_ext in '' $ac_executable_extensions; do
7507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7508     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7510     break 2
7511   fi
7512 done
7513 done
7514 IFS=$as_save_IFS
7515
7516   ;;
7517 esac
7518 fi
7519 OCAMLC=$ac_cv_path_OCAMLC
7520 if test -n "$OCAMLC"; then
7521   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7522 echo "${ECHO_T}$OCAMLC" >&6; }
7523 else
7524   { echo "$as_me:$LINENO: result: no" >&5
7525 echo "${ECHO_T}no" >&6; }
7526 fi
7527
7528
7529   test -n "$OCAMLC" && break
7530 done
7531
7532 for ac_prog in ocamlopt
7533 do
7534   # Extract the first word of "$ac_prog", so it can be a program name with args.
7535 set dummy $ac_prog; ac_word=$2
7536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7538 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7539   echo $ECHO_N "(cached) $ECHO_C" >&6
7540 else
7541   case $OCAMLOPT in
7542   [\\/]* | ?:[\\/]*)
7543   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7544   ;;
7545   *)
7546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547 for as_dir in $PATH
7548 do
7549   IFS=$as_save_IFS
7550   test -z "$as_dir" && as_dir=.
7551   for ac_exec_ext in '' $ac_executable_extensions; do
7552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7553     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7555     break 2
7556   fi
7557 done
7558 done
7559 IFS=$as_save_IFS
7560
7561   ;;
7562 esac
7563 fi
7564 OCAMLOPT=$ac_cv_path_OCAMLOPT
7565 if test -n "$OCAMLOPT"; then
7566   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7567 echo "${ECHO_T}$OCAMLOPT" >&6; }
7568 else
7569   { echo "$as_me:$LINENO: result: no" >&5
7570 echo "${ECHO_T}no" >&6; }
7571 fi
7572
7573
7574   test -n "$OCAMLOPT" && break
7575 done
7576
7577 for ac_prog in ocamldep
7578 do
7579   # Extract the first word of "$ac_prog", so it can be a program name with args.
7580 set dummy $ac_prog; ac_word=$2
7581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7583 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7584   echo $ECHO_N "(cached) $ECHO_C" >&6
7585 else
7586   case $OCAMLDEP in
7587   [\\/]* | ?:[\\/]*)
7588   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7589   ;;
7590   *)
7591   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592 for as_dir in $PATH
7593 do
7594   IFS=$as_save_IFS
7595   test -z "$as_dir" && as_dir=.
7596   for ac_exec_ext in '' $ac_executable_extensions; do
7597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7598     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7600     break 2
7601   fi
7602 done
7603 done
7604 IFS=$as_save_IFS
7605
7606   ;;
7607 esac
7608 fi
7609 OCAMLDEP=$ac_cv_path_OCAMLDEP
7610 if test -n "$OCAMLDEP"; then
7611   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7612 echo "${ECHO_T}$OCAMLDEP" >&6; }
7613 else
7614   { echo "$as_me:$LINENO: result: no" >&5
7615 echo "${ECHO_T}no" >&6; }
7616 fi
7617
7618
7619   test -n "$OCAMLDEP" && break
7620 done
7621
7622 for ac_prog in ocamldoc
7623 do
7624   # Extract the first word of "$ac_prog", so it can be a program name with args.
7625 set dummy $ac_prog; ac_word=$2
7626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7628 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7629   echo $ECHO_N "(cached) $ECHO_C" >&6
7630 else
7631   case $OCAMLDOC in
7632   [\\/]* | ?:[\\/]*)
7633   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7634   ;;
7635   *)
7636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637 for as_dir in $PATH
7638 do
7639   IFS=$as_save_IFS
7640   test -z "$as_dir" && as_dir=.
7641   for ac_exec_ext in '' $ac_executable_extensions; do
7642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7643     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7645     break 2
7646   fi
7647 done
7648 done
7649 IFS=$as_save_IFS
7650
7651   ;;
7652 esac
7653 fi
7654 OCAMLDOC=$ac_cv_path_OCAMLDOC
7655 if test -n "$OCAMLDOC"; then
7656   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7657 echo "${ECHO_T}$OCAMLDOC" >&6; }
7658 else
7659   { echo "$as_me:$LINENO: result: no" >&5
7660 echo "${ECHO_T}no" >&6; }
7661 fi
7662
7663
7664   test -n "$OCAMLDOC" && break
7665 done
7666
7667 for ac_prog in gas as
7668 do
7669   # Extract the first word of "$ac_prog", so it can be a program name with args.
7670 set dummy $ac_prog; ac_word=$2
7671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7673 if test "${ac_cv_path_GAS+set}" = set; then
7674   echo $ECHO_N "(cached) $ECHO_C" >&6
7675 else
7676   case $GAS in
7677   [\\/]* | ?:[\\/]*)
7678   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7679   ;;
7680   *)
7681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682 for as_dir in $PATH
7683 do
7684   IFS=$as_save_IFS
7685   test -z "$as_dir" && as_dir=.
7686   for ac_exec_ext in '' $ac_executable_extensions; do
7687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7688     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7690     break 2
7691   fi
7692 done
7693 done
7694 IFS=$as_save_IFS
7695
7696   ;;
7697 esac
7698 fi
7699 GAS=$ac_cv_path_GAS
7700 if test -n "$GAS"; then
7701   { echo "$as_me:$LINENO: result: $GAS" >&5
7702 echo "${ECHO_T}$GAS" >&6; }
7703 else
7704   { echo "$as_me:$LINENO: result: no" >&5
7705 echo "${ECHO_T}no" >&6; }
7706 fi
7707
7708
7709   test -n "$GAS" && break
7710 done
7711
7712
7713 { echo "$as_me:$LINENO: checking for linker version" >&5
7714 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7715 if test "${llvm_cv_link_version+set}" = set; then
7716   echo $ECHO_N "(cached) $ECHO_C" >&6
7717 else
7718
7719    version_string="$(ld -v 2>&1 | head -1)"
7720
7721    # Check for ld64.
7722    if (echo "$version_string" | grep -q "ld64"); then
7723      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7724    else
7725      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7726    fi
7727
7728 fi
7729 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7730 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7731
7732 cat >>confdefs.h <<_ACEOF
7733 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7734 _ACEOF
7735
7736
7737
7738 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7739 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7740 if test "${llvm_cv_link_use_r+set}" = set; then
7741   echo $ECHO_N "(cached) $ECHO_C" >&6
7742 else
7743    ac_ext=c
7744 ac_cpp='$CPP $CPPFLAGS'
7745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7748
7749   oldcflags="$CFLAGS"
7750   CFLAGS="$CFLAGS -Wl,-R."
7751   cat >conftest.$ac_ext <<_ACEOF
7752 /* confdefs.h.  */
7753 _ACEOF
7754 cat confdefs.h >>conftest.$ac_ext
7755 cat >>conftest.$ac_ext <<_ACEOF
7756 /* end confdefs.h.  */
7757
7758 int
7759 main ()
7760 {
7761
7762   ;
7763   return 0;
7764 }
7765 _ACEOF
7766 rm -f conftest.$ac_objext conftest$ac_exeext
7767 if { (ac_try="$ac_link"
7768 case "(($ac_try" in
7769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7770   *) ac_try_echo=$ac_try;;
7771 esac
7772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7773   (eval "$ac_link") 2>conftest.er1
7774   ac_status=$?
7775   grep -v '^ *+' conftest.er1 >conftest.err
7776   rm -f conftest.er1
7777   cat conftest.err >&5
7778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779   (exit $ac_status); } &&
7780          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7781   { (case "(($ac_try" in
7782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7783   *) ac_try_echo=$ac_try;;
7784 esac
7785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7786   (eval "$ac_try") 2>&5
7787   ac_status=$?
7788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789   (exit $ac_status); }; } &&
7790          { ac_try='test -s conftest$ac_exeext'
7791   { (case "(($ac_try" in
7792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7793   *) ac_try_echo=$ac_try;;
7794 esac
7795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7796   (eval "$ac_try") 2>&5
7797   ac_status=$?
7798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799   (exit $ac_status); }; }; then
7800   llvm_cv_link_use_r=yes
7801 else
7802   echo "$as_me: failed program was:" >&5
7803 sed 's/^/| /' conftest.$ac_ext >&5
7804
7805         llvm_cv_link_use_r=no
7806 fi
7807
7808 rm -f core conftest.err conftest.$ac_objext \
7809       conftest$ac_exeext conftest.$ac_ext
7810   CFLAGS="$oldcflags"
7811   ac_ext=c
7812 ac_cpp='$CPP $CPPFLAGS'
7813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7816
7817
7818 fi
7819 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7820 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7821 if test "$llvm_cv_link_use_r" = yes ; then
7822
7823 cat >>confdefs.h <<\_ACEOF
7824 #define HAVE_LINK_R 1
7825 _ACEOF
7826
7827   fi
7828
7829
7830 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7831 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7832 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7833   echo $ECHO_N "(cached) $ECHO_C" >&6
7834 else
7835    ac_ext=c
7836 ac_cpp='$CPP $CPPFLAGS'
7837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7840
7841   oldcflags="$CFLAGS"
7842   CFLAGS="$CFLAGS -rdynamic"
7843   cat >conftest.$ac_ext <<_ACEOF
7844 /* confdefs.h.  */
7845 _ACEOF
7846 cat confdefs.h >>conftest.$ac_ext
7847 cat >>conftest.$ac_ext <<_ACEOF
7848 /* end confdefs.h.  */
7849
7850 int
7851 main ()
7852 {
7853
7854   ;
7855   return 0;
7856 }
7857 _ACEOF
7858 rm -f conftest.$ac_objext conftest$ac_exeext
7859 if { (ac_try="$ac_link"
7860 case "(($ac_try" in
7861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7862   *) ac_try_echo=$ac_try;;
7863 esac
7864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7865   (eval "$ac_link") 2>conftest.er1
7866   ac_status=$?
7867   grep -v '^ *+' conftest.er1 >conftest.err
7868   rm -f conftest.er1
7869   cat conftest.err >&5
7870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871   (exit $ac_status); } &&
7872          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7873   { (case "(($ac_try" in
7874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7875   *) ac_try_echo=$ac_try;;
7876 esac
7877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7878   (eval "$ac_try") 2>&5
7879   ac_status=$?
7880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881   (exit $ac_status); }; } &&
7882          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
7889   ac_status=$?
7890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891   (exit $ac_status); }; }; then
7892   llvm_cv_link_use_export_dynamic=yes
7893 else
7894   echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.$ac_ext >&5
7896
7897         llvm_cv_link_use_export_dynamic=no
7898 fi
7899
7900 rm -f core conftest.err conftest.$ac_objext \
7901       conftest$ac_exeext conftest.$ac_ext
7902   CFLAGS="$oldcflags"
7903   ac_ext=c
7904 ac_cpp='$CPP $CPPFLAGS'
7905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7908
7909
7910 fi
7911 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7912 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7913 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7914
7915 cat >>confdefs.h <<\_ACEOF
7916 #define HAVE_LINK_EXPORT_DYNAMIC 1
7917 _ACEOF
7918
7919   fi
7920
7921
7922 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7923 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7924 if test "${llvm_cv_link_use_version_script+set}" = set; then
7925   echo $ECHO_N "(cached) $ECHO_C" >&6
7926 else
7927    ac_ext=c
7928 ac_cpp='$CPP $CPPFLAGS'
7929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7932
7933   oldcflags="$CFLAGS"
7934
7935   # The following code is from the autoconf manual,
7936   # "11.13: Limitations of Usual Tools".
7937   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7938   # Use mktemp if possible; otherwise fall back on mkdir,
7939   # with $RANDOM to make collisions less likely.
7940   : ${TMPDIR=/tmp}
7941   {
7942     tmp=`
7943       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7944     ` &&
7945     test -n "$tmp" && test -d "$tmp"
7946   } || {
7947     tmp=$TMPDIR/foo$$-$RANDOM
7948     (umask 077 && mkdir "$tmp")
7949   } || exit $?
7950
7951   echo "{" > "$tmp/export.map"
7952   echo "  global: main;" >> "$tmp/export.map"
7953   echo "  local: *;" >> "$tmp/export.map"
7954   echo "};" >> "$tmp/export.map"
7955
7956   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7957   cat >conftest.$ac_ext <<_ACEOF
7958 /* confdefs.h.  */
7959 _ACEOF
7960 cat confdefs.h >>conftest.$ac_ext
7961 cat >>conftest.$ac_ext <<_ACEOF
7962 /* end confdefs.h.  */
7963
7964 int
7965 main ()
7966 {
7967
7968   ;
7969   return 0;
7970 }
7971 _ACEOF
7972 rm -f conftest.$ac_objext conftest$ac_exeext
7973 if { (ac_try="$ac_link"
7974 case "(($ac_try" in
7975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7976   *) ac_try_echo=$ac_try;;
7977 esac
7978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7979   (eval "$ac_link") 2>conftest.er1
7980   ac_status=$?
7981   grep -v '^ *+' conftest.er1 >conftest.err
7982   rm -f conftest.er1
7983   cat conftest.err >&5
7984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985   (exit $ac_status); } &&
7986          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7987   { (case "(($ac_try" in
7988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7989   *) ac_try_echo=$ac_try;;
7990 esac
7991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7992   (eval "$ac_try") 2>&5
7993   ac_status=$?
7994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995   (exit $ac_status); }; } &&
7996          { ac_try='test -s conftest$ac_exeext'
7997   { (case "(($ac_try" in
7998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7999   *) ac_try_echo=$ac_try;;
8000 esac
8001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8002   (eval "$ac_try") 2>&5
8003   ac_status=$?
8004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005   (exit $ac_status); }; }; then
8006   llvm_cv_link_use_version_script=yes
8007 else
8008   echo "$as_me: failed program was:" >&5
8009 sed 's/^/| /' conftest.$ac_ext >&5
8010
8011         llvm_cv_link_use_version_script=no
8012 fi
8013
8014 rm -f core conftest.err conftest.$ac_objext \
8015       conftest$ac_exeext conftest.$ac_ext
8016   rm "$tmp/export.map"
8017   rmdir "$tmp"
8018   CFLAGS="$oldcflags"
8019   ac_ext=c
8020 ac_cpp='$CPP $CPPFLAGS'
8021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8024
8025
8026 fi
8027 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8028 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8029 if test "$llvm_cv_link_use_version_script" = yes ; then
8030   HAVE_LINK_VERSION_SCRIPT=1
8031
8032   fi
8033
8034
8035
8036
8037 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8038 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8039 if test "${ac_cv_c_const+set}" = set; then
8040   echo $ECHO_N "(cached) $ECHO_C" >&6
8041 else
8042   cat >conftest.$ac_ext <<_ACEOF
8043 /* confdefs.h.  */
8044 _ACEOF
8045 cat confdefs.h >>conftest.$ac_ext
8046 cat >>conftest.$ac_ext <<_ACEOF
8047 /* end confdefs.h.  */
8048
8049 int
8050 main ()
8051 {
8052 /* FIXME: Include the comments suggested by Paul. */
8053 #ifndef __cplusplus
8054   /* Ultrix mips cc rejects this.  */
8055   typedef int charset[2];
8056   const charset x;
8057   /* SunOS 4.1.1 cc rejects this.  */
8058   char const *const *ccp;
8059   char **p;
8060   /* NEC SVR4.0.2 mips cc rejects this.  */
8061   struct point {int x, y;};
8062   static struct point const zero = {0,0};
8063   /* AIX XL C 1.02.0.0 rejects this.
8064      It does not let you subtract one const X* pointer from another in
8065      an arm of an if-expression whose if-part is not a constant
8066      expression */
8067   const char *g = "string";
8068   ccp = &g + (g ? g-g : 0);
8069   /* HPUX 7.0 cc rejects these. */
8070   ++ccp;
8071   p = (char**) ccp;
8072   ccp = (char const *const *) p;
8073   { /* SCO 3.2v4 cc rejects this.  */
8074     char *t;
8075     char const *s = 0 ? (char *) 0 : (char const *) 0;
8076
8077     *t++ = 0;
8078     if (s) return 0;
8079   }
8080   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8081     int x[] = {25, 17};
8082     const int *foo = &x[0];
8083     ++foo;
8084   }
8085   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8086     typedef const int *iptr;
8087     iptr p = 0;
8088     ++p;
8089   }
8090   { /* AIX XL C 1.02.0.0 rejects this saying
8091        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8092     struct s { int j; const int *ap[3]; };
8093     struct s *b; b->j = 5;
8094   }
8095   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8096     const int foo = 10;
8097     if (!foo) return 0;
8098   }
8099   return !x[0] && !zero.x;
8100 #endif
8101
8102   ;
8103   return 0;
8104 }
8105 _ACEOF
8106 rm -f conftest.$ac_objext
8107 if { (ac_try="$ac_compile"
8108 case "(($ac_try" in
8109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8110   *) ac_try_echo=$ac_try;;
8111 esac
8112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8113   (eval "$ac_compile") 2>conftest.er1
8114   ac_status=$?
8115   grep -v '^ *+' conftest.er1 >conftest.err
8116   rm -f conftest.er1
8117   cat conftest.err >&5
8118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119   (exit $ac_status); } &&
8120          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8121   { (case "(($ac_try" in
8122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8123   *) ac_try_echo=$ac_try;;
8124 esac
8125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8126   (eval "$ac_try") 2>&5
8127   ac_status=$?
8128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129   (exit $ac_status); }; } &&
8130          { ac_try='test -s conftest.$ac_objext'
8131   { (case "(($ac_try" in
8132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8133   *) ac_try_echo=$ac_try;;
8134 esac
8135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8136   (eval "$ac_try") 2>&5
8137   ac_status=$?
8138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139   (exit $ac_status); }; }; then
8140   ac_cv_c_const=yes
8141 else
8142   echo "$as_me: failed program was:" >&5
8143 sed 's/^/| /' conftest.$ac_ext >&5
8144
8145         ac_cv_c_const=no
8146 fi
8147
8148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8149 fi
8150 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8151 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8152 if test $ac_cv_c_const = no; then
8153
8154 cat >>confdefs.h <<\_ACEOF
8155 #define const
8156 _ACEOF
8157
8158 fi
8159
8160
8161
8162
8163
8164
8165 ac_header_dirent=no
8166 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8167   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8168 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8169 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8171   echo $ECHO_N "(cached) $ECHO_C" >&6
8172 else
8173   cat >conftest.$ac_ext <<_ACEOF
8174 /* confdefs.h.  */
8175 _ACEOF
8176 cat confdefs.h >>conftest.$ac_ext
8177 cat >>conftest.$ac_ext <<_ACEOF
8178 /* end confdefs.h.  */
8179 #include <sys/types.h>
8180 #include <$ac_hdr>
8181
8182 int
8183 main ()
8184 {
8185 if ((DIR *) 0)
8186 return 0;
8187   ;
8188   return 0;
8189 }
8190 _ACEOF
8191 rm -f conftest.$ac_objext
8192 if { (ac_try="$ac_compile"
8193 case "(($ac_try" in
8194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8195   *) ac_try_echo=$ac_try;;
8196 esac
8197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8198   (eval "$ac_compile") 2>conftest.er1
8199   ac_status=$?
8200   grep -v '^ *+' conftest.er1 >conftest.err
8201   rm -f conftest.er1
8202   cat conftest.err >&5
8203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204   (exit $ac_status); } &&
8205          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8206   { (case "(($ac_try" in
8207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8208   *) ac_try_echo=$ac_try;;
8209 esac
8210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8211   (eval "$ac_try") 2>&5
8212   ac_status=$?
8213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214   (exit $ac_status); }; } &&
8215          { ac_try='test -s conftest.$ac_objext'
8216   { (case "(($ac_try" in
8217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8218   *) ac_try_echo=$ac_try;;
8219 esac
8220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8221   (eval "$ac_try") 2>&5
8222   ac_status=$?
8223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224   (exit $ac_status); }; }; then
8225   eval "$as_ac_Header=yes"
8226 else
8227   echo "$as_me: failed program was:" >&5
8228 sed 's/^/| /' conftest.$ac_ext >&5
8229
8230         eval "$as_ac_Header=no"
8231 fi
8232
8233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8234 fi
8235 ac_res=`eval echo '${'$as_ac_Header'}'`
8236                { echo "$as_me:$LINENO: result: $ac_res" >&5
8237 echo "${ECHO_T}$ac_res" >&6; }
8238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8239   cat >>confdefs.h <<_ACEOF
8240 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8241 _ACEOF
8242
8243 ac_header_dirent=$ac_hdr; break
8244 fi
8245
8246 done
8247 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8248 if test $ac_header_dirent = dirent.h; then
8249   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8250 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8251 if test "${ac_cv_search_opendir+set}" = set; then
8252   echo $ECHO_N "(cached) $ECHO_C" >&6
8253 else
8254   ac_func_search_save_LIBS=$LIBS
8255 cat >conftest.$ac_ext <<_ACEOF
8256 /* confdefs.h.  */
8257 _ACEOF
8258 cat confdefs.h >>conftest.$ac_ext
8259 cat >>conftest.$ac_ext <<_ACEOF
8260 /* end confdefs.h.  */
8261
8262 /* Override any GCC internal prototype to avoid an error.
8263    Use char because int might match the return type of a GCC
8264    builtin and then its argument prototype would still apply.  */
8265 #ifdef __cplusplus
8266 extern "C"
8267 #endif
8268 char opendir ();
8269 int
8270 main ()
8271 {
8272 return opendir ();
8273   ;
8274   return 0;
8275 }
8276 _ACEOF
8277 for ac_lib in '' dir; do
8278   if test -z "$ac_lib"; then
8279     ac_res="none required"
8280   else
8281     ac_res=-l$ac_lib
8282     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8283   fi
8284   rm -f conftest.$ac_objext conftest$ac_exeext
8285 if { (ac_try="$ac_link"
8286 case "(($ac_try" in
8287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8288   *) ac_try_echo=$ac_try;;
8289 esac
8290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8291   (eval "$ac_link") 2>conftest.er1
8292   ac_status=$?
8293   grep -v '^ *+' conftest.er1 >conftest.err
8294   rm -f conftest.er1
8295   cat conftest.err >&5
8296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297   (exit $ac_status); } &&
8298          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8299   { (case "(($ac_try" in
8300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301   *) ac_try_echo=$ac_try;;
8302 esac
8303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8304   (eval "$ac_try") 2>&5
8305   ac_status=$?
8306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307   (exit $ac_status); }; } &&
8308          { ac_try='test -s conftest$ac_exeext'
8309   { (case "(($ac_try" in
8310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8311   *) ac_try_echo=$ac_try;;
8312 esac
8313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8314   (eval "$ac_try") 2>&5
8315   ac_status=$?
8316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317   (exit $ac_status); }; }; then
8318   ac_cv_search_opendir=$ac_res
8319 else
8320   echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8322
8323
8324 fi
8325
8326 rm -f core conftest.err conftest.$ac_objext \
8327       conftest$ac_exeext
8328   if test "${ac_cv_search_opendir+set}" = set; then
8329   break
8330 fi
8331 done
8332 if test "${ac_cv_search_opendir+set}" = set; then
8333   :
8334 else
8335   ac_cv_search_opendir=no
8336 fi
8337 rm conftest.$ac_ext
8338 LIBS=$ac_func_search_save_LIBS
8339 fi
8340 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8341 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8342 ac_res=$ac_cv_search_opendir
8343 if test "$ac_res" != no; then
8344   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8345
8346 fi
8347
8348 else
8349   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8350 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8351 if test "${ac_cv_search_opendir+set}" = set; then
8352   echo $ECHO_N "(cached) $ECHO_C" >&6
8353 else
8354   ac_func_search_save_LIBS=$LIBS
8355 cat >conftest.$ac_ext <<_ACEOF
8356 /* confdefs.h.  */
8357 _ACEOF
8358 cat confdefs.h >>conftest.$ac_ext
8359 cat >>conftest.$ac_ext <<_ACEOF
8360 /* end confdefs.h.  */
8361
8362 /* Override any GCC internal prototype to avoid an error.
8363    Use char because int might match the return type of a GCC
8364    builtin and then its argument prototype would still apply.  */
8365 #ifdef __cplusplus
8366 extern "C"
8367 #endif
8368 char opendir ();
8369 int
8370 main ()
8371 {
8372 return opendir ();
8373   ;
8374   return 0;
8375 }
8376 _ACEOF
8377 for ac_lib in '' x; do
8378   if test -z "$ac_lib"; then
8379     ac_res="none required"
8380   else
8381     ac_res=-l$ac_lib
8382     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8383   fi
8384   rm -f conftest.$ac_objext conftest$ac_exeext
8385 if { (ac_try="$ac_link"
8386 case "(($ac_try" in
8387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8388   *) ac_try_echo=$ac_try;;
8389 esac
8390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8391   (eval "$ac_link") 2>conftest.er1
8392   ac_status=$?
8393   grep -v '^ *+' conftest.er1 >conftest.err
8394   rm -f conftest.er1
8395   cat conftest.err >&5
8396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397   (exit $ac_status); } &&
8398          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8399   { (case "(($ac_try" in
8400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8401   *) ac_try_echo=$ac_try;;
8402 esac
8403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8404   (eval "$ac_try") 2>&5
8405   ac_status=$?
8406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407   (exit $ac_status); }; } &&
8408          { ac_try='test -s conftest$ac_exeext'
8409   { (case "(($ac_try" in
8410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8411   *) ac_try_echo=$ac_try;;
8412 esac
8413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8414   (eval "$ac_try") 2>&5
8415   ac_status=$?
8416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417   (exit $ac_status); }; }; then
8418   ac_cv_search_opendir=$ac_res
8419 else
8420   echo "$as_me: failed program was:" >&5
8421 sed 's/^/| /' conftest.$ac_ext >&5
8422
8423
8424 fi
8425
8426 rm -f core conftest.err conftest.$ac_objext \
8427       conftest$ac_exeext
8428   if test "${ac_cv_search_opendir+set}" = set; then
8429   break
8430 fi
8431 done
8432 if test "${ac_cv_search_opendir+set}" = set; then
8433   :
8434 else
8435   ac_cv_search_opendir=no
8436 fi
8437 rm conftest.$ac_ext
8438 LIBS=$ac_func_search_save_LIBS
8439 fi
8440 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8441 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8442 ac_res=$ac_cv_search_opendir
8443 if test "$ac_res" != no; then
8444   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8445
8446 fi
8447
8448 fi
8449
8450
8451 for ac_header in dlfcn.h
8452 do
8453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8455   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8458   echo $ECHO_N "(cached) $ECHO_C" >&6
8459 fi
8460 ac_res=`eval echo '${'$as_ac_Header'}'`
8461                { echo "$as_me:$LINENO: result: $ac_res" >&5
8462 echo "${ECHO_T}$ac_res" >&6; }
8463 else
8464   # Is the header compilable?
8465 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8467 cat >conftest.$ac_ext <<_ACEOF
8468 /* confdefs.h.  */
8469 _ACEOF
8470 cat confdefs.h >>conftest.$ac_ext
8471 cat >>conftest.$ac_ext <<_ACEOF
8472 /* end confdefs.h.  */
8473 $ac_includes_default
8474 #include <$ac_header>
8475 _ACEOF
8476 rm -f conftest.$ac_objext
8477 if { (ac_try="$ac_compile"
8478 case "(($ac_try" in
8479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8480   *) ac_try_echo=$ac_try;;
8481 esac
8482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8483   (eval "$ac_compile") 2>conftest.er1
8484   ac_status=$?
8485   grep -v '^ *+' conftest.er1 >conftest.err
8486   rm -f conftest.er1
8487   cat conftest.err >&5
8488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489   (exit $ac_status); } &&
8490          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8491   { (case "(($ac_try" in
8492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8493   *) ac_try_echo=$ac_try;;
8494 esac
8495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8496   (eval "$ac_try") 2>&5
8497   ac_status=$?
8498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499   (exit $ac_status); }; } &&
8500          { ac_try='test -s conftest.$ac_objext'
8501   { (case "(($ac_try" in
8502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8503   *) ac_try_echo=$ac_try;;
8504 esac
8505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8506   (eval "$ac_try") 2>&5
8507   ac_status=$?
8508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509   (exit $ac_status); }; }; then
8510   ac_header_compiler=yes
8511 else
8512   echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8514
8515         ac_header_compiler=no
8516 fi
8517
8518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8519 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8520 echo "${ECHO_T}$ac_header_compiler" >&6; }
8521
8522 # Is the header present?
8523 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8525 cat >conftest.$ac_ext <<_ACEOF
8526 /* confdefs.h.  */
8527 _ACEOF
8528 cat confdefs.h >>conftest.$ac_ext
8529 cat >>conftest.$ac_ext <<_ACEOF
8530 /* end confdefs.h.  */
8531 #include <$ac_header>
8532 _ACEOF
8533 if { (ac_try="$ac_cpp conftest.$ac_ext"
8534 case "(($ac_try" in
8535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8536   *) ac_try_echo=$ac_try;;
8537 esac
8538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8539   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8540   ac_status=$?
8541   grep -v '^ *+' conftest.er1 >conftest.err
8542   rm -f conftest.er1
8543   cat conftest.err >&5
8544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545   (exit $ac_status); } >/dev/null; then
8546   if test -s conftest.err; then
8547     ac_cpp_err=$ac_c_preproc_warn_flag
8548     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8549   else
8550     ac_cpp_err=
8551   fi
8552 else
8553   ac_cpp_err=yes
8554 fi
8555 if test -z "$ac_cpp_err"; then
8556   ac_header_preproc=yes
8557 else
8558   echo "$as_me: failed program was:" >&5
8559 sed 's/^/| /' conftest.$ac_ext >&5
8560
8561   ac_header_preproc=no
8562 fi
8563
8564 rm -f conftest.err conftest.$ac_ext
8565 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8566 echo "${ECHO_T}$ac_header_preproc" >&6; }
8567
8568 # So?  What about this header?
8569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8570   yes:no: )
8571     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8572 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8573     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8574 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8575     ac_header_preproc=yes
8576     ;;
8577   no:yes:* )
8578     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8580     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8581 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8582     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8583 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8584     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8585 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8586     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8588     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8589 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8590     ( cat <<\_ASBOX
8591 ## ------------------------------ ##
8592 ## Report this to bugs@yourdomain ##
8593 ## ------------------------------ ##
8594 _ASBOX
8595      ) | sed "s/^/$as_me: WARNING:     /" >&2
8596     ;;
8597 esac
8598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8601   echo $ECHO_N "(cached) $ECHO_C" >&6
8602 else
8603   eval "$as_ac_Header=\$ac_header_preproc"
8604 fi
8605 ac_res=`eval echo '${'$as_ac_Header'}'`
8606                { echo "$as_me:$LINENO: result: $ac_res" >&5
8607 echo "${ECHO_T}$ac_res" >&6; }
8608
8609 fi
8610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8611   cat >>confdefs.h <<_ACEOF
8612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8613 _ACEOF
8614
8615 fi
8616
8617 done
8618
8619 # Check whether --enable-ltdl-install was given.
8620 if test "${enable_ltdl_install+set}" = set; then
8621   enableval=$enable_ltdl_install;
8622 fi
8623
8624
8625
8626
8627 if test x"${enable_ltdl_install-no}" != xno; then
8628   INSTALL_LTDL_TRUE=
8629   INSTALL_LTDL_FALSE='#'
8630 else
8631   INSTALL_LTDL_TRUE='#'
8632   INSTALL_LTDL_FALSE=
8633 fi
8634
8635
8636
8637 if test x"${enable_ltdl_convenience-no}" != xno; then
8638   CONVENIENCE_LTDL_TRUE=
8639   CONVENIENCE_LTDL_FALSE='#'
8640 else
8641   CONVENIENCE_LTDL_TRUE='#'
8642   CONVENIENCE_LTDL_FALSE=
8643 fi
8644
8645
8646 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8647 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8648 library_names_spec=
8649 libname_spec='lib$name'
8650 soname_spec=
8651 shrext_cmds=".so"
8652 postinstall_cmds=
8653 postuninstall_cmds=
8654 finish_cmds=
8655 finish_eval=
8656 shlibpath_var=
8657 shlibpath_overrides_runpath=unknown
8658 version_type=none
8659 dynamic_linker="$host_os ld.so"
8660 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8661 if test "$GCC" = yes; then
8662   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8663   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8664     # if the path contains ";" then we assume it to be the separator
8665     # otherwise default to the standard path separator (i.e. ":") - it is
8666     # assumed that no part of a normal pathname contains ";" but that should
8667     # okay in the real world where ";" in dirpaths is itself problematic.
8668     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8669   else
8670     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8671   fi
8672 else
8673   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8674 fi
8675 need_lib_prefix=unknown
8676 hardcode_into_libs=no
8677
8678 # when you set need_version to no, make sure it does not cause -set_version
8679 # flags to be left without arguments
8680 need_version=unknown
8681
8682 case $host_os in
8683 aix3*)
8684   version_type=linux
8685   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8686   shlibpath_var=LIBPATH
8687
8688   # AIX 3 has no versioning support, so we append a major version to the name.
8689   soname_spec='${libname}${release}${shared_ext}$major'
8690   ;;
8691
8692 aix4* | aix5*)
8693   version_type=linux
8694   need_lib_prefix=no
8695   need_version=no
8696   hardcode_into_libs=yes
8697   if test "$host_cpu" = ia64; then
8698     # AIX 5 supports IA64
8699     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8700     shlibpath_var=LD_LIBRARY_PATH
8701   else
8702     # With GCC up to 2.95.x, collect2 would create an import file
8703     # for dependence libraries.  The import file would start with
8704     # the line `#! .'.  This would cause the generated library to
8705     # depend on `.', always an invalid library.  This was fixed in
8706     # development snapshots of GCC prior to 3.0.
8707     case $host_os in
8708       aix4 | aix4.[01] | aix4.[01].*)
8709       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8710            echo ' yes '
8711            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8712         :
8713       else
8714         can_build_shared=no
8715       fi
8716       ;;
8717     esac
8718     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8719     # soname into executable. Probably we can add versioning support to
8720     # collect2, so additional links can be useful in future.
8721     if test "$aix_use_runtimelinking" = yes; then
8722       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8723       # instead of lib<name>.a to let people know that these are not
8724       # typical AIX shared libraries.
8725       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8726     else
8727       # We preserve .a as extension for shared libraries through AIX4.2
8728       # and later when we are not doing run time linking.
8729       library_names_spec='${libname}${release}.a $libname.a'
8730       soname_spec='${libname}${release}${shared_ext}$major'
8731     fi
8732     shlibpath_var=LIBPATH
8733   fi
8734   ;;
8735
8736 amigaos*)
8737   library_names_spec='$libname.ixlibrary $libname.a'
8738   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8739   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'
8740   ;;
8741
8742 beos*)
8743   library_names_spec='${libname}${shared_ext}'
8744   dynamic_linker="$host_os ld.so"
8745   shlibpath_var=LIBRARY_PATH
8746   ;;
8747
8748 bsdi[45]*)
8749   version_type=linux
8750   need_version=no
8751   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8752   soname_spec='${libname}${release}${shared_ext}$major'
8753   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8754   shlibpath_var=LD_LIBRARY_PATH
8755   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8756   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8757   # the default ld.so.conf also contains /usr/contrib/lib and
8758   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8759   # libtool to hard-code these into programs
8760   ;;
8761
8762 cygwin* | mingw* | pw32*)
8763   version_type=windows
8764   shrext_cmds=".dll"
8765   need_version=no
8766   need_lib_prefix=no
8767
8768   case $GCC,$host_os in
8769   yes,cygwin* | yes,mingw* | yes,pw32*)
8770     library_names_spec='$libname.dll.a'
8771     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8772     postinstall_cmds='base_file=`basename \${file}`~
8773       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8774       dldir=$destdir/`dirname \$dlpath`~
8775       test -d \$dldir || mkdir -p \$dldir~
8776       $install_prog $dir/$dlname \$dldir/$dlname~
8777       chmod a+x \$dldir/$dlname'
8778     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8779       dlpath=$dir/\$dldll~
8780        $rm \$dlpath'
8781     shlibpath_overrides_runpath=yes
8782
8783     case $host_os in
8784     cygwin*)
8785       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8786       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8787       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8788       ;;
8789     mingw*)
8790       # MinGW DLLs use traditional 'lib' prefix
8791       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8792       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8793       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8794         # It is most probably a Windows format PATH printed by
8795         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8796         # path with ; separators, and with drive letters. We can handle the
8797         # drive letters (cygwin fileutils understands them), so leave them,
8798         # especially as we might pass files found there to a mingw objdump,
8799         # which wouldn't understand a cygwinified path. Ahh.
8800         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8801       else
8802         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8803       fi
8804       ;;
8805     pw32*)
8806       # pw32 DLLs use 'pw' prefix rather than 'lib'
8807       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8808       ;;
8809     esac
8810     ;;
8811
8812   *)
8813     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8814     ;;
8815   esac
8816   dynamic_linker='Win32 ld.exe'
8817   # FIXME: first we should search . and the directory the executable is in
8818   shlibpath_var=PATH
8819   ;;
8820
8821 darwin* | rhapsody*)
8822   dynamic_linker="$host_os dyld"
8823   version_type=darwin
8824   need_lib_prefix=no
8825   need_version=no
8826   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8827   soname_spec='${libname}${release}${major}$shared_ext'
8828   shlibpath_overrides_runpath=yes
8829   shlibpath_var=DYLD_LIBRARY_PATH
8830   shrext_cmds='.dylib'
8831   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8832   if test "$GCC" = yes; then
8833     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"`
8834   else
8835     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8836   fi
8837   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8838   ;;
8839
8840 dgux*)
8841   version_type=linux
8842   need_lib_prefix=no
8843   need_version=no
8844   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8845   soname_spec='${libname}${release}${shared_ext}$major'
8846   shlibpath_var=LD_LIBRARY_PATH
8847   ;;
8848
8849 freebsd1.*)
8850   dynamic_linker=no
8851   ;;
8852
8853 kfreebsd*-gnu)
8854   version_type=linux
8855   need_lib_prefix=no
8856   need_version=no
8857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8858   soname_spec='${libname}${release}${shared_ext}$major'
8859   shlibpath_var=LD_LIBRARY_PATH
8860   shlibpath_overrides_runpath=no
8861   hardcode_into_libs=yes
8862   dynamic_linker='GNU ld.so'
8863   ;;
8864
8865 freebsd* | dragonfly*)
8866   # DragonFly does not have aout.  When/if they implement a new
8867   # versioning mechanism, adjust this.
8868   if test -x /usr/bin/objformat; then
8869     objformat=`/usr/bin/objformat`
8870   else
8871     case $host_os in
8872     freebsd[123].*) objformat=aout ;;
8873     *) objformat=elf ;;
8874     esac
8875   fi
8876   version_type=freebsd-$objformat
8877   case $version_type in
8878     freebsd-elf*)
8879       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8880       need_version=no
8881       need_lib_prefix=no
8882       ;;
8883     freebsd-*)
8884       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8885       need_version=yes
8886       ;;
8887   esac
8888   shlibpath_var=LD_LIBRARY_PATH
8889   case $host_os in
8890   freebsd2.*)
8891     shlibpath_overrides_runpath=yes
8892     ;;
8893   freebsd3.[01]* | freebsdelf3.[01]*)
8894     shlibpath_overrides_runpath=yes
8895     hardcode_into_libs=yes
8896     ;;
8897   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8898   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8899     shlibpath_overrides_runpath=no
8900     hardcode_into_libs=yes
8901     ;;
8902   freebsd*) # from 4.6 on
8903     shlibpath_overrides_runpath=yes
8904     hardcode_into_libs=yes
8905     ;;
8906   esac
8907   ;;
8908
8909 gnu*)
8910   version_type=linux
8911   need_lib_prefix=no
8912   need_version=no
8913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8914   soname_spec='${libname}${release}${shared_ext}$major'
8915   shlibpath_var=LD_LIBRARY_PATH
8916   hardcode_into_libs=yes
8917   ;;
8918
8919 hpux9* | hpux10* | hpux11*)
8920   # Give a soname corresponding to the major version so that dld.sl refuses to
8921   # link against other versions.
8922   version_type=sunos
8923   need_lib_prefix=no
8924   need_version=no
8925   case $host_cpu in
8926   ia64*)
8927     shrext_cmds='.so'
8928     hardcode_into_libs=yes
8929     dynamic_linker="$host_os dld.so"
8930     shlibpath_var=LD_LIBRARY_PATH
8931     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8932     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8933     soname_spec='${libname}${release}${shared_ext}$major'
8934     if test "X$HPUX_IA64_MODE" = X32; then
8935       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8936     else
8937       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8938     fi
8939     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8940     ;;
8941    hppa*64*)
8942      shrext_cmds='.sl'
8943      hardcode_into_libs=yes
8944      dynamic_linker="$host_os dld.sl"
8945      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8946      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8947      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8948      soname_spec='${libname}${release}${shared_ext}$major'
8949      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8950      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8951      ;;
8952    *)
8953     shrext_cmds='.sl'
8954     dynamic_linker="$host_os dld.sl"
8955     shlibpath_var=SHLIB_PATH
8956     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8957     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8958     soname_spec='${libname}${release}${shared_ext}$major'
8959     ;;
8960   esac
8961   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8962   postinstall_cmds='chmod 555 $lib'
8963   ;;
8964
8965 interix3*)
8966   version_type=linux
8967   need_lib_prefix=no
8968   need_version=no
8969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8970   soname_spec='${libname}${release}${shared_ext}$major'
8971   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8972   shlibpath_var=LD_LIBRARY_PATH
8973   shlibpath_overrides_runpath=no
8974   hardcode_into_libs=yes
8975   ;;
8976
8977 irix5* | irix6* | nonstopux*)
8978   case $host_os in
8979     nonstopux*) version_type=nonstopux ;;
8980     *)
8981         if test "$lt_cv_prog_gnu_ld" = yes; then
8982                 version_type=linux
8983         else
8984                 version_type=irix
8985         fi ;;
8986   esac
8987   need_lib_prefix=no
8988   need_version=no
8989   soname_spec='${libname}${release}${shared_ext}$major'
8990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8991   case $host_os in
8992   irix5* | nonstopux*)
8993     libsuff= shlibsuff=
8994     ;;
8995   *)
8996     case $LD in # libtool.m4 will add one of these switches to LD
8997     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8998       libsuff= shlibsuff= libmagic=32-bit;;
8999     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9000       libsuff=32 shlibsuff=N32 libmagic=N32;;
9001     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9002       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9003     *) libsuff= shlibsuff= libmagic=never-match;;
9004     esac
9005     ;;
9006   esac
9007   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9008   shlibpath_overrides_runpath=no
9009   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9010   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9011   hardcode_into_libs=yes
9012   ;;
9013
9014 # No shared lib support for Linux oldld, aout, or coff.
9015 linux*oldld* | linux*aout* | linux*coff*)
9016   dynamic_linker=no
9017   ;;
9018
9019 # This must be Linux ELF.
9020 linux*)
9021   version_type=linux
9022   need_lib_prefix=no
9023   need_version=no
9024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9025   soname_spec='${libname}${release}${shared_ext}$major'
9026   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9027   shlibpath_var=LD_LIBRARY_PATH
9028   shlibpath_overrides_runpath=no
9029   # This implies no fast_install, which is unacceptable.
9030   # Some rework will be needed to allow for fast_install
9031   # before this can be enabled.
9032   hardcode_into_libs=yes
9033
9034   # Append ld.so.conf contents to the search path
9035   if test -f /etc/ld.so.conf; then
9036     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' ' '`
9037     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9038   fi
9039
9040   # We used to test for /lib/ld.so.1 and disable shared libraries on
9041   # powerpc, because MkLinux only supported shared libraries with the
9042   # GNU dynamic linker.  Since this was broken with cross compilers,
9043   # most powerpc-linux boxes support dynamic linking these days and
9044   # people can always --disable-shared, the test was removed, and we
9045   # assume the GNU/Linux dynamic linker is in use.
9046   dynamic_linker='GNU/Linux ld.so'
9047   ;;
9048
9049 knetbsd*-gnu)
9050   version_type=linux
9051   need_lib_prefix=no
9052   need_version=no
9053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9054   soname_spec='${libname}${release}${shared_ext}$major'
9055   shlibpath_var=LD_LIBRARY_PATH
9056   shlibpath_overrides_runpath=no
9057   hardcode_into_libs=yes
9058   dynamic_linker='GNU ld.so'
9059   ;;
9060
9061 netbsd*)
9062   version_type=sunos
9063   need_lib_prefix=no
9064   need_version=no
9065   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9066     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9067     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9068     dynamic_linker='NetBSD (a.out) ld.so'
9069   else
9070     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9071     soname_spec='${libname}${release}${shared_ext}$major'
9072     dynamic_linker='NetBSD ld.elf_so'
9073   fi
9074   shlibpath_var=LD_LIBRARY_PATH
9075   shlibpath_overrides_runpath=yes
9076   hardcode_into_libs=yes
9077   ;;
9078
9079 newsos6)
9080   version_type=linux
9081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9082   shlibpath_var=LD_LIBRARY_PATH
9083   shlibpath_overrides_runpath=yes
9084   ;;
9085
9086 nto-qnx*)
9087   version_type=linux
9088   need_lib_prefix=no
9089   need_version=no
9090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9091   soname_spec='${libname}${release}${shared_ext}$major'
9092   shlibpath_var=LD_LIBRARY_PATH
9093   shlibpath_overrides_runpath=yes
9094   ;;
9095
9096 openbsd*)
9097   version_type=sunos
9098   sys_lib_dlsearch_path_spec="/usr/lib"
9099   need_lib_prefix=no
9100   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9101   case $host_os in
9102     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9103     *)                         need_version=no  ;;
9104   esac
9105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9106   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9107   shlibpath_var=LD_LIBRARY_PATH
9108   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9109     case $host_os in
9110       openbsd2.[89] | openbsd2.[89].*)
9111         shlibpath_overrides_runpath=no
9112         ;;
9113       *)
9114         shlibpath_overrides_runpath=yes
9115         ;;
9116       esac
9117   else
9118     shlibpath_overrides_runpath=yes
9119   fi
9120   ;;
9121
9122 os2*)
9123   libname_spec='$name'
9124   shrext_cmds=".dll"
9125   need_lib_prefix=no
9126   library_names_spec='$libname${shared_ext} $libname.a'
9127   dynamic_linker='OS/2 ld.exe'
9128   shlibpath_var=LIBPATH
9129   ;;
9130
9131 osf3* | osf4* | osf5*)
9132   version_type=osf
9133   need_lib_prefix=no
9134   need_version=no
9135   soname_spec='${libname}${release}${shared_ext}$major'
9136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9137   shlibpath_var=LD_LIBRARY_PATH
9138   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9139   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9140   ;;
9141
9142 solaris*)
9143   version_type=linux
9144   need_lib_prefix=no
9145   need_version=no
9146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9147   soname_spec='${libname}${release}${shared_ext}$major'
9148   shlibpath_var=LD_LIBRARY_PATH
9149   shlibpath_overrides_runpath=yes
9150   hardcode_into_libs=yes
9151   # ldd complains unless libraries are executable
9152   postinstall_cmds='chmod +x $lib'
9153   ;;
9154
9155 sunos4*)
9156   version_type=sunos
9157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9158   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9159   shlibpath_var=LD_LIBRARY_PATH
9160   shlibpath_overrides_runpath=yes
9161   if test "$with_gnu_ld" = yes; then
9162     need_lib_prefix=no
9163   fi
9164   need_version=yes
9165   ;;
9166
9167 sysv4 | sysv4.3*)
9168   version_type=linux
9169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9170   soname_spec='${libname}${release}${shared_ext}$major'
9171   shlibpath_var=LD_LIBRARY_PATH
9172   case $host_vendor in
9173     sni)
9174       shlibpath_overrides_runpath=no
9175       need_lib_prefix=no
9176       export_dynamic_flag_spec='${wl}-Blargedynsym'
9177       runpath_var=LD_RUN_PATH
9178       ;;
9179     siemens)
9180       need_lib_prefix=no
9181       ;;
9182     motorola)
9183       need_lib_prefix=no
9184       need_version=no
9185       shlibpath_overrides_runpath=no
9186       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9187       ;;
9188   esac
9189   ;;
9190
9191 sysv4*MP*)
9192   if test -d /usr/nec ;then
9193     version_type=linux
9194     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9195     soname_spec='$libname${shared_ext}.$major'
9196     shlibpath_var=LD_LIBRARY_PATH
9197   fi
9198   ;;
9199
9200 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9201   version_type=freebsd-elf
9202   need_lib_prefix=no
9203   need_version=no
9204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9205   soname_spec='${libname}${release}${shared_ext}$major'
9206   shlibpath_var=LD_LIBRARY_PATH
9207   hardcode_into_libs=yes
9208   if test "$with_gnu_ld" = yes; then
9209     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9210     shlibpath_overrides_runpath=no
9211   else
9212     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9213     shlibpath_overrides_runpath=yes
9214     case $host_os in
9215       sco3.2v5*)
9216         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9217         ;;
9218     esac
9219   fi
9220   sys_lib_dlsearch_path_spec='/usr/lib'
9221   ;;
9222
9223 uts4*)
9224   version_type=linux
9225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9226   soname_spec='${libname}${release}${shared_ext}$major'
9227   shlibpath_var=LD_LIBRARY_PATH
9228   ;;
9229
9230 *)
9231   dynamic_linker=no
9232   ;;
9233 esac
9234 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9235 echo "${ECHO_T}$dynamic_linker" >&6; }
9236 test "$dynamic_linker" = no && can_build_shared=no
9237
9238 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9239 if test "$GCC" = yes; then
9240   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9241 fi
9242
9243
9244 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9245 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9246 if test "${libltdl_cv_shlibext+set}" = set; then
9247   echo $ECHO_N "(cached) $ECHO_C" >&6
9248 else
9249
9250 module=yes
9251 eval libltdl_cv_shlibext=$shrext_cmds
9252
9253 fi
9254 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9255 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9256 if test -n "$libltdl_cv_shlibext"; then
9257
9258 cat >>confdefs.h <<_ACEOF
9259 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9260 _ACEOF
9261
9262 fi
9263
9264
9265 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9266 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9267 if test "${libltdl_cv_sys_search_path+set}" = set; then
9268   echo $ECHO_N "(cached) $ECHO_C" >&6
9269 else
9270   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9271 fi
9272 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9273 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9274 if test -n "$libltdl_cv_sys_search_path"; then
9275   sys_search_path=
9276   for dir in $libltdl_cv_sys_search_path; do
9277     if test -z "$sys_search_path"; then
9278       sys_search_path="$dir"
9279     else
9280       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9281     fi
9282   done
9283
9284 cat >>confdefs.h <<_ACEOF
9285 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9286 _ACEOF
9287
9288 fi
9289
9290 { echo "$as_me:$LINENO: checking for objdir" >&5
9291 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9292 if test "${libltdl_cv_objdir+set}" = set; then
9293   echo $ECHO_N "(cached) $ECHO_C" >&6
9294 else
9295   libltdl_cv_objdir="$objdir"
9296   if test -n "$objdir"; then
9297     :
9298   else
9299     rm -f .libs 2>/dev/null
9300     mkdir .libs 2>/dev/null
9301     if test -d .libs; then
9302       libltdl_cv_objdir=.libs
9303     else
9304       # MS-DOS does not allow filenames that begin with a dot.
9305       libltdl_cv_objdir=_libs
9306     fi
9307   rmdir .libs 2>/dev/null
9308   fi
9309
9310 fi
9311 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9312 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9313
9314 cat >>confdefs.h <<_ACEOF
9315 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9316 _ACEOF
9317
9318
9319
9320
9321
9322
9323 # Check for command to grab the raw symbol name followed by C symbol from nm.
9324 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9325 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9326 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9327   echo $ECHO_N "(cached) $ECHO_C" >&6
9328 else
9329
9330 # These are sane defaults that work on at least a few old systems.
9331 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9332
9333 # Character class describing NM global symbol codes.
9334 symcode='[BCDEGRST]'
9335
9336 # Regexp to match symbols that can be accessed directly from C.
9337 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9338
9339 # Transform an extracted symbol line into a proper C declaration
9340 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9341
9342 # Transform an extracted symbol line into symbol name and symbol address
9343 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'"
9344
9345 # Define system-specific variables.
9346 case $host_os in
9347 aix*)
9348   symcode='[BCDT]'
9349   ;;
9350 cygwin* | mingw* | pw32*)
9351   symcode='[ABCDGISTW]'
9352   ;;
9353 hpux*) # Its linker distinguishes data from code symbols
9354   if test "$host_cpu" = ia64; then
9355     symcode='[ABCDEGRST]'
9356   fi
9357   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9358   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'"
9359   ;;
9360 linux*)
9361   if test "$host_cpu" = ia64; then
9362     symcode='[ABCDGIRSTW]'
9363     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9364     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'"
9365   fi
9366   ;;
9367 irix* | nonstopux*)
9368   symcode='[BCDEGRST]'
9369   ;;
9370 osf*)
9371   symcode='[BCDEGQRST]'
9372   ;;
9373 solaris*)
9374   symcode='[BDRT]'
9375   ;;
9376 sco3.2v5*)
9377   symcode='[DT]'
9378   ;;
9379 sysv4.2uw2*)
9380   symcode='[DT]'
9381   ;;
9382 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9383   symcode='[ABDT]'
9384   ;;
9385 sysv4)
9386   symcode='[DFNSTU]'
9387   ;;
9388 esac
9389
9390 # Handle CRLF in mingw tool chain
9391 opt_cr=
9392 case $build_os in
9393 mingw*)
9394   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9395   ;;
9396 esac
9397
9398 # If we're using GNU nm, then use its standard symbol codes.
9399 case `$NM -V 2>&1` in
9400 *GNU* | *'with BFD'*)
9401   symcode='[ABCDGIRSTW]' ;;
9402 esac
9403
9404 # Try without a prefix undercore, then with it.
9405 for ac_symprfx in "" "_"; do
9406
9407   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9408   symxfrm="\\1 $ac_symprfx\\2 \\2"
9409
9410   # Write the raw and C identifiers.
9411   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9412
9413   # Check to see that the pipe works correctly.
9414   pipe_works=no
9415
9416   rm -f conftest*
9417   cat > conftest.$ac_ext <<EOF
9418 #ifdef __cplusplus
9419 extern "C" {
9420 #endif
9421 char nm_test_var;
9422 void nm_test_func(){}
9423 #ifdef __cplusplus
9424 }
9425 #endif
9426 int main(){nm_test_var='a';nm_test_func();return(0);}
9427 EOF
9428
9429   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9430   (eval $ac_compile) 2>&5
9431   ac_status=$?
9432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433   (exit $ac_status); }; then
9434     # Now try to grab the symbols.
9435     nlist=conftest.nm
9436     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9437   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9438   ac_status=$?
9439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440   (exit $ac_status); } && test -s "$nlist"; then
9441       # Try sorting and uniquifying the output.
9442       if sort "$nlist" | uniq > "$nlist"T; then
9443         mv -f "$nlist"T "$nlist"
9444       else
9445         rm -f "$nlist"T
9446       fi
9447
9448       # Make sure that we snagged all the symbols we need.
9449       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9450         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9451           cat <<EOF > conftest.$ac_ext
9452 #ifdef __cplusplus
9453 extern "C" {
9454 #endif
9455
9456 EOF
9457           # Now generate the symbol file.
9458           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9459
9460           cat <<EOF >> conftest.$ac_ext
9461 #if defined (__STDC__) && __STDC__
9462 # define lt_ptr_t void *
9463 #else
9464 # define lt_ptr_t char *
9465 # define const
9466 #endif
9467
9468 /* The mapping between symbol names and symbols. */
9469 const struct {
9470   const char *name;
9471   lt_ptr_t address;
9472 }
9473 lt_preloaded_symbols[] =
9474 {
9475 EOF
9476           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9477           cat <<\EOF >> conftest.$ac_ext
9478   {0, (lt_ptr_t) 0}
9479 };
9480
9481 #ifdef __cplusplus
9482 }
9483 #endif
9484 EOF
9485           # Now try linking the two files.
9486           mv conftest.$ac_objext conftstm.$ac_objext
9487           lt_save_LIBS="$LIBS"
9488           lt_save_CFLAGS="$CFLAGS"
9489           LIBS="conftstm.$ac_objext"
9490           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9491           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9492   (eval $ac_link) 2>&5
9493   ac_status=$?
9494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9496             pipe_works=yes
9497           fi
9498           LIBS="$lt_save_LIBS"
9499           CFLAGS="$lt_save_CFLAGS"
9500         else
9501           echo "cannot find nm_test_func in $nlist" >&5
9502         fi
9503       else
9504         echo "cannot find nm_test_var in $nlist" >&5
9505       fi
9506     else
9507       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9508     fi
9509   else
9510     echo "$progname: failed program was:" >&5
9511     cat conftest.$ac_ext >&5
9512   fi
9513   rm -f conftest* conftst*
9514
9515   # Do not use the global_symbol_pipe unless it works.
9516   if test "$pipe_works" = yes; then
9517     break
9518   else
9519     lt_cv_sys_global_symbol_pipe=
9520   fi
9521 done
9522
9523 fi
9524
9525 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9526   lt_cv_sys_global_symbol_to_cdecl=
9527 fi
9528 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9529   { echo "$as_me:$LINENO: result: failed" >&5
9530 echo "${ECHO_T}failed" >&6; }
9531 else
9532   { echo "$as_me:$LINENO: result: ok" >&5
9533 echo "${ECHO_T}ok" >&6; }
9534 fi
9535
9536
9537 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9538 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9539 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9540   echo $ECHO_N "(cached) $ECHO_C" >&6
9541 else
9542   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9543     libltdl_cv_preloaded_symbols=yes
9544   else
9545     libltdl_cv_preloaded_symbols=no
9546   fi
9547
9548 fi
9549 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9550 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9551 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9552
9553 cat >>confdefs.h <<\_ACEOF
9554 #define HAVE_PRELOADED_SYMBOLS 1
9555 _ACEOF
9556
9557 fi
9558
9559 LIBADD_DL=
9560
9561 ac_ext=c
9562 ac_cpp='$CPP $CPPFLAGS'
9563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9566
9567
9568 { echo "$as_me:$LINENO: checking for shl_load" >&5
9569 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9570 if test "${ac_cv_func_shl_load+set}" = set; then
9571   echo $ECHO_N "(cached) $ECHO_C" >&6
9572 else
9573   cat >conftest.$ac_ext <<_ACEOF
9574 /* confdefs.h.  */
9575 _ACEOF
9576 cat confdefs.h >>conftest.$ac_ext
9577 cat >>conftest.$ac_ext <<_ACEOF
9578 /* end confdefs.h.  */
9579 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9580    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9581 #define shl_load innocuous_shl_load
9582
9583 /* System header to define __stub macros and hopefully few prototypes,
9584     which can conflict with char shl_load (); below.
9585     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9586     <limits.h> exists even on freestanding compilers.  */
9587
9588 #ifdef __STDC__
9589 # include <limits.h>
9590 #else
9591 # include <assert.h>
9592 #endif
9593
9594 #undef shl_load
9595
9596 /* Override any GCC internal prototype to avoid an error.
9597    Use char because int might match the return type of a GCC
9598    builtin and then its argument prototype would still apply.  */
9599 #ifdef __cplusplus
9600 extern "C"
9601 #endif
9602 char shl_load ();
9603 /* The GNU C library defines this for functions which it implements
9604     to always fail with ENOSYS.  Some functions are actually named
9605     something starting with __ and the normal name is an alias.  */
9606 #if defined __stub_shl_load || defined __stub___shl_load
9607 choke me
9608 #endif
9609
9610 int
9611 main ()
9612 {
9613 return shl_load ();
9614   ;
9615   return 0;
9616 }
9617 _ACEOF
9618 rm -f conftest.$ac_objext conftest$ac_exeext
9619 if { (ac_try="$ac_link"
9620 case "(($ac_try" in
9621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9622   *) ac_try_echo=$ac_try;;
9623 esac
9624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9625   (eval "$ac_link") 2>conftest.er1
9626   ac_status=$?
9627   grep -v '^ *+' conftest.er1 >conftest.err
9628   rm -f conftest.er1
9629   cat conftest.err >&5
9630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631   (exit $ac_status); } &&
9632          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9633   { (case "(($ac_try" in
9634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9635   *) ac_try_echo=$ac_try;;
9636 esac
9637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9638   (eval "$ac_try") 2>&5
9639   ac_status=$?
9640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641   (exit $ac_status); }; } &&
9642          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9652   ac_cv_func_shl_load=yes
9653 else
9654   echo "$as_me: failed program was:" >&5
9655 sed 's/^/| /' conftest.$ac_ext >&5
9656
9657         ac_cv_func_shl_load=no
9658 fi
9659
9660 rm -f core conftest.err conftest.$ac_objext \
9661       conftest$ac_exeext conftest.$ac_ext
9662 fi
9663 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9664 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9665 if test $ac_cv_func_shl_load = yes; then
9666
9667 cat >>confdefs.h <<\_ACEOF
9668 #define HAVE_SHL_LOAD 1
9669 _ACEOF
9670
9671 else
9672   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9673 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9674 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9675   echo $ECHO_N "(cached) $ECHO_C" >&6
9676 else
9677   ac_check_lib_save_LIBS=$LIBS
9678 LIBS="-ldld  $LIBS"
9679 cat >conftest.$ac_ext <<_ACEOF
9680 /* confdefs.h.  */
9681 _ACEOF
9682 cat confdefs.h >>conftest.$ac_ext
9683 cat >>conftest.$ac_ext <<_ACEOF
9684 /* end confdefs.h.  */
9685
9686 /* Override any GCC internal prototype to avoid an error.
9687    Use char because int might match the return type of a GCC
9688    builtin and then its argument prototype would still apply.  */
9689 #ifdef __cplusplus
9690 extern "C"
9691 #endif
9692 char shl_load ();
9693 int
9694 main ()
9695 {
9696 return shl_load ();
9697   ;
9698   return 0;
9699 }
9700 _ACEOF
9701 rm -f conftest.$ac_objext conftest$ac_exeext
9702 if { (ac_try="$ac_link"
9703 case "(($ac_try" in
9704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9705   *) ac_try_echo=$ac_try;;
9706 esac
9707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9708   (eval "$ac_link") 2>conftest.er1
9709   ac_status=$?
9710   grep -v '^ *+' conftest.er1 >conftest.err
9711   rm -f conftest.er1
9712   cat conftest.err >&5
9713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714   (exit $ac_status); } &&
9715          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9716   { (case "(($ac_try" in
9717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9718   *) ac_try_echo=$ac_try;;
9719 esac
9720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9721   (eval "$ac_try") 2>&5
9722   ac_status=$?
9723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724   (exit $ac_status); }; } &&
9725          { ac_try='test -s conftest$ac_exeext'
9726   { (case "(($ac_try" in
9727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728   *) ac_try_echo=$ac_try;;
9729 esac
9730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731   (eval "$ac_try") 2>&5
9732   ac_status=$?
9733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734   (exit $ac_status); }; }; then
9735   ac_cv_lib_dld_shl_load=yes
9736 else
9737   echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9739
9740         ac_cv_lib_dld_shl_load=no
9741 fi
9742
9743 rm -f core conftest.err conftest.$ac_objext \
9744       conftest$ac_exeext conftest.$ac_ext
9745 LIBS=$ac_check_lib_save_LIBS
9746 fi
9747 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9748 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9749 if test $ac_cv_lib_dld_shl_load = yes; then
9750
9751 cat >>confdefs.h <<\_ACEOF
9752 #define HAVE_SHL_LOAD 1
9753 _ACEOF
9754
9755         LIBADD_DL="$LIBADD_DL -ldld"
9756 else
9757   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9758 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9759 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9760   echo $ECHO_N "(cached) $ECHO_C" >&6
9761 else
9762   ac_check_lib_save_LIBS=$LIBS
9763 LIBS="-ldl  $LIBS"
9764 cat >conftest.$ac_ext <<_ACEOF
9765 /* confdefs.h.  */
9766 _ACEOF
9767 cat confdefs.h >>conftest.$ac_ext
9768 cat >>conftest.$ac_ext <<_ACEOF
9769 /* end confdefs.h.  */
9770
9771 /* Override any GCC internal prototype to avoid an error.
9772    Use char because int might match the return type of a GCC
9773    builtin and then its argument prototype would still apply.  */
9774 #ifdef __cplusplus
9775 extern "C"
9776 #endif
9777 char dlopen ();
9778 int
9779 main ()
9780 {
9781 return dlopen ();
9782   ;
9783   return 0;
9784 }
9785 _ACEOF
9786 rm -f conftest.$ac_objext conftest$ac_exeext
9787 if { (ac_try="$ac_link"
9788 case "(($ac_try" in
9789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790   *) ac_try_echo=$ac_try;;
9791 esac
9792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9793   (eval "$ac_link") 2>conftest.er1
9794   ac_status=$?
9795   grep -v '^ *+' conftest.er1 >conftest.err
9796   rm -f conftest.er1
9797   cat conftest.err >&5
9798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799   (exit $ac_status); } &&
9800          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9801   { (case "(($ac_try" in
9802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9803   *) ac_try_echo=$ac_try;;
9804 esac
9805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9806   (eval "$ac_try") 2>&5
9807   ac_status=$?
9808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809   (exit $ac_status); }; } &&
9810          { ac_try='test -s conftest$ac_exeext'
9811   { (case "(($ac_try" in
9812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813   *) ac_try_echo=$ac_try;;
9814 esac
9815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9816   (eval "$ac_try") 2>&5
9817   ac_status=$?
9818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819   (exit $ac_status); }; }; then
9820   ac_cv_lib_dl_dlopen=yes
9821 else
9822   echo "$as_me: failed program was:" >&5
9823 sed 's/^/| /' conftest.$ac_ext >&5
9824
9825         ac_cv_lib_dl_dlopen=no
9826 fi
9827
9828 rm -f core conftest.err conftest.$ac_objext \
9829       conftest$ac_exeext conftest.$ac_ext
9830 LIBS=$ac_check_lib_save_LIBS
9831 fi
9832 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9833 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9834 if test $ac_cv_lib_dl_dlopen = yes; then
9835
9836 cat >>confdefs.h <<\_ACEOF
9837 #define HAVE_LIBDL 1
9838 _ACEOF
9839
9840                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9841 else
9842   cat >conftest.$ac_ext <<_ACEOF
9843 /* confdefs.h.  */
9844 _ACEOF
9845 cat confdefs.h >>conftest.$ac_ext
9846 cat >>conftest.$ac_ext <<_ACEOF
9847 /* end confdefs.h.  */
9848 #if HAVE_DLFCN_H
9849 #  include <dlfcn.h>
9850 #endif
9851
9852 int
9853 main ()
9854 {
9855 dlopen(0, 0);
9856   ;
9857   return 0;
9858 }
9859 _ACEOF
9860 rm -f conftest.$ac_objext conftest$ac_exeext
9861 if { (ac_try="$ac_link"
9862 case "(($ac_try" in
9863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9864   *) ac_try_echo=$ac_try;;
9865 esac
9866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9867   (eval "$ac_link") 2>conftest.er1
9868   ac_status=$?
9869   grep -v '^ *+' conftest.er1 >conftest.err
9870   rm -f conftest.er1
9871   cat conftest.err >&5
9872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873   (exit $ac_status); } &&
9874          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9875   { (case "(($ac_try" in
9876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9877   *) ac_try_echo=$ac_try;;
9878 esac
9879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9880   (eval "$ac_try") 2>&5
9881   ac_status=$?
9882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883   (exit $ac_status); }; } &&
9884          { ac_try='test -s conftest$ac_exeext'
9885   { (case "(($ac_try" in
9886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9887   *) ac_try_echo=$ac_try;;
9888 esac
9889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9890   (eval "$ac_try") 2>&5
9891   ac_status=$?
9892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893   (exit $ac_status); }; }; then
9894
9895 cat >>confdefs.h <<\_ACEOF
9896 #define HAVE_LIBDL 1
9897 _ACEOF
9898  libltdl_cv_func_dlopen="yes"
9899 else
9900   echo "$as_me: failed program was:" >&5
9901 sed 's/^/| /' conftest.$ac_ext >&5
9902
9903         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9904 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9905 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9906   echo $ECHO_N "(cached) $ECHO_C" >&6
9907 else
9908   ac_check_lib_save_LIBS=$LIBS
9909 LIBS="-lsvld  $LIBS"
9910 cat >conftest.$ac_ext <<_ACEOF
9911 /* confdefs.h.  */
9912 _ACEOF
9913 cat confdefs.h >>conftest.$ac_ext
9914 cat >>conftest.$ac_ext <<_ACEOF
9915 /* end confdefs.h.  */
9916
9917 /* Override any GCC internal prototype to avoid an error.
9918    Use char because int might match the return type of a GCC
9919    builtin and then its argument prototype would still apply.  */
9920 #ifdef __cplusplus
9921 extern "C"
9922 #endif
9923 char dlopen ();
9924 int
9925 main ()
9926 {
9927 return dlopen ();
9928   ;
9929   return 0;
9930 }
9931 _ACEOF
9932 rm -f conftest.$ac_objext conftest$ac_exeext
9933 if { (ac_try="$ac_link"
9934 case "(($ac_try" in
9935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9936   *) ac_try_echo=$ac_try;;
9937 esac
9938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9939   (eval "$ac_link") 2>conftest.er1
9940   ac_status=$?
9941   grep -v '^ *+' conftest.er1 >conftest.err
9942   rm -f conftest.er1
9943   cat conftest.err >&5
9944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945   (exit $ac_status); } &&
9946          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9947   { (case "(($ac_try" in
9948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9949   *) ac_try_echo=$ac_try;;
9950 esac
9951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9952   (eval "$ac_try") 2>&5
9953   ac_status=$?
9954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955   (exit $ac_status); }; } &&
9956          { ac_try='test -s conftest$ac_exeext'
9957   { (case "(($ac_try" in
9958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959   *) ac_try_echo=$ac_try;;
9960 esac
9961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962   (eval "$ac_try") 2>&5
9963   ac_status=$?
9964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965   (exit $ac_status); }; }; then
9966   ac_cv_lib_svld_dlopen=yes
9967 else
9968   echo "$as_me: failed program was:" >&5
9969 sed 's/^/| /' conftest.$ac_ext >&5
9970
9971         ac_cv_lib_svld_dlopen=no
9972 fi
9973
9974 rm -f core conftest.err conftest.$ac_objext \
9975       conftest$ac_exeext conftest.$ac_ext
9976 LIBS=$ac_check_lib_save_LIBS
9977 fi
9978 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9979 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9980 if test $ac_cv_lib_svld_dlopen = yes; then
9981
9982 cat >>confdefs.h <<\_ACEOF
9983 #define HAVE_LIBDL 1
9984 _ACEOF
9985
9986                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9987 else
9988   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9989 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9990 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9991   echo $ECHO_N "(cached) $ECHO_C" >&6
9992 else
9993   ac_check_lib_save_LIBS=$LIBS
9994 LIBS="-ldld  $LIBS"
9995 cat >conftest.$ac_ext <<_ACEOF
9996 /* confdefs.h.  */
9997 _ACEOF
9998 cat confdefs.h >>conftest.$ac_ext
9999 cat >>conftest.$ac_ext <<_ACEOF
10000 /* end confdefs.h.  */
10001
10002 /* Override any GCC internal prototype to avoid an error.
10003    Use char because int might match the return type of a GCC
10004    builtin and then its argument prototype would still apply.  */
10005 #ifdef __cplusplus
10006 extern "C"
10007 #endif
10008 char dld_link ();
10009 int
10010 main ()
10011 {
10012 return dld_link ();
10013   ;
10014   return 0;
10015 }
10016 _ACEOF
10017 rm -f conftest.$ac_objext conftest$ac_exeext
10018 if { (ac_try="$ac_link"
10019 case "(($ac_try" in
10020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10021   *) ac_try_echo=$ac_try;;
10022 esac
10023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10024   (eval "$ac_link") 2>conftest.er1
10025   ac_status=$?
10026   grep -v '^ *+' conftest.er1 >conftest.err
10027   rm -f conftest.er1
10028   cat conftest.err >&5
10029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030   (exit $ac_status); } &&
10031          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10032   { (case "(($ac_try" in
10033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10034   *) ac_try_echo=$ac_try;;
10035 esac
10036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10037   (eval "$ac_try") 2>&5
10038   ac_status=$?
10039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040   (exit $ac_status); }; } &&
10041          { ac_try='test -s conftest$ac_exeext'
10042   { (case "(($ac_try" in
10043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10044   *) ac_try_echo=$ac_try;;
10045 esac
10046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10047   (eval "$ac_try") 2>&5
10048   ac_status=$?
10049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050   (exit $ac_status); }; }; then
10051   ac_cv_lib_dld_dld_link=yes
10052 else
10053   echo "$as_me: failed program was:" >&5
10054 sed 's/^/| /' conftest.$ac_ext >&5
10055
10056         ac_cv_lib_dld_dld_link=no
10057 fi
10058
10059 rm -f core conftest.err conftest.$ac_objext \
10060       conftest$ac_exeext conftest.$ac_ext
10061 LIBS=$ac_check_lib_save_LIBS
10062 fi
10063 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10064 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10065 if test $ac_cv_lib_dld_dld_link = yes; then
10066
10067 cat >>confdefs.h <<\_ACEOF
10068 #define HAVE_DLD 1
10069 _ACEOF
10070
10071                 LIBADD_DL="$LIBADD_DL -ldld"
10072 else
10073   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10074 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10075 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10076   echo $ECHO_N "(cached) $ECHO_C" >&6
10077 else
10078   cat >conftest.$ac_ext <<_ACEOF
10079 /* confdefs.h.  */
10080 _ACEOF
10081 cat confdefs.h >>conftest.$ac_ext
10082 cat >>conftest.$ac_ext <<_ACEOF
10083 /* end confdefs.h.  */
10084 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10085    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10086 #define _dyld_func_lookup innocuous__dyld_func_lookup
10087
10088 /* System header to define __stub macros and hopefully few prototypes,
10089     which can conflict with char _dyld_func_lookup (); below.
10090     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10091     <limits.h> exists even on freestanding compilers.  */
10092
10093 #ifdef __STDC__
10094 # include <limits.h>
10095 #else
10096 # include <assert.h>
10097 #endif
10098
10099 #undef _dyld_func_lookup
10100
10101 /* Override any GCC internal prototype to avoid an error.
10102    Use char because int might match the return type of a GCC
10103    builtin and then its argument prototype would still apply.  */
10104 #ifdef __cplusplus
10105 extern "C"
10106 #endif
10107 char _dyld_func_lookup ();
10108 /* The GNU C library defines this for functions which it implements
10109     to always fail with ENOSYS.  Some functions are actually named
10110     something starting with __ and the normal name is an alias.  */
10111 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10112 choke me
10113 #endif
10114
10115 int
10116 main ()
10117 {
10118 return _dyld_func_lookup ();
10119   ;
10120   return 0;
10121 }
10122 _ACEOF
10123 rm -f conftest.$ac_objext conftest$ac_exeext
10124 if { (ac_try="$ac_link"
10125 case "(($ac_try" in
10126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127   *) ac_try_echo=$ac_try;;
10128 esac
10129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10130   (eval "$ac_link") 2>conftest.er1
10131   ac_status=$?
10132   grep -v '^ *+' conftest.er1 >conftest.err
10133   rm -f conftest.er1
10134   cat conftest.err >&5
10135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136   (exit $ac_status); } &&
10137          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10138   { (case "(($ac_try" in
10139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10140   *) ac_try_echo=$ac_try;;
10141 esac
10142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10143   (eval "$ac_try") 2>&5
10144   ac_status=$?
10145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146   (exit $ac_status); }; } &&
10147          { ac_try='test -s conftest$ac_exeext'
10148   { (case "(($ac_try" in
10149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150   *) ac_try_echo=$ac_try;;
10151 esac
10152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10153   (eval "$ac_try") 2>&5
10154   ac_status=$?
10155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156   (exit $ac_status); }; }; then
10157   ac_cv_func__dyld_func_lookup=yes
10158 else
10159   echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10161
10162         ac_cv_func__dyld_func_lookup=no
10163 fi
10164
10165 rm -f core conftest.err conftest.$ac_objext \
10166       conftest$ac_exeext conftest.$ac_ext
10167 fi
10168 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10169 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10170 if test $ac_cv_func__dyld_func_lookup = yes; then
10171
10172 cat >>confdefs.h <<\_ACEOF
10173 #define HAVE_DYLD 1
10174 _ACEOF
10175
10176 fi
10177
10178
10179 fi
10180
10181
10182 fi
10183
10184
10185 fi
10186
10187 rm -f core conftest.err conftest.$ac_objext \
10188       conftest$ac_exeext conftest.$ac_ext
10189
10190 fi
10191
10192
10193 fi
10194
10195
10196 fi
10197
10198
10199 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10200 then
10201   lt_save_LIBS="$LIBS"
10202   LIBS="$LIBS $LIBADD_DL"
10203
10204 for ac_func in dlerror
10205 do
10206 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10207 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10208 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10209 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10210   echo $ECHO_N "(cached) $ECHO_C" >&6
10211 else
10212   cat >conftest.$ac_ext <<_ACEOF
10213 /* confdefs.h.  */
10214 _ACEOF
10215 cat confdefs.h >>conftest.$ac_ext
10216 cat >>conftest.$ac_ext <<_ACEOF
10217 /* end confdefs.h.  */
10218 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10219    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10220 #define $ac_func innocuous_$ac_func
10221
10222 /* System header to define __stub macros and hopefully few prototypes,
10223     which can conflict with char $ac_func (); below.
10224     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10225     <limits.h> exists even on freestanding compilers.  */
10226
10227 #ifdef __STDC__
10228 # include <limits.h>
10229 #else
10230 # include <assert.h>
10231 #endif
10232
10233 #undef $ac_func
10234
10235 /* Override any GCC internal prototype to avoid an error.
10236    Use char because int might match the return type of a GCC
10237    builtin and then its argument prototype would still apply.  */
10238 #ifdef __cplusplus
10239 extern "C"
10240 #endif
10241 char $ac_func ();
10242 /* The GNU C library defines this for functions which it implements
10243     to always fail with ENOSYS.  Some functions are actually named
10244     something starting with __ and the normal name is an alias.  */
10245 #if defined __stub_$ac_func || defined __stub___$ac_func
10246 choke me
10247 #endif
10248
10249 int
10250 main ()
10251 {
10252 return $ac_func ();
10253   ;
10254   return 0;
10255 }
10256 _ACEOF
10257 rm -f conftest.$ac_objext conftest$ac_exeext
10258 if { (ac_try="$ac_link"
10259 case "(($ac_try" in
10260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10261   *) ac_try_echo=$ac_try;;
10262 esac
10263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10264   (eval "$ac_link") 2>conftest.er1
10265   ac_status=$?
10266   grep -v '^ *+' conftest.er1 >conftest.err
10267   rm -f conftest.er1
10268   cat conftest.err >&5
10269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270   (exit $ac_status); } &&
10271          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10272   { (case "(($ac_try" in
10273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10274   *) ac_try_echo=$ac_try;;
10275 esac
10276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10277   (eval "$ac_try") 2>&5
10278   ac_status=$?
10279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280   (exit $ac_status); }; } &&
10281          { ac_try='test -s conftest$ac_exeext'
10282   { (case "(($ac_try" in
10283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10284   *) ac_try_echo=$ac_try;;
10285 esac
10286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10287   (eval "$ac_try") 2>&5
10288   ac_status=$?
10289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290   (exit $ac_status); }; }; then
10291   eval "$as_ac_var=yes"
10292 else
10293   echo "$as_me: failed program was:" >&5
10294 sed 's/^/| /' conftest.$ac_ext >&5
10295
10296         eval "$as_ac_var=no"
10297 fi
10298
10299 rm -f core conftest.err conftest.$ac_objext \
10300       conftest$ac_exeext conftest.$ac_ext
10301 fi
10302 ac_res=`eval echo '${'$as_ac_var'}'`
10303                { echo "$as_me:$LINENO: result: $ac_res" >&5
10304 echo "${ECHO_T}$ac_res" >&6; }
10305 if test `eval echo '${'$as_ac_var'}'` = yes; then
10306   cat >>confdefs.h <<_ACEOF
10307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10308 _ACEOF
10309
10310 fi
10311 done
10312
10313   LIBS="$lt_save_LIBS"
10314 fi
10315 ac_ext=c
10316 ac_cpp='$CPP $CPPFLAGS'
10317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10320
10321
10322
10323 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10324 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10325 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10326   echo $ECHO_N "(cached) $ECHO_C" >&6
10327 else
10328   ac_cv_sys_symbol_underscore=no
10329   cat > conftest.$ac_ext <<EOF
10330 void nm_test_func(){}
10331 int main(){nm_test_func;return 0;}
10332 EOF
10333   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10334   (eval $ac_compile) 2>&5
10335   ac_status=$?
10336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337   (exit $ac_status); }; then
10338     # Now try to grab the symbols.
10339     ac_nlist=conftest.nm
10340     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10341   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10342   ac_status=$?
10343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344   (exit $ac_status); } && test -s "$ac_nlist"; then
10345       # See whether the symbols have a leading underscore.
10346       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10347         ac_cv_sys_symbol_underscore=yes
10348       else
10349         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10350           :
10351         else
10352           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10353         fi
10354       fi
10355     else
10356       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10357     fi
10358   else
10359     echo "configure: failed program was:" >&5
10360     cat conftest.c >&5
10361   fi
10362   rm -rf conftest*
10363
10364 fi
10365 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10366 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10367
10368
10369 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10370   if test x"$libltdl_cv_func_dlopen" = xyes ||
10371      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10372         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10373 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10374 if test "${libltdl_cv_need_uscore+set}" = set; then
10375   echo $ECHO_N "(cached) $ECHO_C" >&6
10376 else
10377   libltdl_cv_need_uscore=unknown
10378           save_LIBS="$LIBS"
10379           LIBS="$LIBS $LIBADD_DL"
10380           if test "$cross_compiling" = yes; then :
10381   libltdl_cv_need_uscore=cross
10382 else
10383   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10384   lt_status=$lt_dlunknown
10385   cat > conftest.$ac_ext <<EOF
10386 #line 10386 "configure"
10387 #include "confdefs.h"
10388
10389 #if HAVE_DLFCN_H
10390 #include <dlfcn.h>
10391 #endif
10392
10393 #include <stdio.h>
10394
10395 #ifdef RTLD_GLOBAL
10396 #  define LT_DLGLOBAL           RTLD_GLOBAL
10397 #else
10398 #  ifdef DL_GLOBAL
10399 #    define LT_DLGLOBAL         DL_GLOBAL
10400 #  else
10401 #    define LT_DLGLOBAL         0
10402 #  endif
10403 #endif
10404
10405 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10406    find out it does not work in some platform. */
10407 #ifndef LT_DLLAZY_OR_NOW
10408 #  ifdef RTLD_LAZY
10409 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10410 #  else
10411 #    ifdef DL_LAZY
10412 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10413 #    else
10414 #      ifdef RTLD_NOW
10415 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10416 #      else
10417 #        ifdef DL_NOW
10418 #          define LT_DLLAZY_OR_NOW      DL_NOW
10419 #        else
10420 #          define LT_DLLAZY_OR_NOW      0
10421 #        endif
10422 #      endif
10423 #    endif
10424 #  endif
10425 #endif
10426
10427 #ifdef __cplusplus
10428 extern "C" void exit (int);
10429 #endif
10430
10431 void fnord() { int i=42;}
10432 int main ()
10433 {
10434   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10435   int status = $lt_dlunknown;
10436
10437   if (self)
10438     {
10439       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10440       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10441       /* dlclose (self); */
10442     }
10443   else
10444     puts (dlerror ());
10445
10446     exit (status);
10447 }
10448 EOF
10449   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10450   (eval $ac_link) 2>&5
10451   ac_status=$?
10452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10454     (./conftest; exit; ) >&5 2>/dev/null
10455     lt_status=$?
10456     case x$lt_status in
10457       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10458       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10459       x$lt_dlunknown|x*)  ;;
10460     esac
10461   else :
10462     # compilation failed
10463
10464   fi
10465 fi
10466 rm -fr conftest*
10467
10468           LIBS="$save_LIBS"
10469
10470 fi
10471 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10472 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10473   fi
10474 fi
10475
10476 if test x"$libltdl_cv_need_uscore" = xyes; then
10477
10478 cat >>confdefs.h <<\_ACEOF
10479 #define NEED_USCORE 1
10480 _ACEOF
10481
10482 fi
10483
10484
10485 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10486 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10487 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10488   echo $ECHO_N "(cached) $ECHO_C" >&6
10489 else
10490   # PORTME does your system automatically load deplibs for dlopen?
10491   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10492   # For now, we just catch OSes we know something about -- in the
10493   # future, we'll try test this programmatically.
10494   libltdl_cv_sys_dlopen_deplibs=unknown
10495   case "$host_os" in
10496   aix3*|aix4.1.*|aix4.2.*)
10497     # Unknown whether this is true for these versions of AIX, but
10498     # we want this `case' here to explicitly catch those versions.
10499     libltdl_cv_sys_dlopen_deplibs=unknown
10500     ;;
10501   aix[45]*)
10502     libltdl_cv_sys_dlopen_deplibs=yes
10503     ;;
10504   darwin*)
10505     # Assuming the user has installed a libdl from somewhere, this is true
10506     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10507     libltdl_cv_sys_dlopen_deplibs=yes
10508     ;;
10509   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10510     # GNU and its variants, using gnu ld.so (Glibc)
10511     libltdl_cv_sys_dlopen_deplibs=yes
10512     ;;
10513   hpux10*|hpux11*)
10514     libltdl_cv_sys_dlopen_deplibs=yes
10515     ;;
10516   interix*)
10517     libltdl_cv_sys_dlopen_deplibs=yes
10518     ;;
10519   irix[12345]*|irix6.[01]*)
10520     # Catch all versions of IRIX before 6.2, and indicate that we don't
10521     # know how it worked for any of those versions.
10522     libltdl_cv_sys_dlopen_deplibs=unknown
10523     ;;
10524   irix*)
10525     # The case above catches anything before 6.2, and it's known that
10526     # at 6.2 and later dlopen does load deplibs.
10527     libltdl_cv_sys_dlopen_deplibs=yes
10528     ;;
10529   netbsd*)
10530     libltdl_cv_sys_dlopen_deplibs=yes
10531     ;;
10532   openbsd*)
10533     libltdl_cv_sys_dlopen_deplibs=yes
10534     ;;
10535   osf[1234]*)
10536     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10537     # it did *not* use an RPATH in a shared library to find objects the
10538     # library depends on, so we explicitly say `no'.
10539     libltdl_cv_sys_dlopen_deplibs=no
10540     ;;
10541   osf5.0|osf5.0a|osf5.1)
10542     # dlopen *does* load deplibs and with the right loader patch applied
10543     # it even uses RPATH in a shared library to search for shared objects
10544     # that the library depends on, but there's no easy way to know if that
10545     # patch is installed.  Since this is the case, all we can really
10546     # say is unknown -- it depends on the patch being installed.  If
10547     # it is, this changes to `yes'.  Without it, it would be `no'.
10548     libltdl_cv_sys_dlopen_deplibs=unknown
10549     ;;
10550   osf*)
10551     # the two cases above should catch all versions of osf <= 5.1.  Read
10552     # the comments above for what we know about them.
10553     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10554     # is used to find them so we can finally say `yes'.
10555     libltdl_cv_sys_dlopen_deplibs=yes
10556     ;;
10557   solaris*)
10558     libltdl_cv_sys_dlopen_deplibs=yes
10559     ;;
10560   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10561     libltdl_cv_sys_dlopen_deplibs=yes
10562     ;;
10563   esac
10564
10565 fi
10566 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10567 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10568 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10569
10570 cat >>confdefs.h <<\_ACEOF
10571 #define LTDL_DLOPEN_DEPLIBS 1
10572 _ACEOF
10573
10574 fi
10575
10576
10577 for ac_header in argz.h
10578 do
10579 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10581   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10584   echo $ECHO_N "(cached) $ECHO_C" >&6
10585 fi
10586 ac_res=`eval echo '${'$as_ac_Header'}'`
10587                { echo "$as_me:$LINENO: result: $ac_res" >&5
10588 echo "${ECHO_T}$ac_res" >&6; }
10589 else
10590   # Is the header compilable?
10591 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10592 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10593 cat >conftest.$ac_ext <<_ACEOF
10594 /* confdefs.h.  */
10595 _ACEOF
10596 cat confdefs.h >>conftest.$ac_ext
10597 cat >>conftest.$ac_ext <<_ACEOF
10598 /* end confdefs.h.  */
10599 $ac_includes_default
10600 #include <$ac_header>
10601 _ACEOF
10602 rm -f conftest.$ac_objext
10603 if { (ac_try="$ac_compile"
10604 case "(($ac_try" in
10605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10606   *) ac_try_echo=$ac_try;;
10607 esac
10608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10609   (eval "$ac_compile") 2>conftest.er1
10610   ac_status=$?
10611   grep -v '^ *+' conftest.er1 >conftest.err
10612   rm -f conftest.er1
10613   cat conftest.err >&5
10614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615   (exit $ac_status); } &&
10616          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10617   { (case "(($ac_try" in
10618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10619   *) ac_try_echo=$ac_try;;
10620 esac
10621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10622   (eval "$ac_try") 2>&5
10623   ac_status=$?
10624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625   (exit $ac_status); }; } &&
10626          { ac_try='test -s conftest.$ac_objext'
10627   { (case "(($ac_try" in
10628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10629   *) ac_try_echo=$ac_try;;
10630 esac
10631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10632   (eval "$ac_try") 2>&5
10633   ac_status=$?
10634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635   (exit $ac_status); }; }; then
10636   ac_header_compiler=yes
10637 else
10638   echo "$as_me: failed program was:" >&5
10639 sed 's/^/| /' conftest.$ac_ext >&5
10640
10641         ac_header_compiler=no
10642 fi
10643
10644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10646 echo "${ECHO_T}$ac_header_compiler" >&6; }
10647
10648 # Is the header present?
10649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10651 cat >conftest.$ac_ext <<_ACEOF
10652 /* confdefs.h.  */
10653 _ACEOF
10654 cat confdefs.h >>conftest.$ac_ext
10655 cat >>conftest.$ac_ext <<_ACEOF
10656 /* end confdefs.h.  */
10657 #include <$ac_header>
10658 _ACEOF
10659 if { (ac_try="$ac_cpp conftest.$ac_ext"
10660 case "(($ac_try" in
10661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10662   *) ac_try_echo=$ac_try;;
10663 esac
10664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10665   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10666   ac_status=$?
10667   grep -v '^ *+' conftest.er1 >conftest.err
10668   rm -f conftest.er1
10669   cat conftest.err >&5
10670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671   (exit $ac_status); } >/dev/null; then
10672   if test -s conftest.err; then
10673     ac_cpp_err=$ac_c_preproc_warn_flag
10674     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10675   else
10676     ac_cpp_err=
10677   fi
10678 else
10679   ac_cpp_err=yes
10680 fi
10681 if test -z "$ac_cpp_err"; then
10682   ac_header_preproc=yes
10683 else
10684   echo "$as_me: failed program was:" >&5
10685 sed 's/^/| /' conftest.$ac_ext >&5
10686
10687   ac_header_preproc=no
10688 fi
10689
10690 rm -f conftest.err conftest.$ac_ext
10691 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10692 echo "${ECHO_T}$ac_header_preproc" >&6; }
10693
10694 # So?  What about this header?
10695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10696   yes:no: )
10697     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10699     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10700 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10701     ac_header_preproc=yes
10702     ;;
10703   no:yes:* )
10704     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10705 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10706     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10707 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10708     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10709 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10710     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10711 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10712     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10714     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10715 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10716     ( cat <<\_ASBOX
10717 ## ------------------------------ ##
10718 ## Report this to bugs@yourdomain ##
10719 ## ------------------------------ ##
10720 _ASBOX
10721      ) | sed "s/^/$as_me: WARNING:     /" >&2
10722     ;;
10723 esac
10724 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10727   echo $ECHO_N "(cached) $ECHO_C" >&6
10728 else
10729   eval "$as_ac_Header=\$ac_header_preproc"
10730 fi
10731 ac_res=`eval echo '${'$as_ac_Header'}'`
10732                { echo "$as_me:$LINENO: result: $ac_res" >&5
10733 echo "${ECHO_T}$ac_res" >&6; }
10734
10735 fi
10736 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10737   cat >>confdefs.h <<_ACEOF
10738 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10739 _ACEOF
10740
10741 fi
10742
10743 done
10744
10745
10746 { echo "$as_me:$LINENO: checking for error_t" >&5
10747 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10748 if test "${ac_cv_type_error_t+set}" = set; then
10749   echo $ECHO_N "(cached) $ECHO_C" >&6
10750 else
10751   cat >conftest.$ac_ext <<_ACEOF
10752 /* confdefs.h.  */
10753 _ACEOF
10754 cat confdefs.h >>conftest.$ac_ext
10755 cat >>conftest.$ac_ext <<_ACEOF
10756 /* end confdefs.h.  */
10757 #if HAVE_ARGZ_H
10758 #  include <argz.h>
10759 #endif
10760
10761 typedef error_t ac__type_new_;
10762 int
10763 main ()
10764 {
10765 if ((ac__type_new_ *) 0)
10766   return 0;
10767 if (sizeof (ac__type_new_))
10768   return 0;
10769   ;
10770   return 0;
10771 }
10772 _ACEOF
10773 rm -f conftest.$ac_objext
10774 if { (ac_try="$ac_compile"
10775 case "(($ac_try" in
10776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10777   *) ac_try_echo=$ac_try;;
10778 esac
10779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10780   (eval "$ac_compile") 2>conftest.er1
10781   ac_status=$?
10782   grep -v '^ *+' conftest.er1 >conftest.err
10783   rm -f conftest.er1
10784   cat conftest.err >&5
10785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786   (exit $ac_status); } &&
10787          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10788   { (case "(($ac_try" in
10789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10790   *) ac_try_echo=$ac_try;;
10791 esac
10792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10793   (eval "$ac_try") 2>&5
10794   ac_status=$?
10795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796   (exit $ac_status); }; } &&
10797          { ac_try='test -s conftest.$ac_objext'
10798   { (case "(($ac_try" in
10799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800   *) ac_try_echo=$ac_try;;
10801 esac
10802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10803   (eval "$ac_try") 2>&5
10804   ac_status=$?
10805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806   (exit $ac_status); }; }; then
10807   ac_cv_type_error_t=yes
10808 else
10809   echo "$as_me: failed program was:" >&5
10810 sed 's/^/| /' conftest.$ac_ext >&5
10811
10812         ac_cv_type_error_t=no
10813 fi
10814
10815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10816 fi
10817 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10818 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10819 if test $ac_cv_type_error_t = yes; then
10820
10821 cat >>confdefs.h <<_ACEOF
10822 #define HAVE_ERROR_T 1
10823 _ACEOF
10824
10825
10826 else
10827
10828 cat >>confdefs.h <<\_ACEOF
10829 #define error_t int
10830 _ACEOF
10831
10832 fi
10833
10834
10835
10836
10837
10838
10839
10840 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10841 do
10842 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10843 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10844 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10845 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10846   echo $ECHO_N "(cached) $ECHO_C" >&6
10847 else
10848   cat >conftest.$ac_ext <<_ACEOF
10849 /* confdefs.h.  */
10850 _ACEOF
10851 cat confdefs.h >>conftest.$ac_ext
10852 cat >>conftest.$ac_ext <<_ACEOF
10853 /* end confdefs.h.  */
10854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10855    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10856 #define $ac_func innocuous_$ac_func
10857
10858 /* System header to define __stub macros and hopefully few prototypes,
10859     which can conflict with char $ac_func (); below.
10860     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10861     <limits.h> exists even on freestanding compilers.  */
10862
10863 #ifdef __STDC__
10864 # include <limits.h>
10865 #else
10866 # include <assert.h>
10867 #endif
10868
10869 #undef $ac_func
10870
10871 /* Override any GCC internal prototype to avoid an error.
10872    Use char because int might match the return type of a GCC
10873    builtin and then its argument prototype would still apply.  */
10874 #ifdef __cplusplus
10875 extern "C"
10876 #endif
10877 char $ac_func ();
10878 /* The GNU C library defines this for functions which it implements
10879     to always fail with ENOSYS.  Some functions are actually named
10880     something starting with __ and the normal name is an alias.  */
10881 #if defined __stub_$ac_func || defined __stub___$ac_func
10882 choke me
10883 #endif
10884
10885 int
10886 main ()
10887 {
10888 return $ac_func ();
10889   ;
10890   return 0;
10891 }
10892 _ACEOF
10893 rm -f conftest.$ac_objext conftest$ac_exeext
10894 if { (ac_try="$ac_link"
10895 case "(($ac_try" in
10896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10897   *) ac_try_echo=$ac_try;;
10898 esac
10899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10900   (eval "$ac_link") 2>conftest.er1
10901   ac_status=$?
10902   grep -v '^ *+' conftest.er1 >conftest.err
10903   rm -f conftest.er1
10904   cat conftest.err >&5
10905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906   (exit $ac_status); } &&
10907          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10908   { (case "(($ac_try" in
10909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10910   *) ac_try_echo=$ac_try;;
10911 esac
10912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10913   (eval "$ac_try") 2>&5
10914   ac_status=$?
10915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916   (exit $ac_status); }; } &&
10917          { ac_try='test -s conftest$ac_exeext'
10918   { (case "(($ac_try" in
10919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920   *) ac_try_echo=$ac_try;;
10921 esac
10922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10923   (eval "$ac_try") 2>&5
10924   ac_status=$?
10925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926   (exit $ac_status); }; }; then
10927   eval "$as_ac_var=yes"
10928 else
10929   echo "$as_me: failed program was:" >&5
10930 sed 's/^/| /' conftest.$ac_ext >&5
10931
10932         eval "$as_ac_var=no"
10933 fi
10934
10935 rm -f core conftest.err conftest.$ac_objext \
10936       conftest$ac_exeext conftest.$ac_ext
10937 fi
10938 ac_res=`eval echo '${'$as_ac_var'}'`
10939                { echo "$as_me:$LINENO: result: $ac_res" >&5
10940 echo "${ECHO_T}$ac_res" >&6; }
10941 if test `eval echo '${'$as_ac_var'}'` = yes; then
10942   cat >>confdefs.h <<_ACEOF
10943 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10944 _ACEOF
10945
10946 fi
10947 done
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10976                   stdio.h unistd.h
10977 do
10978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10980   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10983   echo $ECHO_N "(cached) $ECHO_C" >&6
10984 fi
10985 ac_res=`eval echo '${'$as_ac_Header'}'`
10986                { echo "$as_me:$LINENO: result: $ac_res" >&5
10987 echo "${ECHO_T}$ac_res" >&6; }
10988 else
10989   # Is the header compilable?
10990 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10992 cat >conftest.$ac_ext <<_ACEOF
10993 /* confdefs.h.  */
10994 _ACEOF
10995 cat confdefs.h >>conftest.$ac_ext
10996 cat >>conftest.$ac_ext <<_ACEOF
10997 /* end confdefs.h.  */
10998 $ac_includes_default
10999 #include <$ac_header>
11000 _ACEOF
11001 rm -f conftest.$ac_objext
11002 if { (ac_try="$ac_compile"
11003 case "(($ac_try" in
11004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11005   *) ac_try_echo=$ac_try;;
11006 esac
11007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11008   (eval "$ac_compile") 2>conftest.er1
11009   ac_status=$?
11010   grep -v '^ *+' conftest.er1 >conftest.err
11011   rm -f conftest.er1
11012   cat conftest.err >&5
11013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014   (exit $ac_status); } &&
11015          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11016   { (case "(($ac_try" in
11017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11018   *) ac_try_echo=$ac_try;;
11019 esac
11020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11021   (eval "$ac_try") 2>&5
11022   ac_status=$?
11023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024   (exit $ac_status); }; } &&
11025          { ac_try='test -s conftest.$ac_objext'
11026   { (case "(($ac_try" in
11027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11028   *) ac_try_echo=$ac_try;;
11029 esac
11030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11031   (eval "$ac_try") 2>&5
11032   ac_status=$?
11033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034   (exit $ac_status); }; }; then
11035   ac_header_compiler=yes
11036 else
11037   echo "$as_me: failed program was:" >&5
11038 sed 's/^/| /' conftest.$ac_ext >&5
11039
11040         ac_header_compiler=no
11041 fi
11042
11043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11045 echo "${ECHO_T}$ac_header_compiler" >&6; }
11046
11047 # Is the header present?
11048 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11050 cat >conftest.$ac_ext <<_ACEOF
11051 /* confdefs.h.  */
11052 _ACEOF
11053 cat confdefs.h >>conftest.$ac_ext
11054 cat >>conftest.$ac_ext <<_ACEOF
11055 /* end confdefs.h.  */
11056 #include <$ac_header>
11057 _ACEOF
11058 if { (ac_try="$ac_cpp conftest.$ac_ext"
11059 case "(($ac_try" in
11060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11061   *) ac_try_echo=$ac_try;;
11062 esac
11063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11064   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11065   ac_status=$?
11066   grep -v '^ *+' conftest.er1 >conftest.err
11067   rm -f conftest.er1
11068   cat conftest.err >&5
11069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070   (exit $ac_status); } >/dev/null; then
11071   if test -s conftest.err; then
11072     ac_cpp_err=$ac_c_preproc_warn_flag
11073     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11074   else
11075     ac_cpp_err=
11076   fi
11077 else
11078   ac_cpp_err=yes
11079 fi
11080 if test -z "$ac_cpp_err"; then
11081   ac_header_preproc=yes
11082 else
11083   echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11085
11086   ac_header_preproc=no
11087 fi
11088
11089 rm -f conftest.err conftest.$ac_ext
11090 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11091 echo "${ECHO_T}$ac_header_preproc" >&6; }
11092
11093 # So?  What about this header?
11094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11095   yes:no: )
11096     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11098     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11099 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11100     ac_header_preproc=yes
11101     ;;
11102   no:yes:* )
11103     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11104 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11105     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11106 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11107     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11108 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11109     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11110 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11111     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11113     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11114 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11115     ( cat <<\_ASBOX
11116 ## ------------------------------ ##
11117 ## Report this to bugs@yourdomain ##
11118 ## ------------------------------ ##
11119 _ASBOX
11120      ) | sed "s/^/$as_me: WARNING:     /" >&2
11121     ;;
11122 esac
11123 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11126   echo $ECHO_N "(cached) $ECHO_C" >&6
11127 else
11128   eval "$as_ac_Header=\$ac_header_preproc"
11129 fi
11130 ac_res=`eval echo '${'$as_ac_Header'}'`
11131                { echo "$as_me:$LINENO: result: $ac_res" >&5
11132 echo "${ECHO_T}$ac_res" >&6; }
11133
11134 fi
11135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11136   cat >>confdefs.h <<_ACEOF
11137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11138 _ACEOF
11139
11140 fi
11141
11142 done
11143
11144
11145
11146
11147
11148 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11149 do
11150 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11152   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11155   echo $ECHO_N "(cached) $ECHO_C" >&6
11156 fi
11157 ac_res=`eval echo '${'$as_ac_Header'}'`
11158                { echo "$as_me:$LINENO: result: $ac_res" >&5
11159 echo "${ECHO_T}$ac_res" >&6; }
11160 else
11161   # Is the header compilable?
11162 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11163 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11164 cat >conftest.$ac_ext <<_ACEOF
11165 /* confdefs.h.  */
11166 _ACEOF
11167 cat confdefs.h >>conftest.$ac_ext
11168 cat >>conftest.$ac_ext <<_ACEOF
11169 /* end confdefs.h.  */
11170 $ac_includes_default
11171 #include <$ac_header>
11172 _ACEOF
11173 rm -f conftest.$ac_objext
11174 if { (ac_try="$ac_compile"
11175 case "(($ac_try" in
11176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11177   *) ac_try_echo=$ac_try;;
11178 esac
11179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11180   (eval "$ac_compile") 2>conftest.er1
11181   ac_status=$?
11182   grep -v '^ *+' conftest.er1 >conftest.err
11183   rm -f conftest.er1
11184   cat conftest.err >&5
11185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186   (exit $ac_status); } &&
11187          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11188   { (case "(($ac_try" in
11189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11190   *) ac_try_echo=$ac_try;;
11191 esac
11192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11193   (eval "$ac_try") 2>&5
11194   ac_status=$?
11195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196   (exit $ac_status); }; } &&
11197          { ac_try='test -s conftest.$ac_objext'
11198   { (case "(($ac_try" in
11199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11200   *) ac_try_echo=$ac_try;;
11201 esac
11202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11203   (eval "$ac_try") 2>&5
11204   ac_status=$?
11205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206   (exit $ac_status); }; }; then
11207   ac_header_compiler=yes
11208 else
11209   echo "$as_me: failed program was:" >&5
11210 sed 's/^/| /' conftest.$ac_ext >&5
11211
11212         ac_header_compiler=no
11213 fi
11214
11215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11216 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11217 echo "${ECHO_T}$ac_header_compiler" >&6; }
11218
11219 # Is the header present?
11220 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11221 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11222 cat >conftest.$ac_ext <<_ACEOF
11223 /* confdefs.h.  */
11224 _ACEOF
11225 cat confdefs.h >>conftest.$ac_ext
11226 cat >>conftest.$ac_ext <<_ACEOF
11227 /* end confdefs.h.  */
11228 #include <$ac_header>
11229 _ACEOF
11230 if { (ac_try="$ac_cpp conftest.$ac_ext"
11231 case "(($ac_try" in
11232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11233   *) ac_try_echo=$ac_try;;
11234 esac
11235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11236   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11237   ac_status=$?
11238   grep -v '^ *+' conftest.er1 >conftest.err
11239   rm -f conftest.er1
11240   cat conftest.err >&5
11241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242   (exit $ac_status); } >/dev/null; then
11243   if test -s conftest.err; then
11244     ac_cpp_err=$ac_c_preproc_warn_flag
11245     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11246   else
11247     ac_cpp_err=
11248   fi
11249 else
11250   ac_cpp_err=yes
11251 fi
11252 if test -z "$ac_cpp_err"; then
11253   ac_header_preproc=yes
11254 else
11255   echo "$as_me: failed program was:" >&5
11256 sed 's/^/| /' conftest.$ac_ext >&5
11257
11258   ac_header_preproc=no
11259 fi
11260
11261 rm -f conftest.err conftest.$ac_ext
11262 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11263 echo "${ECHO_T}$ac_header_preproc" >&6; }
11264
11265 # So?  What about this header?
11266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11267   yes:no: )
11268     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11269 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11270     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11271 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11272     ac_header_preproc=yes
11273     ;;
11274   no:yes:* )
11275     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11276 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11277     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11278 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11279     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11280 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11281     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11282 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11283     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11284 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11285     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11286 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11287     ( cat <<\_ASBOX
11288 ## ------------------------------ ##
11289 ## Report this to bugs@yourdomain ##
11290 ## ------------------------------ ##
11291 _ASBOX
11292      ) | sed "s/^/$as_me: WARNING:     /" >&2
11293     ;;
11294 esac
11295 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11298   echo $ECHO_N "(cached) $ECHO_C" >&6
11299 else
11300   eval "$as_ac_Header=\$ac_header_preproc"
11301 fi
11302 ac_res=`eval echo '${'$as_ac_Header'}'`
11303                { echo "$as_me:$LINENO: result: $ac_res" >&5
11304 echo "${ECHO_T}$ac_res" >&6; }
11305
11306 fi
11307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11308   cat >>confdefs.h <<_ACEOF
11309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11310 _ACEOF
11311
11312 fi
11313
11314 done
11315
11316
11317
11318 for ac_header in string.h strings.h
11319 do
11320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11322   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11325   echo $ECHO_N "(cached) $ECHO_C" >&6
11326 fi
11327 ac_res=`eval echo '${'$as_ac_Header'}'`
11328                { echo "$as_me:$LINENO: result: $ac_res" >&5
11329 echo "${ECHO_T}$ac_res" >&6; }
11330 else
11331   # Is the header compilable?
11332 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11333 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11334 cat >conftest.$ac_ext <<_ACEOF
11335 /* confdefs.h.  */
11336 _ACEOF
11337 cat confdefs.h >>conftest.$ac_ext
11338 cat >>conftest.$ac_ext <<_ACEOF
11339 /* end confdefs.h.  */
11340 $ac_includes_default
11341 #include <$ac_header>
11342 _ACEOF
11343 rm -f conftest.$ac_objext
11344 if { (ac_try="$ac_compile"
11345 case "(($ac_try" in
11346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11347   *) ac_try_echo=$ac_try;;
11348 esac
11349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11350   (eval "$ac_compile") 2>conftest.er1
11351   ac_status=$?
11352   grep -v '^ *+' conftest.er1 >conftest.err
11353   rm -f conftest.er1
11354   cat conftest.err >&5
11355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356   (exit $ac_status); } &&
11357          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11358   { (case "(($ac_try" in
11359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11360   *) ac_try_echo=$ac_try;;
11361 esac
11362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11363   (eval "$ac_try") 2>&5
11364   ac_status=$?
11365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366   (exit $ac_status); }; } &&
11367          { ac_try='test -s conftest.$ac_objext'
11368   { (case "(($ac_try" in
11369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11370   *) ac_try_echo=$ac_try;;
11371 esac
11372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11373   (eval "$ac_try") 2>&5
11374   ac_status=$?
11375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376   (exit $ac_status); }; }; then
11377   ac_header_compiler=yes
11378 else
11379   echo "$as_me: failed program was:" >&5
11380 sed 's/^/| /' conftest.$ac_ext >&5
11381
11382         ac_header_compiler=no
11383 fi
11384
11385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11386 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11387 echo "${ECHO_T}$ac_header_compiler" >&6; }
11388
11389 # Is the header present?
11390 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11392 cat >conftest.$ac_ext <<_ACEOF
11393 /* confdefs.h.  */
11394 _ACEOF
11395 cat confdefs.h >>conftest.$ac_ext
11396 cat >>conftest.$ac_ext <<_ACEOF
11397 /* end confdefs.h.  */
11398 #include <$ac_header>
11399 _ACEOF
11400 if { (ac_try="$ac_cpp conftest.$ac_ext"
11401 case "(($ac_try" in
11402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11403   *) ac_try_echo=$ac_try;;
11404 esac
11405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11406   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11407   ac_status=$?
11408   grep -v '^ *+' conftest.er1 >conftest.err
11409   rm -f conftest.er1
11410   cat conftest.err >&5
11411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412   (exit $ac_status); } >/dev/null; then
11413   if test -s conftest.err; then
11414     ac_cpp_err=$ac_c_preproc_warn_flag
11415     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11416   else
11417     ac_cpp_err=
11418   fi
11419 else
11420   ac_cpp_err=yes
11421 fi
11422 if test -z "$ac_cpp_err"; then
11423   ac_header_preproc=yes
11424 else
11425   echo "$as_me: failed program was:" >&5
11426 sed 's/^/| /' conftest.$ac_ext >&5
11427
11428   ac_header_preproc=no
11429 fi
11430
11431 rm -f conftest.err conftest.$ac_ext
11432 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11433 echo "${ECHO_T}$ac_header_preproc" >&6; }
11434
11435 # So?  What about this header?
11436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11437   yes:no: )
11438     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11439 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11440     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11441 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11442     ac_header_preproc=yes
11443     ;;
11444   no:yes:* )
11445     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11447     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11448 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11449     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11450 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11451     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11452 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11453     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11455     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11456 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11457     ( cat <<\_ASBOX
11458 ## ------------------------------ ##
11459 ## Report this to bugs@yourdomain ##
11460 ## ------------------------------ ##
11461 _ASBOX
11462      ) | sed "s/^/$as_me: WARNING:     /" >&2
11463     ;;
11464 esac
11465 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11468   echo $ECHO_N "(cached) $ECHO_C" >&6
11469 else
11470   eval "$as_ac_Header=\$ac_header_preproc"
11471 fi
11472 ac_res=`eval echo '${'$as_ac_Header'}'`
11473                { echo "$as_me:$LINENO: result: $ac_res" >&5
11474 echo "${ECHO_T}$ac_res" >&6; }
11475
11476 fi
11477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11478   cat >>confdefs.h <<_ACEOF
11479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11480 _ACEOF
11481  break
11482 fi
11483
11484 done
11485
11486
11487
11488
11489 for ac_func in strchr index
11490 do
11491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11492 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11494 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11495   echo $ECHO_N "(cached) $ECHO_C" >&6
11496 else
11497   cat >conftest.$ac_ext <<_ACEOF
11498 /* confdefs.h.  */
11499 _ACEOF
11500 cat confdefs.h >>conftest.$ac_ext
11501 cat >>conftest.$ac_ext <<_ACEOF
11502 /* end confdefs.h.  */
11503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11504    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11505 #define $ac_func innocuous_$ac_func
11506
11507 /* System header to define __stub macros and hopefully few prototypes,
11508     which can conflict with char $ac_func (); below.
11509     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11510     <limits.h> exists even on freestanding compilers.  */
11511
11512 #ifdef __STDC__
11513 # include <limits.h>
11514 #else
11515 # include <assert.h>
11516 #endif
11517
11518 #undef $ac_func
11519
11520 /* Override any GCC internal prototype to avoid an error.
11521    Use char because int might match the return type of a GCC
11522    builtin and then its argument prototype would still apply.  */
11523 #ifdef __cplusplus
11524 extern "C"
11525 #endif
11526 char $ac_func ();
11527 /* The GNU C library defines this for functions which it implements
11528     to always fail with ENOSYS.  Some functions are actually named
11529     something starting with __ and the normal name is an alias.  */
11530 #if defined __stub_$ac_func || defined __stub___$ac_func
11531 choke me
11532 #endif
11533
11534 int
11535 main ()
11536 {
11537 return $ac_func ();
11538   ;
11539   return 0;
11540 }
11541 _ACEOF
11542 rm -f conftest.$ac_objext conftest$ac_exeext
11543 if { (ac_try="$ac_link"
11544 case "(($ac_try" in
11545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11546   *) ac_try_echo=$ac_try;;
11547 esac
11548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11549   (eval "$ac_link") 2>conftest.er1
11550   ac_status=$?
11551   grep -v '^ *+' conftest.er1 >conftest.err
11552   rm -f conftest.er1
11553   cat conftest.err >&5
11554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555   (exit $ac_status); } &&
11556          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11557   { (case "(($ac_try" in
11558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11559   *) ac_try_echo=$ac_try;;
11560 esac
11561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11562   (eval "$ac_try") 2>&5
11563   ac_status=$?
11564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565   (exit $ac_status); }; } &&
11566          { ac_try='test -s conftest$ac_exeext'
11567   { (case "(($ac_try" in
11568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11569   *) ac_try_echo=$ac_try;;
11570 esac
11571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11572   (eval "$ac_try") 2>&5
11573   ac_status=$?
11574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575   (exit $ac_status); }; }; then
11576   eval "$as_ac_var=yes"
11577 else
11578   echo "$as_me: failed program was:" >&5
11579 sed 's/^/| /' conftest.$ac_ext >&5
11580
11581         eval "$as_ac_var=no"
11582 fi
11583
11584 rm -f core conftest.err conftest.$ac_objext \
11585       conftest$ac_exeext conftest.$ac_ext
11586 fi
11587 ac_res=`eval echo '${'$as_ac_var'}'`
11588                { echo "$as_me:$LINENO: result: $ac_res" >&5
11589 echo "${ECHO_T}$ac_res" >&6; }
11590 if test `eval echo '${'$as_ac_var'}'` = yes; then
11591   cat >>confdefs.h <<_ACEOF
11592 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11593 _ACEOF
11594  break
11595 fi
11596 done
11597
11598
11599
11600 for ac_func in strrchr rindex
11601 do
11602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11603 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11605 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11606   echo $ECHO_N "(cached) $ECHO_C" >&6
11607 else
11608   cat >conftest.$ac_ext <<_ACEOF
11609 /* confdefs.h.  */
11610 _ACEOF
11611 cat confdefs.h >>conftest.$ac_ext
11612 cat >>conftest.$ac_ext <<_ACEOF
11613 /* end confdefs.h.  */
11614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11615    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11616 #define $ac_func innocuous_$ac_func
11617
11618 /* System header to define __stub macros and hopefully few prototypes,
11619     which can conflict with char $ac_func (); below.
11620     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11621     <limits.h> exists even on freestanding compilers.  */
11622
11623 #ifdef __STDC__
11624 # include <limits.h>
11625 #else
11626 # include <assert.h>
11627 #endif
11628
11629 #undef $ac_func
11630
11631 /* Override any GCC internal prototype to avoid an error.
11632    Use char because int might match the return type of a GCC
11633    builtin and then its argument prototype would still apply.  */
11634 #ifdef __cplusplus
11635 extern "C"
11636 #endif
11637 char $ac_func ();
11638 /* The GNU C library defines this for functions which it implements
11639     to always fail with ENOSYS.  Some functions are actually named
11640     something starting with __ and the normal name is an alias.  */
11641 #if defined __stub_$ac_func || defined __stub___$ac_func
11642 choke me
11643 #endif
11644
11645 int
11646 main ()
11647 {
11648 return $ac_func ();
11649   ;
11650   return 0;
11651 }
11652 _ACEOF
11653 rm -f conftest.$ac_objext conftest$ac_exeext
11654 if { (ac_try="$ac_link"
11655 case "(($ac_try" in
11656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657   *) ac_try_echo=$ac_try;;
11658 esac
11659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660   (eval "$ac_link") 2>conftest.er1
11661   ac_status=$?
11662   grep -v '^ *+' conftest.er1 >conftest.err
11663   rm -f conftest.er1
11664   cat conftest.err >&5
11665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666   (exit $ac_status); } &&
11667          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11668   { (case "(($ac_try" in
11669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11670   *) ac_try_echo=$ac_try;;
11671 esac
11672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11673   (eval "$ac_try") 2>&5
11674   ac_status=$?
11675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676   (exit $ac_status); }; } &&
11677          { ac_try='test -s conftest$ac_exeext'
11678   { (case "(($ac_try" in
11679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680   *) ac_try_echo=$ac_try;;
11681 esac
11682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683   (eval "$ac_try") 2>&5
11684   ac_status=$?
11685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686   (exit $ac_status); }; }; then
11687   eval "$as_ac_var=yes"
11688 else
11689   echo "$as_me: failed program was:" >&5
11690 sed 's/^/| /' conftest.$ac_ext >&5
11691
11692         eval "$as_ac_var=no"
11693 fi
11694
11695 rm -f core conftest.err conftest.$ac_objext \
11696       conftest$ac_exeext conftest.$ac_ext
11697 fi
11698 ac_res=`eval echo '${'$as_ac_var'}'`
11699                { echo "$as_me:$LINENO: result: $ac_res" >&5
11700 echo "${ECHO_T}$ac_res" >&6; }
11701 if test `eval echo '${'$as_ac_var'}'` = yes; then
11702   cat >>confdefs.h <<_ACEOF
11703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11704 _ACEOF
11705  break
11706 fi
11707 done
11708
11709
11710
11711 for ac_func in memcpy bcopy
11712 do
11713 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11714 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11716 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11717   echo $ECHO_N "(cached) $ECHO_C" >&6
11718 else
11719   cat >conftest.$ac_ext <<_ACEOF
11720 /* confdefs.h.  */
11721 _ACEOF
11722 cat confdefs.h >>conftest.$ac_ext
11723 cat >>conftest.$ac_ext <<_ACEOF
11724 /* end confdefs.h.  */
11725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11726    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11727 #define $ac_func innocuous_$ac_func
11728
11729 /* System header to define __stub macros and hopefully few prototypes,
11730     which can conflict with char $ac_func (); below.
11731     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11732     <limits.h> exists even on freestanding compilers.  */
11733
11734 #ifdef __STDC__
11735 # include <limits.h>
11736 #else
11737 # include <assert.h>
11738 #endif
11739
11740 #undef $ac_func
11741
11742 /* Override any GCC internal prototype to avoid an error.
11743    Use char because int might match the return type of a GCC
11744    builtin and then its argument prototype would still apply.  */
11745 #ifdef __cplusplus
11746 extern "C"
11747 #endif
11748 char $ac_func ();
11749 /* The GNU C library defines this for functions which it implements
11750     to always fail with ENOSYS.  Some functions are actually named
11751     something starting with __ and the normal name is an alias.  */
11752 #if defined __stub_$ac_func || defined __stub___$ac_func
11753 choke me
11754 #endif
11755
11756 int
11757 main ()
11758 {
11759 return $ac_func ();
11760   ;
11761   return 0;
11762 }
11763 _ACEOF
11764 rm -f conftest.$ac_objext conftest$ac_exeext
11765 if { (ac_try="$ac_link"
11766 case "(($ac_try" in
11767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11768   *) ac_try_echo=$ac_try;;
11769 esac
11770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11771   (eval "$ac_link") 2>conftest.er1
11772   ac_status=$?
11773   grep -v '^ *+' conftest.er1 >conftest.err
11774   rm -f conftest.er1
11775   cat conftest.err >&5
11776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777   (exit $ac_status); } &&
11778          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11779   { (case "(($ac_try" in
11780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11781   *) ac_try_echo=$ac_try;;
11782 esac
11783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11784   (eval "$ac_try") 2>&5
11785   ac_status=$?
11786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787   (exit $ac_status); }; } &&
11788          { ac_try='test -s conftest$ac_exeext'
11789   { (case "(($ac_try" in
11790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11791   *) ac_try_echo=$ac_try;;
11792 esac
11793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11794   (eval "$ac_try") 2>&5
11795   ac_status=$?
11796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797   (exit $ac_status); }; }; then
11798   eval "$as_ac_var=yes"
11799 else
11800   echo "$as_me: failed program was:" >&5
11801 sed 's/^/| /' conftest.$ac_ext >&5
11802
11803         eval "$as_ac_var=no"
11804 fi
11805
11806 rm -f core conftest.err conftest.$ac_objext \
11807       conftest$ac_exeext conftest.$ac_ext
11808 fi
11809 ac_res=`eval echo '${'$as_ac_var'}'`
11810                { echo "$as_me:$LINENO: result: $ac_res" >&5
11811 echo "${ECHO_T}$ac_res" >&6; }
11812 if test `eval echo '${'$as_ac_var'}'` = yes; then
11813   cat >>confdefs.h <<_ACEOF
11814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11815 _ACEOF
11816  break
11817 fi
11818 done
11819
11820
11821
11822 for ac_func in memmove strcmp
11823 do
11824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11825 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11827 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11828   echo $ECHO_N "(cached) $ECHO_C" >&6
11829 else
11830   cat >conftest.$ac_ext <<_ACEOF
11831 /* confdefs.h.  */
11832 _ACEOF
11833 cat confdefs.h >>conftest.$ac_ext
11834 cat >>conftest.$ac_ext <<_ACEOF
11835 /* end confdefs.h.  */
11836 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11837    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11838 #define $ac_func innocuous_$ac_func
11839
11840 /* System header to define __stub macros and hopefully few prototypes,
11841     which can conflict with char $ac_func (); below.
11842     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11843     <limits.h> exists even on freestanding compilers.  */
11844
11845 #ifdef __STDC__
11846 # include <limits.h>
11847 #else
11848 # include <assert.h>
11849 #endif
11850
11851 #undef $ac_func
11852
11853 /* Override any GCC internal prototype to avoid an error.
11854    Use char because int might match the return type of a GCC
11855    builtin and then its argument prototype would still apply.  */
11856 #ifdef __cplusplus
11857 extern "C"
11858 #endif
11859 char $ac_func ();
11860 /* The GNU C library defines this for functions which it implements
11861     to always fail with ENOSYS.  Some functions are actually named
11862     something starting with __ and the normal name is an alias.  */
11863 #if defined __stub_$ac_func || defined __stub___$ac_func
11864 choke me
11865 #endif
11866
11867 int
11868 main ()
11869 {
11870 return $ac_func ();
11871   ;
11872   return 0;
11873 }
11874 _ACEOF
11875 rm -f conftest.$ac_objext conftest$ac_exeext
11876 if { (ac_try="$ac_link"
11877 case "(($ac_try" in
11878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11879   *) ac_try_echo=$ac_try;;
11880 esac
11881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11882   (eval "$ac_link") 2>conftest.er1
11883   ac_status=$?
11884   grep -v '^ *+' conftest.er1 >conftest.err
11885   rm -f conftest.er1
11886   cat conftest.err >&5
11887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888   (exit $ac_status); } &&
11889          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11890   { (case "(($ac_try" in
11891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11892   *) ac_try_echo=$ac_try;;
11893 esac
11894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11895   (eval "$ac_try") 2>&5
11896   ac_status=$?
11897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898   (exit $ac_status); }; } &&
11899          { ac_try='test -s conftest$ac_exeext'
11900   { (case "(($ac_try" in
11901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11902   *) ac_try_echo=$ac_try;;
11903 esac
11904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11905   (eval "$ac_try") 2>&5
11906   ac_status=$?
11907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908   (exit $ac_status); }; }; then
11909   eval "$as_ac_var=yes"
11910 else
11911   echo "$as_me: failed program was:" >&5
11912 sed 's/^/| /' conftest.$ac_ext >&5
11913
11914         eval "$as_ac_var=no"
11915 fi
11916
11917 rm -f core conftest.err conftest.$ac_objext \
11918       conftest$ac_exeext conftest.$ac_ext
11919 fi
11920 ac_res=`eval echo '${'$as_ac_var'}'`
11921                { echo "$as_me:$LINENO: result: $ac_res" >&5
11922 echo "${ECHO_T}$ac_res" >&6; }
11923 if test `eval echo '${'$as_ac_var'}'` = yes; then
11924   cat >>confdefs.h <<_ACEOF
11925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11926 _ACEOF
11927
11928 fi
11929 done
11930
11931
11932
11933
11934 for ac_func in closedir opendir readdir
11935 do
11936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11937 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11939 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11940   echo $ECHO_N "(cached) $ECHO_C" >&6
11941 else
11942   cat >conftest.$ac_ext <<_ACEOF
11943 /* confdefs.h.  */
11944 _ACEOF
11945 cat confdefs.h >>conftest.$ac_ext
11946 cat >>conftest.$ac_ext <<_ACEOF
11947 /* end confdefs.h.  */
11948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11949    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11950 #define $ac_func innocuous_$ac_func
11951
11952 /* System header to define __stub macros and hopefully few prototypes,
11953     which can conflict with char $ac_func (); below.
11954     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11955     <limits.h> exists even on freestanding compilers.  */
11956
11957 #ifdef __STDC__
11958 # include <limits.h>
11959 #else
11960 # include <assert.h>
11961 #endif
11962
11963 #undef $ac_func
11964
11965 /* Override any GCC internal prototype to avoid an error.
11966    Use char because int might match the return type of a GCC
11967    builtin and then its argument prototype would still apply.  */
11968 #ifdef __cplusplus
11969 extern "C"
11970 #endif
11971 char $ac_func ();
11972 /* The GNU C library defines this for functions which it implements
11973     to always fail with ENOSYS.  Some functions are actually named
11974     something starting with __ and the normal name is an alias.  */
11975 #if defined __stub_$ac_func || defined __stub___$ac_func
11976 choke me
11977 #endif
11978
11979 int
11980 main ()
11981 {
11982 return $ac_func ();
11983   ;
11984   return 0;
11985 }
11986 _ACEOF
11987 rm -f conftest.$ac_objext conftest$ac_exeext
11988 if { (ac_try="$ac_link"
11989 case "(($ac_try" in
11990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11991   *) ac_try_echo=$ac_try;;
11992 esac
11993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11994   (eval "$ac_link") 2>conftest.er1
11995   ac_status=$?
11996   grep -v '^ *+' conftest.er1 >conftest.err
11997   rm -f conftest.er1
11998   cat conftest.err >&5
11999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000   (exit $ac_status); } &&
12001          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12002   { (case "(($ac_try" in
12003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12004   *) ac_try_echo=$ac_try;;
12005 esac
12006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12007   (eval "$ac_try") 2>&5
12008   ac_status=$?
12009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010   (exit $ac_status); }; } &&
12011          { ac_try='test -s conftest$ac_exeext'
12012   { (case "(($ac_try" in
12013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014   *) ac_try_echo=$ac_try;;
12015 esac
12016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12017   (eval "$ac_try") 2>&5
12018   ac_status=$?
12019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020   (exit $ac_status); }; }; then
12021   eval "$as_ac_var=yes"
12022 else
12023   echo "$as_me: failed program was:" >&5
12024 sed 's/^/| /' conftest.$ac_ext >&5
12025
12026         eval "$as_ac_var=no"
12027 fi
12028
12029 rm -f core conftest.err conftest.$ac_objext \
12030       conftest$ac_exeext conftest.$ac_ext
12031 fi
12032 ac_res=`eval echo '${'$as_ac_var'}'`
12033                { echo "$as_me:$LINENO: result: $ac_res" >&5
12034 echo "${ECHO_T}$ac_res" >&6; }
12035 if test `eval echo '${'$as_ac_var'}'` = yes; then
12036   cat >>confdefs.h <<_ACEOF
12037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12038 _ACEOF
12039
12040 fi
12041 done
12042
12043
12044
12045 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12046 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12047
12048 ICC=no
12049 IXX=no
12050 case $CC in
12051   icc*|icpc*)
12052     ICC=yes
12053     IXX=yes
12054     ;;
12055    *)
12056     ;;
12057 esac
12058
12059 if test "$GCC" != "yes" && test "$ICC" != "yes"
12060 then
12061   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12062 echo "$as_me: error: gcc|icc required but not found" >&2;}
12063    { (exit 1); exit 1; }; }
12064 fi
12065
12066 if test "$GXX" != "yes" && test "$IXX" != "yes"
12067 then
12068   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12069 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12070    { (exit 1); exit 1; }; }
12071 fi
12072
12073 if test "$GCC" = "yes"
12074 then
12075   cat >conftest.$ac_ext <<_ACEOF
12076 #if !defined(__GNUC__) || __GNUC__ < 3
12077 #error Unsupported GCC version
12078 #endif
12079
12080 _ACEOF
12081 rm -f conftest.$ac_objext
12082 if { (ac_try="$ac_compile"
12083 case "(($ac_try" in
12084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12085   *) ac_try_echo=$ac_try;;
12086 esac
12087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12088   (eval "$ac_compile") 2>conftest.er1
12089   ac_status=$?
12090   grep -v '^ *+' conftest.er1 >conftest.err
12091   rm -f conftest.er1
12092   cat conftest.err >&5
12093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094   (exit $ac_status); } &&
12095          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12096   { (case "(($ac_try" in
12097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12098   *) ac_try_echo=$ac_try;;
12099 esac
12100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12101   (eval "$ac_try") 2>&5
12102   ac_status=$?
12103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104   (exit $ac_status); }; } &&
12105          { ac_try='test -s conftest.$ac_objext'
12106   { (case "(($ac_try" in
12107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108   *) ac_try_echo=$ac_try;;
12109 esac
12110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12111   (eval "$ac_try") 2>&5
12112   ac_status=$?
12113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114   (exit $ac_status); }; }; then
12115   :
12116 else
12117   echo "$as_me: failed program was:" >&5
12118 sed 's/^/| /' conftest.$ac_ext >&5
12119
12120         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12121 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12122    { (exit 1); exit 1; }; }
12123 fi
12124
12125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12126 fi
12127
12128 if test -z "$llvm_cv_gnu_make_command"
12129 then
12130   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12131 echo "$as_me: error: GNU Make required but not found" >&2;}
12132    { (exit 1); exit 1; }; }
12133 fi
12134
12135 { echo "$as_me:$LINENO: result: ok" >&5
12136 echo "${ECHO_T}ok" >&6; }
12137
12138 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12139 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12140 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12141
12142 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12143
12144 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12145
12146 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12147 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12148
12149
12150
12151 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12152 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12153 if test "${ac_cv_lib_m_sin+set}" = set; then
12154   echo $ECHO_N "(cached) $ECHO_C" >&6
12155 else
12156   ac_check_lib_save_LIBS=$LIBS
12157 LIBS="-lm  $LIBS"
12158 cat >conftest.$ac_ext <<_ACEOF
12159 /* confdefs.h.  */
12160 _ACEOF
12161 cat confdefs.h >>conftest.$ac_ext
12162 cat >>conftest.$ac_ext <<_ACEOF
12163 /* end confdefs.h.  */
12164
12165 /* Override any GCC internal prototype to avoid an error.
12166    Use char because int might match the return type of a GCC
12167    builtin and then its argument prototype would still apply.  */
12168 #ifdef __cplusplus
12169 extern "C"
12170 #endif
12171 char sin ();
12172 int
12173 main ()
12174 {
12175 return sin ();
12176   ;
12177   return 0;
12178 }
12179 _ACEOF
12180 rm -f conftest.$ac_objext conftest$ac_exeext
12181 if { (ac_try="$ac_link"
12182 case "(($ac_try" in
12183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12184   *) ac_try_echo=$ac_try;;
12185 esac
12186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12187   (eval "$ac_link") 2>conftest.er1
12188   ac_status=$?
12189   grep -v '^ *+' conftest.er1 >conftest.err
12190   rm -f conftest.er1
12191   cat conftest.err >&5
12192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193   (exit $ac_status); } &&
12194          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12195   { (case "(($ac_try" in
12196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197   *) ac_try_echo=$ac_try;;
12198 esac
12199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200   (eval "$ac_try") 2>&5
12201   ac_status=$?
12202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203   (exit $ac_status); }; } &&
12204          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12214   ac_cv_lib_m_sin=yes
12215 else
12216   echo "$as_me: failed program was:" >&5
12217 sed 's/^/| /' conftest.$ac_ext >&5
12218
12219         ac_cv_lib_m_sin=no
12220 fi
12221
12222 rm -f core conftest.err conftest.$ac_objext \
12223       conftest$ac_exeext conftest.$ac_ext
12224 LIBS=$ac_check_lib_save_LIBS
12225 fi
12226 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12227 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12228 if test $ac_cv_lib_m_sin = yes; then
12229   cat >>confdefs.h <<_ACEOF
12230 #define HAVE_LIBM 1
12231 _ACEOF
12232
12233   LIBS="-lm $LIBS"
12234
12235 fi
12236
12237 if test "$llvm_cv_os_type" = "MingW" ; then
12238
12239 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12240 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12241 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12242   echo $ECHO_N "(cached) $ECHO_C" >&6
12243 else
12244   ac_check_lib_save_LIBS=$LIBS
12245 LIBS="-limagehlp  $LIBS"
12246 cat >conftest.$ac_ext <<_ACEOF
12247 /* confdefs.h.  */
12248 _ACEOF
12249 cat confdefs.h >>conftest.$ac_ext
12250 cat >>conftest.$ac_ext <<_ACEOF
12251 /* end confdefs.h.  */
12252
12253
12254 int
12255 main ()
12256 {
12257 return main ();
12258   ;
12259   return 0;
12260 }
12261 _ACEOF
12262 rm -f conftest.$ac_objext conftest$ac_exeext
12263 if { (ac_try="$ac_link"
12264 case "(($ac_try" in
12265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12266   *) ac_try_echo=$ac_try;;
12267 esac
12268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12269   (eval "$ac_link") 2>conftest.er1
12270   ac_status=$?
12271   grep -v '^ *+' conftest.er1 >conftest.err
12272   rm -f conftest.er1
12273   cat conftest.err >&5
12274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275   (exit $ac_status); } &&
12276          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12277   { (case "(($ac_try" in
12278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12279   *) ac_try_echo=$ac_try;;
12280 esac
12281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12282   (eval "$ac_try") 2>&5
12283   ac_status=$?
12284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285   (exit $ac_status); }; } &&
12286          { ac_try='test -s conftest$ac_exeext'
12287   { (case "(($ac_try" in
12288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12289   *) ac_try_echo=$ac_try;;
12290 esac
12291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12292   (eval "$ac_try") 2>&5
12293   ac_status=$?
12294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295   (exit $ac_status); }; }; then
12296   ac_cv_lib_imagehlp_main=yes
12297 else
12298   echo "$as_me: failed program was:" >&5
12299 sed 's/^/| /' conftest.$ac_ext >&5
12300
12301         ac_cv_lib_imagehlp_main=no
12302 fi
12303
12304 rm -f core conftest.err conftest.$ac_objext \
12305       conftest$ac_exeext conftest.$ac_ext
12306 LIBS=$ac_check_lib_save_LIBS
12307 fi
12308 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12309 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12310 if test $ac_cv_lib_imagehlp_main = yes; then
12311   cat >>confdefs.h <<_ACEOF
12312 #define HAVE_LIBIMAGEHLP 1
12313 _ACEOF
12314
12315   LIBS="-limagehlp $LIBS"
12316
12317 fi
12318
12319
12320 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12321 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12322 if test "${ac_cv_lib_psapi_main+set}" = set; then
12323   echo $ECHO_N "(cached) $ECHO_C" >&6
12324 else
12325   ac_check_lib_save_LIBS=$LIBS
12326 LIBS="-lpsapi  $LIBS"
12327 cat >conftest.$ac_ext <<_ACEOF
12328 /* confdefs.h.  */
12329 _ACEOF
12330 cat confdefs.h >>conftest.$ac_ext
12331 cat >>conftest.$ac_ext <<_ACEOF
12332 /* end confdefs.h.  */
12333
12334
12335 int
12336 main ()
12337 {
12338 return main ();
12339   ;
12340   return 0;
12341 }
12342 _ACEOF
12343 rm -f conftest.$ac_objext conftest$ac_exeext
12344 if { (ac_try="$ac_link"
12345 case "(($ac_try" in
12346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12347   *) ac_try_echo=$ac_try;;
12348 esac
12349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12350   (eval "$ac_link") 2>conftest.er1
12351   ac_status=$?
12352   grep -v '^ *+' conftest.er1 >conftest.err
12353   rm -f conftest.er1
12354   cat conftest.err >&5
12355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356   (exit $ac_status); } &&
12357          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12358   { (case "(($ac_try" in
12359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12360   *) ac_try_echo=$ac_try;;
12361 esac
12362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12363   (eval "$ac_try") 2>&5
12364   ac_status=$?
12365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366   (exit $ac_status); }; } &&
12367          { ac_try='test -s conftest$ac_exeext'
12368   { (case "(($ac_try" in
12369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12370   *) ac_try_echo=$ac_try;;
12371 esac
12372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12373   (eval "$ac_try") 2>&5
12374   ac_status=$?
12375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376   (exit $ac_status); }; }; then
12377   ac_cv_lib_psapi_main=yes
12378 else
12379   echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12381
12382         ac_cv_lib_psapi_main=no
12383 fi
12384
12385 rm -f core conftest.err conftest.$ac_objext \
12386       conftest$ac_exeext conftest.$ac_ext
12387 LIBS=$ac_check_lib_save_LIBS
12388 fi
12389 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12390 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12391 if test $ac_cv_lib_psapi_main = yes; then
12392   cat >>confdefs.h <<_ACEOF
12393 #define HAVE_LIBPSAPI 1
12394 _ACEOF
12395
12396   LIBS="-lpsapi $LIBS"
12397
12398 fi
12399
12400 fi
12401
12402 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12403 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12404 if test "${ac_cv_search_dlopen+set}" = set; then
12405   echo $ECHO_N "(cached) $ECHO_C" >&6
12406 else
12407   ac_func_search_save_LIBS=$LIBS
12408 cat >conftest.$ac_ext <<_ACEOF
12409 /* confdefs.h.  */
12410 _ACEOF
12411 cat confdefs.h >>conftest.$ac_ext
12412 cat >>conftest.$ac_ext <<_ACEOF
12413 /* end confdefs.h.  */
12414
12415 /* Override any GCC internal prototype to avoid an error.
12416    Use char because int might match the return type of a GCC
12417    builtin and then its argument prototype would still apply.  */
12418 #ifdef __cplusplus
12419 extern "C"
12420 #endif
12421 char dlopen ();
12422 int
12423 main ()
12424 {
12425 return dlopen ();
12426   ;
12427   return 0;
12428 }
12429 _ACEOF
12430 for ac_lib in '' dl; do
12431   if test -z "$ac_lib"; then
12432     ac_res="none required"
12433   else
12434     ac_res=-l$ac_lib
12435     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12436   fi
12437   rm -f conftest.$ac_objext conftest$ac_exeext
12438 if { (ac_try="$ac_link"
12439 case "(($ac_try" in
12440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12441   *) ac_try_echo=$ac_try;;
12442 esac
12443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12444   (eval "$ac_link") 2>conftest.er1
12445   ac_status=$?
12446   grep -v '^ *+' conftest.er1 >conftest.err
12447   rm -f conftest.er1
12448   cat conftest.err >&5
12449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450   (exit $ac_status); } &&
12451          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12452   { (case "(($ac_try" in
12453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12454   *) ac_try_echo=$ac_try;;
12455 esac
12456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12457   (eval "$ac_try") 2>&5
12458   ac_status=$?
12459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460   (exit $ac_status); }; } &&
12461          { ac_try='test -s conftest$ac_exeext'
12462   { (case "(($ac_try" in
12463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12464   *) ac_try_echo=$ac_try;;
12465 esac
12466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12467   (eval "$ac_try") 2>&5
12468   ac_status=$?
12469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470   (exit $ac_status); }; }; then
12471   ac_cv_search_dlopen=$ac_res
12472 else
12473   echo "$as_me: failed program was:" >&5
12474 sed 's/^/| /' conftest.$ac_ext >&5
12475
12476
12477 fi
12478
12479 rm -f core conftest.err conftest.$ac_objext \
12480       conftest$ac_exeext
12481   if test "${ac_cv_search_dlopen+set}" = set; then
12482   break
12483 fi
12484 done
12485 if test "${ac_cv_search_dlopen+set}" = set; then
12486   :
12487 else
12488   ac_cv_search_dlopen=no
12489 fi
12490 rm conftest.$ac_ext
12491 LIBS=$ac_func_search_save_LIBS
12492 fi
12493 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12494 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12495 ac_res=$ac_cv_search_dlopen
12496 if test "$ac_res" != no; then
12497   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12498
12499 cat >>confdefs.h <<\_ACEOF
12500 #define HAVE_DLOPEN 1
12501 _ACEOF
12502
12503 else
12504   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12505 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12506 fi
12507
12508
12509 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12510 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12511 if test "${ac_cv_search_clock_gettime+set}" = set; then
12512   echo $ECHO_N "(cached) $ECHO_C" >&6
12513 else
12514   ac_func_search_save_LIBS=$LIBS
12515 cat >conftest.$ac_ext <<_ACEOF
12516 /* confdefs.h.  */
12517 _ACEOF
12518 cat confdefs.h >>conftest.$ac_ext
12519 cat >>conftest.$ac_ext <<_ACEOF
12520 /* end confdefs.h.  */
12521
12522 /* Override any GCC internal prototype to avoid an error.
12523    Use char because int might match the return type of a GCC
12524    builtin and then its argument prototype would still apply.  */
12525 #ifdef __cplusplus
12526 extern "C"
12527 #endif
12528 char clock_gettime ();
12529 int
12530 main ()
12531 {
12532 return clock_gettime ();
12533   ;
12534   return 0;
12535 }
12536 _ACEOF
12537 for ac_lib in '' rt; do
12538   if test -z "$ac_lib"; then
12539     ac_res="none required"
12540   else
12541     ac_res=-l$ac_lib
12542     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12543   fi
12544   rm -f conftest.$ac_objext conftest$ac_exeext
12545 if { (ac_try="$ac_link"
12546 case "(($ac_try" in
12547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12548   *) ac_try_echo=$ac_try;;
12549 esac
12550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12551   (eval "$ac_link") 2>conftest.er1
12552   ac_status=$?
12553   grep -v '^ *+' conftest.er1 >conftest.err
12554   rm -f conftest.er1
12555   cat conftest.err >&5
12556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557   (exit $ac_status); } &&
12558          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12559   { (case "(($ac_try" in
12560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12561   *) ac_try_echo=$ac_try;;
12562 esac
12563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12564   (eval "$ac_try") 2>&5
12565   ac_status=$?
12566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567   (exit $ac_status); }; } &&
12568          { ac_try='test -s conftest$ac_exeext'
12569   { (case "(($ac_try" in
12570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12571   *) ac_try_echo=$ac_try;;
12572 esac
12573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12574   (eval "$ac_try") 2>&5
12575   ac_status=$?
12576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577   (exit $ac_status); }; }; then
12578   ac_cv_search_clock_gettime=$ac_res
12579 else
12580   echo "$as_me: failed program was:" >&5
12581 sed 's/^/| /' conftest.$ac_ext >&5
12582
12583
12584 fi
12585
12586 rm -f core conftest.err conftest.$ac_objext \
12587       conftest$ac_exeext
12588   if test "${ac_cv_search_clock_gettime+set}" = set; then
12589   break
12590 fi
12591 done
12592 if test "${ac_cv_search_clock_gettime+set}" = set; then
12593   :
12594 else
12595   ac_cv_search_clock_gettime=no
12596 fi
12597 rm conftest.$ac_ext
12598 LIBS=$ac_func_search_save_LIBS
12599 fi
12600 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12601 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12602 ac_res=$ac_cv_search_clock_gettime
12603 if test "$ac_res" != no; then
12604   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12605
12606 fi
12607
12608
12609 if test "$llvm_cv_enable_terminfo" = "yes" ; then
12610     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
12611 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
12612 if test "${ac_cv_search_setupterm+set}" = set; then
12613   echo $ECHO_N "(cached) $ECHO_C" >&6
12614 else
12615   ac_func_search_save_LIBS=$LIBS
12616 cat >conftest.$ac_ext <<_ACEOF
12617 /* confdefs.h.  */
12618 _ACEOF
12619 cat confdefs.h >>conftest.$ac_ext
12620 cat >>conftest.$ac_ext <<_ACEOF
12621 /* end confdefs.h.  */
12622
12623 /* Override any GCC internal prototype to avoid an error.
12624    Use char because int might match the return type of a GCC
12625    builtin and then its argument prototype would still apply.  */
12626 #ifdef __cplusplus
12627 extern "C"
12628 #endif
12629 char setupterm ();
12630 int
12631 main ()
12632 {
12633 return setupterm ();
12634   ;
12635   return 0;
12636 }
12637 _ACEOF
12638 for ac_lib in '' tinfo curses ncurses ncursesw; do
12639   if test -z "$ac_lib"; then
12640     ac_res="none required"
12641   else
12642     ac_res=-l$ac_lib
12643     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12644   fi
12645   rm -f conftest.$ac_objext conftest$ac_exeext
12646 if { (ac_try="$ac_link"
12647 case "(($ac_try" in
12648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12649   *) ac_try_echo=$ac_try;;
12650 esac
12651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12652   (eval "$ac_link") 2>conftest.er1
12653   ac_status=$?
12654   grep -v '^ *+' conftest.er1 >conftest.err
12655   rm -f conftest.er1
12656   cat conftest.err >&5
12657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658   (exit $ac_status); } &&
12659          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12660   { (case "(($ac_try" in
12661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12662   *) ac_try_echo=$ac_try;;
12663 esac
12664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12665   (eval "$ac_try") 2>&5
12666   ac_status=$?
12667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668   (exit $ac_status); }; } &&
12669          { ac_try='test -s conftest$ac_exeext'
12670   { (case "(($ac_try" in
12671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12672   *) ac_try_echo=$ac_try;;
12673 esac
12674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12675   (eval "$ac_try") 2>&5
12676   ac_status=$?
12677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678   (exit $ac_status); }; }; then
12679   ac_cv_search_setupterm=$ac_res
12680 else
12681   echo "$as_me: failed program was:" >&5
12682 sed 's/^/| /' conftest.$ac_ext >&5
12683
12684
12685 fi
12686
12687 rm -f core conftest.err conftest.$ac_objext \
12688       conftest$ac_exeext
12689   if test "${ac_cv_search_setupterm+set}" = set; then
12690   break
12691 fi
12692 done
12693 if test "${ac_cv_search_setupterm+set}" = set; then
12694   :
12695 else
12696   ac_cv_search_setupterm=no
12697 fi
12698 rm conftest.$ac_ext
12699 LIBS=$ac_func_search_save_LIBS
12700 fi
12701 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
12702 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
12703 ac_res=$ac_cv_search_setupterm
12704 if test "$ac_res" != no; then
12705   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12706
12707 cat >>confdefs.h <<\_ACEOF
12708 #define HAVE_TERMINFO 1
12709 _ACEOF
12710
12711 fi
12712
12713 fi
12714
12715 if test "$llvm_cv_enable_libffi" = "yes" ; then
12716   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12717 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12718 if test "${ac_cv_search_ffi_call+set}" = set; then
12719   echo $ECHO_N "(cached) $ECHO_C" >&6
12720 else
12721   ac_func_search_save_LIBS=$LIBS
12722 cat >conftest.$ac_ext <<_ACEOF
12723 /* confdefs.h.  */
12724 _ACEOF
12725 cat confdefs.h >>conftest.$ac_ext
12726 cat >>conftest.$ac_ext <<_ACEOF
12727 /* end confdefs.h.  */
12728
12729 /* Override any GCC internal prototype to avoid an error.
12730    Use char because int might match the return type of a GCC
12731    builtin and then its argument prototype would still apply.  */
12732 #ifdef __cplusplus
12733 extern "C"
12734 #endif
12735 char ffi_call ();
12736 int
12737 main ()
12738 {
12739 return ffi_call ();
12740   ;
12741   return 0;
12742 }
12743 _ACEOF
12744 for ac_lib in '' ffi; do
12745   if test -z "$ac_lib"; then
12746     ac_res="none required"
12747   else
12748     ac_res=-l$ac_lib
12749     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12750   fi
12751   rm -f conftest.$ac_objext conftest$ac_exeext
12752 if { (ac_try="$ac_link"
12753 case "(($ac_try" in
12754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12755   *) ac_try_echo=$ac_try;;
12756 esac
12757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12758   (eval "$ac_link") 2>conftest.er1
12759   ac_status=$?
12760   grep -v '^ *+' conftest.er1 >conftest.err
12761   rm -f conftest.er1
12762   cat conftest.err >&5
12763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764   (exit $ac_status); } &&
12765          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12766   { (case "(($ac_try" in
12767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12768   *) ac_try_echo=$ac_try;;
12769 esac
12770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12771   (eval "$ac_try") 2>&5
12772   ac_status=$?
12773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774   (exit $ac_status); }; } &&
12775          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
12782   ac_status=$?
12783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784   (exit $ac_status); }; }; then
12785   ac_cv_search_ffi_call=$ac_res
12786 else
12787   echo "$as_me: failed program was:" >&5
12788 sed 's/^/| /' conftest.$ac_ext >&5
12789
12790
12791 fi
12792
12793 rm -f core conftest.err conftest.$ac_objext \
12794       conftest$ac_exeext
12795   if test "${ac_cv_search_ffi_call+set}" = set; then
12796   break
12797 fi
12798 done
12799 if test "${ac_cv_search_ffi_call+set}" = set; then
12800   :
12801 else
12802   ac_cv_search_ffi_call=no
12803 fi
12804 rm conftest.$ac_ext
12805 LIBS=$ac_func_search_save_LIBS
12806 fi
12807 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12808 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12809 ac_res=$ac_cv_search_ffi_call
12810 if test "$ac_res" != no; then
12811   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12812
12813 cat >>confdefs.h <<\_ACEOF
12814 #define HAVE_FFI_CALL 1
12815 _ACEOF
12816
12817 else
12818   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12819 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12820    { (exit 1); exit 1; }; }
12821 fi
12822
12823 fi
12824
12825 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12826 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12827 if test "${ac_cv_search_mallinfo+set}" = set; then
12828   echo $ECHO_N "(cached) $ECHO_C" >&6
12829 else
12830   ac_func_search_save_LIBS=$LIBS
12831 cat >conftest.$ac_ext <<_ACEOF
12832 /* confdefs.h.  */
12833 _ACEOF
12834 cat confdefs.h >>conftest.$ac_ext
12835 cat >>conftest.$ac_ext <<_ACEOF
12836 /* end confdefs.h.  */
12837
12838 /* Override any GCC internal prototype to avoid an error.
12839    Use char because int might match the return type of a GCC
12840    builtin and then its argument prototype would still apply.  */
12841 #ifdef __cplusplus
12842 extern "C"
12843 #endif
12844 char mallinfo ();
12845 int
12846 main ()
12847 {
12848 return mallinfo ();
12849   ;
12850   return 0;
12851 }
12852 _ACEOF
12853 for ac_lib in '' malloc; do
12854   if test -z "$ac_lib"; then
12855     ac_res="none required"
12856   else
12857     ac_res=-l$ac_lib
12858     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12859   fi
12860   rm -f conftest.$ac_objext conftest$ac_exeext
12861 if { (ac_try="$ac_link"
12862 case "(($ac_try" in
12863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12864   *) ac_try_echo=$ac_try;;
12865 esac
12866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12867   (eval "$ac_link") 2>conftest.er1
12868   ac_status=$?
12869   grep -v '^ *+' conftest.er1 >conftest.err
12870   rm -f conftest.er1
12871   cat conftest.err >&5
12872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873   (exit $ac_status); } &&
12874          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12875   { (case "(($ac_try" in
12876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12877   *) ac_try_echo=$ac_try;;
12878 esac
12879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12880   (eval "$ac_try") 2>&5
12881   ac_status=$?
12882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883   (exit $ac_status); }; } &&
12884          { ac_try='test -s conftest$ac_exeext'
12885   { (case "(($ac_try" in
12886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12887   *) ac_try_echo=$ac_try;;
12888 esac
12889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12890   (eval "$ac_try") 2>&5
12891   ac_status=$?
12892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893   (exit $ac_status); }; }; then
12894   ac_cv_search_mallinfo=$ac_res
12895 else
12896   echo "$as_me: failed program was:" >&5
12897 sed 's/^/| /' conftest.$ac_ext >&5
12898
12899
12900 fi
12901
12902 rm -f core conftest.err conftest.$ac_objext \
12903       conftest$ac_exeext
12904   if test "${ac_cv_search_mallinfo+set}" = set; then
12905   break
12906 fi
12907 done
12908 if test "${ac_cv_search_mallinfo+set}" = set; then
12909   :
12910 else
12911   ac_cv_search_mallinfo=no
12912 fi
12913 rm conftest.$ac_ext
12914 LIBS=$ac_func_search_save_LIBS
12915 fi
12916 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12917 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12918 ac_res=$ac_cv_search_mallinfo
12919 if test "$ac_res" != no; then
12920   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12921
12922 cat >>confdefs.h <<\_ACEOF
12923 #define HAVE_MALLINFO 1
12924 _ACEOF
12925
12926 fi
12927
12928
12929 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12930
12931 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12932 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12933 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12934   echo $ECHO_N "(cached) $ECHO_C" >&6
12935 else
12936   ac_check_lib_save_LIBS=$LIBS
12937 LIBS="-lpthread  $LIBS"
12938 cat >conftest.$ac_ext <<_ACEOF
12939 /* confdefs.h.  */
12940 _ACEOF
12941 cat confdefs.h >>conftest.$ac_ext
12942 cat >>conftest.$ac_ext <<_ACEOF
12943 /* end confdefs.h.  */
12944
12945 /* Override any GCC internal prototype to avoid an error.
12946    Use char because int might match the return type of a GCC
12947    builtin and then its argument prototype would still apply.  */
12948 #ifdef __cplusplus
12949 extern "C"
12950 #endif
12951 char pthread_mutex_init ();
12952 int
12953 main ()
12954 {
12955 return pthread_mutex_init ();
12956   ;
12957   return 0;
12958 }
12959 _ACEOF
12960 rm -f conftest.$ac_objext conftest$ac_exeext
12961 if { (ac_try="$ac_link"
12962 case "(($ac_try" in
12963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12964   *) ac_try_echo=$ac_try;;
12965 esac
12966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12967   (eval "$ac_link") 2>conftest.er1
12968   ac_status=$?
12969   grep -v '^ *+' conftest.er1 >conftest.err
12970   rm -f conftest.er1
12971   cat conftest.err >&5
12972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973   (exit $ac_status); } &&
12974          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12975   { (case "(($ac_try" in
12976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12977   *) ac_try_echo=$ac_try;;
12978 esac
12979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12980   (eval "$ac_try") 2>&5
12981   ac_status=$?
12982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983   (exit $ac_status); }; } &&
12984          { ac_try='test -s conftest$ac_exeext'
12985   { (case "(($ac_try" in
12986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12987   *) ac_try_echo=$ac_try;;
12988 esac
12989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12990   (eval "$ac_try") 2>&5
12991   ac_status=$?
12992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993   (exit $ac_status); }; }; then
12994   ac_cv_lib_pthread_pthread_mutex_init=yes
12995 else
12996   echo "$as_me: failed program was:" >&5
12997 sed 's/^/| /' conftest.$ac_ext >&5
12998
12999         ac_cv_lib_pthread_pthread_mutex_init=no
13000 fi
13001
13002 rm -f core conftest.err conftest.$ac_objext \
13003       conftest$ac_exeext conftest.$ac_ext
13004 LIBS=$ac_check_lib_save_LIBS
13005 fi
13006 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13007 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13008 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13009   cat >>confdefs.h <<_ACEOF
13010 #define HAVE_LIBPTHREAD 1
13011 _ACEOF
13012
13013   LIBS="-lpthread $LIBS"
13014
13015 fi
13016
13017   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13018 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13019 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13020   echo $ECHO_N "(cached) $ECHO_C" >&6
13021 else
13022   ac_func_search_save_LIBS=$LIBS
13023 cat >conftest.$ac_ext <<_ACEOF
13024 /* confdefs.h.  */
13025 _ACEOF
13026 cat confdefs.h >>conftest.$ac_ext
13027 cat >>conftest.$ac_ext <<_ACEOF
13028 /* end confdefs.h.  */
13029
13030 /* Override any GCC internal prototype to avoid an error.
13031    Use char because int might match the return type of a GCC
13032    builtin and then its argument prototype would still apply.  */
13033 #ifdef __cplusplus
13034 extern "C"
13035 #endif
13036 char pthread_mutex_lock ();
13037 int
13038 main ()
13039 {
13040 return pthread_mutex_lock ();
13041   ;
13042   return 0;
13043 }
13044 _ACEOF
13045 for ac_lib in '' pthread; do
13046   if test -z "$ac_lib"; then
13047     ac_res="none required"
13048   else
13049     ac_res=-l$ac_lib
13050     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13051   fi
13052   rm -f conftest.$ac_objext conftest$ac_exeext
13053 if { (ac_try="$ac_link"
13054 case "(($ac_try" in
13055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13056   *) ac_try_echo=$ac_try;;
13057 esac
13058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13059   (eval "$ac_link") 2>conftest.er1
13060   ac_status=$?
13061   grep -v '^ *+' conftest.er1 >conftest.err
13062   rm -f conftest.er1
13063   cat conftest.err >&5
13064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065   (exit $ac_status); } &&
13066          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13067   { (case "(($ac_try" in
13068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13069   *) ac_try_echo=$ac_try;;
13070 esac
13071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13072   (eval "$ac_try") 2>&5
13073   ac_status=$?
13074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075   (exit $ac_status); }; } &&
13076          { ac_try='test -s conftest$ac_exeext'
13077   { (case "(($ac_try" in
13078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079   *) ac_try_echo=$ac_try;;
13080 esac
13081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13082   (eval "$ac_try") 2>&5
13083   ac_status=$?
13084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085   (exit $ac_status); }; }; then
13086   ac_cv_search_pthread_mutex_lock=$ac_res
13087 else
13088   echo "$as_me: failed program was:" >&5
13089 sed 's/^/| /' conftest.$ac_ext >&5
13090
13091
13092 fi
13093
13094 rm -f core conftest.err conftest.$ac_objext \
13095       conftest$ac_exeext
13096   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13097   break
13098 fi
13099 done
13100 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13101   :
13102 else
13103   ac_cv_search_pthread_mutex_lock=no
13104 fi
13105 rm conftest.$ac_ext
13106 LIBS=$ac_func_search_save_LIBS
13107 fi
13108 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13109 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13110 ac_res=$ac_cv_search_pthread_mutex_lock
13111 if test "$ac_res" != no; then
13112   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13113
13114 cat >>confdefs.h <<\_ACEOF
13115 #define HAVE_PTHREAD_MUTEX_LOCK 1
13116 _ACEOF
13117
13118 fi
13119
13120   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13121 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13122 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13123   echo $ECHO_N "(cached) $ECHO_C" >&6
13124 else
13125   ac_func_search_save_LIBS=$LIBS
13126 cat >conftest.$ac_ext <<_ACEOF
13127 /* confdefs.h.  */
13128 _ACEOF
13129 cat confdefs.h >>conftest.$ac_ext
13130 cat >>conftest.$ac_ext <<_ACEOF
13131 /* end confdefs.h.  */
13132
13133 /* Override any GCC internal prototype to avoid an error.
13134    Use char because int might match the return type of a GCC
13135    builtin and then its argument prototype would still apply.  */
13136 #ifdef __cplusplus
13137 extern "C"
13138 #endif
13139 char pthread_rwlock_init ();
13140 int
13141 main ()
13142 {
13143 return pthread_rwlock_init ();
13144   ;
13145   return 0;
13146 }
13147 _ACEOF
13148 for ac_lib in '' pthread; do
13149   if test -z "$ac_lib"; then
13150     ac_res="none required"
13151   else
13152     ac_res=-l$ac_lib
13153     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13154   fi
13155   rm -f conftest.$ac_objext conftest$ac_exeext
13156 if { (ac_try="$ac_link"
13157 case "(($ac_try" in
13158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13159   *) ac_try_echo=$ac_try;;
13160 esac
13161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13162   (eval "$ac_link") 2>conftest.er1
13163   ac_status=$?
13164   grep -v '^ *+' conftest.er1 >conftest.err
13165   rm -f conftest.er1
13166   cat conftest.err >&5
13167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168   (exit $ac_status); } &&
13169          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13170   { (case "(($ac_try" in
13171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13172   *) ac_try_echo=$ac_try;;
13173 esac
13174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13175   (eval "$ac_try") 2>&5
13176   ac_status=$?
13177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178   (exit $ac_status); }; } &&
13179          { ac_try='test -s conftest$ac_exeext'
13180   { (case "(($ac_try" in
13181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13182   *) ac_try_echo=$ac_try;;
13183 esac
13184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13185   (eval "$ac_try") 2>&5
13186   ac_status=$?
13187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188   (exit $ac_status); }; }; then
13189   ac_cv_search_pthread_rwlock_init=$ac_res
13190 else
13191   echo "$as_me: failed program was:" >&5
13192 sed 's/^/| /' conftest.$ac_ext >&5
13193
13194
13195 fi
13196
13197 rm -f core conftest.err conftest.$ac_objext \
13198       conftest$ac_exeext
13199   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13200   break
13201 fi
13202 done
13203 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13204   :
13205 else
13206   ac_cv_search_pthread_rwlock_init=no
13207 fi
13208 rm conftest.$ac_ext
13209 LIBS=$ac_func_search_save_LIBS
13210 fi
13211 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13212 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13213 ac_res=$ac_cv_search_pthread_rwlock_init
13214 if test "$ac_res" != no; then
13215   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13216
13217 cat >>confdefs.h <<\_ACEOF
13218 #define HAVE_PTHREAD_RWLOCK_INIT 1
13219 _ACEOF
13220
13221 fi
13222
13223   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13224 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13225 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13226   echo $ECHO_N "(cached) $ECHO_C" >&6
13227 else
13228   ac_func_search_save_LIBS=$LIBS
13229 cat >conftest.$ac_ext <<_ACEOF
13230 /* confdefs.h.  */
13231 _ACEOF
13232 cat confdefs.h >>conftest.$ac_ext
13233 cat >>conftest.$ac_ext <<_ACEOF
13234 /* end confdefs.h.  */
13235
13236 /* Override any GCC internal prototype to avoid an error.
13237    Use char because int might match the return type of a GCC
13238    builtin and then its argument prototype would still apply.  */
13239 #ifdef __cplusplus
13240 extern "C"
13241 #endif
13242 char pthread_getspecific ();
13243 int
13244 main ()
13245 {
13246 return pthread_getspecific ();
13247   ;
13248   return 0;
13249 }
13250 _ACEOF
13251 for ac_lib in '' pthread; do
13252   if test -z "$ac_lib"; then
13253     ac_res="none required"
13254   else
13255     ac_res=-l$ac_lib
13256     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13257   fi
13258   rm -f conftest.$ac_objext conftest$ac_exeext
13259 if { (ac_try="$ac_link"
13260 case "(($ac_try" in
13261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13262   *) ac_try_echo=$ac_try;;
13263 esac
13264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13265   (eval "$ac_link") 2>conftest.er1
13266   ac_status=$?
13267   grep -v '^ *+' conftest.er1 >conftest.err
13268   rm -f conftest.er1
13269   cat conftest.err >&5
13270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271   (exit $ac_status); } &&
13272          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13273   { (case "(($ac_try" in
13274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13275   *) ac_try_echo=$ac_try;;
13276 esac
13277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13278   (eval "$ac_try") 2>&5
13279   ac_status=$?
13280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281   (exit $ac_status); }; } &&
13282          { ac_try='test -s conftest$ac_exeext'
13283   { (case "(($ac_try" in
13284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13285   *) ac_try_echo=$ac_try;;
13286 esac
13287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13288   (eval "$ac_try") 2>&5
13289   ac_status=$?
13290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291   (exit $ac_status); }; }; then
13292   ac_cv_search_pthread_getspecific=$ac_res
13293 else
13294   echo "$as_me: failed program was:" >&5
13295 sed 's/^/| /' conftest.$ac_ext >&5
13296
13297
13298 fi
13299
13300 rm -f core conftest.err conftest.$ac_objext \
13301       conftest$ac_exeext
13302   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13303   break
13304 fi
13305 done
13306 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13307   :
13308 else
13309   ac_cv_search_pthread_getspecific=no
13310 fi
13311 rm conftest.$ac_ext
13312 LIBS=$ac_func_search_save_LIBS
13313 fi
13314 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13315 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13316 ac_res=$ac_cv_search_pthread_getspecific
13317 if test "$ac_res" != no; then
13318   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13319
13320 cat >>confdefs.h <<\_ACEOF
13321 #define HAVE_PTHREAD_GETSPECIFIC 1
13322 _ACEOF
13323
13324 fi
13325
13326 fi
13327
13328 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13329
13330 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13331 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13332 if test "${ac_cv_lib_z_compress2+set}" = set; then
13333   echo $ECHO_N "(cached) $ECHO_C" >&6
13334 else
13335   ac_check_lib_save_LIBS=$LIBS
13336 LIBS="-lz  $LIBS"
13337 cat >conftest.$ac_ext <<_ACEOF
13338 /* confdefs.h.  */
13339 _ACEOF
13340 cat confdefs.h >>conftest.$ac_ext
13341 cat >>conftest.$ac_ext <<_ACEOF
13342 /* end confdefs.h.  */
13343
13344 /* Override any GCC internal prototype to avoid an error.
13345    Use char because int might match the return type of a GCC
13346    builtin and then its argument prototype would still apply.  */
13347 #ifdef __cplusplus
13348 extern "C"
13349 #endif
13350 char compress2 ();
13351 int
13352 main ()
13353 {
13354 return compress2 ();
13355   ;
13356   return 0;
13357 }
13358 _ACEOF
13359 rm -f conftest.$ac_objext conftest$ac_exeext
13360 if { (ac_try="$ac_link"
13361 case "(($ac_try" in
13362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13363   *) ac_try_echo=$ac_try;;
13364 esac
13365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13366   (eval "$ac_link") 2>conftest.er1
13367   ac_status=$?
13368   grep -v '^ *+' conftest.er1 >conftest.err
13369   rm -f conftest.er1
13370   cat conftest.err >&5
13371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372   (exit $ac_status); } &&
13373          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13374   { (case "(($ac_try" in
13375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13376   *) ac_try_echo=$ac_try;;
13377 esac
13378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13379   (eval "$ac_try") 2>&5
13380   ac_status=$?
13381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382   (exit $ac_status); }; } &&
13383          { ac_try='test -s conftest$ac_exeext'
13384   { (case "(($ac_try" in
13385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13386   *) ac_try_echo=$ac_try;;
13387 esac
13388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13389   (eval "$ac_try") 2>&5
13390   ac_status=$?
13391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392   (exit $ac_status); }; }; then
13393   ac_cv_lib_z_compress2=yes
13394 else
13395   echo "$as_me: failed program was:" >&5
13396 sed 's/^/| /' conftest.$ac_ext >&5
13397
13398         ac_cv_lib_z_compress2=no
13399 fi
13400
13401 rm -f core conftest.err conftest.$ac_objext \
13402       conftest$ac_exeext conftest.$ac_ext
13403 LIBS=$ac_check_lib_save_LIBS
13404 fi
13405 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13406 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13407 if test $ac_cv_lib_z_compress2 = yes; then
13408   cat >>confdefs.h <<_ACEOF
13409 #define HAVE_LIBZ 1
13410 _ACEOF
13411
13412   LIBS="-lz $LIBS"
13413
13414 fi
13415
13416 fi
13417
13418
13419 # Check whether --with-udis86 was given.
13420 if test "${with_udis86+set}" = set; then
13421   withval=$with_udis86;
13422       USE_UDIS86=1
13423
13424       case "$withval" in
13425         /usr/lib|yes) ;;
13426         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13427       esac
13428
13429 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13430 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13431 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13432   echo $ECHO_N "(cached) $ECHO_C" >&6
13433 else
13434   ac_check_lib_save_LIBS=$LIBS
13435 LIBS="-ludis86  $LIBS"
13436 cat >conftest.$ac_ext <<_ACEOF
13437 /* confdefs.h.  */
13438 _ACEOF
13439 cat confdefs.h >>conftest.$ac_ext
13440 cat >>conftest.$ac_ext <<_ACEOF
13441 /* end confdefs.h.  */
13442
13443 /* Override any GCC internal prototype to avoid an error.
13444    Use char because int might match the return type of a GCC
13445    builtin and then its argument prototype would still apply.  */
13446 #ifdef __cplusplus
13447 extern "C"
13448 #endif
13449 char ud_init ();
13450 int
13451 main ()
13452 {
13453 return ud_init ();
13454   ;
13455   return 0;
13456 }
13457 _ACEOF
13458 rm -f conftest.$ac_objext conftest$ac_exeext
13459 if { (ac_try="$ac_link"
13460 case "(($ac_try" in
13461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13462   *) ac_try_echo=$ac_try;;
13463 esac
13464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13465   (eval "$ac_link") 2>conftest.er1
13466   ac_status=$?
13467   grep -v '^ *+' conftest.er1 >conftest.err
13468   rm -f conftest.er1
13469   cat conftest.err >&5
13470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471   (exit $ac_status); } &&
13472          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13473   { (case "(($ac_try" in
13474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13475   *) ac_try_echo=$ac_try;;
13476 esac
13477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13478   (eval "$ac_try") 2>&5
13479   ac_status=$?
13480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481   (exit $ac_status); }; } &&
13482          { ac_try='test -s conftest$ac_exeext'
13483   { (case "(($ac_try" in
13484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485   *) ac_try_echo=$ac_try;;
13486 esac
13487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488   (eval "$ac_try") 2>&5
13489   ac_status=$?
13490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491   (exit $ac_status); }; }; then
13492   ac_cv_lib_udis86_ud_init=yes
13493 else
13494   echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13496
13497         ac_cv_lib_udis86_ud_init=no
13498 fi
13499
13500 rm -f core conftest.err conftest.$ac_objext \
13501       conftest$ac_exeext conftest.$ac_ext
13502 LIBS=$ac_check_lib_save_LIBS
13503 fi
13504 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13505 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13506 if test $ac_cv_lib_udis86_ud_init = yes; then
13507   cat >>confdefs.h <<_ACEOF
13508 #define HAVE_LIBUDIS86 1
13509 _ACEOF
13510
13511   LIBS="-ludis86 $LIBS"
13512
13513 else
13514
13515         echo "Error! You need to have libudis86 around."
13516         exit -1
13517
13518 fi
13519
13520
13521 else
13522   USE_UDIS86=0
13523
13524 fi
13525
13526
13527 cat >>confdefs.h <<_ACEOF
13528 #define USE_UDIS86 $USE_UDIS86
13529 _ACEOF
13530
13531
13532
13533 # Check whether --with-oprofile was given.
13534 if test "${with_oprofile+set}" = set; then
13535   withval=$with_oprofile;
13536       USE_OPROFILE=1
13537
13538       case "$withval" in
13539         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13540         no) llvm_cv_oppath=
13541             USE_OPROFILE=0
13542  ;;
13543         *) llvm_cv_oppath="${withval}/lib/oprofile"
13544            CPPFLAGS="-I${withval}/include";;
13545       esac
13546       if test -n "$llvm_cv_oppath" ; then
13547         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13548                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13549 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13550 if test "${ac_cv_search_bfd_init+set}" = set; then
13551   echo $ECHO_N "(cached) $ECHO_C" >&6
13552 else
13553   ac_func_search_save_LIBS=$LIBS
13554 cat >conftest.$ac_ext <<_ACEOF
13555 /* confdefs.h.  */
13556 _ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h.  */
13560
13561 /* Override any GCC internal prototype to avoid an error.
13562    Use char because int might match the return type of a GCC
13563    builtin and then its argument prototype would still apply.  */
13564 #ifdef __cplusplus
13565 extern "C"
13566 #endif
13567 char bfd_init ();
13568 int
13569 main ()
13570 {
13571 return bfd_init ();
13572   ;
13573   return 0;
13574 }
13575 _ACEOF
13576 for ac_lib in '' bfd; do
13577   if test -z "$ac_lib"; then
13578     ac_res="none required"
13579   else
13580     ac_res=-l$ac_lib
13581     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13582   fi
13583   rm -f conftest.$ac_objext conftest$ac_exeext
13584 if { (ac_try="$ac_link"
13585 case "(($ac_try" in
13586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13587   *) ac_try_echo=$ac_try;;
13588 esac
13589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13590   (eval "$ac_link") 2>conftest.er1
13591   ac_status=$?
13592   grep -v '^ *+' conftest.er1 >conftest.err
13593   rm -f conftest.er1
13594   cat conftest.err >&5
13595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596   (exit $ac_status); } &&
13597          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13598   { (case "(($ac_try" in
13599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13600   *) ac_try_echo=$ac_try;;
13601 esac
13602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13603   (eval "$ac_try") 2>&5
13604   ac_status=$?
13605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606   (exit $ac_status); }; } &&
13607          { ac_try='test -s conftest$ac_exeext'
13608   { (case "(($ac_try" in
13609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13610   *) ac_try_echo=$ac_try;;
13611 esac
13612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13613   (eval "$ac_try") 2>&5
13614   ac_status=$?
13615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616   (exit $ac_status); }; }; then
13617   ac_cv_search_bfd_init=$ac_res
13618 else
13619   echo "$as_me: failed program was:" >&5
13620 sed 's/^/| /' conftest.$ac_ext >&5
13621
13622
13623 fi
13624
13625 rm -f core conftest.err conftest.$ac_objext \
13626       conftest$ac_exeext
13627   if test "${ac_cv_search_bfd_init+set}" = set; then
13628   break
13629 fi
13630 done
13631 if test "${ac_cv_search_bfd_init+set}" = set; then
13632   :
13633 else
13634   ac_cv_search_bfd_init=no
13635 fi
13636 rm conftest.$ac_ext
13637 LIBS=$ac_func_search_save_LIBS
13638 fi
13639 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13640 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13641 ac_res=$ac_cv_search_bfd_init
13642 if test "$ac_res" != no; then
13643   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13644
13645 fi
13646
13647         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13648 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13649 if test "${ac_cv_search_op_open_agent+set}" = set; then
13650   echo $ECHO_N "(cached) $ECHO_C" >&6
13651 else
13652   ac_func_search_save_LIBS=$LIBS
13653 cat >conftest.$ac_ext <<_ACEOF
13654 /* confdefs.h.  */
13655 _ACEOF
13656 cat confdefs.h >>conftest.$ac_ext
13657 cat >>conftest.$ac_ext <<_ACEOF
13658 /* end confdefs.h.  */
13659
13660 /* Override any GCC internal prototype to avoid an error.
13661    Use char because int might match the return type of a GCC
13662    builtin and then its argument prototype would still apply.  */
13663 #ifdef __cplusplus
13664 extern "C"
13665 #endif
13666 char op_open_agent ();
13667 int
13668 main ()
13669 {
13670 return op_open_agent ();
13671   ;
13672   return 0;
13673 }
13674 _ACEOF
13675 for ac_lib in '' opagent; do
13676   if test -z "$ac_lib"; then
13677     ac_res="none required"
13678   else
13679     ac_res=-l$ac_lib
13680     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13681   fi
13682   rm -f conftest.$ac_objext conftest$ac_exeext
13683 if { (ac_try="$ac_link"
13684 case "(($ac_try" in
13685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13686   *) ac_try_echo=$ac_try;;
13687 esac
13688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13689   (eval "$ac_link") 2>conftest.er1
13690   ac_status=$?
13691   grep -v '^ *+' conftest.er1 >conftest.err
13692   rm -f conftest.er1
13693   cat conftest.err >&5
13694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695   (exit $ac_status); } &&
13696          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13697   { (case "(($ac_try" in
13698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13699   *) ac_try_echo=$ac_try;;
13700 esac
13701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13702   (eval "$ac_try") 2>&5
13703   ac_status=$?
13704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705   (exit $ac_status); }; } &&
13706          { ac_try='test -s conftest$ac_exeext'
13707   { (case "(($ac_try" in
13708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13709   *) ac_try_echo=$ac_try;;
13710 esac
13711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13712   (eval "$ac_try") 2>&5
13713   ac_status=$?
13714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715   (exit $ac_status); }; }; then
13716   ac_cv_search_op_open_agent=$ac_res
13717 else
13718   echo "$as_me: failed program was:" >&5
13719 sed 's/^/| /' conftest.$ac_ext >&5
13720
13721
13722 fi
13723
13724 rm -f core conftest.err conftest.$ac_objext \
13725       conftest$ac_exeext
13726   if test "${ac_cv_search_op_open_agent+set}" = set; then
13727   break
13728 fi
13729 done
13730 if test "${ac_cv_search_op_open_agent+set}" = set; then
13731   :
13732 else
13733   ac_cv_search_op_open_agent=no
13734 fi
13735 rm conftest.$ac_ext
13736 LIBS=$ac_func_search_save_LIBS
13737 fi
13738 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13739 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13740 ac_res=$ac_cv_search_op_open_agent
13741 if test "$ac_res" != no; then
13742   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13743
13744 else
13745
13746           echo "Error! You need to have libopagent around."
13747           exit -1
13748
13749 fi
13750
13751         if test "${ac_cv_header_opagent_h+set}" = set; then
13752   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13753 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13754 if test "${ac_cv_header_opagent_h+set}" = set; then
13755   echo $ECHO_N "(cached) $ECHO_C" >&6
13756 fi
13757 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13758 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13759 else
13760   # Is the header compilable?
13761 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13762 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13763 cat >conftest.$ac_ext <<_ACEOF
13764 /* confdefs.h.  */
13765 _ACEOF
13766 cat confdefs.h >>conftest.$ac_ext
13767 cat >>conftest.$ac_ext <<_ACEOF
13768 /* end confdefs.h.  */
13769 $ac_includes_default
13770 #include <opagent.h>
13771 _ACEOF
13772 rm -f conftest.$ac_objext
13773 if { (ac_try="$ac_compile"
13774 case "(($ac_try" in
13775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13776   *) ac_try_echo=$ac_try;;
13777 esac
13778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13779   (eval "$ac_compile") 2>conftest.er1
13780   ac_status=$?
13781   grep -v '^ *+' conftest.er1 >conftest.err
13782   rm -f conftest.er1
13783   cat conftest.err >&5
13784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785   (exit $ac_status); } &&
13786          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13787   { (case "(($ac_try" in
13788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13789   *) ac_try_echo=$ac_try;;
13790 esac
13791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13792   (eval "$ac_try") 2>&5
13793   ac_status=$?
13794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795   (exit $ac_status); }; } &&
13796          { ac_try='test -s conftest.$ac_objext'
13797   { (case "(($ac_try" in
13798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13799   *) ac_try_echo=$ac_try;;
13800 esac
13801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13802   (eval "$ac_try") 2>&5
13803   ac_status=$?
13804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805   (exit $ac_status); }; }; then
13806   ac_header_compiler=yes
13807 else
13808   echo "$as_me: failed program was:" >&5
13809 sed 's/^/| /' conftest.$ac_ext >&5
13810
13811         ac_header_compiler=no
13812 fi
13813
13814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13815 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13816 echo "${ECHO_T}$ac_header_compiler" >&6; }
13817
13818 # Is the header present?
13819 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13820 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13821 cat >conftest.$ac_ext <<_ACEOF
13822 /* confdefs.h.  */
13823 _ACEOF
13824 cat confdefs.h >>conftest.$ac_ext
13825 cat >>conftest.$ac_ext <<_ACEOF
13826 /* end confdefs.h.  */
13827 #include <opagent.h>
13828 _ACEOF
13829 if { (ac_try="$ac_cpp conftest.$ac_ext"
13830 case "(($ac_try" in
13831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13832   *) ac_try_echo=$ac_try;;
13833 esac
13834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13835   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13836   ac_status=$?
13837   grep -v '^ *+' conftest.er1 >conftest.err
13838   rm -f conftest.er1
13839   cat conftest.err >&5
13840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841   (exit $ac_status); } >/dev/null; then
13842   if test -s conftest.err; then
13843     ac_cpp_err=$ac_c_preproc_warn_flag
13844     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13845   else
13846     ac_cpp_err=
13847   fi
13848 else
13849   ac_cpp_err=yes
13850 fi
13851 if test -z "$ac_cpp_err"; then
13852   ac_header_preproc=yes
13853 else
13854   echo "$as_me: failed program was:" >&5
13855 sed 's/^/| /' conftest.$ac_ext >&5
13856
13857   ac_header_preproc=no
13858 fi
13859
13860 rm -f conftest.err conftest.$ac_ext
13861 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13862 echo "${ECHO_T}$ac_header_preproc" >&6; }
13863
13864 # So?  What about this header?
13865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13866   yes:no: )
13867     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13868 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13869     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13870 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13871     ac_header_preproc=yes
13872     ;;
13873   no:yes:* )
13874     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13875 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13876     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13877 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13878     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13879 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13880     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13881 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13882     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13883 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13884     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13885 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13886     ( cat <<\_ASBOX
13887 ## ------------------------------ ##
13888 ## Report this to bugs@yourdomain ##
13889 ## ------------------------------ ##
13890 _ASBOX
13891      ) | sed "s/^/$as_me: WARNING:     /" >&2
13892     ;;
13893 esac
13894 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13895 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13896 if test "${ac_cv_header_opagent_h+set}" = set; then
13897   echo $ECHO_N "(cached) $ECHO_C" >&6
13898 else
13899   ac_cv_header_opagent_h=$ac_header_preproc
13900 fi
13901 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13902 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13903
13904 fi
13905 if test $ac_cv_header_opagent_h = yes; then
13906   :
13907 else
13908
13909           echo "Error! You need to have opagent.h around."
13910           exit -1
13911
13912 fi
13913
13914
13915       fi
13916
13917 else
13918
13919       USE_OPROFILE=0
13920
13921
13922 fi
13923
13924
13925 cat >>confdefs.h <<_ACEOF
13926 #define USE_OPROFILE $USE_OPROFILE
13927 _ACEOF
13928
13929
13930
13931
13932
13933
13934
13935
13936 ac_header_dirent=no
13937 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13938   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13939 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13940 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13942   echo $ECHO_N "(cached) $ECHO_C" >&6
13943 else
13944   cat >conftest.$ac_ext <<_ACEOF
13945 /* confdefs.h.  */
13946 _ACEOF
13947 cat confdefs.h >>conftest.$ac_ext
13948 cat >>conftest.$ac_ext <<_ACEOF
13949 /* end confdefs.h.  */
13950 #include <sys/types.h>
13951 #include <$ac_hdr>
13952
13953 int
13954 main ()
13955 {
13956 if ((DIR *) 0)
13957 return 0;
13958   ;
13959   return 0;
13960 }
13961 _ACEOF
13962 rm -f conftest.$ac_objext
13963 if { (ac_try="$ac_compile"
13964 case "(($ac_try" in
13965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13966   *) ac_try_echo=$ac_try;;
13967 esac
13968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13969   (eval "$ac_compile") 2>conftest.er1
13970   ac_status=$?
13971   grep -v '^ *+' conftest.er1 >conftest.err
13972   rm -f conftest.er1
13973   cat conftest.err >&5
13974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975   (exit $ac_status); } &&
13976          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13977   { (case "(($ac_try" in
13978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13979   *) ac_try_echo=$ac_try;;
13980 esac
13981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13982   (eval "$ac_try") 2>&5
13983   ac_status=$?
13984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985   (exit $ac_status); }; } &&
13986          { ac_try='test -s conftest.$ac_objext'
13987   { (case "(($ac_try" in
13988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13989   *) ac_try_echo=$ac_try;;
13990 esac
13991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13992   (eval "$ac_try") 2>&5
13993   ac_status=$?
13994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995   (exit $ac_status); }; }; then
13996   eval "$as_ac_Header=yes"
13997 else
13998   echo "$as_me: failed program was:" >&5
13999 sed 's/^/| /' conftest.$ac_ext >&5
14000
14001         eval "$as_ac_Header=no"
14002 fi
14003
14004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14005 fi
14006 ac_res=`eval echo '${'$as_ac_Header'}'`
14007                { echo "$as_me:$LINENO: result: $ac_res" >&5
14008 echo "${ECHO_T}$ac_res" >&6; }
14009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14010   cat >>confdefs.h <<_ACEOF
14011 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14012 _ACEOF
14013
14014 ac_header_dirent=$ac_hdr; break
14015 fi
14016
14017 done
14018 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14019 if test $ac_header_dirent = dirent.h; then
14020   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14021 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14022 if test "${ac_cv_search_opendir+set}" = set; then
14023   echo $ECHO_N "(cached) $ECHO_C" >&6
14024 else
14025   ac_func_search_save_LIBS=$LIBS
14026 cat >conftest.$ac_ext <<_ACEOF
14027 /* confdefs.h.  */
14028 _ACEOF
14029 cat confdefs.h >>conftest.$ac_ext
14030 cat >>conftest.$ac_ext <<_ACEOF
14031 /* end confdefs.h.  */
14032
14033 /* Override any GCC internal prototype to avoid an error.
14034    Use char because int might match the return type of a GCC
14035    builtin and then its argument prototype would still apply.  */
14036 #ifdef __cplusplus
14037 extern "C"
14038 #endif
14039 char opendir ();
14040 int
14041 main ()
14042 {
14043 return opendir ();
14044   ;
14045   return 0;
14046 }
14047 _ACEOF
14048 for ac_lib in '' dir; do
14049   if test -z "$ac_lib"; then
14050     ac_res="none required"
14051   else
14052     ac_res=-l$ac_lib
14053     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14054   fi
14055   rm -f conftest.$ac_objext conftest$ac_exeext
14056 if { (ac_try="$ac_link"
14057 case "(($ac_try" in
14058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14059   *) ac_try_echo=$ac_try;;
14060 esac
14061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14062   (eval "$ac_link") 2>conftest.er1
14063   ac_status=$?
14064   grep -v '^ *+' conftest.er1 >conftest.err
14065   rm -f conftest.er1
14066   cat conftest.err >&5
14067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068   (exit $ac_status); } &&
14069          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14070   { (case "(($ac_try" in
14071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14072   *) ac_try_echo=$ac_try;;
14073 esac
14074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14075   (eval "$ac_try") 2>&5
14076   ac_status=$?
14077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078   (exit $ac_status); }; } &&
14079          { ac_try='test -s conftest$ac_exeext'
14080   { (case "(($ac_try" in
14081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14082   *) ac_try_echo=$ac_try;;
14083 esac
14084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14085   (eval "$ac_try") 2>&5
14086   ac_status=$?
14087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088   (exit $ac_status); }; }; then
14089   ac_cv_search_opendir=$ac_res
14090 else
14091   echo "$as_me: failed program was:" >&5
14092 sed 's/^/| /' conftest.$ac_ext >&5
14093
14094
14095 fi
14096
14097 rm -f core conftest.err conftest.$ac_objext \
14098       conftest$ac_exeext
14099   if test "${ac_cv_search_opendir+set}" = set; then
14100   break
14101 fi
14102 done
14103 if test "${ac_cv_search_opendir+set}" = set; then
14104   :
14105 else
14106   ac_cv_search_opendir=no
14107 fi
14108 rm conftest.$ac_ext
14109 LIBS=$ac_func_search_save_LIBS
14110 fi
14111 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14112 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14113 ac_res=$ac_cv_search_opendir
14114 if test "$ac_res" != no; then
14115   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14116
14117 fi
14118
14119 else
14120   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14121 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14122 if test "${ac_cv_search_opendir+set}" = set; then
14123   echo $ECHO_N "(cached) $ECHO_C" >&6
14124 else
14125   ac_func_search_save_LIBS=$LIBS
14126 cat >conftest.$ac_ext <<_ACEOF
14127 /* confdefs.h.  */
14128 _ACEOF
14129 cat confdefs.h >>conftest.$ac_ext
14130 cat >>conftest.$ac_ext <<_ACEOF
14131 /* end confdefs.h.  */
14132
14133 /* Override any GCC internal prototype to avoid an error.
14134    Use char because int might match the return type of a GCC
14135    builtin and then its argument prototype would still apply.  */
14136 #ifdef __cplusplus
14137 extern "C"
14138 #endif
14139 char opendir ();
14140 int
14141 main ()
14142 {
14143 return opendir ();
14144   ;
14145   return 0;
14146 }
14147 _ACEOF
14148 for ac_lib in '' x; do
14149   if test -z "$ac_lib"; then
14150     ac_res="none required"
14151   else
14152     ac_res=-l$ac_lib
14153     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14154   fi
14155   rm -f conftest.$ac_objext conftest$ac_exeext
14156 if { (ac_try="$ac_link"
14157 case "(($ac_try" in
14158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14159   *) ac_try_echo=$ac_try;;
14160 esac
14161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14162   (eval "$ac_link") 2>conftest.er1
14163   ac_status=$?
14164   grep -v '^ *+' conftest.er1 >conftest.err
14165   rm -f conftest.er1
14166   cat conftest.err >&5
14167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168   (exit $ac_status); } &&
14169          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14170   { (case "(($ac_try" in
14171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14172   *) ac_try_echo=$ac_try;;
14173 esac
14174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14175   (eval "$ac_try") 2>&5
14176   ac_status=$?
14177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178   (exit $ac_status); }; } &&
14179          { ac_try='test -s conftest$ac_exeext'
14180   { (case "(($ac_try" in
14181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14182   *) ac_try_echo=$ac_try;;
14183 esac
14184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14185   (eval "$ac_try") 2>&5
14186   ac_status=$?
14187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188   (exit $ac_status); }; }; then
14189   ac_cv_search_opendir=$ac_res
14190 else
14191   echo "$as_me: failed program was:" >&5
14192 sed 's/^/| /' conftest.$ac_ext >&5
14193
14194
14195 fi
14196
14197 rm -f core conftest.err conftest.$ac_objext \
14198       conftest$ac_exeext
14199   if test "${ac_cv_search_opendir+set}" = set; then
14200   break
14201 fi
14202 done
14203 if test "${ac_cv_search_opendir+set}" = set; then
14204   :
14205 else
14206   ac_cv_search_opendir=no
14207 fi
14208 rm conftest.$ac_ext
14209 LIBS=$ac_func_search_save_LIBS
14210 fi
14211 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14212 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14213 ac_res=$ac_cv_search_opendir
14214 if test "$ac_res" != no; then
14215   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14216
14217 fi
14218
14219 fi
14220
14221 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14222 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14223 if test "${ac_cv_header_mmap_anon+set}" = set; then
14224   echo $ECHO_N "(cached) $ECHO_C" >&6
14225 else
14226    ac_ext=c
14227 ac_cpp='$CPP $CPPFLAGS'
14228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14231
14232   cat >conftest.$ac_ext <<_ACEOF
14233 /* confdefs.h.  */
14234 _ACEOF
14235 cat confdefs.h >>conftest.$ac_ext
14236 cat >>conftest.$ac_ext <<_ACEOF
14237 /* end confdefs.h.  */
14238 #include <sys/mman.h>
14239 #include <unistd.h>
14240 #include <fcntl.h>
14241 int
14242 main ()
14243 {
14244 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14245   ;
14246   return 0;
14247 }
14248 _ACEOF
14249 rm -f conftest.$ac_objext
14250 if { (ac_try="$ac_compile"
14251 case "(($ac_try" in
14252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14253   *) ac_try_echo=$ac_try;;
14254 esac
14255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14256   (eval "$ac_compile") 2>conftest.er1
14257   ac_status=$?
14258   grep -v '^ *+' conftest.er1 >conftest.err
14259   rm -f conftest.er1
14260   cat conftest.err >&5
14261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262   (exit $ac_status); } &&
14263          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14264   { (case "(($ac_try" in
14265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14266   *) ac_try_echo=$ac_try;;
14267 esac
14268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14269   (eval "$ac_try") 2>&5
14270   ac_status=$?
14271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272   (exit $ac_status); }; } &&
14273          { ac_try='test -s conftest.$ac_objext'
14274   { (case "(($ac_try" in
14275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14276   *) ac_try_echo=$ac_try;;
14277 esac
14278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14279   (eval "$ac_try") 2>&5
14280   ac_status=$?
14281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282   (exit $ac_status); }; }; then
14283   ac_cv_header_mmap_anon=yes
14284 else
14285   echo "$as_me: failed program was:" >&5
14286 sed 's/^/| /' conftest.$ac_ext >&5
14287
14288         ac_cv_header_mmap_anon=no
14289 fi
14290
14291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14292   ac_ext=c
14293 ac_cpp='$CPP $CPPFLAGS'
14294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14297
14298
14299 fi
14300 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14301 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14302 if test "$ac_cv_header_mmap_anon" = yes; then
14303
14304 cat >>confdefs.h <<\_ACEOF
14305 #define HAVE_MMAP_ANONYMOUS 1
14306 _ACEOF
14307
14308 fi
14309
14310 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14311 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14312 if test "${ac_cv_header_stat_broken+set}" = set; then
14313   echo $ECHO_N "(cached) $ECHO_C" >&6
14314 else
14315   cat >conftest.$ac_ext <<_ACEOF
14316 /* confdefs.h.  */
14317 _ACEOF
14318 cat confdefs.h >>conftest.$ac_ext
14319 cat >>conftest.$ac_ext <<_ACEOF
14320 /* end confdefs.h.  */
14321 #include <sys/types.h>
14322 #include <sys/stat.h>
14323
14324 #if defined S_ISBLK && defined S_IFDIR
14325 # if S_ISBLK (S_IFDIR)
14326 You lose.
14327 # endif
14328 #endif
14329
14330 #if defined S_ISBLK && defined S_IFCHR
14331 # if S_ISBLK (S_IFCHR)
14332 You lose.
14333 # endif
14334 #endif
14335
14336 #if defined S_ISLNK && defined S_IFREG
14337 # if S_ISLNK (S_IFREG)
14338 You lose.
14339 # endif
14340 #endif
14341
14342 #if defined S_ISSOCK && defined S_IFREG
14343 # if S_ISSOCK (S_IFREG)
14344 You lose.
14345 # endif
14346 #endif
14347
14348 _ACEOF
14349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14350   $EGREP "You lose" >/dev/null 2>&1; then
14351   ac_cv_header_stat_broken=yes
14352 else
14353   ac_cv_header_stat_broken=no
14354 fi
14355 rm -f conftest*
14356
14357 fi
14358 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14359 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14360 if test $ac_cv_header_stat_broken = yes; then
14361
14362 cat >>confdefs.h <<\_ACEOF
14363 #define STAT_MACROS_BROKEN 1
14364 _ACEOF
14365
14366 fi
14367
14368 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14369 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14370 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14371   echo $ECHO_N "(cached) $ECHO_C" >&6
14372 else
14373   cat >conftest.$ac_ext <<_ACEOF
14374 /* confdefs.h.  */
14375 _ACEOF
14376 cat confdefs.h >>conftest.$ac_ext
14377 cat >>conftest.$ac_ext <<_ACEOF
14378 /* end confdefs.h.  */
14379 #include <sys/types.h>
14380 #include <sys/wait.h>
14381 #ifndef WEXITSTATUS
14382 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14383 #endif
14384 #ifndef WIFEXITED
14385 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14386 #endif
14387
14388 int
14389 main ()
14390 {
14391   int s;
14392   wait (&s);
14393   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14394   ;
14395   return 0;
14396 }
14397 _ACEOF
14398 rm -f conftest.$ac_objext
14399 if { (ac_try="$ac_compile"
14400 case "(($ac_try" in
14401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14402   *) ac_try_echo=$ac_try;;
14403 esac
14404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14405   (eval "$ac_compile") 2>conftest.er1
14406   ac_status=$?
14407   grep -v '^ *+' conftest.er1 >conftest.err
14408   rm -f conftest.er1
14409   cat conftest.err >&5
14410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411   (exit $ac_status); } &&
14412          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14413   { (case "(($ac_try" in
14414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14415   *) ac_try_echo=$ac_try;;
14416 esac
14417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14418   (eval "$ac_try") 2>&5
14419   ac_status=$?
14420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421   (exit $ac_status); }; } &&
14422          { ac_try='test -s conftest.$ac_objext'
14423   { (case "(($ac_try" in
14424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14425   *) ac_try_echo=$ac_try;;
14426 esac
14427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14428   (eval "$ac_try") 2>&5
14429   ac_status=$?
14430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431   (exit $ac_status); }; }; then
14432   ac_cv_header_sys_wait_h=yes
14433 else
14434   echo "$as_me: failed program was:" >&5
14435 sed 's/^/| /' conftest.$ac_ext >&5
14436
14437         ac_cv_header_sys_wait_h=no
14438 fi
14439
14440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14441 fi
14442 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14443 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14444 if test $ac_cv_header_sys_wait_h = yes; then
14445
14446 cat >>confdefs.h <<\_ACEOF
14447 #define HAVE_SYS_WAIT_H 1
14448 _ACEOF
14449
14450 fi
14451
14452 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14453 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14454 if test "${ac_cv_header_time+set}" = set; then
14455   echo $ECHO_N "(cached) $ECHO_C" >&6
14456 else
14457   cat >conftest.$ac_ext <<_ACEOF
14458 /* confdefs.h.  */
14459 _ACEOF
14460 cat confdefs.h >>conftest.$ac_ext
14461 cat >>conftest.$ac_ext <<_ACEOF
14462 /* end confdefs.h.  */
14463 #include <sys/types.h>
14464 #include <sys/time.h>
14465 #include <time.h>
14466
14467 int
14468 main ()
14469 {
14470 if ((struct tm *) 0)
14471 return 0;
14472   ;
14473   return 0;
14474 }
14475 _ACEOF
14476 rm -f conftest.$ac_objext
14477 if { (ac_try="$ac_compile"
14478 case "(($ac_try" in
14479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14480   *) ac_try_echo=$ac_try;;
14481 esac
14482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14483   (eval "$ac_compile") 2>conftest.er1
14484   ac_status=$?
14485   grep -v '^ *+' conftest.er1 >conftest.err
14486   rm -f conftest.er1
14487   cat conftest.err >&5
14488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489   (exit $ac_status); } &&
14490          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14491   { (case "(($ac_try" in
14492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14493   *) ac_try_echo=$ac_try;;
14494 esac
14495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14496   (eval "$ac_try") 2>&5
14497   ac_status=$?
14498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499   (exit $ac_status); }; } &&
14500          { ac_try='test -s conftest.$ac_objext'
14501   { (case "(($ac_try" in
14502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14503   *) ac_try_echo=$ac_try;;
14504 esac
14505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14506   (eval "$ac_try") 2>&5
14507   ac_status=$?
14508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509   (exit $ac_status); }; }; then
14510   ac_cv_header_time=yes
14511 else
14512   echo "$as_me: failed program was:" >&5
14513 sed 's/^/| /' conftest.$ac_ext >&5
14514
14515         ac_cv_header_time=no
14516 fi
14517
14518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14519 fi
14520 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14521 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14522 if test $ac_cv_header_time = yes; then
14523
14524 cat >>confdefs.h <<\_ACEOF
14525 #define TIME_WITH_SYS_TIME 1
14526 _ACEOF
14527
14528 fi
14529
14530
14531
14532
14533
14534
14535
14536
14537 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14538 do
14539 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14541   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14544   echo $ECHO_N "(cached) $ECHO_C" >&6
14545 fi
14546 ac_res=`eval echo '${'$as_ac_Header'}'`
14547                { echo "$as_me:$LINENO: result: $ac_res" >&5
14548 echo "${ECHO_T}$ac_res" >&6; }
14549 else
14550   # Is the header compilable?
14551 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14552 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14553 cat >conftest.$ac_ext <<_ACEOF
14554 /* confdefs.h.  */
14555 _ACEOF
14556 cat confdefs.h >>conftest.$ac_ext
14557 cat >>conftest.$ac_ext <<_ACEOF
14558 /* end confdefs.h.  */
14559 $ac_includes_default
14560 #include <$ac_header>
14561 _ACEOF
14562 rm -f conftest.$ac_objext
14563 if { (ac_try="$ac_compile"
14564 case "(($ac_try" in
14565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14566   *) ac_try_echo=$ac_try;;
14567 esac
14568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14569   (eval "$ac_compile") 2>conftest.er1
14570   ac_status=$?
14571   grep -v '^ *+' conftest.er1 >conftest.err
14572   rm -f conftest.er1
14573   cat conftest.err >&5
14574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575   (exit $ac_status); } &&
14576          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14577   { (case "(($ac_try" in
14578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14579   *) ac_try_echo=$ac_try;;
14580 esac
14581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14582   (eval "$ac_try") 2>&5
14583   ac_status=$?
14584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585   (exit $ac_status); }; } &&
14586          { ac_try='test -s conftest.$ac_objext'
14587   { (case "(($ac_try" in
14588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14589   *) ac_try_echo=$ac_try;;
14590 esac
14591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14592   (eval "$ac_try") 2>&5
14593   ac_status=$?
14594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595   (exit $ac_status); }; }; then
14596   ac_header_compiler=yes
14597 else
14598   echo "$as_me: failed program was:" >&5
14599 sed 's/^/| /' conftest.$ac_ext >&5
14600
14601         ac_header_compiler=no
14602 fi
14603
14604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14605 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14606 echo "${ECHO_T}$ac_header_compiler" >&6; }
14607
14608 # Is the header present?
14609 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14610 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14611 cat >conftest.$ac_ext <<_ACEOF
14612 /* confdefs.h.  */
14613 _ACEOF
14614 cat confdefs.h >>conftest.$ac_ext
14615 cat >>conftest.$ac_ext <<_ACEOF
14616 /* end confdefs.h.  */
14617 #include <$ac_header>
14618 _ACEOF
14619 if { (ac_try="$ac_cpp conftest.$ac_ext"
14620 case "(($ac_try" in
14621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14622   *) ac_try_echo=$ac_try;;
14623 esac
14624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14625   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14626   ac_status=$?
14627   grep -v '^ *+' conftest.er1 >conftest.err
14628   rm -f conftest.er1
14629   cat conftest.err >&5
14630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631   (exit $ac_status); } >/dev/null; then
14632   if test -s conftest.err; then
14633     ac_cpp_err=$ac_c_preproc_warn_flag
14634     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14635   else
14636     ac_cpp_err=
14637   fi
14638 else
14639   ac_cpp_err=yes
14640 fi
14641 if test -z "$ac_cpp_err"; then
14642   ac_header_preproc=yes
14643 else
14644   echo "$as_me: failed program was:" >&5
14645 sed 's/^/| /' conftest.$ac_ext >&5
14646
14647   ac_header_preproc=no
14648 fi
14649
14650 rm -f conftest.err conftest.$ac_ext
14651 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14652 echo "${ECHO_T}$ac_header_preproc" >&6; }
14653
14654 # So?  What about this header?
14655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14656   yes:no: )
14657     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14658 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14659     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14660 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14661     ac_header_preproc=yes
14662     ;;
14663   no:yes:* )
14664     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14665 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14666     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14667 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14668     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14669 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14670     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14671 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14672     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14674     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14675 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14676     ( cat <<\_ASBOX
14677 ## ------------------------------ ##
14678 ## Report this to bugs@yourdomain ##
14679 ## ------------------------------ ##
14680 _ASBOX
14681      ) | sed "s/^/$as_me: WARNING:     /" >&2
14682     ;;
14683 esac
14684 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14687   echo $ECHO_N "(cached) $ECHO_C" >&6
14688 else
14689   eval "$as_ac_Header=\$ac_header_preproc"
14690 fi
14691 ac_res=`eval echo '${'$as_ac_Header'}'`
14692                { echo "$as_me:$LINENO: result: $ac_res" >&5
14693 echo "${ECHO_T}$ac_res" >&6; }
14694
14695 fi
14696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14697   cat >>confdefs.h <<_ACEOF
14698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14699 _ACEOF
14700
14701 fi
14702
14703 done
14704
14705
14706
14707
14708
14709
14710
14711 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14712 do
14713 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14715   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14718   echo $ECHO_N "(cached) $ECHO_C" >&6
14719 fi
14720 ac_res=`eval echo '${'$as_ac_Header'}'`
14721                { echo "$as_me:$LINENO: result: $ac_res" >&5
14722 echo "${ECHO_T}$ac_res" >&6; }
14723 else
14724   # Is the header compilable?
14725 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14726 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14727 cat >conftest.$ac_ext <<_ACEOF
14728 /* confdefs.h.  */
14729 _ACEOF
14730 cat confdefs.h >>conftest.$ac_ext
14731 cat >>conftest.$ac_ext <<_ACEOF
14732 /* end confdefs.h.  */
14733 $ac_includes_default
14734 #include <$ac_header>
14735 _ACEOF
14736 rm -f conftest.$ac_objext
14737 if { (ac_try="$ac_compile"
14738 case "(($ac_try" in
14739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14740   *) ac_try_echo=$ac_try;;
14741 esac
14742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14743   (eval "$ac_compile") 2>conftest.er1
14744   ac_status=$?
14745   grep -v '^ *+' conftest.er1 >conftest.err
14746   rm -f conftest.er1
14747   cat conftest.err >&5
14748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749   (exit $ac_status); } &&
14750          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14751   { (case "(($ac_try" in
14752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753   *) ac_try_echo=$ac_try;;
14754 esac
14755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14756   (eval "$ac_try") 2>&5
14757   ac_status=$?
14758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759   (exit $ac_status); }; } &&
14760          { ac_try='test -s conftest.$ac_objext'
14761   { (case "(($ac_try" in
14762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14763   *) ac_try_echo=$ac_try;;
14764 esac
14765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14766   (eval "$ac_try") 2>&5
14767   ac_status=$?
14768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769   (exit $ac_status); }; }; then
14770   ac_header_compiler=yes
14771 else
14772   echo "$as_me: failed program was:" >&5
14773 sed 's/^/| /' conftest.$ac_ext >&5
14774
14775         ac_header_compiler=no
14776 fi
14777
14778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14779 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14780 echo "${ECHO_T}$ac_header_compiler" >&6; }
14781
14782 # Is the header present?
14783 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14784 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14785 cat >conftest.$ac_ext <<_ACEOF
14786 /* confdefs.h.  */
14787 _ACEOF
14788 cat confdefs.h >>conftest.$ac_ext
14789 cat >>conftest.$ac_ext <<_ACEOF
14790 /* end confdefs.h.  */
14791 #include <$ac_header>
14792 _ACEOF
14793 if { (ac_try="$ac_cpp conftest.$ac_ext"
14794 case "(($ac_try" in
14795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14796   *) ac_try_echo=$ac_try;;
14797 esac
14798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14799   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14800   ac_status=$?
14801   grep -v '^ *+' conftest.er1 >conftest.err
14802   rm -f conftest.er1
14803   cat conftest.err >&5
14804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805   (exit $ac_status); } >/dev/null; then
14806   if test -s conftest.err; then
14807     ac_cpp_err=$ac_c_preproc_warn_flag
14808     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14809   else
14810     ac_cpp_err=
14811   fi
14812 else
14813   ac_cpp_err=yes
14814 fi
14815 if test -z "$ac_cpp_err"; then
14816   ac_header_preproc=yes
14817 else
14818   echo "$as_me: failed program was:" >&5
14819 sed 's/^/| /' conftest.$ac_ext >&5
14820
14821   ac_header_preproc=no
14822 fi
14823
14824 rm -f conftest.err conftest.$ac_ext
14825 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14826 echo "${ECHO_T}$ac_header_preproc" >&6; }
14827
14828 # So?  What about this header?
14829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14830   yes:no: )
14831     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14832 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14833     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14834 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14835     ac_header_preproc=yes
14836     ;;
14837   no:yes:* )
14838     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14839 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14840     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14841 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14842     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14843 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14844     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14845 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14846     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14848     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14849 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14850     ( cat <<\_ASBOX
14851 ## ------------------------------ ##
14852 ## Report this to bugs@yourdomain ##
14853 ## ------------------------------ ##
14854 _ASBOX
14855      ) | sed "s/^/$as_me: WARNING:     /" >&2
14856     ;;
14857 esac
14858 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14861   echo $ECHO_N "(cached) $ECHO_C" >&6
14862 else
14863   eval "$as_ac_Header=\$ac_header_preproc"
14864 fi
14865 ac_res=`eval echo '${'$as_ac_Header'}'`
14866                { echo "$as_me:$LINENO: result: $ac_res" >&5
14867 echo "${ECHO_T}$ac_res" >&6; }
14868
14869 fi
14870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14871   cat >>confdefs.h <<_ACEOF
14872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14873 _ACEOF
14874
14875 fi
14876
14877 done
14878
14879
14880
14881 for ac_header in utime.h windows.h
14882 do
14883 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14885   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14888   echo $ECHO_N "(cached) $ECHO_C" >&6
14889 fi
14890 ac_res=`eval echo '${'$as_ac_Header'}'`
14891                { echo "$as_me:$LINENO: result: $ac_res" >&5
14892 echo "${ECHO_T}$ac_res" >&6; }
14893 else
14894   # Is the header compilable?
14895 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14896 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14897 cat >conftest.$ac_ext <<_ACEOF
14898 /* confdefs.h.  */
14899 _ACEOF
14900 cat confdefs.h >>conftest.$ac_ext
14901 cat >>conftest.$ac_ext <<_ACEOF
14902 /* end confdefs.h.  */
14903 $ac_includes_default
14904 #include <$ac_header>
14905 _ACEOF
14906 rm -f conftest.$ac_objext
14907 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
14914   ac_status=$?
14915   grep -v '^ *+' conftest.er1 >conftest.err
14916   rm -f conftest.er1
14917   cat conftest.err >&5
14918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919   (exit $ac_status); } &&
14920          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14921   { (case "(($ac_try" in
14922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14923   *) ac_try_echo=$ac_try;;
14924 esac
14925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14926   (eval "$ac_try") 2>&5
14927   ac_status=$?
14928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929   (exit $ac_status); }; } &&
14930          { ac_try='test -s conftest.$ac_objext'
14931   { (case "(($ac_try" in
14932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14933   *) ac_try_echo=$ac_try;;
14934 esac
14935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14936   (eval "$ac_try") 2>&5
14937   ac_status=$?
14938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939   (exit $ac_status); }; }; then
14940   ac_header_compiler=yes
14941 else
14942   echo "$as_me: failed program was:" >&5
14943 sed 's/^/| /' conftest.$ac_ext >&5
14944
14945         ac_header_compiler=no
14946 fi
14947
14948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14949 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14950 echo "${ECHO_T}$ac_header_compiler" >&6; }
14951
14952 # Is the header present?
14953 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14954 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14955 cat >conftest.$ac_ext <<_ACEOF
14956 /* confdefs.h.  */
14957 _ACEOF
14958 cat confdefs.h >>conftest.$ac_ext
14959 cat >>conftest.$ac_ext <<_ACEOF
14960 /* end confdefs.h.  */
14961 #include <$ac_header>
14962 _ACEOF
14963 if { (ac_try="$ac_cpp conftest.$ac_ext"
14964 case "(($ac_try" in
14965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14966   *) ac_try_echo=$ac_try;;
14967 esac
14968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14969   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14970   ac_status=$?
14971   grep -v '^ *+' conftest.er1 >conftest.err
14972   rm -f conftest.er1
14973   cat conftest.err >&5
14974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975   (exit $ac_status); } >/dev/null; then
14976   if test -s conftest.err; then
14977     ac_cpp_err=$ac_c_preproc_warn_flag
14978     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14979   else
14980     ac_cpp_err=
14981   fi
14982 else
14983   ac_cpp_err=yes
14984 fi
14985 if test -z "$ac_cpp_err"; then
14986   ac_header_preproc=yes
14987 else
14988   echo "$as_me: failed program was:" >&5
14989 sed 's/^/| /' conftest.$ac_ext >&5
14990
14991   ac_header_preproc=no
14992 fi
14993
14994 rm -f conftest.err conftest.$ac_ext
14995 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14996 echo "${ECHO_T}$ac_header_preproc" >&6; }
14997
14998 # So?  What about this header?
14999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15000   yes:no: )
15001     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15002 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15003     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15004 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15005     ac_header_preproc=yes
15006     ;;
15007   no:yes:* )
15008     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15009 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15010     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15011 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15012     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15013 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15014     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15015 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15016     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15018     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15019 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15020     ( cat <<\_ASBOX
15021 ## ------------------------------ ##
15022 ## Report this to bugs@yourdomain ##
15023 ## ------------------------------ ##
15024 _ASBOX
15025      ) | sed "s/^/$as_me: WARNING:     /" >&2
15026     ;;
15027 esac
15028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15031   echo $ECHO_N "(cached) $ECHO_C" >&6
15032 else
15033   eval "$as_ac_Header=\$ac_header_preproc"
15034 fi
15035 ac_res=`eval echo '${'$as_ac_Header'}'`
15036                { echo "$as_me:$LINENO: result: $ac_res" >&5
15037 echo "${ECHO_T}$ac_res" >&6; }
15038
15039 fi
15040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15041   cat >>confdefs.h <<_ACEOF
15042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15043 _ACEOF
15044
15045 fi
15046
15047 done
15048
15049
15050
15051
15052
15053
15054 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15055 do
15056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15058   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15061   echo $ECHO_N "(cached) $ECHO_C" >&6
15062 fi
15063 ac_res=`eval echo '${'$as_ac_Header'}'`
15064                { echo "$as_me:$LINENO: result: $ac_res" >&5
15065 echo "${ECHO_T}$ac_res" >&6; }
15066 else
15067   # Is the header compilable?
15068 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15069 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15070 cat >conftest.$ac_ext <<_ACEOF
15071 /* confdefs.h.  */
15072 _ACEOF
15073 cat confdefs.h >>conftest.$ac_ext
15074 cat >>conftest.$ac_ext <<_ACEOF
15075 /* end confdefs.h.  */
15076 $ac_includes_default
15077 #include <$ac_header>
15078 _ACEOF
15079 rm -f conftest.$ac_objext
15080 if { (ac_try="$ac_compile"
15081 case "(($ac_try" in
15082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15083   *) ac_try_echo=$ac_try;;
15084 esac
15085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15086   (eval "$ac_compile") 2>conftest.er1
15087   ac_status=$?
15088   grep -v '^ *+' conftest.er1 >conftest.err
15089   rm -f conftest.er1
15090   cat conftest.err >&5
15091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092   (exit $ac_status); } &&
15093          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15094   { (case "(($ac_try" in
15095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15096   *) ac_try_echo=$ac_try;;
15097 esac
15098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15099   (eval "$ac_try") 2>&5
15100   ac_status=$?
15101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102   (exit $ac_status); }; } &&
15103          { ac_try='test -s conftest.$ac_objext'
15104   { (case "(($ac_try" in
15105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15106   *) ac_try_echo=$ac_try;;
15107 esac
15108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15109   (eval "$ac_try") 2>&5
15110   ac_status=$?
15111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112   (exit $ac_status); }; }; then
15113   ac_header_compiler=yes
15114 else
15115   echo "$as_me: failed program was:" >&5
15116 sed 's/^/| /' conftest.$ac_ext >&5
15117
15118         ac_header_compiler=no
15119 fi
15120
15121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15122 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15123 echo "${ECHO_T}$ac_header_compiler" >&6; }
15124
15125 # Is the header present?
15126 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15127 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15128 cat >conftest.$ac_ext <<_ACEOF
15129 /* confdefs.h.  */
15130 _ACEOF
15131 cat confdefs.h >>conftest.$ac_ext
15132 cat >>conftest.$ac_ext <<_ACEOF
15133 /* end confdefs.h.  */
15134 #include <$ac_header>
15135 _ACEOF
15136 if { (ac_try="$ac_cpp conftest.$ac_ext"
15137 case "(($ac_try" in
15138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15139   *) ac_try_echo=$ac_try;;
15140 esac
15141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15142   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15143   ac_status=$?
15144   grep -v '^ *+' conftest.er1 >conftest.err
15145   rm -f conftest.er1
15146   cat conftest.err >&5
15147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148   (exit $ac_status); } >/dev/null; then
15149   if test -s conftest.err; then
15150     ac_cpp_err=$ac_c_preproc_warn_flag
15151     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15152   else
15153     ac_cpp_err=
15154   fi
15155 else
15156   ac_cpp_err=yes
15157 fi
15158 if test -z "$ac_cpp_err"; then
15159   ac_header_preproc=yes
15160 else
15161   echo "$as_me: failed program was:" >&5
15162 sed 's/^/| /' conftest.$ac_ext >&5
15163
15164   ac_header_preproc=no
15165 fi
15166
15167 rm -f conftest.err conftest.$ac_ext
15168 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15169 echo "${ECHO_T}$ac_header_preproc" >&6; }
15170
15171 # So?  What about this header?
15172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15173   yes:no: )
15174     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15176     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15177 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15178     ac_header_preproc=yes
15179     ;;
15180   no:yes:* )
15181     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15183     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15184 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15185     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15186 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15187     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15188 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15189     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15191     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15192 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15193     ( cat <<\_ASBOX
15194 ## ------------------------------ ##
15195 ## Report this to bugs@yourdomain ##
15196 ## ------------------------------ ##
15197 _ASBOX
15198      ) | sed "s/^/$as_me: WARNING:     /" >&2
15199     ;;
15200 esac
15201 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15204   echo $ECHO_N "(cached) $ECHO_C" >&6
15205 else
15206   eval "$as_ac_Header=\$ac_header_preproc"
15207 fi
15208 ac_res=`eval echo '${'$as_ac_Header'}'`
15209                { echo "$as_me:$LINENO: result: $ac_res" >&5
15210 echo "${ECHO_T}$ac_res" >&6; }
15211
15212 fi
15213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15214   cat >>confdefs.h <<_ACEOF
15215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15216 _ACEOF
15217
15218 fi
15219
15220 done
15221
15222
15223
15224
15225
15226 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15227 do
15228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15230   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15233   echo $ECHO_N "(cached) $ECHO_C" >&6
15234 fi
15235 ac_res=`eval echo '${'$as_ac_Header'}'`
15236                { echo "$as_me:$LINENO: result: $ac_res" >&5
15237 echo "${ECHO_T}$ac_res" >&6; }
15238 else
15239   # Is the header compilable?
15240 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15242 cat >conftest.$ac_ext <<_ACEOF
15243 /* confdefs.h.  */
15244 _ACEOF
15245 cat confdefs.h >>conftest.$ac_ext
15246 cat >>conftest.$ac_ext <<_ACEOF
15247 /* end confdefs.h.  */
15248 $ac_includes_default
15249 #include <$ac_header>
15250 _ACEOF
15251 rm -f conftest.$ac_objext
15252 if { (ac_try="$ac_compile"
15253 case "(($ac_try" in
15254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15255   *) ac_try_echo=$ac_try;;
15256 esac
15257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15258   (eval "$ac_compile") 2>conftest.er1
15259   ac_status=$?
15260   grep -v '^ *+' conftest.er1 >conftest.err
15261   rm -f conftest.er1
15262   cat conftest.err >&5
15263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264   (exit $ac_status); } &&
15265          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15266   { (case "(($ac_try" in
15267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15268   *) ac_try_echo=$ac_try;;
15269 esac
15270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15271   (eval "$ac_try") 2>&5
15272   ac_status=$?
15273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274   (exit $ac_status); }; } &&
15275          { ac_try='test -s conftest.$ac_objext'
15276   { (case "(($ac_try" in
15277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15278   *) ac_try_echo=$ac_try;;
15279 esac
15280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15281   (eval "$ac_try") 2>&5
15282   ac_status=$?
15283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284   (exit $ac_status); }; }; then
15285   ac_header_compiler=yes
15286 else
15287   echo "$as_me: failed program was:" >&5
15288 sed 's/^/| /' conftest.$ac_ext >&5
15289
15290         ac_header_compiler=no
15291 fi
15292
15293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15294 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15295 echo "${ECHO_T}$ac_header_compiler" >&6; }
15296
15297 # Is the header present?
15298 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15299 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15300 cat >conftest.$ac_ext <<_ACEOF
15301 /* confdefs.h.  */
15302 _ACEOF
15303 cat confdefs.h >>conftest.$ac_ext
15304 cat >>conftest.$ac_ext <<_ACEOF
15305 /* end confdefs.h.  */
15306 #include <$ac_header>
15307 _ACEOF
15308 if { (ac_try="$ac_cpp conftest.$ac_ext"
15309 case "(($ac_try" in
15310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15311   *) ac_try_echo=$ac_try;;
15312 esac
15313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15314   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15315   ac_status=$?
15316   grep -v '^ *+' conftest.er1 >conftest.err
15317   rm -f conftest.er1
15318   cat conftest.err >&5
15319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320   (exit $ac_status); } >/dev/null; then
15321   if test -s conftest.err; then
15322     ac_cpp_err=$ac_c_preproc_warn_flag
15323     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15324   else
15325     ac_cpp_err=
15326   fi
15327 else
15328   ac_cpp_err=yes
15329 fi
15330 if test -z "$ac_cpp_err"; then
15331   ac_header_preproc=yes
15332 else
15333   echo "$as_me: failed program was:" >&5
15334 sed 's/^/| /' conftest.$ac_ext >&5
15335
15336   ac_header_preproc=no
15337 fi
15338
15339 rm -f conftest.err conftest.$ac_ext
15340 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15341 echo "${ECHO_T}$ac_header_preproc" >&6; }
15342
15343 # So?  What about this header?
15344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15345   yes:no: )
15346     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15347 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15348     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15349 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15350     ac_header_preproc=yes
15351     ;;
15352   no:yes:* )
15353     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15354 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15355     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15356 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15357     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15358 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15359     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15360 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15361     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15362 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15363     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15364 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15365     ( cat <<\_ASBOX
15366 ## ------------------------------ ##
15367 ## Report this to bugs@yourdomain ##
15368 ## ------------------------------ ##
15369 _ASBOX
15370      ) | sed "s/^/$as_me: WARNING:     /" >&2
15371     ;;
15372 esac
15373 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15376   echo $ECHO_N "(cached) $ECHO_C" >&6
15377 else
15378   eval "$as_ac_Header=\$ac_header_preproc"
15379 fi
15380 ac_res=`eval echo '${'$as_ac_Header'}'`
15381                { echo "$as_me:$LINENO: result: $ac_res" >&5
15382 echo "${ECHO_T}$ac_res" >&6; }
15383
15384 fi
15385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15386   cat >>confdefs.h <<_ACEOF
15387 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15388 _ACEOF
15389
15390 fi
15391
15392 done
15393
15394
15395 for ac_header in valgrind/valgrind.h
15396 do
15397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15399   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15402   echo $ECHO_N "(cached) $ECHO_C" >&6
15403 fi
15404 ac_res=`eval echo '${'$as_ac_Header'}'`
15405                { echo "$as_me:$LINENO: result: $ac_res" >&5
15406 echo "${ECHO_T}$ac_res" >&6; }
15407 else
15408   # Is the header compilable?
15409 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15411 cat >conftest.$ac_ext <<_ACEOF
15412 /* confdefs.h.  */
15413 _ACEOF
15414 cat confdefs.h >>conftest.$ac_ext
15415 cat >>conftest.$ac_ext <<_ACEOF
15416 /* end confdefs.h.  */
15417 $ac_includes_default
15418 #include <$ac_header>
15419 _ACEOF
15420 rm -f conftest.$ac_objext
15421 if { (ac_try="$ac_compile"
15422 case "(($ac_try" in
15423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15424   *) ac_try_echo=$ac_try;;
15425 esac
15426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15427   (eval "$ac_compile") 2>conftest.er1
15428   ac_status=$?
15429   grep -v '^ *+' conftest.er1 >conftest.err
15430   rm -f conftest.er1
15431   cat conftest.err >&5
15432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433   (exit $ac_status); } &&
15434          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15435   { (case "(($ac_try" in
15436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15437   *) ac_try_echo=$ac_try;;
15438 esac
15439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15440   (eval "$ac_try") 2>&5
15441   ac_status=$?
15442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443   (exit $ac_status); }; } &&
15444          { ac_try='test -s conftest.$ac_objext'
15445   { (case "(($ac_try" in
15446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15447   *) ac_try_echo=$ac_try;;
15448 esac
15449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15450   (eval "$ac_try") 2>&5
15451   ac_status=$?
15452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453   (exit $ac_status); }; }; then
15454   ac_header_compiler=yes
15455 else
15456   echo "$as_me: failed program was:" >&5
15457 sed 's/^/| /' conftest.$ac_ext >&5
15458
15459         ac_header_compiler=no
15460 fi
15461
15462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15463 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15464 echo "${ECHO_T}$ac_header_compiler" >&6; }
15465
15466 # Is the header present?
15467 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15469 cat >conftest.$ac_ext <<_ACEOF
15470 /* confdefs.h.  */
15471 _ACEOF
15472 cat confdefs.h >>conftest.$ac_ext
15473 cat >>conftest.$ac_ext <<_ACEOF
15474 /* end confdefs.h.  */
15475 #include <$ac_header>
15476 _ACEOF
15477 if { (ac_try="$ac_cpp conftest.$ac_ext"
15478 case "(($ac_try" in
15479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15480   *) ac_try_echo=$ac_try;;
15481 esac
15482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15483   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15484   ac_status=$?
15485   grep -v '^ *+' conftest.er1 >conftest.err
15486   rm -f conftest.er1
15487   cat conftest.err >&5
15488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489   (exit $ac_status); } >/dev/null; then
15490   if test -s conftest.err; then
15491     ac_cpp_err=$ac_c_preproc_warn_flag
15492     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15493   else
15494     ac_cpp_err=
15495   fi
15496 else
15497   ac_cpp_err=yes
15498 fi
15499 if test -z "$ac_cpp_err"; then
15500   ac_header_preproc=yes
15501 else
15502   echo "$as_me: failed program was:" >&5
15503 sed 's/^/| /' conftest.$ac_ext >&5
15504
15505   ac_header_preproc=no
15506 fi
15507
15508 rm -f conftest.err conftest.$ac_ext
15509 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15510 echo "${ECHO_T}$ac_header_preproc" >&6; }
15511
15512 # So?  What about this header?
15513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15514   yes:no: )
15515     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15517     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15518 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15519     ac_header_preproc=yes
15520     ;;
15521   no:yes:* )
15522     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15523 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15524     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15525 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15526     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15527 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15528     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15529 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15530     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15532     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15533 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15534     ( cat <<\_ASBOX
15535 ## ------------------------------ ##
15536 ## Report this to bugs@yourdomain ##
15537 ## ------------------------------ ##
15538 _ASBOX
15539      ) | sed "s/^/$as_me: WARNING:     /" >&2
15540     ;;
15541 esac
15542 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15545   echo $ECHO_N "(cached) $ECHO_C" >&6
15546 else
15547   eval "$as_ac_Header=\$ac_header_preproc"
15548 fi
15549 ac_res=`eval echo '${'$as_ac_Header'}'`
15550                { echo "$as_me:$LINENO: result: $ac_res" >&5
15551 echo "${ECHO_T}$ac_res" >&6; }
15552
15553 fi
15554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15555   cat >>confdefs.h <<_ACEOF
15556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15557 _ACEOF
15558
15559 fi
15560
15561 done
15562
15563
15564 for ac_header in fenv.h
15565 do
15566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15568   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15571   echo $ECHO_N "(cached) $ECHO_C" >&6
15572 fi
15573 ac_res=`eval echo '${'$as_ac_Header'}'`
15574                { echo "$as_me:$LINENO: result: $ac_res" >&5
15575 echo "${ECHO_T}$ac_res" >&6; }
15576 else
15577   # Is the header compilable?
15578 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15579 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15580 cat >conftest.$ac_ext <<_ACEOF
15581 /* confdefs.h.  */
15582 _ACEOF
15583 cat confdefs.h >>conftest.$ac_ext
15584 cat >>conftest.$ac_ext <<_ACEOF
15585 /* end confdefs.h.  */
15586 $ac_includes_default
15587 #include <$ac_header>
15588 _ACEOF
15589 rm -f conftest.$ac_objext
15590 if { (ac_try="$ac_compile"
15591 case "(($ac_try" in
15592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15593   *) ac_try_echo=$ac_try;;
15594 esac
15595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15596   (eval "$ac_compile") 2>conftest.er1
15597   ac_status=$?
15598   grep -v '^ *+' conftest.er1 >conftest.err
15599   rm -f conftest.er1
15600   cat conftest.err >&5
15601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602   (exit $ac_status); } &&
15603          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15604   { (case "(($ac_try" in
15605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15606   *) ac_try_echo=$ac_try;;
15607 esac
15608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15609   (eval "$ac_try") 2>&5
15610   ac_status=$?
15611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612   (exit $ac_status); }; } &&
15613          { ac_try='test -s conftest.$ac_objext'
15614   { (case "(($ac_try" in
15615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15616   *) ac_try_echo=$ac_try;;
15617 esac
15618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15619   (eval "$ac_try") 2>&5
15620   ac_status=$?
15621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622   (exit $ac_status); }; }; then
15623   ac_header_compiler=yes
15624 else
15625   echo "$as_me: failed program was:" >&5
15626 sed 's/^/| /' conftest.$ac_ext >&5
15627
15628         ac_header_compiler=no
15629 fi
15630
15631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15632 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15633 echo "${ECHO_T}$ac_header_compiler" >&6; }
15634
15635 # Is the header present?
15636 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15637 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15638 cat >conftest.$ac_ext <<_ACEOF
15639 /* confdefs.h.  */
15640 _ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h.  */
15644 #include <$ac_header>
15645 _ACEOF
15646 if { (ac_try="$ac_cpp conftest.$ac_ext"
15647 case "(($ac_try" in
15648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15649   *) ac_try_echo=$ac_try;;
15650 esac
15651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15652   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15653   ac_status=$?
15654   grep -v '^ *+' conftest.er1 >conftest.err
15655   rm -f conftest.er1
15656   cat conftest.err >&5
15657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658   (exit $ac_status); } >/dev/null; then
15659   if test -s conftest.err; then
15660     ac_cpp_err=$ac_c_preproc_warn_flag
15661     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15662   else
15663     ac_cpp_err=
15664   fi
15665 else
15666   ac_cpp_err=yes
15667 fi
15668 if test -z "$ac_cpp_err"; then
15669   ac_header_preproc=yes
15670 else
15671   echo "$as_me: failed program was:" >&5
15672 sed 's/^/| /' conftest.$ac_ext >&5
15673
15674   ac_header_preproc=no
15675 fi
15676
15677 rm -f conftest.err conftest.$ac_ext
15678 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15679 echo "${ECHO_T}$ac_header_preproc" >&6; }
15680
15681 # So?  What about this header?
15682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15683   yes:no: )
15684     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15685 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15686     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15687 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15688     ac_header_preproc=yes
15689     ;;
15690   no:yes:* )
15691     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15692 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15693     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15694 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15695     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15696 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15697     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15698 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15699     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15700 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15701     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15702 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15703     ( cat <<\_ASBOX
15704 ## ------------------------------ ##
15705 ## Report this to bugs@yourdomain ##
15706 ## ------------------------------ ##
15707 _ASBOX
15708      ) | sed "s/^/$as_me: WARNING:     /" >&2
15709     ;;
15710 esac
15711 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15714   echo $ECHO_N "(cached) $ECHO_C" >&6
15715 else
15716   eval "$as_ac_Header=\$ac_header_preproc"
15717 fi
15718 ac_res=`eval echo '${'$as_ac_Header'}'`
15719                { echo "$as_me:$LINENO: result: $ac_res" >&5
15720 echo "${ECHO_T}$ac_res" >&6; }
15721
15722 fi
15723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15724   cat >>confdefs.h <<_ACEOF
15725 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15726 _ACEOF
15727
15728 fi
15729
15730 done
15731
15732 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15733
15734 for ac_header in pthread.h
15735 do
15736 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15738   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15741   echo $ECHO_N "(cached) $ECHO_C" >&6
15742 fi
15743 ac_res=`eval echo '${'$as_ac_Header'}'`
15744                { echo "$as_me:$LINENO: result: $ac_res" >&5
15745 echo "${ECHO_T}$ac_res" >&6; }
15746 else
15747   # Is the header compilable?
15748 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15749 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15750 cat >conftest.$ac_ext <<_ACEOF
15751 /* confdefs.h.  */
15752 _ACEOF
15753 cat confdefs.h >>conftest.$ac_ext
15754 cat >>conftest.$ac_ext <<_ACEOF
15755 /* end confdefs.h.  */
15756 $ac_includes_default
15757 #include <$ac_header>
15758 _ACEOF
15759 rm -f conftest.$ac_objext
15760 if { (ac_try="$ac_compile"
15761 case "(($ac_try" in
15762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15763   *) ac_try_echo=$ac_try;;
15764 esac
15765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15766   (eval "$ac_compile") 2>conftest.er1
15767   ac_status=$?
15768   grep -v '^ *+' conftest.er1 >conftest.err
15769   rm -f conftest.er1
15770   cat conftest.err >&5
15771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772   (exit $ac_status); } &&
15773          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15774   { (case "(($ac_try" in
15775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15776   *) ac_try_echo=$ac_try;;
15777 esac
15778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15779   (eval "$ac_try") 2>&5
15780   ac_status=$?
15781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782   (exit $ac_status); }; } &&
15783          { ac_try='test -s conftest.$ac_objext'
15784   { (case "(($ac_try" in
15785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15786   *) ac_try_echo=$ac_try;;
15787 esac
15788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15789   (eval "$ac_try") 2>&5
15790   ac_status=$?
15791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792   (exit $ac_status); }; }; then
15793   ac_header_compiler=yes
15794 else
15795   echo "$as_me: failed program was:" >&5
15796 sed 's/^/| /' conftest.$ac_ext >&5
15797
15798         ac_header_compiler=no
15799 fi
15800
15801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15802 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15803 echo "${ECHO_T}$ac_header_compiler" >&6; }
15804
15805 # Is the header present?
15806 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15807 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15808 cat >conftest.$ac_ext <<_ACEOF
15809 /* confdefs.h.  */
15810 _ACEOF
15811 cat confdefs.h >>conftest.$ac_ext
15812 cat >>conftest.$ac_ext <<_ACEOF
15813 /* end confdefs.h.  */
15814 #include <$ac_header>
15815 _ACEOF
15816 if { (ac_try="$ac_cpp conftest.$ac_ext"
15817 case "(($ac_try" in
15818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15819   *) ac_try_echo=$ac_try;;
15820 esac
15821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15822   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15823   ac_status=$?
15824   grep -v '^ *+' conftest.er1 >conftest.err
15825   rm -f conftest.er1
15826   cat conftest.err >&5
15827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828   (exit $ac_status); } >/dev/null; then
15829   if test -s conftest.err; then
15830     ac_cpp_err=$ac_c_preproc_warn_flag
15831     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15832   else
15833     ac_cpp_err=
15834   fi
15835 else
15836   ac_cpp_err=yes
15837 fi
15838 if test -z "$ac_cpp_err"; then
15839   ac_header_preproc=yes
15840 else
15841   echo "$as_me: failed program was:" >&5
15842 sed 's/^/| /' conftest.$ac_ext >&5
15843
15844   ac_header_preproc=no
15845 fi
15846
15847 rm -f conftest.err conftest.$ac_ext
15848 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15849 echo "${ECHO_T}$ac_header_preproc" >&6; }
15850
15851 # So?  What about this header?
15852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15853   yes:no: )
15854     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15855 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15856     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15857 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15858     ac_header_preproc=yes
15859     ;;
15860   no:yes:* )
15861     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15862 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15863     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15864 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15865     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15866 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15867     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15868 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15869     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15871     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15872 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15873     ( cat <<\_ASBOX
15874 ## ------------------------------ ##
15875 ## Report this to bugs@yourdomain ##
15876 ## ------------------------------ ##
15877 _ASBOX
15878      ) | sed "s/^/$as_me: WARNING:     /" >&2
15879     ;;
15880 esac
15881 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15884   echo $ECHO_N "(cached) $ECHO_C" >&6
15885 else
15886   eval "$as_ac_Header=\$ac_header_preproc"
15887 fi
15888 ac_res=`eval echo '${'$as_ac_Header'}'`
15889                { echo "$as_me:$LINENO: result: $ac_res" >&5
15890 echo "${ECHO_T}$ac_res" >&6; }
15891
15892 fi
15893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15894   cat >>confdefs.h <<_ACEOF
15895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15896 _ACEOF
15897  HAVE_PTHREAD=1
15898
15899 else
15900   HAVE_PTHREAD=0
15901
15902 fi
15903
15904 done
15905
15906 else
15907   HAVE_PTHREAD=0
15908
15909 fi
15910 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
15911
15912 for ac_header in zlib.h
15913 do
15914 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15916   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15919   echo $ECHO_N "(cached) $ECHO_C" >&6
15920 fi
15921 ac_res=`eval echo '${'$as_ac_Header'}'`
15922                { echo "$as_me:$LINENO: result: $ac_res" >&5
15923 echo "${ECHO_T}$ac_res" >&6; }
15924 else
15925   # Is the header compilable?
15926 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15928 cat >conftest.$ac_ext <<_ACEOF
15929 /* confdefs.h.  */
15930 _ACEOF
15931 cat confdefs.h >>conftest.$ac_ext
15932 cat >>conftest.$ac_ext <<_ACEOF
15933 /* end confdefs.h.  */
15934 $ac_includes_default
15935 #include <$ac_header>
15936 _ACEOF
15937 rm -f conftest.$ac_objext
15938 if { (ac_try="$ac_compile"
15939 case "(($ac_try" in
15940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15941   *) ac_try_echo=$ac_try;;
15942 esac
15943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15944   (eval "$ac_compile") 2>conftest.er1
15945   ac_status=$?
15946   grep -v '^ *+' conftest.er1 >conftest.err
15947   rm -f conftest.er1
15948   cat conftest.err >&5
15949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950   (exit $ac_status); } &&
15951          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15952   { (case "(($ac_try" in
15953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15954   *) ac_try_echo=$ac_try;;
15955 esac
15956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15957   (eval "$ac_try") 2>&5
15958   ac_status=$?
15959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960   (exit $ac_status); }; } &&
15961          { ac_try='test -s conftest.$ac_objext'
15962   { (case "(($ac_try" in
15963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15964   *) ac_try_echo=$ac_try;;
15965 esac
15966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15967   (eval "$ac_try") 2>&5
15968   ac_status=$?
15969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970   (exit $ac_status); }; }; then
15971   ac_header_compiler=yes
15972 else
15973   echo "$as_me: failed program was:" >&5
15974 sed 's/^/| /' conftest.$ac_ext >&5
15975
15976         ac_header_compiler=no
15977 fi
15978
15979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15980 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15981 echo "${ECHO_T}$ac_header_compiler" >&6; }
15982
15983 # Is the header present?
15984 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15986 cat >conftest.$ac_ext <<_ACEOF
15987 /* confdefs.h.  */
15988 _ACEOF
15989 cat confdefs.h >>conftest.$ac_ext
15990 cat >>conftest.$ac_ext <<_ACEOF
15991 /* end confdefs.h.  */
15992 #include <$ac_header>
15993 _ACEOF
15994 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
16001   ac_status=$?
16002   grep -v '^ *+' conftest.er1 >conftest.err
16003   rm -f conftest.er1
16004   cat conftest.err >&5
16005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006   (exit $ac_status); } >/dev/null; then
16007   if test -s conftest.err; then
16008     ac_cpp_err=$ac_c_preproc_warn_flag
16009     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16010   else
16011     ac_cpp_err=
16012   fi
16013 else
16014   ac_cpp_err=yes
16015 fi
16016 if test -z "$ac_cpp_err"; then
16017   ac_header_preproc=yes
16018 else
16019   echo "$as_me: failed program was:" >&5
16020 sed 's/^/| /' conftest.$ac_ext >&5
16021
16022   ac_header_preproc=no
16023 fi
16024
16025 rm -f conftest.err conftest.$ac_ext
16026 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16027 echo "${ECHO_T}$ac_header_preproc" >&6; }
16028
16029 # So?  What about this header?
16030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16031   yes:no: )
16032     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16033 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16034     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16035 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16036     ac_header_preproc=yes
16037     ;;
16038   no:yes:* )
16039     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16040 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16041     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16042 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16043     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16044 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16045     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16046 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16047     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16049     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16050 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16051     ( cat <<\_ASBOX
16052 ## ------------------------------ ##
16053 ## Report this to bugs@yourdomain ##
16054 ## ------------------------------ ##
16055 _ASBOX
16056      ) | sed "s/^/$as_me: WARNING:     /" >&2
16057     ;;
16058 esac
16059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16062   echo $ECHO_N "(cached) $ECHO_C" >&6
16063 else
16064   eval "$as_ac_Header=\$ac_header_preproc"
16065 fi
16066 ac_res=`eval echo '${'$as_ac_Header'}'`
16067                { echo "$as_me:$LINENO: result: $ac_res" >&5
16068 echo "${ECHO_T}$ac_res" >&6; }
16069
16070 fi
16071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16072   cat >>confdefs.h <<_ACEOF
16073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16074 _ACEOF
16075  HAVE_LIBZ=1
16076
16077 else
16078   HAVE_LIBZ=0
16079
16080 fi
16081
16082 done
16083
16084 else
16085   HAVE_LIBZ=0
16086
16087 fi
16088
16089 if test "$llvm_cv_enable_libffi" = "yes" ; then
16090
16091
16092 for ac_header in ffi.h ffi/ffi.h
16093 do
16094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16096   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16099   echo $ECHO_N "(cached) $ECHO_C" >&6
16100 fi
16101 ac_res=`eval echo '${'$as_ac_Header'}'`
16102                { echo "$as_me:$LINENO: result: $ac_res" >&5
16103 echo "${ECHO_T}$ac_res" >&6; }
16104 else
16105   # Is the header compilable?
16106 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16108 cat >conftest.$ac_ext <<_ACEOF
16109 /* confdefs.h.  */
16110 _ACEOF
16111 cat confdefs.h >>conftest.$ac_ext
16112 cat >>conftest.$ac_ext <<_ACEOF
16113 /* end confdefs.h.  */
16114 $ac_includes_default
16115 #include <$ac_header>
16116 _ACEOF
16117 rm -f conftest.$ac_objext
16118 if { (ac_try="$ac_compile"
16119 case "(($ac_try" in
16120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16121   *) ac_try_echo=$ac_try;;
16122 esac
16123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16124   (eval "$ac_compile") 2>conftest.er1
16125   ac_status=$?
16126   grep -v '^ *+' conftest.er1 >conftest.err
16127   rm -f conftest.er1
16128   cat conftest.err >&5
16129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130   (exit $ac_status); } &&
16131          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16132   { (case "(($ac_try" in
16133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134   *) ac_try_echo=$ac_try;;
16135 esac
16136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137   (eval "$ac_try") 2>&5
16138   ac_status=$?
16139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140   (exit $ac_status); }; } &&
16141          { ac_try='test -s conftest.$ac_objext'
16142   { (case "(($ac_try" in
16143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16144   *) ac_try_echo=$ac_try;;
16145 esac
16146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16147   (eval "$ac_try") 2>&5
16148   ac_status=$?
16149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150   (exit $ac_status); }; }; then
16151   ac_header_compiler=yes
16152 else
16153   echo "$as_me: failed program was:" >&5
16154 sed 's/^/| /' conftest.$ac_ext >&5
16155
16156         ac_header_compiler=no
16157 fi
16158
16159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16160 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16161 echo "${ECHO_T}$ac_header_compiler" >&6; }
16162
16163 # Is the header present?
16164 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16165 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16166 cat >conftest.$ac_ext <<_ACEOF
16167 /* confdefs.h.  */
16168 _ACEOF
16169 cat confdefs.h >>conftest.$ac_ext
16170 cat >>conftest.$ac_ext <<_ACEOF
16171 /* end confdefs.h.  */
16172 #include <$ac_header>
16173 _ACEOF
16174 if { (ac_try="$ac_cpp conftest.$ac_ext"
16175 case "(($ac_try" in
16176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16177   *) ac_try_echo=$ac_try;;
16178 esac
16179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16180   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16181   ac_status=$?
16182   grep -v '^ *+' conftest.er1 >conftest.err
16183   rm -f conftest.er1
16184   cat conftest.err >&5
16185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186   (exit $ac_status); } >/dev/null; then
16187   if test -s conftest.err; then
16188     ac_cpp_err=$ac_c_preproc_warn_flag
16189     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16190   else
16191     ac_cpp_err=
16192   fi
16193 else
16194   ac_cpp_err=yes
16195 fi
16196 if test -z "$ac_cpp_err"; then
16197   ac_header_preproc=yes
16198 else
16199   echo "$as_me: failed program was:" >&5
16200 sed 's/^/| /' conftest.$ac_ext >&5
16201
16202   ac_header_preproc=no
16203 fi
16204
16205 rm -f conftest.err conftest.$ac_ext
16206 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16207 echo "${ECHO_T}$ac_header_preproc" >&6; }
16208
16209 # So?  What about this header?
16210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16211   yes:no: )
16212     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16214     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16215 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16216     ac_header_preproc=yes
16217     ;;
16218   no:yes:* )
16219     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16220 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16221     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16222 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16223     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16224 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16225     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16226 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16227     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16229     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16230 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16231     ( cat <<\_ASBOX
16232 ## ------------------------------ ##
16233 ## Report this to bugs@yourdomain ##
16234 ## ------------------------------ ##
16235 _ASBOX
16236      ) | sed "s/^/$as_me: WARNING:     /" >&2
16237     ;;
16238 esac
16239 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16242   echo $ECHO_N "(cached) $ECHO_C" >&6
16243 else
16244   eval "$as_ac_Header=\$ac_header_preproc"
16245 fi
16246 ac_res=`eval echo '${'$as_ac_Header'}'`
16247                { echo "$as_me:$LINENO: result: $ac_res" >&5
16248 echo "${ECHO_T}$ac_res" >&6; }
16249
16250 fi
16251 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16252   cat >>confdefs.h <<_ACEOF
16253 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16254 _ACEOF
16255
16256 fi
16257
16258 done
16259
16260 fi
16261
16262
16263 for ac_header in CrashReporterClient.h
16264 do
16265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16267   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16270   echo $ECHO_N "(cached) $ECHO_C" >&6
16271 fi
16272 ac_res=`eval echo '${'$as_ac_Header'}'`
16273                { echo "$as_me:$LINENO: result: $ac_res" >&5
16274 echo "${ECHO_T}$ac_res" >&6; }
16275 else
16276   # Is the header compilable?
16277 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16278 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16279 cat >conftest.$ac_ext <<_ACEOF
16280 /* confdefs.h.  */
16281 _ACEOF
16282 cat confdefs.h >>conftest.$ac_ext
16283 cat >>conftest.$ac_ext <<_ACEOF
16284 /* end confdefs.h.  */
16285 $ac_includes_default
16286 #include <$ac_header>
16287 _ACEOF
16288 rm -f conftest.$ac_objext
16289 if { (ac_try="$ac_compile"
16290 case "(($ac_try" in
16291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16292   *) ac_try_echo=$ac_try;;
16293 esac
16294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16295   (eval "$ac_compile") 2>conftest.er1
16296   ac_status=$?
16297   grep -v '^ *+' conftest.er1 >conftest.err
16298   rm -f conftest.er1
16299   cat conftest.err >&5
16300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301   (exit $ac_status); } &&
16302          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16303   { (case "(($ac_try" in
16304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16305   *) ac_try_echo=$ac_try;;
16306 esac
16307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16308   (eval "$ac_try") 2>&5
16309   ac_status=$?
16310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311   (exit $ac_status); }; } &&
16312          { ac_try='test -s conftest.$ac_objext'
16313   { (case "(($ac_try" in
16314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16315   *) ac_try_echo=$ac_try;;
16316 esac
16317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16318   (eval "$ac_try") 2>&5
16319   ac_status=$?
16320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321   (exit $ac_status); }; }; then
16322   ac_header_compiler=yes
16323 else
16324   echo "$as_me: failed program was:" >&5
16325 sed 's/^/| /' conftest.$ac_ext >&5
16326
16327         ac_header_compiler=no
16328 fi
16329
16330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16331 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16332 echo "${ECHO_T}$ac_header_compiler" >&6; }
16333
16334 # Is the header present?
16335 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16336 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16337 cat >conftest.$ac_ext <<_ACEOF
16338 /* confdefs.h.  */
16339 _ACEOF
16340 cat confdefs.h >>conftest.$ac_ext
16341 cat >>conftest.$ac_ext <<_ACEOF
16342 /* end confdefs.h.  */
16343 #include <$ac_header>
16344 _ACEOF
16345 if { (ac_try="$ac_cpp conftest.$ac_ext"
16346 case "(($ac_try" in
16347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16348   *) ac_try_echo=$ac_try;;
16349 esac
16350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16351   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16352   ac_status=$?
16353   grep -v '^ *+' conftest.er1 >conftest.err
16354   rm -f conftest.er1
16355   cat conftest.err >&5
16356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357   (exit $ac_status); } >/dev/null; then
16358   if test -s conftest.err; then
16359     ac_cpp_err=$ac_c_preproc_warn_flag
16360     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16361   else
16362     ac_cpp_err=
16363   fi
16364 else
16365   ac_cpp_err=yes
16366 fi
16367 if test -z "$ac_cpp_err"; then
16368   ac_header_preproc=yes
16369 else
16370   echo "$as_me: failed program was:" >&5
16371 sed 's/^/| /' conftest.$ac_ext >&5
16372
16373   ac_header_preproc=no
16374 fi
16375
16376 rm -f conftest.err conftest.$ac_ext
16377 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16378 echo "${ECHO_T}$ac_header_preproc" >&6; }
16379
16380 # So?  What about this header?
16381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16382   yes:no: )
16383     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16385     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16387     ac_header_preproc=yes
16388     ;;
16389   no:yes:* )
16390     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16392     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16393 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16394     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16395 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16396     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16397 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16398     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16400     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16401 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16402     ( cat <<\_ASBOX
16403 ## ------------------------------ ##
16404 ## Report this to bugs@yourdomain ##
16405 ## ------------------------------ ##
16406 _ASBOX
16407      ) | sed "s/^/$as_me: WARNING:     /" >&2
16408     ;;
16409 esac
16410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16413   echo $ECHO_N "(cached) $ECHO_C" >&6
16414 else
16415   eval "$as_ac_Header=\$ac_header_preproc"
16416 fi
16417 ac_res=`eval echo '${'$as_ac_Header'}'`
16418                { echo "$as_me:$LINENO: result: $ac_res" >&5
16419 echo "${ECHO_T}$ac_res" >&6; }
16420
16421 fi
16422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16423   cat >>confdefs.h <<_ACEOF
16424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16425 _ACEOF
16426
16427 fi
16428
16429 done
16430
16431
16432 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16433 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16434 cat >conftest.$ac_ext <<_ACEOF
16435 /* confdefs.h.  */
16436 _ACEOF
16437 cat confdefs.h >>conftest.$ac_ext
16438 cat >>conftest.$ac_ext <<_ACEOF
16439 /* end confdefs.h.  */
16440 extern const char *__crashreporter_info__;
16441       int main() {
16442         __crashreporter_info__ = "test";
16443         return 0;
16444       }
16445
16446 _ACEOF
16447 rm -f conftest.$ac_objext conftest$ac_exeext
16448 if { (ac_try="$ac_link"
16449 case "(($ac_try" in
16450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16451   *) ac_try_echo=$ac_try;;
16452 esac
16453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16454   (eval "$ac_link") 2>conftest.er1
16455   ac_status=$?
16456   grep -v '^ *+' conftest.er1 >conftest.err
16457   rm -f conftest.er1
16458   cat conftest.err >&5
16459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460   (exit $ac_status); } &&
16461          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16462   { (case "(($ac_try" in
16463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16464   *) ac_try_echo=$ac_try;;
16465 esac
16466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16467   (eval "$ac_try") 2>&5
16468   ac_status=$?
16469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470   (exit $ac_status); }; } &&
16471          { ac_try='test -s conftest$ac_exeext'
16472   { (case "(($ac_try" in
16473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16474   *) ac_try_echo=$ac_try;;
16475 esac
16476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16477   (eval "$ac_try") 2>&5
16478   ac_status=$?
16479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480   (exit $ac_status); }; }; then
16481   { echo "$as_me:$LINENO: result: yes" >&5
16482 echo "${ECHO_T}yes" >&6; }
16483
16484 cat >>confdefs.h <<\_ACEOF
16485 #define HAVE_CRASHREPORTER_INFO 1
16486 _ACEOF
16487
16488 else
16489   echo "$as_me: failed program was:" >&5
16490 sed 's/^/| /' conftest.$ac_ext >&5
16491
16492         { echo "$as_me:$LINENO: result: no" >&5
16493 echo "${ECHO_T}no" >&6; }
16494
16495 cat >>confdefs.h <<\_ACEOF
16496 #define HAVE_CRASHREPORTER_INFO 0
16497 _ACEOF
16498
16499 fi
16500
16501 rm -f core conftest.err conftest.$ac_objext \
16502       conftest$ac_exeext conftest.$ac_ext
16503
16504
16505
16506
16507   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16508 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16509 if test "${ac_cv_huge_val_sanity+set}" = set; then
16510   echo $ECHO_N "(cached) $ECHO_C" >&6
16511 else
16512
16513     ac_ext=cpp
16514 ac_cpp='$CXXCPP $CPPFLAGS'
16515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16518
16519     ac_save_CXXFLAGS=$CXXFLAGS
16520     CXXFLAGS="$CXXFLAGS -pedantic"
16521     if test "$cross_compiling" = yes; then
16522   ac_cv_huge_val_sanity=yes
16523 else
16524   cat >conftest.$ac_ext <<_ACEOF
16525 /* confdefs.h.  */
16526 _ACEOF
16527 cat confdefs.h >>conftest.$ac_ext
16528 cat >>conftest.$ac_ext <<_ACEOF
16529 /* end confdefs.h.  */
16530 #include <math.h>
16531 int
16532 main ()
16533 {
16534 double x = HUGE_VAL; return x != x;
16535   ;
16536   return 0;
16537 }
16538 _ACEOF
16539 rm -f conftest$ac_exeext
16540 if { (ac_try="$ac_link"
16541 case "(($ac_try" in
16542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16543   *) ac_try_echo=$ac_try;;
16544 esac
16545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16546   (eval "$ac_link") 2>&5
16547   ac_status=$?
16548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16550   { (case "(($ac_try" in
16551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16552   *) ac_try_echo=$ac_try;;
16553 esac
16554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16555   (eval "$ac_try") 2>&5
16556   ac_status=$?
16557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558   (exit $ac_status); }; }; then
16559   ac_cv_huge_val_sanity=yes
16560 else
16561   echo "$as_me: program exited with status $ac_status" >&5
16562 echo "$as_me: failed program was:" >&5
16563 sed 's/^/| /' conftest.$ac_ext >&5
16564
16565 ( exit $ac_status )
16566 ac_cv_huge_val_sanity=no
16567 fi
16568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16569 fi
16570
16571
16572     CXXFLAGS=$ac_save_CXXFLAGS
16573     ac_ext=c
16574 ac_cpp='$CPP $CPPFLAGS'
16575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16578
16579
16580 fi
16581 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16582 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16583   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16584
16585
16586 { echo "$as_me:$LINENO: checking for pid_t" >&5
16587 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16588 if test "${ac_cv_type_pid_t+set}" = set; then
16589   echo $ECHO_N "(cached) $ECHO_C" >&6
16590 else
16591   cat >conftest.$ac_ext <<_ACEOF
16592 /* confdefs.h.  */
16593 _ACEOF
16594 cat confdefs.h >>conftest.$ac_ext
16595 cat >>conftest.$ac_ext <<_ACEOF
16596 /* end confdefs.h.  */
16597 $ac_includes_default
16598 typedef pid_t ac__type_new_;
16599 int
16600 main ()
16601 {
16602 if ((ac__type_new_ *) 0)
16603   return 0;
16604 if (sizeof (ac__type_new_))
16605   return 0;
16606   ;
16607   return 0;
16608 }
16609 _ACEOF
16610 rm -f conftest.$ac_objext
16611 if { (ac_try="$ac_compile"
16612 case "(($ac_try" in
16613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16614   *) ac_try_echo=$ac_try;;
16615 esac
16616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16617   (eval "$ac_compile") 2>conftest.er1
16618   ac_status=$?
16619   grep -v '^ *+' conftest.er1 >conftest.err
16620   rm -f conftest.er1
16621   cat conftest.err >&5
16622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623   (exit $ac_status); } &&
16624          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16625   { (case "(($ac_try" in
16626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16627   *) ac_try_echo=$ac_try;;
16628 esac
16629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16630   (eval "$ac_try") 2>&5
16631   ac_status=$?
16632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633   (exit $ac_status); }; } &&
16634          { ac_try='test -s conftest.$ac_objext'
16635   { (case "(($ac_try" in
16636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637   *) ac_try_echo=$ac_try;;
16638 esac
16639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640   (eval "$ac_try") 2>&5
16641   ac_status=$?
16642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643   (exit $ac_status); }; }; then
16644   ac_cv_type_pid_t=yes
16645 else
16646   echo "$as_me: failed program was:" >&5
16647 sed 's/^/| /' conftest.$ac_ext >&5
16648
16649         ac_cv_type_pid_t=no
16650 fi
16651
16652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16653 fi
16654 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16655 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16656 if test $ac_cv_type_pid_t = yes; then
16657   :
16658 else
16659
16660 cat >>confdefs.h <<_ACEOF
16661 #define pid_t int
16662 _ACEOF
16663
16664 fi
16665
16666 { echo "$as_me:$LINENO: checking for size_t" >&5
16667 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16668 if test "${ac_cv_type_size_t+set}" = set; then
16669   echo $ECHO_N "(cached) $ECHO_C" >&6
16670 else
16671   cat >conftest.$ac_ext <<_ACEOF
16672 /* confdefs.h.  */
16673 _ACEOF
16674 cat confdefs.h >>conftest.$ac_ext
16675 cat >>conftest.$ac_ext <<_ACEOF
16676 /* end confdefs.h.  */
16677 $ac_includes_default
16678 typedef size_t ac__type_new_;
16679 int
16680 main ()
16681 {
16682 if ((ac__type_new_ *) 0)
16683   return 0;
16684 if (sizeof (ac__type_new_))
16685   return 0;
16686   ;
16687   return 0;
16688 }
16689 _ACEOF
16690 rm -f conftest.$ac_objext
16691 if { (ac_try="$ac_compile"
16692 case "(($ac_try" in
16693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16694   *) ac_try_echo=$ac_try;;
16695 esac
16696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16697   (eval "$ac_compile") 2>conftest.er1
16698   ac_status=$?
16699   grep -v '^ *+' conftest.er1 >conftest.err
16700   rm -f conftest.er1
16701   cat conftest.err >&5
16702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703   (exit $ac_status); } &&
16704          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16705   { (case "(($ac_try" in
16706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16707   *) ac_try_echo=$ac_try;;
16708 esac
16709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16710   (eval "$ac_try") 2>&5
16711   ac_status=$?
16712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713   (exit $ac_status); }; } &&
16714          { ac_try='test -s conftest.$ac_objext'
16715   { (case "(($ac_try" in
16716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16717   *) ac_try_echo=$ac_try;;
16718 esac
16719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16720   (eval "$ac_try") 2>&5
16721   ac_status=$?
16722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723   (exit $ac_status); }; }; then
16724   ac_cv_type_size_t=yes
16725 else
16726   echo "$as_me: failed program was:" >&5
16727 sed 's/^/| /' conftest.$ac_ext >&5
16728
16729         ac_cv_type_size_t=no
16730 fi
16731
16732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16733 fi
16734 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16735 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16736 if test $ac_cv_type_size_t = yes; then
16737   :
16738 else
16739
16740 cat >>confdefs.h <<_ACEOF
16741 #define size_t unsigned int
16742 _ACEOF
16743
16744 fi
16745
16746
16747 cat >>confdefs.h <<_ACEOF
16748 #define RETSIGTYPE void
16749 _ACEOF
16750
16751 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16752 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16753 if test "${ac_cv_struct_tm+set}" = set; then
16754   echo $ECHO_N "(cached) $ECHO_C" >&6
16755 else
16756   cat >conftest.$ac_ext <<_ACEOF
16757 /* confdefs.h.  */
16758 _ACEOF
16759 cat confdefs.h >>conftest.$ac_ext
16760 cat >>conftest.$ac_ext <<_ACEOF
16761 /* end confdefs.h.  */
16762 #include <sys/types.h>
16763 #include <time.h>
16764
16765 int
16766 main ()
16767 {
16768 struct tm *tp; tp->tm_sec;
16769   ;
16770   return 0;
16771 }
16772 _ACEOF
16773 rm -f conftest.$ac_objext
16774 if { (ac_try="$ac_compile"
16775 case "(($ac_try" in
16776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16777   *) ac_try_echo=$ac_try;;
16778 esac
16779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16780   (eval "$ac_compile") 2>conftest.er1
16781   ac_status=$?
16782   grep -v '^ *+' conftest.er1 >conftest.err
16783   rm -f conftest.er1
16784   cat conftest.err >&5
16785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786   (exit $ac_status); } &&
16787          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16788   { (case "(($ac_try" in
16789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16790   *) ac_try_echo=$ac_try;;
16791 esac
16792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16793   (eval "$ac_try") 2>&5
16794   ac_status=$?
16795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796   (exit $ac_status); }; } &&
16797          { ac_try='test -s conftest.$ac_objext'
16798   { (case "(($ac_try" in
16799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16800   *) ac_try_echo=$ac_try;;
16801 esac
16802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16803   (eval "$ac_try") 2>&5
16804   ac_status=$?
16805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806   (exit $ac_status); }; }; then
16807   ac_cv_struct_tm=time.h
16808 else
16809   echo "$as_me: failed program was:" >&5
16810 sed 's/^/| /' conftest.$ac_ext >&5
16811
16812         ac_cv_struct_tm=sys/time.h
16813 fi
16814
16815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16816 fi
16817 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16818 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16819 if test $ac_cv_struct_tm = sys/time.h; then
16820
16821 cat >>confdefs.h <<\_ACEOF
16822 #define TM_IN_SYS_TIME 1
16823 _ACEOF
16824
16825 fi
16826
16827 { echo "$as_me:$LINENO: checking for int64_t" >&5
16828 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16829 if test "${ac_cv_type_int64_t+set}" = set; then
16830   echo $ECHO_N "(cached) $ECHO_C" >&6
16831 else
16832   cat >conftest.$ac_ext <<_ACEOF
16833 /* confdefs.h.  */
16834 _ACEOF
16835 cat confdefs.h >>conftest.$ac_ext
16836 cat >>conftest.$ac_ext <<_ACEOF
16837 /* end confdefs.h.  */
16838 $ac_includes_default
16839 typedef int64_t ac__type_new_;
16840 int
16841 main ()
16842 {
16843 if ((ac__type_new_ *) 0)
16844   return 0;
16845 if (sizeof (ac__type_new_))
16846   return 0;
16847   ;
16848   return 0;
16849 }
16850 _ACEOF
16851 rm -f conftest.$ac_objext
16852 if { (ac_try="$ac_compile"
16853 case "(($ac_try" in
16854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855   *) ac_try_echo=$ac_try;;
16856 esac
16857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16858   (eval "$ac_compile") 2>conftest.er1
16859   ac_status=$?
16860   grep -v '^ *+' conftest.er1 >conftest.err
16861   rm -f conftest.er1
16862   cat conftest.err >&5
16863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864   (exit $ac_status); } &&
16865          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16866   { (case "(($ac_try" in
16867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16868   *) ac_try_echo=$ac_try;;
16869 esac
16870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16871   (eval "$ac_try") 2>&5
16872   ac_status=$?
16873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874   (exit $ac_status); }; } &&
16875          { ac_try='test -s conftest.$ac_objext'
16876   { (case "(($ac_try" in
16877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16878   *) ac_try_echo=$ac_try;;
16879 esac
16880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16881   (eval "$ac_try") 2>&5
16882   ac_status=$?
16883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884   (exit $ac_status); }; }; then
16885   ac_cv_type_int64_t=yes
16886 else
16887   echo "$as_me: failed program was:" >&5
16888 sed 's/^/| /' conftest.$ac_ext >&5
16889
16890         ac_cv_type_int64_t=no
16891 fi
16892
16893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16894 fi
16895 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16896 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16897 if test $ac_cv_type_int64_t = yes; then
16898
16899 cat >>confdefs.h <<_ACEOF
16900 #define HAVE_INT64_T 1
16901 _ACEOF
16902
16903
16904 else
16905   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16906 echo "$as_me: error: Type int64_t required but not found" >&2;}
16907    { (exit 1); exit 1; }; }
16908 fi
16909
16910 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16911 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16912 if test "${ac_cv_type_uint64_t+set}" = set; then
16913   echo $ECHO_N "(cached) $ECHO_C" >&6
16914 else
16915   cat >conftest.$ac_ext <<_ACEOF
16916 /* confdefs.h.  */
16917 _ACEOF
16918 cat confdefs.h >>conftest.$ac_ext
16919 cat >>conftest.$ac_ext <<_ACEOF
16920 /* end confdefs.h.  */
16921 $ac_includes_default
16922 typedef uint64_t ac__type_new_;
16923 int
16924 main ()
16925 {
16926 if ((ac__type_new_ *) 0)
16927   return 0;
16928 if (sizeof (ac__type_new_))
16929   return 0;
16930   ;
16931   return 0;
16932 }
16933 _ACEOF
16934 rm -f conftest.$ac_objext
16935 if { (ac_try="$ac_compile"
16936 case "(($ac_try" in
16937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16938   *) ac_try_echo=$ac_try;;
16939 esac
16940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16941   (eval "$ac_compile") 2>conftest.er1
16942   ac_status=$?
16943   grep -v '^ *+' conftest.er1 >conftest.err
16944   rm -f conftest.er1
16945   cat conftest.err >&5
16946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947   (exit $ac_status); } &&
16948          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16949   { (case "(($ac_try" in
16950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16951   *) ac_try_echo=$ac_try;;
16952 esac
16953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16954   (eval "$ac_try") 2>&5
16955   ac_status=$?
16956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957   (exit $ac_status); }; } &&
16958          { ac_try='test -s conftest.$ac_objext'
16959   { (case "(($ac_try" in
16960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16961   *) ac_try_echo=$ac_try;;
16962 esac
16963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16964   (eval "$ac_try") 2>&5
16965   ac_status=$?
16966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967   (exit $ac_status); }; }; then
16968   ac_cv_type_uint64_t=yes
16969 else
16970   echo "$as_me: failed program was:" >&5
16971 sed 's/^/| /' conftest.$ac_ext >&5
16972
16973         ac_cv_type_uint64_t=no
16974 fi
16975
16976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16977 fi
16978 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16979 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16980 if test $ac_cv_type_uint64_t = yes; then
16981
16982 cat >>confdefs.h <<_ACEOF
16983 #define HAVE_UINT64_T 1
16984 _ACEOF
16985
16986
16987 else
16988   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16989 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16990 if test "${ac_cv_type_u_int64_t+set}" = set; then
16991   echo $ECHO_N "(cached) $ECHO_C" >&6
16992 else
16993   cat >conftest.$ac_ext <<_ACEOF
16994 /* confdefs.h.  */
16995 _ACEOF
16996 cat confdefs.h >>conftest.$ac_ext
16997 cat >>conftest.$ac_ext <<_ACEOF
16998 /* end confdefs.h.  */
16999 $ac_includes_default
17000 typedef u_int64_t ac__type_new_;
17001 int
17002 main ()
17003 {
17004 if ((ac__type_new_ *) 0)
17005   return 0;
17006 if (sizeof (ac__type_new_))
17007   return 0;
17008   ;
17009   return 0;
17010 }
17011 _ACEOF
17012 rm -f conftest.$ac_objext
17013 if { (ac_try="$ac_compile"
17014 case "(($ac_try" in
17015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17016   *) ac_try_echo=$ac_try;;
17017 esac
17018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17019   (eval "$ac_compile") 2>conftest.er1
17020   ac_status=$?
17021   grep -v '^ *+' conftest.er1 >conftest.err
17022   rm -f conftest.er1
17023   cat conftest.err >&5
17024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025   (exit $ac_status); } &&
17026          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17027   { (case "(($ac_try" in
17028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17029   *) ac_try_echo=$ac_try;;
17030 esac
17031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17032   (eval "$ac_try") 2>&5
17033   ac_status=$?
17034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035   (exit $ac_status); }; } &&
17036          { ac_try='test -s conftest.$ac_objext'
17037   { (case "(($ac_try" in
17038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17039   *) ac_try_echo=$ac_try;;
17040 esac
17041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17042   (eval "$ac_try") 2>&5
17043   ac_status=$?
17044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045   (exit $ac_status); }; }; then
17046   ac_cv_type_u_int64_t=yes
17047 else
17048   echo "$as_me: failed program was:" >&5
17049 sed 's/^/| /' conftest.$ac_ext >&5
17050
17051         ac_cv_type_u_int64_t=no
17052 fi
17053
17054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17055 fi
17056 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17057 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17058 if test $ac_cv_type_u_int64_t = yes; then
17059
17060 cat >>confdefs.h <<_ACEOF
17061 #define HAVE_U_INT64_T 1
17062 _ACEOF
17063
17064
17065 else
17066   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17067 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17068    { (exit 1); exit 1; }; }
17069 fi
17070
17071 fi
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17083 do
17084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17085 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17087 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17088   echo $ECHO_N "(cached) $ECHO_C" >&6
17089 else
17090   cat >conftest.$ac_ext <<_ACEOF
17091 /* confdefs.h.  */
17092 _ACEOF
17093 cat confdefs.h >>conftest.$ac_ext
17094 cat >>conftest.$ac_ext <<_ACEOF
17095 /* end confdefs.h.  */
17096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17097    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17098 #define $ac_func innocuous_$ac_func
17099
17100 /* System header to define __stub macros and hopefully few prototypes,
17101     which can conflict with char $ac_func (); below.
17102     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17103     <limits.h> exists even on freestanding compilers.  */
17104
17105 #ifdef __STDC__
17106 # include <limits.h>
17107 #else
17108 # include <assert.h>
17109 #endif
17110
17111 #undef $ac_func
17112
17113 /* Override any GCC internal prototype to avoid an error.
17114    Use char because int might match the return type of a GCC
17115    builtin and then its argument prototype would still apply.  */
17116 #ifdef __cplusplus
17117 extern "C"
17118 #endif
17119 char $ac_func ();
17120 /* The GNU C library defines this for functions which it implements
17121     to always fail with ENOSYS.  Some functions are actually named
17122     something starting with __ and the normal name is an alias.  */
17123 #if defined __stub_$ac_func || defined __stub___$ac_func
17124 choke me
17125 #endif
17126
17127 int
17128 main ()
17129 {
17130 return $ac_func ();
17131   ;
17132   return 0;
17133 }
17134 _ACEOF
17135 rm -f conftest.$ac_objext conftest$ac_exeext
17136 if { (ac_try="$ac_link"
17137 case "(($ac_try" in
17138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17139   *) ac_try_echo=$ac_try;;
17140 esac
17141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17142   (eval "$ac_link") 2>conftest.er1
17143   ac_status=$?
17144   grep -v '^ *+' conftest.er1 >conftest.err
17145   rm -f conftest.er1
17146   cat conftest.err >&5
17147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148   (exit $ac_status); } &&
17149          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17150   { (case "(($ac_try" in
17151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17152   *) ac_try_echo=$ac_try;;
17153 esac
17154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17155   (eval "$ac_try") 2>&5
17156   ac_status=$?
17157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158   (exit $ac_status); }; } &&
17159          { ac_try='test -s conftest$ac_exeext'
17160   { (case "(($ac_try" in
17161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162   *) ac_try_echo=$ac_try;;
17163 esac
17164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165   (eval "$ac_try") 2>&5
17166   ac_status=$?
17167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168   (exit $ac_status); }; }; then
17169   eval "$as_ac_var=yes"
17170 else
17171   echo "$as_me: failed program was:" >&5
17172 sed 's/^/| /' conftest.$ac_ext >&5
17173
17174         eval "$as_ac_var=no"
17175 fi
17176
17177 rm -f core conftest.err conftest.$ac_objext \
17178       conftest$ac_exeext conftest.$ac_ext
17179 fi
17180 ac_res=`eval echo '${'$as_ac_var'}'`
17181                { echo "$as_me:$LINENO: result: $ac_res" >&5
17182 echo "${ECHO_T}$ac_res" >&6; }
17183 if test `eval echo '${'$as_ac_var'}'` = yes; then
17184   cat >>confdefs.h <<_ACEOF
17185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17186 _ACEOF
17187
17188 fi
17189 done
17190
17191
17192
17193
17194
17195 for ac_func in powf fmodf strtof round
17196 do
17197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17198 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17200 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17201   echo $ECHO_N "(cached) $ECHO_C" >&6
17202 else
17203   cat >conftest.$ac_ext <<_ACEOF
17204 /* confdefs.h.  */
17205 _ACEOF
17206 cat confdefs.h >>conftest.$ac_ext
17207 cat >>conftest.$ac_ext <<_ACEOF
17208 /* end confdefs.h.  */
17209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17210    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17211 #define $ac_func innocuous_$ac_func
17212
17213 /* System header to define __stub macros and hopefully few prototypes,
17214     which can conflict with char $ac_func (); below.
17215     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17216     <limits.h> exists even on freestanding compilers.  */
17217
17218 #ifdef __STDC__
17219 # include <limits.h>
17220 #else
17221 # include <assert.h>
17222 #endif
17223
17224 #undef $ac_func
17225
17226 /* Override any GCC internal prototype to avoid an error.
17227    Use char because int might match the return type of a GCC
17228    builtin and then its argument prototype would still apply.  */
17229 #ifdef __cplusplus
17230 extern "C"
17231 #endif
17232 char $ac_func ();
17233 /* The GNU C library defines this for functions which it implements
17234     to always fail with ENOSYS.  Some functions are actually named
17235     something starting with __ and the normal name is an alias.  */
17236 #if defined __stub_$ac_func || defined __stub___$ac_func
17237 choke me
17238 #endif
17239
17240 int
17241 main ()
17242 {
17243 return $ac_func ();
17244   ;
17245   return 0;
17246 }
17247 _ACEOF
17248 rm -f conftest.$ac_objext conftest$ac_exeext
17249 if { (ac_try="$ac_link"
17250 case "(($ac_try" in
17251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17252   *) ac_try_echo=$ac_try;;
17253 esac
17254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17255   (eval "$ac_link") 2>conftest.er1
17256   ac_status=$?
17257   grep -v '^ *+' conftest.er1 >conftest.err
17258   rm -f conftest.er1
17259   cat conftest.err >&5
17260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261   (exit $ac_status); } &&
17262          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17263   { (case "(($ac_try" in
17264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17265   *) ac_try_echo=$ac_try;;
17266 esac
17267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17268   (eval "$ac_try") 2>&5
17269   ac_status=$?
17270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271   (exit $ac_status); }; } &&
17272          { ac_try='test -s conftest$ac_exeext'
17273   { (case "(($ac_try" in
17274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275   *) ac_try_echo=$ac_try;;
17276 esac
17277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278   (eval "$ac_try") 2>&5
17279   ac_status=$?
17280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281   (exit $ac_status); }; }; then
17282   eval "$as_ac_var=yes"
17283 else
17284   echo "$as_me: failed program was:" >&5
17285 sed 's/^/| /' conftest.$ac_ext >&5
17286
17287         eval "$as_ac_var=no"
17288 fi
17289
17290 rm -f core conftest.err conftest.$ac_objext \
17291       conftest$ac_exeext conftest.$ac_ext
17292 fi
17293 ac_res=`eval echo '${'$as_ac_var'}'`
17294                { echo "$as_me:$LINENO: result: $ac_res" >&5
17295 echo "${ECHO_T}$ac_res" >&6; }
17296 if test `eval echo '${'$as_ac_var'}'` = yes; then
17297   cat >>confdefs.h <<_ACEOF
17298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17299 _ACEOF
17300
17301 fi
17302 done
17303
17304
17305
17306
17307
17308
17309 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17310 do
17311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17312 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17314 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17315   echo $ECHO_N "(cached) $ECHO_C" >&6
17316 else
17317   cat >conftest.$ac_ext <<_ACEOF
17318 /* confdefs.h.  */
17319 _ACEOF
17320 cat confdefs.h >>conftest.$ac_ext
17321 cat >>conftest.$ac_ext <<_ACEOF
17322 /* end confdefs.h.  */
17323 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17324    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17325 #define $ac_func innocuous_$ac_func
17326
17327 /* System header to define __stub macros and hopefully few prototypes,
17328     which can conflict with char $ac_func (); below.
17329     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17330     <limits.h> exists even on freestanding compilers.  */
17331
17332 #ifdef __STDC__
17333 # include <limits.h>
17334 #else
17335 # include <assert.h>
17336 #endif
17337
17338 #undef $ac_func
17339
17340 /* Override any GCC internal prototype to avoid an error.
17341    Use char because int might match the return type of a GCC
17342    builtin and then its argument prototype would still apply.  */
17343 #ifdef __cplusplus
17344 extern "C"
17345 #endif
17346 char $ac_func ();
17347 /* The GNU C library defines this for functions which it implements
17348     to always fail with ENOSYS.  Some functions are actually named
17349     something starting with __ and the normal name is an alias.  */
17350 #if defined __stub_$ac_func || defined __stub___$ac_func
17351 choke me
17352 #endif
17353
17354 int
17355 main ()
17356 {
17357 return $ac_func ();
17358   ;
17359   return 0;
17360 }
17361 _ACEOF
17362 rm -f conftest.$ac_objext conftest$ac_exeext
17363 if { (ac_try="$ac_link"
17364 case "(($ac_try" in
17365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17366   *) ac_try_echo=$ac_try;;
17367 esac
17368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17369   (eval "$ac_link") 2>conftest.er1
17370   ac_status=$?
17371   grep -v '^ *+' conftest.er1 >conftest.err
17372   rm -f conftest.er1
17373   cat conftest.err >&5
17374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375   (exit $ac_status); } &&
17376          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17377   { (case "(($ac_try" in
17378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17379   *) ac_try_echo=$ac_try;;
17380 esac
17381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17382   (eval "$ac_try") 2>&5
17383   ac_status=$?
17384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385   (exit $ac_status); }; } &&
17386          { ac_try='test -s conftest$ac_exeext'
17387   { (case "(($ac_try" in
17388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17389   *) ac_try_echo=$ac_try;;
17390 esac
17391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17392   (eval "$ac_try") 2>&5
17393   ac_status=$?
17394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395   (exit $ac_status); }; }; then
17396   eval "$as_ac_var=yes"
17397 else
17398   echo "$as_me: failed program was:" >&5
17399 sed 's/^/| /' conftest.$ac_ext >&5
17400
17401         eval "$as_ac_var=no"
17402 fi
17403
17404 rm -f core conftest.err conftest.$ac_objext \
17405       conftest$ac_exeext conftest.$ac_ext
17406 fi
17407 ac_res=`eval echo '${'$as_ac_var'}'`
17408                { echo "$as_me:$LINENO: result: $ac_res" >&5
17409 echo "${ECHO_T}$ac_res" >&6; }
17410 if test `eval echo '${'$as_ac_var'}'` = yes; then
17411   cat >>confdefs.h <<_ACEOF
17412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17413 _ACEOF
17414
17415 fi
17416 done
17417
17418
17419
17420
17421 for ac_func in isatty mkdtemp mkstemp
17422 do
17423 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17424 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17426 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17427   echo $ECHO_N "(cached) $ECHO_C" >&6
17428 else
17429   cat >conftest.$ac_ext <<_ACEOF
17430 /* confdefs.h.  */
17431 _ACEOF
17432 cat confdefs.h >>conftest.$ac_ext
17433 cat >>conftest.$ac_ext <<_ACEOF
17434 /* end confdefs.h.  */
17435 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17436    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17437 #define $ac_func innocuous_$ac_func
17438
17439 /* System header to define __stub macros and hopefully few prototypes,
17440     which can conflict with char $ac_func (); below.
17441     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17442     <limits.h> exists even on freestanding compilers.  */
17443
17444 #ifdef __STDC__
17445 # include <limits.h>
17446 #else
17447 # include <assert.h>
17448 #endif
17449
17450 #undef $ac_func
17451
17452 /* Override any GCC internal prototype to avoid an error.
17453    Use char because int might match the return type of a GCC
17454    builtin and then its argument prototype would still apply.  */
17455 #ifdef __cplusplus
17456 extern "C"
17457 #endif
17458 char $ac_func ();
17459 /* The GNU C library defines this for functions which it implements
17460     to always fail with ENOSYS.  Some functions are actually named
17461     something starting with __ and the normal name is an alias.  */
17462 #if defined __stub_$ac_func || defined __stub___$ac_func
17463 choke me
17464 #endif
17465
17466 int
17467 main ()
17468 {
17469 return $ac_func ();
17470   ;
17471   return 0;
17472 }
17473 _ACEOF
17474 rm -f conftest.$ac_objext conftest$ac_exeext
17475 if { (ac_try="$ac_link"
17476 case "(($ac_try" in
17477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17478   *) ac_try_echo=$ac_try;;
17479 esac
17480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17481   (eval "$ac_link") 2>conftest.er1
17482   ac_status=$?
17483   grep -v '^ *+' conftest.er1 >conftest.err
17484   rm -f conftest.er1
17485   cat conftest.err >&5
17486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487   (exit $ac_status); } &&
17488          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17489   { (case "(($ac_try" in
17490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17491   *) ac_try_echo=$ac_try;;
17492 esac
17493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17494   (eval "$ac_try") 2>&5
17495   ac_status=$?
17496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497   (exit $ac_status); }; } &&
17498          { ac_try='test -s conftest$ac_exeext'
17499   { (case "(($ac_try" in
17500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17501   *) ac_try_echo=$ac_try;;
17502 esac
17503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17504   (eval "$ac_try") 2>&5
17505   ac_status=$?
17506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507   (exit $ac_status); }; }; then
17508   eval "$as_ac_var=yes"
17509 else
17510   echo "$as_me: failed program was:" >&5
17511 sed 's/^/| /' conftest.$ac_ext >&5
17512
17513         eval "$as_ac_var=no"
17514 fi
17515
17516 rm -f core conftest.err conftest.$ac_objext \
17517       conftest$ac_exeext conftest.$ac_ext
17518 fi
17519 ac_res=`eval echo '${'$as_ac_var'}'`
17520                { echo "$as_me:$LINENO: result: $ac_res" >&5
17521 echo "${ECHO_T}$ac_res" >&6; }
17522 if test `eval echo '${'$as_ac_var'}'` = yes; then
17523   cat >>confdefs.h <<_ACEOF
17524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17525 _ACEOF
17526
17527 fi
17528 done
17529
17530
17531
17532
17533
17534
17535
17536 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17537 do
17538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17539 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17541 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17542   echo $ECHO_N "(cached) $ECHO_C" >&6
17543 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17551    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17552 #define $ac_func innocuous_$ac_func
17553
17554 /* System header to define __stub macros and hopefully few prototypes,
17555     which can conflict with char $ac_func (); below.
17556     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17557     <limits.h> exists even on freestanding compilers.  */
17558
17559 #ifdef __STDC__
17560 # include <limits.h>
17561 #else
17562 # include <assert.h>
17563 #endif
17564
17565 #undef $ac_func
17566
17567 /* Override any GCC internal prototype to avoid an error.
17568    Use char because int might match the return type of a GCC
17569    builtin and then its argument prototype would still apply.  */
17570 #ifdef __cplusplus
17571 extern "C"
17572 #endif
17573 char $ac_func ();
17574 /* The GNU C library defines this for functions which it implements
17575     to always fail with ENOSYS.  Some functions are actually named
17576     something starting with __ and the normal name is an alias.  */
17577 #if defined __stub_$ac_func || defined __stub___$ac_func
17578 choke me
17579 #endif
17580
17581 int
17582 main ()
17583 {
17584 return $ac_func ();
17585   ;
17586   return 0;
17587 }
17588 _ACEOF
17589 rm -f conftest.$ac_objext conftest$ac_exeext
17590 if { (ac_try="$ac_link"
17591 case "(($ac_try" in
17592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17593   *) ac_try_echo=$ac_try;;
17594 esac
17595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17596   (eval "$ac_link") 2>conftest.er1
17597   ac_status=$?
17598   grep -v '^ *+' conftest.er1 >conftest.err
17599   rm -f conftest.er1
17600   cat conftest.err >&5
17601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602   (exit $ac_status); } &&
17603          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17604   { (case "(($ac_try" in
17605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606   *) ac_try_echo=$ac_try;;
17607 esac
17608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17609   (eval "$ac_try") 2>&5
17610   ac_status=$?
17611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612   (exit $ac_status); }; } &&
17613          { ac_try='test -s conftest$ac_exeext'
17614   { (case "(($ac_try" in
17615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17616   *) ac_try_echo=$ac_try;;
17617 esac
17618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17619   (eval "$ac_try") 2>&5
17620   ac_status=$?
17621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622   (exit $ac_status); }; }; then
17623   eval "$as_ac_var=yes"
17624 else
17625   echo "$as_me: failed program was:" >&5
17626 sed 's/^/| /' conftest.$ac_ext >&5
17627
17628         eval "$as_ac_var=no"
17629 fi
17630
17631 rm -f core conftest.err conftest.$ac_objext \
17632       conftest$ac_exeext conftest.$ac_ext
17633 fi
17634 ac_res=`eval echo '${'$as_ac_var'}'`
17635                { echo "$as_me:$LINENO: result: $ac_res" >&5
17636 echo "${ECHO_T}$ac_res" >&6; }
17637 if test `eval echo '${'$as_ac_var'}'` = yes; then
17638   cat >>confdefs.h <<_ACEOF
17639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17640 _ACEOF
17641
17642 fi
17643 done
17644
17645
17646
17647
17648 for ac_func in strerror strerror_r setenv
17649 do
17650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17651 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17653 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17654   echo $ECHO_N "(cached) $ECHO_C" >&6
17655 else
17656   cat >conftest.$ac_ext <<_ACEOF
17657 /* confdefs.h.  */
17658 _ACEOF
17659 cat confdefs.h >>conftest.$ac_ext
17660 cat >>conftest.$ac_ext <<_ACEOF
17661 /* end confdefs.h.  */
17662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17663    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17664 #define $ac_func innocuous_$ac_func
17665
17666 /* System header to define __stub macros and hopefully few prototypes,
17667     which can conflict with char $ac_func (); below.
17668     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17669     <limits.h> exists even on freestanding compilers.  */
17670
17671 #ifdef __STDC__
17672 # include <limits.h>
17673 #else
17674 # include <assert.h>
17675 #endif
17676
17677 #undef $ac_func
17678
17679 /* Override any GCC internal prototype to avoid an error.
17680    Use char because int might match the return type of a GCC
17681    builtin and then its argument prototype would still apply.  */
17682 #ifdef __cplusplus
17683 extern "C"
17684 #endif
17685 char $ac_func ();
17686 /* The GNU C library defines this for functions which it implements
17687     to always fail with ENOSYS.  Some functions are actually named
17688     something starting with __ and the normal name is an alias.  */
17689 #if defined __stub_$ac_func || defined __stub___$ac_func
17690 choke me
17691 #endif
17692
17693 int
17694 main ()
17695 {
17696 return $ac_func ();
17697   ;
17698   return 0;
17699 }
17700 _ACEOF
17701 rm -f conftest.$ac_objext conftest$ac_exeext
17702 if { (ac_try="$ac_link"
17703 case "(($ac_try" in
17704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705   *) ac_try_echo=$ac_try;;
17706 esac
17707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17708   (eval "$ac_link") 2>conftest.er1
17709   ac_status=$?
17710   grep -v '^ *+' conftest.er1 >conftest.err
17711   rm -f conftest.er1
17712   cat conftest.err >&5
17713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714   (exit $ac_status); } &&
17715          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17716   { (case "(($ac_try" in
17717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718   *) ac_try_echo=$ac_try;;
17719 esac
17720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17721   (eval "$ac_try") 2>&5
17722   ac_status=$?
17723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724   (exit $ac_status); }; } &&
17725          { ac_try='test -s conftest$ac_exeext'
17726   { (case "(($ac_try" in
17727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728   *) ac_try_echo=$ac_try;;
17729 esac
17730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731   (eval "$ac_try") 2>&5
17732   ac_status=$?
17733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734   (exit $ac_status); }; }; then
17735   eval "$as_ac_var=yes"
17736 else
17737   echo "$as_me: failed program was:" >&5
17738 sed 's/^/| /' conftest.$ac_ext >&5
17739
17740         eval "$as_ac_var=no"
17741 fi
17742
17743 rm -f core conftest.err conftest.$ac_objext \
17744       conftest$ac_exeext conftest.$ac_ext
17745 fi
17746 ac_res=`eval echo '${'$as_ac_var'}'`
17747                { echo "$as_me:$LINENO: result: $ac_res" >&5
17748 echo "${ECHO_T}$ac_res" >&6; }
17749 if test `eval echo '${'$as_ac_var'}'` = yes; then
17750   cat >>confdefs.h <<_ACEOF
17751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17752 _ACEOF
17753
17754 fi
17755 done
17756
17757
17758
17759
17760
17761 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17762 do
17763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17764 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17766 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17767   echo $ECHO_N "(cached) $ECHO_C" >&6
17768 else
17769   cat >conftest.$ac_ext <<_ACEOF
17770 /* confdefs.h.  */
17771 _ACEOF
17772 cat confdefs.h >>conftest.$ac_ext
17773 cat >>conftest.$ac_ext <<_ACEOF
17774 /* end confdefs.h.  */
17775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17776    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17777 #define $ac_func innocuous_$ac_func
17778
17779 /* System header to define __stub macros and hopefully few prototypes,
17780     which can conflict with char $ac_func (); below.
17781     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17782     <limits.h> exists even on freestanding compilers.  */
17783
17784 #ifdef __STDC__
17785 # include <limits.h>
17786 #else
17787 # include <assert.h>
17788 #endif
17789
17790 #undef $ac_func
17791
17792 /* Override any GCC internal prototype to avoid an error.
17793    Use char because int might match the return type of a GCC
17794    builtin and then its argument prototype would still apply.  */
17795 #ifdef __cplusplus
17796 extern "C"
17797 #endif
17798 char $ac_func ();
17799 /* The GNU C library defines this for functions which it implements
17800     to always fail with ENOSYS.  Some functions are actually named
17801     something starting with __ and the normal name is an alias.  */
17802 #if defined __stub_$ac_func || defined __stub___$ac_func
17803 choke me
17804 #endif
17805
17806 int
17807 main ()
17808 {
17809 return $ac_func ();
17810   ;
17811   return 0;
17812 }
17813 _ACEOF
17814 rm -f conftest.$ac_objext conftest$ac_exeext
17815 if { (ac_try="$ac_link"
17816 case "(($ac_try" in
17817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818   *) ac_try_echo=$ac_try;;
17819 esac
17820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17821   (eval "$ac_link") 2>conftest.er1
17822   ac_status=$?
17823   grep -v '^ *+' conftest.er1 >conftest.err
17824   rm -f conftest.er1
17825   cat conftest.err >&5
17826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827   (exit $ac_status); } &&
17828          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17829   { (case "(($ac_try" in
17830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17831   *) ac_try_echo=$ac_try;;
17832 esac
17833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17834   (eval "$ac_try") 2>&5
17835   ac_status=$?
17836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837   (exit $ac_status); }; } &&
17838          { ac_try='test -s conftest$ac_exeext'
17839   { (case "(($ac_try" in
17840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17841   *) ac_try_echo=$ac_try;;
17842 esac
17843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17844   (eval "$ac_try") 2>&5
17845   ac_status=$?
17846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847   (exit $ac_status); }; }; then
17848   eval "$as_ac_var=yes"
17849 else
17850   echo "$as_me: failed program was:" >&5
17851 sed 's/^/| /' conftest.$ac_ext >&5
17852
17853         eval "$as_ac_var=no"
17854 fi
17855
17856 rm -f core conftest.err conftest.$ac_objext \
17857       conftest$ac_exeext conftest.$ac_ext
17858 fi
17859 ac_res=`eval echo '${'$as_ac_var'}'`
17860                { echo "$as_me:$LINENO: result: $ac_res" >&5
17861 echo "${ECHO_T}$ac_res" >&6; }
17862 if test `eval echo '${'$as_ac_var'}'` = yes; then
17863   cat >>confdefs.h <<_ACEOF
17864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17865 _ACEOF
17866
17867 fi
17868 done
17869
17870
17871
17872
17873
17874
17875 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17876 do
17877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17878 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17880 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17881   echo $ECHO_N "(cached) $ECHO_C" >&6
17882 else
17883   cat >conftest.$ac_ext <<_ACEOF
17884 /* confdefs.h.  */
17885 _ACEOF
17886 cat confdefs.h >>conftest.$ac_ext
17887 cat >>conftest.$ac_ext <<_ACEOF
17888 /* end confdefs.h.  */
17889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17890    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17891 #define $ac_func innocuous_$ac_func
17892
17893 /* System header to define __stub macros and hopefully few prototypes,
17894     which can conflict with char $ac_func (); below.
17895     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17896     <limits.h> exists even on freestanding compilers.  */
17897
17898 #ifdef __STDC__
17899 # include <limits.h>
17900 #else
17901 # include <assert.h>
17902 #endif
17903
17904 #undef $ac_func
17905
17906 /* Override any GCC internal prototype to avoid an error.
17907    Use char because int might match the return type of a GCC
17908    builtin and then its argument prototype would still apply.  */
17909 #ifdef __cplusplus
17910 extern "C"
17911 #endif
17912 char $ac_func ();
17913 /* The GNU C library defines this for functions which it implements
17914     to always fail with ENOSYS.  Some functions are actually named
17915     something starting with __ and the normal name is an alias.  */
17916 #if defined __stub_$ac_func || defined __stub___$ac_func
17917 choke me
17918 #endif
17919
17920 int
17921 main ()
17922 {
17923 return $ac_func ();
17924   ;
17925   return 0;
17926 }
17927 _ACEOF
17928 rm -f conftest.$ac_objext conftest$ac_exeext
17929 if { (ac_try="$ac_link"
17930 case "(($ac_try" in
17931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17932   *) ac_try_echo=$ac_try;;
17933 esac
17934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17935   (eval "$ac_link") 2>conftest.er1
17936   ac_status=$?
17937   grep -v '^ *+' conftest.er1 >conftest.err
17938   rm -f conftest.er1
17939   cat conftest.err >&5
17940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941   (exit $ac_status); } &&
17942          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17943   { (case "(($ac_try" in
17944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17945   *) ac_try_echo=$ac_try;;
17946 esac
17947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17948   (eval "$ac_try") 2>&5
17949   ac_status=$?
17950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951   (exit $ac_status); }; } &&
17952          { ac_try='test -s conftest$ac_exeext'
17953   { (case "(($ac_try" in
17954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17955   *) ac_try_echo=$ac_try;;
17956 esac
17957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17958   (eval "$ac_try") 2>&5
17959   ac_status=$?
17960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961   (exit $ac_status); }; }; then
17962   eval "$as_ac_var=yes"
17963 else
17964   echo "$as_me: failed program was:" >&5
17965 sed 's/^/| /' conftest.$ac_ext >&5
17966
17967         eval "$as_ac_var=no"
17968 fi
17969
17970 rm -f core conftest.err conftest.$ac_objext \
17971       conftest$ac_exeext conftest.$ac_ext
17972 fi
17973 ac_res=`eval echo '${'$as_ac_var'}'`
17974                { echo "$as_me:$LINENO: result: $ac_res" >&5
17975 echo "${ECHO_T}$ac_res" >&6; }
17976 if test `eval echo '${'$as_ac_var'}'` = yes; then
17977   cat >>confdefs.h <<_ACEOF
17978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17979 _ACEOF
17980
17981 fi
17982 done
17983
17984 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17985 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17986 if test "${llvm_cv_c_printf_a+set}" = set; then
17987   echo $ECHO_N "(cached) $ECHO_C" >&6
17988 else
17989   ac_ext=c
17990 ac_cpp='$CPP $CPPFLAGS'
17991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17994
17995  if test "$cross_compiling" = yes; then
17996   llvmac_cv_c_printf_a=no
17997 else
17998   cat >conftest.$ac_ext <<_ACEOF
17999
18000   /* confdefs.h.  */
18001 _ACEOF
18002 cat confdefs.h >>conftest.$ac_ext
18003 cat >>conftest.$ac_ext <<_ACEOF
18004 /* end confdefs.h.  */
18005
18006 #include <stdio.h>
18007 #include <stdlib.h>
18008
18009 int
18010 main ()
18011 {
18012
18013 volatile double A, B;
18014 char Buffer[100];
18015 A = 1;
18016 A /= 10.0;
18017 sprintf(Buffer, "%a", A);
18018 B = atof(Buffer);
18019 if (A != B)
18020   return (1);
18021 if (A != 0x1.999999999999ap-4)
18022   return (1);
18023 return (0);
18024   ;
18025   return 0;
18026 }
18027 _ACEOF
18028 rm -f conftest$ac_exeext
18029 if { (ac_try="$ac_link"
18030 case "(($ac_try" in
18031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18032   *) ac_try_echo=$ac_try;;
18033 esac
18034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18035   (eval "$ac_link") 2>&5
18036   ac_status=$?
18037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18039   { (case "(($ac_try" in
18040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18041   *) ac_try_echo=$ac_try;;
18042 esac
18043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18044   (eval "$ac_try") 2>&5
18045   ac_status=$?
18046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047   (exit $ac_status); }; }; then
18048   llvm_cv_c_printf_a=yes
18049 else
18050   echo "$as_me: program exited with status $ac_status" >&5
18051 echo "$as_me: failed program was:" >&5
18052 sed 's/^/| /' conftest.$ac_ext >&5
18053
18054 ( exit $ac_status )
18055 llvmac_cv_c_printf_a=no
18056 fi
18057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18058 fi
18059
18060
18061  ac_ext=c
18062 ac_cpp='$CPP $CPPFLAGS'
18063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18066
18067 fi
18068 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18069 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18070  if test "$llvm_cv_c_printf_a" = "yes"; then
18071
18072 cat >>confdefs.h <<\_ACEOF
18073 #define HAVE_PRINTF_A 1
18074 _ACEOF
18075
18076  fi
18077
18078
18079 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18080 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18081 if test "${ac_cv_func_rand48+set}" = set; then
18082   echo $ECHO_N "(cached) $ECHO_C" >&6
18083 else
18084   ac_ext=cpp
18085 ac_cpp='$CXXCPP $CPPFLAGS'
18086 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18087 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18088 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18089
18090    cat >conftest.$ac_ext <<_ACEOF
18091 /* confdefs.h.  */
18092 _ACEOF
18093 cat confdefs.h >>conftest.$ac_ext
18094 cat >>conftest.$ac_ext <<_ACEOF
18095 /* end confdefs.h.  */
18096 #include <stdlib.h>
18097 int
18098 main ()
18099 {
18100 srand48(0);lrand48();drand48();
18101   ;
18102   return 0;
18103 }
18104 _ACEOF
18105 rm -f conftest.$ac_objext
18106 if { (ac_try="$ac_compile"
18107 case "(($ac_try" in
18108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18109   *) ac_try_echo=$ac_try;;
18110 esac
18111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18112   (eval "$ac_compile") 2>conftest.er1
18113   ac_status=$?
18114   grep -v '^ *+' conftest.er1 >conftest.err
18115   rm -f conftest.er1
18116   cat conftest.err >&5
18117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118   (exit $ac_status); } &&
18119          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18120   { (case "(($ac_try" in
18121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18122   *) ac_try_echo=$ac_try;;
18123 esac
18124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18125   (eval "$ac_try") 2>&5
18126   ac_status=$?
18127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128   (exit $ac_status); }; } &&
18129          { ac_try='test -s conftest.$ac_objext'
18130   { (case "(($ac_try" in
18131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18132   *) ac_try_echo=$ac_try;;
18133 esac
18134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18135   (eval "$ac_try") 2>&5
18136   ac_status=$?
18137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138   (exit $ac_status); }; }; then
18139   ac_cv_func_rand48=yes
18140 else
18141   echo "$as_me: failed program was:" >&5
18142 sed 's/^/| /' conftest.$ac_ext >&5
18143
18144         ac_cv_func_rand48=no
18145 fi
18146
18147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18148   ac_ext=c
18149 ac_cpp='$CPP $CPPFLAGS'
18150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18153
18154 fi
18155 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18156 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18157
18158 if test "$ac_cv_func_rand48" = "yes" ; then
18159
18160 cat >>confdefs.h <<\_ACEOF
18161 #define HAVE_RAND48 1
18162 _ACEOF
18163
18164 fi
18165
18166
18167 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18168 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18169 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18170   echo $ECHO_N "(cached) $ECHO_C" >&6
18171 else
18172   cat >conftest.$ac_ext <<_ACEOF
18173 /* confdefs.h.  */
18174 _ACEOF
18175 cat confdefs.h >>conftest.$ac_ext
18176 cat >>conftest.$ac_ext <<_ACEOF
18177 /* end confdefs.h.  */
18178 $ac_includes_default
18179 int
18180 main ()
18181 {
18182 #ifndef strerror_s
18183   char *p = (char *) strerror_s;
18184   return !p;
18185 #endif
18186
18187   ;
18188   return 0;
18189 }
18190 _ACEOF
18191 rm -f conftest.$ac_objext
18192 if { (ac_try="$ac_compile"
18193 case "(($ac_try" in
18194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18195   *) ac_try_echo=$ac_try;;
18196 esac
18197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18198   (eval "$ac_compile") 2>conftest.er1
18199   ac_status=$?
18200   grep -v '^ *+' conftest.er1 >conftest.err
18201   rm -f conftest.er1
18202   cat conftest.err >&5
18203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204   (exit $ac_status); } &&
18205          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18206   { (case "(($ac_try" in
18207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18208   *) ac_try_echo=$ac_try;;
18209 esac
18210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18211   (eval "$ac_try") 2>&5
18212   ac_status=$?
18213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214   (exit $ac_status); }; } &&
18215          { ac_try='test -s conftest.$ac_objext'
18216   { (case "(($ac_try" in
18217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18218   *) ac_try_echo=$ac_try;;
18219 esac
18220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18221   (eval "$ac_try") 2>&5
18222   ac_status=$?
18223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224   (exit $ac_status); }; }; then
18225   ac_cv_have_decl_strerror_s=yes
18226 else
18227   echo "$as_me: failed program was:" >&5
18228 sed 's/^/| /' conftest.$ac_ext >&5
18229
18230         ac_cv_have_decl_strerror_s=no
18231 fi
18232
18233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18234 fi
18235 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18236 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18237 if test $ac_cv_have_decl_strerror_s = yes; then
18238
18239 cat >>confdefs.h <<_ACEOF
18240 #define HAVE_DECL_STRERROR_S 1
18241 _ACEOF
18242
18243
18244 else
18245   cat >>confdefs.h <<_ACEOF
18246 #define HAVE_DECL_STRERROR_S 0
18247 _ACEOF
18248
18249
18250 fi
18251
18252
18253
18254 if test "$llvm_cv_os_type" = "MingW" ; then
18255   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18256 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18257 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18258   echo $ECHO_N "(cached) $ECHO_C" >&6
18259 else
18260   ac_check_lib_save_LIBS=$LIBS
18261 LIBS="-lgcc  $LIBS"
18262 cat >conftest.$ac_ext <<_ACEOF
18263 /* confdefs.h.  */
18264 _ACEOF
18265 cat confdefs.h >>conftest.$ac_ext
18266 cat >>conftest.$ac_ext <<_ACEOF
18267 /* end confdefs.h.  */
18268
18269 /* Override any GCC internal prototype to avoid an error.
18270    Use char because int might match the return type of a GCC
18271    builtin and then its argument prototype would still apply.  */
18272 #ifdef __cplusplus
18273 extern "C"
18274 #endif
18275 char _alloca ();
18276 int
18277 main ()
18278 {
18279 return _alloca ();
18280   ;
18281   return 0;
18282 }
18283 _ACEOF
18284 rm -f conftest.$ac_objext conftest$ac_exeext
18285 if { (ac_try="$ac_link"
18286 case "(($ac_try" in
18287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18288   *) ac_try_echo=$ac_try;;
18289 esac
18290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18291   (eval "$ac_link") 2>conftest.er1
18292   ac_status=$?
18293   grep -v '^ *+' conftest.er1 >conftest.err
18294   rm -f conftest.er1
18295   cat conftest.err >&5
18296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297   (exit $ac_status); } &&
18298          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18299   { (case "(($ac_try" in
18300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18301   *) ac_try_echo=$ac_try;;
18302 esac
18303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18304   (eval "$ac_try") 2>&5
18305   ac_status=$?
18306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307   (exit $ac_status); }; } &&
18308          { ac_try='test -s conftest$ac_exeext'
18309   { (case "(($ac_try" in
18310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18311   *) ac_try_echo=$ac_try;;
18312 esac
18313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18314   (eval "$ac_try") 2>&5
18315   ac_status=$?
18316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317   (exit $ac_status); }; }; then
18318   ac_cv_lib_gcc__alloca=yes
18319 else
18320   echo "$as_me: failed program was:" >&5
18321 sed 's/^/| /' conftest.$ac_ext >&5
18322
18323         ac_cv_lib_gcc__alloca=no
18324 fi
18325
18326 rm -f core conftest.err conftest.$ac_objext \
18327       conftest$ac_exeext conftest.$ac_ext
18328 LIBS=$ac_check_lib_save_LIBS
18329 fi
18330 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18331 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18332 if test $ac_cv_lib_gcc__alloca = yes; then
18333
18334 cat >>confdefs.h <<\_ACEOF
18335 #define HAVE__ALLOCA 1
18336 _ACEOF
18337
18338 fi
18339
18340   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18341 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18342 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18343   echo $ECHO_N "(cached) $ECHO_C" >&6
18344 else
18345   ac_check_lib_save_LIBS=$LIBS
18346 LIBS="-lgcc  $LIBS"
18347 cat >conftest.$ac_ext <<_ACEOF
18348 /* confdefs.h.  */
18349 _ACEOF
18350 cat confdefs.h >>conftest.$ac_ext
18351 cat >>conftest.$ac_ext <<_ACEOF
18352 /* end confdefs.h.  */
18353
18354 /* Override any GCC internal prototype to avoid an error.
18355    Use char because int might match the return type of a GCC
18356    builtin and then its argument prototype would still apply.  */
18357 #ifdef __cplusplus
18358 extern "C"
18359 #endif
18360 char __alloca ();
18361 int
18362 main ()
18363 {
18364 return __alloca ();
18365   ;
18366   return 0;
18367 }
18368 _ACEOF
18369 rm -f conftest.$ac_objext conftest$ac_exeext
18370 if { (ac_try="$ac_link"
18371 case "(($ac_try" in
18372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18373   *) ac_try_echo=$ac_try;;
18374 esac
18375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18376   (eval "$ac_link") 2>conftest.er1
18377   ac_status=$?
18378   grep -v '^ *+' conftest.er1 >conftest.err
18379   rm -f conftest.er1
18380   cat conftest.err >&5
18381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382   (exit $ac_status); } &&
18383          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18384   { (case "(($ac_try" in
18385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18386   *) ac_try_echo=$ac_try;;
18387 esac
18388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18389   (eval "$ac_try") 2>&5
18390   ac_status=$?
18391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392   (exit $ac_status); }; } &&
18393          { ac_try='test -s conftest$ac_exeext'
18394   { (case "(($ac_try" in
18395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18396   *) ac_try_echo=$ac_try;;
18397 esac
18398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18399   (eval "$ac_try") 2>&5
18400   ac_status=$?
18401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402   (exit $ac_status); }; }; then
18403   ac_cv_lib_gcc___alloca=yes
18404 else
18405   echo "$as_me: failed program was:" >&5
18406 sed 's/^/| /' conftest.$ac_ext >&5
18407
18408         ac_cv_lib_gcc___alloca=no
18409 fi
18410
18411 rm -f core conftest.err conftest.$ac_objext \
18412       conftest$ac_exeext conftest.$ac_ext
18413 LIBS=$ac_check_lib_save_LIBS
18414 fi
18415 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18416 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18417 if test $ac_cv_lib_gcc___alloca = yes; then
18418
18419 cat >>confdefs.h <<\_ACEOF
18420 #define HAVE___ALLOCA 1
18421 _ACEOF
18422
18423 fi
18424
18425   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18426 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18427 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18428   echo $ECHO_N "(cached) $ECHO_C" >&6
18429 else
18430   ac_check_lib_save_LIBS=$LIBS
18431 LIBS="-lgcc  $LIBS"
18432 cat >conftest.$ac_ext <<_ACEOF
18433 /* confdefs.h.  */
18434 _ACEOF
18435 cat confdefs.h >>conftest.$ac_ext
18436 cat >>conftest.$ac_ext <<_ACEOF
18437 /* end confdefs.h.  */
18438
18439 /* Override any GCC internal prototype to avoid an error.
18440    Use char because int might match the return type of a GCC
18441    builtin and then its argument prototype would still apply.  */
18442 #ifdef __cplusplus
18443 extern "C"
18444 #endif
18445 char __chkstk ();
18446 int
18447 main ()
18448 {
18449 return __chkstk ();
18450   ;
18451   return 0;
18452 }
18453 _ACEOF
18454 rm -f conftest.$ac_objext conftest$ac_exeext
18455 if { (ac_try="$ac_link"
18456 case "(($ac_try" in
18457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18458   *) ac_try_echo=$ac_try;;
18459 esac
18460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18461   (eval "$ac_link") 2>conftest.er1
18462   ac_status=$?
18463   grep -v '^ *+' conftest.er1 >conftest.err
18464   rm -f conftest.er1
18465   cat conftest.err >&5
18466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467   (exit $ac_status); } &&
18468          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18469   { (case "(($ac_try" in
18470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18471   *) ac_try_echo=$ac_try;;
18472 esac
18473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18474   (eval "$ac_try") 2>&5
18475   ac_status=$?
18476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477   (exit $ac_status); }; } &&
18478          { ac_try='test -s conftest$ac_exeext'
18479   { (case "(($ac_try" in
18480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18481   *) ac_try_echo=$ac_try;;
18482 esac
18483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18484   (eval "$ac_try") 2>&5
18485   ac_status=$?
18486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487   (exit $ac_status); }; }; then
18488   ac_cv_lib_gcc___chkstk=yes
18489 else
18490   echo "$as_me: failed program was:" >&5
18491 sed 's/^/| /' conftest.$ac_ext >&5
18492
18493         ac_cv_lib_gcc___chkstk=no
18494 fi
18495
18496 rm -f core conftest.err conftest.$ac_objext \
18497       conftest$ac_exeext conftest.$ac_ext
18498 LIBS=$ac_check_lib_save_LIBS
18499 fi
18500 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18501 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18502 if test $ac_cv_lib_gcc___chkstk = yes; then
18503
18504 cat >>confdefs.h <<\_ACEOF
18505 #define HAVE___CHKSTK 1
18506 _ACEOF
18507
18508 fi
18509
18510   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18511 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18512 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18513   echo $ECHO_N "(cached) $ECHO_C" >&6
18514 else
18515   ac_check_lib_save_LIBS=$LIBS
18516 LIBS="-lgcc  $LIBS"
18517 cat >conftest.$ac_ext <<_ACEOF
18518 /* confdefs.h.  */
18519 _ACEOF
18520 cat confdefs.h >>conftest.$ac_ext
18521 cat >>conftest.$ac_ext <<_ACEOF
18522 /* end confdefs.h.  */
18523
18524 /* Override any GCC internal prototype to avoid an error.
18525    Use char because int might match the return type of a GCC
18526    builtin and then its argument prototype would still apply.  */
18527 #ifdef __cplusplus
18528 extern "C"
18529 #endif
18530 char ___chkstk ();
18531 int
18532 main ()
18533 {
18534 return ___chkstk ();
18535   ;
18536   return 0;
18537 }
18538 _ACEOF
18539 rm -f conftest.$ac_objext conftest$ac_exeext
18540 if { (ac_try="$ac_link"
18541 case "(($ac_try" in
18542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18543   *) ac_try_echo=$ac_try;;
18544 esac
18545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18546   (eval "$ac_link") 2>conftest.er1
18547   ac_status=$?
18548   grep -v '^ *+' conftest.er1 >conftest.err
18549   rm -f conftest.er1
18550   cat conftest.err >&5
18551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552   (exit $ac_status); } &&
18553          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18554   { (case "(($ac_try" in
18555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18556   *) ac_try_echo=$ac_try;;
18557 esac
18558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18559   (eval "$ac_try") 2>&5
18560   ac_status=$?
18561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562   (exit $ac_status); }; } &&
18563          { ac_try='test -s conftest$ac_exeext'
18564   { (case "(($ac_try" in
18565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18566   *) ac_try_echo=$ac_try;;
18567 esac
18568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18569   (eval "$ac_try") 2>&5
18570   ac_status=$?
18571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572   (exit $ac_status); }; }; then
18573   ac_cv_lib_gcc____chkstk=yes
18574 else
18575   echo "$as_me: failed program was:" >&5
18576 sed 's/^/| /' conftest.$ac_ext >&5
18577
18578         ac_cv_lib_gcc____chkstk=no
18579 fi
18580
18581 rm -f core conftest.err conftest.$ac_objext \
18582       conftest$ac_exeext conftest.$ac_ext
18583 LIBS=$ac_check_lib_save_LIBS
18584 fi
18585 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18586 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18587 if test $ac_cv_lib_gcc____chkstk = yes; then
18588
18589 cat >>confdefs.h <<\_ACEOF
18590 #define HAVE____CHKSTK 1
18591 _ACEOF
18592
18593 fi
18594
18595
18596   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18597 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18598 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18599   echo $ECHO_N "(cached) $ECHO_C" >&6
18600 else
18601   ac_check_lib_save_LIBS=$LIBS
18602 LIBS="-lgcc  $LIBS"
18603 cat >conftest.$ac_ext <<_ACEOF
18604 /* confdefs.h.  */
18605 _ACEOF
18606 cat confdefs.h >>conftest.$ac_ext
18607 cat >>conftest.$ac_ext <<_ACEOF
18608 /* end confdefs.h.  */
18609
18610 /* Override any GCC internal prototype to avoid an error.
18611    Use char because int might match the return type of a GCC
18612    builtin and then its argument prototype would still apply.  */
18613 #ifdef __cplusplus
18614 extern "C"
18615 #endif
18616 char __ashldi3 ();
18617 int
18618 main ()
18619 {
18620 return __ashldi3 ();
18621   ;
18622   return 0;
18623 }
18624 _ACEOF
18625 rm -f conftest.$ac_objext conftest$ac_exeext
18626 if { (ac_try="$ac_link"
18627 case "(($ac_try" in
18628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18629   *) ac_try_echo=$ac_try;;
18630 esac
18631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18632   (eval "$ac_link") 2>conftest.er1
18633   ac_status=$?
18634   grep -v '^ *+' conftest.er1 >conftest.err
18635   rm -f conftest.er1
18636   cat conftest.err >&5
18637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638   (exit $ac_status); } &&
18639          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18640   { (case "(($ac_try" in
18641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18642   *) ac_try_echo=$ac_try;;
18643 esac
18644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18645   (eval "$ac_try") 2>&5
18646   ac_status=$?
18647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648   (exit $ac_status); }; } &&
18649          { ac_try='test -s conftest$ac_exeext'
18650   { (case "(($ac_try" in
18651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18652   *) ac_try_echo=$ac_try;;
18653 esac
18654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18655   (eval "$ac_try") 2>&5
18656   ac_status=$?
18657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658   (exit $ac_status); }; }; then
18659   ac_cv_lib_gcc___ashldi3=yes
18660 else
18661   echo "$as_me: failed program was:" >&5
18662 sed 's/^/| /' conftest.$ac_ext >&5
18663
18664         ac_cv_lib_gcc___ashldi3=no
18665 fi
18666
18667 rm -f core conftest.err conftest.$ac_objext \
18668       conftest$ac_exeext conftest.$ac_ext
18669 LIBS=$ac_check_lib_save_LIBS
18670 fi
18671 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18672 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18673 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18674
18675 cat >>confdefs.h <<\_ACEOF
18676 #define HAVE___ASHLDI3 1
18677 _ACEOF
18678
18679 fi
18680
18681   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18682 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18683 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18684   echo $ECHO_N "(cached) $ECHO_C" >&6
18685 else
18686   ac_check_lib_save_LIBS=$LIBS
18687 LIBS="-lgcc  $LIBS"
18688 cat >conftest.$ac_ext <<_ACEOF
18689 /* confdefs.h.  */
18690 _ACEOF
18691 cat confdefs.h >>conftest.$ac_ext
18692 cat >>conftest.$ac_ext <<_ACEOF
18693 /* end confdefs.h.  */
18694
18695 /* Override any GCC internal prototype to avoid an error.
18696    Use char because int might match the return type of a GCC
18697    builtin and then its argument prototype would still apply.  */
18698 #ifdef __cplusplus
18699 extern "C"
18700 #endif
18701 char __ashrdi3 ();
18702 int
18703 main ()
18704 {
18705 return __ashrdi3 ();
18706   ;
18707   return 0;
18708 }
18709 _ACEOF
18710 rm -f conftest.$ac_objext conftest$ac_exeext
18711 if { (ac_try="$ac_link"
18712 case "(($ac_try" in
18713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18714   *) ac_try_echo=$ac_try;;
18715 esac
18716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18717   (eval "$ac_link") 2>conftest.er1
18718   ac_status=$?
18719   grep -v '^ *+' conftest.er1 >conftest.err
18720   rm -f conftest.er1
18721   cat conftest.err >&5
18722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723   (exit $ac_status); } &&
18724          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18725   { (case "(($ac_try" in
18726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18727   *) ac_try_echo=$ac_try;;
18728 esac
18729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18730   (eval "$ac_try") 2>&5
18731   ac_status=$?
18732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733   (exit $ac_status); }; } &&
18734          { ac_try='test -s conftest$ac_exeext'
18735   { (case "(($ac_try" in
18736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18737   *) ac_try_echo=$ac_try;;
18738 esac
18739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18740   (eval "$ac_try") 2>&5
18741   ac_status=$?
18742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743   (exit $ac_status); }; }; then
18744   ac_cv_lib_gcc___ashrdi3=yes
18745 else
18746   echo "$as_me: failed program was:" >&5
18747 sed 's/^/| /' conftest.$ac_ext >&5
18748
18749         ac_cv_lib_gcc___ashrdi3=no
18750 fi
18751
18752 rm -f core conftest.err conftest.$ac_objext \
18753       conftest$ac_exeext conftest.$ac_ext
18754 LIBS=$ac_check_lib_save_LIBS
18755 fi
18756 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18757 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18758 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18759
18760 cat >>confdefs.h <<\_ACEOF
18761 #define HAVE___ASHRDI3 1
18762 _ACEOF
18763
18764 fi
18765
18766   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18767 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18768 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18769   echo $ECHO_N "(cached) $ECHO_C" >&6
18770 else
18771   ac_check_lib_save_LIBS=$LIBS
18772 LIBS="-lgcc  $LIBS"
18773 cat >conftest.$ac_ext <<_ACEOF
18774 /* confdefs.h.  */
18775 _ACEOF
18776 cat confdefs.h >>conftest.$ac_ext
18777 cat >>conftest.$ac_ext <<_ACEOF
18778 /* end confdefs.h.  */
18779
18780 /* Override any GCC internal prototype to avoid an error.
18781    Use char because int might match the return type of a GCC
18782    builtin and then its argument prototype would still apply.  */
18783 #ifdef __cplusplus
18784 extern "C"
18785 #endif
18786 char __divdi3 ();
18787 int
18788 main ()
18789 {
18790 return __divdi3 ();
18791   ;
18792   return 0;
18793 }
18794 _ACEOF
18795 rm -f conftest.$ac_objext conftest$ac_exeext
18796 if { (ac_try="$ac_link"
18797 case "(($ac_try" in
18798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18799   *) ac_try_echo=$ac_try;;
18800 esac
18801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18802   (eval "$ac_link") 2>conftest.er1
18803   ac_status=$?
18804   grep -v '^ *+' conftest.er1 >conftest.err
18805   rm -f conftest.er1
18806   cat conftest.err >&5
18807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808   (exit $ac_status); } &&
18809          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18810   { (case "(($ac_try" in
18811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18812   *) ac_try_echo=$ac_try;;
18813 esac
18814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18815   (eval "$ac_try") 2>&5
18816   ac_status=$?
18817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818   (exit $ac_status); }; } &&
18819          { ac_try='test -s conftest$ac_exeext'
18820   { (case "(($ac_try" in
18821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18822   *) ac_try_echo=$ac_try;;
18823 esac
18824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18825   (eval "$ac_try") 2>&5
18826   ac_status=$?
18827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828   (exit $ac_status); }; }; then
18829   ac_cv_lib_gcc___divdi3=yes
18830 else
18831   echo "$as_me: failed program was:" >&5
18832 sed 's/^/| /' conftest.$ac_ext >&5
18833
18834         ac_cv_lib_gcc___divdi3=no
18835 fi
18836
18837 rm -f core conftest.err conftest.$ac_objext \
18838       conftest$ac_exeext conftest.$ac_ext
18839 LIBS=$ac_check_lib_save_LIBS
18840 fi
18841 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18842 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18843 if test $ac_cv_lib_gcc___divdi3 = yes; then
18844
18845 cat >>confdefs.h <<\_ACEOF
18846 #define HAVE___DIVDI3 1
18847 _ACEOF
18848
18849 fi
18850
18851   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18852 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18853 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18854   echo $ECHO_N "(cached) $ECHO_C" >&6
18855 else
18856   ac_check_lib_save_LIBS=$LIBS
18857 LIBS="-lgcc  $LIBS"
18858 cat >conftest.$ac_ext <<_ACEOF
18859 /* confdefs.h.  */
18860 _ACEOF
18861 cat confdefs.h >>conftest.$ac_ext
18862 cat >>conftest.$ac_ext <<_ACEOF
18863 /* end confdefs.h.  */
18864
18865 /* Override any GCC internal prototype to avoid an error.
18866    Use char because int might match the return type of a GCC
18867    builtin and then its argument prototype would still apply.  */
18868 #ifdef __cplusplus
18869 extern "C"
18870 #endif
18871 char __fixdfdi ();
18872 int
18873 main ()
18874 {
18875 return __fixdfdi ();
18876   ;
18877   return 0;
18878 }
18879 _ACEOF
18880 rm -f conftest.$ac_objext conftest$ac_exeext
18881 if { (ac_try="$ac_link"
18882 case "(($ac_try" in
18883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18884   *) ac_try_echo=$ac_try;;
18885 esac
18886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18887   (eval "$ac_link") 2>conftest.er1
18888   ac_status=$?
18889   grep -v '^ *+' conftest.er1 >conftest.err
18890   rm -f conftest.er1
18891   cat conftest.err >&5
18892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893   (exit $ac_status); } &&
18894          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18895   { (case "(($ac_try" in
18896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18897   *) ac_try_echo=$ac_try;;
18898 esac
18899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18900   (eval "$ac_try") 2>&5
18901   ac_status=$?
18902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903   (exit $ac_status); }; } &&
18904          { ac_try='test -s conftest$ac_exeext'
18905   { (case "(($ac_try" in
18906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18907   *) ac_try_echo=$ac_try;;
18908 esac
18909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18910   (eval "$ac_try") 2>&5
18911   ac_status=$?
18912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913   (exit $ac_status); }; }; then
18914   ac_cv_lib_gcc___fixdfdi=yes
18915 else
18916   echo "$as_me: failed program was:" >&5
18917 sed 's/^/| /' conftest.$ac_ext >&5
18918
18919         ac_cv_lib_gcc___fixdfdi=no
18920 fi
18921
18922 rm -f core conftest.err conftest.$ac_objext \
18923       conftest$ac_exeext conftest.$ac_ext
18924 LIBS=$ac_check_lib_save_LIBS
18925 fi
18926 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18927 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18928 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18929
18930 cat >>confdefs.h <<\_ACEOF
18931 #define HAVE___FIXDFDI 1
18932 _ACEOF
18933
18934 fi
18935
18936   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18937 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18938 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18939   echo $ECHO_N "(cached) $ECHO_C" >&6
18940 else
18941   ac_check_lib_save_LIBS=$LIBS
18942 LIBS="-lgcc  $LIBS"
18943 cat >conftest.$ac_ext <<_ACEOF
18944 /* confdefs.h.  */
18945 _ACEOF
18946 cat confdefs.h >>conftest.$ac_ext
18947 cat >>conftest.$ac_ext <<_ACEOF
18948 /* end confdefs.h.  */
18949
18950 /* Override any GCC internal prototype to avoid an error.
18951    Use char because int might match the return type of a GCC
18952    builtin and then its argument prototype would still apply.  */
18953 #ifdef __cplusplus
18954 extern "C"
18955 #endif
18956 char __fixsfdi ();
18957 int
18958 main ()
18959 {
18960 return __fixsfdi ();
18961   ;
18962   return 0;
18963 }
18964 _ACEOF
18965 rm -f conftest.$ac_objext conftest$ac_exeext
18966 if { (ac_try="$ac_link"
18967 case "(($ac_try" in
18968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18969   *) ac_try_echo=$ac_try;;
18970 esac
18971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18972   (eval "$ac_link") 2>conftest.er1
18973   ac_status=$?
18974   grep -v '^ *+' conftest.er1 >conftest.err
18975   rm -f conftest.er1
18976   cat conftest.err >&5
18977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978   (exit $ac_status); } &&
18979          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18980   { (case "(($ac_try" in
18981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18982   *) ac_try_echo=$ac_try;;
18983 esac
18984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18985   (eval "$ac_try") 2>&5
18986   ac_status=$?
18987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988   (exit $ac_status); }; } &&
18989          { ac_try='test -s conftest$ac_exeext'
18990   { (case "(($ac_try" in
18991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18992   *) ac_try_echo=$ac_try;;
18993 esac
18994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18995   (eval "$ac_try") 2>&5
18996   ac_status=$?
18997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998   (exit $ac_status); }; }; then
18999   ac_cv_lib_gcc___fixsfdi=yes
19000 else
19001   echo "$as_me: failed program was:" >&5
19002 sed 's/^/| /' conftest.$ac_ext >&5
19003
19004         ac_cv_lib_gcc___fixsfdi=no
19005 fi
19006
19007 rm -f core conftest.err conftest.$ac_objext \
19008       conftest$ac_exeext conftest.$ac_ext
19009 LIBS=$ac_check_lib_save_LIBS
19010 fi
19011 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19012 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19013 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19014
19015 cat >>confdefs.h <<\_ACEOF
19016 #define HAVE___FIXSFDI 1
19017 _ACEOF
19018
19019 fi
19020
19021   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19022 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19023 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19024   echo $ECHO_N "(cached) $ECHO_C" >&6
19025 else
19026   ac_check_lib_save_LIBS=$LIBS
19027 LIBS="-lgcc  $LIBS"
19028 cat >conftest.$ac_ext <<_ACEOF
19029 /* confdefs.h.  */
19030 _ACEOF
19031 cat confdefs.h >>conftest.$ac_ext
19032 cat >>conftest.$ac_ext <<_ACEOF
19033 /* end confdefs.h.  */
19034
19035 /* Override any GCC internal prototype to avoid an error.
19036    Use char because int might match the return type of a GCC
19037    builtin and then its argument prototype would still apply.  */
19038 #ifdef __cplusplus
19039 extern "C"
19040 #endif
19041 char __floatdidf ();
19042 int
19043 main ()
19044 {
19045 return __floatdidf ();
19046   ;
19047   return 0;
19048 }
19049 _ACEOF
19050 rm -f conftest.$ac_objext conftest$ac_exeext
19051 if { (ac_try="$ac_link"
19052 case "(($ac_try" in
19053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19054   *) ac_try_echo=$ac_try;;
19055 esac
19056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19057   (eval "$ac_link") 2>conftest.er1
19058   ac_status=$?
19059   grep -v '^ *+' conftest.er1 >conftest.err
19060   rm -f conftest.er1
19061   cat conftest.err >&5
19062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063   (exit $ac_status); } &&
19064          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19065   { (case "(($ac_try" in
19066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19067   *) ac_try_echo=$ac_try;;
19068 esac
19069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19070   (eval "$ac_try") 2>&5
19071   ac_status=$?
19072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073   (exit $ac_status); }; } &&
19074          { ac_try='test -s conftest$ac_exeext'
19075   { (case "(($ac_try" in
19076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19077   *) ac_try_echo=$ac_try;;
19078 esac
19079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19080   (eval "$ac_try") 2>&5
19081   ac_status=$?
19082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083   (exit $ac_status); }; }; then
19084   ac_cv_lib_gcc___floatdidf=yes
19085 else
19086   echo "$as_me: failed program was:" >&5
19087 sed 's/^/| /' conftest.$ac_ext >&5
19088
19089         ac_cv_lib_gcc___floatdidf=no
19090 fi
19091
19092 rm -f core conftest.err conftest.$ac_objext \
19093       conftest$ac_exeext conftest.$ac_ext
19094 LIBS=$ac_check_lib_save_LIBS
19095 fi
19096 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19097 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19098 if test $ac_cv_lib_gcc___floatdidf = yes; then
19099
19100 cat >>confdefs.h <<\_ACEOF
19101 #define HAVE___FLOATDIDF 1
19102 _ACEOF
19103
19104 fi
19105
19106   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19107 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19108 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19109   echo $ECHO_N "(cached) $ECHO_C" >&6
19110 else
19111   ac_check_lib_save_LIBS=$LIBS
19112 LIBS="-lgcc  $LIBS"
19113 cat >conftest.$ac_ext <<_ACEOF
19114 /* confdefs.h.  */
19115 _ACEOF
19116 cat confdefs.h >>conftest.$ac_ext
19117 cat >>conftest.$ac_ext <<_ACEOF
19118 /* end confdefs.h.  */
19119
19120 /* Override any GCC internal prototype to avoid an error.
19121    Use char because int might match the return type of a GCC
19122    builtin and then its argument prototype would still apply.  */
19123 #ifdef __cplusplus
19124 extern "C"
19125 #endif
19126 char __lshrdi3 ();
19127 int
19128 main ()
19129 {
19130 return __lshrdi3 ();
19131   ;
19132   return 0;
19133 }
19134 _ACEOF
19135 rm -f conftest.$ac_objext conftest$ac_exeext
19136 if { (ac_try="$ac_link"
19137 case "(($ac_try" in
19138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19139   *) ac_try_echo=$ac_try;;
19140 esac
19141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19142   (eval "$ac_link") 2>conftest.er1
19143   ac_status=$?
19144   grep -v '^ *+' conftest.er1 >conftest.err
19145   rm -f conftest.er1
19146   cat conftest.err >&5
19147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148   (exit $ac_status); } &&
19149          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19150   { (case "(($ac_try" in
19151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19152   *) ac_try_echo=$ac_try;;
19153 esac
19154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19155   (eval "$ac_try") 2>&5
19156   ac_status=$?
19157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158   (exit $ac_status); }; } &&
19159          { ac_try='test -s conftest$ac_exeext'
19160   { (case "(($ac_try" in
19161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19162   *) ac_try_echo=$ac_try;;
19163 esac
19164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19165   (eval "$ac_try") 2>&5
19166   ac_status=$?
19167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168   (exit $ac_status); }; }; then
19169   ac_cv_lib_gcc___lshrdi3=yes
19170 else
19171   echo "$as_me: failed program was:" >&5
19172 sed 's/^/| /' conftest.$ac_ext >&5
19173
19174         ac_cv_lib_gcc___lshrdi3=no
19175 fi
19176
19177 rm -f core conftest.err conftest.$ac_objext \
19178       conftest$ac_exeext conftest.$ac_ext
19179 LIBS=$ac_check_lib_save_LIBS
19180 fi
19181 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19182 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19183 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19184
19185 cat >>confdefs.h <<\_ACEOF
19186 #define HAVE___LSHRDI3 1
19187 _ACEOF
19188
19189 fi
19190
19191   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19192 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19193 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19194   echo $ECHO_N "(cached) $ECHO_C" >&6
19195 else
19196   ac_check_lib_save_LIBS=$LIBS
19197 LIBS="-lgcc  $LIBS"
19198 cat >conftest.$ac_ext <<_ACEOF
19199 /* confdefs.h.  */
19200 _ACEOF
19201 cat confdefs.h >>conftest.$ac_ext
19202 cat >>conftest.$ac_ext <<_ACEOF
19203 /* end confdefs.h.  */
19204
19205 /* Override any GCC internal prototype to avoid an error.
19206    Use char because int might match the return type of a GCC
19207    builtin and then its argument prototype would still apply.  */
19208 #ifdef __cplusplus
19209 extern "C"
19210 #endif
19211 char __moddi3 ();
19212 int
19213 main ()
19214 {
19215 return __moddi3 ();
19216   ;
19217   return 0;
19218 }
19219 _ACEOF
19220 rm -f conftest.$ac_objext conftest$ac_exeext
19221 if { (ac_try="$ac_link"
19222 case "(($ac_try" in
19223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19224   *) ac_try_echo=$ac_try;;
19225 esac
19226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19227   (eval "$ac_link") 2>conftest.er1
19228   ac_status=$?
19229   grep -v '^ *+' conftest.er1 >conftest.err
19230   rm -f conftest.er1
19231   cat conftest.err >&5
19232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233   (exit $ac_status); } &&
19234          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19235   { (case "(($ac_try" in
19236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19237   *) ac_try_echo=$ac_try;;
19238 esac
19239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19240   (eval "$ac_try") 2>&5
19241   ac_status=$?
19242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243   (exit $ac_status); }; } &&
19244          { ac_try='test -s conftest$ac_exeext'
19245   { (case "(($ac_try" in
19246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19247   *) ac_try_echo=$ac_try;;
19248 esac
19249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19250   (eval "$ac_try") 2>&5
19251   ac_status=$?
19252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253   (exit $ac_status); }; }; then
19254   ac_cv_lib_gcc___moddi3=yes
19255 else
19256   echo "$as_me: failed program was:" >&5
19257 sed 's/^/| /' conftest.$ac_ext >&5
19258
19259         ac_cv_lib_gcc___moddi3=no
19260 fi
19261
19262 rm -f core conftest.err conftest.$ac_objext \
19263       conftest$ac_exeext conftest.$ac_ext
19264 LIBS=$ac_check_lib_save_LIBS
19265 fi
19266 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19267 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19268 if test $ac_cv_lib_gcc___moddi3 = yes; then
19269
19270 cat >>confdefs.h <<\_ACEOF
19271 #define HAVE___MODDI3 1
19272 _ACEOF
19273
19274 fi
19275
19276   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19277 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19278 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19279   echo $ECHO_N "(cached) $ECHO_C" >&6
19280 else
19281   ac_check_lib_save_LIBS=$LIBS
19282 LIBS="-lgcc  $LIBS"
19283 cat >conftest.$ac_ext <<_ACEOF
19284 /* confdefs.h.  */
19285 _ACEOF
19286 cat confdefs.h >>conftest.$ac_ext
19287 cat >>conftest.$ac_ext <<_ACEOF
19288 /* end confdefs.h.  */
19289
19290 /* Override any GCC internal prototype to avoid an error.
19291    Use char because int might match the return type of a GCC
19292    builtin and then its argument prototype would still apply.  */
19293 #ifdef __cplusplus
19294 extern "C"
19295 #endif
19296 char __udivdi3 ();
19297 int
19298 main ()
19299 {
19300 return __udivdi3 ();
19301   ;
19302   return 0;
19303 }
19304 _ACEOF
19305 rm -f conftest.$ac_objext conftest$ac_exeext
19306 if { (ac_try="$ac_link"
19307 case "(($ac_try" in
19308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19309   *) ac_try_echo=$ac_try;;
19310 esac
19311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19312   (eval "$ac_link") 2>conftest.er1
19313   ac_status=$?
19314   grep -v '^ *+' conftest.er1 >conftest.err
19315   rm -f conftest.er1
19316   cat conftest.err >&5
19317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318   (exit $ac_status); } &&
19319          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19320   { (case "(($ac_try" in
19321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19322   *) ac_try_echo=$ac_try;;
19323 esac
19324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19325   (eval "$ac_try") 2>&5
19326   ac_status=$?
19327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328   (exit $ac_status); }; } &&
19329          { ac_try='test -s conftest$ac_exeext'
19330   { (case "(($ac_try" in
19331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19332   *) ac_try_echo=$ac_try;;
19333 esac
19334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19335   (eval "$ac_try") 2>&5
19336   ac_status=$?
19337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338   (exit $ac_status); }; }; then
19339   ac_cv_lib_gcc___udivdi3=yes
19340 else
19341   echo "$as_me: failed program was:" >&5
19342 sed 's/^/| /' conftest.$ac_ext >&5
19343
19344         ac_cv_lib_gcc___udivdi3=no
19345 fi
19346
19347 rm -f core conftest.err conftest.$ac_objext \
19348       conftest$ac_exeext conftest.$ac_ext
19349 LIBS=$ac_check_lib_save_LIBS
19350 fi
19351 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19352 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19353 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19354
19355 cat >>confdefs.h <<\_ACEOF
19356 #define HAVE___UDIVDI3 1
19357 _ACEOF
19358
19359 fi
19360
19361   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19362 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19363 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19364   echo $ECHO_N "(cached) $ECHO_C" >&6
19365 else
19366   ac_check_lib_save_LIBS=$LIBS
19367 LIBS="-lgcc  $LIBS"
19368 cat >conftest.$ac_ext <<_ACEOF
19369 /* confdefs.h.  */
19370 _ACEOF
19371 cat confdefs.h >>conftest.$ac_ext
19372 cat >>conftest.$ac_ext <<_ACEOF
19373 /* end confdefs.h.  */
19374
19375 /* Override any GCC internal prototype to avoid an error.
19376    Use char because int might match the return type of a GCC
19377    builtin and then its argument prototype would still apply.  */
19378 #ifdef __cplusplus
19379 extern "C"
19380 #endif
19381 char __umoddi3 ();
19382 int
19383 main ()
19384 {
19385 return __umoddi3 ();
19386   ;
19387   return 0;
19388 }
19389 _ACEOF
19390 rm -f conftest.$ac_objext conftest$ac_exeext
19391 if { (ac_try="$ac_link"
19392 case "(($ac_try" in
19393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19394   *) ac_try_echo=$ac_try;;
19395 esac
19396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19397   (eval "$ac_link") 2>conftest.er1
19398   ac_status=$?
19399   grep -v '^ *+' conftest.er1 >conftest.err
19400   rm -f conftest.er1
19401   cat conftest.err >&5
19402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403   (exit $ac_status); } &&
19404          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19405   { (case "(($ac_try" in
19406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19407   *) ac_try_echo=$ac_try;;
19408 esac
19409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19410   (eval "$ac_try") 2>&5
19411   ac_status=$?
19412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413   (exit $ac_status); }; } &&
19414          { ac_try='test -s conftest$ac_exeext'
19415   { (case "(($ac_try" in
19416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19417   *) ac_try_echo=$ac_try;;
19418 esac
19419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19420   (eval "$ac_try") 2>&5
19421   ac_status=$?
19422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423   (exit $ac_status); }; }; then
19424   ac_cv_lib_gcc___umoddi3=yes
19425 else
19426   echo "$as_me: failed program was:" >&5
19427 sed 's/^/| /' conftest.$ac_ext >&5
19428
19429         ac_cv_lib_gcc___umoddi3=no
19430 fi
19431
19432 rm -f core conftest.err conftest.$ac_objext \
19433       conftest$ac_exeext conftest.$ac_ext
19434 LIBS=$ac_check_lib_save_LIBS
19435 fi
19436 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19437 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19438 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19439
19440 cat >>confdefs.h <<\_ACEOF
19441 #define HAVE___UMODDI3 1
19442 _ACEOF
19443
19444 fi
19445
19446
19447   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19448 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19449 if test "${ac_cv_lib_gcc___main+set}" = set; then
19450   echo $ECHO_N "(cached) $ECHO_C" >&6
19451 else
19452   ac_check_lib_save_LIBS=$LIBS
19453 LIBS="-lgcc  $LIBS"
19454 cat >conftest.$ac_ext <<_ACEOF
19455 /* confdefs.h.  */
19456 _ACEOF
19457 cat confdefs.h >>conftest.$ac_ext
19458 cat >>conftest.$ac_ext <<_ACEOF
19459 /* end confdefs.h.  */
19460
19461 /* Override any GCC internal prototype to avoid an error.
19462    Use char because int might match the return type of a GCC
19463    builtin and then its argument prototype would still apply.  */
19464 #ifdef __cplusplus
19465 extern "C"
19466 #endif
19467 char __main ();
19468 int
19469 main ()
19470 {
19471 return __main ();
19472   ;
19473   return 0;
19474 }
19475 _ACEOF
19476 rm -f conftest.$ac_objext conftest$ac_exeext
19477 if { (ac_try="$ac_link"
19478 case "(($ac_try" in
19479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19480   *) ac_try_echo=$ac_try;;
19481 esac
19482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19483   (eval "$ac_link") 2>conftest.er1
19484   ac_status=$?
19485   grep -v '^ *+' conftest.er1 >conftest.err
19486   rm -f conftest.er1
19487   cat conftest.err >&5
19488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489   (exit $ac_status); } &&
19490          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19491   { (case "(($ac_try" in
19492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19493   *) ac_try_echo=$ac_try;;
19494 esac
19495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19496   (eval "$ac_try") 2>&5
19497   ac_status=$?
19498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499   (exit $ac_status); }; } &&
19500          { ac_try='test -s conftest$ac_exeext'
19501   { (case "(($ac_try" in
19502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19503   *) ac_try_echo=$ac_try;;
19504 esac
19505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19506   (eval "$ac_try") 2>&5
19507   ac_status=$?
19508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509   (exit $ac_status); }; }; then
19510   ac_cv_lib_gcc___main=yes
19511 else
19512   echo "$as_me: failed program was:" >&5
19513 sed 's/^/| /' conftest.$ac_ext >&5
19514
19515         ac_cv_lib_gcc___main=no
19516 fi
19517
19518 rm -f core conftest.err conftest.$ac_objext \
19519       conftest$ac_exeext conftest.$ac_ext
19520 LIBS=$ac_check_lib_save_LIBS
19521 fi
19522 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19523 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19524 if test $ac_cv_lib_gcc___main = yes; then
19525
19526 cat >>confdefs.h <<\_ACEOF
19527 #define HAVE___MAIN 1
19528 _ACEOF
19529
19530 fi
19531
19532   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19533 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19534 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19535   echo $ECHO_N "(cached) $ECHO_C" >&6
19536 else
19537   ac_check_lib_save_LIBS=$LIBS
19538 LIBS="-lgcc  $LIBS"
19539 cat >conftest.$ac_ext <<_ACEOF
19540 /* confdefs.h.  */
19541 _ACEOF
19542 cat confdefs.h >>conftest.$ac_ext
19543 cat >>conftest.$ac_ext <<_ACEOF
19544 /* end confdefs.h.  */
19545
19546 /* Override any GCC internal prototype to avoid an error.
19547    Use char because int might match the return type of a GCC
19548    builtin and then its argument prototype would still apply.  */
19549 #ifdef __cplusplus
19550 extern "C"
19551 #endif
19552 char __cmpdi2 ();
19553 int
19554 main ()
19555 {
19556 return __cmpdi2 ();
19557   ;
19558   return 0;
19559 }
19560 _ACEOF
19561 rm -f conftest.$ac_objext conftest$ac_exeext
19562 if { (ac_try="$ac_link"
19563 case "(($ac_try" in
19564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19565   *) ac_try_echo=$ac_try;;
19566 esac
19567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19568   (eval "$ac_link") 2>conftest.er1
19569   ac_status=$?
19570   grep -v '^ *+' conftest.er1 >conftest.err
19571   rm -f conftest.er1
19572   cat conftest.err >&5
19573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574   (exit $ac_status); } &&
19575          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19576   { (case "(($ac_try" in
19577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19578   *) ac_try_echo=$ac_try;;
19579 esac
19580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19581   (eval "$ac_try") 2>&5
19582   ac_status=$?
19583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584   (exit $ac_status); }; } &&
19585          { ac_try='test -s conftest$ac_exeext'
19586   { (case "(($ac_try" in
19587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19588   *) ac_try_echo=$ac_try;;
19589 esac
19590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19591   (eval "$ac_try") 2>&5
19592   ac_status=$?
19593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594   (exit $ac_status); }; }; then
19595   ac_cv_lib_gcc___cmpdi2=yes
19596 else
19597   echo "$as_me: failed program was:" >&5
19598 sed 's/^/| /' conftest.$ac_ext >&5
19599
19600         ac_cv_lib_gcc___cmpdi2=no
19601 fi
19602
19603 rm -f core conftest.err conftest.$ac_objext \
19604       conftest$ac_exeext conftest.$ac_ext
19605 LIBS=$ac_check_lib_save_LIBS
19606 fi
19607 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19608 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19609 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19610
19611 cat >>confdefs.h <<\_ACEOF
19612 #define HAVE___CMPDI2 1
19613 _ACEOF
19614
19615 fi
19616
19617 fi
19618
19619 if test "$llvm_cv_os_type" = "MingW" ; then
19620   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19621 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19622   cat >conftest.$ac_ext <<_ACEOF
19623 #include <windows.h>
19624 #include <imagehlp.h>
19625 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19626 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19627 _ACEOF
19628 rm -f conftest.$ac_objext
19629 if { (ac_try="$ac_compile"
19630 case "(($ac_try" in
19631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19632   *) ac_try_echo=$ac_try;;
19633 esac
19634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19635   (eval "$ac_compile") 2>conftest.er1
19636   ac_status=$?
19637   grep -v '^ *+' conftest.er1 >conftest.err
19638   rm -f conftest.er1
19639   cat conftest.err >&5
19640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641   (exit $ac_status); } &&
19642          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19643   { (case "(($ac_try" in
19644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19645   *) ac_try_echo=$ac_try;;
19646 esac
19647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19648   (eval "$ac_try") 2>&5
19649   ac_status=$?
19650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651   (exit $ac_status); }; } &&
19652          { ac_try='test -s conftest.$ac_objext'
19653   { (case "(($ac_try" in
19654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19655   *) ac_try_echo=$ac_try;;
19656 esac
19657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19658   (eval "$ac_try") 2>&5
19659   ac_status=$?
19660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661   (exit $ac_status); }; }; then
19662
19663   { echo "$as_me:$LINENO: result: yes" >&5
19664 echo "${ECHO_T}yes" >&6; }
19665   llvm_cv_win32_elmcb_pcstr="PCSTR"
19666
19667 else
19668   echo "$as_me: failed program was:" >&5
19669 sed 's/^/| /' conftest.$ac_ext >&5
19670
19671
19672   { echo "$as_me:$LINENO: result: no" >&5
19673 echo "${ECHO_T}no" >&6; }
19674   llvm_cv_win32_elmcb_pcstr="PSTR"
19675
19676 fi
19677
19678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19679
19680 cat >>confdefs.h <<_ACEOF
19681 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19682 _ACEOF
19683
19684 fi
19685
19686
19687 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19688 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19689 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19690   echo $ECHO_N "(cached) $ECHO_C" >&6
19691 else
19692   ac_ext=cpp
19693 ac_cpp='$CXXCPP $CPPFLAGS'
19694 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19695 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19696 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19697
19698    cat >conftest.$ac_ext <<_ACEOF
19699 /* confdefs.h.  */
19700 _ACEOF
19701 cat confdefs.h >>conftest.$ac_ext
19702 cat >>conftest.$ac_ext <<_ACEOF
19703 /* end confdefs.h.  */
19704 #include <math.h>
19705 int
19706 main ()
19707 {
19708 float f; isnan(f);
19709   ;
19710   return 0;
19711 }
19712 _ACEOF
19713 rm -f conftest.$ac_objext
19714 if { (ac_try="$ac_compile"
19715 case "(($ac_try" in
19716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19717   *) ac_try_echo=$ac_try;;
19718 esac
19719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19720   (eval "$ac_compile") 2>conftest.er1
19721   ac_status=$?
19722   grep -v '^ *+' conftest.er1 >conftest.err
19723   rm -f conftest.er1
19724   cat conftest.err >&5
19725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726   (exit $ac_status); } &&
19727          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19728   { (case "(($ac_try" in
19729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19730   *) ac_try_echo=$ac_try;;
19731 esac
19732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19733   (eval "$ac_try") 2>&5
19734   ac_status=$?
19735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736   (exit $ac_status); }; } &&
19737          { ac_try='test -s conftest.$ac_objext'
19738   { (case "(($ac_try" in
19739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19740   *) ac_try_echo=$ac_try;;
19741 esac
19742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19743   (eval "$ac_try") 2>&5
19744   ac_status=$?
19745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746   (exit $ac_status); }; }; then
19747   ac_cv_func_isnan_in_math_h=yes
19748 else
19749   echo "$as_me: failed program was:" >&5
19750 sed 's/^/| /' conftest.$ac_ext >&5
19751
19752         ac_cv_func_isnan_in_math_h=no
19753 fi
19754
19755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19756   ac_ext=c
19757 ac_cpp='$CPP $CPPFLAGS'
19758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19761
19762 fi
19763 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19764 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19765
19766
19767 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19768
19769 cat >>confdefs.h <<\_ACEOF
19770 #define HAVE_ISNAN_IN_MATH_H 1
19771 _ACEOF
19772
19773 fi
19774
19775 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19776 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19777 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19778   echo $ECHO_N "(cached) $ECHO_C" >&6
19779 else
19780   ac_ext=cpp
19781 ac_cpp='$CXXCPP $CPPFLAGS'
19782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19785
19786    cat >conftest.$ac_ext <<_ACEOF
19787 /* confdefs.h.  */
19788 _ACEOF
19789 cat confdefs.h >>conftest.$ac_ext
19790 cat >>conftest.$ac_ext <<_ACEOF
19791 /* end confdefs.h.  */
19792 #include <cmath>
19793 int
19794 main ()
19795 {
19796 float f; isnan(f);
19797   ;
19798   return 0;
19799 }
19800 _ACEOF
19801 rm -f conftest.$ac_objext
19802 if { (ac_try="$ac_compile"
19803 case "(($ac_try" in
19804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19805   *) ac_try_echo=$ac_try;;
19806 esac
19807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19808   (eval "$ac_compile") 2>conftest.er1
19809   ac_status=$?
19810   grep -v '^ *+' conftest.er1 >conftest.err
19811   rm -f conftest.er1
19812   cat conftest.err >&5
19813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814   (exit $ac_status); } &&
19815          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19816   { (case "(($ac_try" in
19817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19818   *) ac_try_echo=$ac_try;;
19819 esac
19820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19821   (eval "$ac_try") 2>&5
19822   ac_status=$?
19823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824   (exit $ac_status); }; } &&
19825          { ac_try='test -s conftest.$ac_objext'
19826   { (case "(($ac_try" in
19827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19828   *) ac_try_echo=$ac_try;;
19829 esac
19830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19831   (eval "$ac_try") 2>&5
19832   ac_status=$?
19833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834   (exit $ac_status); }; }; then
19835   ac_cv_func_isnan_in_cmath=yes
19836 else
19837   echo "$as_me: failed program was:" >&5
19838 sed 's/^/| /' conftest.$ac_ext >&5
19839
19840         ac_cv_func_isnan_in_cmath=no
19841 fi
19842
19843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19844   ac_ext=c
19845 ac_cpp='$CPP $CPPFLAGS'
19846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19849
19850 fi
19851 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19852 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19853
19854 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19855
19856 cat >>confdefs.h <<\_ACEOF
19857 #define HAVE_ISNAN_IN_CMATH 1
19858 _ACEOF
19859
19860 fi
19861
19862 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19863 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19864 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19865   echo $ECHO_N "(cached) $ECHO_C" >&6
19866 else
19867   ac_ext=cpp
19868 ac_cpp='$CXXCPP $CPPFLAGS'
19869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19872
19873    cat >conftest.$ac_ext <<_ACEOF
19874 /* confdefs.h.  */
19875 _ACEOF
19876 cat confdefs.h >>conftest.$ac_ext
19877 cat >>conftest.$ac_ext <<_ACEOF
19878 /* end confdefs.h.  */
19879 #include <cmath>
19880 int
19881 main ()
19882 {
19883 float f; std::isnan(f);
19884   ;
19885   return 0;
19886 }
19887 _ACEOF
19888 rm -f conftest.$ac_objext
19889 if { (ac_try="$ac_compile"
19890 case "(($ac_try" in
19891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19892   *) ac_try_echo=$ac_try;;
19893 esac
19894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19895   (eval "$ac_compile") 2>conftest.er1
19896   ac_status=$?
19897   grep -v '^ *+' conftest.er1 >conftest.err
19898   rm -f conftest.er1
19899   cat conftest.err >&5
19900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901   (exit $ac_status); } &&
19902          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19903   { (case "(($ac_try" in
19904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19905   *) ac_try_echo=$ac_try;;
19906 esac
19907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19908   (eval "$ac_try") 2>&5
19909   ac_status=$?
19910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911   (exit $ac_status); }; } &&
19912          { ac_try='test -s conftest.$ac_objext'
19913   { (case "(($ac_try" in
19914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19915   *) ac_try_echo=$ac_try;;
19916 esac
19917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19918   (eval "$ac_try") 2>&5
19919   ac_status=$?
19920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921   (exit $ac_status); }; }; then
19922   ac_cv_func_std_isnan_in_cmath=yes
19923 else
19924   echo "$as_me: failed program was:" >&5
19925 sed 's/^/| /' conftest.$ac_ext >&5
19926
19927         ac_cv_func_std_isnan_in_cmath=no
19928 fi
19929
19930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19931   ac_ext=c
19932 ac_cpp='$CPP $CPPFLAGS'
19933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19936
19937 fi
19938 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19939 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19940
19941 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19942
19943 cat >>confdefs.h <<\_ACEOF
19944 #define HAVE_STD_ISNAN_IN_CMATH 1
19945 _ACEOF
19946
19947 fi
19948
19949
19950 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19951 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19952 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19953   echo $ECHO_N "(cached) $ECHO_C" >&6
19954 else
19955   ac_ext=cpp
19956 ac_cpp='$CXXCPP $CPPFLAGS'
19957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19960
19961    cat >conftest.$ac_ext <<_ACEOF
19962 /* confdefs.h.  */
19963 _ACEOF
19964 cat confdefs.h >>conftest.$ac_ext
19965 cat >>conftest.$ac_ext <<_ACEOF
19966 /* end confdefs.h.  */
19967 #include <math.h>
19968 int
19969 main ()
19970 {
19971 float f; isinf(f);
19972   ;
19973   return 0;
19974 }
19975 _ACEOF
19976 rm -f conftest.$ac_objext
19977 if { (ac_try="$ac_compile"
19978 case "(($ac_try" in
19979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19980   *) ac_try_echo=$ac_try;;
19981 esac
19982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19983   (eval "$ac_compile") 2>conftest.er1
19984   ac_status=$?
19985   grep -v '^ *+' conftest.er1 >conftest.err
19986   rm -f conftest.er1
19987   cat conftest.err >&5
19988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989   (exit $ac_status); } &&
19990          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19991   { (case "(($ac_try" in
19992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19993   *) ac_try_echo=$ac_try;;
19994 esac
19995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19996   (eval "$ac_try") 2>&5
19997   ac_status=$?
19998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999   (exit $ac_status); }; } &&
20000          { ac_try='test -s conftest.$ac_objext'
20001   { (case "(($ac_try" in
20002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20003   *) ac_try_echo=$ac_try;;
20004 esac
20005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20006   (eval "$ac_try") 2>&5
20007   ac_status=$?
20008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009   (exit $ac_status); }; }; then
20010   ac_cv_func_isinf_in_math_h=yes
20011 else
20012   echo "$as_me: failed program was:" >&5
20013 sed 's/^/| /' conftest.$ac_ext >&5
20014
20015         ac_cv_func_isinf_in_math_h=no
20016 fi
20017
20018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20019   ac_ext=c
20020 ac_cpp='$CPP $CPPFLAGS'
20021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20024
20025 fi
20026 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20027 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20028
20029 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20030
20031 cat >>confdefs.h <<\_ACEOF
20032 #define HAVE_ISINF_IN_MATH_H 1
20033 _ACEOF
20034
20035 fi
20036
20037 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20038 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20039 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20040   echo $ECHO_N "(cached) $ECHO_C" >&6
20041 else
20042   ac_ext=cpp
20043 ac_cpp='$CXXCPP $CPPFLAGS'
20044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20047
20048    cat >conftest.$ac_ext <<_ACEOF
20049 /* confdefs.h.  */
20050 _ACEOF
20051 cat confdefs.h >>conftest.$ac_ext
20052 cat >>conftest.$ac_ext <<_ACEOF
20053 /* end confdefs.h.  */
20054 #include <cmath>
20055 int
20056 main ()
20057 {
20058 float f; isinf(f);
20059   ;
20060   return 0;
20061 }
20062 _ACEOF
20063 rm -f conftest.$ac_objext
20064 if { (ac_try="$ac_compile"
20065 case "(($ac_try" in
20066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20067   *) ac_try_echo=$ac_try;;
20068 esac
20069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20070   (eval "$ac_compile") 2>conftest.er1
20071   ac_status=$?
20072   grep -v '^ *+' conftest.er1 >conftest.err
20073   rm -f conftest.er1
20074   cat conftest.err >&5
20075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076   (exit $ac_status); } &&
20077          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20078   { (case "(($ac_try" in
20079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20080   *) ac_try_echo=$ac_try;;
20081 esac
20082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20083   (eval "$ac_try") 2>&5
20084   ac_status=$?
20085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086   (exit $ac_status); }; } &&
20087          { ac_try='test -s conftest.$ac_objext'
20088   { (case "(($ac_try" in
20089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20090   *) ac_try_echo=$ac_try;;
20091 esac
20092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20093   (eval "$ac_try") 2>&5
20094   ac_status=$?
20095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096   (exit $ac_status); }; }; then
20097   ac_cv_func_isinf_in_cmath=yes
20098 else
20099   echo "$as_me: failed program was:" >&5
20100 sed 's/^/| /' conftest.$ac_ext >&5
20101
20102         ac_cv_func_isinf_in_cmath=no
20103 fi
20104
20105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20106   ac_ext=c
20107 ac_cpp='$CPP $CPPFLAGS'
20108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20111
20112 fi
20113 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20114 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20115
20116 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20117
20118 cat >>confdefs.h <<\_ACEOF
20119 #define HAVE_ISINF_IN_CMATH 1
20120 _ACEOF
20121
20122 fi
20123
20124 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20125 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20126 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20127   echo $ECHO_N "(cached) $ECHO_C" >&6
20128 else
20129   ac_ext=cpp
20130 ac_cpp='$CXXCPP $CPPFLAGS'
20131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20134
20135    cat >conftest.$ac_ext <<_ACEOF
20136 /* confdefs.h.  */
20137 _ACEOF
20138 cat confdefs.h >>conftest.$ac_ext
20139 cat >>conftest.$ac_ext <<_ACEOF
20140 /* end confdefs.h.  */
20141 #include <cmath>
20142 int
20143 main ()
20144 {
20145 float f; std::isinf(f);
20146   ;
20147   return 0;
20148 }
20149 _ACEOF
20150 rm -f conftest.$ac_objext
20151 if { (ac_try="$ac_compile"
20152 case "(($ac_try" in
20153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20154   *) ac_try_echo=$ac_try;;
20155 esac
20156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20157   (eval "$ac_compile") 2>conftest.er1
20158   ac_status=$?
20159   grep -v '^ *+' conftest.er1 >conftest.err
20160   rm -f conftest.er1
20161   cat conftest.err >&5
20162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163   (exit $ac_status); } &&
20164          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20165   { (case "(($ac_try" in
20166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20167   *) ac_try_echo=$ac_try;;
20168 esac
20169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20170   (eval "$ac_try") 2>&5
20171   ac_status=$?
20172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173   (exit $ac_status); }; } &&
20174          { ac_try='test -s conftest.$ac_objext'
20175   { (case "(($ac_try" in
20176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20177   *) ac_try_echo=$ac_try;;
20178 esac
20179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20180   (eval "$ac_try") 2>&5
20181   ac_status=$?
20182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183   (exit $ac_status); }; }; then
20184   ac_cv_func_std_isinf_in_cmath=yes
20185 else
20186   echo "$as_me: failed program was:" >&5
20187 sed 's/^/| /' conftest.$ac_ext >&5
20188
20189         ac_cv_func_std_isinf_in_cmath=no
20190 fi
20191
20192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20193   ac_ext=c
20194 ac_cpp='$CPP $CPPFLAGS'
20195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20198
20199 fi
20200 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20201 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20202
20203 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20204
20205 cat >>confdefs.h <<\_ACEOF
20206 #define HAVE_STD_ISINF_IN_CMATH 1
20207 _ACEOF
20208
20209 fi
20210
20211 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20212 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20213 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20214   echo $ECHO_N "(cached) $ECHO_C" >&6
20215 else
20216   ac_ext=cpp
20217 ac_cpp='$CXXCPP $CPPFLAGS'
20218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20221
20222    cat >conftest.$ac_ext <<_ACEOF
20223 /* confdefs.h.  */
20224 _ACEOF
20225 cat confdefs.h >>conftest.$ac_ext
20226 cat >>conftest.$ac_ext <<_ACEOF
20227 /* end confdefs.h.  */
20228 #include <ieeefp.h>
20229 int
20230 main ()
20231 {
20232 float f; finite(f);
20233   ;
20234   return 0;
20235 }
20236 _ACEOF
20237 rm -f conftest.$ac_objext
20238 if { (ac_try="$ac_compile"
20239 case "(($ac_try" in
20240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20241   *) ac_try_echo=$ac_try;;
20242 esac
20243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20244   (eval "$ac_compile") 2>conftest.er1
20245   ac_status=$?
20246   grep -v '^ *+' conftest.er1 >conftest.err
20247   rm -f conftest.er1
20248   cat conftest.err >&5
20249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250   (exit $ac_status); } &&
20251          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20252   { (case "(($ac_try" in
20253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20254   *) ac_try_echo=$ac_try;;
20255 esac
20256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20257   (eval "$ac_try") 2>&5
20258   ac_status=$?
20259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260   (exit $ac_status); }; } &&
20261          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
20268   ac_status=$?
20269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270   (exit $ac_status); }; }; then
20271   ac_cv_func_finite_in_ieeefp_h=yes
20272 else
20273   echo "$as_me: failed program was:" >&5
20274 sed 's/^/| /' conftest.$ac_ext >&5
20275
20276         ac_cv_func_finite_in_ieeefp_h=no
20277 fi
20278
20279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20280   ac_ext=c
20281 ac_cpp='$CPP $CPPFLAGS'
20282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20285
20286 fi
20287 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20288 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20289
20290 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20291
20292 cat >>confdefs.h <<\_ACEOF
20293 #define HAVE_FINITE_IN_IEEEFP_H 1
20294 _ACEOF
20295
20296 fi
20297
20298
20299
20300 if test "$llvm_cv_platform_type" = "Unix" ; then
20301
20302
20303 for ac_header in stdlib.h unistd.h
20304 do
20305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20307   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20310   echo $ECHO_N "(cached) $ECHO_C" >&6
20311 fi
20312 ac_res=`eval echo '${'$as_ac_Header'}'`
20313                { echo "$as_me:$LINENO: result: $ac_res" >&5
20314 echo "${ECHO_T}$ac_res" >&6; }
20315 else
20316   # Is the header compilable?
20317 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20318 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20319 cat >conftest.$ac_ext <<_ACEOF
20320 /* confdefs.h.  */
20321 _ACEOF
20322 cat confdefs.h >>conftest.$ac_ext
20323 cat >>conftest.$ac_ext <<_ACEOF
20324 /* end confdefs.h.  */
20325 $ac_includes_default
20326 #include <$ac_header>
20327 _ACEOF
20328 rm -f conftest.$ac_objext
20329 if { (ac_try="$ac_compile"
20330 case "(($ac_try" in
20331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20332   *) ac_try_echo=$ac_try;;
20333 esac
20334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20335   (eval "$ac_compile") 2>conftest.er1
20336   ac_status=$?
20337   grep -v '^ *+' conftest.er1 >conftest.err
20338   rm -f conftest.er1
20339   cat conftest.err >&5
20340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341   (exit $ac_status); } &&
20342          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20343   { (case "(($ac_try" in
20344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20345   *) ac_try_echo=$ac_try;;
20346 esac
20347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20348   (eval "$ac_try") 2>&5
20349   ac_status=$?
20350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351   (exit $ac_status); }; } &&
20352          { ac_try='test -s conftest.$ac_objext'
20353   { (case "(($ac_try" in
20354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20355   *) ac_try_echo=$ac_try;;
20356 esac
20357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20358   (eval "$ac_try") 2>&5
20359   ac_status=$?
20360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361   (exit $ac_status); }; }; then
20362   ac_header_compiler=yes
20363 else
20364   echo "$as_me: failed program was:" >&5
20365 sed 's/^/| /' conftest.$ac_ext >&5
20366
20367         ac_header_compiler=no
20368 fi
20369
20370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20371 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20372 echo "${ECHO_T}$ac_header_compiler" >&6; }
20373
20374 # Is the header present?
20375 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20377 cat >conftest.$ac_ext <<_ACEOF
20378 /* confdefs.h.  */
20379 _ACEOF
20380 cat confdefs.h >>conftest.$ac_ext
20381 cat >>conftest.$ac_ext <<_ACEOF
20382 /* end confdefs.h.  */
20383 #include <$ac_header>
20384 _ACEOF
20385 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
20392   ac_status=$?
20393   grep -v '^ *+' conftest.er1 >conftest.err
20394   rm -f conftest.er1
20395   cat conftest.err >&5
20396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397   (exit $ac_status); } >/dev/null; then
20398   if test -s conftest.err; then
20399     ac_cpp_err=$ac_c_preproc_warn_flag
20400     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20401   else
20402     ac_cpp_err=
20403   fi
20404 else
20405   ac_cpp_err=yes
20406 fi
20407 if test -z "$ac_cpp_err"; then
20408   ac_header_preproc=yes
20409 else
20410   echo "$as_me: failed program was:" >&5
20411 sed 's/^/| /' conftest.$ac_ext >&5
20412
20413   ac_header_preproc=no
20414 fi
20415
20416 rm -f conftest.err conftest.$ac_ext
20417 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20418 echo "${ECHO_T}$ac_header_preproc" >&6; }
20419
20420 # So?  What about this header?
20421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20422   yes:no: )
20423     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20425     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20427     ac_header_preproc=yes
20428     ;;
20429   no:yes:* )
20430     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20432     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20433 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20434     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20436     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20437 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20438     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20440     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20442     ( cat <<\_ASBOX
20443 ## ------------------------------ ##
20444 ## Report this to bugs@yourdomain ##
20445 ## ------------------------------ ##
20446 _ASBOX
20447      ) | sed "s/^/$as_me: WARNING:     /" >&2
20448     ;;
20449 esac
20450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20453   echo $ECHO_N "(cached) $ECHO_C" >&6
20454 else
20455   eval "$as_ac_Header=\$ac_header_preproc"
20456 fi
20457 ac_res=`eval echo '${'$as_ac_Header'}'`
20458                { echo "$as_me:$LINENO: result: $ac_res" >&5
20459 echo "${ECHO_T}$ac_res" >&6; }
20460
20461 fi
20462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20463   cat >>confdefs.h <<_ACEOF
20464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20465 _ACEOF
20466
20467 fi
20468
20469 done
20470
20471
20472 for ac_func in getpagesize
20473 do
20474 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20475 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20476 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20477 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20478   echo $ECHO_N "(cached) $ECHO_C" >&6
20479 else
20480   cat >conftest.$ac_ext <<_ACEOF
20481 /* confdefs.h.  */
20482 _ACEOF
20483 cat confdefs.h >>conftest.$ac_ext
20484 cat >>conftest.$ac_ext <<_ACEOF
20485 /* end confdefs.h.  */
20486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20487    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20488 #define $ac_func innocuous_$ac_func
20489
20490 /* System header to define __stub macros and hopefully few prototypes,
20491     which can conflict with char $ac_func (); below.
20492     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20493     <limits.h> exists even on freestanding compilers.  */
20494
20495 #ifdef __STDC__
20496 # include <limits.h>
20497 #else
20498 # include <assert.h>
20499 #endif
20500
20501 #undef $ac_func
20502
20503 /* Override any GCC internal prototype to avoid an error.
20504    Use char because int might match the return type of a GCC
20505    builtin and then its argument prototype would still apply.  */
20506 #ifdef __cplusplus
20507 extern "C"
20508 #endif
20509 char $ac_func ();
20510 /* The GNU C library defines this for functions which it implements
20511     to always fail with ENOSYS.  Some functions are actually named
20512     something starting with __ and the normal name is an alias.  */
20513 #if defined __stub_$ac_func || defined __stub___$ac_func
20514 choke me
20515 #endif
20516
20517 int
20518 main ()
20519 {
20520 return $ac_func ();
20521   ;
20522   return 0;
20523 }
20524 _ACEOF
20525 rm -f conftest.$ac_objext conftest$ac_exeext
20526 if { (ac_try="$ac_link"
20527 case "(($ac_try" in
20528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20529   *) ac_try_echo=$ac_try;;
20530 esac
20531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20532   (eval "$ac_link") 2>conftest.er1
20533   ac_status=$?
20534   grep -v '^ *+' conftest.er1 >conftest.err
20535   rm -f conftest.er1
20536   cat conftest.err >&5
20537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538   (exit $ac_status); } &&
20539          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20540   { (case "(($ac_try" in
20541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20542   *) ac_try_echo=$ac_try;;
20543 esac
20544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20545   (eval "$ac_try") 2>&5
20546   ac_status=$?
20547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548   (exit $ac_status); }; } &&
20549          { ac_try='test -s conftest$ac_exeext'
20550   { (case "(($ac_try" in
20551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20552   *) ac_try_echo=$ac_try;;
20553 esac
20554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20555   (eval "$ac_try") 2>&5
20556   ac_status=$?
20557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558   (exit $ac_status); }; }; then
20559   eval "$as_ac_var=yes"
20560 else
20561   echo "$as_me: failed program was:" >&5
20562 sed 's/^/| /' conftest.$ac_ext >&5
20563
20564         eval "$as_ac_var=no"
20565 fi
20566
20567 rm -f core conftest.err conftest.$ac_objext \
20568       conftest$ac_exeext conftest.$ac_ext
20569 fi
20570 ac_res=`eval echo '${'$as_ac_var'}'`
20571                { echo "$as_me:$LINENO: result: $ac_res" >&5
20572 echo "${ECHO_T}$ac_res" >&6; }
20573 if test `eval echo '${'$as_ac_var'}'` = yes; then
20574   cat >>confdefs.h <<_ACEOF
20575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20576 _ACEOF
20577
20578 fi
20579 done
20580
20581 { echo "$as_me:$LINENO: checking for working mmap" >&5
20582 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20583 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20584   echo $ECHO_N "(cached) $ECHO_C" >&6
20585 else
20586   if test "$cross_compiling" = yes; then
20587   ac_cv_func_mmap_fixed_mapped=no
20588 else
20589   cat >conftest.$ac_ext <<_ACEOF
20590 /* confdefs.h.  */
20591 _ACEOF
20592 cat confdefs.h >>conftest.$ac_ext
20593 cat >>conftest.$ac_ext <<_ACEOF
20594 /* end confdefs.h.  */
20595 $ac_includes_default
20596 /* malloc might have been renamed as rpl_malloc. */
20597 #undef malloc
20598
20599 /* Thanks to Mike Haertel and Jim Avera for this test.
20600    Here is a matrix of mmap possibilities:
20601         mmap private not fixed
20602         mmap private fixed at somewhere currently unmapped
20603         mmap private fixed at somewhere already mapped
20604         mmap shared not fixed
20605         mmap shared fixed at somewhere currently unmapped
20606         mmap shared fixed at somewhere already mapped
20607    For private mappings, we should verify that changes cannot be read()
20608    back from the file, nor mmap's back from the file at a different
20609    address.  (There have been systems where private was not correctly
20610    implemented like the infamous i386 svr4.0, and systems where the
20611    VM page cache was not coherent with the file system buffer cache
20612    like early versions of FreeBSD and possibly contemporary NetBSD.)
20613    For shared mappings, we should conversely verify that changes get
20614    propagated back to all the places they're supposed to be.
20615
20616    Grep wants private fixed already mapped.
20617    The main things grep needs to know about mmap are:
20618    * does it exist and is it safe to write into the mmap'd area
20619    * how to use it (BSD variants)  */
20620
20621 #include <fcntl.h>
20622 #include <sys/mman.h>
20623
20624 #if !STDC_HEADERS && !HAVE_STDLIB_H
20625 char *malloc ();
20626 #endif
20627
20628 /* This mess was copied from the GNU getpagesize.h.  */
20629 #if !HAVE_GETPAGESIZE
20630 /* Assume that all systems that can run configure have sys/param.h.  */
20631 # if !HAVE_SYS_PARAM_H
20632 #  define HAVE_SYS_PARAM_H 1
20633 # endif
20634
20635 # ifdef _SC_PAGESIZE
20636 #  define getpagesize() sysconf(_SC_PAGESIZE)
20637 # else /* no _SC_PAGESIZE */
20638 #  if HAVE_SYS_PARAM_H
20639 #   include <sys/param.h>
20640 #   ifdef EXEC_PAGESIZE
20641 #    define getpagesize() EXEC_PAGESIZE
20642 #   else /* no EXEC_PAGESIZE */
20643 #    ifdef NBPG
20644 #     define getpagesize() NBPG * CLSIZE
20645 #     ifndef CLSIZE
20646 #      define CLSIZE 1
20647 #     endif /* no CLSIZE */
20648 #    else /* no NBPG */
20649 #     ifdef NBPC
20650 #      define getpagesize() NBPC
20651 #     else /* no NBPC */
20652 #      ifdef PAGESIZE
20653 #       define getpagesize() PAGESIZE
20654 #      endif /* PAGESIZE */
20655 #     endif /* no NBPC */
20656 #    endif /* no NBPG */
20657 #   endif /* no EXEC_PAGESIZE */
20658 #  else /* no HAVE_SYS_PARAM_H */
20659 #   define getpagesize() 8192   /* punt totally */
20660 #  endif /* no HAVE_SYS_PARAM_H */
20661 # endif /* no _SC_PAGESIZE */
20662
20663 #endif /* no HAVE_GETPAGESIZE */
20664
20665 int
20666 main ()
20667 {
20668   char *data, *data2, *data3;
20669   int i, pagesize;
20670   int fd;
20671
20672   pagesize = getpagesize ();
20673
20674   /* First, make a file with some known garbage in it. */
20675   data = (char *) malloc (pagesize);
20676   if (!data)
20677     return 1;
20678   for (i = 0; i < pagesize; ++i)
20679     *(data + i) = rand ();
20680   umask (0);
20681   fd = creat ("conftest.mmap", 0600);
20682   if (fd < 0)
20683     return 1;
20684   if (write (fd, data, pagesize) != pagesize)
20685     return 1;
20686   close (fd);
20687
20688   /* Next, try to mmap the file at a fixed address which already has
20689      something else allocated at it.  If we can, also make sure that
20690      we see the same garbage.  */
20691   fd = open ("conftest.mmap", O_RDWR);
20692   if (fd < 0)
20693     return 1;
20694   data2 = (char *) malloc (2 * pagesize);
20695   if (!data2)
20696     return 1;
20697   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20698   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20699                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20700     return 1;
20701   for (i = 0; i < pagesize; ++i)
20702     if (*(data + i) != *(data2 + i))
20703       return 1;
20704
20705   /* Finally, make sure that changes to the mapped area do not
20706      percolate back to the file as seen by read().  (This is a bug on
20707      some variants of i386 svr4.0.)  */
20708   for (i = 0; i < pagesize; ++i)
20709     *(data2 + i) = *(data2 + i) + 1;
20710   data3 = (char *) malloc (pagesize);
20711   if (!data3)
20712     return 1;
20713   if (read (fd, data3, pagesize) != pagesize)
20714     return 1;
20715   for (i = 0; i < pagesize; ++i)
20716     if (*(data + i) != *(data3 + i))
20717       return 1;
20718   close (fd);
20719   return 0;
20720 }
20721 _ACEOF
20722 rm -f conftest$ac_exeext
20723 if { (ac_try="$ac_link"
20724 case "(($ac_try" in
20725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20726   *) ac_try_echo=$ac_try;;
20727 esac
20728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20729   (eval "$ac_link") 2>&5
20730   ac_status=$?
20731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20733   { (case "(($ac_try" in
20734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20735   *) ac_try_echo=$ac_try;;
20736 esac
20737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20738   (eval "$ac_try") 2>&5
20739   ac_status=$?
20740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741   (exit $ac_status); }; }; then
20742   ac_cv_func_mmap_fixed_mapped=yes
20743 else
20744   echo "$as_me: program exited with status $ac_status" >&5
20745 echo "$as_me: failed program was:" >&5
20746 sed 's/^/| /' conftest.$ac_ext >&5
20747
20748 ( exit $ac_status )
20749 ac_cv_func_mmap_fixed_mapped=no
20750 fi
20751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20752 fi
20753
20754
20755 fi
20756 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20757 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20758 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20759
20760 cat >>confdefs.h <<\_ACEOF
20761 #define HAVE_MMAP 1
20762 _ACEOF
20763
20764 fi
20765 rm -f conftest.mmap
20766
20767   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20768 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20769 if test "${ac_cv_func_mmap_file+set}" = set; then
20770   echo $ECHO_N "(cached) $ECHO_C" >&6
20771 else
20772    ac_ext=c
20773 ac_cpp='$CPP $CPPFLAGS'
20774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20777
20778   if test "$cross_compiling" = yes; then
20779   ac_cv_func_mmap_file=no
20780 else
20781   cat >conftest.$ac_ext <<_ACEOF
20782
20783     /* confdefs.h.  */
20784 _ACEOF
20785 cat confdefs.h >>conftest.$ac_ext
20786 cat >>conftest.$ac_ext <<_ACEOF
20787 /* end confdefs.h.  */
20788
20789 #include <sys/types.h>
20790 #include <sys/mman.h>
20791 #include <fcntl.h>
20792
20793 int
20794 main ()
20795 {
20796
20797   int fd;
20798   fd = creat ("foo",0777);
20799   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20800   unlink ("foo");
20801   return (fd != (int) MAP_FAILED);
20802   ;
20803   return 0;
20804 }
20805 _ACEOF
20806 rm -f conftest$ac_exeext
20807 if { (ac_try="$ac_link"
20808 case "(($ac_try" in
20809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20810   *) ac_try_echo=$ac_try;;
20811 esac
20812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20813   (eval "$ac_link") 2>&5
20814   ac_status=$?
20815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20817   { (case "(($ac_try" in
20818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20819   *) ac_try_echo=$ac_try;;
20820 esac
20821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20822   (eval "$ac_try") 2>&5
20823   ac_status=$?
20824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825   (exit $ac_status); }; }; then
20826   ac_cv_func_mmap_file=yes
20827 else
20828   echo "$as_me: program exited with status $ac_status" >&5
20829 echo "$as_me: failed program was:" >&5
20830 sed 's/^/| /' conftest.$ac_ext >&5
20831
20832 ( exit $ac_status )
20833 ac_cv_func_mmap_file=no
20834 fi
20835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20836 fi
20837
20838
20839   ac_ext=c
20840 ac_cpp='$CPP $CPPFLAGS'
20841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20844
20845
20846 fi
20847 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20848 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20849 if test "$ac_cv_func_mmap_file" = yes; then
20850
20851 cat >>confdefs.h <<\_ACEOF
20852 #define HAVE_MMAP_FILE
20853 _ACEOF
20854
20855    MMAP_FILE=yes
20856
20857 fi
20858
20859   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20860 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20861 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20862   echo $ECHO_N "(cached) $ECHO_C" >&6
20863 else
20864   if test "$llvm_cv_os_type" = "Interix" ; then
20865    ac_cv_need_dev_zero_for_mmap=yes
20866  else
20867    ac_cv_need_dev_zero_for_mmap=no
20868  fi
20869
20870 fi
20871 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20872 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20873 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20874
20875 cat >>confdefs.h <<\_ACEOF
20876 #define NEED_DEV_ZERO_FOR_MMAP 1
20877 _ACEOF
20878
20879 fi
20880
20881   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20882   then
20883     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20884 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20885   fi
20886   if test "$ac_cv_func_mmap_file" = "no"
20887   then
20888     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20889 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20890   fi
20891 fi
20892
20893 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20894 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20895 ac_ext=cpp
20896 ac_cpp='$CXXCPP $CPPFLAGS'
20897 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20898 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20899 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20900
20901 cat >conftest.$ac_ext <<_ACEOF
20902 /* confdefs.h.  */
20903 _ACEOF
20904 cat confdefs.h >>conftest.$ac_ext
20905 cat >>conftest.$ac_ext <<_ACEOF
20906 /* end confdefs.h.  */
20907 int main() {
20908         volatile unsigned long val = 1;
20909         __sync_synchronize();
20910         __sync_val_compare_and_swap(&val, 1, 0);
20911         __sync_add_and_fetch(&val, 1);
20912         __sync_sub_and_fetch(&val, 1);
20913         return 0;
20914       }
20915
20916 _ACEOF
20917 rm -f conftest.$ac_objext conftest$ac_exeext
20918 if { (ac_try="$ac_link"
20919 case "(($ac_try" in
20920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20921   *) ac_try_echo=$ac_try;;
20922 esac
20923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20924   (eval "$ac_link") 2>conftest.er1
20925   ac_status=$?
20926   grep -v '^ *+' conftest.er1 >conftest.err
20927   rm -f conftest.er1
20928   cat conftest.err >&5
20929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930   (exit $ac_status); } &&
20931          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20932   { (case "(($ac_try" in
20933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20934   *) ac_try_echo=$ac_try;;
20935 esac
20936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20937   (eval "$ac_try") 2>&5
20938   ac_status=$?
20939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940   (exit $ac_status); }; } &&
20941          { ac_try='test -s conftest$ac_exeext'
20942   { (case "(($ac_try" in
20943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20944   *) ac_try_echo=$ac_try;;
20945 esac
20946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20947   (eval "$ac_try") 2>&5
20948   ac_status=$?
20949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950   (exit $ac_status); }; }; then
20951   ac_ext=c
20952 ac_cpp='$CPP $CPPFLAGS'
20953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20956
20957   { echo "$as_me:$LINENO: result: yes" >&5
20958 echo "${ECHO_T}yes" >&6; }
20959
20960 cat >>confdefs.h <<\_ACEOF
20961 #define LLVM_HAS_ATOMICS 1
20962 _ACEOF
20963
20964 else
20965   echo "$as_me: failed program was:" >&5
20966 sed 's/^/| /' conftest.$ac_ext >&5
20967
20968         { echo "$as_me:$LINENO: result: no" >&5
20969 echo "${ECHO_T}no" >&6; }
20970
20971 cat >>confdefs.h <<\_ACEOF
20972 #define LLVM_HAS_ATOMICS 0
20973 _ACEOF
20974
20975   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20976 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20977 fi
20978
20979 rm -f core conftest.err conftest.$ac_objext \
20980       conftest$ac_exeext conftest.$ac_ext
20981
20982
20983 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20984   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20985 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20986 if test "${llvm_cv_linux_mixed+set}" = set; then
20987   echo $ECHO_N "(cached) $ECHO_C" >&6
20988 else
20989    ac_ext=c
20990 ac_cpp='$CPP $CPPFLAGS'
20991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20994
20995   cat >conftest.$ac_ext <<_ACEOF
20996 /* confdefs.h.  */
20997 _ACEOF
20998 cat confdefs.h >>conftest.$ac_ext
20999 cat >>conftest.$ac_ext <<_ACEOF
21000 /* end confdefs.h.  */
21001 #ifndef __x86_64__
21002        error: Not x86-64 even if uname says so!
21003       #endif
21004
21005 int
21006 main ()
21007 {
21008
21009   ;
21010   return 0;
21011 }
21012 _ACEOF
21013 rm -f conftest.$ac_objext
21014 if { (ac_try="$ac_compile"
21015 case "(($ac_try" in
21016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21017   *) ac_try_echo=$ac_try;;
21018 esac
21019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21020   (eval "$ac_compile") 2>conftest.er1
21021   ac_status=$?
21022   grep -v '^ *+' conftest.er1 >conftest.err
21023   rm -f conftest.er1
21024   cat conftest.err >&5
21025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026   (exit $ac_status); } &&
21027          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21028   { (case "(($ac_try" in
21029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21030   *) ac_try_echo=$ac_try;;
21031 esac
21032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21033   (eval "$ac_try") 2>&5
21034   ac_status=$?
21035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036   (exit $ac_status); }; } &&
21037          { ac_try='test -s conftest.$ac_objext'
21038   { (case "(($ac_try" in
21039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21040   *) ac_try_echo=$ac_try;;
21041 esac
21042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21043   (eval "$ac_try") 2>&5
21044   ac_status=$?
21045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046   (exit $ac_status); }; }; then
21047   llvm_cv_linux_mixed=no
21048 else
21049   echo "$as_me: failed program was:" >&5
21050 sed 's/^/| /' conftest.$ac_ext >&5
21051
21052         llvm_cv_linux_mixed=yes
21053 fi
21054
21055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21056   ac_ext=c
21057 ac_cpp='$CPP $CPPFLAGS'
21058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21061
21062
21063 fi
21064 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21065 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21066
21067   if test "$llvm_cv_linux_mixed" = "yes"; then
21068     llvm_cv_target_arch="x86"
21069     ARCH="x86"
21070   fi
21071 fi
21072
21073
21074 for ac_func in __dso_handle
21075 do
21076 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21077 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21078 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21079 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21080   echo $ECHO_N "(cached) $ECHO_C" >&6
21081 else
21082   cat >conftest.$ac_ext <<_ACEOF
21083 /* confdefs.h.  */
21084 _ACEOF
21085 cat confdefs.h >>conftest.$ac_ext
21086 cat >>conftest.$ac_ext <<_ACEOF
21087 /* end confdefs.h.  */
21088 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21089    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21090 #define $ac_func innocuous_$ac_func
21091
21092 /* System header to define __stub macros and hopefully few prototypes,
21093     which can conflict with char $ac_func (); below.
21094     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21095     <limits.h> exists even on freestanding compilers.  */
21096
21097 #ifdef __STDC__
21098 # include <limits.h>
21099 #else
21100 # include <assert.h>
21101 #endif
21102
21103 #undef $ac_func
21104
21105 /* Override any GCC internal prototype to avoid an error.
21106    Use char because int might match the return type of a GCC
21107    builtin and then its argument prototype would still apply.  */
21108 #ifdef __cplusplus
21109 extern "C"
21110 #endif
21111 char $ac_func ();
21112 /* The GNU C library defines this for functions which it implements
21113     to always fail with ENOSYS.  Some functions are actually named
21114     something starting with __ and the normal name is an alias.  */
21115 #if defined __stub_$ac_func || defined __stub___$ac_func
21116 choke me
21117 #endif
21118
21119 int
21120 main ()
21121 {
21122 return $ac_func ();
21123   ;
21124   return 0;
21125 }
21126 _ACEOF
21127 rm -f conftest.$ac_objext conftest$ac_exeext
21128 if { (ac_try="$ac_link"
21129 case "(($ac_try" in
21130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21131   *) ac_try_echo=$ac_try;;
21132 esac
21133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21134   (eval "$ac_link") 2>conftest.er1
21135   ac_status=$?
21136   grep -v '^ *+' conftest.er1 >conftest.err
21137   rm -f conftest.er1
21138   cat conftest.err >&5
21139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140   (exit $ac_status); } &&
21141          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21142   { (case "(($ac_try" in
21143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21144   *) ac_try_echo=$ac_try;;
21145 esac
21146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21147   (eval "$ac_try") 2>&5
21148   ac_status=$?
21149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150   (exit $ac_status); }; } &&
21151          { ac_try='test -s conftest$ac_exeext'
21152   { (case "(($ac_try" in
21153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21154   *) ac_try_echo=$ac_try;;
21155 esac
21156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21157   (eval "$ac_try") 2>&5
21158   ac_status=$?
21159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160   (exit $ac_status); }; }; then
21161   eval "$as_ac_var=yes"
21162 else
21163   echo "$as_me: failed program was:" >&5
21164 sed 's/^/| /' conftest.$ac_ext >&5
21165
21166         eval "$as_ac_var=no"
21167 fi
21168
21169 rm -f core conftest.err conftest.$ac_objext \
21170       conftest$ac_exeext conftest.$ac_ext
21171 fi
21172 ac_res=`eval echo '${'$as_ac_var'}'`
21173                { echo "$as_me:$LINENO: result: $ac_res" >&5
21174 echo "${ECHO_T}$ac_res" >&6; }
21175 if test `eval echo '${'$as_ac_var'}'` = yes; then
21176   cat >>confdefs.h <<_ACEOF
21177 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21178 _ACEOF
21179
21180 fi
21181 done
21182
21183
21184 SHLIBEXT=$libltdl_cv_shlibext
21185
21186
21187 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21188
21189
21190 # Translate the various configuration directories and other basic
21191 # information into substitutions that will end up in Makefile.config.in
21192 # that these configured values can be used by the makefiles
21193 if test "${prefix}" = "NONE" ; then
21194   prefix="/usr/local"
21195 fi
21196 eval LLVM_PREFIX="${prefix}";
21197 eval LLVM_BINDIR="${prefix}/bin";
21198 eval LLVM_DATADIR="${prefix}/share/llvm";
21199 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21200 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21201 eval LLVM_INCLUDEDIR="${prefix}/include";
21202 eval LLVM_INFODIR="${prefix}/info";
21203 eval LLVM_MANDIR="${prefix}/man";
21204 LLVM_CONFIGTIME=`date`
21205
21206
21207
21208
21209
21210
21211
21212
21213
21214
21215 # Place the various directores into the config.h file as #defines so that we
21216 # can know about the installation paths within LLVM.
21217
21218 cat >>confdefs.h <<_ACEOF
21219 #define LLVM_PREFIX "$LLVM_PREFIX"
21220 _ACEOF
21221
21222
21223 cat >>confdefs.h <<_ACEOF
21224 #define LLVM_BINDIR "$LLVM_BINDIR"
21225 _ACEOF
21226
21227
21228 cat >>confdefs.h <<_ACEOF
21229 #define LLVM_DATADIR "$LLVM_DATADIR"
21230 _ACEOF
21231
21232
21233 cat >>confdefs.h <<_ACEOF
21234 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21235 _ACEOF
21236
21237
21238 cat >>confdefs.h <<_ACEOF
21239 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21240 _ACEOF
21241
21242
21243 cat >>confdefs.h <<_ACEOF
21244 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21245 _ACEOF
21246
21247
21248 cat >>confdefs.h <<_ACEOF
21249 #define LLVM_INFODIR "$LLVM_INFODIR"
21250 _ACEOF
21251
21252
21253 cat >>confdefs.h <<_ACEOF
21254 #define LLVM_MANDIR "$LLVM_MANDIR"
21255 _ACEOF
21256
21257
21258 cat >>confdefs.h <<_ACEOF
21259 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21260 _ACEOF
21261
21262
21263 cat >>confdefs.h <<_ACEOF
21264 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21265 _ACEOF
21266
21267
21268 # Determine which bindings to build.
21269 if test "$BINDINGS_TO_BUILD" = auto ; then
21270   BINDINGS_TO_BUILD=""
21271   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21272     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21273   fi
21274 fi
21275 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21276
21277
21278 # This isn't really configurey, but it avoids having to repeat the list in
21279 # other files.
21280 ALL_BINDINGS=ocaml
21281
21282
21283 # Do any work necessary to ensure that bindings have what they need.
21284 binding_prereqs_failed=0
21285 for a_binding in $BINDINGS_TO_BUILD ; do
21286   case "$a_binding" in
21287   ocaml)
21288     if test "x$OCAMLC" = x ; then
21289       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21290 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21291       binding_prereqs_failed=1
21292     fi
21293     if test "x$OCAMLDEP" = x ; then
21294       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21295 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21296       binding_prereqs_failed=1
21297     fi
21298     if test "x$OCAMLOPT" = x ; then
21299       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21300 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21301           fi
21302     if test "x$with_ocaml_libdir" != xauto ; then
21303       OCAML_LIBDIR=$with_ocaml_libdir
21304
21305     else
21306       ocaml_stdlib="`"$OCAMLC" -where`"
21307       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21308       then
21309         # ocaml stdlib is beneath our prefix; use stdlib
21310         OCAML_LIBDIR=$ocaml_stdlib
21311
21312       else
21313         # ocaml stdlib is outside our prefix; use libdir/ocaml
21314         OCAML_LIBDIR=${prefix}/lib/ocaml
21315
21316       fi
21317     fi
21318     ;;
21319   esac
21320 done
21321 if test "$binding_prereqs_failed" = 1 ; then
21322   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21323 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21324    { (exit 1); exit 1; }; }
21325 fi
21326
21327 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21328 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21329 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21330   echo $ECHO_N "(cached) $ECHO_C" >&6
21331 else
21332    ac_ext=cpp
21333 ac_cpp='$CXXCPP $CPPFLAGS'
21334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21337
21338   oldcxxflags="$CXXFLAGS"
21339   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21340   cat >conftest.$ac_ext <<_ACEOF
21341 /* confdefs.h.  */
21342 _ACEOF
21343 cat confdefs.h >>conftest.$ac_ext
21344 cat >>conftest.$ac_ext <<_ACEOF
21345 /* end confdefs.h.  */
21346 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21347 int
21348 main ()
21349 {
21350 X<int>().f();
21351   ;
21352   return 0;
21353 }
21354 _ACEOF
21355 rm -f conftest.$ac_objext
21356 if { (ac_try="$ac_compile"
21357 case "(($ac_try" in
21358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21359   *) ac_try_echo=$ac_try;;
21360 esac
21361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21362   (eval "$ac_compile") 2>conftest.er1
21363   ac_status=$?
21364   grep -v '^ *+' conftest.er1 >conftest.err
21365   rm -f conftest.er1
21366   cat conftest.err >&5
21367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368   (exit $ac_status); } &&
21369          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21370   { (case "(($ac_try" in
21371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21372   *) ac_try_echo=$ac_try;;
21373 esac
21374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21375   (eval "$ac_try") 2>&5
21376   ac_status=$?
21377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378   (exit $ac_status); }; } &&
21379          { ac_try='test -s conftest.$ac_objext'
21380   { (case "(($ac_try" in
21381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21382   *) ac_try_echo=$ac_try;;
21383 esac
21384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21385   (eval "$ac_try") 2>&5
21386   ac_status=$?
21387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388   (exit $ac_status); }; }; then
21389   llvm_cv_cxx_visibility_inlines_hidden=yes
21390 else
21391   echo "$as_me: failed program was:" >&5
21392 sed 's/^/| /' conftest.$ac_ext >&5
21393
21394         llvm_cv_cxx_visibility_inlines_hidden=no
21395 fi
21396
21397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21398   CXXFLAGS="$oldcxxflags"
21399   ac_ext=c
21400 ac_cpp='$CPP $CPPFLAGS'
21401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21404
21405
21406 fi
21407 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21408 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21409 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21410   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21411
21412 else
21413   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21414
21415 fi
21416
21417
21418 if test "$llvm_cv_link_use_r" = "yes" ; then
21419   RPATH="-Wl,-R"
21420 else
21421   RPATH="-Wl,-rpath"
21422 fi
21423
21424
21425 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21426   RDYNAMIC="-rdynamic"
21427 else
21428   RDYNAMIC=""
21429 fi
21430
21431
21432
21433
21434 ac_config_files="$ac_config_files Makefile.common"
21435
21436 ac_config_files="$ac_config_files Makefile.llvm.config"
21437
21438
21439 ac_config_commands="$ac_config_commands Makefile"
21440
21441
21442 ac_config_commands="$ac_config_commands lib/Makefile"
21443
21444
21445 ac_config_commands="$ac_config_commands lib/sample/Makefile"
21446
21447
21448 ac_config_commands="$ac_config_commands tools/Makefile"
21449
21450
21451 ac_config_commands="$ac_config_commands tools/sample/Makefile"
21452
21453
21454
21455 cat >confcache <<\_ACEOF
21456 # This file is a shell script that caches the results of configure
21457 # tests run on this system so they can be shared between configure
21458 # scripts and configure runs, see configure's option --config-cache.
21459 # It is not useful on other systems.  If it contains results you don't
21460 # want to keep, you may remove or edit it.
21461 #
21462 # config.status only pays attention to the cache file if you give it
21463 # the --recheck option to rerun configure.
21464 #
21465 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21466 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21467 # following values.
21468
21469 _ACEOF
21470
21471 # The following way of writing the cache mishandles newlines in values,
21472 # but we know of no workaround that is simple, portable, and efficient.
21473 # So, we kill variables containing newlines.
21474 # Ultrix sh set writes to stderr and can't be redirected directly,
21475 # and sets the high bit in the cache file unless we assign to the vars.
21476 (
21477   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21478     eval ac_val=\$$ac_var
21479     case $ac_val in #(
21480     *${as_nl}*)
21481       case $ac_var in #(
21482       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21483 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21484       esac
21485       case $ac_var in #(
21486       _ | IFS | as_nl) ;; #(
21487       *) $as_unset $ac_var ;;
21488       esac ;;
21489     esac
21490   done
21491
21492   (set) 2>&1 |
21493     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21494     *${as_nl}ac_space=\ *)
21495       # `set' does not quote correctly, so add quotes (double-quote
21496       # substitution turns \\\\ into \\, and sed turns \\ into \).
21497       sed -n \
21498         "s/'/'\\\\''/g;
21499           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21500       ;; #(
21501     *)
21502       # `set' quotes correctly as required by POSIX, so do not add quotes.
21503       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21504       ;;
21505     esac |
21506     sort
21507 ) |
21508   sed '
21509      /^ac_cv_env_/b end
21510      t clear
21511      :clear
21512      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21513      t end
21514      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21515      :end' >>confcache
21516 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21517   if test -w "$cache_file"; then
21518     test "x$cache_file" != "x/dev/null" &&
21519       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21520 echo "$as_me: updating cache $cache_file" >&6;}
21521     cat confcache >$cache_file
21522   else
21523     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21524 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21525   fi
21526 fi
21527 rm -f confcache
21528
21529 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21530 # Let make expand exec_prefix.
21531 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21532
21533 # Transform confdefs.h into DEFS.
21534 # Protect against shell expansion while executing Makefile rules.
21535 # Protect against Makefile macro expansion.
21536 #
21537 # If the first sed substitution is executed (which looks for macros that
21538 # take arguments), then branch to the quote section.  Otherwise,
21539 # look for a macro that doesn't take arguments.
21540 ac_script='
21541 t clear
21542 :clear
21543 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
21544 t quote
21545 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
21546 t quote
21547 b any
21548 :quote
21549 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21550 s/\[/\\&/g
21551 s/\]/\\&/g
21552 s/\$/$$/g
21553 H
21554 :any
21555 ${
21556         g
21557         s/^\n//
21558         s/\n/ /g
21559         p
21560 }
21561 '
21562 DEFS=`sed -n "$ac_script" confdefs.h`
21563
21564
21565 ac_libobjs=
21566 ac_ltlibobjs=
21567 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21568   # 1. Remove the extension, and $U if already installed.
21569   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21570   ac_i=`echo "$ac_i" | sed "$ac_script"`
21571   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21572   #    will be set to the directory where LIBOBJS objects are built.
21573   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21574   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21575 done
21576 LIBOBJS=$ac_libobjs
21577
21578 LTLIBOBJS=$ac_ltlibobjs
21579
21580
21581 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21582   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21583 Usually this means the macro was only invoked conditionally." >&5
21584 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21585 Usually this means the macro was only invoked conditionally." >&2;}
21586    { (exit 1); exit 1; }; }
21587 fi
21588 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21589   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21590 Usually this means the macro was only invoked conditionally." >&5
21591 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21592 Usually this means the macro was only invoked conditionally." >&2;}
21593    { (exit 1); exit 1; }; }
21594 fi
21595
21596 : ${CONFIG_STATUS=./config.status}
21597 ac_clean_files_save=$ac_clean_files
21598 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21599 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21600 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21601 cat >$CONFIG_STATUS <<_ACEOF
21602 #! $SHELL
21603 # Generated by $as_me.
21604 # Run this file to recreate the current configuration.
21605 # Compiler output produced by configure, useful for debugging
21606 # configure, is in config.log if it exists.
21607
21608 debug=false
21609 ac_cs_recheck=false
21610 ac_cs_silent=false
21611 SHELL=\${CONFIG_SHELL-$SHELL}
21612 _ACEOF
21613
21614 cat >>$CONFIG_STATUS <<\_ACEOF
21615 ## --------------------- ##
21616 ## M4sh Initialization.  ##
21617 ## --------------------- ##
21618
21619 # Be Bourne compatible
21620 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21621   emulate sh
21622   NULLCMD=:
21623   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21624   # is contrary to our usage.  Disable this feature.
21625   alias -g '${1+"$@"}'='"$@"'
21626   setopt NO_GLOB_SUBST
21627 else
21628   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21629 fi
21630 BIN_SH=xpg4; export BIN_SH # for Tru64
21631 DUALCASE=1; export DUALCASE # for MKS sh
21632
21633
21634 # PATH needs CR
21635 # Avoid depending upon Character Ranges.
21636 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21637 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21638 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21639 as_cr_digits='0123456789'
21640 as_cr_alnum=$as_cr_Letters$as_cr_digits
21641
21642 # The user is always right.
21643 if test "${PATH_SEPARATOR+set}" != set; then
21644   echo "#! /bin/sh" >conf$$.sh
21645   echo  "exit 0"   >>conf$$.sh
21646   chmod +x conf$$.sh
21647   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21648     PATH_SEPARATOR=';'
21649   else
21650     PATH_SEPARATOR=:
21651   fi
21652   rm -f conf$$.sh
21653 fi
21654
21655 # Support unset when possible.
21656 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21657   as_unset=unset
21658 else
21659   as_unset=false
21660 fi
21661
21662
21663 # IFS
21664 # We need space, tab and new line, in precisely that order.  Quoting is
21665 # there to prevent editors from complaining about space-tab.
21666 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21667 # splitting by setting IFS to empty value.)
21668 as_nl='
21669 '
21670 IFS=" ""        $as_nl"
21671
21672 # Find who we are.  Look in the path if we contain no directory separator.
21673 case $0 in
21674   *[\\/]* ) as_myself=$0 ;;
21675   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21676 for as_dir in $PATH
21677 do
21678   IFS=$as_save_IFS
21679   test -z "$as_dir" && as_dir=.
21680   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21681 done
21682 IFS=$as_save_IFS
21683
21684      ;;
21685 esac
21686 # We did not find ourselves, most probably we were run as `sh COMMAND'
21687 # in which case we are not to be found in the path.
21688 if test "x$as_myself" = x; then
21689   as_myself=$0
21690 fi
21691 if test ! -f "$as_myself"; then
21692   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21693   { (exit 1); exit 1; }
21694 fi
21695
21696 # Work around bugs in pre-3.0 UWIN ksh.
21697 for as_var in ENV MAIL MAILPATH
21698 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21699 done
21700 PS1='$ '
21701 PS2='> '
21702 PS4='+ '
21703
21704 # NLS nuisances.
21705 for as_var in \
21706   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21707   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21708   LC_TELEPHONE LC_TIME
21709 do
21710   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21711     eval $as_var=C; export $as_var
21712   else
21713     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21714   fi
21715 done
21716
21717 # Required to use basename.
21718 if expr a : '\(a\)' >/dev/null 2>&1 &&
21719    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21720   as_expr=expr
21721 else
21722   as_expr=false
21723 fi
21724
21725 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21726   as_basename=basename
21727 else
21728   as_basename=false
21729 fi
21730
21731
21732 # Name of the executable.
21733 as_me=`$as_basename -- "$0" ||
21734 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21735          X"$0" : 'X\(//\)$' \| \
21736          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21737 echo X/"$0" |
21738     sed '/^.*\/\([^/][^/]*\)\/*$/{
21739             s//\1/
21740             q
21741           }
21742           /^X\/\(\/\/\)$/{
21743             s//\1/
21744             q
21745           }
21746           /^X\/\(\/\).*/{
21747             s//\1/
21748             q
21749           }
21750           s/.*/./; q'`
21751
21752 # CDPATH.
21753 $as_unset CDPATH
21754
21755
21756
21757   as_lineno_1=$LINENO
21758   as_lineno_2=$LINENO
21759   test "x$as_lineno_1" != "x$as_lineno_2" &&
21760   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21761
21762   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21763   # uniformly replaced by the line number.  The first 'sed' inserts a
21764   # line-number line after each line using $LINENO; the second 'sed'
21765   # does the real work.  The second script uses 'N' to pair each
21766   # line-number line with the line containing $LINENO, and appends
21767   # trailing '-' during substitution so that $LINENO is not a special
21768   # case at line end.
21769   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21770   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21771   # E. McMahon (1931-1989) for sed's syntax.  :-)
21772   sed -n '
21773     p
21774     /[$]LINENO/=
21775   ' <$as_myself |
21776     sed '
21777       s/[$]LINENO.*/&-/
21778       t lineno
21779       b
21780       :lineno
21781       N
21782       :loop
21783       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21784       t loop
21785       s/-\n.*//
21786     ' >$as_me.lineno &&
21787   chmod +x "$as_me.lineno" ||
21788     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21789    { (exit 1); exit 1; }; }
21790
21791   # Don't try to exec as it changes $[0], causing all sort of problems
21792   # (the dirname of $[0] is not the place where we might find the
21793   # original and so on.  Autoconf is especially sensitive to this).
21794   . "./$as_me.lineno"
21795   # Exit status is that of the last command.
21796   exit
21797 }
21798
21799
21800 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21801   as_dirname=dirname
21802 else
21803   as_dirname=false
21804 fi
21805
21806 ECHO_C= ECHO_N= ECHO_T=
21807 case `echo -n x` in
21808 -n*)
21809   case `echo 'x\c'` in
21810   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21811   *)   ECHO_C='\c';;
21812   esac;;
21813 *)
21814   ECHO_N='-n';;
21815 esac
21816
21817 if expr a : '\(a\)' >/dev/null 2>&1 &&
21818    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21819   as_expr=expr
21820 else
21821   as_expr=false
21822 fi
21823
21824 rm -f conf$$ conf$$.exe conf$$.file
21825 if test -d conf$$.dir; then
21826   rm -f conf$$.dir/conf$$.file
21827 else
21828   rm -f conf$$.dir
21829   mkdir conf$$.dir
21830 fi
21831 echo >conf$$.file
21832 if ln -s conf$$.file conf$$ 2>/dev/null; then
21833   as_ln_s='ln -s'
21834   # ... but there are two gotchas:
21835   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21836   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21837   # In both cases, we have to default to `cp -p'.
21838   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21839     as_ln_s='cp -p'
21840 elif ln conf$$.file conf$$ 2>/dev/null; then
21841   as_ln_s=ln
21842 else
21843   as_ln_s='cp -p'
21844 fi
21845 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21846 rmdir conf$$.dir 2>/dev/null
21847
21848 if mkdir -p . 2>/dev/null; then
21849   as_mkdir_p=:
21850 else
21851   test -d ./-p && rmdir ./-p
21852   as_mkdir_p=false
21853 fi
21854
21855 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21856 # systems may use methods other than mode bits to determine executability.
21857 cat >conf$$.file <<_ASEOF
21858 #! /bin/sh
21859 exit 0
21860 _ASEOF
21861 chmod +x conf$$.file
21862 if test -x conf$$.file >/dev/null 2>&1; then
21863   as_executable_p="test -x"
21864 else
21865   as_executable_p=:
21866 fi
21867 rm -f conf$$.file
21868
21869 # Sed expression to map a string onto a valid CPP name.
21870 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21871
21872 # Sed expression to map a string onto a valid variable name.
21873 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21874
21875
21876 exec 6>&1
21877
21878 # Save the log message, to keep $[0] and so on meaningful, and to
21879 # report actual input values of CONFIG_FILES etc. instead of their
21880 # values after options handling.
21881 ac_log="
21882 This file was extended by [SAMPLE] $as_me [x.xx], which was
21883 generated by GNU Autoconf 2.60.  Invocation command line was
21884
21885   CONFIG_FILES    = $CONFIG_FILES
21886   CONFIG_HEADERS  = $CONFIG_HEADERS
21887   CONFIG_LINKS    = $CONFIG_LINKS
21888   CONFIG_COMMANDS = $CONFIG_COMMANDS
21889   $ $0 $@
21890
21891 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21892 "
21893
21894 _ACEOF
21895
21896 cat >>$CONFIG_STATUS <<_ACEOF
21897 # Files that config.status was made for.
21898 config_files="$ac_config_files"
21899 config_commands="$ac_config_commands"
21900
21901 _ACEOF
21902
21903 cat >>$CONFIG_STATUS <<\_ACEOF
21904 ac_cs_usage="\
21905 \`$as_me' instantiates files from templates according to the
21906 current configuration.
21907
21908 Usage: $0 [OPTIONS] [FILE]...
21909
21910   -h, --help       print this help, then exit
21911   -V, --version    print version number, then exit
21912   -q, --quiet      do not print progress messages
21913   -d, --debug      don't remove temporary files
21914       --recheck    update $as_me by reconfiguring in the same conditions
21915   --file=FILE[:TEMPLATE]
21916                    instantiate the configuration file FILE
21917
21918 Configuration files:
21919 $config_files
21920
21921 Configuration commands:
21922 $config_commands
21923
21924 Report bugs to <bug-autoconf@gnu.org>."
21925
21926 _ACEOF
21927 cat >>$CONFIG_STATUS <<_ACEOF
21928 ac_cs_version="\\
21929 [SAMPLE] config.status [x.xx]
21930 configured by $0, generated by GNU Autoconf 2.60,
21931   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21932
21933 Copyright (C) 2006 Free Software Foundation, Inc.
21934 This config.status script is free software; the Free Software Foundation
21935 gives unlimited permission to copy, distribute and modify it."
21936
21937 ac_pwd='$ac_pwd'
21938 srcdir='$srcdir'
21939 INSTALL='$INSTALL'
21940 _ACEOF
21941
21942 cat >>$CONFIG_STATUS <<\_ACEOF
21943 # If no file are specified by the user, then we need to provide default
21944 # value.  By we need to know if files were specified by the user.
21945 ac_need_defaults=:
21946 while test $# != 0
21947 do
21948   case $1 in
21949   --*=*)
21950     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21951     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21952     ac_shift=:
21953     ;;
21954   *)
21955     ac_option=$1
21956     ac_optarg=$2
21957     ac_shift=shift
21958     ;;
21959   esac
21960
21961   case $ac_option in
21962   # Handling of the options.
21963   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21964     ac_cs_recheck=: ;;
21965   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21966     echo "$ac_cs_version"; exit ;;
21967   --debug | --debu | --deb | --de | --d | -d )
21968     debug=: ;;
21969   --file | --fil | --fi | --f )
21970     $ac_shift
21971     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21972     ac_need_defaults=false;;
21973   --he | --h |  --help | --hel | -h )
21974     echo "$ac_cs_usage"; exit ;;
21975   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21976   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21977     ac_cs_silent=: ;;
21978
21979   # This is an error.
21980   -*) { echo "$as_me: error: unrecognized option: $1
21981 Try \`$0 --help' for more information." >&2
21982    { (exit 1); exit 1; }; } ;;
21983
21984   *) ac_config_targets="$ac_config_targets $1"
21985      ac_need_defaults=false ;;
21986
21987   esac
21988   shift
21989 done
21990
21991 ac_configure_extra_args=
21992
21993 if $ac_cs_silent; then
21994   exec 6>/dev/null
21995   ac_configure_extra_args="$ac_configure_extra_args --silent"
21996 fi
21997
21998 _ACEOF
21999 cat >>$CONFIG_STATUS <<_ACEOF
22000 if \$ac_cs_recheck; then
22001   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22002   CONFIG_SHELL=$SHELL
22003   export CONFIG_SHELL
22004   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22005 fi
22006
22007 _ACEOF
22008 cat >>$CONFIG_STATUS <<\_ACEOF
22009 exec 5>>config.log
22010 {
22011   echo
22012   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22013 ## Running $as_me. ##
22014 _ASBOX
22015   echo "$ac_log"
22016 } >&5
22017
22018 _ACEOF
22019 cat >>$CONFIG_STATUS <<_ACEOF
22020 #
22021 # INIT-COMMANDS
22022 #
22023 llvm_src="${LLVM_SRC}"
22024
22025 _ACEOF
22026
22027 cat >>$CONFIG_STATUS <<\_ACEOF
22028
22029 # Handling of arguments.
22030 for ac_config_target in $ac_config_targets
22031 do
22032   case $ac_config_target in
22033     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22034     "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
22035     "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
22036     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22037     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22038     "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
22039     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22040     "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
22041
22042   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22043 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22044    { (exit 1); exit 1; }; };;
22045   esac
22046 done
22047
22048
22049 # If the user did not use the arguments to specify the items to instantiate,
22050 # then the envvar interface is used.  Set only those that are not.
22051 # We use the long form for the default assignment because of an extremely
22052 # bizarre bug on SunOS 4.1.3.
22053 if $ac_need_defaults; then
22054   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22055   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22056 fi
22057
22058 # Have a temporary directory for convenience.  Make it in the build tree
22059 # simply because there is no reason against having it here, and in addition,
22060 # creating and moving files from /tmp can sometimes cause problems.
22061 # Hook for its removal unless debugging.
22062 # Note that there is a small window in which the directory will not be cleaned:
22063 # after its creation but before its name has been assigned to `$tmp'.
22064 $debug ||
22065 {
22066   tmp=
22067   trap 'exit_status=$?
22068   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22069 ' 0
22070   trap '{ (exit 1); exit 1; }' 1 2 13 15
22071 }
22072 # Create a (secure) tmp directory for tmp files.
22073
22074 {
22075   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22076   test -n "$tmp" && test -d "$tmp"
22077 }  ||
22078 {
22079   tmp=./conf$$-$RANDOM
22080   (umask 077 && mkdir "$tmp")
22081 } ||
22082 {
22083    echo "$me: cannot create a temporary directory in ." >&2
22084    { (exit 1); exit 1; }
22085 }
22086
22087 #
22088 # Set up the sed scripts for CONFIG_FILES section.
22089 #
22090
22091 # No need to generate the scripts if there are no CONFIG_FILES.
22092 # This happens for instance when ./config.status config.h
22093 if test -n "$CONFIG_FILES"; then
22094
22095 _ACEOF
22096
22097
22098
22099 ac_delim='%!_!# '
22100 for ac_last_try in false false false false false :; do
22101   cat >conf$$subs.sed <<_ACEOF
22102 SHELL!$SHELL$ac_delim
22103 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22104 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22105 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22106 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22107 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22108 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22109 exec_prefix!$exec_prefix$ac_delim
22110 prefix!$prefix$ac_delim
22111 program_transform_name!$program_transform_name$ac_delim
22112 bindir!$bindir$ac_delim
22113 sbindir!$sbindir$ac_delim
22114 libexecdir!$libexecdir$ac_delim
22115 datarootdir!$datarootdir$ac_delim
22116 datadir!$datadir$ac_delim
22117 sysconfdir!$sysconfdir$ac_delim
22118 sharedstatedir!$sharedstatedir$ac_delim
22119 localstatedir!$localstatedir$ac_delim
22120 includedir!$includedir$ac_delim
22121 oldincludedir!$oldincludedir$ac_delim
22122 docdir!$docdir$ac_delim
22123 infodir!$infodir$ac_delim
22124 htmldir!$htmldir$ac_delim
22125 dvidir!$dvidir$ac_delim
22126 pdfdir!$pdfdir$ac_delim
22127 psdir!$psdir$ac_delim
22128 libdir!$libdir$ac_delim
22129 localedir!$localedir$ac_delim
22130 mandir!$mandir$ac_delim
22131 DEFS!$DEFS$ac_delim
22132 ECHO_C!$ECHO_C$ac_delim
22133 ECHO_N!$ECHO_N$ac_delim
22134 ECHO_T!$ECHO_T$ac_delim
22135 LIBS!$LIBS$ac_delim
22136 build_alias!$build_alias$ac_delim
22137 host_alias!$host_alias$ac_delim
22138 target_alias!$target_alias$ac_delim
22139 LLVM_SRC!$LLVM_SRC$ac_delim
22140 LLVM_OBJ!$LLVM_OBJ$ac_delim
22141 LLVM_VERSION!$LLVM_VERSION$ac_delim
22142 CC!$CC$ac_delim
22143 CFLAGS!$CFLAGS$ac_delim
22144 LDFLAGS!$LDFLAGS$ac_delim
22145 CPPFLAGS!$CPPFLAGS$ac_delim
22146 ac_ct_CC!$ac_ct_CC$ac_delim
22147 EXEEXT!$EXEEXT$ac_delim
22148 OBJEXT!$OBJEXT$ac_delim
22149 CXX!$CXX$ac_delim
22150 CXXFLAGS!$CXXFLAGS$ac_delim
22151 ac_ct_CXX!$ac_ct_CXX$ac_delim
22152 CPP!$CPP$ac_delim
22153 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22154 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22155 subdirs!$subdirs$ac_delim
22156 build!$build$ac_delim
22157 build_cpu!$build_cpu$ac_delim
22158 build_vendor!$build_vendor$ac_delim
22159 build_os!$build_os$ac_delim
22160 host!$host$ac_delim
22161 host_cpu!$host_cpu$ac_delim
22162 host_vendor!$host_vendor$ac_delim
22163 host_os!$host_os$ac_delim
22164 target!$target$ac_delim
22165 target_cpu!$target_cpu$ac_delim
22166 target_vendor!$target_vendor$ac_delim
22167 target_os!$target_os$ac_delim
22168 OS!$OS$ac_delim
22169 HOST_OS!$HOST_OS$ac_delim
22170 TARGET_OS!$TARGET_OS$ac_delim
22171 LINKALL!$LINKALL$ac_delim
22172 NOLINKALL!$NOLINKALL$ac_delim
22173 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22174 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22175 ARCH!$ARCH$ac_delim
22176 ENDIAN!$ENDIAN$ac_delim
22177 GREP!$GREP$ac_delim
22178 EGREP!$EGREP$ac_delim
22179 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22180 BUILD_CC!$BUILD_CC$ac_delim
22181 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22182 BUILD_CXX!$BUILD_CXX$ac_delim
22183 CVSBUILD!$CVSBUILD$ac_delim
22184 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22185 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22186 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22187 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22188 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22189 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22190 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22191 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22192 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22193 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22194 JIT!$JIT$ac_delim
22195 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22196 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22197 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22198 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
22199 _ACEOF
22200
22201   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22202     break
22203   elif $ac_last_try; then
22204     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22205 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22206    { (exit 1); exit 1; }; }
22207   else
22208     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22209   fi
22210 done
22211
22212 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22213 if test -n "$ac_eof"; then
22214   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22215   ac_eof=`expr $ac_eof + 1`
22216 fi
22217
22218 cat >>$CONFIG_STATUS <<_ACEOF
22219 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22220 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22221 _ACEOF
22222 sed '
22223 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22224 s/^/s,@/; s/!/@,|#_!!_#|/
22225 :n
22226 t n
22227 s/'"$ac_delim"'$/,g/; t
22228 s/$/\\/; p
22229 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22230 ' >>$CONFIG_STATUS <conf$$subs.sed
22231 rm -f conf$$subs.sed
22232 cat >>$CONFIG_STATUS <<_ACEOF
22233 CEOF$ac_eof
22234 _ACEOF
22235
22236
22237 ac_delim='%!_!# '
22238 for ac_last_try in false false false false false :; do
22239   cat >conf$$subs.sed <<_ACEOF
22240 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22241 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
22242 ENABLE_PIC!$ENABLE_PIC$ac_delim
22243 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22244 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22245 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22246 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22247 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22248 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22249 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22250 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22251 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22252 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22253 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22254 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22255 NM!$NM$ac_delim
22256 ifGNUmake!$ifGNUmake$ac_delim
22257 LN_S!$LN_S$ac_delim
22258 CMP!$CMP$ac_delim
22259 CP!$CP$ac_delim
22260 DATE!$DATE$ac_delim
22261 FIND!$FIND$ac_delim
22262 MKDIR!$MKDIR$ac_delim
22263 MV!$MV$ac_delim
22264 RANLIB!$RANLIB$ac_delim
22265 AR!$AR$ac_delim
22266 RM!$RM$ac_delim
22267 SED!$SED$ac_delim
22268 TAR!$TAR$ac_delim
22269 BINPWD!$BINPWD$ac_delim
22270 GRAPHVIZ!$GRAPHVIZ$ac_delim
22271 DOT!$DOT$ac_delim
22272 FDP!$FDP$ac_delim
22273 NEATO!$NEATO$ac_delim
22274 TWOPI!$TWOPI$ac_delim
22275 CIRCO!$CIRCO$ac_delim
22276 GV!$GV$ac_delim
22277 DOTTY!$DOTTY$ac_delim
22278 XDOT_PY!$XDOT_PY$ac_delim
22279 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22280 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22281 INSTALL_DATA!$INSTALL_DATA$ac_delim
22282 BZIP2!$BZIP2$ac_delim
22283 CAT!$CAT$ac_delim
22284 DOXYGEN!$DOXYGEN$ac_delim
22285 GROFF!$GROFF$ac_delim
22286 GZIPBIN!$GZIPBIN$ac_delim
22287 POD2HTML!$POD2HTML$ac_delim
22288 POD2MAN!$POD2MAN$ac_delim
22289 PDFROFF!$PDFROFF$ac_delim
22290 RUNTEST!$RUNTEST$ac_delim
22291 TCLSH!$TCLSH$ac_delim
22292 ZIP!$ZIP$ac_delim
22293 OCAMLC!$OCAMLC$ac_delim
22294 OCAMLOPT!$OCAMLOPT$ac_delim
22295 OCAMLDEP!$OCAMLDEP$ac_delim
22296 OCAMLDOC!$OCAMLDOC$ac_delim
22297 GAS!$GAS$ac_delim
22298 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22299 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22300 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22301 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22302 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22303 LIBADD_DL!$LIBADD_DL$ac_delim
22304 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22305 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22306 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22307 USE_UDIS86!$USE_UDIS86$ac_delim
22308 USE_OPROFILE!$USE_OPROFILE$ac_delim
22309 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22310 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
22311 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22312 MMAP_FILE!$MMAP_FILE$ac_delim
22313 SHLIBEXT!$SHLIBEXT$ac_delim
22314 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22315 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22316 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22317 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22318 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22319 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22320 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22321 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22322 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22323 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22324 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22325 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22326 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22327 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22328 RPATH!$RPATH$ac_delim
22329 RDYNAMIC!$RDYNAMIC$ac_delim
22330 LIBOBJS!$LIBOBJS$ac_delim
22331 LTLIBOBJS!$LTLIBOBJS$ac_delim
22332 _ACEOF
22333
22334   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
22335     break
22336   elif $ac_last_try; then
22337     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22338 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22339    { (exit 1); exit 1; }; }
22340   else
22341     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22342   fi
22343 done
22344
22345 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22346 if test -n "$ac_eof"; then
22347   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22348   ac_eof=`expr $ac_eof + 1`
22349 fi
22350
22351 cat >>$CONFIG_STATUS <<_ACEOF
22352 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22353 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22354 _ACEOF
22355 sed '
22356 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22357 s/^/s,@/; s/!/@,|#_!!_#|/
22358 :n
22359 t n
22360 s/'"$ac_delim"'$/,g/; t
22361 s/$/\\/; p
22362 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22363 ' >>$CONFIG_STATUS <conf$$subs.sed
22364 rm -f conf$$subs.sed
22365 cat >>$CONFIG_STATUS <<_ACEOF
22366 :end
22367 s/|#_!!_#|//g
22368 CEOF$ac_eof
22369 _ACEOF
22370
22371
22372 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22373 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22374 # trailing colons and then remove the whole line if VPATH becomes empty
22375 # (actually we leave an empty line to preserve line numbers).
22376 if test "x$srcdir" = x.; then
22377   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22378 s/:*\$(srcdir):*/:/
22379 s/:*\${srcdir}:*/:/
22380 s/:*@srcdir@:*/:/
22381 s/^\([^=]*=[     ]*\):*/\1/
22382 s/:*$//
22383 s/^[^=]*=[       ]*$//
22384 }'
22385 fi
22386
22387 cat >>$CONFIG_STATUS <<\_ACEOF
22388 fi # test -n "$CONFIG_FILES"
22389
22390
22391 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
22392 do
22393   case $ac_tag in
22394   :[FHLC]) ac_mode=$ac_tag; continue;;
22395   esac
22396   case $ac_mode$ac_tag in
22397   :[FHL]*:*);;
22398   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22399 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22400    { (exit 1); exit 1; }; };;
22401   :[FH]-) ac_tag=-:-;;
22402   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22403   esac
22404   ac_save_IFS=$IFS
22405   IFS=:
22406   set x $ac_tag
22407   IFS=$ac_save_IFS
22408   shift
22409   ac_file=$1
22410   shift
22411
22412   case $ac_mode in
22413   :L) ac_source=$1;;
22414   :[FH])
22415     ac_file_inputs=
22416     for ac_f
22417     do
22418       case $ac_f in
22419       -) ac_f="$tmp/stdin";;
22420       *) # Look for the file first in the build tree, then in the source tree
22421          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22422          # because $ac_f cannot contain `:'.
22423          test -f "$ac_f" ||
22424            case $ac_f in
22425            [\\/$]*) false;;
22426            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22427            esac ||
22428            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22429 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22430    { (exit 1); exit 1; }; };;
22431       esac
22432       ac_file_inputs="$ac_file_inputs $ac_f"
22433     done
22434
22435     # Let's still pretend it is `configure' which instantiates (i.e., don't
22436     # use $as_me), people would be surprised to read:
22437     #    /* config.h.  Generated by config.status.  */
22438     configure_input="Generated from "`IFS=:
22439           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22440     if test x"$ac_file" != x-; then
22441       configure_input="$ac_file.  $configure_input"
22442       { echo "$as_me:$LINENO: creating $ac_file" >&5
22443 echo "$as_me: creating $ac_file" >&6;}
22444     fi
22445
22446     case $ac_tag in
22447     *:-:* | *:-) cat >"$tmp/stdin";;
22448     esac
22449     ;;
22450   esac
22451
22452   ac_dir=`$as_dirname -- "$ac_file" ||
22453 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22454          X"$ac_file" : 'X\(//\)[^/]' \| \
22455          X"$ac_file" : 'X\(//\)$' \| \
22456          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22457 echo X"$ac_file" |
22458     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22459             s//\1/
22460             q
22461           }
22462           /^X\(\/\/\)[^/].*/{
22463             s//\1/
22464             q
22465           }
22466           /^X\(\/\/\)$/{
22467             s//\1/
22468             q
22469           }
22470           /^X\(\/\).*/{
22471             s//\1/
22472             q
22473           }
22474           s/.*/./; q'`
22475   { as_dir="$ac_dir"
22476   case $as_dir in #(
22477   -*) as_dir=./$as_dir;;
22478   esac
22479   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22480     as_dirs=
22481     while :; do
22482       case $as_dir in #(
22483       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22484       *) as_qdir=$as_dir;;
22485       esac
22486       as_dirs="'$as_qdir' $as_dirs"
22487       as_dir=`$as_dirname -- "$as_dir" ||
22488 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22489          X"$as_dir" : 'X\(//\)[^/]' \| \
22490          X"$as_dir" : 'X\(//\)$' \| \
22491          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22492 echo X"$as_dir" |
22493     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22494             s//\1/
22495             q
22496           }
22497           /^X\(\/\/\)[^/].*/{
22498             s//\1/
22499             q
22500           }
22501           /^X\(\/\/\)$/{
22502             s//\1/
22503             q
22504           }
22505           /^X\(\/\).*/{
22506             s//\1/
22507             q
22508           }
22509           s/.*/./; q'`
22510       test -d "$as_dir" && break
22511     done
22512     test -z "$as_dirs" || eval "mkdir $as_dirs"
22513   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22514 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22515    { (exit 1); exit 1; }; }; }
22516   ac_builddir=.
22517
22518 case "$ac_dir" in
22519 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22520 *)
22521   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22522   # A ".." for each directory in $ac_dir_suffix.
22523   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22524   case $ac_top_builddir_sub in
22525   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22526   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22527   esac ;;
22528 esac
22529 ac_abs_top_builddir=$ac_pwd
22530 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22531 # for backward compatibility:
22532 ac_top_builddir=$ac_top_build_prefix
22533
22534 case $srcdir in
22535   .)  # We are building in place.
22536     ac_srcdir=.
22537     ac_top_srcdir=$ac_top_builddir_sub
22538     ac_abs_top_srcdir=$ac_pwd ;;
22539   [\\/]* | ?:[\\/]* )  # Absolute name.
22540     ac_srcdir=$srcdir$ac_dir_suffix;
22541     ac_top_srcdir=$srcdir
22542     ac_abs_top_srcdir=$srcdir ;;
22543   *) # Relative name.
22544     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22545     ac_top_srcdir=$ac_top_build_prefix$srcdir
22546     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22547 esac
22548 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22549
22550
22551   case $ac_mode in
22552   :F)
22553   #
22554   # CONFIG_FILE
22555   #
22556
22557   case $INSTALL in
22558   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22559   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22560   esac
22561 _ACEOF
22562
22563 cat >>$CONFIG_STATUS <<\_ACEOF
22564 # If the template does not know about datarootdir, expand it.
22565 # FIXME: This hack should be removed a few years after 2.60.
22566 ac_datarootdir_hack=; ac_datarootdir_seen=
22567
22568 case `sed -n '/datarootdir/ {
22569   p
22570   q
22571 }
22572 /@datadir@/p
22573 /@docdir@/p
22574 /@infodir@/p
22575 /@localedir@/p
22576 /@mandir@/p
22577 ' $ac_file_inputs` in
22578 *datarootdir*) ac_datarootdir_seen=yes;;
22579 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22580   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22581 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22582 _ACEOF
22583 cat >>$CONFIG_STATUS <<_ACEOF
22584   ac_datarootdir_hack='
22585   s&@datadir@&$datadir&g
22586   s&@docdir@&$docdir&g
22587   s&@infodir@&$infodir&g
22588   s&@localedir@&$localedir&g
22589   s&@mandir@&$mandir&g
22590     s&\\\${datarootdir}&$datarootdir&g' ;;
22591 esac
22592 _ACEOF
22593
22594 # Neutralize VPATH when `$srcdir' = `.'.
22595 # Shell code in configure.ac might set extrasub.
22596 # FIXME: do we really want to maintain this feature?
22597 cat >>$CONFIG_STATUS <<_ACEOF
22598   sed "$ac_vpsub
22599 $extrasub
22600 _ACEOF
22601 cat >>$CONFIG_STATUS <<\_ACEOF
22602 :t
22603 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22604 s&@configure_input@&$configure_input&;t t
22605 s&@top_builddir@&$ac_top_builddir_sub&;t t
22606 s&@srcdir@&$ac_srcdir&;t t
22607 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22608 s&@top_srcdir@&$ac_top_srcdir&;t t
22609 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22610 s&@builddir@&$ac_builddir&;t t
22611 s&@abs_builddir@&$ac_abs_builddir&;t t
22612 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22613 s&@INSTALL@&$ac_INSTALL&;t t
22614 $ac_datarootdir_hack
22615 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22616
22617 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22618   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22619   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22620   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22621 which seems to be undefined.  Please make sure it is defined." >&5
22622 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22623 which seems to be undefined.  Please make sure it is defined." >&2;}
22624
22625   rm -f "$tmp/stdin"
22626   case $ac_file in
22627   -) cat "$tmp/out"; rm -f "$tmp/out";;
22628   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22629   esac
22630  ;;
22631
22632
22633   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22634 echo "$as_me: executing $ac_file commands" >&6;}
22635  ;;
22636   esac
22637
22638
22639   case $ac_file$ac_mode in
22640     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22641    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22642     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22643    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22644     "lib/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22645    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22646     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22647    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22648     "tools/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22649    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22650
22651   esac
22652 done # for ac_tag
22653
22654
22655 { (exit 0); exit 0; }
22656 _ACEOF
22657 chmod +x $CONFIG_STATUS
22658 ac_clean_files=$ac_clean_files_save
22659
22660
22661 # configure is writing to config.log, and then calls config.status.
22662 # config.status does its own redirection, appending to config.log.
22663 # Unfortunately, on DOS this fails, as config.log is still kept open
22664 # by configure, so config.status won't be able to write to it; its
22665 # output is simply discarded.  So we exec the FD to /dev/null,
22666 # effectively closing config.log, so it can be properly (re)opened and
22667 # appended to by config.status.  When coming back to configure, we
22668 # need to make the FD available again.
22669 if test "$no_create" != yes; then
22670   ac_cs_success=:
22671   ac_config_status_args=
22672   test "$silent" = yes &&
22673     ac_config_status_args="$ac_config_status_args --quiet"
22674   exec 5>/dev/null
22675   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22676   exec 5>>config.log
22677   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22678   # would make configure fail if this is the last instruction.
22679   $ac_cs_success || { (exit 1); exit 1; }
22680 fi
22681
22682 #
22683 # CONFIG_SUBDIRS section.
22684 #
22685 if test "$no_recursion" != yes; then
22686
22687   # Remove --cache-file and --srcdir arguments so they do not pile up.
22688   ac_sub_configure_args=
22689   ac_prev=
22690   eval "set x $ac_configure_args"
22691   shift
22692   for ac_arg
22693   do
22694     if test -n "$ac_prev"; then
22695       ac_prev=
22696       continue
22697     fi
22698     case $ac_arg in
22699     -cache-file | --cache-file | --cache-fil | --cache-fi \
22700     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22701       ac_prev=cache_file ;;
22702     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22703     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22704     | --c=*)
22705       ;;
22706     --config-cache | -C)
22707       ;;
22708     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22709       ac_prev=srcdir ;;
22710     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22711       ;;
22712     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22713       ac_prev=prefix ;;
22714     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22715       ;;
22716     *)
22717       case $ac_arg in
22718       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22719       esac
22720       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22721     esac
22722   done
22723
22724   # Always prepend --prefix to ensure using the same prefix
22725   # in subdir configurations.
22726   ac_arg="--prefix=$prefix"
22727   case $ac_arg in
22728   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22729   esac
22730   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22731
22732   ac_popdir=`pwd`
22733   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22734
22735     # Do not complain, so a configure script can configure whichever
22736     # parts of a large source tree are present.
22737     test -d "$srcdir/$ac_dir" || continue
22738
22739     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22740     echo "$as_me:$LINENO: $ac_msg" >&5
22741     echo "$ac_msg" >&6
22742     { as_dir="$ac_dir"
22743   case $as_dir in #(
22744   -*) as_dir=./$as_dir;;
22745   esac
22746   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22747     as_dirs=
22748     while :; do
22749       case $as_dir in #(
22750       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22751       *) as_qdir=$as_dir;;
22752       esac
22753       as_dirs="'$as_qdir' $as_dirs"
22754       as_dir=`$as_dirname -- "$as_dir" ||
22755 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22756          X"$as_dir" : 'X\(//\)[^/]' \| \
22757          X"$as_dir" : 'X\(//\)$' \| \
22758          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22759 echo X"$as_dir" |
22760     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22761             s//\1/
22762             q
22763           }
22764           /^X\(\/\/\)[^/].*/{
22765             s//\1/
22766             q
22767           }
22768           /^X\(\/\/\)$/{
22769             s//\1/
22770             q
22771           }
22772           /^X\(\/\).*/{
22773             s//\1/
22774             q
22775           }
22776           s/.*/./; q'`
22777       test -d "$as_dir" && break
22778     done
22779     test -z "$as_dirs" || eval "mkdir $as_dirs"
22780   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22781 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22782    { (exit 1); exit 1; }; }; }
22783     ac_builddir=.
22784
22785 case "$ac_dir" in
22786 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22787 *)
22788   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22789   # A ".." for each directory in $ac_dir_suffix.
22790   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22791   case $ac_top_builddir_sub in
22792   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22793   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22794   esac ;;
22795 esac
22796 ac_abs_top_builddir=$ac_pwd
22797 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22798 # for backward compatibility:
22799 ac_top_builddir=$ac_top_build_prefix
22800
22801 case $srcdir in
22802   .)  # We are building in place.
22803     ac_srcdir=.
22804     ac_top_srcdir=$ac_top_builddir_sub
22805     ac_abs_top_srcdir=$ac_pwd ;;
22806   [\\/]* | ?:[\\/]* )  # Absolute name.
22807     ac_srcdir=$srcdir$ac_dir_suffix;
22808     ac_top_srcdir=$srcdir
22809     ac_abs_top_srcdir=$srcdir ;;
22810   *) # Relative name.
22811     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22812     ac_top_srcdir=$ac_top_build_prefix$srcdir
22813     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22814 esac
22815 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22816
22817
22818     cd "$ac_dir"
22819
22820     # Check for guested configure; otherwise get Cygnus style configure.
22821     if test -f "$ac_srcdir/configure.gnu"; then
22822       ac_sub_configure=$ac_srcdir/configure.gnu
22823     elif test -f "$ac_srcdir/configure"; then
22824       ac_sub_configure=$ac_srcdir/configure
22825     elif test -f "$ac_srcdir/configure.in"; then
22826       # This should be Cygnus configure.
22827       ac_sub_configure=$ac_aux_dir/configure
22828     else
22829       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22830 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22831       ac_sub_configure=
22832     fi
22833
22834     # The recursion is here.
22835     if test -n "$ac_sub_configure"; then
22836       # Make the cache file name correct relative to the subdirectory.
22837       case $cache_file in
22838       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22839       *) # Relative name.
22840         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22841       esac
22842
22843       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22844 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22845       # The eval makes quoting arguments work.
22846       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22847            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22848         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22849 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22850    { (exit 1); exit 1; }; }
22851     fi
22852
22853     cd "$ac_popdir"
22854   done
22855 fi
22856