Temporarily revert r151609, which enabled a new warning for LLVM and
[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_OPTIMIZED
686 ENABLE_PROFILING
687 DISABLE_ASSERTIONS
688 ENABLE_EXPENSIVE_CHECKS
689 EXPENSIVE_CHECKS
690 DEBUG_RUNTIME
691 DEBUG_SYMBOLS
692 JIT
693 TARGET_HAS_JIT
694 ENABLE_DOCS
695 ENABLE_DOXYGEN
696 ENABLE_THREADS
697 ENABLE_PTHREADS
698 ENABLE_PIC
699 ENABLE_SHARED
700 ENABLE_EMBED_STDCXX
701 ENABLE_TIMESTAMPS
702 TARGETS_TO_BUILD
703 LLVM_ENUM_TARGETS
704 LLVM_ENUM_ASM_PRINTERS
705 LLVM_ENUM_ASM_PARSERS
706 LLVM_ENUM_DISASSEMBLERS
707 ENABLE_CBE_PRINTF_A
708 OPTIMIZE_OPTION
709 EXTRA_OPTIONS
710 EXTRA_LD_OPTIONS
711 BINUTILS_INCDIR
712 NM
713 ifGNUmake
714 LN_S
715 CMP
716 CP
717 DATE
718 FIND
719 MKDIR
720 MV
721 RANLIB
722 AR
723 RM
724 SED
725 TAR
726 BINPWD
727 GRAPHVIZ
728 DOT
729 FDP
730 NEATO
731 TWOPI
732 CIRCO
733 GV
734 DOTTY
735 XDOT_PY
736 PERL
737 HAVE_PERL
738 INSTALL_PROGRAM
739 INSTALL_SCRIPT
740 INSTALL_DATA
741 BZIP2
742 CAT
743 DOXYGEN
744 GROFF
745 GZIPBIN
746 POD2HTML
747 POD2MAN
748 PDFROFF
749 RUNTEST
750 TCLSH
751 ZIP
752 OCAMLC
753 OCAMLOPT
754 OCAMLDEP
755 OCAMLDOC
756 GAS
757 HAVE_LINK_VERSION_SCRIPT
758 INSTALL_LTDL_TRUE
759 INSTALL_LTDL_FALSE
760 CONVENIENCE_LTDL_TRUE
761 CONVENIENCE_LTDL_FALSE
762 LIBADD_DL
763 NO_VARIADIC_MACROS
764 NO_MISSING_FIELD_INITIALIZERS
765 USE_UDIS86
766 USE_OPROFILE
767 HAVE_PTHREAD
768 HUGE_VAL_SANITY
769 MMAP_FILE
770 SHLIBEXT
771 SHLIBPATH_VAR
772 LLVM_PREFIX
773 LLVM_BINDIR
774 LLVM_LIBDIR
775 LLVM_DATADIR
776 LLVM_DOCSDIR
777 LLVM_ETCDIR
778 LLVM_INCLUDEDIR
779 LLVM_INFODIR
780 LLVM_MANDIR
781 LLVM_CONFIGTIME
782 BINDINGS_TO_BUILD
783 ALL_BINDINGS
784 OCAML_LIBDIR
785 ENABLE_VISIBILITY_INLINES_HIDDEN
786 RPATH
787 RDYNAMIC
788 LIBOBJS
789 LTLIBOBJS'
790 ac_subst_files=''
791       ac_precious_vars='build_alias
792 host_alias
793 target_alias
794 CC
795 CFLAGS
796 LDFLAGS
797 CPPFLAGS
798 CXX
799 CXXFLAGS
800 CCC
801 CPP'
802 ac_subdirs_all='tools/polly'
803
804 # Initialize some variables set by options.
805 ac_init_help=
806 ac_init_version=false
807 # The variables have the same names as the options, with
808 # dashes changed to underlines.
809 cache_file=/dev/null
810 exec_prefix=NONE
811 no_create=
812 no_recursion=
813 prefix=NONE
814 program_prefix=NONE
815 program_suffix=NONE
816 program_transform_name=s,x,x,
817 silent=
818 site=
819 srcdir=
820 verbose=
821 x_includes=NONE
822 x_libraries=NONE
823
824 # Installation directory options.
825 # These are left unexpanded so users can "make install exec_prefix=/foo"
826 # and all the variables that are supposed to be based on exec_prefix
827 # by default will actually change.
828 # Use braces instead of parens because sh, perl, etc. also accept them.
829 # (The list follows the same order as the GNU Coding Standards.)
830 bindir='${exec_prefix}/bin'
831 sbindir='${exec_prefix}/sbin'
832 libexecdir='${exec_prefix}/libexec'
833 datarootdir='${prefix}/share'
834 datadir='${datarootdir}'
835 sysconfdir='${prefix}/etc'
836 sharedstatedir='${prefix}/com'
837 localstatedir='${prefix}/var'
838 includedir='${prefix}/include'
839 oldincludedir='/usr/include'
840 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
841 infodir='${datarootdir}/info'
842 htmldir='${docdir}'
843 dvidir='${docdir}'
844 pdfdir='${docdir}'
845 psdir='${docdir}'
846 libdir='${exec_prefix}/lib'
847 localedir='${datarootdir}/locale'
848 mandir='${datarootdir}/man'
849
850 ac_prev=
851 ac_dashdash=
852 for ac_option
853 do
854   # If the previous option needs an argument, assign it.
855   if test -n "$ac_prev"; then
856     eval $ac_prev=\$ac_option
857     ac_prev=
858     continue
859   fi
860
861   case $ac_option in
862   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
863   *)    ac_optarg=yes ;;
864   esac
865
866   # Accept the important Cygnus configure options, so we can diagnose typos.
867
868   case $ac_dashdash$ac_option in
869   --)
870     ac_dashdash=yes ;;
871
872   -bindir | --bindir | --bindi | --bind | --bin | --bi)
873     ac_prev=bindir ;;
874   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
875     bindir=$ac_optarg ;;
876
877   -build | --build | --buil | --bui | --bu)
878     ac_prev=build_alias ;;
879   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
880     build_alias=$ac_optarg ;;
881
882   -cache-file | --cache-file | --cache-fil | --cache-fi \
883   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
884     ac_prev=cache_file ;;
885   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
886   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
887     cache_file=$ac_optarg ;;
888
889   --config-cache | -C)
890     cache_file=config.cache ;;
891
892   -datadir | --datadir | --datadi | --datad)
893     ac_prev=datadir ;;
894   -datadir=* | --datadir=* | --datadi=* | --datad=*)
895     datadir=$ac_optarg ;;
896
897   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
898   | --dataroo | --dataro | --datar)
899     ac_prev=datarootdir ;;
900   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
901   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
902     datarootdir=$ac_optarg ;;
903
904   -disable-* | --disable-*)
905     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
906     # Reject names that are not valid shell variable names.
907     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
908       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
909    { (exit 1); exit 1; }; }
910     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
911     eval enable_$ac_feature=no ;;
912
913   -docdir | --docdir | --docdi | --doc | --do)
914     ac_prev=docdir ;;
915   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
916     docdir=$ac_optarg ;;
917
918   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
919     ac_prev=dvidir ;;
920   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
921     dvidir=$ac_optarg ;;
922
923   -enable-* | --enable-*)
924     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
925     # Reject names that are not valid shell variable names.
926     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
927       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
928    { (exit 1); exit 1; }; }
929     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
930     eval enable_$ac_feature=\$ac_optarg ;;
931
932   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934   | --exec | --exe | --ex)
935     ac_prev=exec_prefix ;;
936   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938   | --exec=* | --exe=* | --ex=*)
939     exec_prefix=$ac_optarg ;;
940
941   -gas | --gas | --ga | --g)
942     # Obsolete; use --with-gas.
943     with_gas=yes ;;
944
945   -help | --help | --hel | --he | -h)
946     ac_init_help=long ;;
947   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948     ac_init_help=recursive ;;
949   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950     ac_init_help=short ;;
951
952   -host | --host | --hos | --ho)
953     ac_prev=host_alias ;;
954   -host=* | --host=* | --hos=* | --ho=*)
955     host_alias=$ac_optarg ;;
956
957   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
958     ac_prev=htmldir ;;
959   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
960   | --ht=*)
961     htmldir=$ac_optarg ;;
962
963   -includedir | --includedir | --includedi | --included | --include \
964   | --includ | --inclu | --incl | --inc)
965     ac_prev=includedir ;;
966   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967   | --includ=* | --inclu=* | --incl=* | --inc=*)
968     includedir=$ac_optarg ;;
969
970   -infodir | --infodir | --infodi | --infod | --info | --inf)
971     ac_prev=infodir ;;
972   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973     infodir=$ac_optarg ;;
974
975   -libdir | --libdir | --libdi | --libd)
976     ac_prev=libdir ;;
977   -libdir=* | --libdir=* | --libdi=* | --libd=*)
978     libdir=$ac_optarg ;;
979
980   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981   | --libexe | --libex | --libe)
982     ac_prev=libexecdir ;;
983   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984   | --libexe=* | --libex=* | --libe=*)
985     libexecdir=$ac_optarg ;;
986
987   -localedir | --localedir | --localedi | --localed | --locale)
988     ac_prev=localedir ;;
989   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990     localedir=$ac_optarg ;;
991
992   -localstatedir | --localstatedir | --localstatedi | --localstated \
993   | --localstate | --localstat | --localsta | --localst | --locals)
994     ac_prev=localstatedir ;;
995   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
996   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
997     localstatedir=$ac_optarg ;;
998
999   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000     ac_prev=mandir ;;
1001   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002     mandir=$ac_optarg ;;
1003
1004   -nfp | --nfp | --nf)
1005     # Obsolete; use --without-fp.
1006     with_fp=no ;;
1007
1008   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009   | --no-cr | --no-c | -n)
1010     no_create=yes ;;
1011
1012   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014     no_recursion=yes ;;
1015
1016   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018   | --oldin | --oldi | --old | --ol | --o)
1019     ac_prev=oldincludedir ;;
1020   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1023     oldincludedir=$ac_optarg ;;
1024
1025   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026     ac_prev=prefix ;;
1027   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028     prefix=$ac_optarg ;;
1029
1030   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031   | --program-pre | --program-pr | --program-p)
1032     ac_prev=program_prefix ;;
1033   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1035     program_prefix=$ac_optarg ;;
1036
1037   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038   | --program-suf | --program-su | --program-s)
1039     ac_prev=program_suffix ;;
1040   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1042     program_suffix=$ac_optarg ;;
1043
1044   -program-transform-name | --program-transform-name \
1045   | --program-transform-nam | --program-transform-na \
1046   | --program-transform-n | --program-transform- \
1047   | --program-transform | --program-transfor \
1048   | --program-transfo | --program-transf \
1049   | --program-trans | --program-tran \
1050   | --progr-tra | --program-tr | --program-t)
1051     ac_prev=program_transform_name ;;
1052   -program-transform-name=* | --program-transform-name=* \
1053   | --program-transform-nam=* | --program-transform-na=* \
1054   | --program-transform-n=* | --program-transform-=* \
1055   | --program-transform=* | --program-transfor=* \
1056   | --program-transfo=* | --program-transf=* \
1057   | --program-trans=* | --program-tran=* \
1058   | --progr-tra=* | --program-tr=* | --program-t=*)
1059     program_transform_name=$ac_optarg ;;
1060
1061   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1062     ac_prev=pdfdir ;;
1063   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064     pdfdir=$ac_optarg ;;
1065
1066   -psdir | --psdir | --psdi | --psd | --ps)
1067     ac_prev=psdir ;;
1068   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1069     psdir=$ac_optarg ;;
1070
1071   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072   | -silent | --silent | --silen | --sile | --sil)
1073     silent=yes ;;
1074
1075   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1076     ac_prev=sbindir ;;
1077   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1078   | --sbi=* | --sb=*)
1079     sbindir=$ac_optarg ;;
1080
1081   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1082   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1083   | --sharedst | --shareds | --shared | --share | --shar \
1084   | --sha | --sh)
1085     ac_prev=sharedstatedir ;;
1086   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1087   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1088   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1089   | --sha=* | --sh=*)
1090     sharedstatedir=$ac_optarg ;;
1091
1092   -site | --site | --sit)
1093     ac_prev=site ;;
1094   -site=* | --site=* | --sit=*)
1095     site=$ac_optarg ;;
1096
1097   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1098     ac_prev=srcdir ;;
1099   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1100     srcdir=$ac_optarg ;;
1101
1102   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1103   | --syscon | --sysco | --sysc | --sys | --sy)
1104     ac_prev=sysconfdir ;;
1105   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1106   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1107     sysconfdir=$ac_optarg ;;
1108
1109   -target | --target | --targe | --targ | --tar | --ta | --t)
1110     ac_prev=target_alias ;;
1111   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1112     target_alias=$ac_optarg ;;
1113
1114   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1115     verbose=yes ;;
1116
1117   -version | --version | --versio | --versi | --vers | -V)
1118     ac_init_version=: ;;
1119
1120   -with-* | --with-*)
1121     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1122     # Reject names that are not valid shell variable names.
1123     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1124       { echo "$as_me: error: invalid package name: $ac_package" >&2
1125    { (exit 1); exit 1; }; }
1126     ac_package=`echo $ac_package| sed 's/-/_/g'`
1127     eval with_$ac_package=\$ac_optarg ;;
1128
1129   -without-* | --without-*)
1130     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131     # Reject names that are not valid shell variable names.
1132     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1133       { echo "$as_me: error: invalid package name: $ac_package" >&2
1134    { (exit 1); exit 1; }; }
1135     ac_package=`echo $ac_package | sed 's/-/_/g'`
1136     eval with_$ac_package=no ;;
1137
1138   --x)
1139     # Obsolete; use --with-x.
1140     with_x=yes ;;
1141
1142   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1143   | --x-incl | --x-inc | --x-in | --x-i)
1144     ac_prev=x_includes ;;
1145   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1146   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1147     x_includes=$ac_optarg ;;
1148
1149   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1150   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1151     ac_prev=x_libraries ;;
1152   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1153   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1154     x_libraries=$ac_optarg ;;
1155
1156   -*) { echo "$as_me: error: unrecognized option: $ac_option
1157 Try \`$0 --help' for more information." >&2
1158    { (exit 1); exit 1; }; }
1159     ;;
1160
1161   *=*)
1162     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1163     # Reject names that are not valid shell variable names.
1164     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1165       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1166    { (exit 1); exit 1; }; }
1167     eval $ac_envvar=\$ac_optarg
1168     export $ac_envvar ;;
1169
1170   *)
1171     # FIXME: should be removed in autoconf 3.0.
1172     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1173     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1174       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1175     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1176     ;;
1177
1178   esac
1179 done
1180
1181 if test -n "$ac_prev"; then
1182   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1183   { echo "$as_me: error: missing argument to $ac_option" >&2
1184    { (exit 1); exit 1; }; }
1185 fi
1186
1187 # Be sure to have absolute directory names.
1188 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1189                 datadir sysconfdir sharedstatedir localstatedir includedir \
1190                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1191                 libdir localedir mandir
1192 do
1193   eval ac_val=\$$ac_var
1194   case $ac_val in
1195     [\\/$]* | ?:[\\/]* )  continue;;
1196     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1197   esac
1198   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1199    { (exit 1); exit 1; }; }
1200 done
1201
1202 # There might be people who depend on the old broken behavior: `$host'
1203 # used to hold the argument of --host etc.
1204 # FIXME: To remove some day.
1205 build=$build_alias
1206 host=$host_alias
1207 target=$target_alias
1208
1209 # FIXME: To remove some day.
1210 if test "x$host_alias" != x; then
1211   if test "x$build_alias" = x; then
1212     cross_compiling=maybe
1213     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1214     If a cross compiler is detected then cross compile mode will be used." >&2
1215   elif test "x$build_alias" != "x$host_alias"; then
1216     cross_compiling=yes
1217   fi
1218 fi
1219
1220 ac_tool_prefix=
1221 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1222
1223 test "$silent" = yes && exec 6>/dev/null
1224
1225
1226 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1227 ac_ls_di=`ls -di .` &&
1228 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1229   { echo "$as_me: error: Working directory cannot be determined" >&2
1230    { (exit 1); exit 1; }; }
1231 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1232   { echo "$as_me: error: pwd does not report name of working directory" >&2
1233    { (exit 1); exit 1; }; }
1234
1235
1236 # Find the source files, if location was not specified.
1237 if test -z "$srcdir"; then
1238   ac_srcdir_defaulted=yes
1239   # Try the directory containing this script, then the parent directory.
1240   ac_confdir=`$as_dirname -- "$0" ||
1241 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1242          X"$0" : 'X\(//\)[^/]' \| \
1243          X"$0" : 'X\(//\)$' \| \
1244          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1245 echo X"$0" |
1246     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1247             s//\1/
1248             q
1249           }
1250           /^X\(\/\/\)[^/].*/{
1251             s//\1/
1252             q
1253           }
1254           /^X\(\/\/\)$/{
1255             s//\1/
1256             q
1257           }
1258           /^X\(\/\).*/{
1259             s//\1/
1260             q
1261           }
1262           s/.*/./; q'`
1263   srcdir=$ac_confdir
1264   if test ! -r "$srcdir/$ac_unique_file"; then
1265     srcdir=..
1266   fi
1267 else
1268   ac_srcdir_defaulted=no
1269 fi
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1271   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1272   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1273    { (exit 1); exit 1; }; }
1274 fi
1275 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1276 ac_abs_confdir=`(
1277         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1278    { (exit 1); exit 1; }; }
1279         pwd)`
1280 # When building in place, set srcdir=.
1281 if test "$ac_abs_confdir" = "$ac_pwd"; then
1282   srcdir=.
1283 fi
1284 # Remove unnecessary trailing slashes from srcdir.
1285 # Double slashes in file names in object file debugging info
1286 # mess up M-x gdb in Emacs.
1287 case $srcdir in
1288 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1289 esac
1290 for ac_var in $ac_precious_vars; do
1291   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1292   eval ac_env_${ac_var}_value=\$${ac_var}
1293   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1294   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1295 done
1296
1297 #
1298 # Report the --help message.
1299 #
1300 if test "$ac_init_help" = "long"; then
1301   # Omit some internal or obsolete options to make the list less imposing.
1302   # This message is too long to be a string in the A/UX 3.1 sh.
1303   cat <<_ACEOF
1304 \`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1305
1306 Usage: $0 [OPTION]... [VAR=VALUE]...
1307
1308 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309 VAR=VALUE.  See below for descriptions of some of the useful variables.
1310
1311 Defaults for the options are specified in brackets.
1312
1313 Configuration:
1314   -h, --help              display this help and exit
1315       --help=short        display options specific to this package
1316       --help=recursive    display the short help of all the included packages
1317   -V, --version           display version information and exit
1318   -q, --quiet, --silent   do not print \`checking...' messages
1319       --cache-file=FILE   cache test results in FILE [disabled]
1320   -C, --config-cache      alias for \`--cache-file=config.cache'
1321   -n, --no-create         do not create output files
1322       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1323
1324 Installation directories:
1325   --prefix=PREFIX         install architecture-independent files in PREFIX
1326                           [$ac_default_prefix]
1327   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1328                           [PREFIX]
1329
1330 By default, \`make install' will install all the files in
1331 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1332 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1333 for instance \`--prefix=\$HOME'.
1334
1335 For better control, use the options below.
1336
1337 Fine tuning of the installation directories:
1338   --bindir=DIR           user executables [EPREFIX/bin]
1339   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1340   --libexecdir=DIR       program executables [EPREFIX/libexec]
1341   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1342   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1343   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1344   --libdir=DIR           object code libraries [EPREFIX/lib]
1345   --includedir=DIR       C header files [PREFIX/include]
1346   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1347   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1348   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1349   --infodir=DIR          info documentation [DATAROOTDIR/info]
1350   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1351   --mandir=DIR           man documentation [DATAROOTDIR/man]
1352   --docdir=DIR           documentation root [DATAROOTDIR/doc/--sample--]
1353   --htmldir=DIR          html documentation [DOCDIR]
1354   --dvidir=DIR           dvi documentation [DOCDIR]
1355   --pdfdir=DIR           pdf documentation [DOCDIR]
1356   --psdir=DIR            ps documentation [DOCDIR]
1357 _ACEOF
1358
1359   cat <<\_ACEOF
1360
1361 System types:
1362   --build=BUILD     configure for building on BUILD [guessed]
1363   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1364   --target=TARGET   configure for building compilers for TARGET [HOST]
1365 _ACEOF
1366 fi
1367
1368 if test -n "$ac_init_help"; then
1369   case $ac_init_help in
1370      short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1371    esac
1372   cat <<\_ACEOF
1373
1374 Optional Features:
1375   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1376   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1377   --enable-polly          Use polly if available (default is YES)
1378   --enable-optimized      Compile with optimizations enabled (default is NO)
1379   --enable-profiling      Compile with profiling enabled (default is NO)
1380   --enable-assertions     Compile with assertion checks enabled (default is
1381                           YES)
1382   --enable-expensive-checks
1383                           Compile with expensive debug checks enabled (default
1384                           is NO)
1385   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1386                           NO)
1387   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1388                           optimization is on and YES if it's off)
1389   --enable-jit            Enable Just In Time Compiling (default is YES)
1390   --enable-docs           Build documents (default is YES)
1391   --enable-doxygen        Build doxygen documentation (default is NO)
1392   --enable-threads        Use threads if available (default is YES)
1393   --enable-pthreads       Use pthreads if available (default is YES)
1394   --enable-pic            Build LLVM with Position Independent Code (default
1395                           is YES)
1396   --enable-shared         Build a shared library and link tools against it
1397                           (default is NO)
1398   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1399                           Win32 DLL (default is YES)
1400   --enable-timestamps     Enable embedding timestamp information in build
1401                           (default is YES)
1402   --enable-targets        Build specific host targets: all or
1403                           target1,target2,... Valid targets are: host, x86,
1404                           x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1405                           xcore, msp430, ptx, cbe, and cpp (default=all)
1406   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1407                           %a (default is YES)
1408   --enable-bindings       Build specific language bindings:
1409                           all,auto,none,{binding-name} (default=auto)
1410   --enable-libffi         Check for the presence of libffi (default is NO)
1411   --enable-ltdl-install   install libltdl
1412
1413 Optional Packages:
1414   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1415   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1416   --with-llvmsrc          Location of LLVM Source Code
1417   --with-llvmobj          Location of LLVM Object Code
1418   --with-optimize-option  Select the compiler options to use for optimized
1419                           builds
1420   --with-extra-options    Specify additional options to compile LLVM with
1421   --with-extra-ld-options Specify additional options to link LLVM with
1422   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1423                           is stdlib)
1424   --with-clang-resource-dir
1425                           Relative directory from the Clang binary for
1426                           resource files
1427   --with-c-include-dirs   Colon separated list of directories clang will
1428                           search for headers
1429   --with-gcc-toolchain    Directory where gcc is installed.
1430   --with-binutils-include Specify path to binutils/include/ containing
1431                           plugin-api.h file for gold plugin.
1432   --with-bug-report-url   Specify the URL where bug reports should be
1433                           submitted (default=http://llvm.org/bugs/)
1434   --with-tclinclude       directory where tcl headers are
1435   --with-udis86=<path>    Use udis86 external x86 disassembler library
1436   --with-oprofile=<prefix>
1437                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1438
1439 Some influential environment variables:
1440   CC          C compiler command
1441   CFLAGS      C compiler flags
1442   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1443               nonstandard directory <lib dir>
1444   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1445               you have headers in a nonstandard directory <include dir>
1446   CXX         C++ compiler command
1447   CXXFLAGS    C++ compiler flags
1448   CPP         C preprocessor
1449
1450 Use these variables to override the choices made by `configure' or to help
1451 it to find libraries and programs with nonstandard names/locations.
1452
1453 Report bugs to <bugs@yourdomain>.
1454 _ACEOF
1455 ac_status=$?
1456 fi
1457
1458 if test "$ac_init_help" = "recursive"; then
1459   # If there are subdirs, report their specific --help.
1460   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1461     test -d "$ac_dir" || continue
1462     ac_builddir=.
1463
1464 case "$ac_dir" in
1465 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 *)
1467   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1468   # A ".." for each directory in $ac_dir_suffix.
1469   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1470   case $ac_top_builddir_sub in
1471   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1473   esac ;;
1474 esac
1475 ac_abs_top_builddir=$ac_pwd
1476 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1477 # for backward compatibility:
1478 ac_top_builddir=$ac_top_build_prefix
1479
1480 case $srcdir in
1481   .)  # We are building in place.
1482     ac_srcdir=.
1483     ac_top_srcdir=$ac_top_builddir_sub
1484     ac_abs_top_srcdir=$ac_pwd ;;
1485   [\\/]* | ?:[\\/]* )  # Absolute name.
1486     ac_srcdir=$srcdir$ac_dir_suffix;
1487     ac_top_srcdir=$srcdir
1488     ac_abs_top_srcdir=$srcdir ;;
1489   *) # Relative name.
1490     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1491     ac_top_srcdir=$ac_top_build_prefix$srcdir
1492     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1493 esac
1494 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1495
1496     cd "$ac_dir" || { ac_status=$?; continue; }
1497     # Check for guested configure.
1498     if test -f "$ac_srcdir/configure.gnu"; then
1499       echo &&
1500       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1501     elif test -f "$ac_srcdir/configure"; then
1502       echo &&
1503       $SHELL "$ac_srcdir/configure" --help=recursive
1504     else
1505       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1506     fi || ac_status=$?
1507     cd "$ac_pwd" || { ac_status=$?; break; }
1508   done
1509 fi
1510
1511 test -n "$ac_init_help" && exit $ac_status
1512 if $ac_init_version; then
1513   cat <<\_ACEOF
1514 [SAMPLE] configure [x.xx]
1515 generated by GNU Autoconf 2.60
1516
1517 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1518 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1519 This configure script is free software; the Free Software Foundation
1520 gives unlimited permission to copy, distribute and modify it.
1521 _ACEOF
1522   exit
1523 fi
1524 cat >config.log <<_ACEOF
1525 This file contains any messages produced by compilers while
1526 running configure, to aid debugging if configure makes a mistake.
1527
1528 It was created by [SAMPLE] $as_me [x.xx], which was
1529 generated by GNU Autoconf 2.60.  Invocation command line was
1530
1531   $ $0 $@
1532
1533 _ACEOF
1534 exec 5>>config.log
1535 {
1536 cat <<_ASUNAME
1537 ## --------- ##
1538 ## Platform. ##
1539 ## --------- ##
1540
1541 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1542 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1543 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1544 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1545 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1546
1547 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1548 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1549
1550 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1551 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1552 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1553 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1554 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1555 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1556 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1557
1558 _ASUNAME
1559
1560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1561 for as_dir in $PATH
1562 do
1563   IFS=$as_save_IFS
1564   test -z "$as_dir" && as_dir=.
1565   echo "PATH: $as_dir"
1566 done
1567 IFS=$as_save_IFS
1568
1569 } >&5
1570
1571 cat >&5 <<_ACEOF
1572
1573
1574 ## ----------- ##
1575 ## Core tests. ##
1576 ## ----------- ##
1577
1578 _ACEOF
1579
1580
1581 # Keep a trace of the command line.
1582 # Strip out --no-create and --no-recursion so they do not pile up.
1583 # Strip out --silent because we don't want to record it for future runs.
1584 # Also quote any args containing shell meta-characters.
1585 # Make two passes to allow for proper duplicate-argument suppression.
1586 ac_configure_args=
1587 ac_configure_args0=
1588 ac_configure_args1=
1589 ac_must_keep_next=false
1590 for ac_pass in 1 2
1591 do
1592   for ac_arg
1593   do
1594     case $ac_arg in
1595     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1596     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1597     | -silent | --silent | --silen | --sile | --sil)
1598       continue ;;
1599     *\'*)
1600       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1601     esac
1602     case $ac_pass in
1603     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1604     2)
1605       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1606       if test $ac_must_keep_next = true; then
1607         ac_must_keep_next=false # Got value, back to normal.
1608       else
1609         case $ac_arg in
1610           *=* | --config-cache | -C | -disable-* | --disable-* \
1611           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1612           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1613           | -with-* | --with-* | -without-* | --without-* | --x)
1614             case "$ac_configure_args0 " in
1615               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1616             esac
1617             ;;
1618           -* ) ac_must_keep_next=true ;;
1619         esac
1620       fi
1621       ac_configure_args="$ac_configure_args '$ac_arg'"
1622       ;;
1623     esac
1624   done
1625 done
1626 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1627 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1628
1629 # When interrupted or exit'd, cleanup temporary files, and complete
1630 # config.log.  We remove comments because anyway the quotes in there
1631 # would cause problems or look ugly.
1632 # WARNING: Use '\'' to represent an apostrophe within the trap.
1633 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1634 trap 'exit_status=$?
1635   # Save into config.log some information that might help in debugging.
1636   {
1637     echo
1638
1639     cat <<\_ASBOX
1640 ## ---------------- ##
1641 ## Cache variables. ##
1642 ## ---------------- ##
1643 _ASBOX
1644     echo
1645     # The following way of writing the cache mishandles newlines in values,
1646 (
1647   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1648     eval ac_val=\$$ac_var
1649     case $ac_val in #(
1650     *${as_nl}*)
1651       case $ac_var in #(
1652       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1653 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1654       esac
1655       case $ac_var in #(
1656       _ | IFS | as_nl) ;; #(
1657       *) $as_unset $ac_var ;;
1658       esac ;;
1659     esac
1660   done
1661   (set) 2>&1 |
1662     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1663     *${as_nl}ac_space=\ *)
1664       sed -n \
1665         "s/'\''/'\''\\\\'\'''\''/g;
1666           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1667       ;; #(
1668     *)
1669       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1670       ;;
1671     esac |
1672     sort
1673 )
1674     echo
1675
1676     cat <<\_ASBOX
1677 ## ----------------- ##
1678 ## Output variables. ##
1679 ## ----------------- ##
1680 _ASBOX
1681     echo
1682     for ac_var in $ac_subst_vars
1683     do
1684       eval ac_val=\$$ac_var
1685       case $ac_val in
1686       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1687       esac
1688       echo "$ac_var='\''$ac_val'\''"
1689     done | sort
1690     echo
1691
1692     if test -n "$ac_subst_files"; then
1693       cat <<\_ASBOX
1694 ## ------------------- ##
1695 ## File substitutions. ##
1696 ## ------------------- ##
1697 _ASBOX
1698       echo
1699       for ac_var in $ac_subst_files
1700       do
1701         eval ac_val=\$$ac_var
1702         case $ac_val in
1703         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1704         esac
1705         echo "$ac_var='\''$ac_val'\''"
1706       done | sort
1707       echo
1708     fi
1709
1710     if test -s confdefs.h; then
1711       cat <<\_ASBOX
1712 ## ----------- ##
1713 ## confdefs.h. ##
1714 ## ----------- ##
1715 _ASBOX
1716       echo
1717       cat confdefs.h
1718       echo
1719     fi
1720     test "$ac_signal" != 0 &&
1721       echo "$as_me: caught signal $ac_signal"
1722     echo "$as_me: exit $exit_status"
1723   } >&5
1724   rm -f core *.core core.conftest.* &&
1725     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1726     exit $exit_status
1727 ' 0
1728 for ac_signal in 1 2 13 15; do
1729   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1730 done
1731 ac_signal=0
1732
1733 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1734 rm -f -r conftest* confdefs.h
1735
1736 # Predefined preprocessor variables.
1737
1738 cat >>confdefs.h <<_ACEOF
1739 #define PACKAGE_NAME "$PACKAGE_NAME"
1740 _ACEOF
1741
1742
1743 cat >>confdefs.h <<_ACEOF
1744 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1745 _ACEOF
1746
1747
1748 cat >>confdefs.h <<_ACEOF
1749 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1750 _ACEOF
1751
1752
1753 cat >>confdefs.h <<_ACEOF
1754 #define PACKAGE_STRING "$PACKAGE_STRING"
1755 _ACEOF
1756
1757
1758 cat >>confdefs.h <<_ACEOF
1759 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1760 _ACEOF
1761
1762
1763 # Let the site file select an alternate cache file if it wants to.
1764 # Prefer explicitly selected file to automatically selected ones.
1765 if test -n "$CONFIG_SITE"; then
1766   set x "$CONFIG_SITE"
1767 elif test "x$prefix" != xNONE; then
1768   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1769 else
1770   set x "$ac_default_prefix/share/config.site" \
1771         "$ac_default_prefix/etc/config.site"
1772 fi
1773 shift
1774 for ac_site_file
1775 do
1776   if test -r "$ac_site_file"; then
1777     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1778 echo "$as_me: loading site script $ac_site_file" >&6;}
1779     sed 's/^/| /' "$ac_site_file" >&5
1780     . "$ac_site_file"
1781   fi
1782 done
1783
1784 if test -r "$cache_file"; then
1785   # Some versions of bash will fail to source /dev/null (special
1786   # files actually), so we avoid doing that.
1787   if test -f "$cache_file"; then
1788     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1789 echo "$as_me: loading cache $cache_file" >&6;}
1790     case $cache_file in
1791       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1792       *)                      . "./$cache_file";;
1793     esac
1794   fi
1795 else
1796   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1797 echo "$as_me: creating cache $cache_file" >&6;}
1798   >$cache_file
1799 fi
1800
1801 # Check that the precious variables saved in the cache have kept the same
1802 # value.
1803 ac_cache_corrupted=false
1804 for ac_var in $ac_precious_vars; do
1805   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1806   eval ac_new_set=\$ac_env_${ac_var}_set
1807   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1808   eval ac_new_val=\$ac_env_${ac_var}_value
1809   case $ac_old_set,$ac_new_set in
1810     set,)
1811       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1812 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1813       ac_cache_corrupted=: ;;
1814     ,set)
1815       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1816 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1817       ac_cache_corrupted=: ;;
1818     ,);;
1819     *)
1820       if test "x$ac_old_val" != "x$ac_new_val"; then
1821         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1822 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1823         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1824 echo "$as_me:   former value:  $ac_old_val" >&2;}
1825         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1826 echo "$as_me:   current value: $ac_new_val" >&2;}
1827         ac_cache_corrupted=:
1828       fi;;
1829   esac
1830   # Pass precious variables to config.status.
1831   if test "$ac_new_set" = set; then
1832     case $ac_new_val in
1833     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1834     *) ac_arg=$ac_var=$ac_new_val ;;
1835     esac
1836     case " $ac_configure_args " in
1837       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1838       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1839     esac
1840   fi
1841 done
1842 if $ac_cache_corrupted; then
1843   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1844 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1845   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1846 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1847    { (exit 1); exit 1; }; }
1848 fi
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874 ac_ext=c
1875 ac_cpp='$CPP $CPPFLAGS'
1876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1879
1880
1881
1882 LLVM_SRC_ROOT="../.."
1883 LLVM_OBJ_ROOT="../.."
1884
1885 LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1886 LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
1887
1888
1889 # Check whether --with-llvmsrc was given.
1890 if test "${with_llvmsrc+set}" = set; then
1891   withval=$with_llvmsrc; llvm_src="$withval"
1892 else
1893   llvm_src="$LLVM_ABS_SRC_ROOT"
1894 fi
1895
1896   LLVM_SRC=$llvm_src
1897
1898
1899 # Check whether --with-llvmobj was given.
1900 if test "${with_llvmobj+set}" = set; then
1901   withval=$with_llvmobj; llvm_obj="$withval"
1902 else
1903   llvm_obj="$LLVM_ABS_OBJ_ROOT"
1904 fi
1905
1906   LLVM_OBJ=$llvm_obj
1907
1908   ac_config_commands="$ac_config_commands setup"
1909
1910
1911
1912 { echo "$as_me:$LINENO: checking llvm-config" >&5
1913 echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1914 llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1915 if ! test -f "$llvm_config_path" ; then
1916    llvm_config_path="no"
1917 fi
1918 { echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1919 echo "${ECHO_T}$llvm_config_path" >&6; }
1920
1921 { echo "$as_me:$LINENO: checking LLVM package version" >&5
1922 echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1923 if test "$llvm_config_path" != no ; then
1924   llvm_package_version=`$llvm_config_path --version`
1925 else
1926   llvm_package_version="unknown";
1927 fi
1928 { echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1929 echo "${ECHO_T}$llvm_package_version" >&6; }
1930 LLVM_VERSION=$llvm_package_version
1931
1932
1933
1934
1935 ac_aux_dir=
1936 for ac_dir in autoconf "$srcdir"/autoconf; do
1937   if test -f "$ac_dir/install-sh"; then
1938     ac_aux_dir=$ac_dir
1939     ac_install_sh="$ac_aux_dir/install-sh -c"
1940     break
1941   elif test -f "$ac_dir/install.sh"; then
1942     ac_aux_dir=$ac_dir
1943     ac_install_sh="$ac_aux_dir/install.sh -c"
1944     break
1945   elif test -f "$ac_dir/shtool"; then
1946     ac_aux_dir=$ac_dir
1947     ac_install_sh="$ac_aux_dir/shtool install -c"
1948     break
1949   fi
1950 done
1951 if test -z "$ac_aux_dir"; then
1952   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1953 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1954    { (exit 1); exit 1; }; }
1955 fi
1956
1957 # These three variables are undocumented and unsupported,
1958 # and are intended to be withdrawn in a future Autoconf release.
1959 # They can cause serious problems if a builder's source tree is in a directory
1960 # whose full name contains unusual characters.
1961 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1962 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1963 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1964
1965
1966
1967
1968 ac_ext=c
1969 ac_cpp='$CPP $CPPFLAGS'
1970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1973 if test -n "$ac_tool_prefix"; then
1974   for ac_prog in clang llvm-gcc gcc
1975   do
1976     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1977 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1980 if test "${ac_cv_prog_CC+set}" = set; then
1981   echo $ECHO_N "(cached) $ECHO_C" >&6
1982 else
1983   if test -n "$CC"; then
1984   ac_cv_prog_CC="$CC" # Let the user override the test.
1985 else
1986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987 for as_dir in $PATH
1988 do
1989   IFS=$as_save_IFS
1990   test -z "$as_dir" && as_dir=.
1991   for ac_exec_ext in '' $ac_executable_extensions; do
1992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1993     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1994     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1995     break 2
1996   fi
1997 done
1998 done
1999 IFS=$as_save_IFS
2000
2001 fi
2002 fi
2003 CC=$ac_cv_prog_CC
2004 if test -n "$CC"; then
2005   { echo "$as_me:$LINENO: result: $CC" >&5
2006 echo "${ECHO_T}$CC" >&6; }
2007 else
2008   { echo "$as_me:$LINENO: result: no" >&5
2009 echo "${ECHO_T}no" >&6; }
2010 fi
2011
2012
2013     test -n "$CC" && break
2014   done
2015 fi
2016 if test -z "$CC"; then
2017   ac_ct_CC=$CC
2018   for ac_prog in clang llvm-gcc gcc
2019 do
2020   # Extract the first word of "$ac_prog", so it can be a program name with args.
2021 set dummy $ac_prog; ac_word=$2
2022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2024 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2025   echo $ECHO_N "(cached) $ECHO_C" >&6
2026 else
2027   if test -n "$ac_ct_CC"; then
2028   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2029 else
2030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031 for as_dir in $PATH
2032 do
2033   IFS=$as_save_IFS
2034   test -z "$as_dir" && as_dir=.
2035   for ac_exec_ext in '' $ac_executable_extensions; do
2036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2037     ac_cv_prog_ac_ct_CC="$ac_prog"
2038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039     break 2
2040   fi
2041 done
2042 done
2043 IFS=$as_save_IFS
2044
2045 fi
2046 fi
2047 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2048 if test -n "$ac_ct_CC"; then
2049   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2050 echo "${ECHO_T}$ac_ct_CC" >&6; }
2051 else
2052   { echo "$as_me:$LINENO: result: no" >&5
2053 echo "${ECHO_T}no" >&6; }
2054 fi
2055
2056
2057   test -n "$ac_ct_CC" && break
2058 done
2059
2060   if test "x$ac_ct_CC" = x; then
2061     CC=""
2062   else
2063     case $cross_compiling:$ac_tool_warned in
2064 yes:)
2065 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2066 whose name does not start with the host triplet.  If you think this
2067 configuration is useful to you, please write to autoconf@gnu.org." >&5
2068 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2069 whose name does not start with the host triplet.  If you think this
2070 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2071 ac_tool_warned=yes ;;
2072 esac
2073     CC=$ac_ct_CC
2074   fi
2075 fi
2076
2077
2078 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2079 See \`config.log' for more details." >&5
2080 echo "$as_me: error: no acceptable C compiler found in \$PATH
2081 See \`config.log' for more details." >&2;}
2082    { (exit 1); exit 1; }; }
2083
2084 # Provide some information about the compiler.
2085 echo "$as_me:$LINENO: checking for C compiler version" >&5
2086 ac_compiler=`set X $ac_compile; echo $2`
2087 { (ac_try="$ac_compiler --version >&5"
2088 case "(($ac_try" in
2089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2090   *) ac_try_echo=$ac_try;;
2091 esac
2092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2093   (eval "$ac_compiler --version >&5") 2>&5
2094   ac_status=$?
2095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096   (exit $ac_status); }
2097 { (ac_try="$ac_compiler -v >&5"
2098 case "(($ac_try" in
2099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2100   *) ac_try_echo=$ac_try;;
2101 esac
2102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2103   (eval "$ac_compiler -v >&5") 2>&5
2104   ac_status=$?
2105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106   (exit $ac_status); }
2107 { (ac_try="$ac_compiler -V >&5"
2108 case "(($ac_try" in
2109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2110   *) ac_try_echo=$ac_try;;
2111 esac
2112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2113   (eval "$ac_compiler -V >&5") 2>&5
2114   ac_status=$?
2115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116   (exit $ac_status); }
2117
2118 cat >conftest.$ac_ext <<_ACEOF
2119 /* confdefs.h.  */
2120 _ACEOF
2121 cat confdefs.h >>conftest.$ac_ext
2122 cat >>conftest.$ac_ext <<_ACEOF
2123 /* end confdefs.h.  */
2124
2125 int
2126 main ()
2127 {
2128
2129   ;
2130   return 0;
2131 }
2132 _ACEOF
2133 ac_clean_files_save=$ac_clean_files
2134 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2135 # Try to create an executable without -o first, disregard a.out.
2136 # It will help us diagnose broken compilers, and finding out an intuition
2137 # of exeext.
2138 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2139 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2140 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2141 #
2142 # List of possible output files, starting from the most likely.
2143 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2144 # only as a last resort.  b.out is created by i960 compilers.
2145 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2146 #
2147 # The IRIX 6 linker writes into existing files which may not be
2148 # executable, retaining their permissions.  Remove them first so a
2149 # subsequent execution test works.
2150 ac_rmfiles=
2151 for ac_file in $ac_files
2152 do
2153   case $ac_file in
2154     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2155     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2156   esac
2157 done
2158 rm -f $ac_rmfiles
2159
2160 if { (ac_try="$ac_link_default"
2161 case "(($ac_try" in
2162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2163   *) ac_try_echo=$ac_try;;
2164 esac
2165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2166   (eval "$ac_link_default") 2>&5
2167   ac_status=$?
2168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169   (exit $ac_status); }; then
2170   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2171 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2172 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2173 # so that the user can short-circuit this test for compilers unknown to
2174 # Autoconf.
2175 for ac_file in $ac_files
2176 do
2177   test -f "$ac_file" || continue
2178   case $ac_file in
2179     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2180         ;;
2181     [ab].out )
2182         # We found the default executable, but exeext='' is most
2183         # certainly right.
2184         break;;
2185     *.* )
2186         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2187         then :; else
2188            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2189         fi
2190         # We set ac_cv_exeext here because the later test for it is not
2191         # safe: cross compilers may not add the suffix if given an `-o'
2192         # argument, so we may need to know it at that point already.
2193         # Even if this section looks crufty: it has the advantage of
2194         # actually working.
2195         break;;
2196     * )
2197         break;;
2198   esac
2199 done
2200 test "$ac_cv_exeext" = no && ac_cv_exeext=
2201
2202 else
2203   echo "$as_me: failed program was:" >&5
2204 sed 's/^/| /' conftest.$ac_ext >&5
2205
2206 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2207 See \`config.log' for more details." >&5
2208 echo "$as_me: error: C compiler cannot create executables
2209 See \`config.log' for more details." >&2;}
2210    { (exit 77); exit 77; }; }
2211 fi
2212
2213 ac_exeext=$ac_cv_exeext
2214 { echo "$as_me:$LINENO: result: $ac_file" >&5
2215 echo "${ECHO_T}$ac_file" >&6; }
2216
2217 # Check that the compiler produces executables we can run.  If not, either
2218 # the compiler is broken, or we cross compile.
2219 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2220 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2221 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2222 # If not cross compiling, check that we can run a simple program.
2223 if test "$cross_compiling" != yes; then
2224   if { ac_try='./$ac_file'
2225   { (case "(($ac_try" in
2226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2227   *) ac_try_echo=$ac_try;;
2228 esac
2229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2230   (eval "$ac_try") 2>&5
2231   ac_status=$?
2232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233   (exit $ac_status); }; }; then
2234     cross_compiling=no
2235   else
2236     if test "$cross_compiling" = maybe; then
2237         cross_compiling=yes
2238     else
2239         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2240 If you meant to cross compile, use \`--host'.
2241 See \`config.log' for more details." >&5
2242 echo "$as_me: error: cannot run C compiled programs.
2243 If you meant to cross compile, use \`--host'.
2244 See \`config.log' for more details." >&2;}
2245    { (exit 1); exit 1; }; }
2246     fi
2247   fi
2248 fi
2249 { echo "$as_me:$LINENO: result: yes" >&5
2250 echo "${ECHO_T}yes" >&6; }
2251
2252 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2253 ac_clean_files=$ac_clean_files_save
2254 # Check that the compiler produces executables we can run.  If not, either
2255 # the compiler is broken, or we cross compile.
2256 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2257 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2258 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2259 echo "${ECHO_T}$cross_compiling" >&6; }
2260
2261 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2262 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2263 if { (ac_try="$ac_link"
2264 case "(($ac_try" in
2265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2266   *) ac_try_echo=$ac_try;;
2267 esac
2268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2269   (eval "$ac_link") 2>&5
2270   ac_status=$?
2271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272   (exit $ac_status); }; then
2273   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2274 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2275 # work properly (i.e., refer to `conftest.exe'), while it won't with
2276 # `rm'.
2277 for ac_file in conftest.exe conftest conftest.*; do
2278   test -f "$ac_file" || continue
2279   case $ac_file in
2280     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2281     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2282           break;;
2283     * ) break;;
2284   esac
2285 done
2286 else
2287   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2288 See \`config.log' for more details." >&5
2289 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2290 See \`config.log' for more details." >&2;}
2291    { (exit 1); exit 1; }; }
2292 fi
2293
2294 rm -f conftest$ac_cv_exeext
2295 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2296 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2297
2298 rm -f conftest.$ac_ext
2299 EXEEXT=$ac_cv_exeext
2300 ac_exeext=$EXEEXT
2301 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2302 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2303 if test "${ac_cv_objext+set}" = set; then
2304   echo $ECHO_N "(cached) $ECHO_C" >&6
2305 else
2306   cat >conftest.$ac_ext <<_ACEOF
2307 /* confdefs.h.  */
2308 _ACEOF
2309 cat confdefs.h >>conftest.$ac_ext
2310 cat >>conftest.$ac_ext <<_ACEOF
2311 /* end confdefs.h.  */
2312
2313 int
2314 main ()
2315 {
2316
2317   ;
2318   return 0;
2319 }
2320 _ACEOF
2321 rm -f conftest.o conftest.obj
2322 if { (ac_try="$ac_compile"
2323 case "(($ac_try" in
2324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2325   *) ac_try_echo=$ac_try;;
2326 esac
2327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2328   (eval "$ac_compile") 2>&5
2329   ac_status=$?
2330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331   (exit $ac_status); }; then
2332   for ac_file in conftest.o conftest.obj conftest.*; do
2333   test -f "$ac_file" || continue;
2334   case $ac_file in
2335     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2336     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2337        break;;
2338   esac
2339 done
2340 else
2341   echo "$as_me: failed program was:" >&5
2342 sed 's/^/| /' conftest.$ac_ext >&5
2343
2344 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2345 See \`config.log' for more details." >&5
2346 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2347 See \`config.log' for more details." >&2;}
2348    { (exit 1); exit 1; }; }
2349 fi
2350
2351 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2352 fi
2353 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2354 echo "${ECHO_T}$ac_cv_objext" >&6; }
2355 OBJEXT=$ac_cv_objext
2356 ac_objext=$OBJEXT
2357 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2358 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2359 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2360   echo $ECHO_N "(cached) $ECHO_C" >&6
2361 else
2362   cat >conftest.$ac_ext <<_ACEOF
2363 /* confdefs.h.  */
2364 _ACEOF
2365 cat confdefs.h >>conftest.$ac_ext
2366 cat >>conftest.$ac_ext <<_ACEOF
2367 /* end confdefs.h.  */
2368
2369 int
2370 main ()
2371 {
2372 #ifndef __GNUC__
2373        choke me
2374 #endif
2375
2376   ;
2377   return 0;
2378 }
2379 _ACEOF
2380 rm -f conftest.$ac_objext
2381 if { (ac_try="$ac_compile"
2382 case "(($ac_try" in
2383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2384   *) ac_try_echo=$ac_try;;
2385 esac
2386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2387   (eval "$ac_compile") 2>conftest.er1
2388   ac_status=$?
2389   grep -v '^ *+' conftest.er1 >conftest.err
2390   rm -f conftest.er1
2391   cat conftest.err >&5
2392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393   (exit $ac_status); } &&
2394          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2395   { (case "(($ac_try" in
2396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2397   *) ac_try_echo=$ac_try;;
2398 esac
2399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2400   (eval "$ac_try") 2>&5
2401   ac_status=$?
2402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403   (exit $ac_status); }; } &&
2404          { ac_try='test -s conftest.$ac_objext'
2405   { (case "(($ac_try" in
2406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2407   *) ac_try_echo=$ac_try;;
2408 esac
2409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2410   (eval "$ac_try") 2>&5
2411   ac_status=$?
2412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413   (exit $ac_status); }; }; then
2414   ac_compiler_gnu=yes
2415 else
2416   echo "$as_me: failed program was:" >&5
2417 sed 's/^/| /' conftest.$ac_ext >&5
2418
2419         ac_compiler_gnu=no
2420 fi
2421
2422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2423 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2424
2425 fi
2426 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2427 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2428 GCC=`test $ac_compiler_gnu = yes && echo yes`
2429 ac_test_CFLAGS=${CFLAGS+set}
2430 ac_save_CFLAGS=$CFLAGS
2431 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2432 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2433 if test "${ac_cv_prog_cc_g+set}" = set; then
2434   echo $ECHO_N "(cached) $ECHO_C" >&6
2435 else
2436   ac_save_c_werror_flag=$ac_c_werror_flag
2437    ac_c_werror_flag=yes
2438    ac_cv_prog_cc_g=no
2439    CFLAGS="-g"
2440    cat >conftest.$ac_ext <<_ACEOF
2441 /* confdefs.h.  */
2442 _ACEOF
2443 cat confdefs.h >>conftest.$ac_ext
2444 cat >>conftest.$ac_ext <<_ACEOF
2445 /* end confdefs.h.  */
2446
2447 int
2448 main ()
2449 {
2450
2451   ;
2452   return 0;
2453 }
2454 _ACEOF
2455 rm -f conftest.$ac_objext
2456 if { (ac_try="$ac_compile"
2457 case "(($ac_try" in
2458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2459   *) ac_try_echo=$ac_try;;
2460 esac
2461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2462   (eval "$ac_compile") 2>conftest.er1
2463   ac_status=$?
2464   grep -v '^ *+' conftest.er1 >conftest.err
2465   rm -f conftest.er1
2466   cat conftest.err >&5
2467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468   (exit $ac_status); } &&
2469          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2470   { (case "(($ac_try" in
2471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2472   *) ac_try_echo=$ac_try;;
2473 esac
2474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2475   (eval "$ac_try") 2>&5
2476   ac_status=$?
2477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478   (exit $ac_status); }; } &&
2479          { ac_try='test -s conftest.$ac_objext'
2480   { (case "(($ac_try" in
2481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2482   *) ac_try_echo=$ac_try;;
2483 esac
2484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2485   (eval "$ac_try") 2>&5
2486   ac_status=$?
2487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488   (exit $ac_status); }; }; then
2489   ac_cv_prog_cc_g=yes
2490 else
2491   echo "$as_me: failed program was:" >&5
2492 sed 's/^/| /' conftest.$ac_ext >&5
2493
2494         CFLAGS=""
2495       cat >conftest.$ac_ext <<_ACEOF
2496 /* confdefs.h.  */
2497 _ACEOF
2498 cat confdefs.h >>conftest.$ac_ext
2499 cat >>conftest.$ac_ext <<_ACEOF
2500 /* end confdefs.h.  */
2501
2502 int
2503 main ()
2504 {
2505
2506   ;
2507   return 0;
2508 }
2509 _ACEOF
2510 rm -f conftest.$ac_objext
2511 if { (ac_try="$ac_compile"
2512 case "(($ac_try" in
2513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514   *) ac_try_echo=$ac_try;;
2515 esac
2516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2517   (eval "$ac_compile") 2>conftest.er1
2518   ac_status=$?
2519   grep -v '^ *+' conftest.er1 >conftest.err
2520   rm -f conftest.er1
2521   cat conftest.err >&5
2522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523   (exit $ac_status); } &&
2524          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2525   { (case "(($ac_try" in
2526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527   *) ac_try_echo=$ac_try;;
2528 esac
2529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530   (eval "$ac_try") 2>&5
2531   ac_status=$?
2532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533   (exit $ac_status); }; } &&
2534          { ac_try='test -s conftest.$ac_objext'
2535   { (case "(($ac_try" in
2536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2537   *) ac_try_echo=$ac_try;;
2538 esac
2539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2540   (eval "$ac_try") 2>&5
2541   ac_status=$?
2542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543   (exit $ac_status); }; }; then
2544   :
2545 else
2546   echo "$as_me: failed program was:" >&5
2547 sed 's/^/| /' conftest.$ac_ext >&5
2548
2549         ac_c_werror_flag=$ac_save_c_werror_flag
2550          CFLAGS="-g"
2551          cat >conftest.$ac_ext <<_ACEOF
2552 /* confdefs.h.  */
2553 _ACEOF
2554 cat confdefs.h >>conftest.$ac_ext
2555 cat >>conftest.$ac_ext <<_ACEOF
2556 /* end confdefs.h.  */
2557
2558 int
2559 main ()
2560 {
2561
2562   ;
2563   return 0;
2564 }
2565 _ACEOF
2566 rm -f conftest.$ac_objext
2567 if { (ac_try="$ac_compile"
2568 case "(($ac_try" in
2569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2570   *) ac_try_echo=$ac_try;;
2571 esac
2572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2573   (eval "$ac_compile") 2>conftest.er1
2574   ac_status=$?
2575   grep -v '^ *+' conftest.er1 >conftest.err
2576   rm -f conftest.er1
2577   cat conftest.err >&5
2578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579   (exit $ac_status); } &&
2580          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2581   { (case "(($ac_try" in
2582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583   *) ac_try_echo=$ac_try;;
2584 esac
2585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2586   (eval "$ac_try") 2>&5
2587   ac_status=$?
2588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589   (exit $ac_status); }; } &&
2590          { ac_try='test -s conftest.$ac_objext'
2591   { (case "(($ac_try" in
2592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2593   *) ac_try_echo=$ac_try;;
2594 esac
2595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2596   (eval "$ac_try") 2>&5
2597   ac_status=$?
2598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599   (exit $ac_status); }; }; then
2600   ac_cv_prog_cc_g=yes
2601 else
2602   echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2604
2605
2606 fi
2607
2608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609 fi
2610
2611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2612 fi
2613
2614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2615    ac_c_werror_flag=$ac_save_c_werror_flag
2616 fi
2617 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2618 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2619 if test "$ac_test_CFLAGS" = set; then
2620   CFLAGS=$ac_save_CFLAGS
2621 elif test $ac_cv_prog_cc_g = yes; then
2622   if test "$GCC" = yes; then
2623     CFLAGS="-g -O2"
2624   else
2625     CFLAGS="-g"
2626   fi
2627 else
2628   if test "$GCC" = yes; then
2629     CFLAGS="-O2"
2630   else
2631     CFLAGS=
2632   fi
2633 fi
2634 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2635 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2636 if test "${ac_cv_prog_cc_c89+set}" = set; then
2637   echo $ECHO_N "(cached) $ECHO_C" >&6
2638 else
2639   ac_cv_prog_cc_c89=no
2640 ac_save_CC=$CC
2641 cat >conftest.$ac_ext <<_ACEOF
2642 /* confdefs.h.  */
2643 _ACEOF
2644 cat confdefs.h >>conftest.$ac_ext
2645 cat >>conftest.$ac_ext <<_ACEOF
2646 /* end confdefs.h.  */
2647 #include <stdarg.h>
2648 #include <stdio.h>
2649 #include <sys/types.h>
2650 #include <sys/stat.h>
2651 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2652 struct buf { int x; };
2653 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2654 static char *e (p, i)
2655      char **p;
2656      int i;
2657 {
2658   return p[i];
2659 }
2660 static char *f (char * (*g) (char **, int), char **p, ...)
2661 {
2662   char *s;
2663   va_list v;
2664   va_start (v,p);
2665   s = g (p, va_arg (v,int));
2666   va_end (v);
2667   return s;
2668 }
2669
2670 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2671    function prototypes and stuff, but not '\xHH' hex character constants.
2672    These don't provoke an error unfortunately, instead are silently treated
2673    as 'x'.  The following induces an error, until -std is added to get
2674    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2675    array size at least.  It's necessary to write '\x00'==0 to get something
2676    that's true only with -std.  */
2677 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2678
2679 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2680    inside strings and character constants.  */
2681 #define FOO(x) 'x'
2682 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2683
2684 int test (int i, double x);
2685 struct s1 {int (*f) (int a);};
2686 struct s2 {int (*f) (double a);};
2687 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2688 int argc;
2689 char **argv;
2690 int
2691 main ()
2692 {
2693 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2694   ;
2695   return 0;
2696 }
2697 _ACEOF
2698 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2699         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2700 do
2701   CC="$ac_save_CC $ac_arg"
2702   rm -f conftest.$ac_objext
2703 if { (ac_try="$ac_compile"
2704 case "(($ac_try" in
2705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706   *) ac_try_echo=$ac_try;;
2707 esac
2708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2709   (eval "$ac_compile") 2>conftest.er1
2710   ac_status=$?
2711   grep -v '^ *+' conftest.er1 >conftest.err
2712   rm -f conftest.er1
2713   cat conftest.err >&5
2714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715   (exit $ac_status); } &&
2716          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2717   { (case "(($ac_try" in
2718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719   *) ac_try_echo=$ac_try;;
2720 esac
2721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2722   (eval "$ac_try") 2>&5
2723   ac_status=$?
2724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725   (exit $ac_status); }; } &&
2726          { ac_try='test -s conftest.$ac_objext'
2727   { (case "(($ac_try" in
2728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2729   *) ac_try_echo=$ac_try;;
2730 esac
2731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2732   (eval "$ac_try") 2>&5
2733   ac_status=$?
2734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735   (exit $ac_status); }; }; then
2736   ac_cv_prog_cc_c89=$ac_arg
2737 else
2738   echo "$as_me: failed program was:" >&5
2739 sed 's/^/| /' conftest.$ac_ext >&5
2740
2741
2742 fi
2743
2744 rm -f core conftest.err conftest.$ac_objext
2745   test "x$ac_cv_prog_cc_c89" != "xno" && break
2746 done
2747 rm -f conftest.$ac_ext
2748 CC=$ac_save_CC
2749
2750 fi
2751 # AC_CACHE_VAL
2752 case "x$ac_cv_prog_cc_c89" in
2753   x)
2754     { echo "$as_me:$LINENO: result: none needed" >&5
2755 echo "${ECHO_T}none needed" >&6; } ;;
2756   xno)
2757     { echo "$as_me:$LINENO: result: unsupported" >&5
2758 echo "${ECHO_T}unsupported" >&6; } ;;
2759   *)
2760     CC="$CC $ac_cv_prog_cc_c89"
2761     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2762 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2763 esac
2764
2765
2766 ac_ext=c
2767 ac_cpp='$CPP $CPPFLAGS'
2768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2771
2772 ac_ext=cpp
2773 ac_cpp='$CXXCPP $CPPFLAGS'
2774 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2775 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2776 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2777 if test -z "$CXX"; then
2778   if test -n "$CCC"; then
2779     CXX=$CCC
2780   else
2781     if test -n "$ac_tool_prefix"; then
2782   for ac_prog in clang++ llvm-g++ g++
2783   do
2784     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2785 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2788 if test "${ac_cv_prog_CXX+set}" = set; then
2789   echo $ECHO_N "(cached) $ECHO_C" >&6
2790 else
2791   if test -n "$CXX"; then
2792   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2793 else
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 for as_dir in $PATH
2796 do
2797   IFS=$as_save_IFS
2798   test -z "$as_dir" && as_dir=.
2799   for ac_exec_ext in '' $ac_executable_extensions; do
2800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2801     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2803     break 2
2804   fi
2805 done
2806 done
2807 IFS=$as_save_IFS
2808
2809 fi
2810 fi
2811 CXX=$ac_cv_prog_CXX
2812 if test -n "$CXX"; then
2813   { echo "$as_me:$LINENO: result: $CXX" >&5
2814 echo "${ECHO_T}$CXX" >&6; }
2815 else
2816   { echo "$as_me:$LINENO: result: no" >&5
2817 echo "${ECHO_T}no" >&6; }
2818 fi
2819
2820
2821     test -n "$CXX" && break
2822   done
2823 fi
2824 if test -z "$CXX"; then
2825   ac_ct_CXX=$CXX
2826   for ac_prog in clang++ llvm-g++ g++
2827 do
2828   # Extract the first word of "$ac_prog", so it can be a program name with args.
2829 set dummy $ac_prog; ac_word=$2
2830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2832 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2833   echo $ECHO_N "(cached) $ECHO_C" >&6
2834 else
2835   if test -n "$ac_ct_CXX"; then
2836   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2837 else
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839 for as_dir in $PATH
2840 do
2841   IFS=$as_save_IFS
2842   test -z "$as_dir" && as_dir=.
2843   for ac_exec_ext in '' $ac_executable_extensions; do
2844   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2845     ac_cv_prog_ac_ct_CXX="$ac_prog"
2846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2847     break 2
2848   fi
2849 done
2850 done
2851 IFS=$as_save_IFS
2852
2853 fi
2854 fi
2855 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2856 if test -n "$ac_ct_CXX"; then
2857   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2858 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2859 else
2860   { echo "$as_me:$LINENO: result: no" >&5
2861 echo "${ECHO_T}no" >&6; }
2862 fi
2863
2864
2865   test -n "$ac_ct_CXX" && break
2866 done
2867
2868   if test "x$ac_ct_CXX" = x; then
2869     CXX="g++"
2870   else
2871     case $cross_compiling:$ac_tool_warned in
2872 yes:)
2873 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2874 whose name does not start with the host triplet.  If you think this
2875 configuration is useful to you, please write to autoconf@gnu.org." >&5
2876 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2877 whose name does not start with the host triplet.  If you think this
2878 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2879 ac_tool_warned=yes ;;
2880 esac
2881     CXX=$ac_ct_CXX
2882   fi
2883 fi
2884
2885   fi
2886 fi
2887 # Provide some information about the compiler.
2888 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2889 ac_compiler=`set X $ac_compile; echo $2`
2890 { (ac_try="$ac_compiler --version >&5"
2891 case "(($ac_try" in
2892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893   *) ac_try_echo=$ac_try;;
2894 esac
2895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2896   (eval "$ac_compiler --version >&5") 2>&5
2897   ac_status=$?
2898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899   (exit $ac_status); }
2900 { (ac_try="$ac_compiler -v >&5"
2901 case "(($ac_try" in
2902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903   *) ac_try_echo=$ac_try;;
2904 esac
2905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2906   (eval "$ac_compiler -v >&5") 2>&5
2907   ac_status=$?
2908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909   (exit $ac_status); }
2910 { (ac_try="$ac_compiler -V >&5"
2911 case "(($ac_try" in
2912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913   *) ac_try_echo=$ac_try;;
2914 esac
2915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2916   (eval "$ac_compiler -V >&5") 2>&5
2917   ac_status=$?
2918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919   (exit $ac_status); }
2920
2921 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2922 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2923 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2924   echo $ECHO_N "(cached) $ECHO_C" >&6
2925 else
2926   cat >conftest.$ac_ext <<_ACEOF
2927 /* confdefs.h.  */
2928 _ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h.  */
2932
2933 int
2934 main ()
2935 {
2936 #ifndef __GNUC__
2937        choke me
2938 #endif
2939
2940   ;
2941   return 0;
2942 }
2943 _ACEOF
2944 rm -f conftest.$ac_objext
2945 if { (ac_try="$ac_compile"
2946 case "(($ac_try" in
2947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948   *) ac_try_echo=$ac_try;;
2949 esac
2950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2951   (eval "$ac_compile") 2>conftest.er1
2952   ac_status=$?
2953   grep -v '^ *+' conftest.er1 >conftest.err
2954   rm -f conftest.er1
2955   cat conftest.err >&5
2956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957   (exit $ac_status); } &&
2958          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2959   { (case "(($ac_try" in
2960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961   *) ac_try_echo=$ac_try;;
2962 esac
2963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2964   (eval "$ac_try") 2>&5
2965   ac_status=$?
2966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967   (exit $ac_status); }; } &&
2968          { ac_try='test -s conftest.$ac_objext'
2969   { (case "(($ac_try" in
2970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971   *) ac_try_echo=$ac_try;;
2972 esac
2973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974   (eval "$ac_try") 2>&5
2975   ac_status=$?
2976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977   (exit $ac_status); }; }; then
2978   ac_compiler_gnu=yes
2979 else
2980   echo "$as_me: failed program was:" >&5
2981 sed 's/^/| /' conftest.$ac_ext >&5
2982
2983         ac_compiler_gnu=no
2984 fi
2985
2986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2987 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2988
2989 fi
2990 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2991 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2992 GXX=`test $ac_compiler_gnu = yes && echo yes`
2993 ac_test_CXXFLAGS=${CXXFLAGS+set}
2994 ac_save_CXXFLAGS=$CXXFLAGS
2995 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2996 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2997 if test "${ac_cv_prog_cxx_g+set}" = set; then
2998   echo $ECHO_N "(cached) $ECHO_C" >&6
2999 else
3000   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3001    ac_cxx_werror_flag=yes
3002    ac_cv_prog_cxx_g=no
3003    CXXFLAGS="-g"
3004    cat >conftest.$ac_ext <<_ACEOF
3005 /* confdefs.h.  */
3006 _ACEOF
3007 cat confdefs.h >>conftest.$ac_ext
3008 cat >>conftest.$ac_ext <<_ACEOF
3009 /* end confdefs.h.  */
3010
3011 int
3012 main ()
3013 {
3014
3015   ;
3016   return 0;
3017 }
3018 _ACEOF
3019 rm -f conftest.$ac_objext
3020 if { (ac_try="$ac_compile"
3021 case "(($ac_try" in
3022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023   *) ac_try_echo=$ac_try;;
3024 esac
3025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3026   (eval "$ac_compile") 2>conftest.er1
3027   ac_status=$?
3028   grep -v '^ *+' conftest.er1 >conftest.err
3029   rm -f conftest.er1
3030   cat conftest.err >&5
3031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032   (exit $ac_status); } &&
3033          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3034   { (case "(($ac_try" in
3035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036   *) ac_try_echo=$ac_try;;
3037 esac
3038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3039   (eval "$ac_try") 2>&5
3040   ac_status=$?
3041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042   (exit $ac_status); }; } &&
3043          { ac_try='test -s conftest.$ac_objext'
3044   { (case "(($ac_try" in
3045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046   *) ac_try_echo=$ac_try;;
3047 esac
3048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049   (eval "$ac_try") 2>&5
3050   ac_status=$?
3051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052   (exit $ac_status); }; }; then
3053   ac_cv_prog_cxx_g=yes
3054 else
3055   echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.$ac_ext >&5
3057
3058         CXXFLAGS=""
3059       cat >conftest.$ac_ext <<_ACEOF
3060 /* confdefs.h.  */
3061 _ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h.  */
3065
3066 int
3067 main ()
3068 {
3069
3070   ;
3071   return 0;
3072 }
3073 _ACEOF
3074 rm -f conftest.$ac_objext
3075 if { (ac_try="$ac_compile"
3076 case "(($ac_try" in
3077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078   *) ac_try_echo=$ac_try;;
3079 esac
3080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081   (eval "$ac_compile") 2>conftest.er1
3082   ac_status=$?
3083   grep -v '^ *+' conftest.er1 >conftest.err
3084   rm -f conftest.er1
3085   cat conftest.err >&5
3086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087   (exit $ac_status); } &&
3088          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3089   { (case "(($ac_try" in
3090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091   *) ac_try_echo=$ac_try;;
3092 esac
3093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094   (eval "$ac_try") 2>&5
3095   ac_status=$?
3096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097   (exit $ac_status); }; } &&
3098          { ac_try='test -s conftest.$ac_objext'
3099   { (case "(($ac_try" in
3100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101   *) ac_try_echo=$ac_try;;
3102 esac
3103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104   (eval "$ac_try") 2>&5
3105   ac_status=$?
3106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107   (exit $ac_status); }; }; then
3108   :
3109 else
3110   echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3112
3113         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3114          CXXFLAGS="-g"
3115          cat >conftest.$ac_ext <<_ACEOF
3116 /* confdefs.h.  */
3117 _ACEOF
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h.  */
3121
3122 int
3123 main ()
3124 {
3125
3126   ;
3127   return 0;
3128 }
3129 _ACEOF
3130 rm -f conftest.$ac_objext
3131 if { (ac_try="$ac_compile"
3132 case "(($ac_try" in
3133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134   *) ac_try_echo=$ac_try;;
3135 esac
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137   (eval "$ac_compile") 2>conftest.er1
3138   ac_status=$?
3139   grep -v '^ *+' conftest.er1 >conftest.err
3140   rm -f conftest.er1
3141   cat conftest.err >&5
3142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143   (exit $ac_status); } &&
3144          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3145   { (case "(($ac_try" in
3146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147   *) ac_try_echo=$ac_try;;
3148 esac
3149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150   (eval "$ac_try") 2>&5
3151   ac_status=$?
3152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153   (exit $ac_status); }; } &&
3154          { ac_try='test -s conftest.$ac_objext'
3155   { (case "(($ac_try" in
3156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157   *) ac_try_echo=$ac_try;;
3158 esac
3159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3160   (eval "$ac_try") 2>&5
3161   ac_status=$?
3162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163   (exit $ac_status); }; }; then
3164   ac_cv_prog_cxx_g=yes
3165 else
3166   echo "$as_me: failed program was:" >&5
3167 sed 's/^/| /' conftest.$ac_ext >&5
3168
3169
3170 fi
3171
3172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3173 fi
3174
3175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3176 fi
3177
3178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3179    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3180 fi
3181 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3182 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3183 if test "$ac_test_CXXFLAGS" = set; then
3184   CXXFLAGS=$ac_save_CXXFLAGS
3185 elif test $ac_cv_prog_cxx_g = yes; then
3186   if test "$GXX" = yes; then
3187     CXXFLAGS="-g -O2"
3188   else
3189     CXXFLAGS="-g"
3190   fi
3191 else
3192   if test "$GXX" = yes; then
3193     CXXFLAGS="-O2"
3194   else
3195     CXXFLAGS=
3196   fi
3197 fi
3198 ac_ext=c
3199 ac_cpp='$CPP $CPPFLAGS'
3200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3203
3204 ac_ext=c
3205 ac_cpp='$CPP $CPPFLAGS'
3206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3209 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3210 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3211 # On Suns, sometimes $CPP names a directory.
3212 if test -n "$CPP" && test -d "$CPP"; then
3213   CPP=
3214 fi
3215 if test -z "$CPP"; then
3216   if test "${ac_cv_prog_CPP+set}" = set; then
3217   echo $ECHO_N "(cached) $ECHO_C" >&6
3218 else
3219       # Double quotes because CPP needs to be expanded
3220     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3221     do
3222       ac_preproc_ok=false
3223 for ac_c_preproc_warn_flag in '' yes
3224 do
3225   # Use a header file that comes with gcc, so configuring glibc
3226   # with a fresh cross-compiler works.
3227   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3228   # <limits.h> exists even on freestanding compilers.
3229   # On the NeXT, cc -E runs the code through the compiler's parser,
3230   # not just through cpp. "Syntax error" is here to catch this case.
3231   cat >conftest.$ac_ext <<_ACEOF
3232 /* confdefs.h.  */
3233 _ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h.  */
3237 #ifdef __STDC__
3238 # include <limits.h>
3239 #else
3240 # include <assert.h>
3241 #endif
3242                      Syntax error
3243 _ACEOF
3244 if { (ac_try="$ac_cpp conftest.$ac_ext"
3245 case "(($ac_try" in
3246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247   *) ac_try_echo=$ac_try;;
3248 esac
3249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3250   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3251   ac_status=$?
3252   grep -v '^ *+' conftest.er1 >conftest.err
3253   rm -f conftest.er1
3254   cat conftest.err >&5
3255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256   (exit $ac_status); } >/dev/null; then
3257   if test -s conftest.err; then
3258     ac_cpp_err=$ac_c_preproc_warn_flag
3259     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3260   else
3261     ac_cpp_err=
3262   fi
3263 else
3264   ac_cpp_err=yes
3265 fi
3266 if test -z "$ac_cpp_err"; then
3267   :
3268 else
3269   echo "$as_me: failed program was:" >&5
3270 sed 's/^/| /' conftest.$ac_ext >&5
3271
3272   # Broken: fails on valid input.
3273 continue
3274 fi
3275
3276 rm -f conftest.err conftest.$ac_ext
3277
3278   # OK, works on sane cases.  Now check whether nonexistent headers
3279   # can be detected and how.
3280   cat >conftest.$ac_ext <<_ACEOF
3281 /* confdefs.h.  */
3282 _ACEOF
3283 cat confdefs.h >>conftest.$ac_ext
3284 cat >>conftest.$ac_ext <<_ACEOF
3285 /* end confdefs.h.  */
3286 #include <ac_nonexistent.h>
3287 _ACEOF
3288 if { (ac_try="$ac_cpp conftest.$ac_ext"
3289 case "(($ac_try" in
3290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291   *) ac_try_echo=$ac_try;;
3292 esac
3293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3294   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3295   ac_status=$?
3296   grep -v '^ *+' conftest.er1 >conftest.err
3297   rm -f conftest.er1
3298   cat conftest.err >&5
3299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300   (exit $ac_status); } >/dev/null; then
3301   if test -s conftest.err; then
3302     ac_cpp_err=$ac_c_preproc_warn_flag
3303     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3304   else
3305     ac_cpp_err=
3306   fi
3307 else
3308   ac_cpp_err=yes
3309 fi
3310 if test -z "$ac_cpp_err"; then
3311   # Broken: success on invalid input.
3312 continue
3313 else
3314   echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.$ac_ext >&5
3316
3317   # Passes both tests.
3318 ac_preproc_ok=:
3319 break
3320 fi
3321
3322 rm -f conftest.err conftest.$ac_ext
3323
3324 done
3325 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3326 rm -f conftest.err conftest.$ac_ext
3327 if $ac_preproc_ok; then
3328   break
3329 fi
3330
3331     done
3332     ac_cv_prog_CPP=$CPP
3333
3334 fi
3335   CPP=$ac_cv_prog_CPP
3336 else
3337   ac_cv_prog_CPP=$CPP
3338 fi
3339 { echo "$as_me:$LINENO: result: $CPP" >&5
3340 echo "${ECHO_T}$CPP" >&6; }
3341 ac_preproc_ok=false
3342 for ac_c_preproc_warn_flag in '' yes
3343 do
3344   # Use a header file that comes with gcc, so configuring glibc
3345   # with a fresh cross-compiler works.
3346   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3347   # <limits.h> exists even on freestanding compilers.
3348   # On the NeXT, cc -E runs the code through the compiler's parser,
3349   # not just through cpp. "Syntax error" is here to catch this case.
3350   cat >conftest.$ac_ext <<_ACEOF
3351 /* confdefs.h.  */
3352 _ACEOF
3353 cat confdefs.h >>conftest.$ac_ext
3354 cat >>conftest.$ac_ext <<_ACEOF
3355 /* end confdefs.h.  */
3356 #ifdef __STDC__
3357 # include <limits.h>
3358 #else
3359 # include <assert.h>
3360 #endif
3361                      Syntax error
3362 _ACEOF
3363 if { (ac_try="$ac_cpp conftest.$ac_ext"
3364 case "(($ac_try" in
3365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366   *) ac_try_echo=$ac_try;;
3367 esac
3368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3369   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3370   ac_status=$?
3371   grep -v '^ *+' conftest.er1 >conftest.err
3372   rm -f conftest.er1
3373   cat conftest.err >&5
3374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375   (exit $ac_status); } >/dev/null; then
3376   if test -s conftest.err; then
3377     ac_cpp_err=$ac_c_preproc_warn_flag
3378     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3379   else
3380     ac_cpp_err=
3381   fi
3382 else
3383   ac_cpp_err=yes
3384 fi
3385 if test -z "$ac_cpp_err"; then
3386   :
3387 else
3388   echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3390
3391   # Broken: fails on valid input.
3392 continue
3393 fi
3394
3395 rm -f conftest.err conftest.$ac_ext
3396
3397   # OK, works on sane cases.  Now check whether nonexistent headers
3398   # can be detected and how.
3399   cat >conftest.$ac_ext <<_ACEOF
3400 /* confdefs.h.  */
3401 _ACEOF
3402 cat confdefs.h >>conftest.$ac_ext
3403 cat >>conftest.$ac_ext <<_ACEOF
3404 /* end confdefs.h.  */
3405 #include <ac_nonexistent.h>
3406 _ACEOF
3407 if { (ac_try="$ac_cpp conftest.$ac_ext"
3408 case "(($ac_try" in
3409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410   *) ac_try_echo=$ac_try;;
3411 esac
3412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3413   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3414   ac_status=$?
3415   grep -v '^ *+' conftest.er1 >conftest.err
3416   rm -f conftest.er1
3417   cat conftest.err >&5
3418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419   (exit $ac_status); } >/dev/null; then
3420   if test -s conftest.err; then
3421     ac_cpp_err=$ac_c_preproc_warn_flag
3422     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3423   else
3424     ac_cpp_err=
3425   fi
3426 else
3427   ac_cpp_err=yes
3428 fi
3429 if test -z "$ac_cpp_err"; then
3430   # Broken: success on invalid input.
3431 continue
3432 else
3433   echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3435
3436   # Passes both tests.
3437 ac_preproc_ok=:
3438 break
3439 fi
3440
3441 rm -f conftest.err conftest.$ac_ext
3442
3443 done
3444 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3445 rm -f conftest.err conftest.$ac_ext
3446 if $ac_preproc_ok; then
3447   :
3448 else
3449   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3450 See \`config.log' for more details." >&5
3451 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3452 See \`config.log' for more details." >&2;}
3453    { (exit 1); exit 1; }; }
3454 fi
3455
3456 ac_ext=c
3457 ac_cpp='$CPP $CPPFLAGS'
3458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3461
3462
3463
3464
3465 # Check whether --enable-polly was given.
3466 if test "${enable_polly+set}" = set; then
3467   enableval=$enable_polly;
3468 else
3469   enableval=default
3470 fi
3471
3472 case "$enableval" in
3473   yes) ENABLE_POLLY=1
3474  ;;
3475   no)  ENABLE_POLLY=0
3476  ;;
3477   default) ENABLE_POLLY=1
3478  ;;
3479   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3480 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3481    { (exit 1); exit 1; }; } ;;
3482 esac
3483
3484
3485 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3486   LLVM_HAS_POLLY=1
3487
3488   subdirs="$subdirs tools/polly"
3489
3490 fi
3491
3492
3493 # Make sure we can run config.sub.
3494 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3495   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3496 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3497    { (exit 1); exit 1; }; }
3498
3499 { echo "$as_me:$LINENO: checking build system type" >&5
3500 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3501 if test "${ac_cv_build+set}" = set; then
3502   echo $ECHO_N "(cached) $ECHO_C" >&6
3503 else
3504   ac_build_alias=$build_alias
3505 test "x$ac_build_alias" = x &&
3506   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3507 test "x$ac_build_alias" = x &&
3508   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3509 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3510    { (exit 1); exit 1; }; }
3511 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3512   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3513 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3514    { (exit 1); exit 1; }; }
3515
3516 fi
3517 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3518 echo "${ECHO_T}$ac_cv_build" >&6; }
3519 case $ac_cv_build in
3520 *-*-*) ;;
3521 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3522 echo "$as_me: error: invalid value of canonical build" >&2;}
3523    { (exit 1); exit 1; }; };;
3524 esac
3525 build=$ac_cv_build
3526 ac_save_IFS=$IFS; IFS='-'
3527 set x $ac_cv_build
3528 shift
3529 build_cpu=$1
3530 build_vendor=$2
3531 shift; shift
3532 # Remember, the first character of IFS is used to create $*,
3533 # except with old shells:
3534 build_os=$*
3535 IFS=$ac_save_IFS
3536 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3537
3538
3539 { echo "$as_me:$LINENO: checking host system type" >&5
3540 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3541 if test "${ac_cv_host+set}" = set; then
3542   echo $ECHO_N "(cached) $ECHO_C" >&6
3543 else
3544   if test "x$host_alias" = x; then
3545   ac_cv_host=$ac_cv_build
3546 else
3547   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3548     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3549 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3550    { (exit 1); exit 1; }; }
3551 fi
3552
3553 fi
3554 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3555 echo "${ECHO_T}$ac_cv_host" >&6; }
3556 case $ac_cv_host in
3557 *-*-*) ;;
3558 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3559 echo "$as_me: error: invalid value of canonical host" >&2;}
3560    { (exit 1); exit 1; }; };;
3561 esac
3562 host=$ac_cv_host
3563 ac_save_IFS=$IFS; IFS='-'
3564 set x $ac_cv_host
3565 shift
3566 host_cpu=$1
3567 host_vendor=$2
3568 shift; shift
3569 # Remember, the first character of IFS is used to create $*,
3570 # except with old shells:
3571 host_os=$*
3572 IFS=$ac_save_IFS
3573 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3574
3575
3576 { echo "$as_me:$LINENO: checking target system type" >&5
3577 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3578 if test "${ac_cv_target+set}" = set; then
3579   echo $ECHO_N "(cached) $ECHO_C" >&6
3580 else
3581   if test "x$target_alias" = x; then
3582   ac_cv_target=$ac_cv_host
3583 else
3584   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3585     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3586 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3587    { (exit 1); exit 1; }; }
3588 fi
3589
3590 fi
3591 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3592 echo "${ECHO_T}$ac_cv_target" >&6; }
3593 case $ac_cv_target in
3594 *-*-*) ;;
3595 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3596 echo "$as_me: error: invalid value of canonical target" >&2;}
3597    { (exit 1); exit 1; }; };;
3598 esac
3599 target=$ac_cv_target
3600 ac_save_IFS=$IFS; IFS='-'
3601 set x $ac_cv_target
3602 shift
3603 target_cpu=$1
3604 target_vendor=$2
3605 shift; shift
3606 # Remember, the first character of IFS is used to create $*,
3607 # except with old shells:
3608 target_os=$*
3609 IFS=$ac_save_IFS
3610 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3611
3612
3613 # The aliases save the names the user supplied, while $host etc.
3614 # will get canonicalized.
3615 test -n "$target_alias" &&
3616   test "$program_prefix$program_suffix$program_transform_name" = \
3617     NONENONEs,x,x, &&
3618   program_prefix=${target_alias}-
3619
3620 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3621 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3622 if test "${llvm_cv_os_type+set}" = set; then
3623   echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625   case $host in
3626   *-*-aix*)
3627     llvm_cv_link_all_option="-Wl,--whole-archive"
3628     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3629     llvm_cv_os_type="AIX"
3630     llvm_cv_platform_type="Unix" ;;
3631   *-*-irix*)
3632     llvm_cv_link_all_option="-Wl,--whole-archive"
3633     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3634     llvm_cv_os_type="IRIX"
3635     llvm_cv_platform_type="Unix" ;;
3636   *-*-cygwin*)
3637     llvm_cv_link_all_option="-Wl,--whole-archive"
3638     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3639     llvm_cv_os_type="Cygwin"
3640     llvm_cv_platform_type="Unix" ;;
3641   *-*-darwin*)
3642     llvm_cv_link_all_option="-Wl,-all_load"
3643     llvm_cv_no_link_all_option="-Wl,-noall_load"
3644     llvm_cv_os_type="Darwin"
3645     llvm_cv_platform_type="Unix" ;;
3646   *-*-minix*)
3647     llvm_cv_link_all_option="-Wl,-all_load"
3648     llvm_cv_no_link_all_option="-Wl,-noall_load"
3649     llvm_cv_os_type="Minix"
3650     llvm_cv_platform_type="Unix" ;;
3651   *-*-freebsd*)
3652     llvm_cv_link_all_option="-Wl,--whole-archive"
3653     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3654     llvm_cv_os_type="FreeBSD"
3655     llvm_cv_platform_type="Unix" ;;
3656   *-*-openbsd*)
3657     llvm_cv_link_all_option="-Wl,--whole-archive"
3658     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3659     llvm_cv_os_type="OpenBSD"
3660     llvm_cv_platform_type="Unix" ;;
3661   *-*-netbsd*)
3662     llvm_cv_link_all_option="-Wl,--whole-archive"
3663     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3664     llvm_cv_os_type="NetBSD"
3665     llvm_cv_platform_type="Unix" ;;
3666   *-*-dragonfly*)
3667     llvm_cv_link_all_option="-Wl,--whole-archive"
3668     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3669     llvm_cv_os_type="DragonFly"
3670     llvm_cv_platform_type="Unix" ;;
3671   *-*-hpux*)
3672     llvm_cv_link_all_option="-Wl,--whole-archive"
3673     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3674     llvm_cv_os_type="HP-UX"
3675     llvm_cv_platform_type="Unix" ;;
3676   *-*-interix*)
3677     llvm_cv_link_all_option="-Wl,--whole-archive"
3678     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3679     llvm_cv_os_type="Interix"
3680     llvm_cv_platform_type="Unix" ;;
3681   *-*-linux*)
3682     llvm_cv_link_all_option="-Wl,--whole-archive"
3683     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3684     llvm_cv_os_type="Linux"
3685     llvm_cv_platform_type="Unix" ;;
3686   *-*-solaris*)
3687     llvm_cv_link_all_option="-Wl,-z,allextract"
3688     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3689     llvm_cv_os_type="SunOS"
3690     llvm_cv_platform_type="Unix" ;;
3691   *-*-auroraux*)
3692     llvm_cv_link_all_option="-Wl,-z,allextract"
3693     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3694     llvm_cv_os_type="AuroraUX"
3695     llvm_cv_platform_type="Unix" ;;
3696   *-*-win32*)
3697     llvm_cv_link_all_option="-Wl,--whole-archive"
3698     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3699     llvm_cv_os_type="Win32"
3700     llvm_cv_platform_type="Win32" ;;
3701   *-*-mingw*)
3702     llvm_cv_link_all_option="-Wl,--whole-archive"
3703     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3704     llvm_cv_os_type="MingW"
3705     llvm_cv_platform_type="Win32" ;;
3706   *-*-haiku*)
3707     llvm_cv_link_all_option="-Wl,--whole-archive"
3708     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3709     llvm_cv_os_type="Haiku"
3710     llvm_cv_platform_type="Unix" ;;
3711   *-unknown-eabi*)
3712     llvm_cv_link_all_option="-Wl,--whole-archive"
3713     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3714     llvm_cv_os_type="Freestanding"
3715     llvm_cv_platform_type="Unix" ;;
3716   *-unknown-elf*)
3717     llvm_cv_link_all_option="-Wl,--whole-archive"
3718     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3719     llvm_cv_os_type="Freestanding"
3720     llvm_cv_platform_type="Unix" ;;
3721   *)
3722     llvm_cv_link_all_option=""
3723     llvm_cv_no_link_all_option=""
3724     llvm_cv_os_type="Unknown"
3725     llvm_cv_platform_type="Unknown" ;;
3726 esac
3727 fi
3728 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3729 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3730
3731 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3732 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3733 if test "${llvm_cv_target_os_type+set}" = set; then
3734   echo $ECHO_N "(cached) $ECHO_C" >&6
3735 else
3736   case $target in
3737   *-*-aix*)
3738     llvm_cv_target_os_type="AIX" ;;
3739   *-*-irix*)
3740     llvm_cv_target_os_type="IRIX" ;;
3741   *-*-cygwin*)
3742     llvm_cv_target_os_type="Cygwin" ;;
3743   *-*-darwin*)
3744     llvm_cv_target_os_type="Darwin" ;;
3745   *-*-minix*)
3746     llvm_cv_target_os_type="Minix" ;;
3747   *-*-freebsd*)
3748     llvm_cv_target_os_type="FreeBSD" ;;
3749   *-*-openbsd*)
3750     llvm_cv_target_os_type="OpenBSD" ;;
3751   *-*-netbsd*)
3752     llvm_cv_target_os_type="NetBSD" ;;
3753   *-*-dragonfly*)
3754     llvm_cv_target_os_type="DragonFly" ;;
3755   *-*-hpux*)
3756     llvm_cv_target_os_type="HP-UX" ;;
3757   *-*-interix*)
3758     llvm_cv_target_os_type="Interix" ;;
3759   *-*-linux*)
3760     llvm_cv_target_os_type="Linux" ;;
3761   *-*-solaris*)
3762     llvm_cv_target_os_type="SunOS" ;;
3763   *-*-auroraux*)
3764     llvm_cv_target_os_type="AuroraUX" ;;
3765   *-*-win32*)
3766     llvm_cv_target_os_type="Win32" ;;
3767   *-*-mingw*)
3768     llvm_cv_target_os_type="MingW" ;;
3769   *-*-haiku*)
3770     llvm_cv_target_os_type="Haiku" ;;
3771   *-*-rtems*)
3772     llvm_cv_target_os_type="RTEMS" ;;
3773   *-*-nacl*)
3774     llvm_cv_target_os_type="NativeClient" ;;
3775   *-unknown-eabi*)
3776     llvm_cv_target_os_type="Freestanding" ;;
3777   *)
3778     llvm_cv_target_os_type="Unknown" ;;
3779 esac
3780 fi
3781 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3782 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3783
3784 if test "$llvm_cv_os_type" = "Unknown" ; then
3785   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3786 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3787    { (exit 1); exit 1; }; }
3788 fi
3789
3790 OS=$llvm_cv_os_type
3791
3792 HOST_OS=$llvm_cv_os_type
3793
3794 TARGET_OS=$llvm_cv_target_os_type
3795
3796
3797 LINKALL=$llvm_cv_link_all_option
3798
3799 NOLINKALL=$llvm_cv_no_link_all_option
3800
3801
3802 case $llvm_cv_platform_type in
3803   Unix)
3804
3805 cat >>confdefs.h <<\_ACEOF
3806 #define LLVM_ON_UNIX 1
3807 _ACEOF
3808
3809     LLVM_ON_UNIX=1
3810
3811     LLVM_ON_WIN32=0
3812
3813     ;;
3814   Win32)
3815
3816 cat >>confdefs.h <<\_ACEOF
3817 #define LLVM_ON_WIN32 1
3818 _ACEOF
3819
3820     LLVM_ON_UNIX=0
3821
3822     LLVM_ON_WIN32=1
3823
3824     ;;
3825 esac
3826
3827 { echo "$as_me:$LINENO: checking target architecture" >&5
3828 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3829 if test "${llvm_cv_target_arch+set}" = set; then
3830   echo $ECHO_N "(cached) $ECHO_C" >&6
3831 else
3832   case $target in
3833   i?86-*)                 llvm_cv_target_arch="x86" ;;
3834   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3835   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3836   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3837   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3838   mips-*)                 llvm_cv_target_arch="Mips" ;;
3839   xcore-*)                llvm_cv_target_arch="XCore" ;;
3840   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3841   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3842   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3843   ptx-*)                  llvm_cv_target_arch="PTX" ;;
3844   *)                      llvm_cv_target_arch="Unknown" ;;
3845 esac
3846 fi
3847 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3848 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3849
3850 if test "$llvm_cv_target_arch" = "Unknown" ; then
3851   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3852 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3853 fi
3854
3855 # Determine the LLVM native architecture for the target
3856 case "$llvm_cv_target_arch" in
3857     x86)     LLVM_NATIVE_ARCH="X86" ;;
3858     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3859     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3860 esac
3861
3862 ARCH=$llvm_cv_target_arch
3863
3864
3865
3866
3867 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3868 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3869 if test "${ac_cv_path_GREP+set}" = set; then
3870   echo $ECHO_N "(cached) $ECHO_C" >&6
3871 else
3872   # Extract the first word of "grep ggrep" to use in msg output
3873 if test -z "$GREP"; then
3874 set dummy grep ggrep; ac_prog_name=$2
3875 if test "${ac_cv_path_GREP+set}" = set; then
3876   echo $ECHO_N "(cached) $ECHO_C" >&6
3877 else
3878   ac_path_GREP_found=false
3879 # Loop through the user's path and test for each of PROGNAME-LIST
3880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3881 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3882 do
3883   IFS=$as_save_IFS
3884   test -z "$as_dir" && as_dir=.
3885   for ac_prog in grep ggrep; do
3886   for ac_exec_ext in '' $ac_executable_extensions; do
3887     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3888     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3889     # Check for GNU ac_path_GREP and select it if it is found.
3890   # Check for GNU $ac_path_GREP
3891 case `"$ac_path_GREP" --version 2>&1` in
3892 *GNU*)
3893   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3894 *)
3895   ac_count=0
3896   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3897   while :
3898   do
3899     cat "conftest.in" "conftest.in" >"conftest.tmp"
3900     mv "conftest.tmp" "conftest.in"
3901     cp "conftest.in" "conftest.nl"
3902     echo 'GREP' >> "conftest.nl"
3903     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3904     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3905     ac_count=`expr $ac_count + 1`
3906     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3907       # Best one so far, save it but keep looking for a better one
3908       ac_cv_path_GREP="$ac_path_GREP"
3909       ac_path_GREP_max=$ac_count
3910     fi
3911     # 10*(2^10) chars as input seems more than enough
3912     test $ac_count -gt 10 && break
3913   done
3914   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3915 esac
3916
3917
3918     $ac_path_GREP_found && break 3
3919   done
3920 done
3921
3922 done
3923 IFS=$as_save_IFS
3924
3925
3926 fi
3927
3928 GREP="$ac_cv_path_GREP"
3929 if test -z "$GREP"; then
3930   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3931 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3932    { (exit 1); exit 1; }; }
3933 fi
3934
3935 else
3936   ac_cv_path_GREP=$GREP
3937 fi
3938
3939
3940 fi
3941 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3942 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3943  GREP="$ac_cv_path_GREP"
3944
3945
3946 { echo "$as_me:$LINENO: checking for egrep" >&5
3947 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3948 if test "${ac_cv_path_EGREP+set}" = set; then
3949   echo $ECHO_N "(cached) $ECHO_C" >&6
3950 else
3951   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3952    then ac_cv_path_EGREP="$GREP -E"
3953    else
3954      # Extract the first word of "egrep" to use in msg output
3955 if test -z "$EGREP"; then
3956 set dummy egrep; ac_prog_name=$2
3957 if test "${ac_cv_path_EGREP+set}" = set; then
3958   echo $ECHO_N "(cached) $ECHO_C" >&6
3959 else
3960   ac_path_EGREP_found=false
3961 # Loop through the user's path and test for each of PROGNAME-LIST
3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3964 do
3965   IFS=$as_save_IFS
3966   test -z "$as_dir" && as_dir=.
3967   for ac_prog in egrep; do
3968   for ac_exec_ext in '' $ac_executable_extensions; do
3969     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3970     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3971     # Check for GNU ac_path_EGREP and select it if it is found.
3972   # Check for GNU $ac_path_EGREP
3973 case `"$ac_path_EGREP" --version 2>&1` in
3974 *GNU*)
3975   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3976 *)
3977   ac_count=0
3978   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3979   while :
3980   do
3981     cat "conftest.in" "conftest.in" >"conftest.tmp"
3982     mv "conftest.tmp" "conftest.in"
3983     cp "conftest.in" "conftest.nl"
3984     echo 'EGREP' >> "conftest.nl"
3985     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3986     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3987     ac_count=`expr $ac_count + 1`
3988     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3989       # Best one so far, save it but keep looking for a better one
3990       ac_cv_path_EGREP="$ac_path_EGREP"
3991       ac_path_EGREP_max=$ac_count
3992     fi
3993     # 10*(2^10) chars as input seems more than enough
3994     test $ac_count -gt 10 && break
3995   done
3996   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3997 esac
3998
3999
4000     $ac_path_EGREP_found && break 3
4001   done
4002 done
4003
4004 done
4005 IFS=$as_save_IFS
4006
4007
4008 fi
4009
4010 EGREP="$ac_cv_path_EGREP"
4011 if test -z "$EGREP"; then
4012   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4013 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4014    { (exit 1); exit 1; }; }
4015 fi
4016
4017 else
4018   ac_cv_path_EGREP=$EGREP
4019 fi
4020
4021
4022    fi
4023 fi
4024 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4025 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4026  EGREP="$ac_cv_path_EGREP"
4027
4028
4029 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4030 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4031 if test "${ac_cv_header_stdc+set}" = set; then
4032   echo $ECHO_N "(cached) $ECHO_C" >&6
4033 else
4034   cat >conftest.$ac_ext <<_ACEOF
4035 /* confdefs.h.  */
4036 _ACEOF
4037 cat confdefs.h >>conftest.$ac_ext
4038 cat >>conftest.$ac_ext <<_ACEOF
4039 /* end confdefs.h.  */
4040 #include <stdlib.h>
4041 #include <stdarg.h>
4042 #include <string.h>
4043 #include <float.h>
4044
4045 int
4046 main ()
4047 {
4048
4049   ;
4050   return 0;
4051 }
4052 _ACEOF
4053 rm -f conftest.$ac_objext
4054 if { (ac_try="$ac_compile"
4055 case "(($ac_try" in
4056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057   *) ac_try_echo=$ac_try;;
4058 esac
4059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4060   (eval "$ac_compile") 2>conftest.er1
4061   ac_status=$?
4062   grep -v '^ *+' conftest.er1 >conftest.err
4063   rm -f conftest.er1
4064   cat conftest.err >&5
4065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066   (exit $ac_status); } &&
4067          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4068   { (case "(($ac_try" in
4069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070   *) ac_try_echo=$ac_try;;
4071 esac
4072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4073   (eval "$ac_try") 2>&5
4074   ac_status=$?
4075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076   (exit $ac_status); }; } &&
4077          { ac_try='test -s conftest.$ac_objext'
4078   { (case "(($ac_try" in
4079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080   *) ac_try_echo=$ac_try;;
4081 esac
4082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4083   (eval "$ac_try") 2>&5
4084   ac_status=$?
4085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086   (exit $ac_status); }; }; then
4087   ac_cv_header_stdc=yes
4088 else
4089   echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.$ac_ext >&5
4091
4092         ac_cv_header_stdc=no
4093 fi
4094
4095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096
4097 if test $ac_cv_header_stdc = yes; then
4098   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4099   cat >conftest.$ac_ext <<_ACEOF
4100 /* confdefs.h.  */
4101 _ACEOF
4102 cat confdefs.h >>conftest.$ac_ext
4103 cat >>conftest.$ac_ext <<_ACEOF
4104 /* end confdefs.h.  */
4105 #include <string.h>
4106
4107 _ACEOF
4108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4109   $EGREP "memchr" >/dev/null 2>&1; then
4110   :
4111 else
4112   ac_cv_header_stdc=no
4113 fi
4114 rm -f conftest*
4115
4116 fi
4117
4118 if test $ac_cv_header_stdc = yes; then
4119   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4120   cat >conftest.$ac_ext <<_ACEOF
4121 /* confdefs.h.  */
4122 _ACEOF
4123 cat confdefs.h >>conftest.$ac_ext
4124 cat >>conftest.$ac_ext <<_ACEOF
4125 /* end confdefs.h.  */
4126 #include <stdlib.h>
4127
4128 _ACEOF
4129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4130   $EGREP "free" >/dev/null 2>&1; then
4131   :
4132 else
4133   ac_cv_header_stdc=no
4134 fi
4135 rm -f conftest*
4136
4137 fi
4138
4139 if test $ac_cv_header_stdc = yes; then
4140   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4141   if test "$cross_compiling" = yes; then
4142   :
4143 else
4144   cat >conftest.$ac_ext <<_ACEOF
4145 /* confdefs.h.  */
4146 _ACEOF
4147 cat confdefs.h >>conftest.$ac_ext
4148 cat >>conftest.$ac_ext <<_ACEOF
4149 /* end confdefs.h.  */
4150 #include <ctype.h>
4151 #include <stdlib.h>
4152 #if ((' ' & 0x0FF) == 0x020)
4153 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4154 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4155 #else
4156 # define ISLOWER(c) \
4157                    (('a' <= (c) && (c) <= 'i') \
4158                      || ('j' <= (c) && (c) <= 'r') \
4159                      || ('s' <= (c) && (c) <= 'z'))
4160 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4161 #endif
4162
4163 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4164 int
4165 main ()
4166 {
4167   int i;
4168   for (i = 0; i < 256; i++)
4169     if (XOR (islower (i), ISLOWER (i))
4170         || toupper (i) != TOUPPER (i))
4171       return 2;
4172   return 0;
4173 }
4174 _ACEOF
4175 rm -f conftest$ac_exeext
4176 if { (ac_try="$ac_link"
4177 case "(($ac_try" in
4178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4179   *) ac_try_echo=$ac_try;;
4180 esac
4181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4182   (eval "$ac_link") 2>&5
4183   ac_status=$?
4184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4186   { (case "(($ac_try" in
4187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188   *) ac_try_echo=$ac_try;;
4189 esac
4190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4191   (eval "$ac_try") 2>&5
4192   ac_status=$?
4193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194   (exit $ac_status); }; }; then
4195   :
4196 else
4197   echo "$as_me: program exited with status $ac_status" >&5
4198 echo "$as_me: failed program was:" >&5
4199 sed 's/^/| /' conftest.$ac_ext >&5
4200
4201 ( exit $ac_status )
4202 ac_cv_header_stdc=no
4203 fi
4204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4205 fi
4206
4207
4208 fi
4209 fi
4210 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4211 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4212 if test $ac_cv_header_stdc = yes; then
4213
4214 cat >>confdefs.h <<\_ACEOF
4215 #define STDC_HEADERS 1
4216 _ACEOF
4217
4218 fi
4219
4220 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4231                   inttypes.h stdint.h unistd.h
4232 do
4233 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4234 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4237   echo $ECHO_N "(cached) $ECHO_C" >&6
4238 else
4239   cat >conftest.$ac_ext <<_ACEOF
4240 /* confdefs.h.  */
4241 _ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h.  */
4245 $ac_includes_default
4246
4247 #include <$ac_header>
4248 _ACEOF
4249 rm -f conftest.$ac_objext
4250 if { (ac_try="$ac_compile"
4251 case "(($ac_try" in
4252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253   *) ac_try_echo=$ac_try;;
4254 esac
4255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4256   (eval "$ac_compile") 2>conftest.er1
4257   ac_status=$?
4258   grep -v '^ *+' conftest.er1 >conftest.err
4259   rm -f conftest.er1
4260   cat conftest.err >&5
4261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262   (exit $ac_status); } &&
4263          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4264   { (case "(($ac_try" in
4265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266   *) ac_try_echo=$ac_try;;
4267 esac
4268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4269   (eval "$ac_try") 2>&5
4270   ac_status=$?
4271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272   (exit $ac_status); }; } &&
4273          { ac_try='test -s conftest.$ac_objext'
4274   { (case "(($ac_try" in
4275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276   *) ac_try_echo=$ac_try;;
4277 esac
4278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279   (eval "$ac_try") 2>&5
4280   ac_status=$?
4281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282   (exit $ac_status); }; }; then
4283   eval "$as_ac_Header=yes"
4284 else
4285   echo "$as_me: failed program was:" >&5
4286 sed 's/^/| /' conftest.$ac_ext >&5
4287
4288         eval "$as_ac_Header=no"
4289 fi
4290
4291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4292 fi
4293 ac_res=`eval echo '${'$as_ac_Header'}'`
4294                { echo "$as_me:$LINENO: result: $ac_res" >&5
4295 echo "${ECHO_T}$ac_res" >&6; }
4296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4297   cat >>confdefs.h <<_ACEOF
4298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4299 _ACEOF
4300
4301 fi
4302
4303 done
4304
4305
4306 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4307 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4308 if test "${ac_cv_c_bigendian+set}" = set; then
4309   echo $ECHO_N "(cached) $ECHO_C" >&6
4310 else
4311   # See if sys/param.h defines the BYTE_ORDER macro.
4312 cat >conftest.$ac_ext <<_ACEOF
4313 /* confdefs.h.  */
4314 _ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h.  */
4318 #include <sys/types.h>
4319 #include <sys/param.h>
4320
4321 int
4322 main ()
4323 {
4324 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4325  bogus endian macros
4326 #endif
4327
4328   ;
4329   return 0;
4330 }
4331 _ACEOF
4332 rm -f conftest.$ac_objext
4333 if { (ac_try="$ac_compile"
4334 case "(($ac_try" in
4335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336   *) ac_try_echo=$ac_try;;
4337 esac
4338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4339   (eval "$ac_compile") 2>conftest.er1
4340   ac_status=$?
4341   grep -v '^ *+' conftest.er1 >conftest.err
4342   rm -f conftest.er1
4343   cat conftest.err >&5
4344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345   (exit $ac_status); } &&
4346          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4347   { (case "(($ac_try" in
4348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349   *) ac_try_echo=$ac_try;;
4350 esac
4351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4352   (eval "$ac_try") 2>&5
4353   ac_status=$?
4354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355   (exit $ac_status); }; } &&
4356          { ac_try='test -s conftest.$ac_objext'
4357   { (case "(($ac_try" in
4358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4359   *) ac_try_echo=$ac_try;;
4360 esac
4361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4362   (eval "$ac_try") 2>&5
4363   ac_status=$?
4364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365   (exit $ac_status); }; }; then
4366   # It does; now see whether it defined to BIG_ENDIAN or not.
4367 cat >conftest.$ac_ext <<_ACEOF
4368 /* confdefs.h.  */
4369 _ACEOF
4370 cat confdefs.h >>conftest.$ac_ext
4371 cat >>conftest.$ac_ext <<_ACEOF
4372 /* end confdefs.h.  */
4373 #include <sys/types.h>
4374 #include <sys/param.h>
4375
4376 int
4377 main ()
4378 {
4379 #if BYTE_ORDER != BIG_ENDIAN
4380  not big endian
4381 #endif
4382
4383   ;
4384   return 0;
4385 }
4386 _ACEOF
4387 rm -f conftest.$ac_objext
4388 if { (ac_try="$ac_compile"
4389 case "(($ac_try" in
4390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391   *) ac_try_echo=$ac_try;;
4392 esac
4393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4394   (eval "$ac_compile") 2>conftest.er1
4395   ac_status=$?
4396   grep -v '^ *+' conftest.er1 >conftest.err
4397   rm -f conftest.er1
4398   cat conftest.err >&5
4399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400   (exit $ac_status); } &&
4401          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4402   { (case "(($ac_try" in
4403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404   *) ac_try_echo=$ac_try;;
4405 esac
4406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4407   (eval "$ac_try") 2>&5
4408   ac_status=$?
4409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410   (exit $ac_status); }; } &&
4411          { ac_try='test -s conftest.$ac_objext'
4412   { (case "(($ac_try" in
4413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414   *) ac_try_echo=$ac_try;;
4415 esac
4416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4417   (eval "$ac_try") 2>&5
4418   ac_status=$?
4419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420   (exit $ac_status); }; }; then
4421   ac_cv_c_bigendian=yes
4422 else
4423   echo "$as_me: failed program was:" >&5
4424 sed 's/^/| /' conftest.$ac_ext >&5
4425
4426         ac_cv_c_bigendian=no
4427 fi
4428
4429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4430 else
4431   echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4433
4434         # It does not; compile a test program.
4435 if test "$cross_compiling" = yes; then
4436   # try to guess the endianness by grepping values into an object file
4437   ac_cv_c_bigendian=unknown
4438   cat >conftest.$ac_ext <<_ACEOF
4439 /* confdefs.h.  */
4440 _ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h.  */
4444 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4445 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4446 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4447 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4448 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4449 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4450 int
4451 main ()
4452 {
4453  _ascii (); _ebcdic ();
4454   ;
4455   return 0;
4456 }
4457 _ACEOF
4458 rm -f conftest.$ac_objext
4459 if { (ac_try="$ac_compile"
4460 case "(($ac_try" in
4461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4462   *) ac_try_echo=$ac_try;;
4463 esac
4464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4465   (eval "$ac_compile") 2>conftest.er1
4466   ac_status=$?
4467   grep -v '^ *+' conftest.er1 >conftest.err
4468   rm -f conftest.er1
4469   cat conftest.err >&5
4470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471   (exit $ac_status); } &&
4472          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4473   { (case "(($ac_try" in
4474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475   *) ac_try_echo=$ac_try;;
4476 esac
4477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4478   (eval "$ac_try") 2>&5
4479   ac_status=$?
4480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481   (exit $ac_status); }; } &&
4482          { ac_try='test -s conftest.$ac_objext'
4483   { (case "(($ac_try" in
4484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485   *) ac_try_echo=$ac_try;;
4486 esac
4487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488   (eval "$ac_try") 2>&5
4489   ac_status=$?
4490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491   (exit $ac_status); }; }; then
4492   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4493   ac_cv_c_bigendian=yes
4494 fi
4495 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4496   if test "$ac_cv_c_bigendian" = unknown; then
4497     ac_cv_c_bigendian=no
4498   else
4499     # finding both strings is unlikely to happen, but who knows?
4500     ac_cv_c_bigendian=unknown
4501   fi
4502 fi
4503 else
4504   echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4506
4507
4508 fi
4509
4510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4511 else
4512   cat >conftest.$ac_ext <<_ACEOF
4513 /* confdefs.h.  */
4514 _ACEOF
4515 cat confdefs.h >>conftest.$ac_ext
4516 cat >>conftest.$ac_ext <<_ACEOF
4517 /* end confdefs.h.  */
4518 $ac_includes_default
4519 int
4520 main ()
4521 {
4522
4523   /* Are we little or big endian?  From Harbison&Steele.  */
4524   union
4525   {
4526     long int l;
4527     char c[sizeof (long int)];
4528   } u;
4529   u.l = 1;
4530   return u.c[sizeof (long int) - 1] == 1;
4531
4532   ;
4533   return 0;
4534 }
4535 _ACEOF
4536 rm -f conftest$ac_exeext
4537 if { (ac_try="$ac_link"
4538 case "(($ac_try" in
4539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4540   *) ac_try_echo=$ac_try;;
4541 esac
4542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4543   (eval "$ac_link") 2>&5
4544   ac_status=$?
4545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4547   { (case "(($ac_try" in
4548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4549   *) ac_try_echo=$ac_try;;
4550 esac
4551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4552   (eval "$ac_try") 2>&5
4553   ac_status=$?
4554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555   (exit $ac_status); }; }; then
4556   ac_cv_c_bigendian=no
4557 else
4558   echo "$as_me: program exited with status $ac_status" >&5
4559 echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.$ac_ext >&5
4561
4562 ( exit $ac_status )
4563 ac_cv_c_bigendian=yes
4564 fi
4565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4566 fi
4567
4568
4569 fi
4570
4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572 fi
4573 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4574 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4575 case $ac_cv_c_bigendian in
4576   yes)
4577     ENDIAN=big
4578  ;;
4579   no)
4580     ENDIAN=little
4581  ;;
4582   *)
4583     { { echo "$as_me:$LINENO: error: unknown endianness
4584 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4585 echo "$as_me: error: unknown endianness
4586 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4587    { (exit 1); exit 1; }; } ;;
4588 esac
4589
4590
4591 if test "$cross_compiling" = yes; then
4592   LLVM_CROSS_COMPILING=1
4593
4594
4595 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4596 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4597 if test "${ac_cv_build_exeext+set}" = set; then
4598   echo $ECHO_N "(cached) $ECHO_C" >&6
4599 else
4600   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4601   ac_cv_build_exeext=.exe
4602 else
4603   ac_build_prefix=${build_alias}-
4604
4605   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4606 set dummy ${ac_build_prefix}gcc; ac_word=$2
4607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4609 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4610   echo $ECHO_N "(cached) $ECHO_C" >&6
4611 else
4612   if test -n "$BUILD_CC"; then
4613   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4614 else
4615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 for as_dir in $PATH
4617 do
4618   IFS=$as_save_IFS
4619   test -z "$as_dir" && as_dir=.
4620   for ac_exec_ext in '' $ac_executable_extensions; do
4621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4622     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4624     break 2
4625   fi
4626 done
4627 done
4628 IFS=$as_save_IFS
4629
4630 fi
4631 fi
4632 BUILD_CC=$ac_cv_prog_BUILD_CC
4633 if test -n "$BUILD_CC"; then
4634   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4635 echo "${ECHO_T}$BUILD_CC" >&6; }
4636 else
4637   { echo "$as_me:$LINENO: result: no" >&5
4638 echo "${ECHO_T}no" >&6; }
4639 fi
4640
4641
4642   if test -z "$BUILD_CC"; then
4643      # Extract the first word of "gcc", so it can be a program name with args.
4644 set dummy gcc; ac_word=$2
4645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4647 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4648   echo $ECHO_N "(cached) $ECHO_C" >&6
4649 else
4650   if test -n "$BUILD_CC"; then
4651   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4652 else
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 for as_dir in $PATH
4655 do
4656   IFS=$as_save_IFS
4657   test -z "$as_dir" && as_dir=.
4658   for ac_exec_ext in '' $ac_executable_extensions; do
4659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4660     ac_cv_prog_BUILD_CC="gcc"
4661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4662     break 2
4663   fi
4664 done
4665 done
4666 IFS=$as_save_IFS
4667
4668 fi
4669 fi
4670 BUILD_CC=$ac_cv_prog_BUILD_CC
4671 if test -n "$BUILD_CC"; then
4672   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4673 echo "${ECHO_T}$BUILD_CC" >&6; }
4674 else
4675   { echo "$as_me:$LINENO: result: no" >&5
4676 echo "${ECHO_T}no" >&6; }
4677 fi
4678
4679
4680      if test -z "$BUILD_CC"; then
4681        # Extract the first word of "cc", so it can be a program name with args.
4682 set dummy cc; ac_word=$2
4683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4685 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4686   echo $ECHO_N "(cached) $ECHO_C" >&6
4687 else
4688   if test -n "$BUILD_CC"; then
4689   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4690 else
4691   ac_prog_rejected=no
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 for as_dir in $PATH
4694 do
4695   IFS=$as_save_IFS
4696   test -z "$as_dir" && as_dir=.
4697   for ac_exec_ext in '' $ac_executable_extensions; do
4698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4699     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4700        ac_prog_rejected=yes
4701        continue
4702      fi
4703     ac_cv_prog_BUILD_CC="cc"
4704     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4705     break 2
4706   fi
4707 done
4708 done
4709 IFS=$as_save_IFS
4710
4711 if test $ac_prog_rejected = yes; then
4712   # We found a bogon in the path, so make sure we never use it.
4713   set dummy $ac_cv_prog_BUILD_CC
4714   shift
4715   if test $# != 0; then
4716     # We chose a different compiler from the bogus one.
4717     # However, it has the same basename, so the bogon will be chosen
4718     # first if we set BUILD_CC to just the basename; use the full file name.
4719     shift
4720     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4721   fi
4722 fi
4723 fi
4724 fi
4725 BUILD_CC=$ac_cv_prog_BUILD_CC
4726 if test -n "$BUILD_CC"; then
4727   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4728 echo "${ECHO_T}$BUILD_CC" >&6; }
4729 else
4730   { echo "$as_me:$LINENO: result: no" >&5
4731 echo "${ECHO_T}no" >&6; }
4732 fi
4733
4734
4735      fi
4736   fi
4737   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4738 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4739    { (exit 1); exit 1; }; }
4740   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4741   rm -f conftest*
4742   echo 'int main () { return 0; }' > conftest.$ac_ext
4743   ac_cv_build_exeext=
4744   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4745   (eval $ac_build_link) 2>&5
4746   ac_status=$?
4747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748   (exit $ac_status); }; then
4749     for file in conftest.*; do
4750       case $file in
4751       *.c | *.o | *.obj | *.dSYM) ;;
4752       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4753       esac
4754     done
4755   else
4756     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4757 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4758    { (exit 1); exit 1; }; }
4759   fi
4760   rm -f conftest*
4761   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4762 fi
4763 fi
4764
4765 BUILD_EXEEXT=""
4766 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4767 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4768 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4769 ac_build_exeext=$BUILD_EXEEXT
4770
4771   ac_build_prefix=${build_alias}-
4772   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4773 set dummy ${ac_build_prefix}g++; ac_word=$2
4774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4776 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4777   echo $ECHO_N "(cached) $ECHO_C" >&6
4778 else
4779   if test -n "$BUILD_CXX"; then
4780   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4781 else
4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 for as_dir in $PATH
4784 do
4785   IFS=$as_save_IFS
4786   test -z "$as_dir" && as_dir=.
4787   for ac_exec_ext in '' $ac_executable_extensions; do
4788   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4789     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4790     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4791     break 2
4792   fi
4793 done
4794 done
4795 IFS=$as_save_IFS
4796
4797 fi
4798 fi
4799 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4800 if test -n "$BUILD_CXX"; then
4801   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4802 echo "${ECHO_T}$BUILD_CXX" >&6; }
4803 else
4804   { echo "$as_me:$LINENO: result: no" >&5
4805 echo "${ECHO_T}no" >&6; }
4806 fi
4807
4808
4809   if test -z "$BUILD_CXX"; then
4810      # Extract the first word of "g++", so it can be a program name with args.
4811 set dummy g++; ac_word=$2
4812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4814 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4815   echo $ECHO_N "(cached) $ECHO_C" >&6
4816 else
4817   if test -n "$BUILD_CXX"; then
4818   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4819 else
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH
4822 do
4823   IFS=$as_save_IFS
4824   test -z "$as_dir" && as_dir=.
4825   for ac_exec_ext in '' $ac_executable_extensions; do
4826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4827     ac_cv_prog_BUILD_CXX="g++"
4828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4829     break 2
4830   fi
4831 done
4832 done
4833 IFS=$as_save_IFS
4834
4835 fi
4836 fi
4837 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4838 if test -n "$BUILD_CXX"; then
4839   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4840 echo "${ECHO_T}$BUILD_CXX" >&6; }
4841 else
4842   { echo "$as_me:$LINENO: result: no" >&5
4843 echo "${ECHO_T}no" >&6; }
4844 fi
4845
4846
4847      if test -z "$BUILD_CXX"; then
4848        # Extract the first word of "c++", so it can be a program name with args.
4849 set dummy c++; ac_word=$2
4850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4852 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4853   echo $ECHO_N "(cached) $ECHO_C" >&6
4854 else
4855   if test -n "$BUILD_CXX"; then
4856   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4857 else
4858   ac_prog_rejected=no
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH
4861 do
4862   IFS=$as_save_IFS
4863   test -z "$as_dir" && as_dir=.
4864   for ac_exec_ext in '' $ac_executable_extensions; do
4865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4866     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4867        ac_prog_rejected=yes
4868        continue
4869      fi
4870     ac_cv_prog_BUILD_CXX="c++"
4871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4872     break 2
4873   fi
4874 done
4875 done
4876 IFS=$as_save_IFS
4877
4878 if test $ac_prog_rejected = yes; then
4879   # We found a bogon in the path, so make sure we never use it.
4880   set dummy $ac_cv_prog_BUILD_CXX
4881   shift
4882   if test $# != 0; then
4883     # We chose a different compiler from the bogus one.
4884     # However, it has the same basename, so the bogon will be chosen
4885     # first if we set BUILD_CXX to just the basename; use the full file name.
4886     shift
4887     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4888   fi
4889 fi
4890 fi
4891 fi
4892 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4893 if test -n "$BUILD_CXX"; then
4894   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4895 echo "${ECHO_T}$BUILD_CXX" >&6; }
4896 else
4897   { echo "$as_me:$LINENO: result: no" >&5
4898 echo "${ECHO_T}no" >&6; }
4899 fi
4900
4901
4902      fi
4903   fi
4904 else
4905   LLVM_CROSS_COMPILING=0
4906
4907 fi
4908
4909 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4910   cvsbuild="yes"
4911   optimize="no"
4912   CVSBUILD=CVSBUILD=1
4913
4914 else
4915   cvsbuild="no"
4916   optimize="yes"
4917 fi
4918
4919
4920 # Check whether --enable-optimized was given.
4921 if test "${enable_optimized+set}" = set; then
4922   enableval=$enable_optimized;
4923 else
4924   enableval=$optimize
4925 fi
4926
4927 if test ${enableval} = "no" ; then
4928   ENABLE_OPTIMIZED=
4929
4930 else
4931   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4932
4933 fi
4934
4935 # Check whether --enable-profiling was given.
4936 if test "${enable_profiling+set}" = set; then
4937   enableval=$enable_profiling;
4938 else
4939   enableval="no"
4940 fi
4941
4942 if test ${enableval} = "no" ; then
4943   ENABLE_PROFILING=
4944
4945 else
4946   ENABLE_PROFILING=ENABLE_PROFILING=1
4947
4948 fi
4949
4950 # Check whether --enable-assertions was given.
4951 if test "${enable_assertions+set}" = set; then
4952   enableval=$enable_assertions;
4953 else
4954   enableval="yes"
4955 fi
4956
4957 if test ${enableval} = "yes" ; then
4958   DISABLE_ASSERTIONS=
4959
4960 else
4961   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4962
4963 fi
4964
4965 # Check whether --enable-expensive-checks was given.
4966 if test "${enable_expensive_checks+set}" = set; then
4967   enableval=$enable_expensive_checks;
4968 else
4969   enableval="no"
4970 fi
4971
4972 if test ${enableval} = "yes" ; then
4973   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4974
4975   EXPENSIVE_CHECKS=yes
4976
4977 else
4978   ENABLE_EXPENSIVE_CHECKS=
4979
4980   EXPENSIVE_CHECKS=no
4981
4982 fi
4983
4984 # Check whether --enable-debug-runtime was given.
4985 if test "${enable_debug_runtime+set}" = set; then
4986   enableval=$enable_debug_runtime;
4987 else
4988   enableval=no
4989 fi
4990
4991 if test ${enableval} = "no" ; then
4992   DEBUG_RUNTIME=
4993
4994 else
4995   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4996
4997 fi
4998
4999 # Check whether --enable-debug-symbols was given.
5000 if test "${enable_debug_symbols+set}" = set; then
5001   enableval=$enable_debug_symbols;
5002 else
5003   enableval=no
5004 fi
5005
5006 if test ${enableval} = "no" ; then
5007   DEBUG_SYMBOLS=
5008
5009 else
5010   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5011
5012 fi
5013
5014 # Check whether --enable-jit was given.
5015 if test "${enable_jit+set}" = set; then
5016   enableval=$enable_jit;
5017 else
5018   enableval=default
5019 fi
5020
5021 if test ${enableval} = "no"
5022 then
5023   JIT=
5024
5025 else
5026   case "$llvm_cv_target_arch" in
5027     x86)         TARGET_HAS_JIT=1
5028  ;;
5029     Sparc)       TARGET_HAS_JIT=0
5030  ;;
5031     PowerPC)     TARGET_HAS_JIT=1
5032  ;;
5033     x86_64)      TARGET_HAS_JIT=1
5034  ;;
5035     ARM)         TARGET_HAS_JIT=1
5036  ;;
5037     Mips)        TARGET_HAS_JIT=1
5038  ;;
5039     XCore)       TARGET_HAS_JIT=0
5040  ;;
5041     MSP430)      TARGET_HAS_JIT=0
5042  ;;
5043     Hexagon)     TARGET_HAS_JIT=0
5044  ;;
5045     MBlaze)      TARGET_HAS_JIT=0
5046  ;;
5047     PTX)         TARGET_HAS_JIT=0
5048  ;;
5049     *)           TARGET_HAS_JIT=0
5050  ;;
5051   esac
5052 fi
5053
5054 # Check whether --enable-docs was given.
5055 if test "${enable_docs+set}" = set; then
5056   enableval=$enable_docs;
5057 else
5058   enableval=default
5059 fi
5060
5061 case "$enableval" in
5062   yes) ENABLE_DOCS=1
5063  ;;
5064   no)  ENABLE_DOCS=0
5065  ;;
5066   default) ENABLE_DOCS=1
5067  ;;
5068   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5069 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5070    { (exit 1); exit 1; }; } ;;
5071 esac
5072
5073 # Check whether --enable-doxygen was given.
5074 if test "${enable_doxygen+set}" = set; then
5075   enableval=$enable_doxygen;
5076 else
5077   enableval=default
5078 fi
5079
5080 case "$enableval" in
5081   yes) ENABLE_DOXYGEN=1
5082  ;;
5083   no)  ENABLE_DOXYGEN=0
5084  ;;
5085   default) ENABLE_DOXYGEN=0
5086  ;;
5087   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5088 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5089    { (exit 1); exit 1; }; } ;;
5090 esac
5091
5092 # Check whether --enable-threads was given.
5093 if test "${enable_threads+set}" = set; then
5094   enableval=$enable_threads;
5095 else
5096   enableval=default
5097 fi
5098
5099 case "$enableval" in
5100   yes) ENABLE_THREADS=1
5101  ;;
5102   no)  ENABLE_THREADS=0
5103  ;;
5104   default) ENABLE_THREADS=1
5105  ;;
5106   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5107 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5108    { (exit 1); exit 1; }; } ;;
5109 esac
5110
5111 cat >>confdefs.h <<_ACEOF
5112 #define ENABLE_THREADS $ENABLE_THREADS
5113 _ACEOF
5114
5115
5116 # Check whether --enable-pthreads was given.
5117 if test "${enable_pthreads+set}" = set; then
5118   enableval=$enable_pthreads;
5119 else
5120   enableval=default
5121 fi
5122
5123 case "$enableval" in
5124   yes) ENABLE_PTHREADS=1
5125  ;;
5126   no)  ENABLE_PTHREADS=0
5127  ;;
5128   default) ENABLE_PTHREADS=1
5129  ;;
5130   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5131 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5132    { (exit 1); exit 1; }; } ;;
5133 esac
5134
5135 # Check whether --enable-pic was given.
5136 if test "${enable_pic+set}" = set; then
5137   enableval=$enable_pic;
5138 else
5139   enableval=default
5140 fi
5141
5142 case "$enableval" in
5143   yes) ENABLE_PIC=1
5144  ;;
5145   no)  ENABLE_PIC=0
5146  ;;
5147   default) ENABLE_PIC=1
5148  ;;
5149   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5150 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5151    { (exit 1); exit 1; }; } ;;
5152 esac
5153
5154 cat >>confdefs.h <<_ACEOF
5155 #define ENABLE_PIC $ENABLE_PIC
5156 _ACEOF
5157
5158
5159 # Check whether --enable-shared was given.
5160 if test "${enable_shared+set}" = set; then
5161   enableval=$enable_shared;
5162 else
5163   enableval=default
5164 fi
5165
5166 case "$enableval" in
5167   yes) ENABLE_SHARED=1
5168  ;;
5169   no)  ENABLE_SHARED=0
5170  ;;
5171   default) ENABLE_SHARED=0
5172  ;;
5173   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5174 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5175    { (exit 1); exit 1; }; } ;;
5176 esac
5177
5178 # Check whether --enable-embed-stdcxx was given.
5179 if test "${enable_embed_stdcxx+set}" = set; then
5180   enableval=$enable_embed_stdcxx;
5181 else
5182   enableval=default
5183 fi
5184
5185 case "$enableval" in
5186   yes) ENABLE_EMBED_STDCXX=1
5187  ;;
5188   no)  ENABLE_EMBED_STDCXX=0
5189  ;;
5190   default) ENABLE_EMBED_STDCXX=1
5191  ;;
5192   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5193 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5194    { (exit 1); exit 1; }; } ;;
5195 esac
5196
5197 # Check whether --enable-timestamps was given.
5198 if test "${enable_timestamps+set}" = set; then
5199   enableval=$enable_timestamps;
5200 else
5201   enableval=default
5202 fi
5203
5204 case "$enableval" in
5205   yes) ENABLE_TIMESTAMPS=1
5206  ;;
5207   no)  ENABLE_TIMESTAMPS=0
5208  ;;
5209   default) ENABLE_TIMESTAMPS=1
5210  ;;
5211   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5212 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5213    { (exit 1); exit 1; }; } ;;
5214 esac
5215
5216 cat >>confdefs.h <<_ACEOF
5217 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5218 _ACEOF
5219
5220
5221 TARGETS_TO_BUILD=""
5222 # Check whether --enable-targets was given.
5223 if test "${enable_targets+set}" = set; then
5224   enableval=$enable_targets;
5225 else
5226   enableval=all
5227 fi
5228
5229 if test "$enableval" = host-only ; then
5230   enableval=host
5231 fi
5232 case "$enableval" in
5233   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 Hexagon CBackend CppBackend MBlaze PTX" ;;
5234   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5235       case "$a_target" in
5236         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5237         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5238         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5239         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5240         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5241         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5242         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5243         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5244         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5245         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5246         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5247         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5248         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5249         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5250         host) case "$llvm_cv_target_arch" in
5251             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5252             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5253             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5254             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5255             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5256             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5257             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5258             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5259             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5260             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5261             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5262             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5263             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5264 echo "$as_me: error: Can not set target to build" >&2;}
5265    { (exit 1); exit 1; }; } ;;
5266           esac ;;
5267         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5268 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5269    { (exit 1); exit 1; }; } ;;
5270       esac
5271   done
5272   ;;
5273 esac
5274 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5275
5276
5277 # Determine whether we are building LLVM support for the native architecture.
5278 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5279 for a_target in $TARGETS_TO_BUILD; do
5280   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5281
5282 cat >>confdefs.h <<_ACEOF
5283 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5284 _ACEOF
5285
5286     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5287     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5288     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5289     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5290     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5291       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5292     fi
5293
5294 cat >>confdefs.h <<_ACEOF
5295 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5296 _ACEOF
5297
5298
5299 cat >>confdefs.h <<_ACEOF
5300 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5301 _ACEOF
5302
5303
5304 cat >>confdefs.h <<_ACEOF
5305 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5306 _ACEOF
5307
5308
5309 cat >>confdefs.h <<_ACEOF
5310 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5311 _ACEOF
5312
5313     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5314
5315 cat >>confdefs.h <<_ACEOF
5316 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5317 _ACEOF
5318
5319     fi
5320   fi
5321 done
5322
5323 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5324 # target feature def files.
5325 LLVM_ENUM_TARGETS=""
5326 LLVM_ENUM_ASM_PRINTERS=""
5327 LLVM_ENUM_ASM_PARSERS=""
5328 LLVM_ENUM_DISASSEMBLERS=""
5329 for target_to_build in $TARGETS_TO_BUILD; do
5330   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5331   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5332     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5333   fi
5334   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5335     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5336   fi
5337   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5338     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5339   fi
5340 done
5341
5342
5343
5344
5345
5346 # Check whether --enable-cbe-printf-a was given.
5347 if test "${enable_cbe_printf_a+set}" = set; then
5348   enableval=$enable_cbe_printf_a;
5349 else
5350   enableval=default
5351 fi
5352
5353 case "$enableval" in
5354   yes) ENABLE_CBE_PRINTF_A=1
5355  ;;
5356   no)  ENABLE_CBE_PRINTF_A=0
5357  ;;
5358   default)  ENABLE_CBE_PRINTF_A=1
5359  ;;
5360   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5361 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5362    { (exit 1); exit 1; }; } ;;
5363 esac
5364
5365 cat >>confdefs.h <<_ACEOF
5366 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5367 _ACEOF
5368
5369
5370
5371 # Check whether --with-optimize-option was given.
5372 if test "${with_optimize_option+set}" = set; then
5373   withval=$with_optimize_option;
5374 else
5375   withval=default
5376 fi
5377
5378 { echo "$as_me:$LINENO: checking optimization flags" >&5
5379 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5380 case "$withval" in
5381   default)
5382     case "$llvm_cv_os_type" in
5383     FreeBSD) optimize_option=-O2 ;;
5384     MingW) optimize_option=-O2 ;;
5385     *)     optimize_option=-O3 ;;
5386     esac ;;
5387   *) optimize_option="$withval" ;;
5388 esac
5389 OPTIMIZE_OPTION=$optimize_option
5390
5391 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5392 echo "${ECHO_T}$optimize_option" >&6; }
5393
5394
5395 # Check whether --with-extra-options was given.
5396 if test "${with_extra_options+set}" = set; then
5397   withval=$with_extra_options;
5398 else
5399   withval=default
5400 fi
5401
5402 case "$withval" in
5403   default) EXTRA_OPTIONS= ;;
5404   *) EXTRA_OPTIONS=$withval ;;
5405 esac
5406 EXTRA_OPTIONS=$EXTRA_OPTIONS
5407
5408
5409
5410 # Check whether --with-extra-ld-options was given.
5411 if test "${with_extra_ld_options+set}" = set; then
5412   withval=$with_extra_ld_options;
5413 else
5414   withval=default
5415 fi
5416
5417 case "$withval" in
5418   default) EXTRA_LD_OPTIONS= ;;
5419   *) EXTRA_LD_OPTIONS=$withval ;;
5420 esac
5421 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5422
5423
5424 # Check whether --enable-bindings was given.
5425 if test "${enable_bindings+set}" = set; then
5426   enableval=$enable_bindings;
5427 else
5428   enableval=default
5429 fi
5430
5431 BINDINGS_TO_BUILD=""
5432 case "$enableval" in
5433   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5434   all ) BINDINGS_TO_BUILD="ocaml" ;;
5435   none | no) BINDINGS_TO_BUILD="" ;;
5436   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5437       case "$a_binding" in
5438         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5439         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5440 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5441    { (exit 1); exit 1; }; } ;;
5442       esac
5443   done
5444   ;;
5445 esac
5446
5447
5448 # Check whether --with-ocaml-libdir was given.
5449 if test "${with_ocaml_libdir+set}" = set; then
5450   withval=$with_ocaml_libdir;
5451 else
5452   withval=auto
5453 fi
5454
5455 case "$withval" in
5456   auto) with_ocaml_libdir="$withval" ;;
5457   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5458   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5459 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5460    { (exit 1); exit 1; }; } ;;
5461 esac
5462
5463
5464 # Check whether --with-clang-resource-dir was given.
5465 if test "${with_clang_resource_dir+set}" = set; then
5466   withval=$with_clang_resource_dir;
5467 else
5468   withval=""
5469 fi
5470
5471
5472 cat >>confdefs.h <<_ACEOF
5473 #define CLANG_RESOURCE_DIR "$withval"
5474 _ACEOF
5475
5476
5477
5478 # Check whether --with-c-include-dirs was given.
5479 if test "${with_c_include_dirs+set}" = set; then
5480   withval=$with_c_include_dirs;
5481 else
5482   withval=""
5483 fi
5484
5485
5486 cat >>confdefs.h <<_ACEOF
5487 #define C_INCLUDE_DIRS "$withval"
5488 _ACEOF
5489
5490
5491 # Clang normally uses the system c++ headers and libraries. With this option,
5492 # clang will use the ones provided by a gcc installation instead. This option should
5493 # be passed the same value that was used with --prefix when configuring gcc.
5494
5495 # Check whether --with-gcc-toolchain was given.
5496 if test "${with_gcc_toolchain+set}" = set; then
5497   withval=$with_gcc_toolchain;
5498 else
5499   withval=""
5500 fi
5501
5502
5503 cat >>confdefs.h <<_ACEOF
5504 #define GCC_INSTALL_PREFIX "$withval"
5505 _ACEOF
5506
5507
5508
5509 # Check whether --with-binutils-include was given.
5510 if test "${with_binutils_include+set}" = set; then
5511   withval=$with_binutils_include;
5512 else
5513   withval=default
5514 fi
5515
5516 case "$withval" in
5517   default) WITH_BINUTILS_INCDIR=default ;;
5518   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5519   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5520 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5521    { (exit 1); exit 1; }; } ;;
5522 esac
5523 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5524   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5525
5526   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5527      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5528      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5529 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5530    { (exit 1); exit 1; }; };
5531   fi
5532 fi
5533
5534
5535 # Check whether --with-bug-report-url was given.
5536 if test "${with_bug_report_url+set}" = set; then
5537   withval=$with_bug_report_url;
5538 else
5539   withval="http://llvm.org/bugs/"
5540 fi
5541
5542
5543 cat >>confdefs.h <<_ACEOF
5544 #define BUG_REPORT_URL "$withval"
5545 _ACEOF
5546
5547
5548 # Check whether --enable-libffi was given.
5549 if test "${enable_libffi+set}" = set; then
5550   enableval=$enable_libffi; case "$enableval" in
5551     yes) llvm_cv_enable_libffi="yes" ;;
5552     no)  llvm_cv_enable_libffi="no"  ;;
5553     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5554 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5555    { (exit 1); exit 1; }; } ;;
5556   esac
5557 else
5558   llvm_cv_enable_libffi=no
5559 fi
5560
5561
5562
5563 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5564 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5565 if test "${lt_cv_path_NM+set}" = set; then
5566   echo $ECHO_N "(cached) $ECHO_C" >&6
5567 else
5568   if test -n "$NM"; then
5569   # Let the user override the test.
5570   lt_cv_path_NM="$NM"
5571 else
5572   lt_nm_to_check="${ac_tool_prefix}nm"
5573   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5574     lt_nm_to_check="$lt_nm_to_check nm"
5575   fi
5576   for lt_tmp_nm in $lt_nm_to_check; do
5577     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5578     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5579       IFS="$lt_save_ifs"
5580       test -z "$ac_dir" && ac_dir=.
5581       tmp_nm="$ac_dir/$lt_tmp_nm"
5582       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5583         # Check to see if the nm accepts a BSD-compat flag.
5584         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5585         #   nm: unknown option "B" ignored
5586         # Tru64's nm complains that /dev/null is an invalid object file
5587         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5588         */dev/null* | *'Invalid file or object type'*)
5589           lt_cv_path_NM="$tmp_nm -B"
5590           break
5591           ;;
5592         *)
5593           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5594           */dev/null*)
5595             lt_cv_path_NM="$tmp_nm -p"
5596             break
5597             ;;
5598           *)
5599             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5600             continue # so that we can try to find one that supports BSD flags
5601             ;;
5602           esac
5603           ;;
5604         esac
5605       fi
5606     done
5607     IFS="$lt_save_ifs"
5608   done
5609   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5610 fi
5611 fi
5612 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5613 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5614 NM="$lt_cv_path_NM"
5615
5616
5617
5618 { echo "$as_me:$LINENO: checking for GNU make" >&5
5619 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5620 if test "${llvm_cv_gnu_make_command+set}" = set; then
5621   echo $ECHO_N "(cached) $ECHO_C" >&6
5622 else
5623   llvm_cv_gnu_make_command=''
5624  for a in "$MAKE" make gmake gnumake ; do
5625   if test -z "$a" ; then continue ; fi ;
5626   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5627   then
5628    llvm_cv_gnu_make_command=$a ;
5629    break;
5630   fi
5631  done
5632 fi
5633 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5634 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5635  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5636    ifGNUmake='' ;
5637  else
5638    ifGNUmake='#' ;
5639    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5640 echo "${ECHO_T}\"Not found\"" >&6; };
5641  fi
5642
5643
5644 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5645 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5646 LN_S=$as_ln_s
5647 if test "$LN_S" = "ln -s"; then
5648   { echo "$as_me:$LINENO: result: yes" >&5
5649 echo "${ECHO_T}yes" >&6; }
5650 else
5651   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5652 echo "${ECHO_T}no, using $LN_S" >&6; }
5653 fi
5654
5655 # Extract the first word of "cmp", so it can be a program name with args.
5656 set dummy cmp; ac_word=$2
5657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5659 if test "${ac_cv_path_CMP+set}" = set; then
5660   echo $ECHO_N "(cached) $ECHO_C" >&6
5661 else
5662   case $CMP in
5663   [\\/]* | ?:[\\/]*)
5664   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5665   ;;
5666   *)
5667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668 for as_dir in $PATH
5669 do
5670   IFS=$as_save_IFS
5671   test -z "$as_dir" && as_dir=.
5672   for ac_exec_ext in '' $ac_executable_extensions; do
5673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5674     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5676     break 2
5677   fi
5678 done
5679 done
5680 IFS=$as_save_IFS
5681
5682   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5683   ;;
5684 esac
5685 fi
5686 CMP=$ac_cv_path_CMP
5687 if test -n "$CMP"; then
5688   { echo "$as_me:$LINENO: result: $CMP" >&5
5689 echo "${ECHO_T}$CMP" >&6; }
5690 else
5691   { echo "$as_me:$LINENO: result: no" >&5
5692 echo "${ECHO_T}no" >&6; }
5693 fi
5694
5695
5696 # Extract the first word of "cp", so it can be a program name with args.
5697 set dummy cp; ac_word=$2
5698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5700 if test "${ac_cv_path_CP+set}" = set; then
5701   echo $ECHO_N "(cached) $ECHO_C" >&6
5702 else
5703   case $CP in
5704   [\\/]* | ?:[\\/]*)
5705   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5706   ;;
5707   *)
5708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709 for as_dir in $PATH
5710 do
5711   IFS=$as_save_IFS
5712   test -z "$as_dir" && as_dir=.
5713   for ac_exec_ext in '' $ac_executable_extensions; do
5714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5715     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5717     break 2
5718   fi
5719 done
5720 done
5721 IFS=$as_save_IFS
5722
5723   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5724   ;;
5725 esac
5726 fi
5727 CP=$ac_cv_path_CP
5728 if test -n "$CP"; then
5729   { echo "$as_me:$LINENO: result: $CP" >&5
5730 echo "${ECHO_T}$CP" >&6; }
5731 else
5732   { echo "$as_me:$LINENO: result: no" >&5
5733 echo "${ECHO_T}no" >&6; }
5734 fi
5735
5736
5737 # Extract the first word of "date", so it can be a program name with args.
5738 set dummy date; ac_word=$2
5739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5741 if test "${ac_cv_path_DATE+set}" = set; then
5742   echo $ECHO_N "(cached) $ECHO_C" >&6
5743 else
5744   case $DATE in
5745   [\\/]* | ?:[\\/]*)
5746   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5747   ;;
5748   *)
5749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750 for as_dir in $PATH
5751 do
5752   IFS=$as_save_IFS
5753   test -z "$as_dir" && as_dir=.
5754   for ac_exec_ext in '' $ac_executable_extensions; do
5755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5756     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5758     break 2
5759   fi
5760 done
5761 done
5762 IFS=$as_save_IFS
5763
5764   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5765   ;;
5766 esac
5767 fi
5768 DATE=$ac_cv_path_DATE
5769 if test -n "$DATE"; then
5770   { echo "$as_me:$LINENO: result: $DATE" >&5
5771 echo "${ECHO_T}$DATE" >&6; }
5772 else
5773   { echo "$as_me:$LINENO: result: no" >&5
5774 echo "${ECHO_T}no" >&6; }
5775 fi
5776
5777
5778 # Extract the first word of "find", so it can be a program name with args.
5779 set dummy find; ac_word=$2
5780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5782 if test "${ac_cv_path_FIND+set}" = set; then
5783   echo $ECHO_N "(cached) $ECHO_C" >&6
5784 else
5785   case $FIND in
5786   [\\/]* | ?:[\\/]*)
5787   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5788   ;;
5789   *)
5790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791 for as_dir in $PATH
5792 do
5793   IFS=$as_save_IFS
5794   test -z "$as_dir" && as_dir=.
5795   for ac_exec_ext in '' $ac_executable_extensions; do
5796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5797     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5799     break 2
5800   fi
5801 done
5802 done
5803 IFS=$as_save_IFS
5804
5805   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5806   ;;
5807 esac
5808 fi
5809 FIND=$ac_cv_path_FIND
5810 if test -n "$FIND"; then
5811   { echo "$as_me:$LINENO: result: $FIND" >&5
5812 echo "${ECHO_T}$FIND" >&6; }
5813 else
5814   { echo "$as_me:$LINENO: result: no" >&5
5815 echo "${ECHO_T}no" >&6; }
5816 fi
5817
5818
5819 # Extract the first word of "grep", so it can be a program name with args.
5820 set dummy grep; ac_word=$2
5821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5823 if test "${ac_cv_path_GREP+set}" = set; then
5824   echo $ECHO_N "(cached) $ECHO_C" >&6
5825 else
5826   case $GREP in
5827   [\\/]* | ?:[\\/]*)
5828   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5829   ;;
5830   *)
5831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832 for as_dir in $PATH
5833 do
5834   IFS=$as_save_IFS
5835   test -z "$as_dir" && as_dir=.
5836   for ac_exec_ext in '' $ac_executable_extensions; do
5837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5838     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5840     break 2
5841   fi
5842 done
5843 done
5844 IFS=$as_save_IFS
5845
5846   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5847   ;;
5848 esac
5849 fi
5850 GREP=$ac_cv_path_GREP
5851 if test -n "$GREP"; then
5852   { echo "$as_me:$LINENO: result: $GREP" >&5
5853 echo "${ECHO_T}$GREP" >&6; }
5854 else
5855   { echo "$as_me:$LINENO: result: no" >&5
5856 echo "${ECHO_T}no" >&6; }
5857 fi
5858
5859
5860 # Extract the first word of "mkdir", so it can be a program name with args.
5861 set dummy mkdir; ac_word=$2
5862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5864 if test "${ac_cv_path_MKDIR+set}" = set; then
5865   echo $ECHO_N "(cached) $ECHO_C" >&6
5866 else
5867   case $MKDIR in
5868   [\\/]* | ?:[\\/]*)
5869   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5870   ;;
5871   *)
5872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 for as_dir in $PATH
5874 do
5875   IFS=$as_save_IFS
5876   test -z "$as_dir" && as_dir=.
5877   for ac_exec_ext in '' $ac_executable_extensions; do
5878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5879     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5881     break 2
5882   fi
5883 done
5884 done
5885 IFS=$as_save_IFS
5886
5887   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5888   ;;
5889 esac
5890 fi
5891 MKDIR=$ac_cv_path_MKDIR
5892 if test -n "$MKDIR"; then
5893   { echo "$as_me:$LINENO: result: $MKDIR" >&5
5894 echo "${ECHO_T}$MKDIR" >&6; }
5895 else
5896   { echo "$as_me:$LINENO: result: no" >&5
5897 echo "${ECHO_T}no" >&6; }
5898 fi
5899
5900
5901 # Extract the first word of "mv", so it can be a program name with args.
5902 set dummy mv; ac_word=$2
5903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5905 if test "${ac_cv_path_MV+set}" = set; then
5906   echo $ECHO_N "(cached) $ECHO_C" >&6
5907 else
5908   case $MV in
5909   [\\/]* | ?:[\\/]*)
5910   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5911   ;;
5912   *)
5913   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914 for as_dir in $PATH
5915 do
5916   IFS=$as_save_IFS
5917   test -z "$as_dir" && as_dir=.
5918   for ac_exec_ext in '' $ac_executable_extensions; do
5919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5920     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5922     break 2
5923   fi
5924 done
5925 done
5926 IFS=$as_save_IFS
5927
5928   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5929   ;;
5930 esac
5931 fi
5932 MV=$ac_cv_path_MV
5933 if test -n "$MV"; then
5934   { echo "$as_me:$LINENO: result: $MV" >&5
5935 echo "${ECHO_T}$MV" >&6; }
5936 else
5937   { echo "$as_me:$LINENO: result: no" >&5
5938 echo "${ECHO_T}no" >&6; }
5939 fi
5940
5941
5942 if test -n "$ac_tool_prefix"; then
5943   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5944 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5947 if test "${ac_cv_prog_RANLIB+set}" = set; then
5948   echo $ECHO_N "(cached) $ECHO_C" >&6
5949 else
5950   if test -n "$RANLIB"; then
5951   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5952 else
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954 for as_dir in $PATH
5955 do
5956   IFS=$as_save_IFS
5957   test -z "$as_dir" && as_dir=.
5958   for ac_exec_ext in '' $ac_executable_extensions; do
5959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5960     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5962     break 2
5963   fi
5964 done
5965 done
5966 IFS=$as_save_IFS
5967
5968 fi
5969 fi
5970 RANLIB=$ac_cv_prog_RANLIB
5971 if test -n "$RANLIB"; then
5972   { echo "$as_me:$LINENO: result: $RANLIB" >&5
5973 echo "${ECHO_T}$RANLIB" >&6; }
5974 else
5975   { echo "$as_me:$LINENO: result: no" >&5
5976 echo "${ECHO_T}no" >&6; }
5977 fi
5978
5979
5980 fi
5981 if test -z "$ac_cv_prog_RANLIB"; then
5982   ac_ct_RANLIB=$RANLIB
5983   # Extract the first word of "ranlib", so it can be a program name with args.
5984 set dummy ranlib; ac_word=$2
5985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5987 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5988   echo $ECHO_N "(cached) $ECHO_C" >&6
5989 else
5990   if test -n "$ac_ct_RANLIB"; then
5991   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5992 else
5993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994 for as_dir in $PATH
5995 do
5996   IFS=$as_save_IFS
5997   test -z "$as_dir" && as_dir=.
5998   for ac_exec_ext in '' $ac_executable_extensions; do
5999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6000     ac_cv_prog_ac_ct_RANLIB="ranlib"
6001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6002     break 2
6003   fi
6004 done
6005 done
6006 IFS=$as_save_IFS
6007
6008 fi
6009 fi
6010 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6011 if test -n "$ac_ct_RANLIB"; then
6012   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6013 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6014 else
6015   { echo "$as_me:$LINENO: result: no" >&5
6016 echo "${ECHO_T}no" >&6; }
6017 fi
6018
6019   if test "x$ac_ct_RANLIB" = x; then
6020     RANLIB=":"
6021   else
6022     case $cross_compiling:$ac_tool_warned in
6023 yes:)
6024 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6025 whose name does not start with the host triplet.  If you think this
6026 configuration is useful to you, please write to autoconf@gnu.org." >&5
6027 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6028 whose name does not start with the host triplet.  If you think this
6029 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6030 ac_tool_warned=yes ;;
6031 esac
6032     RANLIB=$ac_ct_RANLIB
6033   fi
6034 else
6035   RANLIB="$ac_cv_prog_RANLIB"
6036 fi
6037
6038 if test -n "$ac_tool_prefix"; then
6039   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6040 set dummy ${ac_tool_prefix}ar; ac_word=$2
6041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6043 if test "${ac_cv_prog_AR+set}" = set; then
6044   echo $ECHO_N "(cached) $ECHO_C" >&6
6045 else
6046   if test -n "$AR"; then
6047   ac_cv_prog_AR="$AR" # Let the user override the test.
6048 else
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050 for as_dir in $PATH
6051 do
6052   IFS=$as_save_IFS
6053   test -z "$as_dir" && as_dir=.
6054   for ac_exec_ext in '' $ac_executable_extensions; do
6055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6056     ac_cv_prog_AR="${ac_tool_prefix}ar"
6057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6058     break 2
6059   fi
6060 done
6061 done
6062 IFS=$as_save_IFS
6063
6064 fi
6065 fi
6066 AR=$ac_cv_prog_AR
6067 if test -n "$AR"; then
6068   { echo "$as_me:$LINENO: result: $AR" >&5
6069 echo "${ECHO_T}$AR" >&6; }
6070 else
6071   { echo "$as_me:$LINENO: result: no" >&5
6072 echo "${ECHO_T}no" >&6; }
6073 fi
6074
6075
6076 fi
6077 if test -z "$ac_cv_prog_AR"; then
6078   ac_ct_AR=$AR
6079   # Extract the first word of "ar", so it can be a program name with args.
6080 set dummy ar; ac_word=$2
6081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6083 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6084   echo $ECHO_N "(cached) $ECHO_C" >&6
6085 else
6086   if test -n "$ac_ct_AR"; then
6087   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6088 else
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090 for as_dir in $PATH
6091 do
6092   IFS=$as_save_IFS
6093   test -z "$as_dir" && as_dir=.
6094   for ac_exec_ext in '' $ac_executable_extensions; do
6095   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6096     ac_cv_prog_ac_ct_AR="ar"
6097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6098     break 2
6099   fi
6100 done
6101 done
6102 IFS=$as_save_IFS
6103
6104 fi
6105 fi
6106 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6107 if test -n "$ac_ct_AR"; then
6108   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6109 echo "${ECHO_T}$ac_ct_AR" >&6; }
6110 else
6111   { echo "$as_me:$LINENO: result: no" >&5
6112 echo "${ECHO_T}no" >&6; }
6113 fi
6114
6115   if test "x$ac_ct_AR" = x; then
6116     AR="false"
6117   else
6118     case $cross_compiling:$ac_tool_warned in
6119 yes:)
6120 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6121 whose name does not start with the host triplet.  If you think this
6122 configuration is useful to you, please write to autoconf@gnu.org." >&5
6123 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6124 whose name does not start with the host triplet.  If you think this
6125 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6126 ac_tool_warned=yes ;;
6127 esac
6128     AR=$ac_ct_AR
6129   fi
6130 else
6131   AR="$ac_cv_prog_AR"
6132 fi
6133
6134 # Extract the first word of "rm", so it can be a program name with args.
6135 set dummy rm; ac_word=$2
6136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6138 if test "${ac_cv_path_RM+set}" = set; then
6139   echo $ECHO_N "(cached) $ECHO_C" >&6
6140 else
6141   case $RM in
6142   [\\/]* | ?:[\\/]*)
6143   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6144   ;;
6145   *)
6146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147 for as_dir in $PATH
6148 do
6149   IFS=$as_save_IFS
6150   test -z "$as_dir" && as_dir=.
6151   for ac_exec_ext in '' $ac_executable_extensions; do
6152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6153     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6155     break 2
6156   fi
6157 done
6158 done
6159 IFS=$as_save_IFS
6160
6161   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6162   ;;
6163 esac
6164 fi
6165 RM=$ac_cv_path_RM
6166 if test -n "$RM"; then
6167   { echo "$as_me:$LINENO: result: $RM" >&5
6168 echo "${ECHO_T}$RM" >&6; }
6169 else
6170   { echo "$as_me:$LINENO: result: no" >&5
6171 echo "${ECHO_T}no" >&6; }
6172 fi
6173
6174
6175 # Extract the first word of "sed", so it can be a program name with args.
6176 set dummy sed; ac_word=$2
6177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6179 if test "${ac_cv_path_SED+set}" = set; then
6180   echo $ECHO_N "(cached) $ECHO_C" >&6
6181 else
6182   case $SED in
6183   [\\/]* | ?:[\\/]*)
6184   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6185   ;;
6186   *)
6187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188 for as_dir in $PATH
6189 do
6190   IFS=$as_save_IFS
6191   test -z "$as_dir" && as_dir=.
6192   for ac_exec_ext in '' $ac_executable_extensions; do
6193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6194     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6196     break 2
6197   fi
6198 done
6199 done
6200 IFS=$as_save_IFS
6201
6202   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6203   ;;
6204 esac
6205 fi
6206 SED=$ac_cv_path_SED
6207 if test -n "$SED"; then
6208   { echo "$as_me:$LINENO: result: $SED" >&5
6209 echo "${ECHO_T}$SED" >&6; }
6210 else
6211   { echo "$as_me:$LINENO: result: no" >&5
6212 echo "${ECHO_T}no" >&6; }
6213 fi
6214
6215
6216 # Extract the first word of "tar", so it can be a program name with args.
6217 set dummy tar; ac_word=$2
6218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6220 if test "${ac_cv_path_TAR+set}" = set; then
6221   echo $ECHO_N "(cached) $ECHO_C" >&6
6222 else
6223   case $TAR in
6224   [\\/]* | ?:[\\/]*)
6225   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6226   ;;
6227   *)
6228   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229 for as_dir in $PATH
6230 do
6231   IFS=$as_save_IFS
6232   test -z "$as_dir" && as_dir=.
6233   for ac_exec_ext in '' $ac_executable_extensions; do
6234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6235     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6237     break 2
6238   fi
6239 done
6240 done
6241 IFS=$as_save_IFS
6242
6243   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6244   ;;
6245 esac
6246 fi
6247 TAR=$ac_cv_path_TAR
6248 if test -n "$TAR"; then
6249   { echo "$as_me:$LINENO: result: $TAR" >&5
6250 echo "${ECHO_T}$TAR" >&6; }
6251 else
6252   { echo "$as_me:$LINENO: result: no" >&5
6253 echo "${ECHO_T}no" >&6; }
6254 fi
6255
6256
6257 # Extract the first word of "pwd", so it can be a program name with args.
6258 set dummy pwd; ac_word=$2
6259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6261 if test "${ac_cv_path_BINPWD+set}" = set; then
6262   echo $ECHO_N "(cached) $ECHO_C" >&6
6263 else
6264   case $BINPWD in
6265   [\\/]* | ?:[\\/]*)
6266   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6267   ;;
6268   *)
6269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270 for as_dir in $PATH
6271 do
6272   IFS=$as_save_IFS
6273   test -z "$as_dir" && as_dir=.
6274   for ac_exec_ext in '' $ac_executable_extensions; do
6275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6276     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6278     break 2
6279   fi
6280 done
6281 done
6282 IFS=$as_save_IFS
6283
6284   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6285   ;;
6286 esac
6287 fi
6288 BINPWD=$ac_cv_path_BINPWD
6289 if test -n "$BINPWD"; then
6290   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6291 echo "${ECHO_T}$BINPWD" >&6; }
6292 else
6293   { echo "$as_me:$LINENO: result: no" >&5
6294 echo "${ECHO_T}no" >&6; }
6295 fi
6296
6297
6298
6299 # Extract the first word of "Graphviz", so it can be a program name with args.
6300 set dummy Graphviz; ac_word=$2
6301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6303 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6304   echo $ECHO_N "(cached) $ECHO_C" >&6
6305 else
6306   case $GRAPHVIZ in
6307   [\\/]* | ?:[\\/]*)
6308   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6309   ;;
6310   *)
6311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312 for as_dir in $PATH
6313 do
6314   IFS=$as_save_IFS
6315   test -z "$as_dir" && as_dir=.
6316   for ac_exec_ext in '' $ac_executable_extensions; do
6317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6318     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6320     break 2
6321   fi
6322 done
6323 done
6324 IFS=$as_save_IFS
6325
6326   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6327   ;;
6328 esac
6329 fi
6330 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6331 if test -n "$GRAPHVIZ"; then
6332   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6333 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6334 else
6335   { echo "$as_me:$LINENO: result: no" >&5
6336 echo "${ECHO_T}no" >&6; }
6337 fi
6338
6339
6340 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6341
6342 cat >>confdefs.h <<\_ACEOF
6343 #define HAVE_GRAPHVIZ 1
6344 _ACEOF
6345
6346     if test "$llvm_cv_os_type" = "MingW" ; then
6347     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6348   fi
6349
6350 cat >>confdefs.h <<_ACEOF
6351 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6352 _ACEOF
6353
6354 fi
6355 # Extract the first word of "dot", so it can be a program name with args.
6356 set dummy dot; ac_word=$2
6357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6359 if test "${ac_cv_path_DOT+set}" = set; then
6360   echo $ECHO_N "(cached) $ECHO_C" >&6
6361 else
6362   case $DOT in
6363   [\\/]* | ?:[\\/]*)
6364   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6365   ;;
6366   *)
6367   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368 for as_dir in $PATH
6369 do
6370   IFS=$as_save_IFS
6371   test -z "$as_dir" && as_dir=.
6372   for ac_exec_ext in '' $ac_executable_extensions; do
6373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6374     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6376     break 2
6377   fi
6378 done
6379 done
6380 IFS=$as_save_IFS
6381
6382   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6383   ;;
6384 esac
6385 fi
6386 DOT=$ac_cv_path_DOT
6387 if test -n "$DOT"; then
6388   { echo "$as_me:$LINENO: result: $DOT" >&5
6389 echo "${ECHO_T}$DOT" >&6; }
6390 else
6391   { echo "$as_me:$LINENO: result: no" >&5
6392 echo "${ECHO_T}no" >&6; }
6393 fi
6394
6395
6396 if test "$DOT" != "echo dot" ; then
6397
6398 cat >>confdefs.h <<\_ACEOF
6399 #define HAVE_DOT 1
6400 _ACEOF
6401
6402     if test "$llvm_cv_os_type" = "MingW" ; then
6403     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6404   fi
6405
6406 cat >>confdefs.h <<_ACEOF
6407 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6408 _ACEOF
6409
6410 fi
6411 # Extract the first word of "fdp", so it can be a program name with args.
6412 set dummy fdp; ac_word=$2
6413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6415 if test "${ac_cv_path_FDP+set}" = set; then
6416   echo $ECHO_N "(cached) $ECHO_C" >&6
6417 else
6418   case $FDP in
6419   [\\/]* | ?:[\\/]*)
6420   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6421   ;;
6422   *)
6423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424 for as_dir in $PATH
6425 do
6426   IFS=$as_save_IFS
6427   test -z "$as_dir" && as_dir=.
6428   for ac_exec_ext in '' $ac_executable_extensions; do
6429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6430     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6432     break 2
6433   fi
6434 done
6435 done
6436 IFS=$as_save_IFS
6437
6438   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6439   ;;
6440 esac
6441 fi
6442 FDP=$ac_cv_path_FDP
6443 if test -n "$FDP"; then
6444   { echo "$as_me:$LINENO: result: $FDP" >&5
6445 echo "${ECHO_T}$FDP" >&6; }
6446 else
6447   { echo "$as_me:$LINENO: result: no" >&5
6448 echo "${ECHO_T}no" >&6; }
6449 fi
6450
6451
6452 if test "$FDP" != "echo fdp" ; then
6453
6454 cat >>confdefs.h <<\_ACEOF
6455 #define HAVE_FDP 1
6456 _ACEOF
6457
6458     if test "$llvm_cv_os_type" = "MingW" ; then
6459     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6460   fi
6461
6462 cat >>confdefs.h <<_ACEOF
6463 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6464 _ACEOF
6465
6466 fi
6467 # Extract the first word of "neato", so it can be a program name with args.
6468 set dummy neato; ac_word=$2
6469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6471 if test "${ac_cv_path_NEATO+set}" = set; then
6472   echo $ECHO_N "(cached) $ECHO_C" >&6
6473 else
6474   case $NEATO in
6475   [\\/]* | ?:[\\/]*)
6476   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6477   ;;
6478   *)
6479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480 for as_dir in $PATH
6481 do
6482   IFS=$as_save_IFS
6483   test -z "$as_dir" && as_dir=.
6484   for ac_exec_ext in '' $ac_executable_extensions; do
6485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6486     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6487     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6488     break 2
6489   fi
6490 done
6491 done
6492 IFS=$as_save_IFS
6493
6494   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6495   ;;
6496 esac
6497 fi
6498 NEATO=$ac_cv_path_NEATO
6499 if test -n "$NEATO"; then
6500   { echo "$as_me:$LINENO: result: $NEATO" >&5
6501 echo "${ECHO_T}$NEATO" >&6; }
6502 else
6503   { echo "$as_me:$LINENO: result: no" >&5
6504 echo "${ECHO_T}no" >&6; }
6505 fi
6506
6507
6508 if test "$NEATO" != "echo neato" ; then
6509
6510 cat >>confdefs.h <<\_ACEOF
6511 #define HAVE_NEATO 1
6512 _ACEOF
6513
6514     if test "$llvm_cv_os_type" = "MingW" ; then
6515     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6516   fi
6517
6518 cat >>confdefs.h <<_ACEOF
6519 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6520 _ACEOF
6521
6522 fi
6523 # Extract the first word of "twopi", so it can be a program name with args.
6524 set dummy twopi; ac_word=$2
6525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6527 if test "${ac_cv_path_TWOPI+set}" = set; then
6528   echo $ECHO_N "(cached) $ECHO_C" >&6
6529 else
6530   case $TWOPI in
6531   [\\/]* | ?:[\\/]*)
6532   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6533   ;;
6534   *)
6535   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536 for as_dir in $PATH
6537 do
6538   IFS=$as_save_IFS
6539   test -z "$as_dir" && as_dir=.
6540   for ac_exec_ext in '' $ac_executable_extensions; do
6541   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6542     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6544     break 2
6545   fi
6546 done
6547 done
6548 IFS=$as_save_IFS
6549
6550   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6551   ;;
6552 esac
6553 fi
6554 TWOPI=$ac_cv_path_TWOPI
6555 if test -n "$TWOPI"; then
6556   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6557 echo "${ECHO_T}$TWOPI" >&6; }
6558 else
6559   { echo "$as_me:$LINENO: result: no" >&5
6560 echo "${ECHO_T}no" >&6; }
6561 fi
6562
6563
6564 if test "$TWOPI" != "echo twopi" ; then
6565
6566 cat >>confdefs.h <<\_ACEOF
6567 #define HAVE_TWOPI 1
6568 _ACEOF
6569
6570     if test "$llvm_cv_os_type" = "MingW" ; then
6571     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6572   fi
6573
6574 cat >>confdefs.h <<_ACEOF
6575 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6576 _ACEOF
6577
6578 fi
6579 # Extract the first word of "circo", so it can be a program name with args.
6580 set dummy circo; ac_word=$2
6581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6583 if test "${ac_cv_path_CIRCO+set}" = set; then
6584   echo $ECHO_N "(cached) $ECHO_C" >&6
6585 else
6586   case $CIRCO in
6587   [\\/]* | ?:[\\/]*)
6588   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6589   ;;
6590   *)
6591   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592 for as_dir in $PATH
6593 do
6594   IFS=$as_save_IFS
6595   test -z "$as_dir" && as_dir=.
6596   for ac_exec_ext in '' $ac_executable_extensions; do
6597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6598     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6600     break 2
6601   fi
6602 done
6603 done
6604 IFS=$as_save_IFS
6605
6606   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6607   ;;
6608 esac
6609 fi
6610 CIRCO=$ac_cv_path_CIRCO
6611 if test -n "$CIRCO"; then
6612   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6613 echo "${ECHO_T}$CIRCO" >&6; }
6614 else
6615   { echo "$as_me:$LINENO: result: no" >&5
6616 echo "${ECHO_T}no" >&6; }
6617 fi
6618
6619
6620 if test "$CIRCO" != "echo circo" ; then
6621
6622 cat >>confdefs.h <<\_ACEOF
6623 #define HAVE_CIRCO 1
6624 _ACEOF
6625
6626     if test "$llvm_cv_os_type" = "MingW" ; then
6627     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6628   fi
6629
6630 cat >>confdefs.h <<_ACEOF
6631 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6632 _ACEOF
6633
6634 fi
6635 for ac_prog in gv gsview32
6636 do
6637   # Extract the first word of "$ac_prog", so it can be a program name with args.
6638 set dummy $ac_prog; ac_word=$2
6639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6641 if test "${ac_cv_path_GV+set}" = set; then
6642   echo $ECHO_N "(cached) $ECHO_C" >&6
6643 else
6644   case $GV in
6645   [\\/]* | ?:[\\/]*)
6646   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6647   ;;
6648   *)
6649   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650 for as_dir in $PATH
6651 do
6652   IFS=$as_save_IFS
6653   test -z "$as_dir" && as_dir=.
6654   for ac_exec_ext in '' $ac_executable_extensions; do
6655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6656     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6658     break 2
6659   fi
6660 done
6661 done
6662 IFS=$as_save_IFS
6663
6664   ;;
6665 esac
6666 fi
6667 GV=$ac_cv_path_GV
6668 if test -n "$GV"; then
6669   { echo "$as_me:$LINENO: result: $GV" >&5
6670 echo "${ECHO_T}$GV" >&6; }
6671 else
6672   { echo "$as_me:$LINENO: result: no" >&5
6673 echo "${ECHO_T}no" >&6; }
6674 fi
6675
6676
6677   test -n "$GV" && break
6678 done
6679 test -n "$GV" || GV="echo gv"
6680
6681 if test "$GV" != "echo gv" ; then
6682
6683 cat >>confdefs.h <<\_ACEOF
6684 #define HAVE_GV 1
6685 _ACEOF
6686
6687     if test "$llvm_cv_os_type" = "MingW" ; then
6688     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6689   fi
6690
6691 cat >>confdefs.h <<_ACEOF
6692 #define LLVM_PATH_GV "$GV${EXEEXT}"
6693 _ACEOF
6694
6695 fi
6696 # Extract the first word of "dotty", so it can be a program name with args.
6697 set dummy dotty; ac_word=$2
6698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6700 if test "${ac_cv_path_DOTTY+set}" = set; then
6701   echo $ECHO_N "(cached) $ECHO_C" >&6
6702 else
6703   case $DOTTY in
6704   [\\/]* | ?:[\\/]*)
6705   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6706   ;;
6707   *)
6708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709 for as_dir in $PATH
6710 do
6711   IFS=$as_save_IFS
6712   test -z "$as_dir" && as_dir=.
6713   for ac_exec_ext in '' $ac_executable_extensions; do
6714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6715     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6717     break 2
6718   fi
6719 done
6720 done
6721 IFS=$as_save_IFS
6722
6723   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6724   ;;
6725 esac
6726 fi
6727 DOTTY=$ac_cv_path_DOTTY
6728 if test -n "$DOTTY"; then
6729   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6730 echo "${ECHO_T}$DOTTY" >&6; }
6731 else
6732   { echo "$as_me:$LINENO: result: no" >&5
6733 echo "${ECHO_T}no" >&6; }
6734 fi
6735
6736
6737 if test "$DOTTY" != "echo dotty" ; then
6738
6739 cat >>confdefs.h <<\_ACEOF
6740 #define HAVE_DOTTY 1
6741 _ACEOF
6742
6743     if test "$llvm_cv_os_type" = "MingW" ; then
6744     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6745   fi
6746
6747 cat >>confdefs.h <<_ACEOF
6748 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6749 _ACEOF
6750
6751 fi
6752 # Extract the first word of "xdot.py", so it can be a program name with args.
6753 set dummy xdot.py; ac_word=$2
6754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6756 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6757   echo $ECHO_N "(cached) $ECHO_C" >&6
6758 else
6759   case $XDOT_PY in
6760   [\\/]* | ?:[\\/]*)
6761   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6762   ;;
6763   *)
6764   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 for as_dir in $PATH
6766 do
6767   IFS=$as_save_IFS
6768   test -z "$as_dir" && as_dir=.
6769   for ac_exec_ext in '' $ac_executable_extensions; do
6770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6771     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6773     break 2
6774   fi
6775 done
6776 done
6777 IFS=$as_save_IFS
6778
6779   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6780   ;;
6781 esac
6782 fi
6783 XDOT_PY=$ac_cv_path_XDOT_PY
6784 if test -n "$XDOT_PY"; then
6785   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6786 echo "${ECHO_T}$XDOT_PY" >&6; }
6787 else
6788   { echo "$as_me:$LINENO: result: no" >&5
6789 echo "${ECHO_T}no" >&6; }
6790 fi
6791
6792
6793 if test "$XDOT_PY" != "echo xdot.py" ; then
6794
6795 cat >>confdefs.h <<\_ACEOF
6796 #define HAVE_XDOT_PY 1
6797 _ACEOF
6798
6799     if test "$llvm_cv_os_type" = "MingW" ; then
6800     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6801   fi
6802
6803 cat >>confdefs.h <<_ACEOF
6804 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6805 _ACEOF
6806
6807 fi
6808
6809
6810 # Extract the first word of "perl", so it can be a program name with args.
6811 set dummy perl; ac_word=$2
6812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6814 if test "${ac_cv_path_PERL+set}" = set; then
6815   echo $ECHO_N "(cached) $ECHO_C" >&6
6816 else
6817   case $PERL in
6818   [\\/]* | ?:[\\/]*)
6819   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6820   ;;
6821   *)
6822   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 for as_dir in $PATH
6824 do
6825   IFS=$as_save_IFS
6826   test -z "$as_dir" && as_dir=.
6827   for ac_exec_ext in '' $ac_executable_extensions; do
6828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6829     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6831     break 2
6832   fi
6833 done
6834 done
6835 IFS=$as_save_IFS
6836
6837   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6838   ;;
6839 esac
6840 fi
6841 PERL=$ac_cv_path_PERL
6842 if test -n "$PERL"; then
6843   { echo "$as_me:$LINENO: result: $PERL" >&5
6844 echo "${ECHO_T}$PERL" >&6; }
6845 else
6846   { echo "$as_me:$LINENO: result: no" >&5
6847 echo "${ECHO_T}no" >&6; }
6848 fi
6849
6850
6851 if test "$PERL" != "none"; then
6852   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6853 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6854   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6855     { echo "$as_me:$LINENO: result: yes" >&5
6856 echo "${ECHO_T}yes" >&6; }
6857   else
6858     PERL=none
6859     { echo "$as_me:$LINENO: result: not found" >&5
6860 echo "${ECHO_T}not found" >&6; }
6861   fi
6862 fi
6863
6864
6865 if test x"$PERL" = xnone; then
6866    HAVE_PERL=0
6867
6868    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6869 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6870    { (exit 1); exit 1; }; }
6871 else
6872    HAVE_PERL=1
6873
6874 fi
6875
6876 # Find a good install program.  We prefer a C program (faster),
6877 # so one script is as good as another.  But avoid the broken or
6878 # incompatible versions:
6879 # SysV /etc/install, /usr/sbin/install
6880 # SunOS /usr/etc/install
6881 # IRIX /sbin/install
6882 # AIX /bin/install
6883 # AmigaOS /C/install, which installs bootblocks on floppy discs
6884 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6885 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6886 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6887 # OS/2's system install, which has a completely different semantic
6888 # ./install, which can be erroneously created by make from ./install.sh.
6889 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6890 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6891 if test -z "$INSTALL"; then
6892 if test "${ac_cv_path_install+set}" = set; then
6893   echo $ECHO_N "(cached) $ECHO_C" >&6
6894 else
6895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896 for as_dir in $PATH
6897 do
6898   IFS=$as_save_IFS
6899   test -z "$as_dir" && as_dir=.
6900   # Account for people who put trailing slashes in PATH elements.
6901 case $as_dir/ in
6902   ./ | .// | /cC/* | \
6903   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6904   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6905   /usr/ucb/* ) ;;
6906   *)
6907     # OSF1 and SCO ODT 3.0 have their own names for install.
6908     # Don't use installbsd from OSF since it installs stuff as root
6909     # by default.
6910     for ac_prog in ginstall scoinst install; do
6911       for ac_exec_ext in '' $ac_executable_extensions; do
6912         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6913           if test $ac_prog = install &&
6914             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6915             # AIX install.  It has an incompatible calling convention.
6916             :
6917           elif test $ac_prog = install &&
6918             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6919             # program-specific install script used by HP pwplus--don't use.
6920             :
6921           else
6922             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6923             break 3
6924           fi
6925         fi
6926       done
6927     done
6928     ;;
6929 esac
6930 done
6931 IFS=$as_save_IFS
6932
6933
6934 fi
6935   if test "${ac_cv_path_install+set}" = set; then
6936     INSTALL=$ac_cv_path_install
6937   else
6938     # As a last resort, use the slow shell script.  Don't cache a
6939     # value for INSTALL within a source directory, because that will
6940     # break other packages using the cache if that directory is
6941     # removed, or if the value is a relative name.
6942     INSTALL=$ac_install_sh
6943   fi
6944 fi
6945 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6946 echo "${ECHO_T}$INSTALL" >&6; }
6947
6948 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6949 # It thinks the first close brace ends the variable substitution.
6950 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6951
6952 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6953
6954 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6955
6956 case "$INSTALL" in
6957  [\\/$]* | ?:[\\/]* ) ;;
6958  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6959 esac
6960
6961 # Extract the first word of "bzip2", so it can be a program name with args.
6962 set dummy bzip2; ac_word=$2
6963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6965 if test "${ac_cv_path_BZIP2+set}" = set; then
6966   echo $ECHO_N "(cached) $ECHO_C" >&6
6967 else
6968   case $BZIP2 in
6969   [\\/]* | ?:[\\/]*)
6970   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6971   ;;
6972   *)
6973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974 for as_dir in $PATH
6975 do
6976   IFS=$as_save_IFS
6977   test -z "$as_dir" && as_dir=.
6978   for ac_exec_ext in '' $ac_executable_extensions; do
6979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6980     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6982     break 2
6983   fi
6984 done
6985 done
6986 IFS=$as_save_IFS
6987
6988   ;;
6989 esac
6990 fi
6991 BZIP2=$ac_cv_path_BZIP2
6992 if test -n "$BZIP2"; then
6993   { echo "$as_me:$LINENO: result: $BZIP2" >&5
6994 echo "${ECHO_T}$BZIP2" >&6; }
6995 else
6996   { echo "$as_me:$LINENO: result: no" >&5
6997 echo "${ECHO_T}no" >&6; }
6998 fi
6999
7000
7001 # Extract the first word of "cat", so it can be a program name with args.
7002 set dummy cat; ac_word=$2
7003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7005 if test "${ac_cv_path_CAT+set}" = set; then
7006   echo $ECHO_N "(cached) $ECHO_C" >&6
7007 else
7008   case $CAT in
7009   [\\/]* | ?:[\\/]*)
7010   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7011   ;;
7012   *)
7013   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014 for as_dir in $PATH
7015 do
7016   IFS=$as_save_IFS
7017   test -z "$as_dir" && as_dir=.
7018   for ac_exec_ext in '' $ac_executable_extensions; do
7019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7020     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7022     break 2
7023   fi
7024 done
7025 done
7026 IFS=$as_save_IFS
7027
7028   ;;
7029 esac
7030 fi
7031 CAT=$ac_cv_path_CAT
7032 if test -n "$CAT"; then
7033   { echo "$as_me:$LINENO: result: $CAT" >&5
7034 echo "${ECHO_T}$CAT" >&6; }
7035 else
7036   { echo "$as_me:$LINENO: result: no" >&5
7037 echo "${ECHO_T}no" >&6; }
7038 fi
7039
7040
7041 # Extract the first word of "doxygen", so it can be a program name with args.
7042 set dummy doxygen; ac_word=$2
7043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7045 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7046   echo $ECHO_N "(cached) $ECHO_C" >&6
7047 else
7048   case $DOXYGEN in
7049   [\\/]* | ?:[\\/]*)
7050   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7051   ;;
7052   *)
7053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054 for as_dir in $PATH
7055 do
7056   IFS=$as_save_IFS
7057   test -z "$as_dir" && as_dir=.
7058   for ac_exec_ext in '' $ac_executable_extensions; do
7059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7060     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7062     break 2
7063   fi
7064 done
7065 done
7066 IFS=$as_save_IFS
7067
7068   ;;
7069 esac
7070 fi
7071 DOXYGEN=$ac_cv_path_DOXYGEN
7072 if test -n "$DOXYGEN"; then
7073   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7074 echo "${ECHO_T}$DOXYGEN" >&6; }
7075 else
7076   { echo "$as_me:$LINENO: result: no" >&5
7077 echo "${ECHO_T}no" >&6; }
7078 fi
7079
7080
7081 # Extract the first word of "groff", so it can be a program name with args.
7082 set dummy groff; ac_word=$2
7083 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7085 if test "${ac_cv_path_GROFF+set}" = set; then
7086   echo $ECHO_N "(cached) $ECHO_C" >&6
7087 else
7088   case $GROFF in
7089   [\\/]* | ?:[\\/]*)
7090   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7091   ;;
7092   *)
7093   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094 for as_dir in $PATH
7095 do
7096   IFS=$as_save_IFS
7097   test -z "$as_dir" && as_dir=.
7098   for ac_exec_ext in '' $ac_executable_extensions; do
7099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7100     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7102     break 2
7103   fi
7104 done
7105 done
7106 IFS=$as_save_IFS
7107
7108   ;;
7109 esac
7110 fi
7111 GROFF=$ac_cv_path_GROFF
7112 if test -n "$GROFF"; then
7113   { echo "$as_me:$LINENO: result: $GROFF" >&5
7114 echo "${ECHO_T}$GROFF" >&6; }
7115 else
7116   { echo "$as_me:$LINENO: result: no" >&5
7117 echo "${ECHO_T}no" >&6; }
7118 fi
7119
7120
7121 # Extract the first word of "gzip", so it can be a program name with args.
7122 set dummy gzip; ac_word=$2
7123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7125 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7126   echo $ECHO_N "(cached) $ECHO_C" >&6
7127 else
7128   case $GZIPBIN in
7129   [\\/]* | ?:[\\/]*)
7130   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7131   ;;
7132   *)
7133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 for as_dir in $PATH
7135 do
7136   IFS=$as_save_IFS
7137   test -z "$as_dir" && as_dir=.
7138   for ac_exec_ext in '' $ac_executable_extensions; do
7139   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7140     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7142     break 2
7143   fi
7144 done
7145 done
7146 IFS=$as_save_IFS
7147
7148   ;;
7149 esac
7150 fi
7151 GZIPBIN=$ac_cv_path_GZIPBIN
7152 if test -n "$GZIPBIN"; then
7153   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7154 echo "${ECHO_T}$GZIPBIN" >&6; }
7155 else
7156   { echo "$as_me:$LINENO: result: no" >&5
7157 echo "${ECHO_T}no" >&6; }
7158 fi
7159
7160
7161 # Extract the first word of "pod2html", so it can be a program name with args.
7162 set dummy pod2html; ac_word=$2
7163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7165 if test "${ac_cv_path_POD2HTML+set}" = set; then
7166   echo $ECHO_N "(cached) $ECHO_C" >&6
7167 else
7168   case $POD2HTML in
7169   [\\/]* | ?:[\\/]*)
7170   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7171   ;;
7172   *)
7173   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174 for as_dir in $PATH
7175 do
7176   IFS=$as_save_IFS
7177   test -z "$as_dir" && as_dir=.
7178   for ac_exec_ext in '' $ac_executable_extensions; do
7179   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7180     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7181     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7182     break 2
7183   fi
7184 done
7185 done
7186 IFS=$as_save_IFS
7187
7188   ;;
7189 esac
7190 fi
7191 POD2HTML=$ac_cv_path_POD2HTML
7192 if test -n "$POD2HTML"; then
7193   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7194 echo "${ECHO_T}$POD2HTML" >&6; }
7195 else
7196   { echo "$as_me:$LINENO: result: no" >&5
7197 echo "${ECHO_T}no" >&6; }
7198 fi
7199
7200
7201 # Extract the first word of "pod2man", so it can be a program name with args.
7202 set dummy pod2man; ac_word=$2
7203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7205 if test "${ac_cv_path_POD2MAN+set}" = set; then
7206   echo $ECHO_N "(cached) $ECHO_C" >&6
7207 else
7208   case $POD2MAN in
7209   [\\/]* | ?:[\\/]*)
7210   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7211   ;;
7212   *)
7213   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214 for as_dir in $PATH
7215 do
7216   IFS=$as_save_IFS
7217   test -z "$as_dir" && as_dir=.
7218   for ac_exec_ext in '' $ac_executable_extensions; do
7219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7220     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7221     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7222     break 2
7223   fi
7224 done
7225 done
7226 IFS=$as_save_IFS
7227
7228   ;;
7229 esac
7230 fi
7231 POD2MAN=$ac_cv_path_POD2MAN
7232 if test -n "$POD2MAN"; then
7233   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7234 echo "${ECHO_T}$POD2MAN" >&6; }
7235 else
7236   { echo "$as_me:$LINENO: result: no" >&5
7237 echo "${ECHO_T}no" >&6; }
7238 fi
7239
7240
7241 # Extract the first word of "pdfroff", so it can be a program name with args.
7242 set dummy pdfroff; ac_word=$2
7243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7245 if test "${ac_cv_path_PDFROFF+set}" = set; then
7246   echo $ECHO_N "(cached) $ECHO_C" >&6
7247 else
7248   case $PDFROFF in
7249   [\\/]* | ?:[\\/]*)
7250   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7251   ;;
7252   *)
7253   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 for as_dir in $PATH
7255 do
7256   IFS=$as_save_IFS
7257   test -z "$as_dir" && as_dir=.
7258   for ac_exec_ext in '' $ac_executable_extensions; do
7259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7260     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7261     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7262     break 2
7263   fi
7264 done
7265 done
7266 IFS=$as_save_IFS
7267
7268   ;;
7269 esac
7270 fi
7271 PDFROFF=$ac_cv_path_PDFROFF
7272 if test -n "$PDFROFF"; then
7273   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7274 echo "${ECHO_T}$PDFROFF" >&6; }
7275 else
7276   { echo "$as_me:$LINENO: result: no" >&5
7277 echo "${ECHO_T}no" >&6; }
7278 fi
7279
7280
7281 # Extract the first word of "runtest", so it can be a program name with args.
7282 set dummy runtest; ac_word=$2
7283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7285 if test "${ac_cv_path_RUNTEST+set}" = set; then
7286   echo $ECHO_N "(cached) $ECHO_C" >&6
7287 else
7288   case $RUNTEST in
7289   [\\/]* | ?:[\\/]*)
7290   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7291   ;;
7292   *)
7293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294 for as_dir in $PATH
7295 do
7296   IFS=$as_save_IFS
7297   test -z "$as_dir" && as_dir=.
7298   for ac_exec_ext in '' $ac_executable_extensions; do
7299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7300     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7302     break 2
7303   fi
7304 done
7305 done
7306 IFS=$as_save_IFS
7307
7308   ;;
7309 esac
7310 fi
7311 RUNTEST=$ac_cv_path_RUNTEST
7312 if test -n "$RUNTEST"; then
7313   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7314 echo "${ECHO_T}$RUNTEST" >&6; }
7315 else
7316   { echo "$as_me:$LINENO: result: no" >&5
7317 echo "${ECHO_T}no" >&6; }
7318 fi
7319
7320
7321
7322 no_itcl=true
7323 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7324 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7325
7326 # Check whether --with-tclinclude was given.
7327 if test "${with_tclinclude+set}" = set; then
7328   withval=$with_tclinclude; with_tclinclude=${withval}
7329 else
7330   with_tclinclude=''
7331 fi
7332
7333 if test "${ac_cv_path_tclsh+set}" = set; then
7334   echo $ECHO_N "(cached) $ECHO_C" >&6
7335 else
7336
7337 if test x"${with_tclinclude}" != x ; then
7338   if test -f ${with_tclinclude}/tclsh ; then
7339     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7340   elif test -f ${with_tclinclude}/src/tclsh ; then
7341     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7342   else
7343     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7344 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7345    { (exit 1); exit 1; }; }
7346   fi
7347 fi
7348 fi
7349
7350
7351 if test x"${ac_cv_path_tclsh}" = x ; then
7352   { echo "$as_me:$LINENO: result: none" >&5
7353 echo "${ECHO_T}none" >&6; }
7354   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
7355 do
7356   # Extract the first word of "$ac_prog", so it can be a program name with args.
7357 set dummy $ac_prog; ac_word=$2
7358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7360 if test "${ac_cv_path_TCLSH+set}" = set; then
7361   echo $ECHO_N "(cached) $ECHO_C" >&6
7362 else
7363   case $TCLSH in
7364   [\\/]* | ?:[\\/]*)
7365   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7366   ;;
7367   *)
7368   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369 for as_dir in $PATH
7370 do
7371   IFS=$as_save_IFS
7372   test -z "$as_dir" && as_dir=.
7373   for ac_exec_ext in '' $ac_executable_extensions; do
7374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7375     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7377     break 2
7378   fi
7379 done
7380 done
7381 IFS=$as_save_IFS
7382
7383   ;;
7384 esac
7385 fi
7386 TCLSH=$ac_cv_path_TCLSH
7387 if test -n "$TCLSH"; then
7388   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7389 echo "${ECHO_T}$TCLSH" >&6; }
7390 else
7391   { echo "$as_me:$LINENO: result: no" >&5
7392 echo "${ECHO_T}no" >&6; }
7393 fi
7394
7395
7396   test -n "$TCLSH" && break
7397 done
7398
7399   if test x"${TCLSH}" = x ; then
7400     ac_cv_path_tclsh='';
7401   else
7402     ac_cv_path_tclsh="${TCLSH}";
7403   fi
7404 else
7405   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7406 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7407   TCLSH="${ac_cv_path_tclsh}"
7408
7409 fi
7410
7411 # Extract the first word of "zip", so it can be a program name with args.
7412 set dummy zip; ac_word=$2
7413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7415 if test "${ac_cv_path_ZIP+set}" = set; then
7416   echo $ECHO_N "(cached) $ECHO_C" >&6
7417 else
7418   case $ZIP in
7419   [\\/]* | ?:[\\/]*)
7420   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7421   ;;
7422   *)
7423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424 for as_dir in $PATH
7425 do
7426   IFS=$as_save_IFS
7427   test -z "$as_dir" && as_dir=.
7428   for ac_exec_ext in '' $ac_executable_extensions; do
7429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7430     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7432     break 2
7433   fi
7434 done
7435 done
7436 IFS=$as_save_IFS
7437
7438   ;;
7439 esac
7440 fi
7441 ZIP=$ac_cv_path_ZIP
7442 if test -n "$ZIP"; then
7443   { echo "$as_me:$LINENO: result: $ZIP" >&5
7444 echo "${ECHO_T}$ZIP" >&6; }
7445 else
7446   { echo "$as_me:$LINENO: result: no" >&5
7447 echo "${ECHO_T}no" >&6; }
7448 fi
7449
7450
7451 for ac_prog in ocamlc
7452 do
7453   # Extract the first word of "$ac_prog", so it can be a program name with args.
7454 set dummy $ac_prog; ac_word=$2
7455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7457 if test "${ac_cv_path_OCAMLC+set}" = set; then
7458   echo $ECHO_N "(cached) $ECHO_C" >&6
7459 else
7460   case $OCAMLC in
7461   [\\/]* | ?:[\\/]*)
7462   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7463   ;;
7464   *)
7465   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 for as_dir in $PATH
7467 do
7468   IFS=$as_save_IFS
7469   test -z "$as_dir" && as_dir=.
7470   for ac_exec_ext in '' $ac_executable_extensions; do
7471   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7472     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7473     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7474     break 2
7475   fi
7476 done
7477 done
7478 IFS=$as_save_IFS
7479
7480   ;;
7481 esac
7482 fi
7483 OCAMLC=$ac_cv_path_OCAMLC
7484 if test -n "$OCAMLC"; then
7485   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7486 echo "${ECHO_T}$OCAMLC" >&6; }
7487 else
7488   { echo "$as_me:$LINENO: result: no" >&5
7489 echo "${ECHO_T}no" >&6; }
7490 fi
7491
7492
7493   test -n "$OCAMLC" && break
7494 done
7495
7496 for ac_prog in ocamlopt
7497 do
7498   # Extract the first word of "$ac_prog", so it can be a program name with args.
7499 set dummy $ac_prog; ac_word=$2
7500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7502 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7503   echo $ECHO_N "(cached) $ECHO_C" >&6
7504 else
7505   case $OCAMLOPT in
7506   [\\/]* | ?:[\\/]*)
7507   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7508   ;;
7509   *)
7510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 for as_dir in $PATH
7512 do
7513   IFS=$as_save_IFS
7514   test -z "$as_dir" && as_dir=.
7515   for ac_exec_ext in '' $ac_executable_extensions; do
7516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7517     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7519     break 2
7520   fi
7521 done
7522 done
7523 IFS=$as_save_IFS
7524
7525   ;;
7526 esac
7527 fi
7528 OCAMLOPT=$ac_cv_path_OCAMLOPT
7529 if test -n "$OCAMLOPT"; then
7530   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7531 echo "${ECHO_T}$OCAMLOPT" >&6; }
7532 else
7533   { echo "$as_me:$LINENO: result: no" >&5
7534 echo "${ECHO_T}no" >&6; }
7535 fi
7536
7537
7538   test -n "$OCAMLOPT" && break
7539 done
7540
7541 for ac_prog in ocamldep
7542 do
7543   # Extract the first word of "$ac_prog", so it can be a program name with args.
7544 set dummy $ac_prog; ac_word=$2
7545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7547 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7548   echo $ECHO_N "(cached) $ECHO_C" >&6
7549 else
7550   case $OCAMLDEP in
7551   [\\/]* | ?:[\\/]*)
7552   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7553   ;;
7554   *)
7555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 for as_dir in $PATH
7557 do
7558   IFS=$as_save_IFS
7559   test -z "$as_dir" && as_dir=.
7560   for ac_exec_ext in '' $ac_executable_extensions; do
7561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7562     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7564     break 2
7565   fi
7566 done
7567 done
7568 IFS=$as_save_IFS
7569
7570   ;;
7571 esac
7572 fi
7573 OCAMLDEP=$ac_cv_path_OCAMLDEP
7574 if test -n "$OCAMLDEP"; then
7575   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7576 echo "${ECHO_T}$OCAMLDEP" >&6; }
7577 else
7578   { echo "$as_me:$LINENO: result: no" >&5
7579 echo "${ECHO_T}no" >&6; }
7580 fi
7581
7582
7583   test -n "$OCAMLDEP" && break
7584 done
7585
7586 for ac_prog in ocamldoc
7587 do
7588   # Extract the first word of "$ac_prog", so it can be a program name with args.
7589 set dummy $ac_prog; ac_word=$2
7590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7592 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7593   echo $ECHO_N "(cached) $ECHO_C" >&6
7594 else
7595   case $OCAMLDOC in
7596   [\\/]* | ?:[\\/]*)
7597   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7598   ;;
7599   *)
7600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 for as_dir in $PATH
7602 do
7603   IFS=$as_save_IFS
7604   test -z "$as_dir" && as_dir=.
7605   for ac_exec_ext in '' $ac_executable_extensions; do
7606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7607     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7608     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7609     break 2
7610   fi
7611 done
7612 done
7613 IFS=$as_save_IFS
7614
7615   ;;
7616 esac
7617 fi
7618 OCAMLDOC=$ac_cv_path_OCAMLDOC
7619 if test -n "$OCAMLDOC"; then
7620   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7621 echo "${ECHO_T}$OCAMLDOC" >&6; }
7622 else
7623   { echo "$as_me:$LINENO: result: no" >&5
7624 echo "${ECHO_T}no" >&6; }
7625 fi
7626
7627
7628   test -n "$OCAMLDOC" && break
7629 done
7630
7631 for ac_prog in gas as
7632 do
7633   # Extract the first word of "$ac_prog", so it can be a program name with args.
7634 set dummy $ac_prog; ac_word=$2
7635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7637 if test "${ac_cv_path_GAS+set}" = set; then
7638   echo $ECHO_N "(cached) $ECHO_C" >&6
7639 else
7640   case $GAS in
7641   [\\/]* | ?:[\\/]*)
7642   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7643   ;;
7644   *)
7645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646 for as_dir in $PATH
7647 do
7648   IFS=$as_save_IFS
7649   test -z "$as_dir" && as_dir=.
7650   for ac_exec_ext in '' $ac_executable_extensions; do
7651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7652     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7654     break 2
7655   fi
7656 done
7657 done
7658 IFS=$as_save_IFS
7659
7660   ;;
7661 esac
7662 fi
7663 GAS=$ac_cv_path_GAS
7664 if test -n "$GAS"; then
7665   { echo "$as_me:$LINENO: result: $GAS" >&5
7666 echo "${ECHO_T}$GAS" >&6; }
7667 else
7668   { echo "$as_me:$LINENO: result: no" >&5
7669 echo "${ECHO_T}no" >&6; }
7670 fi
7671
7672
7673   test -n "$GAS" && break
7674 done
7675
7676
7677 { echo "$as_me:$LINENO: checking for linker version" >&5
7678 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7679 if test "${llvm_cv_link_version+set}" = set; then
7680   echo $ECHO_N "(cached) $ECHO_C" >&6
7681 else
7682
7683    version_string="$(ld -v 2>&1 | head -1)"
7684
7685    # Check for ld64.
7686    if (echo "$version_string" | grep -q "ld64"); then
7687      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7688    else
7689      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7690    fi
7691
7692 fi
7693 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7694 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7695
7696 cat >>confdefs.h <<_ACEOF
7697 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7698 _ACEOF
7699
7700
7701
7702 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7703 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7704 if test "${llvm_cv_link_use_r+set}" = set; then
7705   echo $ECHO_N "(cached) $ECHO_C" >&6
7706 else
7707    ac_ext=c
7708 ac_cpp='$CPP $CPPFLAGS'
7709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7712
7713   oldcflags="$CFLAGS"
7714   CFLAGS="$CFLAGS -Wl,-R."
7715   cat >conftest.$ac_ext <<_ACEOF
7716 /* confdefs.h.  */
7717 _ACEOF
7718 cat confdefs.h >>conftest.$ac_ext
7719 cat >>conftest.$ac_ext <<_ACEOF
7720 /* end confdefs.h.  */
7721
7722 int
7723 main ()
7724 {
7725
7726   ;
7727   return 0;
7728 }
7729 _ACEOF
7730 rm -f conftest.$ac_objext conftest$ac_exeext
7731 if { (ac_try="$ac_link"
7732 case "(($ac_try" in
7733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7734   *) ac_try_echo=$ac_try;;
7735 esac
7736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7737   (eval "$ac_link") 2>conftest.er1
7738   ac_status=$?
7739   grep -v '^ *+' conftest.er1 >conftest.err
7740   rm -f conftest.er1
7741   cat conftest.err >&5
7742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743   (exit $ac_status); } &&
7744          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7745   { (case "(($ac_try" in
7746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7747   *) ac_try_echo=$ac_try;;
7748 esac
7749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7750   (eval "$ac_try") 2>&5
7751   ac_status=$?
7752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753   (exit $ac_status); }; } &&
7754          { ac_try='test -s conftest$ac_exeext'
7755   { (case "(($ac_try" in
7756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7757   *) ac_try_echo=$ac_try;;
7758 esac
7759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7760   (eval "$ac_try") 2>&5
7761   ac_status=$?
7762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763   (exit $ac_status); }; }; then
7764   llvm_cv_link_use_r=yes
7765 else
7766   echo "$as_me: failed program was:" >&5
7767 sed 's/^/| /' conftest.$ac_ext >&5
7768
7769         llvm_cv_link_use_r=no
7770 fi
7771
7772 rm -f core conftest.err conftest.$ac_objext \
7773       conftest$ac_exeext conftest.$ac_ext
7774   CFLAGS="$oldcflags"
7775   ac_ext=c
7776 ac_cpp='$CPP $CPPFLAGS'
7777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7780
7781
7782 fi
7783 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7784 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7785 if test "$llvm_cv_link_use_r" = yes ; then
7786
7787 cat >>confdefs.h <<\_ACEOF
7788 #define HAVE_LINK_R 1
7789 _ACEOF
7790
7791   fi
7792
7793
7794 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7795 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7796 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7797   echo $ECHO_N "(cached) $ECHO_C" >&6
7798 else
7799    ac_ext=c
7800 ac_cpp='$CPP $CPPFLAGS'
7801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7804
7805   oldcflags="$CFLAGS"
7806   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7807   cat >conftest.$ac_ext <<_ACEOF
7808 /* confdefs.h.  */
7809 _ACEOF
7810 cat confdefs.h >>conftest.$ac_ext
7811 cat >>conftest.$ac_ext <<_ACEOF
7812 /* end confdefs.h.  */
7813
7814 int
7815 main ()
7816 {
7817
7818   ;
7819   return 0;
7820 }
7821 _ACEOF
7822 rm -f conftest.$ac_objext conftest$ac_exeext
7823 if { (ac_try="$ac_link"
7824 case "(($ac_try" in
7825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7826   *) ac_try_echo=$ac_try;;
7827 esac
7828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7829   (eval "$ac_link") 2>conftest.er1
7830   ac_status=$?
7831   grep -v '^ *+' conftest.er1 >conftest.err
7832   rm -f conftest.er1
7833   cat conftest.err >&5
7834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835   (exit $ac_status); } &&
7836          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7837   { (case "(($ac_try" in
7838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7839   *) ac_try_echo=$ac_try;;
7840 esac
7841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7842   (eval "$ac_try") 2>&5
7843   ac_status=$?
7844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845   (exit $ac_status); }; } &&
7846          { ac_try='test -s conftest$ac_exeext'
7847   { (case "(($ac_try" in
7848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7849   *) ac_try_echo=$ac_try;;
7850 esac
7851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7852   (eval "$ac_try") 2>&5
7853   ac_status=$?
7854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855   (exit $ac_status); }; }; then
7856   llvm_cv_link_use_export_dynamic=yes
7857 else
7858   echo "$as_me: failed program was:" >&5
7859 sed 's/^/| /' conftest.$ac_ext >&5
7860
7861         llvm_cv_link_use_export_dynamic=no
7862 fi
7863
7864 rm -f core conftest.err conftest.$ac_objext \
7865       conftest$ac_exeext conftest.$ac_ext
7866   CFLAGS="$oldcflags"
7867   ac_ext=c
7868 ac_cpp='$CPP $CPPFLAGS'
7869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7872
7873
7874 fi
7875 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7876 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7877 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7878
7879 cat >>confdefs.h <<\_ACEOF
7880 #define HAVE_LINK_EXPORT_DYNAMIC 1
7881 _ACEOF
7882
7883   fi
7884
7885
7886 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7887 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7888 if test "${llvm_cv_link_use_version_script+set}" = set; then
7889   echo $ECHO_N "(cached) $ECHO_C" >&6
7890 else
7891    ac_ext=c
7892 ac_cpp='$CPP $CPPFLAGS'
7893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7896
7897   oldcflags="$CFLAGS"
7898
7899   # The following code is from the autoconf manual,
7900   # "11.13: Limitations of Usual Tools".
7901   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7902   # Use mktemp if possible; otherwise fall back on mkdir,
7903   # with $RANDOM to make collisions less likely.
7904   : ${TMPDIR=/tmp}
7905   {
7906     tmp=`
7907       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7908     ` &&
7909     test -n "$tmp" && test -d "$tmp"
7910   } || {
7911     tmp=$TMPDIR/foo$$-$RANDOM
7912     (umask 077 && mkdir "$tmp")
7913   } || exit $?
7914
7915   echo "{" > "$tmp/export.map"
7916   echo "  global: main;" >> "$tmp/export.map"
7917   echo "  local: *;" >> "$tmp/export.map"
7918   echo "};" >> "$tmp/export.map"
7919
7920   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7921   cat >conftest.$ac_ext <<_ACEOF
7922 /* confdefs.h.  */
7923 _ACEOF
7924 cat confdefs.h >>conftest.$ac_ext
7925 cat >>conftest.$ac_ext <<_ACEOF
7926 /* end confdefs.h.  */
7927
7928 int
7929 main ()
7930 {
7931
7932   ;
7933   return 0;
7934 }
7935 _ACEOF
7936 rm -f conftest.$ac_objext conftest$ac_exeext
7937 if { (ac_try="$ac_link"
7938 case "(($ac_try" in
7939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7940   *) ac_try_echo=$ac_try;;
7941 esac
7942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7943   (eval "$ac_link") 2>conftest.er1
7944   ac_status=$?
7945   grep -v '^ *+' conftest.er1 >conftest.err
7946   rm -f conftest.er1
7947   cat conftest.err >&5
7948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949   (exit $ac_status); } &&
7950          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7951   { (case "(($ac_try" in
7952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7953   *) ac_try_echo=$ac_try;;
7954 esac
7955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7956   (eval "$ac_try") 2>&5
7957   ac_status=$?
7958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959   (exit $ac_status); }; } &&
7960          { ac_try='test -s conftest$ac_exeext'
7961   { (case "(($ac_try" in
7962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963   *) ac_try_echo=$ac_try;;
7964 esac
7965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966   (eval "$ac_try") 2>&5
7967   ac_status=$?
7968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969   (exit $ac_status); }; }; then
7970   llvm_cv_link_use_version_script=yes
7971 else
7972   echo "$as_me: failed program was:" >&5
7973 sed 's/^/| /' conftest.$ac_ext >&5
7974
7975         llvm_cv_link_use_version_script=no
7976 fi
7977
7978 rm -f core conftest.err conftest.$ac_objext \
7979       conftest$ac_exeext conftest.$ac_ext
7980   rm "$tmp/export.map"
7981   rmdir "$tmp"
7982   CFLAGS="$oldcflags"
7983   ac_ext=c
7984 ac_cpp='$CPP $CPPFLAGS'
7985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7988
7989
7990 fi
7991 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7992 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7993 if test "$llvm_cv_link_use_version_script" = yes ; then
7994   HAVE_LINK_VERSION_SCRIPT=1
7995
7996   fi
7997
7998
7999
8000
8001 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8002 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8003 if test "${ac_cv_c_const+set}" = set; then
8004   echo $ECHO_N "(cached) $ECHO_C" >&6
8005 else
8006   cat >conftest.$ac_ext <<_ACEOF
8007 /* confdefs.h.  */
8008 _ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h.  */
8012
8013 int
8014 main ()
8015 {
8016 /* FIXME: Include the comments suggested by Paul. */
8017 #ifndef __cplusplus
8018   /* Ultrix mips cc rejects this.  */
8019   typedef int charset[2];
8020   const charset x;
8021   /* SunOS 4.1.1 cc rejects this.  */
8022   char const *const *ccp;
8023   char **p;
8024   /* NEC SVR4.0.2 mips cc rejects this.  */
8025   struct point {int x, y;};
8026   static struct point const zero = {0,0};
8027   /* AIX XL C 1.02.0.0 rejects this.
8028      It does not let you subtract one const X* pointer from another in
8029      an arm of an if-expression whose if-part is not a constant
8030      expression */
8031   const char *g = "string";
8032   ccp = &g + (g ? g-g : 0);
8033   /* HPUX 7.0 cc rejects these. */
8034   ++ccp;
8035   p = (char**) ccp;
8036   ccp = (char const *const *) p;
8037   { /* SCO 3.2v4 cc rejects this.  */
8038     char *t;
8039     char const *s = 0 ? (char *) 0 : (char const *) 0;
8040
8041     *t++ = 0;
8042     if (s) return 0;
8043   }
8044   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8045     int x[] = {25, 17};
8046     const int *foo = &x[0];
8047     ++foo;
8048   }
8049   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8050     typedef const int *iptr;
8051     iptr p = 0;
8052     ++p;
8053   }
8054   { /* AIX XL C 1.02.0.0 rejects this saying
8055        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8056     struct s { int j; const int *ap[3]; };
8057     struct s *b; b->j = 5;
8058   }
8059   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8060     const int foo = 10;
8061     if (!foo) return 0;
8062   }
8063   return !x[0] && !zero.x;
8064 #endif
8065
8066   ;
8067   return 0;
8068 }
8069 _ACEOF
8070 rm -f conftest.$ac_objext
8071 if { (ac_try="$ac_compile"
8072 case "(($ac_try" in
8073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8074   *) ac_try_echo=$ac_try;;
8075 esac
8076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8077   (eval "$ac_compile") 2>conftest.er1
8078   ac_status=$?
8079   grep -v '^ *+' conftest.er1 >conftest.err
8080   rm -f conftest.er1
8081   cat conftest.err >&5
8082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083   (exit $ac_status); } &&
8084          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8085   { (case "(($ac_try" in
8086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8087   *) ac_try_echo=$ac_try;;
8088 esac
8089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8090   (eval "$ac_try") 2>&5
8091   ac_status=$?
8092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093   (exit $ac_status); }; } &&
8094          { ac_try='test -s conftest.$ac_objext'
8095   { (case "(($ac_try" in
8096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8097   *) ac_try_echo=$ac_try;;
8098 esac
8099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8100   (eval "$ac_try") 2>&5
8101   ac_status=$?
8102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103   (exit $ac_status); }; }; then
8104   ac_cv_c_const=yes
8105 else
8106   echo "$as_me: failed program was:" >&5
8107 sed 's/^/| /' conftest.$ac_ext >&5
8108
8109         ac_cv_c_const=no
8110 fi
8111
8112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8113 fi
8114 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8115 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8116 if test $ac_cv_c_const = no; then
8117
8118 cat >>confdefs.h <<\_ACEOF
8119 #define const
8120 _ACEOF
8121
8122 fi
8123
8124
8125
8126
8127
8128
8129 ac_header_dirent=no
8130 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8131   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8132 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8133 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8135   echo $ECHO_N "(cached) $ECHO_C" >&6
8136 else
8137   cat >conftest.$ac_ext <<_ACEOF
8138 /* confdefs.h.  */
8139 _ACEOF
8140 cat confdefs.h >>conftest.$ac_ext
8141 cat >>conftest.$ac_ext <<_ACEOF
8142 /* end confdefs.h.  */
8143 #include <sys/types.h>
8144 #include <$ac_hdr>
8145
8146 int
8147 main ()
8148 {
8149 if ((DIR *) 0)
8150 return 0;
8151   ;
8152   return 0;
8153 }
8154 _ACEOF
8155 rm -f conftest.$ac_objext
8156 if { (ac_try="$ac_compile"
8157 case "(($ac_try" in
8158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8159   *) ac_try_echo=$ac_try;;
8160 esac
8161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8162   (eval "$ac_compile") 2>conftest.er1
8163   ac_status=$?
8164   grep -v '^ *+' conftest.er1 >conftest.err
8165   rm -f conftest.er1
8166   cat conftest.err >&5
8167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168   (exit $ac_status); } &&
8169          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8170   { (case "(($ac_try" in
8171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8172   *) ac_try_echo=$ac_try;;
8173 esac
8174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8175   (eval "$ac_try") 2>&5
8176   ac_status=$?
8177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178   (exit $ac_status); }; } &&
8179          { ac_try='test -s conftest.$ac_objext'
8180   { (case "(($ac_try" in
8181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8182   *) ac_try_echo=$ac_try;;
8183 esac
8184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8185   (eval "$ac_try") 2>&5
8186   ac_status=$?
8187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188   (exit $ac_status); }; }; then
8189   eval "$as_ac_Header=yes"
8190 else
8191   echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8193
8194         eval "$as_ac_Header=no"
8195 fi
8196
8197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8198 fi
8199 ac_res=`eval echo '${'$as_ac_Header'}'`
8200                { echo "$as_me:$LINENO: result: $ac_res" >&5
8201 echo "${ECHO_T}$ac_res" >&6; }
8202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8203   cat >>confdefs.h <<_ACEOF
8204 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8205 _ACEOF
8206
8207 ac_header_dirent=$ac_hdr; break
8208 fi
8209
8210 done
8211 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8212 if test $ac_header_dirent = dirent.h; then
8213   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8214 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8215 if test "${ac_cv_search_opendir+set}" = set; then
8216   echo $ECHO_N "(cached) $ECHO_C" >&6
8217 else
8218   ac_func_search_save_LIBS=$LIBS
8219 cat >conftest.$ac_ext <<_ACEOF
8220 /* confdefs.h.  */
8221 _ACEOF
8222 cat confdefs.h >>conftest.$ac_ext
8223 cat >>conftest.$ac_ext <<_ACEOF
8224 /* end confdefs.h.  */
8225
8226 /* Override any GCC internal prototype to avoid an error.
8227    Use char because int might match the return type of a GCC
8228    builtin and then its argument prototype would still apply.  */
8229 #ifdef __cplusplus
8230 extern "C"
8231 #endif
8232 char opendir ();
8233 int
8234 main ()
8235 {
8236 return opendir ();
8237   ;
8238   return 0;
8239 }
8240 _ACEOF
8241 for ac_lib in '' dir; do
8242   if test -z "$ac_lib"; then
8243     ac_res="none required"
8244   else
8245     ac_res=-l$ac_lib
8246     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8247   fi
8248   rm -f conftest.$ac_objext conftest$ac_exeext
8249 if { (ac_try="$ac_link"
8250 case "(($ac_try" in
8251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8252   *) ac_try_echo=$ac_try;;
8253 esac
8254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8255   (eval "$ac_link") 2>conftest.er1
8256   ac_status=$?
8257   grep -v '^ *+' conftest.er1 >conftest.err
8258   rm -f conftest.er1
8259   cat conftest.err >&5
8260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261   (exit $ac_status); } &&
8262          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8263   { (case "(($ac_try" in
8264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8265   *) ac_try_echo=$ac_try;;
8266 esac
8267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8268   (eval "$ac_try") 2>&5
8269   ac_status=$?
8270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271   (exit $ac_status); }; } &&
8272          { ac_try='test -s conftest$ac_exeext'
8273   { (case "(($ac_try" in
8274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8275   *) ac_try_echo=$ac_try;;
8276 esac
8277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8278   (eval "$ac_try") 2>&5
8279   ac_status=$?
8280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281   (exit $ac_status); }; }; then
8282   ac_cv_search_opendir=$ac_res
8283 else
8284   echo "$as_me: failed program was:" >&5
8285 sed 's/^/| /' conftest.$ac_ext >&5
8286
8287
8288 fi
8289
8290 rm -f core conftest.err conftest.$ac_objext \
8291       conftest$ac_exeext
8292   if test "${ac_cv_search_opendir+set}" = set; then
8293   break
8294 fi
8295 done
8296 if test "${ac_cv_search_opendir+set}" = set; then
8297   :
8298 else
8299   ac_cv_search_opendir=no
8300 fi
8301 rm conftest.$ac_ext
8302 LIBS=$ac_func_search_save_LIBS
8303 fi
8304 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8305 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8306 ac_res=$ac_cv_search_opendir
8307 if test "$ac_res" != no; then
8308   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8309
8310 fi
8311
8312 else
8313   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8314 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8315 if test "${ac_cv_search_opendir+set}" = set; then
8316   echo $ECHO_N "(cached) $ECHO_C" >&6
8317 else
8318   ac_func_search_save_LIBS=$LIBS
8319 cat >conftest.$ac_ext <<_ACEOF
8320 /* confdefs.h.  */
8321 _ACEOF
8322 cat confdefs.h >>conftest.$ac_ext
8323 cat >>conftest.$ac_ext <<_ACEOF
8324 /* end confdefs.h.  */
8325
8326 /* Override any GCC internal prototype to avoid an error.
8327    Use char because int might match the return type of a GCC
8328    builtin and then its argument prototype would still apply.  */
8329 #ifdef __cplusplus
8330 extern "C"
8331 #endif
8332 char opendir ();
8333 int
8334 main ()
8335 {
8336 return opendir ();
8337   ;
8338   return 0;
8339 }
8340 _ACEOF
8341 for ac_lib in '' x; do
8342   if test -z "$ac_lib"; then
8343     ac_res="none required"
8344   else
8345     ac_res=-l$ac_lib
8346     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8347   fi
8348   rm -f conftest.$ac_objext conftest$ac_exeext
8349 if { (ac_try="$ac_link"
8350 case "(($ac_try" in
8351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8352   *) ac_try_echo=$ac_try;;
8353 esac
8354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8355   (eval "$ac_link") 2>conftest.er1
8356   ac_status=$?
8357   grep -v '^ *+' conftest.er1 >conftest.err
8358   rm -f conftest.er1
8359   cat conftest.err >&5
8360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361   (exit $ac_status); } &&
8362          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8363   { (case "(($ac_try" in
8364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8365   *) ac_try_echo=$ac_try;;
8366 esac
8367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8368   (eval "$ac_try") 2>&5
8369   ac_status=$?
8370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371   (exit $ac_status); }; } &&
8372          { ac_try='test -s conftest$ac_exeext'
8373   { (case "(($ac_try" in
8374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8375   *) ac_try_echo=$ac_try;;
8376 esac
8377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8378   (eval "$ac_try") 2>&5
8379   ac_status=$?
8380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381   (exit $ac_status); }; }; then
8382   ac_cv_search_opendir=$ac_res
8383 else
8384   echo "$as_me: failed program was:" >&5
8385 sed 's/^/| /' conftest.$ac_ext >&5
8386
8387
8388 fi
8389
8390 rm -f core conftest.err conftest.$ac_objext \
8391       conftest$ac_exeext
8392   if test "${ac_cv_search_opendir+set}" = set; then
8393   break
8394 fi
8395 done
8396 if test "${ac_cv_search_opendir+set}" = set; then
8397   :
8398 else
8399   ac_cv_search_opendir=no
8400 fi
8401 rm conftest.$ac_ext
8402 LIBS=$ac_func_search_save_LIBS
8403 fi
8404 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8405 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8406 ac_res=$ac_cv_search_opendir
8407 if test "$ac_res" != no; then
8408   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8409
8410 fi
8411
8412 fi
8413
8414
8415 for ac_header in dlfcn.h
8416 do
8417 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8419   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8422   echo $ECHO_N "(cached) $ECHO_C" >&6
8423 fi
8424 ac_res=`eval echo '${'$as_ac_Header'}'`
8425                { echo "$as_me:$LINENO: result: $ac_res" >&5
8426 echo "${ECHO_T}$ac_res" >&6; }
8427 else
8428   # Is the header compilable?
8429 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8430 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8431 cat >conftest.$ac_ext <<_ACEOF
8432 /* confdefs.h.  */
8433 _ACEOF
8434 cat confdefs.h >>conftest.$ac_ext
8435 cat >>conftest.$ac_ext <<_ACEOF
8436 /* end confdefs.h.  */
8437 $ac_includes_default
8438 #include <$ac_header>
8439 _ACEOF
8440 rm -f conftest.$ac_objext
8441 if { (ac_try="$ac_compile"
8442 case "(($ac_try" in
8443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444   *) ac_try_echo=$ac_try;;
8445 esac
8446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8447   (eval "$ac_compile") 2>conftest.er1
8448   ac_status=$?
8449   grep -v '^ *+' conftest.er1 >conftest.err
8450   rm -f conftest.er1
8451   cat conftest.err >&5
8452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453   (exit $ac_status); } &&
8454          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8455   { (case "(($ac_try" in
8456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8457   *) ac_try_echo=$ac_try;;
8458 esac
8459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8460   (eval "$ac_try") 2>&5
8461   ac_status=$?
8462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463   (exit $ac_status); }; } &&
8464          { ac_try='test -s conftest.$ac_objext'
8465   { (case "(($ac_try" in
8466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8467   *) ac_try_echo=$ac_try;;
8468 esac
8469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8470   (eval "$ac_try") 2>&5
8471   ac_status=$?
8472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473   (exit $ac_status); }; }; then
8474   ac_header_compiler=yes
8475 else
8476   echo "$as_me: failed program was:" >&5
8477 sed 's/^/| /' conftest.$ac_ext >&5
8478
8479         ac_header_compiler=no
8480 fi
8481
8482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8483 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8484 echo "${ECHO_T}$ac_header_compiler" >&6; }
8485
8486 # Is the header present?
8487 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8488 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8489 cat >conftest.$ac_ext <<_ACEOF
8490 /* confdefs.h.  */
8491 _ACEOF
8492 cat confdefs.h >>conftest.$ac_ext
8493 cat >>conftest.$ac_ext <<_ACEOF
8494 /* end confdefs.h.  */
8495 #include <$ac_header>
8496 _ACEOF
8497 if { (ac_try="$ac_cpp conftest.$ac_ext"
8498 case "(($ac_try" in
8499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8500   *) ac_try_echo=$ac_try;;
8501 esac
8502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8503   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8504   ac_status=$?
8505   grep -v '^ *+' conftest.er1 >conftest.err
8506   rm -f conftest.er1
8507   cat conftest.err >&5
8508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509   (exit $ac_status); } >/dev/null; then
8510   if test -s conftest.err; then
8511     ac_cpp_err=$ac_c_preproc_warn_flag
8512     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8513   else
8514     ac_cpp_err=
8515   fi
8516 else
8517   ac_cpp_err=yes
8518 fi
8519 if test -z "$ac_cpp_err"; then
8520   ac_header_preproc=yes
8521 else
8522   echo "$as_me: failed program was:" >&5
8523 sed 's/^/| /' conftest.$ac_ext >&5
8524
8525   ac_header_preproc=no
8526 fi
8527
8528 rm -f conftest.err conftest.$ac_ext
8529 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8530 echo "${ECHO_T}$ac_header_preproc" >&6; }
8531
8532 # So?  What about this header?
8533 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8534   yes:no: )
8535     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8536 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8537     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8538 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8539     ac_header_preproc=yes
8540     ;;
8541   no:yes:* )
8542     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8543 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8544     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8545 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8546     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8547 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8548     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8549 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8550     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8551 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8552     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8553 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8554     ( cat <<\_ASBOX
8555 ## ------------------------------ ##
8556 ## Report this to bugs@yourdomain ##
8557 ## ------------------------------ ##
8558 _ASBOX
8559      ) | sed "s/^/$as_me: WARNING:     /" >&2
8560     ;;
8561 esac
8562 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8565   echo $ECHO_N "(cached) $ECHO_C" >&6
8566 else
8567   eval "$as_ac_Header=\$ac_header_preproc"
8568 fi
8569 ac_res=`eval echo '${'$as_ac_Header'}'`
8570                { echo "$as_me:$LINENO: result: $ac_res" >&5
8571 echo "${ECHO_T}$ac_res" >&6; }
8572
8573 fi
8574 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8575   cat >>confdefs.h <<_ACEOF
8576 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8577 _ACEOF
8578
8579 fi
8580
8581 done
8582
8583 # Check whether --enable-ltdl-install was given.
8584 if test "${enable_ltdl_install+set}" = set; then
8585   enableval=$enable_ltdl_install;
8586 fi
8587
8588
8589
8590
8591 if test x"${enable_ltdl_install-no}" != xno; then
8592   INSTALL_LTDL_TRUE=
8593   INSTALL_LTDL_FALSE='#'
8594 else
8595   INSTALL_LTDL_TRUE='#'
8596   INSTALL_LTDL_FALSE=
8597 fi
8598
8599
8600
8601 if test x"${enable_ltdl_convenience-no}" != xno; then
8602   CONVENIENCE_LTDL_TRUE=
8603   CONVENIENCE_LTDL_FALSE='#'
8604 else
8605   CONVENIENCE_LTDL_TRUE='#'
8606   CONVENIENCE_LTDL_FALSE=
8607 fi
8608
8609
8610 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8611 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8612 library_names_spec=
8613 libname_spec='lib$name'
8614 soname_spec=
8615 shrext_cmds=".so"
8616 postinstall_cmds=
8617 postuninstall_cmds=
8618 finish_cmds=
8619 finish_eval=
8620 shlibpath_var=
8621 shlibpath_overrides_runpath=unknown
8622 version_type=none
8623 dynamic_linker="$host_os ld.so"
8624 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8625 if test "$GCC" = yes; then
8626   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8627   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8628     # if the path contains ";" then we assume it to be the separator
8629     # otherwise default to the standard path separator (i.e. ":") - it is
8630     # assumed that no part of a normal pathname contains ";" but that should
8631     # okay in the real world where ";" in dirpaths is itself problematic.
8632     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8633   else
8634     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8635   fi
8636 else
8637   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8638 fi
8639 need_lib_prefix=unknown
8640 hardcode_into_libs=no
8641
8642 # when you set need_version to no, make sure it does not cause -set_version
8643 # flags to be left without arguments
8644 need_version=unknown
8645
8646 case $host_os in
8647 aix3*)
8648   version_type=linux
8649   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8650   shlibpath_var=LIBPATH
8651
8652   # AIX 3 has no versioning support, so we append a major version to the name.
8653   soname_spec='${libname}${release}${shared_ext}$major'
8654   ;;
8655
8656 aix4* | aix5*)
8657   version_type=linux
8658   need_lib_prefix=no
8659   need_version=no
8660   hardcode_into_libs=yes
8661   if test "$host_cpu" = ia64; then
8662     # AIX 5 supports IA64
8663     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8664     shlibpath_var=LD_LIBRARY_PATH
8665   else
8666     # With GCC up to 2.95.x, collect2 would create an import file
8667     # for dependence libraries.  The import file would start with
8668     # the line `#! .'.  This would cause the generated library to
8669     # depend on `.', always an invalid library.  This was fixed in
8670     # development snapshots of GCC prior to 3.0.
8671     case $host_os in
8672       aix4 | aix4.[01] | aix4.[01].*)
8673       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8674            echo ' yes '
8675            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8676         :
8677       else
8678         can_build_shared=no
8679       fi
8680       ;;
8681     esac
8682     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8683     # soname into executable. Probably we can add versioning support to
8684     # collect2, so additional links can be useful in future.
8685     if test "$aix_use_runtimelinking" = yes; then
8686       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8687       # instead of lib<name>.a to let people know that these are not
8688       # typical AIX shared libraries.
8689       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8690     else
8691       # We preserve .a as extension for shared libraries through AIX4.2
8692       # and later when we are not doing run time linking.
8693       library_names_spec='${libname}${release}.a $libname.a'
8694       soname_spec='${libname}${release}${shared_ext}$major'
8695     fi
8696     shlibpath_var=LIBPATH
8697   fi
8698   ;;
8699
8700 amigaos*)
8701   library_names_spec='$libname.ixlibrary $libname.a'
8702   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8703   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'
8704   ;;
8705
8706 beos*)
8707   library_names_spec='${libname}${shared_ext}'
8708   dynamic_linker="$host_os ld.so"
8709   shlibpath_var=LIBRARY_PATH
8710   ;;
8711
8712 bsdi[45]*)
8713   version_type=linux
8714   need_version=no
8715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8716   soname_spec='${libname}${release}${shared_ext}$major'
8717   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8718   shlibpath_var=LD_LIBRARY_PATH
8719   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8720   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8721   # the default ld.so.conf also contains /usr/contrib/lib and
8722   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8723   # libtool to hard-code these into programs
8724   ;;
8725
8726 cygwin* | mingw* | pw32*)
8727   version_type=windows
8728   shrext_cmds=".dll"
8729   need_version=no
8730   need_lib_prefix=no
8731
8732   case $GCC,$host_os in
8733   yes,cygwin* | yes,mingw* | yes,pw32*)
8734     library_names_spec='$libname.dll.a'
8735     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8736     postinstall_cmds='base_file=`basename \${file}`~
8737       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8738       dldir=$destdir/`dirname \$dlpath`~
8739       test -d \$dldir || mkdir -p \$dldir~
8740       $install_prog $dir/$dlname \$dldir/$dlname~
8741       chmod a+x \$dldir/$dlname'
8742     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8743       dlpath=$dir/\$dldll~
8744        $rm \$dlpath'
8745     shlibpath_overrides_runpath=yes
8746
8747     case $host_os in
8748     cygwin*)
8749       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8750       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8751       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8752       ;;
8753     mingw*)
8754       # MinGW DLLs use traditional 'lib' prefix
8755       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8756       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8757       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8758         # It is most probably a Windows format PATH printed by
8759         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8760         # path with ; separators, and with drive letters. We can handle the
8761         # drive letters (cygwin fileutils understands them), so leave them,
8762         # especially as we might pass files found there to a mingw objdump,
8763         # which wouldn't understand a cygwinified path. Ahh.
8764         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8765       else
8766         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8767       fi
8768       ;;
8769     pw32*)
8770       # pw32 DLLs use 'pw' prefix rather than 'lib'
8771       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8772       ;;
8773     esac
8774     ;;
8775
8776   *)
8777     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8778     ;;
8779   esac
8780   dynamic_linker='Win32 ld.exe'
8781   # FIXME: first we should search . and the directory the executable is in
8782   shlibpath_var=PATH
8783   ;;
8784
8785 darwin* | rhapsody*)
8786   dynamic_linker="$host_os dyld"
8787   version_type=darwin
8788   need_lib_prefix=no
8789   need_version=no
8790   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8791   soname_spec='${libname}${release}${major}$shared_ext'
8792   shlibpath_overrides_runpath=yes
8793   shlibpath_var=DYLD_LIBRARY_PATH
8794   shrext_cmds='.dylib'
8795   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8796   if test "$GCC" = yes; then
8797     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"`
8798   else
8799     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8800   fi
8801   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8802   ;;
8803
8804 dgux*)
8805   version_type=linux
8806   need_lib_prefix=no
8807   need_version=no
8808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8809   soname_spec='${libname}${release}${shared_ext}$major'
8810   shlibpath_var=LD_LIBRARY_PATH
8811   ;;
8812
8813 freebsd1.*)
8814   dynamic_linker=no
8815   ;;
8816
8817 kfreebsd*-gnu)
8818   version_type=linux
8819   need_lib_prefix=no
8820   need_version=no
8821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8822   soname_spec='${libname}${release}${shared_ext}$major'
8823   shlibpath_var=LD_LIBRARY_PATH
8824   shlibpath_overrides_runpath=no
8825   hardcode_into_libs=yes
8826   dynamic_linker='GNU ld.so'
8827   ;;
8828
8829 freebsd* | dragonfly*)
8830   # DragonFly does not have aout.  When/if they implement a new
8831   # versioning mechanism, adjust this.
8832   if test -x /usr/bin/objformat; then
8833     objformat=`/usr/bin/objformat`
8834   else
8835     case $host_os in
8836     freebsd[123].*) objformat=aout ;;
8837     *) objformat=elf ;;
8838     esac
8839   fi
8840   version_type=freebsd-$objformat
8841   case $version_type in
8842     freebsd-elf*)
8843       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8844       need_version=no
8845       need_lib_prefix=no
8846       ;;
8847     freebsd-*)
8848       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8849       need_version=yes
8850       ;;
8851   esac
8852   shlibpath_var=LD_LIBRARY_PATH
8853   case $host_os in
8854   freebsd2.*)
8855     shlibpath_overrides_runpath=yes
8856     ;;
8857   freebsd3.[01]* | freebsdelf3.[01]*)
8858     shlibpath_overrides_runpath=yes
8859     hardcode_into_libs=yes
8860     ;;
8861   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8862   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8863     shlibpath_overrides_runpath=no
8864     hardcode_into_libs=yes
8865     ;;
8866   freebsd*) # from 4.6 on
8867     shlibpath_overrides_runpath=yes
8868     hardcode_into_libs=yes
8869     ;;
8870   esac
8871   ;;
8872
8873 gnu*)
8874   version_type=linux
8875   need_lib_prefix=no
8876   need_version=no
8877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8878   soname_spec='${libname}${release}${shared_ext}$major'
8879   shlibpath_var=LD_LIBRARY_PATH
8880   hardcode_into_libs=yes
8881   ;;
8882
8883 hpux9* | hpux10* | hpux11*)
8884   # Give a soname corresponding to the major version so that dld.sl refuses to
8885   # link against other versions.
8886   version_type=sunos
8887   need_lib_prefix=no
8888   need_version=no
8889   case $host_cpu in
8890   ia64*)
8891     shrext_cmds='.so'
8892     hardcode_into_libs=yes
8893     dynamic_linker="$host_os dld.so"
8894     shlibpath_var=LD_LIBRARY_PATH
8895     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8896     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8897     soname_spec='${libname}${release}${shared_ext}$major'
8898     if test "X$HPUX_IA64_MODE" = X32; then
8899       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8900     else
8901       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8902     fi
8903     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8904     ;;
8905    hppa*64*)
8906      shrext_cmds='.sl'
8907      hardcode_into_libs=yes
8908      dynamic_linker="$host_os dld.sl"
8909      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8910      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8911      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8912      soname_spec='${libname}${release}${shared_ext}$major'
8913      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8914      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8915      ;;
8916    *)
8917     shrext_cmds='.sl'
8918     dynamic_linker="$host_os dld.sl"
8919     shlibpath_var=SHLIB_PATH
8920     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8921     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8922     soname_spec='${libname}${release}${shared_ext}$major'
8923     ;;
8924   esac
8925   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8926   postinstall_cmds='chmod 555 $lib'
8927   ;;
8928
8929 interix3*)
8930   version_type=linux
8931   need_lib_prefix=no
8932   need_version=no
8933   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8934   soname_spec='${libname}${release}${shared_ext}$major'
8935   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8936   shlibpath_var=LD_LIBRARY_PATH
8937   shlibpath_overrides_runpath=no
8938   hardcode_into_libs=yes
8939   ;;
8940
8941 irix5* | irix6* | nonstopux*)
8942   case $host_os in
8943     nonstopux*) version_type=nonstopux ;;
8944     *)
8945         if test "$lt_cv_prog_gnu_ld" = yes; then
8946                 version_type=linux
8947         else
8948                 version_type=irix
8949         fi ;;
8950   esac
8951   need_lib_prefix=no
8952   need_version=no
8953   soname_spec='${libname}${release}${shared_ext}$major'
8954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8955   case $host_os in
8956   irix5* | nonstopux*)
8957     libsuff= shlibsuff=
8958     ;;
8959   *)
8960     case $LD in # libtool.m4 will add one of these switches to LD
8961     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8962       libsuff= shlibsuff= libmagic=32-bit;;
8963     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8964       libsuff=32 shlibsuff=N32 libmagic=N32;;
8965     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8966       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8967     *) libsuff= shlibsuff= libmagic=never-match;;
8968     esac
8969     ;;
8970   esac
8971   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8972   shlibpath_overrides_runpath=no
8973   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8974   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8975   hardcode_into_libs=yes
8976   ;;
8977
8978 # No shared lib support for Linux oldld, aout, or coff.
8979 linux*oldld* | linux*aout* | linux*coff*)
8980   dynamic_linker=no
8981   ;;
8982
8983 # This must be Linux ELF.
8984 linux*)
8985   version_type=linux
8986   need_lib_prefix=no
8987   need_version=no
8988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8989   soname_spec='${libname}${release}${shared_ext}$major'
8990   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8991   shlibpath_var=LD_LIBRARY_PATH
8992   shlibpath_overrides_runpath=no
8993   # This implies no fast_install, which is unacceptable.
8994   # Some rework will be needed to allow for fast_install
8995   # before this can be enabled.
8996   hardcode_into_libs=yes
8997
8998   # Append ld.so.conf contents to the search path
8999   if test -f /etc/ld.so.conf; then
9000     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' ' '`
9001     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9002   fi
9003
9004   # We used to test for /lib/ld.so.1 and disable shared libraries on
9005   # powerpc, because MkLinux only supported shared libraries with the
9006   # GNU dynamic linker.  Since this was broken with cross compilers,
9007   # most powerpc-linux boxes support dynamic linking these days and
9008   # people can always --disable-shared, the test was removed, and we
9009   # assume the GNU/Linux dynamic linker is in use.
9010   dynamic_linker='GNU/Linux ld.so'
9011   ;;
9012
9013 knetbsd*-gnu)
9014   version_type=linux
9015   need_lib_prefix=no
9016   need_version=no
9017   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9018   soname_spec='${libname}${release}${shared_ext}$major'
9019   shlibpath_var=LD_LIBRARY_PATH
9020   shlibpath_overrides_runpath=no
9021   hardcode_into_libs=yes
9022   dynamic_linker='GNU ld.so'
9023   ;;
9024
9025 netbsd*)
9026   version_type=sunos
9027   need_lib_prefix=no
9028   need_version=no
9029   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9030     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9031     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9032     dynamic_linker='NetBSD (a.out) ld.so'
9033   else
9034     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9035     soname_spec='${libname}${release}${shared_ext}$major'
9036     dynamic_linker='NetBSD ld.elf_so'
9037   fi
9038   shlibpath_var=LD_LIBRARY_PATH
9039   shlibpath_overrides_runpath=yes
9040   hardcode_into_libs=yes
9041   ;;
9042
9043 newsos6)
9044   version_type=linux
9045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9046   shlibpath_var=LD_LIBRARY_PATH
9047   shlibpath_overrides_runpath=yes
9048   ;;
9049
9050 nto-qnx*)
9051   version_type=linux
9052   need_lib_prefix=no
9053   need_version=no
9054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9055   soname_spec='${libname}${release}${shared_ext}$major'
9056   shlibpath_var=LD_LIBRARY_PATH
9057   shlibpath_overrides_runpath=yes
9058   ;;
9059
9060 openbsd*)
9061   version_type=sunos
9062   sys_lib_dlsearch_path_spec="/usr/lib"
9063   need_lib_prefix=no
9064   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9065   case $host_os in
9066     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9067     *)                         need_version=no  ;;
9068   esac
9069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9070   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9071   shlibpath_var=LD_LIBRARY_PATH
9072   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9073     case $host_os in
9074       openbsd2.[89] | openbsd2.[89].*)
9075         shlibpath_overrides_runpath=no
9076         ;;
9077       *)
9078         shlibpath_overrides_runpath=yes
9079         ;;
9080       esac
9081   else
9082     shlibpath_overrides_runpath=yes
9083   fi
9084   ;;
9085
9086 os2*)
9087   libname_spec='$name'
9088   shrext_cmds=".dll"
9089   need_lib_prefix=no
9090   library_names_spec='$libname${shared_ext} $libname.a'
9091   dynamic_linker='OS/2 ld.exe'
9092   shlibpath_var=LIBPATH
9093   ;;
9094
9095 osf3* | osf4* | osf5*)
9096   version_type=osf
9097   need_lib_prefix=no
9098   need_version=no
9099   soname_spec='${libname}${release}${shared_ext}$major'
9100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9101   shlibpath_var=LD_LIBRARY_PATH
9102   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9103   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9104   ;;
9105
9106 solaris*)
9107   version_type=linux
9108   need_lib_prefix=no
9109   need_version=no
9110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9111   soname_spec='${libname}${release}${shared_ext}$major'
9112   shlibpath_var=LD_LIBRARY_PATH
9113   shlibpath_overrides_runpath=yes
9114   hardcode_into_libs=yes
9115   # ldd complains unless libraries are executable
9116   postinstall_cmds='chmod +x $lib'
9117   ;;
9118
9119 sunos4*)
9120   version_type=sunos
9121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9122   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9123   shlibpath_var=LD_LIBRARY_PATH
9124   shlibpath_overrides_runpath=yes
9125   if test "$with_gnu_ld" = yes; then
9126     need_lib_prefix=no
9127   fi
9128   need_version=yes
9129   ;;
9130
9131 sysv4 | sysv4.3*)
9132   version_type=linux
9133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9134   soname_spec='${libname}${release}${shared_ext}$major'
9135   shlibpath_var=LD_LIBRARY_PATH
9136   case $host_vendor in
9137     sni)
9138       shlibpath_overrides_runpath=no
9139       need_lib_prefix=no
9140       export_dynamic_flag_spec='${wl}-Blargedynsym'
9141       runpath_var=LD_RUN_PATH
9142       ;;
9143     siemens)
9144       need_lib_prefix=no
9145       ;;
9146     motorola)
9147       need_lib_prefix=no
9148       need_version=no
9149       shlibpath_overrides_runpath=no
9150       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9151       ;;
9152   esac
9153   ;;
9154
9155 sysv4*MP*)
9156   if test -d /usr/nec ;then
9157     version_type=linux
9158     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9159     soname_spec='$libname${shared_ext}.$major'
9160     shlibpath_var=LD_LIBRARY_PATH
9161   fi
9162   ;;
9163
9164 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9165   version_type=freebsd-elf
9166   need_lib_prefix=no
9167   need_version=no
9168   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9169   soname_spec='${libname}${release}${shared_ext}$major'
9170   shlibpath_var=LD_LIBRARY_PATH
9171   hardcode_into_libs=yes
9172   if test "$with_gnu_ld" = yes; then
9173     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9174     shlibpath_overrides_runpath=no
9175   else
9176     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9177     shlibpath_overrides_runpath=yes
9178     case $host_os in
9179       sco3.2v5*)
9180         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9181         ;;
9182     esac
9183   fi
9184   sys_lib_dlsearch_path_spec='/usr/lib'
9185   ;;
9186
9187 uts4*)
9188   version_type=linux
9189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9190   soname_spec='${libname}${release}${shared_ext}$major'
9191   shlibpath_var=LD_LIBRARY_PATH
9192   ;;
9193
9194 *)
9195   dynamic_linker=no
9196   ;;
9197 esac
9198 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9199 echo "${ECHO_T}$dynamic_linker" >&6; }
9200 test "$dynamic_linker" = no && can_build_shared=no
9201
9202 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9203 if test "$GCC" = yes; then
9204   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9205 fi
9206
9207
9208 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9209 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9210 if test "${libltdl_cv_shlibext+set}" = set; then
9211   echo $ECHO_N "(cached) $ECHO_C" >&6
9212 else
9213
9214 module=yes
9215 eval libltdl_cv_shlibext=$shrext_cmds
9216
9217 fi
9218 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9219 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9220 if test -n "$libltdl_cv_shlibext"; then
9221
9222 cat >>confdefs.h <<_ACEOF
9223 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9224 _ACEOF
9225
9226 fi
9227
9228
9229 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9230 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9231 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9232   echo $ECHO_N "(cached) $ECHO_C" >&6
9233 else
9234   libltdl_cv_shlibpath_var="$shlibpath_var"
9235 fi
9236 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9237 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9238 if test -n "$libltdl_cv_shlibpath_var"; then
9239
9240 cat >>confdefs.h <<_ACEOF
9241 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9242 _ACEOF
9243
9244 fi
9245
9246
9247 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9248 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9249 if test "${libltdl_cv_sys_search_path+set}" = set; then
9250   echo $ECHO_N "(cached) $ECHO_C" >&6
9251 else
9252   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9253 fi
9254 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9255 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9256 if test -n "$libltdl_cv_sys_search_path"; then
9257   sys_search_path=
9258   for dir in $libltdl_cv_sys_search_path; do
9259     if test -z "$sys_search_path"; then
9260       sys_search_path="$dir"
9261     else
9262       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9263     fi
9264   done
9265
9266 cat >>confdefs.h <<_ACEOF
9267 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9268 _ACEOF
9269
9270 fi
9271
9272 { echo "$as_me:$LINENO: checking for objdir" >&5
9273 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9274 if test "${libltdl_cv_objdir+set}" = set; then
9275   echo $ECHO_N "(cached) $ECHO_C" >&6
9276 else
9277   libltdl_cv_objdir="$objdir"
9278   if test -n "$objdir"; then
9279     :
9280   else
9281     rm -f .libs 2>/dev/null
9282     mkdir .libs 2>/dev/null
9283     if test -d .libs; then
9284       libltdl_cv_objdir=.libs
9285     else
9286       # MS-DOS does not allow filenames that begin with a dot.
9287       libltdl_cv_objdir=_libs
9288     fi
9289   rmdir .libs 2>/dev/null
9290   fi
9291
9292 fi
9293 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9294 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9295
9296 cat >>confdefs.h <<_ACEOF
9297 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9298 _ACEOF
9299
9300
9301
9302
9303
9304
9305 # Check for command to grab the raw symbol name followed by C symbol from nm.
9306 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9307 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9308 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9309   echo $ECHO_N "(cached) $ECHO_C" >&6
9310 else
9311
9312 # These are sane defaults that work on at least a few old systems.
9313 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9314
9315 # Character class describing NM global symbol codes.
9316 symcode='[BCDEGRST]'
9317
9318 # Regexp to match symbols that can be accessed directly from C.
9319 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9320
9321 # Transform an extracted symbol line into a proper C declaration
9322 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9323
9324 # Transform an extracted symbol line into symbol name and symbol address
9325 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'"
9326
9327 # Define system-specific variables.
9328 case $host_os in
9329 aix*)
9330   symcode='[BCDT]'
9331   ;;
9332 cygwin* | mingw* | pw32*)
9333   symcode='[ABCDGISTW]'
9334   ;;
9335 hpux*) # Its linker distinguishes data from code symbols
9336   if test "$host_cpu" = ia64; then
9337     symcode='[ABCDEGRST]'
9338   fi
9339   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9340   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'"
9341   ;;
9342 linux*)
9343   if test "$host_cpu" = ia64; then
9344     symcode='[ABCDGIRSTW]'
9345     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9346     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'"
9347   fi
9348   ;;
9349 irix* | nonstopux*)
9350   symcode='[BCDEGRST]'
9351   ;;
9352 osf*)
9353   symcode='[BCDEGQRST]'
9354   ;;
9355 solaris*)
9356   symcode='[BDRT]'
9357   ;;
9358 sco3.2v5*)
9359   symcode='[DT]'
9360   ;;
9361 sysv4.2uw2*)
9362   symcode='[DT]'
9363   ;;
9364 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9365   symcode='[ABDT]'
9366   ;;
9367 sysv4)
9368   symcode='[DFNSTU]'
9369   ;;
9370 esac
9371
9372 # Handle CRLF in mingw tool chain
9373 opt_cr=
9374 case $build_os in
9375 mingw*)
9376   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9377   ;;
9378 esac
9379
9380 # If we're using GNU nm, then use its standard symbol codes.
9381 case `$NM -V 2>&1` in
9382 *GNU* | *'with BFD'*)
9383   symcode='[ABCDGIRSTW]' ;;
9384 esac
9385
9386 # Try without a prefix undercore, then with it.
9387 for ac_symprfx in "" "_"; do
9388
9389   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9390   symxfrm="\\1 $ac_symprfx\\2 \\2"
9391
9392   # Write the raw and C identifiers.
9393   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9394
9395   # Check to see that the pipe works correctly.
9396   pipe_works=no
9397
9398   rm -f conftest*
9399   cat > conftest.$ac_ext <<EOF
9400 #ifdef __cplusplus
9401 extern "C" {
9402 #endif
9403 char nm_test_var;
9404 void nm_test_func(){}
9405 #ifdef __cplusplus
9406 }
9407 #endif
9408 int main(){nm_test_var='a';nm_test_func();return(0);}
9409 EOF
9410
9411   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9412   (eval $ac_compile) 2>&5
9413   ac_status=$?
9414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415   (exit $ac_status); }; then
9416     # Now try to grab the symbols.
9417     nlist=conftest.nm
9418     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9419   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9420   ac_status=$?
9421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422   (exit $ac_status); } && test -s "$nlist"; then
9423       # Try sorting and uniquifying the output.
9424       if sort "$nlist" | uniq > "$nlist"T; then
9425         mv -f "$nlist"T "$nlist"
9426       else
9427         rm -f "$nlist"T
9428       fi
9429
9430       # Make sure that we snagged all the symbols we need.
9431       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9432         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9433           cat <<EOF > conftest.$ac_ext
9434 #ifdef __cplusplus
9435 extern "C" {
9436 #endif
9437
9438 EOF
9439           # Now generate the symbol file.
9440           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9441
9442           cat <<EOF >> conftest.$ac_ext
9443 #if defined (__STDC__) && __STDC__
9444 # define lt_ptr_t void *
9445 #else
9446 # define lt_ptr_t char *
9447 # define const
9448 #endif
9449
9450 /* The mapping between symbol names and symbols. */
9451 const struct {
9452   const char *name;
9453   lt_ptr_t address;
9454 }
9455 lt_preloaded_symbols[] =
9456 {
9457 EOF
9458           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9459           cat <<\EOF >> conftest.$ac_ext
9460   {0, (lt_ptr_t) 0}
9461 };
9462
9463 #ifdef __cplusplus
9464 }
9465 #endif
9466 EOF
9467           # Now try linking the two files.
9468           mv conftest.$ac_objext conftstm.$ac_objext
9469           lt_save_LIBS="$LIBS"
9470           lt_save_CFLAGS="$CFLAGS"
9471           LIBS="conftstm.$ac_objext"
9472           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9473           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9474   (eval $ac_link) 2>&5
9475   ac_status=$?
9476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9478             pipe_works=yes
9479           fi
9480           LIBS="$lt_save_LIBS"
9481           CFLAGS="$lt_save_CFLAGS"
9482         else
9483           echo "cannot find nm_test_func in $nlist" >&5
9484         fi
9485       else
9486         echo "cannot find nm_test_var in $nlist" >&5
9487       fi
9488     else
9489       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9490     fi
9491   else
9492     echo "$progname: failed program was:" >&5
9493     cat conftest.$ac_ext >&5
9494   fi
9495   rm -f conftest* conftst*
9496
9497   # Do not use the global_symbol_pipe unless it works.
9498   if test "$pipe_works" = yes; then
9499     break
9500   else
9501     lt_cv_sys_global_symbol_pipe=
9502   fi
9503 done
9504
9505 fi
9506
9507 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9508   lt_cv_sys_global_symbol_to_cdecl=
9509 fi
9510 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9511   { echo "$as_me:$LINENO: result: failed" >&5
9512 echo "${ECHO_T}failed" >&6; }
9513 else
9514   { echo "$as_me:$LINENO: result: ok" >&5
9515 echo "${ECHO_T}ok" >&6; }
9516 fi
9517
9518
9519 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9520 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9521 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9522   echo $ECHO_N "(cached) $ECHO_C" >&6
9523 else
9524   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9525     libltdl_cv_preloaded_symbols=yes
9526   else
9527     libltdl_cv_preloaded_symbols=no
9528   fi
9529
9530 fi
9531 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9532 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9533 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9534
9535 cat >>confdefs.h <<\_ACEOF
9536 #define HAVE_PRELOADED_SYMBOLS 1
9537 _ACEOF
9538
9539 fi
9540
9541 LIBADD_DL=
9542
9543 ac_ext=c
9544 ac_cpp='$CPP $CPPFLAGS'
9545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9548
9549
9550 { echo "$as_me:$LINENO: checking for shl_load" >&5
9551 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9552 if test "${ac_cv_func_shl_load+set}" = set; then
9553   echo $ECHO_N "(cached) $ECHO_C" >&6
9554 else
9555   cat >conftest.$ac_ext <<_ACEOF
9556 /* confdefs.h.  */
9557 _ACEOF
9558 cat confdefs.h >>conftest.$ac_ext
9559 cat >>conftest.$ac_ext <<_ACEOF
9560 /* end confdefs.h.  */
9561 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9562    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9563 #define shl_load innocuous_shl_load
9564
9565 /* System header to define __stub macros and hopefully few prototypes,
9566     which can conflict with char shl_load (); below.
9567     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9568     <limits.h> exists even on freestanding compilers.  */
9569
9570 #ifdef __STDC__
9571 # include <limits.h>
9572 #else
9573 # include <assert.h>
9574 #endif
9575
9576 #undef shl_load
9577
9578 /* Override any GCC internal prototype to avoid an error.
9579    Use char because int might match the return type of a GCC
9580    builtin and then its argument prototype would still apply.  */
9581 #ifdef __cplusplus
9582 extern "C"
9583 #endif
9584 char shl_load ();
9585 /* The GNU C library defines this for functions which it implements
9586     to always fail with ENOSYS.  Some functions are actually named
9587     something starting with __ and the normal name is an alias.  */
9588 #if defined __stub_shl_load || defined __stub___shl_load
9589 choke me
9590 #endif
9591
9592 int
9593 main ()
9594 {
9595 return shl_load ();
9596   ;
9597   return 0;
9598 }
9599 _ACEOF
9600 rm -f conftest.$ac_objext conftest$ac_exeext
9601 if { (ac_try="$ac_link"
9602 case "(($ac_try" in
9603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9604   *) ac_try_echo=$ac_try;;
9605 esac
9606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9607   (eval "$ac_link") 2>conftest.er1
9608   ac_status=$?
9609   grep -v '^ *+' conftest.er1 >conftest.err
9610   rm -f conftest.er1
9611   cat conftest.err >&5
9612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613   (exit $ac_status); } &&
9614          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9615   { (case "(($ac_try" in
9616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9617   *) ac_try_echo=$ac_try;;
9618 esac
9619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9620   (eval "$ac_try") 2>&5
9621   ac_status=$?
9622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623   (exit $ac_status); }; } &&
9624          { ac_try='test -s conftest$ac_exeext'
9625   { (case "(($ac_try" in
9626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9627   *) ac_try_echo=$ac_try;;
9628 esac
9629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9630   (eval "$ac_try") 2>&5
9631   ac_status=$?
9632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633   (exit $ac_status); }; }; then
9634   ac_cv_func_shl_load=yes
9635 else
9636   echo "$as_me: failed program was:" >&5
9637 sed 's/^/| /' conftest.$ac_ext >&5
9638
9639         ac_cv_func_shl_load=no
9640 fi
9641
9642 rm -f core conftest.err conftest.$ac_objext \
9643       conftest$ac_exeext conftest.$ac_ext
9644 fi
9645 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9646 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9647 if test $ac_cv_func_shl_load = yes; then
9648
9649 cat >>confdefs.h <<\_ACEOF
9650 #define HAVE_SHL_LOAD 1
9651 _ACEOF
9652
9653 else
9654   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9655 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9656 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9657   echo $ECHO_N "(cached) $ECHO_C" >&6
9658 else
9659   ac_check_lib_save_LIBS=$LIBS
9660 LIBS="-ldld  $LIBS"
9661 cat >conftest.$ac_ext <<_ACEOF
9662 /* confdefs.h.  */
9663 _ACEOF
9664 cat confdefs.h >>conftest.$ac_ext
9665 cat >>conftest.$ac_ext <<_ACEOF
9666 /* end confdefs.h.  */
9667
9668 /* Override any GCC internal prototype to avoid an error.
9669    Use char because int might match the return type of a GCC
9670    builtin and then its argument prototype would still apply.  */
9671 #ifdef __cplusplus
9672 extern "C"
9673 #endif
9674 char shl_load ();
9675 int
9676 main ()
9677 {
9678 return shl_load ();
9679   ;
9680   return 0;
9681 }
9682 _ACEOF
9683 rm -f conftest.$ac_objext conftest$ac_exeext
9684 if { (ac_try="$ac_link"
9685 case "(($ac_try" in
9686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9687   *) ac_try_echo=$ac_try;;
9688 esac
9689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9690   (eval "$ac_link") 2>conftest.er1
9691   ac_status=$?
9692   grep -v '^ *+' conftest.er1 >conftest.err
9693   rm -f conftest.er1
9694   cat conftest.err >&5
9695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696   (exit $ac_status); } &&
9697          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9698   { (case "(($ac_try" in
9699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9700   *) ac_try_echo=$ac_try;;
9701 esac
9702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9703   (eval "$ac_try") 2>&5
9704   ac_status=$?
9705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706   (exit $ac_status); }; } &&
9707          { ac_try='test -s conftest$ac_exeext'
9708   { (case "(($ac_try" in
9709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9710   *) ac_try_echo=$ac_try;;
9711 esac
9712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9713   (eval "$ac_try") 2>&5
9714   ac_status=$?
9715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716   (exit $ac_status); }; }; then
9717   ac_cv_lib_dld_shl_load=yes
9718 else
9719   echo "$as_me: failed program was:" >&5
9720 sed 's/^/| /' conftest.$ac_ext >&5
9721
9722         ac_cv_lib_dld_shl_load=no
9723 fi
9724
9725 rm -f core conftest.err conftest.$ac_objext \
9726       conftest$ac_exeext conftest.$ac_ext
9727 LIBS=$ac_check_lib_save_LIBS
9728 fi
9729 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9730 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9731 if test $ac_cv_lib_dld_shl_load = yes; then
9732
9733 cat >>confdefs.h <<\_ACEOF
9734 #define HAVE_SHL_LOAD 1
9735 _ACEOF
9736
9737         LIBADD_DL="$LIBADD_DL -ldld"
9738 else
9739   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9740 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9741 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9742   echo $ECHO_N "(cached) $ECHO_C" >&6
9743 else
9744   ac_check_lib_save_LIBS=$LIBS
9745 LIBS="-ldl  $LIBS"
9746 cat >conftest.$ac_ext <<_ACEOF
9747 /* confdefs.h.  */
9748 _ACEOF
9749 cat confdefs.h >>conftest.$ac_ext
9750 cat >>conftest.$ac_ext <<_ACEOF
9751 /* end confdefs.h.  */
9752
9753 /* Override any GCC internal prototype to avoid an error.
9754    Use char because int might match the return type of a GCC
9755    builtin and then its argument prototype would still apply.  */
9756 #ifdef __cplusplus
9757 extern "C"
9758 #endif
9759 char dlopen ();
9760 int
9761 main ()
9762 {
9763 return dlopen ();
9764   ;
9765   return 0;
9766 }
9767 _ACEOF
9768 rm -f conftest.$ac_objext conftest$ac_exeext
9769 if { (ac_try="$ac_link"
9770 case "(($ac_try" in
9771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9772   *) ac_try_echo=$ac_try;;
9773 esac
9774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9775   (eval "$ac_link") 2>conftest.er1
9776   ac_status=$?
9777   grep -v '^ *+' conftest.er1 >conftest.err
9778   rm -f conftest.er1
9779   cat conftest.err >&5
9780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781   (exit $ac_status); } &&
9782          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9783   { (case "(($ac_try" in
9784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9785   *) ac_try_echo=$ac_try;;
9786 esac
9787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9788   (eval "$ac_try") 2>&5
9789   ac_status=$?
9790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791   (exit $ac_status); }; } &&
9792          { ac_try='test -s conftest$ac_exeext'
9793   { (case "(($ac_try" in
9794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9795   *) ac_try_echo=$ac_try;;
9796 esac
9797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9798   (eval "$ac_try") 2>&5
9799   ac_status=$?
9800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801   (exit $ac_status); }; }; then
9802   ac_cv_lib_dl_dlopen=yes
9803 else
9804   echo "$as_me: failed program was:" >&5
9805 sed 's/^/| /' conftest.$ac_ext >&5
9806
9807         ac_cv_lib_dl_dlopen=no
9808 fi
9809
9810 rm -f core conftest.err conftest.$ac_objext \
9811       conftest$ac_exeext conftest.$ac_ext
9812 LIBS=$ac_check_lib_save_LIBS
9813 fi
9814 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9815 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9816 if test $ac_cv_lib_dl_dlopen = yes; then
9817
9818 cat >>confdefs.h <<\_ACEOF
9819 #define HAVE_LIBDL 1
9820 _ACEOF
9821
9822                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9823 else
9824   cat >conftest.$ac_ext <<_ACEOF
9825 /* confdefs.h.  */
9826 _ACEOF
9827 cat confdefs.h >>conftest.$ac_ext
9828 cat >>conftest.$ac_ext <<_ACEOF
9829 /* end confdefs.h.  */
9830 #if HAVE_DLFCN_H
9831 #  include <dlfcn.h>
9832 #endif
9833
9834 int
9835 main ()
9836 {
9837 dlopen(0, 0);
9838   ;
9839   return 0;
9840 }
9841 _ACEOF
9842 rm -f conftest.$ac_objext conftest$ac_exeext
9843 if { (ac_try="$ac_link"
9844 case "(($ac_try" in
9845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9846   *) ac_try_echo=$ac_try;;
9847 esac
9848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9849   (eval "$ac_link") 2>conftest.er1
9850   ac_status=$?
9851   grep -v '^ *+' conftest.er1 >conftest.err
9852   rm -f conftest.er1
9853   cat conftest.err >&5
9854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855   (exit $ac_status); } &&
9856          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9857   { (case "(($ac_try" in
9858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9859   *) ac_try_echo=$ac_try;;
9860 esac
9861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9862   (eval "$ac_try") 2>&5
9863   ac_status=$?
9864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865   (exit $ac_status); }; } &&
9866          { ac_try='test -s conftest$ac_exeext'
9867   { (case "(($ac_try" in
9868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9869   *) ac_try_echo=$ac_try;;
9870 esac
9871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9872   (eval "$ac_try") 2>&5
9873   ac_status=$?
9874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875   (exit $ac_status); }; }; then
9876
9877 cat >>confdefs.h <<\_ACEOF
9878 #define HAVE_LIBDL 1
9879 _ACEOF
9880  libltdl_cv_func_dlopen="yes"
9881 else
9882   echo "$as_me: failed program was:" >&5
9883 sed 's/^/| /' conftest.$ac_ext >&5
9884
9885         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9886 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9887 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9888   echo $ECHO_N "(cached) $ECHO_C" >&6
9889 else
9890   ac_check_lib_save_LIBS=$LIBS
9891 LIBS="-lsvld  $LIBS"
9892 cat >conftest.$ac_ext <<_ACEOF
9893 /* confdefs.h.  */
9894 _ACEOF
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h.  */
9898
9899 /* Override any GCC internal prototype to avoid an error.
9900    Use char because int might match the return type of a GCC
9901    builtin and then its argument prototype would still apply.  */
9902 #ifdef __cplusplus
9903 extern "C"
9904 #endif
9905 char dlopen ();
9906 int
9907 main ()
9908 {
9909 return dlopen ();
9910   ;
9911   return 0;
9912 }
9913 _ACEOF
9914 rm -f conftest.$ac_objext conftest$ac_exeext
9915 if { (ac_try="$ac_link"
9916 case "(($ac_try" in
9917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9918   *) ac_try_echo=$ac_try;;
9919 esac
9920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9921   (eval "$ac_link") 2>conftest.er1
9922   ac_status=$?
9923   grep -v '^ *+' conftest.er1 >conftest.err
9924   rm -f conftest.er1
9925   cat conftest.err >&5
9926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927   (exit $ac_status); } &&
9928          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9929   { (case "(($ac_try" in
9930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9931   *) ac_try_echo=$ac_try;;
9932 esac
9933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9934   (eval "$ac_try") 2>&5
9935   ac_status=$?
9936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937   (exit $ac_status); }; } &&
9938          { ac_try='test -s conftest$ac_exeext'
9939   { (case "(($ac_try" in
9940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9941   *) ac_try_echo=$ac_try;;
9942 esac
9943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9944   (eval "$ac_try") 2>&5
9945   ac_status=$?
9946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947   (exit $ac_status); }; }; then
9948   ac_cv_lib_svld_dlopen=yes
9949 else
9950   echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.$ac_ext >&5
9952
9953         ac_cv_lib_svld_dlopen=no
9954 fi
9955
9956 rm -f core conftest.err conftest.$ac_objext \
9957       conftest$ac_exeext conftest.$ac_ext
9958 LIBS=$ac_check_lib_save_LIBS
9959 fi
9960 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9961 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9962 if test $ac_cv_lib_svld_dlopen = yes; then
9963
9964 cat >>confdefs.h <<\_ACEOF
9965 #define HAVE_LIBDL 1
9966 _ACEOF
9967
9968                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9969 else
9970   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9971 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9972 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9973   echo $ECHO_N "(cached) $ECHO_C" >&6
9974 else
9975   ac_check_lib_save_LIBS=$LIBS
9976 LIBS="-ldld  $LIBS"
9977 cat >conftest.$ac_ext <<_ACEOF
9978 /* confdefs.h.  */
9979 _ACEOF
9980 cat confdefs.h >>conftest.$ac_ext
9981 cat >>conftest.$ac_ext <<_ACEOF
9982 /* end confdefs.h.  */
9983
9984 /* Override any GCC internal prototype to avoid an error.
9985    Use char because int might match the return type of a GCC
9986    builtin and then its argument prototype would still apply.  */
9987 #ifdef __cplusplus
9988 extern "C"
9989 #endif
9990 char dld_link ();
9991 int
9992 main ()
9993 {
9994 return dld_link ();
9995   ;
9996   return 0;
9997 }
9998 _ACEOF
9999 rm -f conftest.$ac_objext conftest$ac_exeext
10000 if { (ac_try="$ac_link"
10001 case "(($ac_try" in
10002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10003   *) ac_try_echo=$ac_try;;
10004 esac
10005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10006   (eval "$ac_link") 2>conftest.er1
10007   ac_status=$?
10008   grep -v '^ *+' conftest.er1 >conftest.err
10009   rm -f conftest.er1
10010   cat conftest.err >&5
10011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012   (exit $ac_status); } &&
10013          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10014   { (case "(($ac_try" in
10015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016   *) ac_try_echo=$ac_try;;
10017 esac
10018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019   (eval "$ac_try") 2>&5
10020   ac_status=$?
10021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022   (exit $ac_status); }; } &&
10023          { ac_try='test -s conftest$ac_exeext'
10024   { (case "(($ac_try" in
10025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026   *) ac_try_echo=$ac_try;;
10027 esac
10028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10029   (eval "$ac_try") 2>&5
10030   ac_status=$?
10031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032   (exit $ac_status); }; }; then
10033   ac_cv_lib_dld_dld_link=yes
10034 else
10035   echo "$as_me: failed program was:" >&5
10036 sed 's/^/| /' conftest.$ac_ext >&5
10037
10038         ac_cv_lib_dld_dld_link=no
10039 fi
10040
10041 rm -f core conftest.err conftest.$ac_objext \
10042       conftest$ac_exeext conftest.$ac_ext
10043 LIBS=$ac_check_lib_save_LIBS
10044 fi
10045 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10046 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10047 if test $ac_cv_lib_dld_dld_link = yes; then
10048
10049 cat >>confdefs.h <<\_ACEOF
10050 #define HAVE_DLD 1
10051 _ACEOF
10052
10053                 LIBADD_DL="$LIBADD_DL -ldld"
10054 else
10055   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10056 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10057 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10058   echo $ECHO_N "(cached) $ECHO_C" >&6
10059 else
10060   cat >conftest.$ac_ext <<_ACEOF
10061 /* confdefs.h.  */
10062 _ACEOF
10063 cat confdefs.h >>conftest.$ac_ext
10064 cat >>conftest.$ac_ext <<_ACEOF
10065 /* end confdefs.h.  */
10066 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10067    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10068 #define _dyld_func_lookup innocuous__dyld_func_lookup
10069
10070 /* System header to define __stub macros and hopefully few prototypes,
10071     which can conflict with char _dyld_func_lookup (); below.
10072     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10073     <limits.h> exists even on freestanding compilers.  */
10074
10075 #ifdef __STDC__
10076 # include <limits.h>
10077 #else
10078 # include <assert.h>
10079 #endif
10080
10081 #undef _dyld_func_lookup
10082
10083 /* Override any GCC internal prototype to avoid an error.
10084    Use char because int might match the return type of a GCC
10085    builtin and then its argument prototype would still apply.  */
10086 #ifdef __cplusplus
10087 extern "C"
10088 #endif
10089 char _dyld_func_lookup ();
10090 /* The GNU C library defines this for functions which it implements
10091     to always fail with ENOSYS.  Some functions are actually named
10092     something starting with __ and the normal name is an alias.  */
10093 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10094 choke me
10095 #endif
10096
10097 int
10098 main ()
10099 {
10100 return _dyld_func_lookup ();
10101   ;
10102   return 0;
10103 }
10104 _ACEOF
10105 rm -f conftest.$ac_objext conftest$ac_exeext
10106 if { (ac_try="$ac_link"
10107 case "(($ac_try" in
10108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10109   *) ac_try_echo=$ac_try;;
10110 esac
10111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10112   (eval "$ac_link") 2>conftest.er1
10113   ac_status=$?
10114   grep -v '^ *+' conftest.er1 >conftest.err
10115   rm -f conftest.er1
10116   cat conftest.err >&5
10117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118   (exit $ac_status); } &&
10119          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10120   { (case "(($ac_try" in
10121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10122   *) ac_try_echo=$ac_try;;
10123 esac
10124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10125   (eval "$ac_try") 2>&5
10126   ac_status=$?
10127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128   (exit $ac_status); }; } &&
10129          { ac_try='test -s conftest$ac_exeext'
10130   { (case "(($ac_try" in
10131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10132   *) ac_try_echo=$ac_try;;
10133 esac
10134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10135   (eval "$ac_try") 2>&5
10136   ac_status=$?
10137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138   (exit $ac_status); }; }; then
10139   ac_cv_func__dyld_func_lookup=yes
10140 else
10141   echo "$as_me: failed program was:" >&5
10142 sed 's/^/| /' conftest.$ac_ext >&5
10143
10144         ac_cv_func__dyld_func_lookup=no
10145 fi
10146
10147 rm -f core conftest.err conftest.$ac_objext \
10148       conftest$ac_exeext conftest.$ac_ext
10149 fi
10150 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10151 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10152 if test $ac_cv_func__dyld_func_lookup = yes; then
10153
10154 cat >>confdefs.h <<\_ACEOF
10155 #define HAVE_DYLD 1
10156 _ACEOF
10157
10158 fi
10159
10160
10161 fi
10162
10163
10164 fi
10165
10166
10167 fi
10168
10169 rm -f core conftest.err conftest.$ac_objext \
10170       conftest$ac_exeext conftest.$ac_ext
10171
10172 fi
10173
10174
10175 fi
10176
10177
10178 fi
10179
10180
10181 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10182 then
10183   lt_save_LIBS="$LIBS"
10184   LIBS="$LIBS $LIBADD_DL"
10185
10186 for ac_func in dlerror
10187 do
10188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10189 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10191 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10192   echo $ECHO_N "(cached) $ECHO_C" >&6
10193 else
10194   cat >conftest.$ac_ext <<_ACEOF
10195 /* confdefs.h.  */
10196 _ACEOF
10197 cat confdefs.h >>conftest.$ac_ext
10198 cat >>conftest.$ac_ext <<_ACEOF
10199 /* end confdefs.h.  */
10200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10201    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10202 #define $ac_func innocuous_$ac_func
10203
10204 /* System header to define __stub macros and hopefully few prototypes,
10205     which can conflict with char $ac_func (); below.
10206     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10207     <limits.h> exists even on freestanding compilers.  */
10208
10209 #ifdef __STDC__
10210 # include <limits.h>
10211 #else
10212 # include <assert.h>
10213 #endif
10214
10215 #undef $ac_func
10216
10217 /* Override any GCC internal prototype to avoid an error.
10218    Use char because int might match the return type of a GCC
10219    builtin and then its argument prototype would still apply.  */
10220 #ifdef __cplusplus
10221 extern "C"
10222 #endif
10223 char $ac_func ();
10224 /* The GNU C library defines this for functions which it implements
10225     to always fail with ENOSYS.  Some functions are actually named
10226     something starting with __ and the normal name is an alias.  */
10227 #if defined __stub_$ac_func || defined __stub___$ac_func
10228 choke me
10229 #endif
10230
10231 int
10232 main ()
10233 {
10234 return $ac_func ();
10235   ;
10236   return 0;
10237 }
10238 _ACEOF
10239 rm -f conftest.$ac_objext conftest$ac_exeext
10240 if { (ac_try="$ac_link"
10241 case "(($ac_try" in
10242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10243   *) ac_try_echo=$ac_try;;
10244 esac
10245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10246   (eval "$ac_link") 2>conftest.er1
10247   ac_status=$?
10248   grep -v '^ *+' conftest.er1 >conftest.err
10249   rm -f conftest.er1
10250   cat conftest.err >&5
10251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252   (exit $ac_status); } &&
10253          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10254   { (case "(($ac_try" in
10255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10256   *) ac_try_echo=$ac_try;;
10257 esac
10258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10259   (eval "$ac_try") 2>&5
10260   ac_status=$?
10261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262   (exit $ac_status); }; } &&
10263          { ac_try='test -s conftest$ac_exeext'
10264   { (case "(($ac_try" in
10265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10266   *) ac_try_echo=$ac_try;;
10267 esac
10268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10269   (eval "$ac_try") 2>&5
10270   ac_status=$?
10271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272   (exit $ac_status); }; }; then
10273   eval "$as_ac_var=yes"
10274 else
10275   echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.$ac_ext >&5
10277
10278         eval "$as_ac_var=no"
10279 fi
10280
10281 rm -f core conftest.err conftest.$ac_objext \
10282       conftest$ac_exeext conftest.$ac_ext
10283 fi
10284 ac_res=`eval echo '${'$as_ac_var'}'`
10285                { echo "$as_me:$LINENO: result: $ac_res" >&5
10286 echo "${ECHO_T}$ac_res" >&6; }
10287 if test `eval echo '${'$as_ac_var'}'` = yes; then
10288   cat >>confdefs.h <<_ACEOF
10289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10290 _ACEOF
10291
10292 fi
10293 done
10294
10295   LIBS="$lt_save_LIBS"
10296 fi
10297 ac_ext=c
10298 ac_cpp='$CPP $CPPFLAGS'
10299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10302
10303
10304
10305 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10306 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10307 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10308   echo $ECHO_N "(cached) $ECHO_C" >&6
10309 else
10310   ac_cv_sys_symbol_underscore=no
10311   cat > conftest.$ac_ext <<EOF
10312 void nm_test_func(){}
10313 int main(){nm_test_func;return 0;}
10314 EOF
10315   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10316   (eval $ac_compile) 2>&5
10317   ac_status=$?
10318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319   (exit $ac_status); }; then
10320     # Now try to grab the symbols.
10321     ac_nlist=conftest.nm
10322     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10323   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10324   ac_status=$?
10325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326   (exit $ac_status); } && test -s "$ac_nlist"; then
10327       # See whether the symbols have a leading underscore.
10328       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10329         ac_cv_sys_symbol_underscore=yes
10330       else
10331         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10332           :
10333         else
10334           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10335         fi
10336       fi
10337     else
10338       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10339     fi
10340   else
10341     echo "configure: failed program was:" >&5
10342     cat conftest.c >&5
10343   fi
10344   rm -rf conftest*
10345
10346 fi
10347 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10348 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10349
10350
10351 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10352   if test x"$libltdl_cv_func_dlopen" = xyes ||
10353      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10354         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10355 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10356 if test "${libltdl_cv_need_uscore+set}" = set; then
10357   echo $ECHO_N "(cached) $ECHO_C" >&6
10358 else
10359   libltdl_cv_need_uscore=unknown
10360           save_LIBS="$LIBS"
10361           LIBS="$LIBS $LIBADD_DL"
10362           if test "$cross_compiling" = yes; then :
10363   libltdl_cv_need_uscore=cross
10364 else
10365   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10366   lt_status=$lt_dlunknown
10367   cat > conftest.$ac_ext <<EOF
10368 #line 10368 "configure"
10369 #include "confdefs.h"
10370
10371 #if HAVE_DLFCN_H
10372 #include <dlfcn.h>
10373 #endif
10374
10375 #include <stdio.h>
10376
10377 #ifdef RTLD_GLOBAL
10378 #  define LT_DLGLOBAL           RTLD_GLOBAL
10379 #else
10380 #  ifdef DL_GLOBAL
10381 #    define LT_DLGLOBAL         DL_GLOBAL
10382 #  else
10383 #    define LT_DLGLOBAL         0
10384 #  endif
10385 #endif
10386
10387 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10388    find out it does not work in some platform. */
10389 #ifndef LT_DLLAZY_OR_NOW
10390 #  ifdef RTLD_LAZY
10391 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10392 #  else
10393 #    ifdef DL_LAZY
10394 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10395 #    else
10396 #      ifdef RTLD_NOW
10397 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10398 #      else
10399 #        ifdef DL_NOW
10400 #          define LT_DLLAZY_OR_NOW      DL_NOW
10401 #        else
10402 #          define LT_DLLAZY_OR_NOW      0
10403 #        endif
10404 #      endif
10405 #    endif
10406 #  endif
10407 #endif
10408
10409 #ifdef __cplusplus
10410 extern "C" void exit (int);
10411 #endif
10412
10413 void fnord() { int i=42;}
10414 int main ()
10415 {
10416   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10417   int status = $lt_dlunknown;
10418
10419   if (self)
10420     {
10421       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10422       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10423       /* dlclose (self); */
10424     }
10425   else
10426     puts (dlerror ());
10427
10428     exit (status);
10429 }
10430 EOF
10431   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10432   (eval $ac_link) 2>&5
10433   ac_status=$?
10434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10436     (./conftest; exit; ) >&5 2>/dev/null
10437     lt_status=$?
10438     case x$lt_status in
10439       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10440       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10441       x$lt_dlunknown|x*)  ;;
10442     esac
10443   else :
10444     # compilation failed
10445
10446   fi
10447 fi
10448 rm -fr conftest*
10449
10450           LIBS="$save_LIBS"
10451
10452 fi
10453 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10454 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10455   fi
10456 fi
10457
10458 if test x"$libltdl_cv_need_uscore" = xyes; then
10459
10460 cat >>confdefs.h <<\_ACEOF
10461 #define NEED_USCORE 1
10462 _ACEOF
10463
10464 fi
10465
10466
10467 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10468 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10469 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10470   echo $ECHO_N "(cached) $ECHO_C" >&6
10471 else
10472   # PORTME does your system automatically load deplibs for dlopen?
10473   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10474   # For now, we just catch OSes we know something about -- in the
10475   # future, we'll try test this programmatically.
10476   libltdl_cv_sys_dlopen_deplibs=unknown
10477   case "$host_os" in
10478   aix3*|aix4.1.*|aix4.2.*)
10479     # Unknown whether this is true for these versions of AIX, but
10480     # we want this `case' here to explicitly catch those versions.
10481     libltdl_cv_sys_dlopen_deplibs=unknown
10482     ;;
10483   aix[45]*)
10484     libltdl_cv_sys_dlopen_deplibs=yes
10485     ;;
10486   darwin*)
10487     # Assuming the user has installed a libdl from somewhere, this is true
10488     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10489     libltdl_cv_sys_dlopen_deplibs=yes
10490     ;;
10491   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10492     # GNU and its variants, using gnu ld.so (Glibc)
10493     libltdl_cv_sys_dlopen_deplibs=yes
10494     ;;
10495   hpux10*|hpux11*)
10496     libltdl_cv_sys_dlopen_deplibs=yes
10497     ;;
10498   interix*)
10499     libltdl_cv_sys_dlopen_deplibs=yes
10500     ;;
10501   irix[12345]*|irix6.[01]*)
10502     # Catch all versions of IRIX before 6.2, and indicate that we don't
10503     # know how it worked for any of those versions.
10504     libltdl_cv_sys_dlopen_deplibs=unknown
10505     ;;
10506   irix*)
10507     # The case above catches anything before 6.2, and it's known that
10508     # at 6.2 and later dlopen does load deplibs.
10509     libltdl_cv_sys_dlopen_deplibs=yes
10510     ;;
10511   netbsd*)
10512     libltdl_cv_sys_dlopen_deplibs=yes
10513     ;;
10514   openbsd*)
10515     libltdl_cv_sys_dlopen_deplibs=yes
10516     ;;
10517   osf[1234]*)
10518     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10519     # it did *not* use an RPATH in a shared library to find objects the
10520     # library depends on, so we explicitly say `no'.
10521     libltdl_cv_sys_dlopen_deplibs=no
10522     ;;
10523   osf5.0|osf5.0a|osf5.1)
10524     # dlopen *does* load deplibs and with the right loader patch applied
10525     # it even uses RPATH in a shared library to search for shared objects
10526     # that the library depends on, but there's no easy way to know if that
10527     # patch is installed.  Since this is the case, all we can really
10528     # say is unknown -- it depends on the patch being installed.  If
10529     # it is, this changes to `yes'.  Without it, it would be `no'.
10530     libltdl_cv_sys_dlopen_deplibs=unknown
10531     ;;
10532   osf*)
10533     # the two cases above should catch all versions of osf <= 5.1.  Read
10534     # the comments above for what we know about them.
10535     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10536     # is used to find them so we can finally say `yes'.
10537     libltdl_cv_sys_dlopen_deplibs=yes
10538     ;;
10539   solaris*)
10540     libltdl_cv_sys_dlopen_deplibs=yes
10541     ;;
10542   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10543     libltdl_cv_sys_dlopen_deplibs=yes
10544     ;;
10545   esac
10546
10547 fi
10548 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10549 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10550 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10551
10552 cat >>confdefs.h <<\_ACEOF
10553 #define LTDL_DLOPEN_DEPLIBS 1
10554 _ACEOF
10555
10556 fi
10557
10558
10559 for ac_header in argz.h
10560 do
10561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10563   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10566   echo $ECHO_N "(cached) $ECHO_C" >&6
10567 fi
10568 ac_res=`eval echo '${'$as_ac_Header'}'`
10569                { echo "$as_me:$LINENO: result: $ac_res" >&5
10570 echo "${ECHO_T}$ac_res" >&6; }
10571 else
10572   # Is the header compilable?
10573 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10575 cat >conftest.$ac_ext <<_ACEOF
10576 /* confdefs.h.  */
10577 _ACEOF
10578 cat confdefs.h >>conftest.$ac_ext
10579 cat >>conftest.$ac_ext <<_ACEOF
10580 /* end confdefs.h.  */
10581 $ac_includes_default
10582 #include <$ac_header>
10583 _ACEOF
10584 rm -f conftest.$ac_objext
10585 if { (ac_try="$ac_compile"
10586 case "(($ac_try" in
10587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10588   *) ac_try_echo=$ac_try;;
10589 esac
10590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10591   (eval "$ac_compile") 2>conftest.er1
10592   ac_status=$?
10593   grep -v '^ *+' conftest.er1 >conftest.err
10594   rm -f conftest.er1
10595   cat conftest.err >&5
10596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597   (exit $ac_status); } &&
10598          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10599   { (case "(($ac_try" in
10600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10601   *) ac_try_echo=$ac_try;;
10602 esac
10603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10604   (eval "$ac_try") 2>&5
10605   ac_status=$?
10606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607   (exit $ac_status); }; } &&
10608          { ac_try='test -s conftest.$ac_objext'
10609   { (case "(($ac_try" in
10610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10611   *) ac_try_echo=$ac_try;;
10612 esac
10613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10614   (eval "$ac_try") 2>&5
10615   ac_status=$?
10616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617   (exit $ac_status); }; }; then
10618   ac_header_compiler=yes
10619 else
10620   echo "$as_me: failed program was:" >&5
10621 sed 's/^/| /' conftest.$ac_ext >&5
10622
10623         ac_header_compiler=no
10624 fi
10625
10626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10627 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10628 echo "${ECHO_T}$ac_header_compiler" >&6; }
10629
10630 # Is the header present?
10631 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10632 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10633 cat >conftest.$ac_ext <<_ACEOF
10634 /* confdefs.h.  */
10635 _ACEOF
10636 cat confdefs.h >>conftest.$ac_ext
10637 cat >>conftest.$ac_ext <<_ACEOF
10638 /* end confdefs.h.  */
10639 #include <$ac_header>
10640 _ACEOF
10641 if { (ac_try="$ac_cpp conftest.$ac_ext"
10642 case "(($ac_try" in
10643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10644   *) ac_try_echo=$ac_try;;
10645 esac
10646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10647   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10648   ac_status=$?
10649   grep -v '^ *+' conftest.er1 >conftest.err
10650   rm -f conftest.er1
10651   cat conftest.err >&5
10652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653   (exit $ac_status); } >/dev/null; then
10654   if test -s conftest.err; then
10655     ac_cpp_err=$ac_c_preproc_warn_flag
10656     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10657   else
10658     ac_cpp_err=
10659   fi
10660 else
10661   ac_cpp_err=yes
10662 fi
10663 if test -z "$ac_cpp_err"; then
10664   ac_header_preproc=yes
10665 else
10666   echo "$as_me: failed program was:" >&5
10667 sed 's/^/| /' conftest.$ac_ext >&5
10668
10669   ac_header_preproc=no
10670 fi
10671
10672 rm -f conftest.err conftest.$ac_ext
10673 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10674 echo "${ECHO_T}$ac_header_preproc" >&6; }
10675
10676 # So?  What about this header?
10677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10678   yes:no: )
10679     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10680 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10681     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10682 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10683     ac_header_preproc=yes
10684     ;;
10685   no:yes:* )
10686     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10688     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10689 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10690     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10691 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10692     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10693 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10694     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10696     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10697 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10698     ( cat <<\_ASBOX
10699 ## ------------------------------ ##
10700 ## Report this to bugs@yourdomain ##
10701 ## ------------------------------ ##
10702 _ASBOX
10703      ) | sed "s/^/$as_me: WARNING:     /" >&2
10704     ;;
10705 esac
10706 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10709   echo $ECHO_N "(cached) $ECHO_C" >&6
10710 else
10711   eval "$as_ac_Header=\$ac_header_preproc"
10712 fi
10713 ac_res=`eval echo '${'$as_ac_Header'}'`
10714                { echo "$as_me:$LINENO: result: $ac_res" >&5
10715 echo "${ECHO_T}$ac_res" >&6; }
10716
10717 fi
10718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10719   cat >>confdefs.h <<_ACEOF
10720 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10721 _ACEOF
10722
10723 fi
10724
10725 done
10726
10727
10728 { echo "$as_me:$LINENO: checking for error_t" >&5
10729 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10730 if test "${ac_cv_type_error_t+set}" = set; then
10731   echo $ECHO_N "(cached) $ECHO_C" >&6
10732 else
10733   cat >conftest.$ac_ext <<_ACEOF
10734 /* confdefs.h.  */
10735 _ACEOF
10736 cat confdefs.h >>conftest.$ac_ext
10737 cat >>conftest.$ac_ext <<_ACEOF
10738 /* end confdefs.h.  */
10739 #if HAVE_ARGZ_H
10740 #  include <argz.h>
10741 #endif
10742
10743 typedef error_t ac__type_new_;
10744 int
10745 main ()
10746 {
10747 if ((ac__type_new_ *) 0)
10748   return 0;
10749 if (sizeof (ac__type_new_))
10750   return 0;
10751   ;
10752   return 0;
10753 }
10754 _ACEOF
10755 rm -f conftest.$ac_objext
10756 if { (ac_try="$ac_compile"
10757 case "(($ac_try" in
10758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10759   *) ac_try_echo=$ac_try;;
10760 esac
10761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10762   (eval "$ac_compile") 2>conftest.er1
10763   ac_status=$?
10764   grep -v '^ *+' conftest.er1 >conftest.err
10765   rm -f conftest.er1
10766   cat conftest.err >&5
10767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768   (exit $ac_status); } &&
10769          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10770   { (case "(($ac_try" in
10771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10772   *) ac_try_echo=$ac_try;;
10773 esac
10774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10775   (eval "$ac_try") 2>&5
10776   ac_status=$?
10777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778   (exit $ac_status); }; } &&
10779          { ac_try='test -s conftest.$ac_objext'
10780   { (case "(($ac_try" in
10781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10782   *) ac_try_echo=$ac_try;;
10783 esac
10784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10785   (eval "$ac_try") 2>&5
10786   ac_status=$?
10787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788   (exit $ac_status); }; }; then
10789   ac_cv_type_error_t=yes
10790 else
10791   echo "$as_me: failed program was:" >&5
10792 sed 's/^/| /' conftest.$ac_ext >&5
10793
10794         ac_cv_type_error_t=no
10795 fi
10796
10797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10798 fi
10799 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10800 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10801 if test $ac_cv_type_error_t = yes; then
10802
10803 cat >>confdefs.h <<_ACEOF
10804 #define HAVE_ERROR_T 1
10805 _ACEOF
10806
10807
10808 else
10809
10810 cat >>confdefs.h <<\_ACEOF
10811 #define error_t int
10812 _ACEOF
10813
10814 fi
10815
10816
10817
10818
10819
10820
10821
10822 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10823 do
10824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10825 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10827 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10828   echo $ECHO_N "(cached) $ECHO_C" >&6
10829 else
10830   cat >conftest.$ac_ext <<_ACEOF
10831 /* confdefs.h.  */
10832 _ACEOF
10833 cat confdefs.h >>conftest.$ac_ext
10834 cat >>conftest.$ac_ext <<_ACEOF
10835 /* end confdefs.h.  */
10836 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10837    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10838 #define $ac_func innocuous_$ac_func
10839
10840 /* System header to define __stub macros and hopefully few prototypes,
10841     which can conflict with char $ac_func (); below.
10842     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10843     <limits.h> exists even on freestanding compilers.  */
10844
10845 #ifdef __STDC__
10846 # include <limits.h>
10847 #else
10848 # include <assert.h>
10849 #endif
10850
10851 #undef $ac_func
10852
10853 /* Override any GCC internal prototype to avoid an error.
10854    Use char because int might match the return type of a GCC
10855    builtin and then its argument prototype would still apply.  */
10856 #ifdef __cplusplus
10857 extern "C"
10858 #endif
10859 char $ac_func ();
10860 /* The GNU C library defines this for functions which it implements
10861     to always fail with ENOSYS.  Some functions are actually named
10862     something starting with __ and the normal name is an alias.  */
10863 #if defined __stub_$ac_func || defined __stub___$ac_func
10864 choke me
10865 #endif
10866
10867 int
10868 main ()
10869 {
10870 return $ac_func ();
10871   ;
10872   return 0;
10873 }
10874 _ACEOF
10875 rm -f conftest.$ac_objext conftest$ac_exeext
10876 if { (ac_try="$ac_link"
10877 case "(($ac_try" in
10878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10879   *) ac_try_echo=$ac_try;;
10880 esac
10881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10882   (eval "$ac_link") 2>conftest.er1
10883   ac_status=$?
10884   grep -v '^ *+' conftest.er1 >conftest.err
10885   rm -f conftest.er1
10886   cat conftest.err >&5
10887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888   (exit $ac_status); } &&
10889          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10890   { (case "(($ac_try" in
10891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892   *) ac_try_echo=$ac_try;;
10893 esac
10894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10895   (eval "$ac_try") 2>&5
10896   ac_status=$?
10897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898   (exit $ac_status); }; } &&
10899          { ac_try='test -s conftest$ac_exeext'
10900   { (case "(($ac_try" in
10901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10902   *) ac_try_echo=$ac_try;;
10903 esac
10904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10905   (eval "$ac_try") 2>&5
10906   ac_status=$?
10907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908   (exit $ac_status); }; }; then
10909   eval "$as_ac_var=yes"
10910 else
10911   echo "$as_me: failed program was:" >&5
10912 sed 's/^/| /' conftest.$ac_ext >&5
10913
10914         eval "$as_ac_var=no"
10915 fi
10916
10917 rm -f core conftest.err conftest.$ac_objext \
10918       conftest$ac_exeext conftest.$ac_ext
10919 fi
10920 ac_res=`eval echo '${'$as_ac_var'}'`
10921                { echo "$as_me:$LINENO: result: $ac_res" >&5
10922 echo "${ECHO_T}$ac_res" >&6; }
10923 if test `eval echo '${'$as_ac_var'}'` = yes; then
10924   cat >>confdefs.h <<_ACEOF
10925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10926 _ACEOF
10927
10928 fi
10929 done
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10959                   stdio.h unistd.h
10960 do
10961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10963   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10966   echo $ECHO_N "(cached) $ECHO_C" >&6
10967 fi
10968 ac_res=`eval echo '${'$as_ac_Header'}'`
10969                { echo "$as_me:$LINENO: result: $ac_res" >&5
10970 echo "${ECHO_T}$ac_res" >&6; }
10971 else
10972   # Is the header compilable?
10973 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10975 cat >conftest.$ac_ext <<_ACEOF
10976 /* confdefs.h.  */
10977 _ACEOF
10978 cat confdefs.h >>conftest.$ac_ext
10979 cat >>conftest.$ac_ext <<_ACEOF
10980 /* end confdefs.h.  */
10981 $ac_includes_default
10982 #include <$ac_header>
10983 _ACEOF
10984 rm -f conftest.$ac_objext
10985 if { (ac_try="$ac_compile"
10986 case "(($ac_try" in
10987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10988   *) ac_try_echo=$ac_try;;
10989 esac
10990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10991   (eval "$ac_compile") 2>conftest.er1
10992   ac_status=$?
10993   grep -v '^ *+' conftest.er1 >conftest.err
10994   rm -f conftest.er1
10995   cat conftest.err >&5
10996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997   (exit $ac_status); } &&
10998          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10999   { (case "(($ac_try" in
11000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001   *) ac_try_echo=$ac_try;;
11002 esac
11003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11004   (eval "$ac_try") 2>&5
11005   ac_status=$?
11006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007   (exit $ac_status); }; } &&
11008          { ac_try='test -s conftest.$ac_objext'
11009   { (case "(($ac_try" in
11010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11011   *) ac_try_echo=$ac_try;;
11012 esac
11013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11014   (eval "$ac_try") 2>&5
11015   ac_status=$?
11016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017   (exit $ac_status); }; }; then
11018   ac_header_compiler=yes
11019 else
11020   echo "$as_me: failed program was:" >&5
11021 sed 's/^/| /' conftest.$ac_ext >&5
11022
11023         ac_header_compiler=no
11024 fi
11025
11026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11028 echo "${ECHO_T}$ac_header_compiler" >&6; }
11029
11030 # Is the header present?
11031 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11033 cat >conftest.$ac_ext <<_ACEOF
11034 /* confdefs.h.  */
11035 _ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h.  */
11039 #include <$ac_header>
11040 _ACEOF
11041 if { (ac_try="$ac_cpp conftest.$ac_ext"
11042 case "(($ac_try" in
11043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11044   *) ac_try_echo=$ac_try;;
11045 esac
11046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11047   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11048   ac_status=$?
11049   grep -v '^ *+' conftest.er1 >conftest.err
11050   rm -f conftest.er1
11051   cat conftest.err >&5
11052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053   (exit $ac_status); } >/dev/null; then
11054   if test -s conftest.err; then
11055     ac_cpp_err=$ac_c_preproc_warn_flag
11056     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11057   else
11058     ac_cpp_err=
11059   fi
11060 else
11061   ac_cpp_err=yes
11062 fi
11063 if test -z "$ac_cpp_err"; then
11064   ac_header_preproc=yes
11065 else
11066   echo "$as_me: failed program was:" >&5
11067 sed 's/^/| /' conftest.$ac_ext >&5
11068
11069   ac_header_preproc=no
11070 fi
11071
11072 rm -f conftest.err conftest.$ac_ext
11073 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11074 echo "${ECHO_T}$ac_header_preproc" >&6; }
11075
11076 # So?  What about this header?
11077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11078   yes:no: )
11079     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11081     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11083     ac_header_preproc=yes
11084     ;;
11085   no:yes:* )
11086     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11088     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11089 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11090     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11092     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11093 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11094     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11096     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11098     ( cat <<\_ASBOX
11099 ## ------------------------------ ##
11100 ## Report this to bugs@yourdomain ##
11101 ## ------------------------------ ##
11102 _ASBOX
11103      ) | sed "s/^/$as_me: WARNING:     /" >&2
11104     ;;
11105 esac
11106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11109   echo $ECHO_N "(cached) $ECHO_C" >&6
11110 else
11111   eval "$as_ac_Header=\$ac_header_preproc"
11112 fi
11113 ac_res=`eval echo '${'$as_ac_Header'}'`
11114                { echo "$as_me:$LINENO: result: $ac_res" >&5
11115 echo "${ECHO_T}$ac_res" >&6; }
11116
11117 fi
11118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11119   cat >>confdefs.h <<_ACEOF
11120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11121 _ACEOF
11122
11123 fi
11124
11125 done
11126
11127
11128
11129
11130
11131 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11132 do
11133 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11135   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11138   echo $ECHO_N "(cached) $ECHO_C" >&6
11139 fi
11140 ac_res=`eval echo '${'$as_ac_Header'}'`
11141                { echo "$as_me:$LINENO: result: $ac_res" >&5
11142 echo "${ECHO_T}$ac_res" >&6; }
11143 else
11144   # Is the header compilable?
11145 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11146 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11147 cat >conftest.$ac_ext <<_ACEOF
11148 /* confdefs.h.  */
11149 _ACEOF
11150 cat confdefs.h >>conftest.$ac_ext
11151 cat >>conftest.$ac_ext <<_ACEOF
11152 /* end confdefs.h.  */
11153 $ac_includes_default
11154 #include <$ac_header>
11155 _ACEOF
11156 rm -f conftest.$ac_objext
11157 if { (ac_try="$ac_compile"
11158 case "(($ac_try" in
11159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11160   *) ac_try_echo=$ac_try;;
11161 esac
11162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11163   (eval "$ac_compile") 2>conftest.er1
11164   ac_status=$?
11165   grep -v '^ *+' conftest.er1 >conftest.err
11166   rm -f conftest.er1
11167   cat conftest.err >&5
11168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169   (exit $ac_status); } &&
11170          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11171   { (case "(($ac_try" in
11172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11173   *) ac_try_echo=$ac_try;;
11174 esac
11175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11176   (eval "$ac_try") 2>&5
11177   ac_status=$?
11178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179   (exit $ac_status); }; } &&
11180          { ac_try='test -s conftest.$ac_objext'
11181   { (case "(($ac_try" in
11182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11183   *) ac_try_echo=$ac_try;;
11184 esac
11185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11186   (eval "$ac_try") 2>&5
11187   ac_status=$?
11188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189   (exit $ac_status); }; }; then
11190   ac_header_compiler=yes
11191 else
11192   echo "$as_me: failed program was:" >&5
11193 sed 's/^/| /' conftest.$ac_ext >&5
11194
11195         ac_header_compiler=no
11196 fi
11197
11198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11199 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11200 echo "${ECHO_T}$ac_header_compiler" >&6; }
11201
11202 # Is the header present?
11203 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11204 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11205 cat >conftest.$ac_ext <<_ACEOF
11206 /* confdefs.h.  */
11207 _ACEOF
11208 cat confdefs.h >>conftest.$ac_ext
11209 cat >>conftest.$ac_ext <<_ACEOF
11210 /* end confdefs.h.  */
11211 #include <$ac_header>
11212 _ACEOF
11213 if { (ac_try="$ac_cpp conftest.$ac_ext"
11214 case "(($ac_try" in
11215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11216   *) ac_try_echo=$ac_try;;
11217 esac
11218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11219   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11220   ac_status=$?
11221   grep -v '^ *+' conftest.er1 >conftest.err
11222   rm -f conftest.er1
11223   cat conftest.err >&5
11224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225   (exit $ac_status); } >/dev/null; then
11226   if test -s conftest.err; then
11227     ac_cpp_err=$ac_c_preproc_warn_flag
11228     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11229   else
11230     ac_cpp_err=
11231   fi
11232 else
11233   ac_cpp_err=yes
11234 fi
11235 if test -z "$ac_cpp_err"; then
11236   ac_header_preproc=yes
11237 else
11238   echo "$as_me: failed program was:" >&5
11239 sed 's/^/| /' conftest.$ac_ext >&5
11240
11241   ac_header_preproc=no
11242 fi
11243
11244 rm -f conftest.err conftest.$ac_ext
11245 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11246 echo "${ECHO_T}$ac_header_preproc" >&6; }
11247
11248 # So?  What about this header?
11249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11250   yes:no: )
11251     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11252 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11253     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11254 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11255     ac_header_preproc=yes
11256     ;;
11257   no:yes:* )
11258     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11259 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11260     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11261 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11262     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11263 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11264     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11265 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11266     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11268     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11269 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11270     ( cat <<\_ASBOX
11271 ## ------------------------------ ##
11272 ## Report this to bugs@yourdomain ##
11273 ## ------------------------------ ##
11274 _ASBOX
11275      ) | sed "s/^/$as_me: WARNING:     /" >&2
11276     ;;
11277 esac
11278 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11281   echo $ECHO_N "(cached) $ECHO_C" >&6
11282 else
11283   eval "$as_ac_Header=\$ac_header_preproc"
11284 fi
11285 ac_res=`eval echo '${'$as_ac_Header'}'`
11286                { echo "$as_me:$LINENO: result: $ac_res" >&5
11287 echo "${ECHO_T}$ac_res" >&6; }
11288
11289 fi
11290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11291   cat >>confdefs.h <<_ACEOF
11292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11293 _ACEOF
11294
11295 fi
11296
11297 done
11298
11299
11300
11301 for ac_header in string.h strings.h
11302 do
11303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11305   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11308   echo $ECHO_N "(cached) $ECHO_C" >&6
11309 fi
11310 ac_res=`eval echo '${'$as_ac_Header'}'`
11311                { echo "$as_me:$LINENO: result: $ac_res" >&5
11312 echo "${ECHO_T}$ac_res" >&6; }
11313 else
11314   # Is the header compilable?
11315 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11317 cat >conftest.$ac_ext <<_ACEOF
11318 /* confdefs.h.  */
11319 _ACEOF
11320 cat confdefs.h >>conftest.$ac_ext
11321 cat >>conftest.$ac_ext <<_ACEOF
11322 /* end confdefs.h.  */
11323 $ac_includes_default
11324 #include <$ac_header>
11325 _ACEOF
11326 rm -f conftest.$ac_objext
11327 if { (ac_try="$ac_compile"
11328 case "(($ac_try" in
11329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11330   *) ac_try_echo=$ac_try;;
11331 esac
11332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11333   (eval "$ac_compile") 2>conftest.er1
11334   ac_status=$?
11335   grep -v '^ *+' conftest.er1 >conftest.err
11336   rm -f conftest.er1
11337   cat conftest.err >&5
11338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339   (exit $ac_status); } &&
11340          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11341   { (case "(($ac_try" in
11342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11343   *) ac_try_echo=$ac_try;;
11344 esac
11345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11346   (eval "$ac_try") 2>&5
11347   ac_status=$?
11348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349   (exit $ac_status); }; } &&
11350          { ac_try='test -s conftest.$ac_objext'
11351   { (case "(($ac_try" in
11352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11353   *) ac_try_echo=$ac_try;;
11354 esac
11355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11356   (eval "$ac_try") 2>&5
11357   ac_status=$?
11358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359   (exit $ac_status); }; }; then
11360   ac_header_compiler=yes
11361 else
11362   echo "$as_me: failed program was:" >&5
11363 sed 's/^/| /' conftest.$ac_ext >&5
11364
11365         ac_header_compiler=no
11366 fi
11367
11368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11369 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11370 echo "${ECHO_T}$ac_header_compiler" >&6; }
11371
11372 # Is the header present?
11373 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11374 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11375 cat >conftest.$ac_ext <<_ACEOF
11376 /* confdefs.h.  */
11377 _ACEOF
11378 cat confdefs.h >>conftest.$ac_ext
11379 cat >>conftest.$ac_ext <<_ACEOF
11380 /* end confdefs.h.  */
11381 #include <$ac_header>
11382 _ACEOF
11383 if { (ac_try="$ac_cpp conftest.$ac_ext"
11384 case "(($ac_try" in
11385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11386   *) ac_try_echo=$ac_try;;
11387 esac
11388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11389   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11390   ac_status=$?
11391   grep -v '^ *+' conftest.er1 >conftest.err
11392   rm -f conftest.er1
11393   cat conftest.err >&5
11394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395   (exit $ac_status); } >/dev/null; then
11396   if test -s conftest.err; then
11397     ac_cpp_err=$ac_c_preproc_warn_flag
11398     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11399   else
11400     ac_cpp_err=
11401   fi
11402 else
11403   ac_cpp_err=yes
11404 fi
11405 if test -z "$ac_cpp_err"; then
11406   ac_header_preproc=yes
11407 else
11408   echo "$as_me: failed program was:" >&5
11409 sed 's/^/| /' conftest.$ac_ext >&5
11410
11411   ac_header_preproc=no
11412 fi
11413
11414 rm -f conftest.err conftest.$ac_ext
11415 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11416 echo "${ECHO_T}$ac_header_preproc" >&6; }
11417
11418 # So?  What about this header?
11419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11420   yes:no: )
11421     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11423     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11424 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11425     ac_header_preproc=yes
11426     ;;
11427   no:yes:* )
11428     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11430     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11431 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11432     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11433 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11434     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11435 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11436     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11438     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11439 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11440     ( cat <<\_ASBOX
11441 ## ------------------------------ ##
11442 ## Report this to bugs@yourdomain ##
11443 ## ------------------------------ ##
11444 _ASBOX
11445      ) | sed "s/^/$as_me: WARNING:     /" >&2
11446     ;;
11447 esac
11448 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11451   echo $ECHO_N "(cached) $ECHO_C" >&6
11452 else
11453   eval "$as_ac_Header=\$ac_header_preproc"
11454 fi
11455 ac_res=`eval echo '${'$as_ac_Header'}'`
11456                { echo "$as_me:$LINENO: result: $ac_res" >&5
11457 echo "${ECHO_T}$ac_res" >&6; }
11458
11459 fi
11460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11461   cat >>confdefs.h <<_ACEOF
11462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11463 _ACEOF
11464  break
11465 fi
11466
11467 done
11468
11469
11470
11471
11472 for ac_func in strchr index
11473 do
11474 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11475 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11476 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11477 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11478   echo $ECHO_N "(cached) $ECHO_C" >&6
11479 else
11480   cat >conftest.$ac_ext <<_ACEOF
11481 /* confdefs.h.  */
11482 _ACEOF
11483 cat confdefs.h >>conftest.$ac_ext
11484 cat >>conftest.$ac_ext <<_ACEOF
11485 /* end confdefs.h.  */
11486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11487    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11488 #define $ac_func innocuous_$ac_func
11489
11490 /* System header to define __stub macros and hopefully few prototypes,
11491     which can conflict with char $ac_func (); below.
11492     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11493     <limits.h> exists even on freestanding compilers.  */
11494
11495 #ifdef __STDC__
11496 # include <limits.h>
11497 #else
11498 # include <assert.h>
11499 #endif
11500
11501 #undef $ac_func
11502
11503 /* Override any GCC internal prototype to avoid an error.
11504    Use char because int might match the return type of a GCC
11505    builtin and then its argument prototype would still apply.  */
11506 #ifdef __cplusplus
11507 extern "C"
11508 #endif
11509 char $ac_func ();
11510 /* The GNU C library defines this for functions which it implements
11511     to always fail with ENOSYS.  Some functions are actually named
11512     something starting with __ and the normal name is an alias.  */
11513 #if defined __stub_$ac_func || defined __stub___$ac_func
11514 choke me
11515 #endif
11516
11517 int
11518 main ()
11519 {
11520 return $ac_func ();
11521   ;
11522   return 0;
11523 }
11524 _ACEOF
11525 rm -f conftest.$ac_objext conftest$ac_exeext
11526 if { (ac_try="$ac_link"
11527 case "(($ac_try" in
11528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11529   *) ac_try_echo=$ac_try;;
11530 esac
11531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11532   (eval "$ac_link") 2>conftest.er1
11533   ac_status=$?
11534   grep -v '^ *+' conftest.er1 >conftest.err
11535   rm -f conftest.er1
11536   cat conftest.err >&5
11537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538   (exit $ac_status); } &&
11539          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11540   { (case "(($ac_try" in
11541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11542   *) ac_try_echo=$ac_try;;
11543 esac
11544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11545   (eval "$ac_try") 2>&5
11546   ac_status=$?
11547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548   (exit $ac_status); }; } &&
11549          { ac_try='test -s conftest$ac_exeext'
11550   { (case "(($ac_try" in
11551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11552   *) ac_try_echo=$ac_try;;
11553 esac
11554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11555   (eval "$ac_try") 2>&5
11556   ac_status=$?
11557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558   (exit $ac_status); }; }; then
11559   eval "$as_ac_var=yes"
11560 else
11561   echo "$as_me: failed program was:" >&5
11562 sed 's/^/| /' conftest.$ac_ext >&5
11563
11564         eval "$as_ac_var=no"
11565 fi
11566
11567 rm -f core conftest.err conftest.$ac_objext \
11568       conftest$ac_exeext conftest.$ac_ext
11569 fi
11570 ac_res=`eval echo '${'$as_ac_var'}'`
11571                { echo "$as_me:$LINENO: result: $ac_res" >&5
11572 echo "${ECHO_T}$ac_res" >&6; }
11573 if test `eval echo '${'$as_ac_var'}'` = yes; then
11574   cat >>confdefs.h <<_ACEOF
11575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11576 _ACEOF
11577  break
11578 fi
11579 done
11580
11581
11582
11583 for ac_func in strrchr rindex
11584 do
11585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11586 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11588 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11589   echo $ECHO_N "(cached) $ECHO_C" >&6
11590 else
11591   cat >conftest.$ac_ext <<_ACEOF
11592 /* confdefs.h.  */
11593 _ACEOF
11594 cat confdefs.h >>conftest.$ac_ext
11595 cat >>conftest.$ac_ext <<_ACEOF
11596 /* end confdefs.h.  */
11597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11598    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11599 #define $ac_func innocuous_$ac_func
11600
11601 /* System header to define __stub macros and hopefully few prototypes,
11602     which can conflict with char $ac_func (); below.
11603     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11604     <limits.h> exists even on freestanding compilers.  */
11605
11606 #ifdef __STDC__
11607 # include <limits.h>
11608 #else
11609 # include <assert.h>
11610 #endif
11611
11612 #undef $ac_func
11613
11614 /* Override any GCC internal prototype to avoid an error.
11615    Use char because int might match the return type of a GCC
11616    builtin and then its argument prototype would still apply.  */
11617 #ifdef __cplusplus
11618 extern "C"
11619 #endif
11620 char $ac_func ();
11621 /* The GNU C library defines this for functions which it implements
11622     to always fail with ENOSYS.  Some functions are actually named
11623     something starting with __ and the normal name is an alias.  */
11624 #if defined __stub_$ac_func || defined __stub___$ac_func
11625 choke me
11626 #endif
11627
11628 int
11629 main ()
11630 {
11631 return $ac_func ();
11632   ;
11633   return 0;
11634 }
11635 _ACEOF
11636 rm -f conftest.$ac_objext conftest$ac_exeext
11637 if { (ac_try="$ac_link"
11638 case "(($ac_try" in
11639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11640   *) ac_try_echo=$ac_try;;
11641 esac
11642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11643   (eval "$ac_link") 2>conftest.er1
11644   ac_status=$?
11645   grep -v '^ *+' conftest.er1 >conftest.err
11646   rm -f conftest.er1
11647   cat conftest.err >&5
11648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649   (exit $ac_status); } &&
11650          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11651   { (case "(($ac_try" in
11652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11653   *) ac_try_echo=$ac_try;;
11654 esac
11655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11656   (eval "$ac_try") 2>&5
11657   ac_status=$?
11658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659   (exit $ac_status); }; } &&
11660          { ac_try='test -s conftest$ac_exeext'
11661   { (case "(($ac_try" in
11662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11663   *) ac_try_echo=$ac_try;;
11664 esac
11665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11666   (eval "$ac_try") 2>&5
11667   ac_status=$?
11668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669   (exit $ac_status); }; }; then
11670   eval "$as_ac_var=yes"
11671 else
11672   echo "$as_me: failed program was:" >&5
11673 sed 's/^/| /' conftest.$ac_ext >&5
11674
11675         eval "$as_ac_var=no"
11676 fi
11677
11678 rm -f core conftest.err conftest.$ac_objext \
11679       conftest$ac_exeext conftest.$ac_ext
11680 fi
11681 ac_res=`eval echo '${'$as_ac_var'}'`
11682                { echo "$as_me:$LINENO: result: $ac_res" >&5
11683 echo "${ECHO_T}$ac_res" >&6; }
11684 if test `eval echo '${'$as_ac_var'}'` = yes; then
11685   cat >>confdefs.h <<_ACEOF
11686 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11687 _ACEOF
11688  break
11689 fi
11690 done
11691
11692
11693
11694 for ac_func in memcpy bcopy
11695 do
11696 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11697 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11699 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11700   echo $ECHO_N "(cached) $ECHO_C" >&6
11701 else
11702   cat >conftest.$ac_ext <<_ACEOF
11703 /* confdefs.h.  */
11704 _ACEOF
11705 cat confdefs.h >>conftest.$ac_ext
11706 cat >>conftest.$ac_ext <<_ACEOF
11707 /* end confdefs.h.  */
11708 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11709    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11710 #define $ac_func innocuous_$ac_func
11711
11712 /* System header to define __stub macros and hopefully few prototypes,
11713     which can conflict with char $ac_func (); below.
11714     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11715     <limits.h> exists even on freestanding compilers.  */
11716
11717 #ifdef __STDC__
11718 # include <limits.h>
11719 #else
11720 # include <assert.h>
11721 #endif
11722
11723 #undef $ac_func
11724
11725 /* Override any GCC internal prototype to avoid an error.
11726    Use char because int might match the return type of a GCC
11727    builtin and then its argument prototype would still apply.  */
11728 #ifdef __cplusplus
11729 extern "C"
11730 #endif
11731 char $ac_func ();
11732 /* The GNU C library defines this for functions which it implements
11733     to always fail with ENOSYS.  Some functions are actually named
11734     something starting with __ and the normal name is an alias.  */
11735 #if defined __stub_$ac_func || defined __stub___$ac_func
11736 choke me
11737 #endif
11738
11739 int
11740 main ()
11741 {
11742 return $ac_func ();
11743   ;
11744   return 0;
11745 }
11746 _ACEOF
11747 rm -f conftest.$ac_objext conftest$ac_exeext
11748 if { (ac_try="$ac_link"
11749 case "(($ac_try" in
11750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11751   *) ac_try_echo=$ac_try;;
11752 esac
11753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11754   (eval "$ac_link") 2>conftest.er1
11755   ac_status=$?
11756   grep -v '^ *+' conftest.er1 >conftest.err
11757   rm -f conftest.er1
11758   cat conftest.err >&5
11759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760   (exit $ac_status); } &&
11761          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11762   { (case "(($ac_try" in
11763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11764   *) ac_try_echo=$ac_try;;
11765 esac
11766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11767   (eval "$ac_try") 2>&5
11768   ac_status=$?
11769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770   (exit $ac_status); }; } &&
11771          { ac_try='test -s conftest$ac_exeext'
11772   { (case "(($ac_try" in
11773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11774   *) ac_try_echo=$ac_try;;
11775 esac
11776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11777   (eval "$ac_try") 2>&5
11778   ac_status=$?
11779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780   (exit $ac_status); }; }; then
11781   eval "$as_ac_var=yes"
11782 else
11783   echo "$as_me: failed program was:" >&5
11784 sed 's/^/| /' conftest.$ac_ext >&5
11785
11786         eval "$as_ac_var=no"
11787 fi
11788
11789 rm -f core conftest.err conftest.$ac_objext \
11790       conftest$ac_exeext conftest.$ac_ext
11791 fi
11792 ac_res=`eval echo '${'$as_ac_var'}'`
11793                { echo "$as_me:$LINENO: result: $ac_res" >&5
11794 echo "${ECHO_T}$ac_res" >&6; }
11795 if test `eval echo '${'$as_ac_var'}'` = yes; then
11796   cat >>confdefs.h <<_ACEOF
11797 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11798 _ACEOF
11799  break
11800 fi
11801 done
11802
11803
11804
11805 for ac_func in memmove strcmp
11806 do
11807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11808 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11810 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11811   echo $ECHO_N "(cached) $ECHO_C" >&6
11812 else
11813   cat >conftest.$ac_ext <<_ACEOF
11814 /* confdefs.h.  */
11815 _ACEOF
11816 cat confdefs.h >>conftest.$ac_ext
11817 cat >>conftest.$ac_ext <<_ACEOF
11818 /* end confdefs.h.  */
11819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11820    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11821 #define $ac_func innocuous_$ac_func
11822
11823 /* System header to define __stub macros and hopefully few prototypes,
11824     which can conflict with char $ac_func (); below.
11825     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11826     <limits.h> exists even on freestanding compilers.  */
11827
11828 #ifdef __STDC__
11829 # include <limits.h>
11830 #else
11831 # include <assert.h>
11832 #endif
11833
11834 #undef $ac_func
11835
11836 /* Override any GCC internal prototype to avoid an error.
11837    Use char because int might match the return type of a GCC
11838    builtin and then its argument prototype would still apply.  */
11839 #ifdef __cplusplus
11840 extern "C"
11841 #endif
11842 char $ac_func ();
11843 /* The GNU C library defines this for functions which it implements
11844     to always fail with ENOSYS.  Some functions are actually named
11845     something starting with __ and the normal name is an alias.  */
11846 #if defined __stub_$ac_func || defined __stub___$ac_func
11847 choke me
11848 #endif
11849
11850 int
11851 main ()
11852 {
11853 return $ac_func ();
11854   ;
11855   return 0;
11856 }
11857 _ACEOF
11858 rm -f conftest.$ac_objext conftest$ac_exeext
11859 if { (ac_try="$ac_link"
11860 case "(($ac_try" in
11861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11862   *) ac_try_echo=$ac_try;;
11863 esac
11864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11865   (eval "$ac_link") 2>conftest.er1
11866   ac_status=$?
11867   grep -v '^ *+' conftest.er1 >conftest.err
11868   rm -f conftest.er1
11869   cat conftest.err >&5
11870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871   (exit $ac_status); } &&
11872          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11873   { (case "(($ac_try" in
11874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875   *) ac_try_echo=$ac_try;;
11876 esac
11877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878   (eval "$ac_try") 2>&5
11879   ac_status=$?
11880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881   (exit $ac_status); }; } &&
11882          { ac_try='test -s conftest$ac_exeext'
11883   { (case "(($ac_try" in
11884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11885   *) ac_try_echo=$ac_try;;
11886 esac
11887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11888   (eval "$ac_try") 2>&5
11889   ac_status=$?
11890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891   (exit $ac_status); }; }; then
11892   eval "$as_ac_var=yes"
11893 else
11894   echo "$as_me: failed program was:" >&5
11895 sed 's/^/| /' conftest.$ac_ext >&5
11896
11897         eval "$as_ac_var=no"
11898 fi
11899
11900 rm -f core conftest.err conftest.$ac_objext \
11901       conftest$ac_exeext conftest.$ac_ext
11902 fi
11903 ac_res=`eval echo '${'$as_ac_var'}'`
11904                { echo "$as_me:$LINENO: result: $ac_res" >&5
11905 echo "${ECHO_T}$ac_res" >&6; }
11906 if test `eval echo '${'$as_ac_var'}'` = yes; then
11907   cat >>confdefs.h <<_ACEOF
11908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11909 _ACEOF
11910
11911 fi
11912 done
11913
11914
11915
11916
11917 for ac_func in closedir opendir readdir
11918 do
11919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11920 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11922 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11923   echo $ECHO_N "(cached) $ECHO_C" >&6
11924 else
11925   cat >conftest.$ac_ext <<_ACEOF
11926 /* confdefs.h.  */
11927 _ACEOF
11928 cat confdefs.h >>conftest.$ac_ext
11929 cat >>conftest.$ac_ext <<_ACEOF
11930 /* end confdefs.h.  */
11931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11932    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11933 #define $ac_func innocuous_$ac_func
11934
11935 /* System header to define __stub macros and hopefully few prototypes,
11936     which can conflict with char $ac_func (); below.
11937     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11938     <limits.h> exists even on freestanding compilers.  */
11939
11940 #ifdef __STDC__
11941 # include <limits.h>
11942 #else
11943 # include <assert.h>
11944 #endif
11945
11946 #undef $ac_func
11947
11948 /* Override any GCC internal prototype to avoid an error.
11949    Use char because int might match the return type of a GCC
11950    builtin and then its argument prototype would still apply.  */
11951 #ifdef __cplusplus
11952 extern "C"
11953 #endif
11954 char $ac_func ();
11955 /* The GNU C library defines this for functions which it implements
11956     to always fail with ENOSYS.  Some functions are actually named
11957     something starting with __ and the normal name is an alias.  */
11958 #if defined __stub_$ac_func || defined __stub___$ac_func
11959 choke me
11960 #endif
11961
11962 int
11963 main ()
11964 {
11965 return $ac_func ();
11966   ;
11967   return 0;
11968 }
11969 _ACEOF
11970 rm -f conftest.$ac_objext conftest$ac_exeext
11971 if { (ac_try="$ac_link"
11972 case "(($ac_try" in
11973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11974   *) ac_try_echo=$ac_try;;
11975 esac
11976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11977   (eval "$ac_link") 2>conftest.er1
11978   ac_status=$?
11979   grep -v '^ *+' conftest.er1 >conftest.err
11980   rm -f conftest.er1
11981   cat conftest.err >&5
11982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983   (exit $ac_status); } &&
11984          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11985   { (case "(($ac_try" in
11986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11987   *) ac_try_echo=$ac_try;;
11988 esac
11989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11990   (eval "$ac_try") 2>&5
11991   ac_status=$?
11992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993   (exit $ac_status); }; } &&
11994          { ac_try='test -s conftest$ac_exeext'
11995   { (case "(($ac_try" in
11996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997   *) ac_try_echo=$ac_try;;
11998 esac
11999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12000   (eval "$ac_try") 2>&5
12001   ac_status=$?
12002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003   (exit $ac_status); }; }; then
12004   eval "$as_ac_var=yes"
12005 else
12006   echo "$as_me: failed program was:" >&5
12007 sed 's/^/| /' conftest.$ac_ext >&5
12008
12009         eval "$as_ac_var=no"
12010 fi
12011
12012 rm -f core conftest.err conftest.$ac_objext \
12013       conftest$ac_exeext conftest.$ac_ext
12014 fi
12015 ac_res=`eval echo '${'$as_ac_var'}'`
12016                { echo "$as_me:$LINENO: result: $ac_res" >&5
12017 echo "${ECHO_T}$ac_res" >&6; }
12018 if test `eval echo '${'$as_ac_var'}'` = yes; then
12019   cat >>confdefs.h <<_ACEOF
12020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12021 _ACEOF
12022
12023 fi
12024 done
12025
12026
12027
12028 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12029 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12030
12031 ICC=no
12032 IXX=no
12033 case $CC in
12034   icc*|icpc*)
12035     ICC=yes
12036     IXX=yes
12037     ;;
12038    *)
12039     ;;
12040 esac
12041
12042 if test "$GCC" != "yes" && test "$ICC" != "yes"
12043 then
12044   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12045 echo "$as_me: error: gcc|icc required but not found" >&2;}
12046    { (exit 1); exit 1; }; }
12047 fi
12048
12049 if test "$GXX" != "yes" && test "$IXX" != "yes"
12050 then
12051   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12052 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12053    { (exit 1); exit 1; }; }
12054 fi
12055
12056 if test "$GCC" = "yes"
12057 then
12058   cat >conftest.$ac_ext <<_ACEOF
12059 #if !defined(__GNUC__) || __GNUC__ < 3
12060 #error Unsupported GCC version
12061 #endif
12062
12063 _ACEOF
12064 rm -f conftest.$ac_objext
12065 if { (ac_try="$ac_compile"
12066 case "(($ac_try" in
12067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12068   *) ac_try_echo=$ac_try;;
12069 esac
12070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12071   (eval "$ac_compile") 2>conftest.er1
12072   ac_status=$?
12073   grep -v '^ *+' conftest.er1 >conftest.err
12074   rm -f conftest.er1
12075   cat conftest.err >&5
12076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077   (exit $ac_status); } &&
12078          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12079   { (case "(($ac_try" in
12080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12081   *) ac_try_echo=$ac_try;;
12082 esac
12083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12084   (eval "$ac_try") 2>&5
12085   ac_status=$?
12086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087   (exit $ac_status); }; } &&
12088          { ac_try='test -s conftest.$ac_objext'
12089   { (case "(($ac_try" in
12090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12091   *) ac_try_echo=$ac_try;;
12092 esac
12093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12094   (eval "$ac_try") 2>&5
12095   ac_status=$?
12096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097   (exit $ac_status); }; }; then
12098   :
12099 else
12100   echo "$as_me: failed program was:" >&5
12101 sed 's/^/| /' conftest.$ac_ext >&5
12102
12103         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12104 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12105    { (exit 1); exit 1; }; }
12106 fi
12107
12108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12109 fi
12110
12111 if test -z "$llvm_cv_gnu_make_command"
12112 then
12113   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12114 echo "$as_me: error: GNU Make required but not found" >&2;}
12115    { (exit 1); exit 1; }; }
12116 fi
12117
12118 { echo "$as_me:$LINENO: result: ok" >&5
12119 echo "${ECHO_T}ok" >&6; }
12120
12121 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12122 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12123 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12124
12125 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12126
12127 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12128 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12129
12130
12131
12132 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12133 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12134 if test "${ac_cv_lib_m_sin+set}" = set; then
12135   echo $ECHO_N "(cached) $ECHO_C" >&6
12136 else
12137   ac_check_lib_save_LIBS=$LIBS
12138 LIBS="-lm  $LIBS"
12139 cat >conftest.$ac_ext <<_ACEOF
12140 /* confdefs.h.  */
12141 _ACEOF
12142 cat confdefs.h >>conftest.$ac_ext
12143 cat >>conftest.$ac_ext <<_ACEOF
12144 /* end confdefs.h.  */
12145
12146 /* Override any GCC internal prototype to avoid an error.
12147    Use char because int might match the return type of a GCC
12148    builtin and then its argument prototype would still apply.  */
12149 #ifdef __cplusplus
12150 extern "C"
12151 #endif
12152 char sin ();
12153 int
12154 main ()
12155 {
12156 return sin ();
12157   ;
12158   return 0;
12159 }
12160 _ACEOF
12161 rm -f conftest.$ac_objext conftest$ac_exeext
12162 if { (ac_try="$ac_link"
12163 case "(($ac_try" in
12164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12165   *) ac_try_echo=$ac_try;;
12166 esac
12167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12168   (eval "$ac_link") 2>conftest.er1
12169   ac_status=$?
12170   grep -v '^ *+' conftest.er1 >conftest.err
12171   rm -f conftest.er1
12172   cat conftest.err >&5
12173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174   (exit $ac_status); } &&
12175          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12176   { (case "(($ac_try" in
12177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12178   *) ac_try_echo=$ac_try;;
12179 esac
12180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12181   (eval "$ac_try") 2>&5
12182   ac_status=$?
12183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184   (exit $ac_status); }; } &&
12185          { ac_try='test -s conftest$ac_exeext'
12186   { (case "(($ac_try" in
12187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12188   *) ac_try_echo=$ac_try;;
12189 esac
12190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12191   (eval "$ac_try") 2>&5
12192   ac_status=$?
12193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194   (exit $ac_status); }; }; then
12195   ac_cv_lib_m_sin=yes
12196 else
12197   echo "$as_me: failed program was:" >&5
12198 sed 's/^/| /' conftest.$ac_ext >&5
12199
12200         ac_cv_lib_m_sin=no
12201 fi
12202
12203 rm -f core conftest.err conftest.$ac_objext \
12204       conftest$ac_exeext conftest.$ac_ext
12205 LIBS=$ac_check_lib_save_LIBS
12206 fi
12207 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12208 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12209 if test $ac_cv_lib_m_sin = yes; then
12210   cat >>confdefs.h <<_ACEOF
12211 #define HAVE_LIBM 1
12212 _ACEOF
12213
12214   LIBS="-lm $LIBS"
12215
12216 fi
12217
12218 if test "$llvm_cv_os_type" = "MingW" ; then
12219
12220 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12221 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12222 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12223   echo $ECHO_N "(cached) $ECHO_C" >&6
12224 else
12225   ac_check_lib_save_LIBS=$LIBS
12226 LIBS="-limagehlp  $LIBS"
12227 cat >conftest.$ac_ext <<_ACEOF
12228 /* confdefs.h.  */
12229 _ACEOF
12230 cat confdefs.h >>conftest.$ac_ext
12231 cat >>conftest.$ac_ext <<_ACEOF
12232 /* end confdefs.h.  */
12233
12234
12235 int
12236 main ()
12237 {
12238 return main ();
12239   ;
12240   return 0;
12241 }
12242 _ACEOF
12243 rm -f conftest.$ac_objext conftest$ac_exeext
12244 if { (ac_try="$ac_link"
12245 case "(($ac_try" in
12246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12247   *) ac_try_echo=$ac_try;;
12248 esac
12249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12250   (eval "$ac_link") 2>conftest.er1
12251   ac_status=$?
12252   grep -v '^ *+' conftest.er1 >conftest.err
12253   rm -f conftest.er1
12254   cat conftest.err >&5
12255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256   (exit $ac_status); } &&
12257          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12258   { (case "(($ac_try" in
12259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260   *) ac_try_echo=$ac_try;;
12261 esac
12262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263   (eval "$ac_try") 2>&5
12264   ac_status=$?
12265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266   (exit $ac_status); }; } &&
12267          { ac_try='test -s conftest$ac_exeext'
12268   { (case "(($ac_try" in
12269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12270   *) ac_try_echo=$ac_try;;
12271 esac
12272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12273   (eval "$ac_try") 2>&5
12274   ac_status=$?
12275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276   (exit $ac_status); }; }; then
12277   ac_cv_lib_imagehlp_main=yes
12278 else
12279   echo "$as_me: failed program was:" >&5
12280 sed 's/^/| /' conftest.$ac_ext >&5
12281
12282         ac_cv_lib_imagehlp_main=no
12283 fi
12284
12285 rm -f core conftest.err conftest.$ac_objext \
12286       conftest$ac_exeext conftest.$ac_ext
12287 LIBS=$ac_check_lib_save_LIBS
12288 fi
12289 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12290 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12291 if test $ac_cv_lib_imagehlp_main = yes; then
12292   cat >>confdefs.h <<_ACEOF
12293 #define HAVE_LIBIMAGEHLP 1
12294 _ACEOF
12295
12296   LIBS="-limagehlp $LIBS"
12297
12298 fi
12299
12300
12301 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12302 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12303 if test "${ac_cv_lib_psapi_main+set}" = set; then
12304   echo $ECHO_N "(cached) $ECHO_C" >&6
12305 else
12306   ac_check_lib_save_LIBS=$LIBS
12307 LIBS="-lpsapi  $LIBS"
12308 cat >conftest.$ac_ext <<_ACEOF
12309 /* confdefs.h.  */
12310 _ACEOF
12311 cat confdefs.h >>conftest.$ac_ext
12312 cat >>conftest.$ac_ext <<_ACEOF
12313 /* end confdefs.h.  */
12314
12315
12316 int
12317 main ()
12318 {
12319 return main ();
12320   ;
12321   return 0;
12322 }
12323 _ACEOF
12324 rm -f conftest.$ac_objext conftest$ac_exeext
12325 if { (ac_try="$ac_link"
12326 case "(($ac_try" in
12327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12328   *) ac_try_echo=$ac_try;;
12329 esac
12330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12331   (eval "$ac_link") 2>conftest.er1
12332   ac_status=$?
12333   grep -v '^ *+' conftest.er1 >conftest.err
12334   rm -f conftest.er1
12335   cat conftest.err >&5
12336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337   (exit $ac_status); } &&
12338          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12339   { (case "(($ac_try" in
12340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12341   *) ac_try_echo=$ac_try;;
12342 esac
12343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12344   (eval "$ac_try") 2>&5
12345   ac_status=$?
12346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347   (exit $ac_status); }; } &&
12348          { ac_try='test -s conftest$ac_exeext'
12349   { (case "(($ac_try" in
12350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12351   *) ac_try_echo=$ac_try;;
12352 esac
12353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12354   (eval "$ac_try") 2>&5
12355   ac_status=$?
12356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357   (exit $ac_status); }; }; then
12358   ac_cv_lib_psapi_main=yes
12359 else
12360   echo "$as_me: failed program was:" >&5
12361 sed 's/^/| /' conftest.$ac_ext >&5
12362
12363         ac_cv_lib_psapi_main=no
12364 fi
12365
12366 rm -f core conftest.err conftest.$ac_objext \
12367       conftest$ac_exeext conftest.$ac_ext
12368 LIBS=$ac_check_lib_save_LIBS
12369 fi
12370 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12371 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12372 if test $ac_cv_lib_psapi_main = yes; then
12373   cat >>confdefs.h <<_ACEOF
12374 #define HAVE_LIBPSAPI 1
12375 _ACEOF
12376
12377   LIBS="-lpsapi $LIBS"
12378
12379 fi
12380
12381 fi
12382
12383 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12384 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12385 if test "${ac_cv_search_dlopen+set}" = set; then
12386   echo $ECHO_N "(cached) $ECHO_C" >&6
12387 else
12388   ac_func_search_save_LIBS=$LIBS
12389 cat >conftest.$ac_ext <<_ACEOF
12390 /* confdefs.h.  */
12391 _ACEOF
12392 cat confdefs.h >>conftest.$ac_ext
12393 cat >>conftest.$ac_ext <<_ACEOF
12394 /* end confdefs.h.  */
12395
12396 /* Override any GCC internal prototype to avoid an error.
12397    Use char because int might match the return type of a GCC
12398    builtin and then its argument prototype would still apply.  */
12399 #ifdef __cplusplus
12400 extern "C"
12401 #endif
12402 char dlopen ();
12403 int
12404 main ()
12405 {
12406 return dlopen ();
12407   ;
12408   return 0;
12409 }
12410 _ACEOF
12411 for ac_lib in '' dl; do
12412   if test -z "$ac_lib"; then
12413     ac_res="none required"
12414   else
12415     ac_res=-l$ac_lib
12416     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12417   fi
12418   rm -f conftest.$ac_objext conftest$ac_exeext
12419 if { (ac_try="$ac_link"
12420 case "(($ac_try" in
12421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422   *) ac_try_echo=$ac_try;;
12423 esac
12424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12425   (eval "$ac_link") 2>conftest.er1
12426   ac_status=$?
12427   grep -v '^ *+' conftest.er1 >conftest.err
12428   rm -f conftest.er1
12429   cat conftest.err >&5
12430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431   (exit $ac_status); } &&
12432          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12433   { (case "(($ac_try" in
12434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12435   *) ac_try_echo=$ac_try;;
12436 esac
12437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12438   (eval "$ac_try") 2>&5
12439   ac_status=$?
12440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441   (exit $ac_status); }; } &&
12442          { ac_try='test -s conftest$ac_exeext'
12443   { (case "(($ac_try" in
12444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12445   *) ac_try_echo=$ac_try;;
12446 esac
12447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12448   (eval "$ac_try") 2>&5
12449   ac_status=$?
12450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451   (exit $ac_status); }; }; then
12452   ac_cv_search_dlopen=$ac_res
12453 else
12454   echo "$as_me: failed program was:" >&5
12455 sed 's/^/| /' conftest.$ac_ext >&5
12456
12457
12458 fi
12459
12460 rm -f core conftest.err conftest.$ac_objext \
12461       conftest$ac_exeext
12462   if test "${ac_cv_search_dlopen+set}" = set; then
12463   break
12464 fi
12465 done
12466 if test "${ac_cv_search_dlopen+set}" = set; then
12467   :
12468 else
12469   ac_cv_search_dlopen=no
12470 fi
12471 rm conftest.$ac_ext
12472 LIBS=$ac_func_search_save_LIBS
12473 fi
12474 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12475 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12476 ac_res=$ac_cv_search_dlopen
12477 if test "$ac_res" != no; then
12478   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12479
12480 cat >>confdefs.h <<\_ACEOF
12481 #define HAVE_DLOPEN 1
12482 _ACEOF
12483
12484 else
12485   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12486 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12487 fi
12488
12489
12490 if test "$llvm_cv_enable_libffi" = "yes" ; then
12491   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12492 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12493 if test "${ac_cv_search_ffi_call+set}" = set; then
12494   echo $ECHO_N "(cached) $ECHO_C" >&6
12495 else
12496   ac_func_search_save_LIBS=$LIBS
12497 cat >conftest.$ac_ext <<_ACEOF
12498 /* confdefs.h.  */
12499 _ACEOF
12500 cat confdefs.h >>conftest.$ac_ext
12501 cat >>conftest.$ac_ext <<_ACEOF
12502 /* end confdefs.h.  */
12503
12504 /* Override any GCC internal prototype to avoid an error.
12505    Use char because int might match the return type of a GCC
12506    builtin and then its argument prototype would still apply.  */
12507 #ifdef __cplusplus
12508 extern "C"
12509 #endif
12510 char ffi_call ();
12511 int
12512 main ()
12513 {
12514 return ffi_call ();
12515   ;
12516   return 0;
12517 }
12518 _ACEOF
12519 for ac_lib in '' ffi; do
12520   if test -z "$ac_lib"; then
12521     ac_res="none required"
12522   else
12523     ac_res=-l$ac_lib
12524     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12525   fi
12526   rm -f conftest.$ac_objext conftest$ac_exeext
12527 if { (ac_try="$ac_link"
12528 case "(($ac_try" in
12529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530   *) ac_try_echo=$ac_try;;
12531 esac
12532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12533   (eval "$ac_link") 2>conftest.er1
12534   ac_status=$?
12535   grep -v '^ *+' conftest.er1 >conftest.err
12536   rm -f conftest.er1
12537   cat conftest.err >&5
12538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539   (exit $ac_status); } &&
12540          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12541   { (case "(($ac_try" in
12542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543   *) ac_try_echo=$ac_try;;
12544 esac
12545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12546   (eval "$ac_try") 2>&5
12547   ac_status=$?
12548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549   (exit $ac_status); }; } &&
12550          { ac_try='test -s conftest$ac_exeext'
12551   { (case "(($ac_try" in
12552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553   *) ac_try_echo=$ac_try;;
12554 esac
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556   (eval "$ac_try") 2>&5
12557   ac_status=$?
12558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559   (exit $ac_status); }; }; then
12560   ac_cv_search_ffi_call=$ac_res
12561 else
12562   echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12564
12565
12566 fi
12567
12568 rm -f core conftest.err conftest.$ac_objext \
12569       conftest$ac_exeext
12570   if test "${ac_cv_search_ffi_call+set}" = set; then
12571   break
12572 fi
12573 done
12574 if test "${ac_cv_search_ffi_call+set}" = set; then
12575   :
12576 else
12577   ac_cv_search_ffi_call=no
12578 fi
12579 rm conftest.$ac_ext
12580 LIBS=$ac_func_search_save_LIBS
12581 fi
12582 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12583 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12584 ac_res=$ac_cv_search_ffi_call
12585 if test "$ac_res" != no; then
12586   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12587
12588 cat >>confdefs.h <<\_ACEOF
12589 #define HAVE_FFI_CALL 1
12590 _ACEOF
12591
12592 else
12593   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12594 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12595    { (exit 1); exit 1; }; }
12596 fi
12597
12598 fi
12599
12600 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12601 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12602 if test "${ac_cv_search_mallinfo+set}" = set; then
12603   echo $ECHO_N "(cached) $ECHO_C" >&6
12604 else
12605   ac_func_search_save_LIBS=$LIBS
12606 cat >conftest.$ac_ext <<_ACEOF
12607 /* confdefs.h.  */
12608 _ACEOF
12609 cat confdefs.h >>conftest.$ac_ext
12610 cat >>conftest.$ac_ext <<_ACEOF
12611 /* end confdefs.h.  */
12612
12613 /* Override any GCC internal prototype to avoid an error.
12614    Use char because int might match the return type of a GCC
12615    builtin and then its argument prototype would still apply.  */
12616 #ifdef __cplusplus
12617 extern "C"
12618 #endif
12619 char mallinfo ();
12620 int
12621 main ()
12622 {
12623 return mallinfo ();
12624   ;
12625   return 0;
12626 }
12627 _ACEOF
12628 for ac_lib in '' malloc; do
12629   if test -z "$ac_lib"; then
12630     ac_res="none required"
12631   else
12632     ac_res=-l$ac_lib
12633     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12634   fi
12635   rm -f conftest.$ac_objext conftest$ac_exeext
12636 if { (ac_try="$ac_link"
12637 case "(($ac_try" in
12638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12639   *) ac_try_echo=$ac_try;;
12640 esac
12641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12642   (eval "$ac_link") 2>conftest.er1
12643   ac_status=$?
12644   grep -v '^ *+' conftest.er1 >conftest.err
12645   rm -f conftest.er1
12646   cat conftest.err >&5
12647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648   (exit $ac_status); } &&
12649          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12650   { (case "(($ac_try" in
12651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12652   *) ac_try_echo=$ac_try;;
12653 esac
12654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12655   (eval "$ac_try") 2>&5
12656   ac_status=$?
12657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658   (exit $ac_status); }; } &&
12659          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12669   ac_cv_search_mallinfo=$ac_res
12670 else
12671   echo "$as_me: failed program was:" >&5
12672 sed 's/^/| /' conftest.$ac_ext >&5
12673
12674
12675 fi
12676
12677 rm -f core conftest.err conftest.$ac_objext \
12678       conftest$ac_exeext
12679   if test "${ac_cv_search_mallinfo+set}" = set; then
12680   break
12681 fi
12682 done
12683 if test "${ac_cv_search_mallinfo+set}" = set; then
12684   :
12685 else
12686   ac_cv_search_mallinfo=no
12687 fi
12688 rm conftest.$ac_ext
12689 LIBS=$ac_func_search_save_LIBS
12690 fi
12691 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12692 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12693 ac_res=$ac_cv_search_mallinfo
12694 if test "$ac_res" != no; then
12695   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12696
12697 cat >>confdefs.h <<\_ACEOF
12698 #define HAVE_MALLINFO 1
12699 _ACEOF
12700
12701 fi
12702
12703
12704 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12705
12706 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12707 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12708 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12709   echo $ECHO_N "(cached) $ECHO_C" >&6
12710 else
12711   ac_check_lib_save_LIBS=$LIBS
12712 LIBS="-lpthread  $LIBS"
12713 cat >conftest.$ac_ext <<_ACEOF
12714 /* confdefs.h.  */
12715 _ACEOF
12716 cat confdefs.h >>conftest.$ac_ext
12717 cat >>conftest.$ac_ext <<_ACEOF
12718 /* end confdefs.h.  */
12719
12720 /* Override any GCC internal prototype to avoid an error.
12721    Use char because int might match the return type of a GCC
12722    builtin and then its argument prototype would still apply.  */
12723 #ifdef __cplusplus
12724 extern "C"
12725 #endif
12726 char pthread_mutex_init ();
12727 int
12728 main ()
12729 {
12730 return pthread_mutex_init ();
12731   ;
12732   return 0;
12733 }
12734 _ACEOF
12735 rm -f conftest.$ac_objext conftest$ac_exeext
12736 if { (ac_try="$ac_link"
12737 case "(($ac_try" in
12738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12739   *) ac_try_echo=$ac_try;;
12740 esac
12741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12742   (eval "$ac_link") 2>conftest.er1
12743   ac_status=$?
12744   grep -v '^ *+' conftest.er1 >conftest.err
12745   rm -f conftest.er1
12746   cat conftest.err >&5
12747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748   (exit $ac_status); } &&
12749          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12750   { (case "(($ac_try" in
12751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12752   *) ac_try_echo=$ac_try;;
12753 esac
12754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12755   (eval "$ac_try") 2>&5
12756   ac_status=$?
12757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758   (exit $ac_status); }; } &&
12759          { ac_try='test -s conftest$ac_exeext'
12760   { (case "(($ac_try" in
12761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12762   *) ac_try_echo=$ac_try;;
12763 esac
12764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12765   (eval "$ac_try") 2>&5
12766   ac_status=$?
12767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768   (exit $ac_status); }; }; then
12769   ac_cv_lib_pthread_pthread_mutex_init=yes
12770 else
12771   echo "$as_me: failed program was:" >&5
12772 sed 's/^/| /' conftest.$ac_ext >&5
12773
12774         ac_cv_lib_pthread_pthread_mutex_init=no
12775 fi
12776
12777 rm -f core conftest.err conftest.$ac_objext \
12778       conftest$ac_exeext conftest.$ac_ext
12779 LIBS=$ac_check_lib_save_LIBS
12780 fi
12781 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12782 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12783 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12784   cat >>confdefs.h <<_ACEOF
12785 #define HAVE_LIBPTHREAD 1
12786 _ACEOF
12787
12788   LIBS="-lpthread $LIBS"
12789
12790 fi
12791
12792   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12793 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12794 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12795   echo $ECHO_N "(cached) $ECHO_C" >&6
12796 else
12797   ac_func_search_save_LIBS=$LIBS
12798 cat >conftest.$ac_ext <<_ACEOF
12799 /* confdefs.h.  */
12800 _ACEOF
12801 cat confdefs.h >>conftest.$ac_ext
12802 cat >>conftest.$ac_ext <<_ACEOF
12803 /* end confdefs.h.  */
12804
12805 /* Override any GCC internal prototype to avoid an error.
12806    Use char because int might match the return type of a GCC
12807    builtin and then its argument prototype would still apply.  */
12808 #ifdef __cplusplus
12809 extern "C"
12810 #endif
12811 char pthread_mutex_lock ();
12812 int
12813 main ()
12814 {
12815 return pthread_mutex_lock ();
12816   ;
12817   return 0;
12818 }
12819 _ACEOF
12820 for ac_lib in '' pthread; do
12821   if test -z "$ac_lib"; then
12822     ac_res="none required"
12823   else
12824     ac_res=-l$ac_lib
12825     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12826   fi
12827   rm -f conftest.$ac_objext conftest$ac_exeext
12828 if { (ac_try="$ac_link"
12829 case "(($ac_try" in
12830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12831   *) ac_try_echo=$ac_try;;
12832 esac
12833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12834   (eval "$ac_link") 2>conftest.er1
12835   ac_status=$?
12836   grep -v '^ *+' conftest.er1 >conftest.err
12837   rm -f conftest.er1
12838   cat conftest.err >&5
12839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840   (exit $ac_status); } &&
12841          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12842   { (case "(($ac_try" in
12843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12844   *) ac_try_echo=$ac_try;;
12845 esac
12846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12847   (eval "$ac_try") 2>&5
12848   ac_status=$?
12849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850   (exit $ac_status); }; } &&
12851          { ac_try='test -s conftest$ac_exeext'
12852   { (case "(($ac_try" in
12853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12854   *) ac_try_echo=$ac_try;;
12855 esac
12856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12857   (eval "$ac_try") 2>&5
12858   ac_status=$?
12859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860   (exit $ac_status); }; }; then
12861   ac_cv_search_pthread_mutex_lock=$ac_res
12862 else
12863   echo "$as_me: failed program was:" >&5
12864 sed 's/^/| /' conftest.$ac_ext >&5
12865
12866
12867 fi
12868
12869 rm -f core conftest.err conftest.$ac_objext \
12870       conftest$ac_exeext
12871   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12872   break
12873 fi
12874 done
12875 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12876   :
12877 else
12878   ac_cv_search_pthread_mutex_lock=no
12879 fi
12880 rm conftest.$ac_ext
12881 LIBS=$ac_func_search_save_LIBS
12882 fi
12883 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12884 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12885 ac_res=$ac_cv_search_pthread_mutex_lock
12886 if test "$ac_res" != no; then
12887   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12888
12889 cat >>confdefs.h <<\_ACEOF
12890 #define HAVE_PTHREAD_MUTEX_LOCK 1
12891 _ACEOF
12892
12893 fi
12894
12895   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12896 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12897 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12898   echo $ECHO_N "(cached) $ECHO_C" >&6
12899 else
12900   ac_func_search_save_LIBS=$LIBS
12901 cat >conftest.$ac_ext <<_ACEOF
12902 /* confdefs.h.  */
12903 _ACEOF
12904 cat confdefs.h >>conftest.$ac_ext
12905 cat >>conftest.$ac_ext <<_ACEOF
12906 /* end confdefs.h.  */
12907
12908 /* Override any GCC internal prototype to avoid an error.
12909    Use char because int might match the return type of a GCC
12910    builtin and then its argument prototype would still apply.  */
12911 #ifdef __cplusplus
12912 extern "C"
12913 #endif
12914 char pthread_rwlock_init ();
12915 int
12916 main ()
12917 {
12918 return pthread_rwlock_init ();
12919   ;
12920   return 0;
12921 }
12922 _ACEOF
12923 for ac_lib in '' pthread; do
12924   if test -z "$ac_lib"; then
12925     ac_res="none required"
12926   else
12927     ac_res=-l$ac_lib
12928     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12929   fi
12930   rm -f conftest.$ac_objext conftest$ac_exeext
12931 if { (ac_try="$ac_link"
12932 case "(($ac_try" in
12933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12934   *) ac_try_echo=$ac_try;;
12935 esac
12936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12937   (eval "$ac_link") 2>conftest.er1
12938   ac_status=$?
12939   grep -v '^ *+' conftest.er1 >conftest.err
12940   rm -f conftest.er1
12941   cat conftest.err >&5
12942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943   (exit $ac_status); } &&
12944          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12945   { (case "(($ac_try" in
12946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12947   *) ac_try_echo=$ac_try;;
12948 esac
12949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12950   (eval "$ac_try") 2>&5
12951   ac_status=$?
12952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953   (exit $ac_status); }; } &&
12954          { ac_try='test -s conftest$ac_exeext'
12955   { (case "(($ac_try" in
12956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12957   *) ac_try_echo=$ac_try;;
12958 esac
12959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12960   (eval "$ac_try") 2>&5
12961   ac_status=$?
12962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963   (exit $ac_status); }; }; then
12964   ac_cv_search_pthread_rwlock_init=$ac_res
12965 else
12966   echo "$as_me: failed program was:" >&5
12967 sed 's/^/| /' conftest.$ac_ext >&5
12968
12969
12970 fi
12971
12972 rm -f core conftest.err conftest.$ac_objext \
12973       conftest$ac_exeext
12974   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12975   break
12976 fi
12977 done
12978 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12979   :
12980 else
12981   ac_cv_search_pthread_rwlock_init=no
12982 fi
12983 rm conftest.$ac_ext
12984 LIBS=$ac_func_search_save_LIBS
12985 fi
12986 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12987 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12988 ac_res=$ac_cv_search_pthread_rwlock_init
12989 if test "$ac_res" != no; then
12990   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12991
12992 cat >>confdefs.h <<\_ACEOF
12993 #define HAVE_PTHREAD_RWLOCK_INIT 1
12994 _ACEOF
12995
12996 fi
12997
12998   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12999 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13000 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13001   echo $ECHO_N "(cached) $ECHO_C" >&6
13002 else
13003   ac_func_search_save_LIBS=$LIBS
13004 cat >conftest.$ac_ext <<_ACEOF
13005 /* confdefs.h.  */
13006 _ACEOF
13007 cat confdefs.h >>conftest.$ac_ext
13008 cat >>conftest.$ac_ext <<_ACEOF
13009 /* end confdefs.h.  */
13010
13011 /* Override any GCC internal prototype to avoid an error.
13012    Use char because int might match the return type of a GCC
13013    builtin and then its argument prototype would still apply.  */
13014 #ifdef __cplusplus
13015 extern "C"
13016 #endif
13017 char pthread_getspecific ();
13018 int
13019 main ()
13020 {
13021 return pthread_getspecific ();
13022   ;
13023   return 0;
13024 }
13025 _ACEOF
13026 for ac_lib in '' pthread; do
13027   if test -z "$ac_lib"; then
13028     ac_res="none required"
13029   else
13030     ac_res=-l$ac_lib
13031     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13032   fi
13033   rm -f conftest.$ac_objext conftest$ac_exeext
13034 if { (ac_try="$ac_link"
13035 case "(($ac_try" in
13036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13037   *) ac_try_echo=$ac_try;;
13038 esac
13039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13040   (eval "$ac_link") 2>conftest.er1
13041   ac_status=$?
13042   grep -v '^ *+' conftest.er1 >conftest.err
13043   rm -f conftest.er1
13044   cat conftest.err >&5
13045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046   (exit $ac_status); } &&
13047          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13048   { (case "(($ac_try" in
13049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13050   *) ac_try_echo=$ac_try;;
13051 esac
13052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13053   (eval "$ac_try") 2>&5
13054   ac_status=$?
13055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056   (exit $ac_status); }; } &&
13057          { ac_try='test -s conftest$ac_exeext'
13058   { (case "(($ac_try" in
13059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13060   *) ac_try_echo=$ac_try;;
13061 esac
13062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13063   (eval "$ac_try") 2>&5
13064   ac_status=$?
13065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066   (exit $ac_status); }; }; then
13067   ac_cv_search_pthread_getspecific=$ac_res
13068 else
13069   echo "$as_me: failed program was:" >&5
13070 sed 's/^/| /' conftest.$ac_ext >&5
13071
13072
13073 fi
13074
13075 rm -f core conftest.err conftest.$ac_objext \
13076       conftest$ac_exeext
13077   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13078   break
13079 fi
13080 done
13081 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13082   :
13083 else
13084   ac_cv_search_pthread_getspecific=no
13085 fi
13086 rm conftest.$ac_ext
13087 LIBS=$ac_func_search_save_LIBS
13088 fi
13089 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13090 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13091 ac_res=$ac_cv_search_pthread_getspecific
13092 if test "$ac_res" != no; then
13093   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13094
13095 cat >>confdefs.h <<\_ACEOF
13096 #define HAVE_PTHREAD_GETSPECIFIC 1
13097 _ACEOF
13098
13099 fi
13100
13101 fi
13102
13103
13104 # Check whether --with-udis86 was given.
13105 if test "${with_udis86+set}" = set; then
13106   withval=$with_udis86;
13107       USE_UDIS86=1
13108
13109       case "$withval" in
13110         /usr/lib|yes) ;;
13111         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13112       esac
13113
13114 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13115 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13116 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13117   echo $ECHO_N "(cached) $ECHO_C" >&6
13118 else
13119   ac_check_lib_save_LIBS=$LIBS
13120 LIBS="-ludis86  $LIBS"
13121 cat >conftest.$ac_ext <<_ACEOF
13122 /* confdefs.h.  */
13123 _ACEOF
13124 cat confdefs.h >>conftest.$ac_ext
13125 cat >>conftest.$ac_ext <<_ACEOF
13126 /* end confdefs.h.  */
13127
13128 /* Override any GCC internal prototype to avoid an error.
13129    Use char because int might match the return type of a GCC
13130    builtin and then its argument prototype would still apply.  */
13131 #ifdef __cplusplus
13132 extern "C"
13133 #endif
13134 char ud_init ();
13135 int
13136 main ()
13137 {
13138 return ud_init ();
13139   ;
13140   return 0;
13141 }
13142 _ACEOF
13143 rm -f conftest.$ac_objext conftest$ac_exeext
13144 if { (ac_try="$ac_link"
13145 case "(($ac_try" in
13146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13147   *) ac_try_echo=$ac_try;;
13148 esac
13149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13150   (eval "$ac_link") 2>conftest.er1
13151   ac_status=$?
13152   grep -v '^ *+' conftest.er1 >conftest.err
13153   rm -f conftest.er1
13154   cat conftest.err >&5
13155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156   (exit $ac_status); } &&
13157          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13158   { (case "(($ac_try" in
13159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13160   *) ac_try_echo=$ac_try;;
13161 esac
13162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13163   (eval "$ac_try") 2>&5
13164   ac_status=$?
13165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166   (exit $ac_status); }; } &&
13167          { ac_try='test -s conftest$ac_exeext'
13168   { (case "(($ac_try" in
13169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13170   *) ac_try_echo=$ac_try;;
13171 esac
13172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13173   (eval "$ac_try") 2>&5
13174   ac_status=$?
13175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176   (exit $ac_status); }; }; then
13177   ac_cv_lib_udis86_ud_init=yes
13178 else
13179   echo "$as_me: failed program was:" >&5
13180 sed 's/^/| /' conftest.$ac_ext >&5
13181
13182         ac_cv_lib_udis86_ud_init=no
13183 fi
13184
13185 rm -f core conftest.err conftest.$ac_objext \
13186       conftest$ac_exeext conftest.$ac_ext
13187 LIBS=$ac_check_lib_save_LIBS
13188 fi
13189 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13190 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13191 if test $ac_cv_lib_udis86_ud_init = yes; then
13192   cat >>confdefs.h <<_ACEOF
13193 #define HAVE_LIBUDIS86 1
13194 _ACEOF
13195
13196   LIBS="-ludis86 $LIBS"
13197
13198 else
13199
13200         echo "Error! You need to have libudis86 around."
13201         exit -1
13202
13203 fi
13204
13205
13206 else
13207   USE_UDIS86=0
13208
13209 fi
13210
13211
13212 cat >>confdefs.h <<_ACEOF
13213 #define USE_UDIS86 $USE_UDIS86
13214 _ACEOF
13215
13216
13217
13218 # Check whether --with-oprofile was given.
13219 if test "${with_oprofile+set}" = set; then
13220   withval=$with_oprofile;
13221       USE_OPROFILE=1
13222
13223       case "$withval" in
13224         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13225         no) llvm_cv_oppath=
13226             USE_OPROFILE=0
13227  ;;
13228         *) llvm_cv_oppath="${withval}/lib/oprofile"
13229            CPPFLAGS="-I${withval}/include";;
13230       esac
13231       if test -n "$llvm_cv_oppath" ; then
13232         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13233                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13234 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13235 if test "${ac_cv_search_bfd_init+set}" = set; then
13236   echo $ECHO_N "(cached) $ECHO_C" >&6
13237 else
13238   ac_func_search_save_LIBS=$LIBS
13239 cat >conftest.$ac_ext <<_ACEOF
13240 /* confdefs.h.  */
13241 _ACEOF
13242 cat confdefs.h >>conftest.$ac_ext
13243 cat >>conftest.$ac_ext <<_ACEOF
13244 /* end confdefs.h.  */
13245
13246 /* Override any GCC internal prototype to avoid an error.
13247    Use char because int might match the return type of a GCC
13248    builtin and then its argument prototype would still apply.  */
13249 #ifdef __cplusplus
13250 extern "C"
13251 #endif
13252 char bfd_init ();
13253 int
13254 main ()
13255 {
13256 return bfd_init ();
13257   ;
13258   return 0;
13259 }
13260 _ACEOF
13261 for ac_lib in '' bfd; do
13262   if test -z "$ac_lib"; then
13263     ac_res="none required"
13264   else
13265     ac_res=-l$ac_lib
13266     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13267   fi
13268   rm -f conftest.$ac_objext conftest$ac_exeext
13269 if { (ac_try="$ac_link"
13270 case "(($ac_try" in
13271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13272   *) ac_try_echo=$ac_try;;
13273 esac
13274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13275   (eval "$ac_link") 2>conftest.er1
13276   ac_status=$?
13277   grep -v '^ *+' conftest.er1 >conftest.err
13278   rm -f conftest.er1
13279   cat conftest.err >&5
13280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281   (exit $ac_status); } &&
13282          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13292          { ac_try='test -s conftest$ac_exeext'
13293   { (case "(($ac_try" in
13294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13295   *) ac_try_echo=$ac_try;;
13296 esac
13297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13298   (eval "$ac_try") 2>&5
13299   ac_status=$?
13300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301   (exit $ac_status); }; }; then
13302   ac_cv_search_bfd_init=$ac_res
13303 else
13304   echo "$as_me: failed program was:" >&5
13305 sed 's/^/| /' conftest.$ac_ext >&5
13306
13307
13308 fi
13309
13310 rm -f core conftest.err conftest.$ac_objext \
13311       conftest$ac_exeext
13312   if test "${ac_cv_search_bfd_init+set}" = set; then
13313   break
13314 fi
13315 done
13316 if test "${ac_cv_search_bfd_init+set}" = set; then
13317   :
13318 else
13319   ac_cv_search_bfd_init=no
13320 fi
13321 rm conftest.$ac_ext
13322 LIBS=$ac_func_search_save_LIBS
13323 fi
13324 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13325 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13326 ac_res=$ac_cv_search_bfd_init
13327 if test "$ac_res" != no; then
13328   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13329
13330 fi
13331
13332         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13333 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13334 if test "${ac_cv_search_op_open_agent+set}" = set; then
13335   echo $ECHO_N "(cached) $ECHO_C" >&6
13336 else
13337   ac_func_search_save_LIBS=$LIBS
13338 cat >conftest.$ac_ext <<_ACEOF
13339 /* confdefs.h.  */
13340 _ACEOF
13341 cat confdefs.h >>conftest.$ac_ext
13342 cat >>conftest.$ac_ext <<_ACEOF
13343 /* end confdefs.h.  */
13344
13345 /* Override any GCC internal prototype to avoid an error.
13346    Use char because int might match the return type of a GCC
13347    builtin and then its argument prototype would still apply.  */
13348 #ifdef __cplusplus
13349 extern "C"
13350 #endif
13351 char op_open_agent ();
13352 int
13353 main ()
13354 {
13355 return op_open_agent ();
13356   ;
13357   return 0;
13358 }
13359 _ACEOF
13360 for ac_lib in '' opagent; do
13361   if test -z "$ac_lib"; then
13362     ac_res="none required"
13363   else
13364     ac_res=-l$ac_lib
13365     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13366   fi
13367   rm -f conftest.$ac_objext conftest$ac_exeext
13368 if { (ac_try="$ac_link"
13369 case "(($ac_try" in
13370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13371   *) ac_try_echo=$ac_try;;
13372 esac
13373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13374   (eval "$ac_link") 2>conftest.er1
13375   ac_status=$?
13376   grep -v '^ *+' conftest.er1 >conftest.err
13377   rm -f conftest.er1
13378   cat conftest.err >&5
13379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380   (exit $ac_status); } &&
13381          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13382   { (case "(($ac_try" in
13383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13384   *) ac_try_echo=$ac_try;;
13385 esac
13386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13387   (eval "$ac_try") 2>&5
13388   ac_status=$?
13389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390   (exit $ac_status); }; } &&
13391          { ac_try='test -s conftest$ac_exeext'
13392   { (case "(($ac_try" in
13393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13394   *) ac_try_echo=$ac_try;;
13395 esac
13396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13397   (eval "$ac_try") 2>&5
13398   ac_status=$?
13399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400   (exit $ac_status); }; }; then
13401   ac_cv_search_op_open_agent=$ac_res
13402 else
13403   echo "$as_me: failed program was:" >&5
13404 sed 's/^/| /' conftest.$ac_ext >&5
13405
13406
13407 fi
13408
13409 rm -f core conftest.err conftest.$ac_objext \
13410       conftest$ac_exeext
13411   if test "${ac_cv_search_op_open_agent+set}" = set; then
13412   break
13413 fi
13414 done
13415 if test "${ac_cv_search_op_open_agent+set}" = set; then
13416   :
13417 else
13418   ac_cv_search_op_open_agent=no
13419 fi
13420 rm conftest.$ac_ext
13421 LIBS=$ac_func_search_save_LIBS
13422 fi
13423 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13424 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13425 ac_res=$ac_cv_search_op_open_agent
13426 if test "$ac_res" != no; then
13427   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13428
13429 else
13430
13431           echo "Error! You need to have libopagent around."
13432           exit -1
13433
13434 fi
13435
13436         if test "${ac_cv_header_opagent_h+set}" = set; then
13437   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13438 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13439 if test "${ac_cv_header_opagent_h+set}" = set; then
13440   echo $ECHO_N "(cached) $ECHO_C" >&6
13441 fi
13442 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13443 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13444 else
13445   # Is the header compilable?
13446 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13447 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13448 cat >conftest.$ac_ext <<_ACEOF
13449 /* confdefs.h.  */
13450 _ACEOF
13451 cat confdefs.h >>conftest.$ac_ext
13452 cat >>conftest.$ac_ext <<_ACEOF
13453 /* end confdefs.h.  */
13454 $ac_includes_default
13455 #include <opagent.h>
13456 _ACEOF
13457 rm -f conftest.$ac_objext
13458 if { (ac_try="$ac_compile"
13459 case "(($ac_try" in
13460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13461   *) ac_try_echo=$ac_try;;
13462 esac
13463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13464   (eval "$ac_compile") 2>conftest.er1
13465   ac_status=$?
13466   grep -v '^ *+' conftest.er1 >conftest.err
13467   rm -f conftest.er1
13468   cat conftest.err >&5
13469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470   (exit $ac_status); } &&
13471          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13472   { (case "(($ac_try" in
13473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13474   *) ac_try_echo=$ac_try;;
13475 esac
13476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13477   (eval "$ac_try") 2>&5
13478   ac_status=$?
13479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480   (exit $ac_status); }; } &&
13481          { ac_try='test -s conftest.$ac_objext'
13482   { (case "(($ac_try" in
13483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13484   *) ac_try_echo=$ac_try;;
13485 esac
13486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13487   (eval "$ac_try") 2>&5
13488   ac_status=$?
13489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490   (exit $ac_status); }; }; then
13491   ac_header_compiler=yes
13492 else
13493   echo "$as_me: failed program was:" >&5
13494 sed 's/^/| /' conftest.$ac_ext >&5
13495
13496         ac_header_compiler=no
13497 fi
13498
13499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13500 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13501 echo "${ECHO_T}$ac_header_compiler" >&6; }
13502
13503 # Is the header present?
13504 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13505 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13506 cat >conftest.$ac_ext <<_ACEOF
13507 /* confdefs.h.  */
13508 _ACEOF
13509 cat confdefs.h >>conftest.$ac_ext
13510 cat >>conftest.$ac_ext <<_ACEOF
13511 /* end confdefs.h.  */
13512 #include <opagent.h>
13513 _ACEOF
13514 if { (ac_try="$ac_cpp conftest.$ac_ext"
13515 case "(($ac_try" in
13516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13517   *) ac_try_echo=$ac_try;;
13518 esac
13519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13520   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13521   ac_status=$?
13522   grep -v '^ *+' conftest.er1 >conftest.err
13523   rm -f conftest.er1
13524   cat conftest.err >&5
13525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526   (exit $ac_status); } >/dev/null; then
13527   if test -s conftest.err; then
13528     ac_cpp_err=$ac_c_preproc_warn_flag
13529     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13530   else
13531     ac_cpp_err=
13532   fi
13533 else
13534   ac_cpp_err=yes
13535 fi
13536 if test -z "$ac_cpp_err"; then
13537   ac_header_preproc=yes
13538 else
13539   echo "$as_me: failed program was:" >&5
13540 sed 's/^/| /' conftest.$ac_ext >&5
13541
13542   ac_header_preproc=no
13543 fi
13544
13545 rm -f conftest.err conftest.$ac_ext
13546 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13547 echo "${ECHO_T}$ac_header_preproc" >&6; }
13548
13549 # So?  What about this header?
13550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13551   yes:no: )
13552     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13553 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13554     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13555 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13556     ac_header_preproc=yes
13557     ;;
13558   no:yes:* )
13559     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13560 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13561     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13562 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13563     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13564 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13565     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13566 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13567     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13568 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13569     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13570 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13571     ( cat <<\_ASBOX
13572 ## ------------------------------ ##
13573 ## Report this to bugs@yourdomain ##
13574 ## ------------------------------ ##
13575 _ASBOX
13576      ) | sed "s/^/$as_me: WARNING:     /" >&2
13577     ;;
13578 esac
13579 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13580 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13581 if test "${ac_cv_header_opagent_h+set}" = set; then
13582   echo $ECHO_N "(cached) $ECHO_C" >&6
13583 else
13584   ac_cv_header_opagent_h=$ac_header_preproc
13585 fi
13586 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13587 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13588
13589 fi
13590 if test $ac_cv_header_opagent_h = yes; then
13591   :
13592 else
13593
13594           echo "Error! You need to have opagent.h around."
13595           exit -1
13596
13597 fi
13598
13599
13600       fi
13601
13602 else
13603
13604       USE_OPROFILE=0
13605
13606
13607 fi
13608
13609
13610 cat >>confdefs.h <<_ACEOF
13611 #define USE_OPROFILE $USE_OPROFILE
13612 _ACEOF
13613
13614
13615
13616
13617
13618
13619
13620
13621 ac_header_dirent=no
13622 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13623   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13624 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13625 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13627   echo $ECHO_N "(cached) $ECHO_C" >&6
13628 else
13629   cat >conftest.$ac_ext <<_ACEOF
13630 /* confdefs.h.  */
13631 _ACEOF
13632 cat confdefs.h >>conftest.$ac_ext
13633 cat >>conftest.$ac_ext <<_ACEOF
13634 /* end confdefs.h.  */
13635 #include <sys/types.h>
13636 #include <$ac_hdr>
13637
13638 int
13639 main ()
13640 {
13641 if ((DIR *) 0)
13642 return 0;
13643   ;
13644   return 0;
13645 }
13646 _ACEOF
13647 rm -f conftest.$ac_objext
13648 if { (ac_try="$ac_compile"
13649 case "(($ac_try" in
13650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13651   *) ac_try_echo=$ac_try;;
13652 esac
13653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13654   (eval "$ac_compile") 2>conftest.er1
13655   ac_status=$?
13656   grep -v '^ *+' conftest.er1 >conftest.err
13657   rm -f conftest.er1
13658   cat conftest.err >&5
13659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660   (exit $ac_status); } &&
13661          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13662   { (case "(($ac_try" in
13663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13664   *) ac_try_echo=$ac_try;;
13665 esac
13666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13667   (eval "$ac_try") 2>&5
13668   ac_status=$?
13669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670   (exit $ac_status); }; } &&
13671          { ac_try='test -s conftest.$ac_objext'
13672   { (case "(($ac_try" in
13673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13674   *) ac_try_echo=$ac_try;;
13675 esac
13676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13677   (eval "$ac_try") 2>&5
13678   ac_status=$?
13679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680   (exit $ac_status); }; }; then
13681   eval "$as_ac_Header=yes"
13682 else
13683   echo "$as_me: failed program was:" >&5
13684 sed 's/^/| /' conftest.$ac_ext >&5
13685
13686         eval "$as_ac_Header=no"
13687 fi
13688
13689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13690 fi
13691 ac_res=`eval echo '${'$as_ac_Header'}'`
13692                { echo "$as_me:$LINENO: result: $ac_res" >&5
13693 echo "${ECHO_T}$ac_res" >&6; }
13694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13695   cat >>confdefs.h <<_ACEOF
13696 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13697 _ACEOF
13698
13699 ac_header_dirent=$ac_hdr; break
13700 fi
13701
13702 done
13703 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13704 if test $ac_header_dirent = dirent.h; then
13705   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13706 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13707 if test "${ac_cv_search_opendir+set}" = set; then
13708   echo $ECHO_N "(cached) $ECHO_C" >&6
13709 else
13710   ac_func_search_save_LIBS=$LIBS
13711 cat >conftest.$ac_ext <<_ACEOF
13712 /* confdefs.h.  */
13713 _ACEOF
13714 cat confdefs.h >>conftest.$ac_ext
13715 cat >>conftest.$ac_ext <<_ACEOF
13716 /* end confdefs.h.  */
13717
13718 /* Override any GCC internal prototype to avoid an error.
13719    Use char because int might match the return type of a GCC
13720    builtin and then its argument prototype would still apply.  */
13721 #ifdef __cplusplus
13722 extern "C"
13723 #endif
13724 char opendir ();
13725 int
13726 main ()
13727 {
13728 return opendir ();
13729   ;
13730   return 0;
13731 }
13732 _ACEOF
13733 for ac_lib in '' dir; do
13734   if test -z "$ac_lib"; then
13735     ac_res="none required"
13736   else
13737     ac_res=-l$ac_lib
13738     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13739   fi
13740   rm -f conftest.$ac_objext conftest$ac_exeext
13741 if { (ac_try="$ac_link"
13742 case "(($ac_try" in
13743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13744   *) ac_try_echo=$ac_try;;
13745 esac
13746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13747   (eval "$ac_link") 2>conftest.er1
13748   ac_status=$?
13749   grep -v '^ *+' conftest.er1 >conftest.err
13750   rm -f conftest.er1
13751   cat conftest.err >&5
13752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753   (exit $ac_status); } &&
13754          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13755   { (case "(($ac_try" in
13756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13757   *) ac_try_echo=$ac_try;;
13758 esac
13759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13760   (eval "$ac_try") 2>&5
13761   ac_status=$?
13762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763   (exit $ac_status); }; } &&
13764          { ac_try='test -s conftest$ac_exeext'
13765   { (case "(($ac_try" in
13766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13767   *) ac_try_echo=$ac_try;;
13768 esac
13769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13770   (eval "$ac_try") 2>&5
13771   ac_status=$?
13772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773   (exit $ac_status); }; }; then
13774   ac_cv_search_opendir=$ac_res
13775 else
13776   echo "$as_me: failed program was:" >&5
13777 sed 's/^/| /' conftest.$ac_ext >&5
13778
13779
13780 fi
13781
13782 rm -f core conftest.err conftest.$ac_objext \
13783       conftest$ac_exeext
13784   if test "${ac_cv_search_opendir+set}" = set; then
13785   break
13786 fi
13787 done
13788 if test "${ac_cv_search_opendir+set}" = set; then
13789   :
13790 else
13791   ac_cv_search_opendir=no
13792 fi
13793 rm conftest.$ac_ext
13794 LIBS=$ac_func_search_save_LIBS
13795 fi
13796 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13797 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13798 ac_res=$ac_cv_search_opendir
13799 if test "$ac_res" != no; then
13800   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13801
13802 fi
13803
13804 else
13805   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13806 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13807 if test "${ac_cv_search_opendir+set}" = set; then
13808   echo $ECHO_N "(cached) $ECHO_C" >&6
13809 else
13810   ac_func_search_save_LIBS=$LIBS
13811 cat >conftest.$ac_ext <<_ACEOF
13812 /* confdefs.h.  */
13813 _ACEOF
13814 cat confdefs.h >>conftest.$ac_ext
13815 cat >>conftest.$ac_ext <<_ACEOF
13816 /* end confdefs.h.  */
13817
13818 /* Override any GCC internal prototype to avoid an error.
13819    Use char because int might match the return type of a GCC
13820    builtin and then its argument prototype would still apply.  */
13821 #ifdef __cplusplus
13822 extern "C"
13823 #endif
13824 char opendir ();
13825 int
13826 main ()
13827 {
13828 return opendir ();
13829   ;
13830   return 0;
13831 }
13832 _ACEOF
13833 for ac_lib in '' x; do
13834   if test -z "$ac_lib"; then
13835     ac_res="none required"
13836   else
13837     ac_res=-l$ac_lib
13838     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13839   fi
13840   rm -f conftest.$ac_objext conftest$ac_exeext
13841 if { (ac_try="$ac_link"
13842 case "(($ac_try" in
13843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844   *) ac_try_echo=$ac_try;;
13845 esac
13846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847   (eval "$ac_link") 2>conftest.er1
13848   ac_status=$?
13849   grep -v '^ *+' conftest.er1 >conftest.err
13850   rm -f conftest.er1
13851   cat conftest.err >&5
13852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853   (exit $ac_status); } &&
13854          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13855   { (case "(($ac_try" in
13856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13857   *) ac_try_echo=$ac_try;;
13858 esac
13859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13860   (eval "$ac_try") 2>&5
13861   ac_status=$?
13862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863   (exit $ac_status); }; } &&
13864          { ac_try='test -s conftest$ac_exeext'
13865   { (case "(($ac_try" in
13866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13867   *) ac_try_echo=$ac_try;;
13868 esac
13869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13870   (eval "$ac_try") 2>&5
13871   ac_status=$?
13872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873   (exit $ac_status); }; }; then
13874   ac_cv_search_opendir=$ac_res
13875 else
13876   echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.$ac_ext >&5
13878
13879
13880 fi
13881
13882 rm -f core conftest.err conftest.$ac_objext \
13883       conftest$ac_exeext
13884   if test "${ac_cv_search_opendir+set}" = set; then
13885   break
13886 fi
13887 done
13888 if test "${ac_cv_search_opendir+set}" = set; then
13889   :
13890 else
13891   ac_cv_search_opendir=no
13892 fi
13893 rm conftest.$ac_ext
13894 LIBS=$ac_func_search_save_LIBS
13895 fi
13896 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13897 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13898 ac_res=$ac_cv_search_opendir
13899 if test "$ac_res" != no; then
13900   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13901
13902 fi
13903
13904 fi
13905
13906 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13907 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13908 if test "${ac_cv_header_mmap_anon+set}" = set; then
13909   echo $ECHO_N "(cached) $ECHO_C" >&6
13910 else
13911    ac_ext=c
13912 ac_cpp='$CPP $CPPFLAGS'
13913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13916
13917   cat >conftest.$ac_ext <<_ACEOF
13918 /* confdefs.h.  */
13919 _ACEOF
13920 cat confdefs.h >>conftest.$ac_ext
13921 cat >>conftest.$ac_ext <<_ACEOF
13922 /* end confdefs.h.  */
13923 #include <sys/mman.h>
13924 #include <unistd.h>
13925 #include <fcntl.h>
13926 int
13927 main ()
13928 {
13929 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13930   ;
13931   return 0;
13932 }
13933 _ACEOF
13934 rm -f conftest.$ac_objext
13935 if { (ac_try="$ac_compile"
13936 case "(($ac_try" in
13937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13938   *) ac_try_echo=$ac_try;;
13939 esac
13940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13941   (eval "$ac_compile") 2>conftest.er1
13942   ac_status=$?
13943   grep -v '^ *+' conftest.er1 >conftest.err
13944   rm -f conftest.er1
13945   cat conftest.err >&5
13946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947   (exit $ac_status); } &&
13948          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13949   { (case "(($ac_try" in
13950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13951   *) ac_try_echo=$ac_try;;
13952 esac
13953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13954   (eval "$ac_try") 2>&5
13955   ac_status=$?
13956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957   (exit $ac_status); }; } &&
13958          { ac_try='test -s conftest.$ac_objext'
13959   { (case "(($ac_try" in
13960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13961   *) ac_try_echo=$ac_try;;
13962 esac
13963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13964   (eval "$ac_try") 2>&5
13965   ac_status=$?
13966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967   (exit $ac_status); }; }; then
13968   ac_cv_header_mmap_anon=yes
13969 else
13970   echo "$as_me: failed program was:" >&5
13971 sed 's/^/| /' conftest.$ac_ext >&5
13972
13973         ac_cv_header_mmap_anon=no
13974 fi
13975
13976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13977   ac_ext=c
13978 ac_cpp='$CPP $CPPFLAGS'
13979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13982
13983
13984 fi
13985 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13986 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13987 if test "$ac_cv_header_mmap_anon" = yes; then
13988
13989 cat >>confdefs.h <<\_ACEOF
13990 #define HAVE_MMAP_ANONYMOUS 1
13991 _ACEOF
13992
13993 fi
13994
13995 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13996 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
13997 if test "${ac_cv_header_stat_broken+set}" = set; then
13998   echo $ECHO_N "(cached) $ECHO_C" >&6
13999 else
14000   cat >conftest.$ac_ext <<_ACEOF
14001 /* confdefs.h.  */
14002 _ACEOF
14003 cat confdefs.h >>conftest.$ac_ext
14004 cat >>conftest.$ac_ext <<_ACEOF
14005 /* end confdefs.h.  */
14006 #include <sys/types.h>
14007 #include <sys/stat.h>
14008
14009 #if defined S_ISBLK && defined S_IFDIR
14010 # if S_ISBLK (S_IFDIR)
14011 You lose.
14012 # endif
14013 #endif
14014
14015 #if defined S_ISBLK && defined S_IFCHR
14016 # if S_ISBLK (S_IFCHR)
14017 You lose.
14018 # endif
14019 #endif
14020
14021 #if defined S_ISLNK && defined S_IFREG
14022 # if S_ISLNK (S_IFREG)
14023 You lose.
14024 # endif
14025 #endif
14026
14027 #if defined S_ISSOCK && defined S_IFREG
14028 # if S_ISSOCK (S_IFREG)
14029 You lose.
14030 # endif
14031 #endif
14032
14033 _ACEOF
14034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14035   $EGREP "You lose" >/dev/null 2>&1; then
14036   ac_cv_header_stat_broken=yes
14037 else
14038   ac_cv_header_stat_broken=no
14039 fi
14040 rm -f conftest*
14041
14042 fi
14043 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14044 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14045 if test $ac_cv_header_stat_broken = yes; then
14046
14047 cat >>confdefs.h <<\_ACEOF
14048 #define STAT_MACROS_BROKEN 1
14049 _ACEOF
14050
14051 fi
14052
14053 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14054 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14055 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14056   echo $ECHO_N "(cached) $ECHO_C" >&6
14057 else
14058   cat >conftest.$ac_ext <<_ACEOF
14059 /* confdefs.h.  */
14060 _ACEOF
14061 cat confdefs.h >>conftest.$ac_ext
14062 cat >>conftest.$ac_ext <<_ACEOF
14063 /* end confdefs.h.  */
14064 #include <sys/types.h>
14065 #include <sys/wait.h>
14066 #ifndef WEXITSTATUS
14067 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14068 #endif
14069 #ifndef WIFEXITED
14070 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14071 #endif
14072
14073 int
14074 main ()
14075 {
14076   int s;
14077   wait (&s);
14078   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14079   ;
14080   return 0;
14081 }
14082 _ACEOF
14083 rm -f conftest.$ac_objext
14084 if { (ac_try="$ac_compile"
14085 case "(($ac_try" in
14086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14087   *) ac_try_echo=$ac_try;;
14088 esac
14089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14090   (eval "$ac_compile") 2>conftest.er1
14091   ac_status=$?
14092   grep -v '^ *+' conftest.er1 >conftest.err
14093   rm -f conftest.er1
14094   cat conftest.err >&5
14095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096   (exit $ac_status); } &&
14097          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14098   { (case "(($ac_try" in
14099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14100   *) ac_try_echo=$ac_try;;
14101 esac
14102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14103   (eval "$ac_try") 2>&5
14104   ac_status=$?
14105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106   (exit $ac_status); }; } &&
14107          { ac_try='test -s conftest.$ac_objext'
14108   { (case "(($ac_try" in
14109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14110   *) ac_try_echo=$ac_try;;
14111 esac
14112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14113   (eval "$ac_try") 2>&5
14114   ac_status=$?
14115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116   (exit $ac_status); }; }; then
14117   ac_cv_header_sys_wait_h=yes
14118 else
14119   echo "$as_me: failed program was:" >&5
14120 sed 's/^/| /' conftest.$ac_ext >&5
14121
14122         ac_cv_header_sys_wait_h=no
14123 fi
14124
14125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14126 fi
14127 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14128 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14129 if test $ac_cv_header_sys_wait_h = yes; then
14130
14131 cat >>confdefs.h <<\_ACEOF
14132 #define HAVE_SYS_WAIT_H 1
14133 _ACEOF
14134
14135 fi
14136
14137 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14138 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14139 if test "${ac_cv_header_time+set}" = set; then
14140   echo $ECHO_N "(cached) $ECHO_C" >&6
14141 else
14142   cat >conftest.$ac_ext <<_ACEOF
14143 /* confdefs.h.  */
14144 _ACEOF
14145 cat confdefs.h >>conftest.$ac_ext
14146 cat >>conftest.$ac_ext <<_ACEOF
14147 /* end confdefs.h.  */
14148 #include <sys/types.h>
14149 #include <sys/time.h>
14150 #include <time.h>
14151
14152 int
14153 main ()
14154 {
14155 if ((struct tm *) 0)
14156 return 0;
14157   ;
14158   return 0;
14159 }
14160 _ACEOF
14161 rm -f conftest.$ac_objext
14162 if { (ac_try="$ac_compile"
14163 case "(($ac_try" in
14164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14165   *) ac_try_echo=$ac_try;;
14166 esac
14167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14168   (eval "$ac_compile") 2>conftest.er1
14169   ac_status=$?
14170   grep -v '^ *+' conftest.er1 >conftest.err
14171   rm -f conftest.er1
14172   cat conftest.err >&5
14173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174   (exit $ac_status); } &&
14175          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14176   { (case "(($ac_try" in
14177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14178   *) ac_try_echo=$ac_try;;
14179 esac
14180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14181   (eval "$ac_try") 2>&5
14182   ac_status=$?
14183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184   (exit $ac_status); }; } &&
14185          { ac_try='test -s conftest.$ac_objext'
14186   { (case "(($ac_try" in
14187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14188   *) ac_try_echo=$ac_try;;
14189 esac
14190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14191   (eval "$ac_try") 2>&5
14192   ac_status=$?
14193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194   (exit $ac_status); }; }; then
14195   ac_cv_header_time=yes
14196 else
14197   echo "$as_me: failed program was:" >&5
14198 sed 's/^/| /' conftest.$ac_ext >&5
14199
14200         ac_cv_header_time=no
14201 fi
14202
14203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14204 fi
14205 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14206 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14207 if test $ac_cv_header_time = yes; then
14208
14209 cat >>confdefs.h <<\_ACEOF
14210 #define TIME_WITH_SYS_TIME 1
14211 _ACEOF
14212
14213 fi
14214
14215
14216
14217
14218
14219
14220
14221
14222 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14223 do
14224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14226   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14229   echo $ECHO_N "(cached) $ECHO_C" >&6
14230 fi
14231 ac_res=`eval echo '${'$as_ac_Header'}'`
14232                { echo "$as_me:$LINENO: result: $ac_res" >&5
14233 echo "${ECHO_T}$ac_res" >&6; }
14234 else
14235   # Is the header compilable?
14236 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14237 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14238 cat >conftest.$ac_ext <<_ACEOF
14239 /* confdefs.h.  */
14240 _ACEOF
14241 cat confdefs.h >>conftest.$ac_ext
14242 cat >>conftest.$ac_ext <<_ACEOF
14243 /* end confdefs.h.  */
14244 $ac_includes_default
14245 #include <$ac_header>
14246 _ACEOF
14247 rm -f conftest.$ac_objext
14248 if { (ac_try="$ac_compile"
14249 case "(($ac_try" in
14250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14251   *) ac_try_echo=$ac_try;;
14252 esac
14253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14254   (eval "$ac_compile") 2>conftest.er1
14255   ac_status=$?
14256   grep -v '^ *+' conftest.er1 >conftest.err
14257   rm -f conftest.er1
14258   cat conftest.err >&5
14259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260   (exit $ac_status); } &&
14261          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14262   { (case "(($ac_try" in
14263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14264   *) ac_try_echo=$ac_try;;
14265 esac
14266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14267   (eval "$ac_try") 2>&5
14268   ac_status=$?
14269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270   (exit $ac_status); }; } &&
14271          { ac_try='test -s conftest.$ac_objext'
14272   { (case "(($ac_try" in
14273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14274   *) ac_try_echo=$ac_try;;
14275 esac
14276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14277   (eval "$ac_try") 2>&5
14278   ac_status=$?
14279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280   (exit $ac_status); }; }; then
14281   ac_header_compiler=yes
14282 else
14283   echo "$as_me: failed program was:" >&5
14284 sed 's/^/| /' conftest.$ac_ext >&5
14285
14286         ac_header_compiler=no
14287 fi
14288
14289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14290 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14291 echo "${ECHO_T}$ac_header_compiler" >&6; }
14292
14293 # Is the header present?
14294 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14296 cat >conftest.$ac_ext <<_ACEOF
14297 /* confdefs.h.  */
14298 _ACEOF
14299 cat confdefs.h >>conftest.$ac_ext
14300 cat >>conftest.$ac_ext <<_ACEOF
14301 /* end confdefs.h.  */
14302 #include <$ac_header>
14303 _ACEOF
14304 if { (ac_try="$ac_cpp conftest.$ac_ext"
14305 case "(($ac_try" in
14306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14307   *) ac_try_echo=$ac_try;;
14308 esac
14309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14310   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14311   ac_status=$?
14312   grep -v '^ *+' conftest.er1 >conftest.err
14313   rm -f conftest.er1
14314   cat conftest.err >&5
14315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316   (exit $ac_status); } >/dev/null; then
14317   if test -s conftest.err; then
14318     ac_cpp_err=$ac_c_preproc_warn_flag
14319     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14320   else
14321     ac_cpp_err=
14322   fi
14323 else
14324   ac_cpp_err=yes
14325 fi
14326 if test -z "$ac_cpp_err"; then
14327   ac_header_preproc=yes
14328 else
14329   echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.$ac_ext >&5
14331
14332   ac_header_preproc=no
14333 fi
14334
14335 rm -f conftest.err conftest.$ac_ext
14336 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14337 echo "${ECHO_T}$ac_header_preproc" >&6; }
14338
14339 # So?  What about this header?
14340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14341   yes:no: )
14342     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14343 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14344     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14346     ac_header_preproc=yes
14347     ;;
14348   no:yes:* )
14349     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14351     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14352 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14353     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14354 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14355     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14356 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14357     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14359     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14360 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14361     ( cat <<\_ASBOX
14362 ## ------------------------------ ##
14363 ## Report this to bugs@yourdomain ##
14364 ## ------------------------------ ##
14365 _ASBOX
14366      ) | sed "s/^/$as_me: WARNING:     /" >&2
14367     ;;
14368 esac
14369 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14372   echo $ECHO_N "(cached) $ECHO_C" >&6
14373 else
14374   eval "$as_ac_Header=\$ac_header_preproc"
14375 fi
14376 ac_res=`eval echo '${'$as_ac_Header'}'`
14377                { echo "$as_me:$LINENO: result: $ac_res" >&5
14378 echo "${ECHO_T}$ac_res" >&6; }
14379
14380 fi
14381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14382   cat >>confdefs.h <<_ACEOF
14383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14384 _ACEOF
14385
14386 fi
14387
14388 done
14389
14390
14391
14392
14393
14394
14395
14396 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14397 do
14398 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14400   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14403   echo $ECHO_N "(cached) $ECHO_C" >&6
14404 fi
14405 ac_res=`eval echo '${'$as_ac_Header'}'`
14406                { echo "$as_me:$LINENO: result: $ac_res" >&5
14407 echo "${ECHO_T}$ac_res" >&6; }
14408 else
14409   # Is the header compilable?
14410 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14411 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14412 cat >conftest.$ac_ext <<_ACEOF
14413 /* confdefs.h.  */
14414 _ACEOF
14415 cat confdefs.h >>conftest.$ac_ext
14416 cat >>conftest.$ac_ext <<_ACEOF
14417 /* end confdefs.h.  */
14418 $ac_includes_default
14419 #include <$ac_header>
14420 _ACEOF
14421 rm -f conftest.$ac_objext
14422 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
14429   ac_status=$?
14430   grep -v '^ *+' conftest.er1 >conftest.err
14431   rm -f conftest.er1
14432   cat conftest.err >&5
14433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434   (exit $ac_status); } &&
14435          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14436   { (case "(($ac_try" in
14437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14438   *) ac_try_echo=$ac_try;;
14439 esac
14440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14441   (eval "$ac_try") 2>&5
14442   ac_status=$?
14443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444   (exit $ac_status); }; } &&
14445          { ac_try='test -s conftest.$ac_objext'
14446   { (case "(($ac_try" in
14447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14448   *) ac_try_echo=$ac_try;;
14449 esac
14450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14451   (eval "$ac_try") 2>&5
14452   ac_status=$?
14453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454   (exit $ac_status); }; }; then
14455   ac_header_compiler=yes
14456 else
14457   echo "$as_me: failed program was:" >&5
14458 sed 's/^/| /' conftest.$ac_ext >&5
14459
14460         ac_header_compiler=no
14461 fi
14462
14463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14464 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14465 echo "${ECHO_T}$ac_header_compiler" >&6; }
14466
14467 # Is the header present?
14468 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14470 cat >conftest.$ac_ext <<_ACEOF
14471 /* confdefs.h.  */
14472 _ACEOF
14473 cat confdefs.h >>conftest.$ac_ext
14474 cat >>conftest.$ac_ext <<_ACEOF
14475 /* end confdefs.h.  */
14476 #include <$ac_header>
14477 _ACEOF
14478 if { (ac_try="$ac_cpp conftest.$ac_ext"
14479 case "(($ac_try" in
14480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14481   *) ac_try_echo=$ac_try;;
14482 esac
14483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14484   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14485   ac_status=$?
14486   grep -v '^ *+' conftest.er1 >conftest.err
14487   rm -f conftest.er1
14488   cat conftest.err >&5
14489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490   (exit $ac_status); } >/dev/null; then
14491   if test -s conftest.err; then
14492     ac_cpp_err=$ac_c_preproc_warn_flag
14493     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14494   else
14495     ac_cpp_err=
14496   fi
14497 else
14498   ac_cpp_err=yes
14499 fi
14500 if test -z "$ac_cpp_err"; then
14501   ac_header_preproc=yes
14502 else
14503   echo "$as_me: failed program was:" >&5
14504 sed 's/^/| /' conftest.$ac_ext >&5
14505
14506   ac_header_preproc=no
14507 fi
14508
14509 rm -f conftest.err conftest.$ac_ext
14510 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14511 echo "${ECHO_T}$ac_header_preproc" >&6; }
14512
14513 # So?  What about this header?
14514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14515   yes:no: )
14516     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14518     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14519 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14520     ac_header_preproc=yes
14521     ;;
14522   no:yes:* )
14523     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14524 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14525     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14526 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14527     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14528 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14529     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14530 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14531     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14533     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14534 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14535     ( cat <<\_ASBOX
14536 ## ------------------------------ ##
14537 ## Report this to bugs@yourdomain ##
14538 ## ------------------------------ ##
14539 _ASBOX
14540      ) | sed "s/^/$as_me: WARNING:     /" >&2
14541     ;;
14542 esac
14543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14546   echo $ECHO_N "(cached) $ECHO_C" >&6
14547 else
14548   eval "$as_ac_Header=\$ac_header_preproc"
14549 fi
14550 ac_res=`eval echo '${'$as_ac_Header'}'`
14551                { echo "$as_me:$LINENO: result: $ac_res" >&5
14552 echo "${ECHO_T}$ac_res" >&6; }
14553
14554 fi
14555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14556   cat >>confdefs.h <<_ACEOF
14557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14558 _ACEOF
14559
14560 fi
14561
14562 done
14563
14564
14565
14566 for ac_header in utime.h windows.h
14567 do
14568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14570   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14573   echo $ECHO_N "(cached) $ECHO_C" >&6
14574 fi
14575 ac_res=`eval echo '${'$as_ac_Header'}'`
14576                { echo "$as_me:$LINENO: result: $ac_res" >&5
14577 echo "${ECHO_T}$ac_res" >&6; }
14578 else
14579   # Is the header compilable?
14580 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14582 cat >conftest.$ac_ext <<_ACEOF
14583 /* confdefs.h.  */
14584 _ACEOF
14585 cat confdefs.h >>conftest.$ac_ext
14586 cat >>conftest.$ac_ext <<_ACEOF
14587 /* end confdefs.h.  */
14588 $ac_includes_default
14589 #include <$ac_header>
14590 _ACEOF
14591 rm -f conftest.$ac_objext
14592 if { (ac_try="$ac_compile"
14593 case "(($ac_try" in
14594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14595   *) ac_try_echo=$ac_try;;
14596 esac
14597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14598   (eval "$ac_compile") 2>conftest.er1
14599   ac_status=$?
14600   grep -v '^ *+' conftest.er1 >conftest.err
14601   rm -f conftest.er1
14602   cat conftest.err >&5
14603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604   (exit $ac_status); } &&
14605          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14606   { (case "(($ac_try" in
14607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14608   *) ac_try_echo=$ac_try;;
14609 esac
14610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14611   (eval "$ac_try") 2>&5
14612   ac_status=$?
14613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614   (exit $ac_status); }; } &&
14615          { ac_try='test -s conftest.$ac_objext'
14616   { (case "(($ac_try" in
14617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14618   *) ac_try_echo=$ac_try;;
14619 esac
14620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14621   (eval "$ac_try") 2>&5
14622   ac_status=$?
14623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624   (exit $ac_status); }; }; then
14625   ac_header_compiler=yes
14626 else
14627   echo "$as_me: failed program was:" >&5
14628 sed 's/^/| /' conftest.$ac_ext >&5
14629
14630         ac_header_compiler=no
14631 fi
14632
14633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14634 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14635 echo "${ECHO_T}$ac_header_compiler" >&6; }
14636
14637 # Is the header present?
14638 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14639 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14640 cat >conftest.$ac_ext <<_ACEOF
14641 /* confdefs.h.  */
14642 _ACEOF
14643 cat confdefs.h >>conftest.$ac_ext
14644 cat >>conftest.$ac_ext <<_ACEOF
14645 /* end confdefs.h.  */
14646 #include <$ac_header>
14647 _ACEOF
14648 if { (ac_try="$ac_cpp conftest.$ac_ext"
14649 case "(($ac_try" in
14650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14651   *) ac_try_echo=$ac_try;;
14652 esac
14653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14654   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14655   ac_status=$?
14656   grep -v '^ *+' conftest.er1 >conftest.err
14657   rm -f conftest.er1
14658   cat conftest.err >&5
14659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660   (exit $ac_status); } >/dev/null; then
14661   if test -s conftest.err; then
14662     ac_cpp_err=$ac_c_preproc_warn_flag
14663     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14664   else
14665     ac_cpp_err=
14666   fi
14667 else
14668   ac_cpp_err=yes
14669 fi
14670 if test -z "$ac_cpp_err"; then
14671   ac_header_preproc=yes
14672 else
14673   echo "$as_me: failed program was:" >&5
14674 sed 's/^/| /' conftest.$ac_ext >&5
14675
14676   ac_header_preproc=no
14677 fi
14678
14679 rm -f conftest.err conftest.$ac_ext
14680 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14681 echo "${ECHO_T}$ac_header_preproc" >&6; }
14682
14683 # So?  What about this header?
14684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14685   yes:no: )
14686     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14688     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14690     ac_header_preproc=yes
14691     ;;
14692   no:yes:* )
14693     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14695     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14696 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14697     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14698 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14699     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14700 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14701     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14703     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14704 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14705     ( cat <<\_ASBOX
14706 ## ------------------------------ ##
14707 ## Report this to bugs@yourdomain ##
14708 ## ------------------------------ ##
14709 _ASBOX
14710      ) | sed "s/^/$as_me: WARNING:     /" >&2
14711     ;;
14712 esac
14713 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14716   echo $ECHO_N "(cached) $ECHO_C" >&6
14717 else
14718   eval "$as_ac_Header=\$ac_header_preproc"
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
14724 fi
14725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14726   cat >>confdefs.h <<_ACEOF
14727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14728 _ACEOF
14729
14730 fi
14731
14732 done
14733
14734
14735
14736
14737
14738
14739 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14740 do
14741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14743   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14746   echo $ECHO_N "(cached) $ECHO_C" >&6
14747 fi
14748 ac_res=`eval echo '${'$as_ac_Header'}'`
14749                { echo "$as_me:$LINENO: result: $ac_res" >&5
14750 echo "${ECHO_T}$ac_res" >&6; }
14751 else
14752   # Is the header compilable?
14753 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14755 cat >conftest.$ac_ext <<_ACEOF
14756 /* confdefs.h.  */
14757 _ACEOF
14758 cat confdefs.h >>conftest.$ac_ext
14759 cat >>conftest.$ac_ext <<_ACEOF
14760 /* end confdefs.h.  */
14761 $ac_includes_default
14762 #include <$ac_header>
14763 _ACEOF
14764 rm -f conftest.$ac_objext
14765 if { (ac_try="$ac_compile"
14766 case "(($ac_try" in
14767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14768   *) ac_try_echo=$ac_try;;
14769 esac
14770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14771   (eval "$ac_compile") 2>conftest.er1
14772   ac_status=$?
14773   grep -v '^ *+' conftest.er1 >conftest.err
14774   rm -f conftest.er1
14775   cat conftest.err >&5
14776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777   (exit $ac_status); } &&
14778          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14779   { (case "(($ac_try" in
14780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781   *) ac_try_echo=$ac_try;;
14782 esac
14783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14784   (eval "$ac_try") 2>&5
14785   ac_status=$?
14786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787   (exit $ac_status); }; } &&
14788          { ac_try='test -s conftest.$ac_objext'
14789   { (case "(($ac_try" in
14790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791   *) ac_try_echo=$ac_try;;
14792 esac
14793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14794   (eval "$ac_try") 2>&5
14795   ac_status=$?
14796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797   (exit $ac_status); }; }; then
14798   ac_header_compiler=yes
14799 else
14800   echo "$as_me: failed program was:" >&5
14801 sed 's/^/| /' conftest.$ac_ext >&5
14802
14803         ac_header_compiler=no
14804 fi
14805
14806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14807 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14808 echo "${ECHO_T}$ac_header_compiler" >&6; }
14809
14810 # Is the header present?
14811 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14813 cat >conftest.$ac_ext <<_ACEOF
14814 /* confdefs.h.  */
14815 _ACEOF
14816 cat confdefs.h >>conftest.$ac_ext
14817 cat >>conftest.$ac_ext <<_ACEOF
14818 /* end confdefs.h.  */
14819 #include <$ac_header>
14820 _ACEOF
14821 if { (ac_try="$ac_cpp conftest.$ac_ext"
14822 case "(($ac_try" in
14823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14824   *) ac_try_echo=$ac_try;;
14825 esac
14826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14827   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14828   ac_status=$?
14829   grep -v '^ *+' conftest.er1 >conftest.err
14830   rm -f conftest.er1
14831   cat conftest.err >&5
14832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833   (exit $ac_status); } >/dev/null; then
14834   if test -s conftest.err; then
14835     ac_cpp_err=$ac_c_preproc_warn_flag
14836     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14837   else
14838     ac_cpp_err=
14839   fi
14840 else
14841   ac_cpp_err=yes
14842 fi
14843 if test -z "$ac_cpp_err"; then
14844   ac_header_preproc=yes
14845 else
14846   echo "$as_me: failed program was:" >&5
14847 sed 's/^/| /' conftest.$ac_ext >&5
14848
14849   ac_header_preproc=no
14850 fi
14851
14852 rm -f conftest.err conftest.$ac_ext
14853 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14854 echo "${ECHO_T}$ac_header_preproc" >&6; }
14855
14856 # So?  What about this header?
14857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14858   yes:no: )
14859     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14860 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14861     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14862 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14863     ac_header_preproc=yes
14864     ;;
14865   no:yes:* )
14866     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14867 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14868     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14869 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14870     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14871 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14872     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14873 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14874     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14875 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14876     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14877 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14878     ( cat <<\_ASBOX
14879 ## ------------------------------ ##
14880 ## Report this to bugs@yourdomain ##
14881 ## ------------------------------ ##
14882 _ASBOX
14883      ) | sed "s/^/$as_me: WARNING:     /" >&2
14884     ;;
14885 esac
14886 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14889   echo $ECHO_N "(cached) $ECHO_C" >&6
14890 else
14891   eval "$as_ac_Header=\$ac_header_preproc"
14892 fi
14893 ac_res=`eval echo '${'$as_ac_Header'}'`
14894                { echo "$as_me:$LINENO: result: $ac_res" >&5
14895 echo "${ECHO_T}$ac_res" >&6; }
14896
14897 fi
14898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14899   cat >>confdefs.h <<_ACEOF
14900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14901 _ACEOF
14902
14903 fi
14904
14905 done
14906
14907
14908
14909
14910
14911 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14912 do
14913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14915   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14918   echo $ECHO_N "(cached) $ECHO_C" >&6
14919 fi
14920 ac_res=`eval echo '${'$as_ac_Header'}'`
14921                { echo "$as_me:$LINENO: result: $ac_res" >&5
14922 echo "${ECHO_T}$ac_res" >&6; }
14923 else
14924   # Is the header compilable?
14925 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14927 cat >conftest.$ac_ext <<_ACEOF
14928 /* confdefs.h.  */
14929 _ACEOF
14930 cat confdefs.h >>conftest.$ac_ext
14931 cat >>conftest.$ac_ext <<_ACEOF
14932 /* end confdefs.h.  */
14933 $ac_includes_default
14934 #include <$ac_header>
14935 _ACEOF
14936 rm -f conftest.$ac_objext
14937 if { (ac_try="$ac_compile"
14938 case "(($ac_try" in
14939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14940   *) ac_try_echo=$ac_try;;
14941 esac
14942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14943   (eval "$ac_compile") 2>conftest.er1
14944   ac_status=$?
14945   grep -v '^ *+' conftest.er1 >conftest.err
14946   rm -f conftest.er1
14947   cat conftest.err >&5
14948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949   (exit $ac_status); } &&
14950          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14951   { (case "(($ac_try" in
14952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14953   *) ac_try_echo=$ac_try;;
14954 esac
14955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14956   (eval "$ac_try") 2>&5
14957   ac_status=$?
14958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959   (exit $ac_status); }; } &&
14960          { ac_try='test -s conftest.$ac_objext'
14961   { (case "(($ac_try" in
14962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14963   *) ac_try_echo=$ac_try;;
14964 esac
14965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14966   (eval "$ac_try") 2>&5
14967   ac_status=$?
14968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969   (exit $ac_status); }; }; then
14970   ac_header_compiler=yes
14971 else
14972   echo "$as_me: failed program was:" >&5
14973 sed 's/^/| /' conftest.$ac_ext >&5
14974
14975         ac_header_compiler=no
14976 fi
14977
14978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14979 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14980 echo "${ECHO_T}$ac_header_compiler" >&6; }
14981
14982 # Is the header present?
14983 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14984 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14985 cat >conftest.$ac_ext <<_ACEOF
14986 /* confdefs.h.  */
14987 _ACEOF
14988 cat confdefs.h >>conftest.$ac_ext
14989 cat >>conftest.$ac_ext <<_ACEOF
14990 /* end confdefs.h.  */
14991 #include <$ac_header>
14992 _ACEOF
14993 if { (ac_try="$ac_cpp conftest.$ac_ext"
14994 case "(($ac_try" in
14995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14996   *) ac_try_echo=$ac_try;;
14997 esac
14998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14999   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15000   ac_status=$?
15001   grep -v '^ *+' conftest.er1 >conftest.err
15002   rm -f conftest.er1
15003   cat conftest.err >&5
15004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005   (exit $ac_status); } >/dev/null; then
15006   if test -s conftest.err; then
15007     ac_cpp_err=$ac_c_preproc_warn_flag
15008     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15009   else
15010     ac_cpp_err=
15011   fi
15012 else
15013   ac_cpp_err=yes
15014 fi
15015 if test -z "$ac_cpp_err"; then
15016   ac_header_preproc=yes
15017 else
15018   echo "$as_me: failed program was:" >&5
15019 sed 's/^/| /' conftest.$ac_ext >&5
15020
15021   ac_header_preproc=no
15022 fi
15023
15024 rm -f conftest.err conftest.$ac_ext
15025 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15026 echo "${ECHO_T}$ac_header_preproc" >&6; }
15027
15028 # So?  What about this header?
15029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15030   yes:no: )
15031     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15033     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15034 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15035     ac_header_preproc=yes
15036     ;;
15037   no:yes:* )
15038     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15040     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15041 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15042     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15043 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15044     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15045 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15046     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15048     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15049 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15050     ( cat <<\_ASBOX
15051 ## ------------------------------ ##
15052 ## Report this to bugs@yourdomain ##
15053 ## ------------------------------ ##
15054 _ASBOX
15055      ) | sed "s/^/$as_me: WARNING:     /" >&2
15056     ;;
15057 esac
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 else
15063   eval "$as_ac_Header=\$ac_header_preproc"
15064 fi
15065 ac_res=`eval echo '${'$as_ac_Header'}'`
15066                { echo "$as_me:$LINENO: result: $ac_res" >&5
15067 echo "${ECHO_T}$ac_res" >&6; }
15068
15069 fi
15070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15071   cat >>confdefs.h <<_ACEOF
15072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15073 _ACEOF
15074
15075 fi
15076
15077 done
15078
15079
15080 for ac_header in valgrind/valgrind.h
15081 do
15082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15084   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15087   echo $ECHO_N "(cached) $ECHO_C" >&6
15088 fi
15089 ac_res=`eval echo '${'$as_ac_Header'}'`
15090                { echo "$as_me:$LINENO: result: $ac_res" >&5
15091 echo "${ECHO_T}$ac_res" >&6; }
15092 else
15093   # Is the header compilable?
15094 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15096 cat >conftest.$ac_ext <<_ACEOF
15097 /* confdefs.h.  */
15098 _ACEOF
15099 cat confdefs.h >>conftest.$ac_ext
15100 cat >>conftest.$ac_ext <<_ACEOF
15101 /* end confdefs.h.  */
15102 $ac_includes_default
15103 #include <$ac_header>
15104 _ACEOF
15105 rm -f conftest.$ac_objext
15106 if { (ac_try="$ac_compile"
15107 case "(($ac_try" in
15108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15109   *) ac_try_echo=$ac_try;;
15110 esac
15111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15112   (eval "$ac_compile") 2>conftest.er1
15113   ac_status=$?
15114   grep -v '^ *+' conftest.er1 >conftest.err
15115   rm -f conftest.er1
15116   cat conftest.err >&5
15117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118   (exit $ac_status); } &&
15119          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15120   { (case "(($ac_try" in
15121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15122   *) ac_try_echo=$ac_try;;
15123 esac
15124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15125   (eval "$ac_try") 2>&5
15126   ac_status=$?
15127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128   (exit $ac_status); }; } &&
15129          { ac_try='test -s conftest.$ac_objext'
15130   { (case "(($ac_try" in
15131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15132   *) ac_try_echo=$ac_try;;
15133 esac
15134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15135   (eval "$ac_try") 2>&5
15136   ac_status=$?
15137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138   (exit $ac_status); }; }; then
15139   ac_header_compiler=yes
15140 else
15141   echo "$as_me: failed program was:" >&5
15142 sed 's/^/| /' conftest.$ac_ext >&5
15143
15144         ac_header_compiler=no
15145 fi
15146
15147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15148 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15149 echo "${ECHO_T}$ac_header_compiler" >&6; }
15150
15151 # Is the header present?
15152 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15153 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15154 cat >conftest.$ac_ext <<_ACEOF
15155 /* confdefs.h.  */
15156 _ACEOF
15157 cat confdefs.h >>conftest.$ac_ext
15158 cat >>conftest.$ac_ext <<_ACEOF
15159 /* end confdefs.h.  */
15160 #include <$ac_header>
15161 _ACEOF
15162 if { (ac_try="$ac_cpp conftest.$ac_ext"
15163 case "(($ac_try" in
15164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15165   *) ac_try_echo=$ac_try;;
15166 esac
15167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15168   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15169   ac_status=$?
15170   grep -v '^ *+' conftest.er1 >conftest.err
15171   rm -f conftest.er1
15172   cat conftest.err >&5
15173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174   (exit $ac_status); } >/dev/null; then
15175   if test -s conftest.err; then
15176     ac_cpp_err=$ac_c_preproc_warn_flag
15177     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15178   else
15179     ac_cpp_err=
15180   fi
15181 else
15182   ac_cpp_err=yes
15183 fi
15184 if test -z "$ac_cpp_err"; then
15185   ac_header_preproc=yes
15186 else
15187   echo "$as_me: failed program was:" >&5
15188 sed 's/^/| /' conftest.$ac_ext >&5
15189
15190   ac_header_preproc=no
15191 fi
15192
15193 rm -f conftest.err conftest.$ac_ext
15194 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15195 echo "${ECHO_T}$ac_header_preproc" >&6; }
15196
15197 # So?  What about this header?
15198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15199   yes:no: )
15200     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15201 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15202     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15203 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15204     ac_header_preproc=yes
15205     ;;
15206   no:yes:* )
15207     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15208 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15209     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15210 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15211     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15212 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15213     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15214 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15215     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15217     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15218 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15219     ( cat <<\_ASBOX
15220 ## ------------------------------ ##
15221 ## Report this to bugs@yourdomain ##
15222 ## ------------------------------ ##
15223 _ASBOX
15224      ) | sed "s/^/$as_me: WARNING:     /" >&2
15225     ;;
15226 esac
15227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15230   echo $ECHO_N "(cached) $ECHO_C" >&6
15231 else
15232   eval "$as_ac_Header=\$ac_header_preproc"
15233 fi
15234 ac_res=`eval echo '${'$as_ac_Header'}'`
15235                { echo "$as_me:$LINENO: result: $ac_res" >&5
15236 echo "${ECHO_T}$ac_res" >&6; }
15237
15238 fi
15239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15240   cat >>confdefs.h <<_ACEOF
15241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15242 _ACEOF
15243
15244 fi
15245
15246 done
15247
15248
15249 for ac_header in fenv.h
15250 do
15251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15253   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15256   echo $ECHO_N "(cached) $ECHO_C" >&6
15257 fi
15258 ac_res=`eval echo '${'$as_ac_Header'}'`
15259                { echo "$as_me:$LINENO: result: $ac_res" >&5
15260 echo "${ECHO_T}$ac_res" >&6; }
15261 else
15262   # Is the header compilable?
15263 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15265 cat >conftest.$ac_ext <<_ACEOF
15266 /* confdefs.h.  */
15267 _ACEOF
15268 cat confdefs.h >>conftest.$ac_ext
15269 cat >>conftest.$ac_ext <<_ACEOF
15270 /* end confdefs.h.  */
15271 $ac_includes_default
15272 #include <$ac_header>
15273 _ACEOF
15274 rm -f conftest.$ac_objext
15275 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
15282   ac_status=$?
15283   grep -v '^ *+' conftest.er1 >conftest.err
15284   rm -f conftest.er1
15285   cat conftest.err >&5
15286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287   (exit $ac_status); } &&
15288          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15289   { (case "(($ac_try" in
15290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15291   *) ac_try_echo=$ac_try;;
15292 esac
15293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15294   (eval "$ac_try") 2>&5
15295   ac_status=$?
15296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297   (exit $ac_status); }; } &&
15298          { ac_try='test -s conftest.$ac_objext'
15299   { (case "(($ac_try" in
15300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15301   *) ac_try_echo=$ac_try;;
15302 esac
15303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15304   (eval "$ac_try") 2>&5
15305   ac_status=$?
15306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307   (exit $ac_status); }; }; then
15308   ac_header_compiler=yes
15309 else
15310   echo "$as_me: failed program was:" >&5
15311 sed 's/^/| /' conftest.$ac_ext >&5
15312
15313         ac_header_compiler=no
15314 fi
15315
15316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15317 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15318 echo "${ECHO_T}$ac_header_compiler" >&6; }
15319
15320 # Is the header present?
15321 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15322 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15323 cat >conftest.$ac_ext <<_ACEOF
15324 /* confdefs.h.  */
15325 _ACEOF
15326 cat confdefs.h >>conftest.$ac_ext
15327 cat >>conftest.$ac_ext <<_ACEOF
15328 /* end confdefs.h.  */
15329 #include <$ac_header>
15330 _ACEOF
15331 if { (ac_try="$ac_cpp conftest.$ac_ext"
15332 case "(($ac_try" in
15333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15334   *) ac_try_echo=$ac_try;;
15335 esac
15336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15337   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15338   ac_status=$?
15339   grep -v '^ *+' conftest.er1 >conftest.err
15340   rm -f conftest.er1
15341   cat conftest.err >&5
15342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343   (exit $ac_status); } >/dev/null; then
15344   if test -s conftest.err; then
15345     ac_cpp_err=$ac_c_preproc_warn_flag
15346     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15347   else
15348     ac_cpp_err=
15349   fi
15350 else
15351   ac_cpp_err=yes
15352 fi
15353 if test -z "$ac_cpp_err"; then
15354   ac_header_preproc=yes
15355 else
15356   echo "$as_me: failed program was:" >&5
15357 sed 's/^/| /' conftest.$ac_ext >&5
15358
15359   ac_header_preproc=no
15360 fi
15361
15362 rm -f conftest.err conftest.$ac_ext
15363 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15364 echo "${ECHO_T}$ac_header_preproc" >&6; }
15365
15366 # So?  What about this header?
15367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15368   yes:no: )
15369     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15370 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15371     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15372 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15373     ac_header_preproc=yes
15374     ;;
15375   no:yes:* )
15376     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15377 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15378     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15379 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15380     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15381 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15382     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15383 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15384     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15386     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15387 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15388     ( cat <<\_ASBOX
15389 ## ------------------------------ ##
15390 ## Report this to bugs@yourdomain ##
15391 ## ------------------------------ ##
15392 _ASBOX
15393      ) | sed "s/^/$as_me: WARNING:     /" >&2
15394     ;;
15395 esac
15396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15399   echo $ECHO_N "(cached) $ECHO_C" >&6
15400 else
15401   eval "$as_ac_Header=\$ac_header_preproc"
15402 fi
15403 ac_res=`eval echo '${'$as_ac_Header'}'`
15404                { echo "$as_me:$LINENO: result: $ac_res" >&5
15405 echo "${ECHO_T}$ac_res" >&6; }
15406
15407 fi
15408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15409   cat >>confdefs.h <<_ACEOF
15410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15411 _ACEOF
15412
15413 fi
15414
15415 done
15416
15417 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15418
15419 for ac_header in pthread.h
15420 do
15421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15423   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15426   echo $ECHO_N "(cached) $ECHO_C" >&6
15427 fi
15428 ac_res=`eval echo '${'$as_ac_Header'}'`
15429                { echo "$as_me:$LINENO: result: $ac_res" >&5
15430 echo "${ECHO_T}$ac_res" >&6; }
15431 else
15432   # Is the header compilable?
15433 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15435 cat >conftest.$ac_ext <<_ACEOF
15436 /* confdefs.h.  */
15437 _ACEOF
15438 cat confdefs.h >>conftest.$ac_ext
15439 cat >>conftest.$ac_ext <<_ACEOF
15440 /* end confdefs.h.  */
15441 $ac_includes_default
15442 #include <$ac_header>
15443 _ACEOF
15444 rm -f conftest.$ac_objext
15445 if { (ac_try="$ac_compile"
15446 case "(($ac_try" in
15447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15448   *) ac_try_echo=$ac_try;;
15449 esac
15450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15451   (eval "$ac_compile") 2>conftest.er1
15452   ac_status=$?
15453   grep -v '^ *+' conftest.er1 >conftest.err
15454   rm -f conftest.er1
15455   cat conftest.err >&5
15456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457   (exit $ac_status); } &&
15458          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15459   { (case "(($ac_try" in
15460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15461   *) ac_try_echo=$ac_try;;
15462 esac
15463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15464   (eval "$ac_try") 2>&5
15465   ac_status=$?
15466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467   (exit $ac_status); }; } &&
15468          { ac_try='test -s conftest.$ac_objext'
15469   { (case "(($ac_try" in
15470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15471   *) ac_try_echo=$ac_try;;
15472 esac
15473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15474   (eval "$ac_try") 2>&5
15475   ac_status=$?
15476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477   (exit $ac_status); }; }; then
15478   ac_header_compiler=yes
15479 else
15480   echo "$as_me: failed program was:" >&5
15481 sed 's/^/| /' conftest.$ac_ext >&5
15482
15483         ac_header_compiler=no
15484 fi
15485
15486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15487 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15488 echo "${ECHO_T}$ac_header_compiler" >&6; }
15489
15490 # Is the header present?
15491 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15493 cat >conftest.$ac_ext <<_ACEOF
15494 /* confdefs.h.  */
15495 _ACEOF
15496 cat confdefs.h >>conftest.$ac_ext
15497 cat >>conftest.$ac_ext <<_ACEOF
15498 /* end confdefs.h.  */
15499 #include <$ac_header>
15500 _ACEOF
15501 if { (ac_try="$ac_cpp conftest.$ac_ext"
15502 case "(($ac_try" in
15503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15504   *) ac_try_echo=$ac_try;;
15505 esac
15506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15507   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15508   ac_status=$?
15509   grep -v '^ *+' conftest.er1 >conftest.err
15510   rm -f conftest.er1
15511   cat conftest.err >&5
15512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513   (exit $ac_status); } >/dev/null; then
15514   if test -s conftest.err; then
15515     ac_cpp_err=$ac_c_preproc_warn_flag
15516     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15517   else
15518     ac_cpp_err=
15519   fi
15520 else
15521   ac_cpp_err=yes
15522 fi
15523 if test -z "$ac_cpp_err"; then
15524   ac_header_preproc=yes
15525 else
15526   echo "$as_me: failed program was:" >&5
15527 sed 's/^/| /' conftest.$ac_ext >&5
15528
15529   ac_header_preproc=no
15530 fi
15531
15532 rm -f conftest.err conftest.$ac_ext
15533 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15534 echo "${ECHO_T}$ac_header_preproc" >&6; }
15535
15536 # So?  What about this header?
15537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15538   yes:no: )
15539     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15541     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15543     ac_header_preproc=yes
15544     ;;
15545   no:yes:* )
15546     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15548     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15549 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15550     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15552     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15553 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15554     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15556     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15558     ( cat <<\_ASBOX
15559 ## ------------------------------ ##
15560 ## Report this to bugs@yourdomain ##
15561 ## ------------------------------ ##
15562 _ASBOX
15563      ) | sed "s/^/$as_me: WARNING:     /" >&2
15564     ;;
15565 esac
15566 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15569   echo $ECHO_N "(cached) $ECHO_C" >&6
15570 else
15571   eval "$as_ac_Header=\$ac_header_preproc"
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
15577 fi
15578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15579   cat >>confdefs.h <<_ACEOF
15580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15581 _ACEOF
15582  HAVE_PTHREAD=1
15583
15584 else
15585   HAVE_PTHREAD=0
15586
15587 fi
15588
15589 done
15590
15591 else
15592   HAVE_PTHREAD=0
15593
15594 fi
15595
15596 if test "$llvm_cv_enable_libffi" = "yes" ; then
15597
15598
15599 for ac_header in ffi.h ffi/ffi.h
15600 do
15601 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15603   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15606   echo $ECHO_N "(cached) $ECHO_C" >&6
15607 fi
15608 ac_res=`eval echo '${'$as_ac_Header'}'`
15609                { echo "$as_me:$LINENO: result: $ac_res" >&5
15610 echo "${ECHO_T}$ac_res" >&6; }
15611 else
15612   # Is the header compilable?
15613 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15615 cat >conftest.$ac_ext <<_ACEOF
15616 /* confdefs.h.  */
15617 _ACEOF
15618 cat confdefs.h >>conftest.$ac_ext
15619 cat >>conftest.$ac_ext <<_ACEOF
15620 /* end confdefs.h.  */
15621 $ac_includes_default
15622 #include <$ac_header>
15623 _ACEOF
15624 rm -f conftest.$ac_objext
15625 if { (ac_try="$ac_compile"
15626 case "(($ac_try" in
15627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15628   *) ac_try_echo=$ac_try;;
15629 esac
15630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15631   (eval "$ac_compile") 2>conftest.er1
15632   ac_status=$?
15633   grep -v '^ *+' conftest.er1 >conftest.err
15634   rm -f conftest.er1
15635   cat conftest.err >&5
15636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637   (exit $ac_status); } &&
15638          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15639   { (case "(($ac_try" in
15640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15641   *) ac_try_echo=$ac_try;;
15642 esac
15643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15644   (eval "$ac_try") 2>&5
15645   ac_status=$?
15646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647   (exit $ac_status); }; } &&
15648          { ac_try='test -s conftest.$ac_objext'
15649   { (case "(($ac_try" in
15650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15651   *) ac_try_echo=$ac_try;;
15652 esac
15653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15654   (eval "$ac_try") 2>&5
15655   ac_status=$?
15656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657   (exit $ac_status); }; }; then
15658   ac_header_compiler=yes
15659 else
15660   echo "$as_me: failed program was:" >&5
15661 sed 's/^/| /' conftest.$ac_ext >&5
15662
15663         ac_header_compiler=no
15664 fi
15665
15666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15667 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15668 echo "${ECHO_T}$ac_header_compiler" >&6; }
15669
15670 # Is the header present?
15671 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15673 cat >conftest.$ac_ext <<_ACEOF
15674 /* confdefs.h.  */
15675 _ACEOF
15676 cat confdefs.h >>conftest.$ac_ext
15677 cat >>conftest.$ac_ext <<_ACEOF
15678 /* end confdefs.h.  */
15679 #include <$ac_header>
15680 _ACEOF
15681 if { (ac_try="$ac_cpp conftest.$ac_ext"
15682 case "(($ac_try" in
15683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15684   *) ac_try_echo=$ac_try;;
15685 esac
15686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15687   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15688   ac_status=$?
15689   grep -v '^ *+' conftest.er1 >conftest.err
15690   rm -f conftest.er1
15691   cat conftest.err >&5
15692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693   (exit $ac_status); } >/dev/null; then
15694   if test -s conftest.err; then
15695     ac_cpp_err=$ac_c_preproc_warn_flag
15696     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15697   else
15698     ac_cpp_err=
15699   fi
15700 else
15701   ac_cpp_err=yes
15702 fi
15703 if test -z "$ac_cpp_err"; then
15704   ac_header_preproc=yes
15705 else
15706   echo "$as_me: failed program was:" >&5
15707 sed 's/^/| /' conftest.$ac_ext >&5
15708
15709   ac_header_preproc=no
15710 fi
15711
15712 rm -f conftest.err conftest.$ac_ext
15713 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15714 echo "${ECHO_T}$ac_header_preproc" >&6; }
15715
15716 # So?  What about this header?
15717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15718   yes:no: )
15719     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15721     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15722 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15723     ac_header_preproc=yes
15724     ;;
15725   no:yes:* )
15726     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15727 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15728     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15729 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15730     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15731 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15732     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15733 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15734     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15736     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15737 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15738     ( cat <<\_ASBOX
15739 ## ------------------------------ ##
15740 ## Report this to bugs@yourdomain ##
15741 ## ------------------------------ ##
15742 _ASBOX
15743      ) | sed "s/^/$as_me: WARNING:     /" >&2
15744     ;;
15745 esac
15746 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15749   echo $ECHO_N "(cached) $ECHO_C" >&6
15750 else
15751   eval "$as_ac_Header=\$ac_header_preproc"
15752 fi
15753 ac_res=`eval echo '${'$as_ac_Header'}'`
15754                { echo "$as_me:$LINENO: result: $ac_res" >&5
15755 echo "${ECHO_T}$ac_res" >&6; }
15756
15757 fi
15758 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15759   cat >>confdefs.h <<_ACEOF
15760 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15761 _ACEOF
15762
15763 fi
15764
15765 done
15766
15767 fi
15768
15769
15770 for ac_header in CrashReporterClient.h
15771 do
15772 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15774   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15777   echo $ECHO_N "(cached) $ECHO_C" >&6
15778 fi
15779 ac_res=`eval echo '${'$as_ac_Header'}'`
15780                { echo "$as_me:$LINENO: result: $ac_res" >&5
15781 echo "${ECHO_T}$ac_res" >&6; }
15782 else
15783   # Is the header compilable?
15784 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15785 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15786 cat >conftest.$ac_ext <<_ACEOF
15787 /* confdefs.h.  */
15788 _ACEOF
15789 cat confdefs.h >>conftest.$ac_ext
15790 cat >>conftest.$ac_ext <<_ACEOF
15791 /* end confdefs.h.  */
15792 $ac_includes_default
15793 #include <$ac_header>
15794 _ACEOF
15795 rm -f conftest.$ac_objext
15796 if { (ac_try="$ac_compile"
15797 case "(($ac_try" in
15798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15799   *) ac_try_echo=$ac_try;;
15800 esac
15801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15802   (eval "$ac_compile") 2>conftest.er1
15803   ac_status=$?
15804   grep -v '^ *+' conftest.er1 >conftest.err
15805   rm -f conftest.er1
15806   cat conftest.err >&5
15807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808   (exit $ac_status); } &&
15809          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15810   { (case "(($ac_try" in
15811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15812   *) ac_try_echo=$ac_try;;
15813 esac
15814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15815   (eval "$ac_try") 2>&5
15816   ac_status=$?
15817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818   (exit $ac_status); }; } &&
15819          { ac_try='test -s conftest.$ac_objext'
15820   { (case "(($ac_try" in
15821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15822   *) ac_try_echo=$ac_try;;
15823 esac
15824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15825   (eval "$ac_try") 2>&5
15826   ac_status=$?
15827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828   (exit $ac_status); }; }; then
15829   ac_header_compiler=yes
15830 else
15831   echo "$as_me: failed program was:" >&5
15832 sed 's/^/| /' conftest.$ac_ext >&5
15833
15834         ac_header_compiler=no
15835 fi
15836
15837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15838 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15839 echo "${ECHO_T}$ac_header_compiler" >&6; }
15840
15841 # Is the header present?
15842 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15843 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15844 cat >conftest.$ac_ext <<_ACEOF
15845 /* confdefs.h.  */
15846 _ACEOF
15847 cat confdefs.h >>conftest.$ac_ext
15848 cat >>conftest.$ac_ext <<_ACEOF
15849 /* end confdefs.h.  */
15850 #include <$ac_header>
15851 _ACEOF
15852 if { (ac_try="$ac_cpp conftest.$ac_ext"
15853 case "(($ac_try" in
15854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15855   *) ac_try_echo=$ac_try;;
15856 esac
15857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15858   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15859   ac_status=$?
15860   grep -v '^ *+' conftest.er1 >conftest.err
15861   rm -f conftest.er1
15862   cat conftest.err >&5
15863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864   (exit $ac_status); } >/dev/null; then
15865   if test -s conftest.err; then
15866     ac_cpp_err=$ac_c_preproc_warn_flag
15867     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15868   else
15869     ac_cpp_err=
15870   fi
15871 else
15872   ac_cpp_err=yes
15873 fi
15874 if test -z "$ac_cpp_err"; then
15875   ac_header_preproc=yes
15876 else
15877   echo "$as_me: failed program was:" >&5
15878 sed 's/^/| /' conftest.$ac_ext >&5
15879
15880   ac_header_preproc=no
15881 fi
15882
15883 rm -f conftest.err conftest.$ac_ext
15884 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15885 echo "${ECHO_T}$ac_header_preproc" >&6; }
15886
15887 # So?  What about this header?
15888 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15889   yes:no: )
15890     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15891 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15892     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15893 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15894     ac_header_preproc=yes
15895     ;;
15896   no:yes:* )
15897     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15898 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15899     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15900 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15901     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15902 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15903     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15904 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15905     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15906 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15907     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15908 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15909     ( cat <<\_ASBOX
15910 ## ------------------------------ ##
15911 ## Report this to bugs@yourdomain ##
15912 ## ------------------------------ ##
15913 _ASBOX
15914      ) | sed "s/^/$as_me: WARNING:     /" >&2
15915     ;;
15916 esac
15917 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15920   echo $ECHO_N "(cached) $ECHO_C" >&6
15921 else
15922   eval "$as_ac_Header=\$ac_header_preproc"
15923 fi
15924 ac_res=`eval echo '${'$as_ac_Header'}'`
15925                { echo "$as_me:$LINENO: result: $ac_res" >&5
15926 echo "${ECHO_T}$ac_res" >&6; }
15927
15928 fi
15929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15930   cat >>confdefs.h <<_ACEOF
15931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15932 _ACEOF
15933
15934 fi
15935
15936 done
15937
15938
15939 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15940 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15941 cat >conftest.$ac_ext <<_ACEOF
15942 /* confdefs.h.  */
15943 _ACEOF
15944 cat confdefs.h >>conftest.$ac_ext
15945 cat >>conftest.$ac_ext <<_ACEOF
15946 /* end confdefs.h.  */
15947 extern const char *__crashreporter_info__;
15948       int main() {
15949         __crashreporter_info__ = "test";
15950         return 0;
15951       }
15952
15953 _ACEOF
15954 rm -f conftest.$ac_objext conftest$ac_exeext
15955 if { (ac_try="$ac_link"
15956 case "(($ac_try" in
15957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15958   *) ac_try_echo=$ac_try;;
15959 esac
15960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15961   (eval "$ac_link") 2>conftest.er1
15962   ac_status=$?
15963   grep -v '^ *+' conftest.er1 >conftest.err
15964   rm -f conftest.er1
15965   cat conftest.err >&5
15966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967   (exit $ac_status); } &&
15968          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15969   { (case "(($ac_try" in
15970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15971   *) ac_try_echo=$ac_try;;
15972 esac
15973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15974   (eval "$ac_try") 2>&5
15975   ac_status=$?
15976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977   (exit $ac_status); }; } &&
15978          { ac_try='test -s conftest$ac_exeext'
15979   { (case "(($ac_try" in
15980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15981   *) ac_try_echo=$ac_try;;
15982 esac
15983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15984   (eval "$ac_try") 2>&5
15985   ac_status=$?
15986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987   (exit $ac_status); }; }; then
15988   { echo "$as_me:$LINENO: result: yes" >&5
15989 echo "${ECHO_T}yes" >&6; }
15990
15991 cat >>confdefs.h <<\_ACEOF
15992 #define HAVE_CRASHREPORTER_INFO 1
15993 _ACEOF
15994
15995 else
15996   echo "$as_me: failed program was:" >&5
15997 sed 's/^/| /' conftest.$ac_ext >&5
15998
15999         { echo "$as_me:$LINENO: result: no" >&5
16000 echo "${ECHO_T}no" >&6; }
16001
16002 cat >>confdefs.h <<\_ACEOF
16003 #define HAVE_CRASHREPORTER_INFO 0
16004 _ACEOF
16005
16006 fi
16007
16008 rm -f core conftest.err conftest.$ac_objext \
16009       conftest$ac_exeext conftest.$ac_ext
16010
16011
16012
16013
16014   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16015 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16016 if test "${ac_cv_huge_val_sanity+set}" = set; then
16017   echo $ECHO_N "(cached) $ECHO_C" >&6
16018 else
16019
16020     ac_ext=cpp
16021 ac_cpp='$CXXCPP $CPPFLAGS'
16022 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16023 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16024 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16025
16026     ac_save_CXXFLAGS=$CXXFLAGS
16027     CXXFLAGS=-pedantic
16028     if test "$cross_compiling" = yes; then
16029   ac_cv_huge_val_sanity=yes
16030 else
16031   cat >conftest.$ac_ext <<_ACEOF
16032 /* confdefs.h.  */
16033 _ACEOF
16034 cat confdefs.h >>conftest.$ac_ext
16035 cat >>conftest.$ac_ext <<_ACEOF
16036 /* end confdefs.h.  */
16037 #include <math.h>
16038 int
16039 main ()
16040 {
16041 double x = HUGE_VAL; return x != x;
16042   ;
16043   return 0;
16044 }
16045 _ACEOF
16046 rm -f conftest$ac_exeext
16047 if { (ac_try="$ac_link"
16048 case "(($ac_try" in
16049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16050   *) ac_try_echo=$ac_try;;
16051 esac
16052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16053   (eval "$ac_link") 2>&5
16054   ac_status=$?
16055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16057   { (case "(($ac_try" in
16058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16059   *) ac_try_echo=$ac_try;;
16060 esac
16061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16062   (eval "$ac_try") 2>&5
16063   ac_status=$?
16064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065   (exit $ac_status); }; }; then
16066   ac_cv_huge_val_sanity=yes
16067 else
16068   echo "$as_me: program exited with status $ac_status" >&5
16069 echo "$as_me: failed program was:" >&5
16070 sed 's/^/| /' conftest.$ac_ext >&5
16071
16072 ( exit $ac_status )
16073 ac_cv_huge_val_sanity=no
16074 fi
16075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16076 fi
16077
16078
16079     CXXFLAGS=$ac_save_CXXFLAGS
16080     ac_ext=c
16081 ac_cpp='$CPP $CPPFLAGS'
16082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16085
16086
16087 fi
16088 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16089 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16090   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16091
16092
16093 { echo "$as_me:$LINENO: checking for pid_t" >&5
16094 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16095 if test "${ac_cv_type_pid_t+set}" = set; then
16096   echo $ECHO_N "(cached) $ECHO_C" >&6
16097 else
16098   cat >conftest.$ac_ext <<_ACEOF
16099 /* confdefs.h.  */
16100 _ACEOF
16101 cat confdefs.h >>conftest.$ac_ext
16102 cat >>conftest.$ac_ext <<_ACEOF
16103 /* end confdefs.h.  */
16104 $ac_includes_default
16105 typedef pid_t ac__type_new_;
16106 int
16107 main ()
16108 {
16109 if ((ac__type_new_ *) 0)
16110   return 0;
16111 if (sizeof (ac__type_new_))
16112   return 0;
16113   ;
16114   return 0;
16115 }
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_cv_type_pid_t=yes
16152 else
16153   echo "$as_me: failed program was:" >&5
16154 sed 's/^/| /' conftest.$ac_ext >&5
16155
16156         ac_cv_type_pid_t=no
16157 fi
16158
16159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16160 fi
16161 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16162 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16163 if test $ac_cv_type_pid_t = yes; then
16164   :
16165 else
16166
16167 cat >>confdefs.h <<_ACEOF
16168 #define pid_t int
16169 _ACEOF
16170
16171 fi
16172
16173 { echo "$as_me:$LINENO: checking for size_t" >&5
16174 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16175 if test "${ac_cv_type_size_t+set}" = set; then
16176   echo $ECHO_N "(cached) $ECHO_C" >&6
16177 else
16178   cat >conftest.$ac_ext <<_ACEOF
16179 /* confdefs.h.  */
16180 _ACEOF
16181 cat confdefs.h >>conftest.$ac_ext
16182 cat >>conftest.$ac_ext <<_ACEOF
16183 /* end confdefs.h.  */
16184 $ac_includes_default
16185 typedef size_t ac__type_new_;
16186 int
16187 main ()
16188 {
16189 if ((ac__type_new_ *) 0)
16190   return 0;
16191 if (sizeof (ac__type_new_))
16192   return 0;
16193   ;
16194   return 0;
16195 }
16196 _ACEOF
16197 rm -f conftest.$ac_objext
16198 if { (ac_try="$ac_compile"
16199 case "(($ac_try" in
16200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16201   *) ac_try_echo=$ac_try;;
16202 esac
16203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16204   (eval "$ac_compile") 2>conftest.er1
16205   ac_status=$?
16206   grep -v '^ *+' conftest.er1 >conftest.err
16207   rm -f conftest.er1
16208   cat conftest.err >&5
16209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210   (exit $ac_status); } &&
16211          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16212   { (case "(($ac_try" in
16213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16214   *) ac_try_echo=$ac_try;;
16215 esac
16216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16217   (eval "$ac_try") 2>&5
16218   ac_status=$?
16219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220   (exit $ac_status); }; } &&
16221          { ac_try='test -s conftest.$ac_objext'
16222   { (case "(($ac_try" in
16223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16224   *) ac_try_echo=$ac_try;;
16225 esac
16226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16227   (eval "$ac_try") 2>&5
16228   ac_status=$?
16229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230   (exit $ac_status); }; }; then
16231   ac_cv_type_size_t=yes
16232 else
16233   echo "$as_me: failed program was:" >&5
16234 sed 's/^/| /' conftest.$ac_ext >&5
16235
16236         ac_cv_type_size_t=no
16237 fi
16238
16239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16240 fi
16241 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16242 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16243 if test $ac_cv_type_size_t = yes; then
16244   :
16245 else
16246
16247 cat >>confdefs.h <<_ACEOF
16248 #define size_t unsigned int
16249 _ACEOF
16250
16251 fi
16252
16253
16254 cat >>confdefs.h <<_ACEOF
16255 #define RETSIGTYPE void
16256 _ACEOF
16257
16258 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16259 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16260 if test "${ac_cv_struct_tm+set}" = set; then
16261   echo $ECHO_N "(cached) $ECHO_C" >&6
16262 else
16263   cat >conftest.$ac_ext <<_ACEOF
16264 /* confdefs.h.  */
16265 _ACEOF
16266 cat confdefs.h >>conftest.$ac_ext
16267 cat >>conftest.$ac_ext <<_ACEOF
16268 /* end confdefs.h.  */
16269 #include <sys/types.h>
16270 #include <time.h>
16271
16272 int
16273 main ()
16274 {
16275 struct tm *tp; tp->tm_sec;
16276   ;
16277   return 0;
16278 }
16279 _ACEOF
16280 rm -f conftest.$ac_objext
16281 if { (ac_try="$ac_compile"
16282 case "(($ac_try" in
16283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16284   *) ac_try_echo=$ac_try;;
16285 esac
16286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16287   (eval "$ac_compile") 2>conftest.er1
16288   ac_status=$?
16289   grep -v '^ *+' conftest.er1 >conftest.err
16290   rm -f conftest.er1
16291   cat conftest.err >&5
16292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293   (exit $ac_status); } &&
16294          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16295   { (case "(($ac_try" in
16296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16297   *) ac_try_echo=$ac_try;;
16298 esac
16299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16300   (eval "$ac_try") 2>&5
16301   ac_status=$?
16302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303   (exit $ac_status); }; } &&
16304          { ac_try='test -s conftest.$ac_objext'
16305   { (case "(($ac_try" in
16306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16307   *) ac_try_echo=$ac_try;;
16308 esac
16309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16310   (eval "$ac_try") 2>&5
16311   ac_status=$?
16312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313   (exit $ac_status); }; }; then
16314   ac_cv_struct_tm=time.h
16315 else
16316   echo "$as_me: failed program was:" >&5
16317 sed 's/^/| /' conftest.$ac_ext >&5
16318
16319         ac_cv_struct_tm=sys/time.h
16320 fi
16321
16322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16323 fi
16324 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16325 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16326 if test $ac_cv_struct_tm = sys/time.h; then
16327
16328 cat >>confdefs.h <<\_ACEOF
16329 #define TM_IN_SYS_TIME 1
16330 _ACEOF
16331
16332 fi
16333
16334 { echo "$as_me:$LINENO: checking for int64_t" >&5
16335 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16336 if test "${ac_cv_type_int64_t+set}" = set; then
16337   echo $ECHO_N "(cached) $ECHO_C" >&6
16338 else
16339   cat >conftest.$ac_ext <<_ACEOF
16340 /* confdefs.h.  */
16341 _ACEOF
16342 cat confdefs.h >>conftest.$ac_ext
16343 cat >>conftest.$ac_ext <<_ACEOF
16344 /* end confdefs.h.  */
16345 $ac_includes_default
16346 typedef int64_t ac__type_new_;
16347 int
16348 main ()
16349 {
16350 if ((ac__type_new_ *) 0)
16351   return 0;
16352 if (sizeof (ac__type_new_))
16353   return 0;
16354   ;
16355   return 0;
16356 }
16357 _ACEOF
16358 rm -f conftest.$ac_objext
16359 if { (ac_try="$ac_compile"
16360 case "(($ac_try" in
16361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16362   *) ac_try_echo=$ac_try;;
16363 esac
16364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16365   (eval "$ac_compile") 2>conftest.er1
16366   ac_status=$?
16367   grep -v '^ *+' conftest.er1 >conftest.err
16368   rm -f conftest.er1
16369   cat conftest.err >&5
16370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371   (exit $ac_status); } &&
16372          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16373   { (case "(($ac_try" in
16374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16375   *) ac_try_echo=$ac_try;;
16376 esac
16377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16378   (eval "$ac_try") 2>&5
16379   ac_status=$?
16380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381   (exit $ac_status); }; } &&
16382          { ac_try='test -s conftest.$ac_objext'
16383   { (case "(($ac_try" in
16384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16385   *) ac_try_echo=$ac_try;;
16386 esac
16387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16388   (eval "$ac_try") 2>&5
16389   ac_status=$?
16390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391   (exit $ac_status); }; }; then
16392   ac_cv_type_int64_t=yes
16393 else
16394   echo "$as_me: failed program was:" >&5
16395 sed 's/^/| /' conftest.$ac_ext >&5
16396
16397         ac_cv_type_int64_t=no
16398 fi
16399
16400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16401 fi
16402 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16403 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16404 if test $ac_cv_type_int64_t = yes; then
16405
16406 cat >>confdefs.h <<_ACEOF
16407 #define HAVE_INT64_T 1
16408 _ACEOF
16409
16410
16411 else
16412   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16413 echo "$as_me: error: Type int64_t required but not found" >&2;}
16414    { (exit 1); exit 1; }; }
16415 fi
16416
16417 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16418 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16419 if test "${ac_cv_type_uint64_t+set}" = set; then
16420   echo $ECHO_N "(cached) $ECHO_C" >&6
16421 else
16422   cat >conftest.$ac_ext <<_ACEOF
16423 /* confdefs.h.  */
16424 _ACEOF
16425 cat confdefs.h >>conftest.$ac_ext
16426 cat >>conftest.$ac_ext <<_ACEOF
16427 /* end confdefs.h.  */
16428 $ac_includes_default
16429 typedef uint64_t ac__type_new_;
16430 int
16431 main ()
16432 {
16433 if ((ac__type_new_ *) 0)
16434   return 0;
16435 if (sizeof (ac__type_new_))
16436   return 0;
16437   ;
16438   return 0;
16439 }
16440 _ACEOF
16441 rm -f conftest.$ac_objext
16442 if { (ac_try="$ac_compile"
16443 case "(($ac_try" in
16444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16445   *) ac_try_echo=$ac_try;;
16446 esac
16447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16448   (eval "$ac_compile") 2>conftest.er1
16449   ac_status=$?
16450   grep -v '^ *+' conftest.er1 >conftest.err
16451   rm -f conftest.er1
16452   cat conftest.err >&5
16453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454   (exit $ac_status); } &&
16455          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16456   { (case "(($ac_try" in
16457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16458   *) ac_try_echo=$ac_try;;
16459 esac
16460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16461   (eval "$ac_try") 2>&5
16462   ac_status=$?
16463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464   (exit $ac_status); }; } &&
16465          { ac_try='test -s conftest.$ac_objext'
16466   { (case "(($ac_try" in
16467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16468   *) ac_try_echo=$ac_try;;
16469 esac
16470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16471   (eval "$ac_try") 2>&5
16472   ac_status=$?
16473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474   (exit $ac_status); }; }; then
16475   ac_cv_type_uint64_t=yes
16476 else
16477   echo "$as_me: failed program was:" >&5
16478 sed 's/^/| /' conftest.$ac_ext >&5
16479
16480         ac_cv_type_uint64_t=no
16481 fi
16482
16483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16484 fi
16485 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16486 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16487 if test $ac_cv_type_uint64_t = yes; then
16488
16489 cat >>confdefs.h <<_ACEOF
16490 #define HAVE_UINT64_T 1
16491 _ACEOF
16492
16493
16494 else
16495   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16496 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16497 if test "${ac_cv_type_u_int64_t+set}" = set; then
16498   echo $ECHO_N "(cached) $ECHO_C" >&6
16499 else
16500   cat >conftest.$ac_ext <<_ACEOF
16501 /* confdefs.h.  */
16502 _ACEOF
16503 cat confdefs.h >>conftest.$ac_ext
16504 cat >>conftest.$ac_ext <<_ACEOF
16505 /* end confdefs.h.  */
16506 $ac_includes_default
16507 typedef u_int64_t ac__type_new_;
16508 int
16509 main ()
16510 {
16511 if ((ac__type_new_ *) 0)
16512   return 0;
16513 if (sizeof (ac__type_new_))
16514   return 0;
16515   ;
16516   return 0;
16517 }
16518 _ACEOF
16519 rm -f conftest.$ac_objext
16520 if { (ac_try="$ac_compile"
16521 case "(($ac_try" in
16522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523   *) ac_try_echo=$ac_try;;
16524 esac
16525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16526   (eval "$ac_compile") 2>conftest.er1
16527   ac_status=$?
16528   grep -v '^ *+' conftest.er1 >conftest.err
16529   rm -f conftest.er1
16530   cat conftest.err >&5
16531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532   (exit $ac_status); } &&
16533          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16534   { (case "(($ac_try" in
16535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16536   *) ac_try_echo=$ac_try;;
16537 esac
16538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16539   (eval "$ac_try") 2>&5
16540   ac_status=$?
16541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542   (exit $ac_status); }; } &&
16543          { ac_try='test -s conftest.$ac_objext'
16544   { (case "(($ac_try" in
16545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16546   *) ac_try_echo=$ac_try;;
16547 esac
16548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16549   (eval "$ac_try") 2>&5
16550   ac_status=$?
16551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552   (exit $ac_status); }; }; then
16553   ac_cv_type_u_int64_t=yes
16554 else
16555   echo "$as_me: failed program was:" >&5
16556 sed 's/^/| /' conftest.$ac_ext >&5
16557
16558         ac_cv_type_u_int64_t=no
16559 fi
16560
16561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16562 fi
16563 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16564 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16565 if test $ac_cv_type_u_int64_t = yes; then
16566
16567 cat >>confdefs.h <<_ACEOF
16568 #define HAVE_U_INT64_T 1
16569 _ACEOF
16570
16571
16572 else
16573   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16574 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16575    { (exit 1); exit 1; }; }
16576 fi
16577
16578 fi
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16590 do
16591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16592 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16594 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16595   echo $ECHO_N "(cached) $ECHO_C" >&6
16596 else
16597   cat >conftest.$ac_ext <<_ACEOF
16598 /* confdefs.h.  */
16599 _ACEOF
16600 cat confdefs.h >>conftest.$ac_ext
16601 cat >>conftest.$ac_ext <<_ACEOF
16602 /* end confdefs.h.  */
16603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16604    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16605 #define $ac_func innocuous_$ac_func
16606
16607 /* System header to define __stub macros and hopefully few prototypes,
16608     which can conflict with char $ac_func (); below.
16609     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16610     <limits.h> exists even on freestanding compilers.  */
16611
16612 #ifdef __STDC__
16613 # include <limits.h>
16614 #else
16615 # include <assert.h>
16616 #endif
16617
16618 #undef $ac_func
16619
16620 /* Override any GCC internal prototype to avoid an error.
16621    Use char because int might match the return type of a GCC
16622    builtin and then its argument prototype would still apply.  */
16623 #ifdef __cplusplus
16624 extern "C"
16625 #endif
16626 char $ac_func ();
16627 /* The GNU C library defines this for functions which it implements
16628     to always fail with ENOSYS.  Some functions are actually named
16629     something starting with __ and the normal name is an alias.  */
16630 #if defined __stub_$ac_func || defined __stub___$ac_func
16631 choke me
16632 #endif
16633
16634 int
16635 main ()
16636 {
16637 return $ac_func ();
16638   ;
16639   return 0;
16640 }
16641 _ACEOF
16642 rm -f conftest.$ac_objext conftest$ac_exeext
16643 if { (ac_try="$ac_link"
16644 case "(($ac_try" in
16645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16646   *) ac_try_echo=$ac_try;;
16647 esac
16648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16649   (eval "$ac_link") 2>conftest.er1
16650   ac_status=$?
16651   grep -v '^ *+' conftest.er1 >conftest.err
16652   rm -f conftest.er1
16653   cat conftest.err >&5
16654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655   (exit $ac_status); } &&
16656          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16657   { (case "(($ac_try" in
16658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16659   *) ac_try_echo=$ac_try;;
16660 esac
16661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16662   (eval "$ac_try") 2>&5
16663   ac_status=$?
16664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665   (exit $ac_status); }; } &&
16666          { ac_try='test -s conftest$ac_exeext'
16667   { (case "(($ac_try" in
16668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16669   *) ac_try_echo=$ac_try;;
16670 esac
16671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16672   (eval "$ac_try") 2>&5
16673   ac_status=$?
16674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675   (exit $ac_status); }; }; then
16676   eval "$as_ac_var=yes"
16677 else
16678   echo "$as_me: failed program was:" >&5
16679 sed 's/^/| /' conftest.$ac_ext >&5
16680
16681         eval "$as_ac_var=no"
16682 fi
16683
16684 rm -f core conftest.err conftest.$ac_objext \
16685       conftest$ac_exeext conftest.$ac_ext
16686 fi
16687 ac_res=`eval echo '${'$as_ac_var'}'`
16688                { echo "$as_me:$LINENO: result: $ac_res" >&5
16689 echo "${ECHO_T}$ac_res" >&6; }
16690 if test `eval echo '${'$as_ac_var'}'` = yes; then
16691   cat >>confdefs.h <<_ACEOF
16692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16693 _ACEOF
16694
16695 fi
16696 done
16697
16698
16699
16700
16701
16702 for ac_func in powf fmodf strtof round
16703 do
16704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16705 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16707 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16708   echo $ECHO_N "(cached) $ECHO_C" >&6
16709 else
16710   cat >conftest.$ac_ext <<_ACEOF
16711 /* confdefs.h.  */
16712 _ACEOF
16713 cat confdefs.h >>conftest.$ac_ext
16714 cat >>conftest.$ac_ext <<_ACEOF
16715 /* end confdefs.h.  */
16716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16717    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16718 #define $ac_func innocuous_$ac_func
16719
16720 /* System header to define __stub macros and hopefully few prototypes,
16721     which can conflict with char $ac_func (); below.
16722     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16723     <limits.h> exists even on freestanding compilers.  */
16724
16725 #ifdef __STDC__
16726 # include <limits.h>
16727 #else
16728 # include <assert.h>
16729 #endif
16730
16731 #undef $ac_func
16732
16733 /* Override any GCC internal prototype to avoid an error.
16734    Use char because int might match the return type of a GCC
16735    builtin and then its argument prototype would still apply.  */
16736 #ifdef __cplusplus
16737 extern "C"
16738 #endif
16739 char $ac_func ();
16740 /* The GNU C library defines this for functions which it implements
16741     to always fail with ENOSYS.  Some functions are actually named
16742     something starting with __ and the normal name is an alias.  */
16743 #if defined __stub_$ac_func || defined __stub___$ac_func
16744 choke me
16745 #endif
16746
16747 int
16748 main ()
16749 {
16750 return $ac_func ();
16751   ;
16752   return 0;
16753 }
16754 _ACEOF
16755 rm -f conftest.$ac_objext conftest$ac_exeext
16756 if { (ac_try="$ac_link"
16757 case "(($ac_try" in
16758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16759   *) ac_try_echo=$ac_try;;
16760 esac
16761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16762   (eval "$ac_link") 2>conftest.er1
16763   ac_status=$?
16764   grep -v '^ *+' conftest.er1 >conftest.err
16765   rm -f conftest.er1
16766   cat conftest.err >&5
16767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768   (exit $ac_status); } &&
16769          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16770   { (case "(($ac_try" in
16771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16772   *) ac_try_echo=$ac_try;;
16773 esac
16774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16775   (eval "$ac_try") 2>&5
16776   ac_status=$?
16777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778   (exit $ac_status); }; } &&
16779          { ac_try='test -s conftest$ac_exeext'
16780   { (case "(($ac_try" in
16781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16782   *) ac_try_echo=$ac_try;;
16783 esac
16784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16785   (eval "$ac_try") 2>&5
16786   ac_status=$?
16787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788   (exit $ac_status); }; }; then
16789   eval "$as_ac_var=yes"
16790 else
16791   echo "$as_me: failed program was:" >&5
16792 sed 's/^/| /' conftest.$ac_ext >&5
16793
16794         eval "$as_ac_var=no"
16795 fi
16796
16797 rm -f core conftest.err conftest.$ac_objext \
16798       conftest$ac_exeext conftest.$ac_ext
16799 fi
16800 ac_res=`eval echo '${'$as_ac_var'}'`
16801                { echo "$as_me:$LINENO: result: $ac_res" >&5
16802 echo "${ECHO_T}$ac_res" >&6; }
16803 if test `eval echo '${'$as_ac_var'}'` = yes; then
16804   cat >>confdefs.h <<_ACEOF
16805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16806 _ACEOF
16807
16808 fi
16809 done
16810
16811
16812
16813
16814
16815
16816 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16817 do
16818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16819 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16821 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16822   echo $ECHO_N "(cached) $ECHO_C" >&6
16823 else
16824   cat >conftest.$ac_ext <<_ACEOF
16825 /* confdefs.h.  */
16826 _ACEOF
16827 cat confdefs.h >>conftest.$ac_ext
16828 cat >>conftest.$ac_ext <<_ACEOF
16829 /* end confdefs.h.  */
16830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16831    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16832 #define $ac_func innocuous_$ac_func
16833
16834 /* System header to define __stub macros and hopefully few prototypes,
16835     which can conflict with char $ac_func (); below.
16836     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16837     <limits.h> exists even on freestanding compilers.  */
16838
16839 #ifdef __STDC__
16840 # include <limits.h>
16841 #else
16842 # include <assert.h>
16843 #endif
16844
16845 #undef $ac_func
16846
16847 /* Override any GCC internal prototype to avoid an error.
16848    Use char because int might match the return type of a GCC
16849    builtin and then its argument prototype would still apply.  */
16850 #ifdef __cplusplus
16851 extern "C"
16852 #endif
16853 char $ac_func ();
16854 /* The GNU C library defines this for functions which it implements
16855     to always fail with ENOSYS.  Some functions are actually named
16856     something starting with __ and the normal name is an alias.  */
16857 #if defined __stub_$ac_func || defined __stub___$ac_func
16858 choke me
16859 #endif
16860
16861 int
16862 main ()
16863 {
16864 return $ac_func ();
16865   ;
16866   return 0;
16867 }
16868 _ACEOF
16869 rm -f conftest.$ac_objext conftest$ac_exeext
16870 if { (ac_try="$ac_link"
16871 case "(($ac_try" in
16872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16873   *) ac_try_echo=$ac_try;;
16874 esac
16875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16876   (eval "$ac_link") 2>conftest.er1
16877   ac_status=$?
16878   grep -v '^ *+' conftest.er1 >conftest.err
16879   rm -f conftest.er1
16880   cat conftest.err >&5
16881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882   (exit $ac_status); } &&
16883          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16884   { (case "(($ac_try" in
16885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16886   *) ac_try_echo=$ac_try;;
16887 esac
16888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16889   (eval "$ac_try") 2>&5
16890   ac_status=$?
16891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892   (exit $ac_status); }; } &&
16893          { ac_try='test -s conftest$ac_exeext'
16894   { (case "(($ac_try" in
16895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896   *) ac_try_echo=$ac_try;;
16897 esac
16898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899   (eval "$ac_try") 2>&5
16900   ac_status=$?
16901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902   (exit $ac_status); }; }; then
16903   eval "$as_ac_var=yes"
16904 else
16905   echo "$as_me: failed program was:" >&5
16906 sed 's/^/| /' conftest.$ac_ext >&5
16907
16908         eval "$as_ac_var=no"
16909 fi
16910
16911 rm -f core conftest.err conftest.$ac_objext \
16912       conftest$ac_exeext conftest.$ac_ext
16913 fi
16914 ac_res=`eval echo '${'$as_ac_var'}'`
16915                { echo "$as_me:$LINENO: result: $ac_res" >&5
16916 echo "${ECHO_T}$ac_res" >&6; }
16917 if test `eval echo '${'$as_ac_var'}'` = yes; then
16918   cat >>confdefs.h <<_ACEOF
16919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16920 _ACEOF
16921
16922 fi
16923 done
16924
16925
16926
16927
16928 for ac_func in isatty mkdtemp mkstemp
16929 do
16930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16931 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16933 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16934   echo $ECHO_N "(cached) $ECHO_C" >&6
16935 else
16936   cat >conftest.$ac_ext <<_ACEOF
16937 /* confdefs.h.  */
16938 _ACEOF
16939 cat confdefs.h >>conftest.$ac_ext
16940 cat >>conftest.$ac_ext <<_ACEOF
16941 /* end confdefs.h.  */
16942 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16943    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16944 #define $ac_func innocuous_$ac_func
16945
16946 /* System header to define __stub macros and hopefully few prototypes,
16947     which can conflict with char $ac_func (); below.
16948     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16949     <limits.h> exists even on freestanding compilers.  */
16950
16951 #ifdef __STDC__
16952 # include <limits.h>
16953 #else
16954 # include <assert.h>
16955 #endif
16956
16957 #undef $ac_func
16958
16959 /* Override any GCC internal prototype to avoid an error.
16960    Use char because int might match the return type of a GCC
16961    builtin and then its argument prototype would still apply.  */
16962 #ifdef __cplusplus
16963 extern "C"
16964 #endif
16965 char $ac_func ();
16966 /* The GNU C library defines this for functions which it implements
16967     to always fail with ENOSYS.  Some functions are actually named
16968     something starting with __ and the normal name is an alias.  */
16969 #if defined __stub_$ac_func || defined __stub___$ac_func
16970 choke me
16971 #endif
16972
16973 int
16974 main ()
16975 {
16976 return $ac_func ();
16977   ;
16978   return 0;
16979 }
16980 _ACEOF
16981 rm -f conftest.$ac_objext conftest$ac_exeext
16982 if { (ac_try="$ac_link"
16983 case "(($ac_try" in
16984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16985   *) ac_try_echo=$ac_try;;
16986 esac
16987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16988   (eval "$ac_link") 2>conftest.er1
16989   ac_status=$?
16990   grep -v '^ *+' conftest.er1 >conftest.err
16991   rm -f conftest.er1
16992   cat conftest.err >&5
16993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994   (exit $ac_status); } &&
16995          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16996   { (case "(($ac_try" in
16997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16998   *) ac_try_echo=$ac_try;;
16999 esac
17000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17001   (eval "$ac_try") 2>&5
17002   ac_status=$?
17003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004   (exit $ac_status); }; } &&
17005          { ac_try='test -s conftest$ac_exeext'
17006   { (case "(($ac_try" in
17007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008   *) ac_try_echo=$ac_try;;
17009 esac
17010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011   (eval "$ac_try") 2>&5
17012   ac_status=$?
17013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014   (exit $ac_status); }; }; then
17015   eval "$as_ac_var=yes"
17016 else
17017   echo "$as_me: failed program was:" >&5
17018 sed 's/^/| /' conftest.$ac_ext >&5
17019
17020         eval "$as_ac_var=no"
17021 fi
17022
17023 rm -f core conftest.err conftest.$ac_objext \
17024       conftest$ac_exeext conftest.$ac_ext
17025 fi
17026 ac_res=`eval echo '${'$as_ac_var'}'`
17027                { echo "$as_me:$LINENO: result: $ac_res" >&5
17028 echo "${ECHO_T}$ac_res" >&6; }
17029 if test `eval echo '${'$as_ac_var'}'` = yes; then
17030   cat >>confdefs.h <<_ACEOF
17031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17032 _ACEOF
17033
17034 fi
17035 done
17036
17037
17038
17039
17040
17041
17042
17043 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17044 do
17045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17046 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17048 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17049   echo $ECHO_N "(cached) $ECHO_C" >&6
17050 else
17051   cat >conftest.$ac_ext <<_ACEOF
17052 /* confdefs.h.  */
17053 _ACEOF
17054 cat confdefs.h >>conftest.$ac_ext
17055 cat >>conftest.$ac_ext <<_ACEOF
17056 /* end confdefs.h.  */
17057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17058    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17059 #define $ac_func innocuous_$ac_func
17060
17061 /* System header to define __stub macros and hopefully few prototypes,
17062     which can conflict with char $ac_func (); below.
17063     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17064     <limits.h> exists even on freestanding compilers.  */
17065
17066 #ifdef __STDC__
17067 # include <limits.h>
17068 #else
17069 # include <assert.h>
17070 #endif
17071
17072 #undef $ac_func
17073
17074 /* Override any GCC internal prototype to avoid an error.
17075    Use char because int might match the return type of a GCC
17076    builtin and then its argument prototype would still apply.  */
17077 #ifdef __cplusplus
17078 extern "C"
17079 #endif
17080 char $ac_func ();
17081 /* The GNU C library defines this for functions which it implements
17082     to always fail with ENOSYS.  Some functions are actually named
17083     something starting with __ and the normal name is an alias.  */
17084 #if defined __stub_$ac_func || defined __stub___$ac_func
17085 choke me
17086 #endif
17087
17088 int
17089 main ()
17090 {
17091 return $ac_func ();
17092   ;
17093   return 0;
17094 }
17095 _ACEOF
17096 rm -f conftest.$ac_objext conftest$ac_exeext
17097 if { (ac_try="$ac_link"
17098 case "(($ac_try" in
17099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17100   *) ac_try_echo=$ac_try;;
17101 esac
17102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17103   (eval "$ac_link") 2>conftest.er1
17104   ac_status=$?
17105   grep -v '^ *+' conftest.er1 >conftest.err
17106   rm -f conftest.er1
17107   cat conftest.err >&5
17108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109   (exit $ac_status); } &&
17110          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17111   { (case "(($ac_try" in
17112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17113   *) ac_try_echo=$ac_try;;
17114 esac
17115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17116   (eval "$ac_try") 2>&5
17117   ac_status=$?
17118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119   (exit $ac_status); }; } &&
17120          { ac_try='test -s conftest$ac_exeext'
17121   { (case "(($ac_try" in
17122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17123   *) ac_try_echo=$ac_try;;
17124 esac
17125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17126   (eval "$ac_try") 2>&5
17127   ac_status=$?
17128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129   (exit $ac_status); }; }; then
17130   eval "$as_ac_var=yes"
17131 else
17132   echo "$as_me: failed program was:" >&5
17133 sed 's/^/| /' conftest.$ac_ext >&5
17134
17135         eval "$as_ac_var=no"
17136 fi
17137
17138 rm -f core conftest.err conftest.$ac_objext \
17139       conftest$ac_exeext conftest.$ac_ext
17140 fi
17141 ac_res=`eval echo '${'$as_ac_var'}'`
17142                { echo "$as_me:$LINENO: result: $ac_res" >&5
17143 echo "${ECHO_T}$ac_res" >&6; }
17144 if test `eval echo '${'$as_ac_var'}'` = yes; then
17145   cat >>confdefs.h <<_ACEOF
17146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17147 _ACEOF
17148
17149 fi
17150 done
17151
17152
17153
17154
17155 for ac_func in strerror strerror_r setenv
17156 do
17157 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17158 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17160 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17161   echo $ECHO_N "(cached) $ECHO_C" >&6
17162 else
17163   cat >conftest.$ac_ext <<_ACEOF
17164 /* confdefs.h.  */
17165 _ACEOF
17166 cat confdefs.h >>conftest.$ac_ext
17167 cat >>conftest.$ac_ext <<_ACEOF
17168 /* end confdefs.h.  */
17169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17170    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17171 #define $ac_func innocuous_$ac_func
17172
17173 /* System header to define __stub macros and hopefully few prototypes,
17174     which can conflict with char $ac_func (); below.
17175     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17176     <limits.h> exists even on freestanding compilers.  */
17177
17178 #ifdef __STDC__
17179 # include <limits.h>
17180 #else
17181 # include <assert.h>
17182 #endif
17183
17184 #undef $ac_func
17185
17186 /* Override any GCC internal prototype to avoid an error.
17187    Use char because int might match the return type of a GCC
17188    builtin and then its argument prototype would still apply.  */
17189 #ifdef __cplusplus
17190 extern "C"
17191 #endif
17192 char $ac_func ();
17193 /* The GNU C library defines this for functions which it implements
17194     to always fail with ENOSYS.  Some functions are actually named
17195     something starting with __ and the normal name is an alias.  */
17196 #if defined __stub_$ac_func || defined __stub___$ac_func
17197 choke me
17198 #endif
17199
17200 int
17201 main ()
17202 {
17203 return $ac_func ();
17204   ;
17205   return 0;
17206 }
17207 _ACEOF
17208 rm -f conftest.$ac_objext conftest$ac_exeext
17209 if { (ac_try="$ac_link"
17210 case "(($ac_try" in
17211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17212   *) ac_try_echo=$ac_try;;
17213 esac
17214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17215   (eval "$ac_link") 2>conftest.er1
17216   ac_status=$?
17217   grep -v '^ *+' conftest.er1 >conftest.err
17218   rm -f conftest.er1
17219   cat conftest.err >&5
17220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221   (exit $ac_status); } &&
17222          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17223   { (case "(($ac_try" in
17224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225   *) ac_try_echo=$ac_try;;
17226 esac
17227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228   (eval "$ac_try") 2>&5
17229   ac_status=$?
17230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231   (exit $ac_status); }; } &&
17232          { ac_try='test -s conftest$ac_exeext'
17233   { (case "(($ac_try" in
17234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17235   *) ac_try_echo=$ac_try;;
17236 esac
17237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17238   (eval "$ac_try") 2>&5
17239   ac_status=$?
17240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241   (exit $ac_status); }; }; then
17242   eval "$as_ac_var=yes"
17243 else
17244   echo "$as_me: failed program was:" >&5
17245 sed 's/^/| /' conftest.$ac_ext >&5
17246
17247         eval "$as_ac_var=no"
17248 fi
17249
17250 rm -f core conftest.err conftest.$ac_objext \
17251       conftest$ac_exeext conftest.$ac_ext
17252 fi
17253 ac_res=`eval echo '${'$as_ac_var'}'`
17254                { echo "$as_me:$LINENO: result: $ac_res" >&5
17255 echo "${ECHO_T}$ac_res" >&6; }
17256 if test `eval echo '${'$as_ac_var'}'` = yes; then
17257   cat >>confdefs.h <<_ACEOF
17258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17259 _ACEOF
17260
17261 fi
17262 done
17263
17264
17265
17266
17267
17268 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17269 do
17270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17271 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17273 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17274   echo $ECHO_N "(cached) $ECHO_C" >&6
17275 else
17276   cat >conftest.$ac_ext <<_ACEOF
17277 /* confdefs.h.  */
17278 _ACEOF
17279 cat confdefs.h >>conftest.$ac_ext
17280 cat >>conftest.$ac_ext <<_ACEOF
17281 /* end confdefs.h.  */
17282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17283    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17284 #define $ac_func innocuous_$ac_func
17285
17286 /* System header to define __stub macros and hopefully few prototypes,
17287     which can conflict with char $ac_func (); below.
17288     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17289     <limits.h> exists even on freestanding compilers.  */
17290
17291 #ifdef __STDC__
17292 # include <limits.h>
17293 #else
17294 # include <assert.h>
17295 #endif
17296
17297 #undef $ac_func
17298
17299 /* Override any GCC internal prototype to avoid an error.
17300    Use char because int might match the return type of a GCC
17301    builtin and then its argument prototype would still apply.  */
17302 #ifdef __cplusplus
17303 extern "C"
17304 #endif
17305 char $ac_func ();
17306 /* The GNU C library defines this for functions which it implements
17307     to always fail with ENOSYS.  Some functions are actually named
17308     something starting with __ and the normal name is an alias.  */
17309 #if defined __stub_$ac_func || defined __stub___$ac_func
17310 choke me
17311 #endif
17312
17313 int
17314 main ()
17315 {
17316 return $ac_func ();
17317   ;
17318   return 0;
17319 }
17320 _ACEOF
17321 rm -f conftest.$ac_objext conftest$ac_exeext
17322 if { (ac_try="$ac_link"
17323 case "(($ac_try" in
17324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17325   *) ac_try_echo=$ac_try;;
17326 esac
17327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17328   (eval "$ac_link") 2>conftest.er1
17329   ac_status=$?
17330   grep -v '^ *+' conftest.er1 >conftest.err
17331   rm -f conftest.er1
17332   cat conftest.err >&5
17333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334   (exit $ac_status); } &&
17335          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17336   { (case "(($ac_try" in
17337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17338   *) ac_try_echo=$ac_try;;
17339 esac
17340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17341   (eval "$ac_try") 2>&5
17342   ac_status=$?
17343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344   (exit $ac_status); }; } &&
17345          { ac_try='test -s conftest$ac_exeext'
17346   { (case "(($ac_try" in
17347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17348   *) ac_try_echo=$ac_try;;
17349 esac
17350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17351   (eval "$ac_try") 2>&5
17352   ac_status=$?
17353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354   (exit $ac_status); }; }; then
17355   eval "$as_ac_var=yes"
17356 else
17357   echo "$as_me: failed program was:" >&5
17358 sed 's/^/| /' conftest.$ac_ext >&5
17359
17360         eval "$as_ac_var=no"
17361 fi
17362
17363 rm -f core conftest.err conftest.$ac_objext \
17364       conftest$ac_exeext conftest.$ac_ext
17365 fi
17366 ac_res=`eval echo '${'$as_ac_var'}'`
17367                { echo "$as_me:$LINENO: result: $ac_res" >&5
17368 echo "${ECHO_T}$ac_res" >&6; }
17369 if test `eval echo '${'$as_ac_var'}'` = yes; then
17370   cat >>confdefs.h <<_ACEOF
17371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17372 _ACEOF
17373
17374 fi
17375 done
17376
17377
17378
17379
17380
17381
17382 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17383 do
17384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17385 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17387 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17388   echo $ECHO_N "(cached) $ECHO_C" >&6
17389 else
17390   cat >conftest.$ac_ext <<_ACEOF
17391 /* confdefs.h.  */
17392 _ACEOF
17393 cat confdefs.h >>conftest.$ac_ext
17394 cat >>conftest.$ac_ext <<_ACEOF
17395 /* end confdefs.h.  */
17396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17397    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17398 #define $ac_func innocuous_$ac_func
17399
17400 /* System header to define __stub macros and hopefully few prototypes,
17401     which can conflict with char $ac_func (); below.
17402     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17403     <limits.h> exists even on freestanding compilers.  */
17404
17405 #ifdef __STDC__
17406 # include <limits.h>
17407 #else
17408 # include <assert.h>
17409 #endif
17410
17411 #undef $ac_func
17412
17413 /* Override any GCC internal prototype to avoid an error.
17414    Use char because int might match the return type of a GCC
17415    builtin and then its argument prototype would still apply.  */
17416 #ifdef __cplusplus
17417 extern "C"
17418 #endif
17419 char $ac_func ();
17420 /* The GNU C library defines this for functions which it implements
17421     to always fail with ENOSYS.  Some functions are actually named
17422     something starting with __ and the normal name is an alias.  */
17423 #if defined __stub_$ac_func || defined __stub___$ac_func
17424 choke me
17425 #endif
17426
17427 int
17428 main ()
17429 {
17430 return $ac_func ();
17431   ;
17432   return 0;
17433 }
17434 _ACEOF
17435 rm -f conftest.$ac_objext conftest$ac_exeext
17436 if { (ac_try="$ac_link"
17437 case "(($ac_try" in
17438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17439   *) ac_try_echo=$ac_try;;
17440 esac
17441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17442   (eval "$ac_link") 2>conftest.er1
17443   ac_status=$?
17444   grep -v '^ *+' conftest.er1 >conftest.err
17445   rm -f conftest.er1
17446   cat conftest.err >&5
17447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448   (exit $ac_status); } &&
17449          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17450   { (case "(($ac_try" in
17451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17452   *) ac_try_echo=$ac_try;;
17453 esac
17454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17455   (eval "$ac_try") 2>&5
17456   ac_status=$?
17457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458   (exit $ac_status); }; } &&
17459          { ac_try='test -s conftest$ac_exeext'
17460   { (case "(($ac_try" in
17461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17462   *) ac_try_echo=$ac_try;;
17463 esac
17464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17465   (eval "$ac_try") 2>&5
17466   ac_status=$?
17467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468   (exit $ac_status); }; }; then
17469   eval "$as_ac_var=yes"
17470 else
17471   echo "$as_me: failed program was:" >&5
17472 sed 's/^/| /' conftest.$ac_ext >&5
17473
17474         eval "$as_ac_var=no"
17475 fi
17476
17477 rm -f core conftest.err conftest.$ac_objext \
17478       conftest$ac_exeext conftest.$ac_ext
17479 fi
17480 ac_res=`eval echo '${'$as_ac_var'}'`
17481                { echo "$as_me:$LINENO: result: $ac_res" >&5
17482 echo "${ECHO_T}$ac_res" >&6; }
17483 if test `eval echo '${'$as_ac_var'}'` = yes; then
17484   cat >>confdefs.h <<_ACEOF
17485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17486 _ACEOF
17487
17488 fi
17489 done
17490
17491 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17492 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17493 if test "${llvm_cv_c_printf_a+set}" = set; then
17494   echo $ECHO_N "(cached) $ECHO_C" >&6
17495 else
17496   ac_ext=c
17497 ac_cpp='$CPP $CPPFLAGS'
17498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17501
17502  if test "$cross_compiling" = yes; then
17503   llvmac_cv_c_printf_a=no
17504 else
17505   cat >conftest.$ac_ext <<_ACEOF
17506
17507   /* confdefs.h.  */
17508 _ACEOF
17509 cat confdefs.h >>conftest.$ac_ext
17510 cat >>conftest.$ac_ext <<_ACEOF
17511 /* end confdefs.h.  */
17512
17513 #include <stdio.h>
17514 #include <stdlib.h>
17515
17516 int
17517 main ()
17518 {
17519
17520 volatile double A, B;
17521 char Buffer[100];
17522 A = 1;
17523 A /= 10.0;
17524 sprintf(Buffer, "%a", A);
17525 B = atof(Buffer);
17526 if (A != B)
17527   return (1);
17528 if (A != 0x1.999999999999ap-4)
17529   return (1);
17530 return (0);
17531   ;
17532   return 0;
17533 }
17534 _ACEOF
17535 rm -f conftest$ac_exeext
17536 if { (ac_try="$ac_link"
17537 case "(($ac_try" in
17538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17539   *) ac_try_echo=$ac_try;;
17540 esac
17541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17542   (eval "$ac_link") 2>&5
17543   ac_status=$?
17544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17546   { (case "(($ac_try" in
17547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17548   *) ac_try_echo=$ac_try;;
17549 esac
17550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17551   (eval "$ac_try") 2>&5
17552   ac_status=$?
17553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554   (exit $ac_status); }; }; then
17555   llvm_cv_c_printf_a=yes
17556 else
17557   echo "$as_me: program exited with status $ac_status" >&5
17558 echo "$as_me: failed program was:" >&5
17559 sed 's/^/| /' conftest.$ac_ext >&5
17560
17561 ( exit $ac_status )
17562 llvmac_cv_c_printf_a=no
17563 fi
17564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17565 fi
17566
17567
17568  ac_ext=c
17569 ac_cpp='$CPP $CPPFLAGS'
17570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17573
17574 fi
17575 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17576 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17577  if test "$llvm_cv_c_printf_a" = "yes"; then
17578
17579 cat >>confdefs.h <<\_ACEOF
17580 #define HAVE_PRINTF_A 1
17581 _ACEOF
17582
17583  fi
17584
17585
17586 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17587 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17588 if test "${ac_cv_func_rand48+set}" = set; then
17589   echo $ECHO_N "(cached) $ECHO_C" >&6
17590 else
17591   ac_ext=cpp
17592 ac_cpp='$CXXCPP $CPPFLAGS'
17593 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17594 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17595 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17596
17597    cat >conftest.$ac_ext <<_ACEOF
17598 /* confdefs.h.  */
17599 _ACEOF
17600 cat confdefs.h >>conftest.$ac_ext
17601 cat >>conftest.$ac_ext <<_ACEOF
17602 /* end confdefs.h.  */
17603 #include <stdlib.h>
17604 int
17605 main ()
17606 {
17607 srand48(0);lrand48();drand48();
17608   ;
17609   return 0;
17610 }
17611 _ACEOF
17612 rm -f conftest.$ac_objext
17613 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
17620   ac_status=$?
17621   grep -v '^ *+' conftest.er1 >conftest.err
17622   rm -f conftest.er1
17623   cat conftest.err >&5
17624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625   (exit $ac_status); } &&
17626          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17627   { (case "(($ac_try" in
17628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17629   *) ac_try_echo=$ac_try;;
17630 esac
17631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17632   (eval "$ac_try") 2>&5
17633   ac_status=$?
17634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635   (exit $ac_status); }; } &&
17636          { ac_try='test -s conftest.$ac_objext'
17637   { (case "(($ac_try" in
17638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17639   *) ac_try_echo=$ac_try;;
17640 esac
17641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17642   (eval "$ac_try") 2>&5
17643   ac_status=$?
17644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645   (exit $ac_status); }; }; then
17646   ac_cv_func_rand48=yes
17647 else
17648   echo "$as_me: failed program was:" >&5
17649 sed 's/^/| /' conftest.$ac_ext >&5
17650
17651         ac_cv_func_rand48=no
17652 fi
17653
17654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17655   ac_ext=c
17656 ac_cpp='$CPP $CPPFLAGS'
17657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17660
17661 fi
17662 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17663 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17664
17665 if test "$ac_cv_func_rand48" = "yes" ; then
17666
17667 cat >>confdefs.h <<\_ACEOF
17668 #define HAVE_RAND48 1
17669 _ACEOF
17670
17671 fi
17672
17673
17674 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17675 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17676 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17677   echo $ECHO_N "(cached) $ECHO_C" >&6
17678 else
17679   cat >conftest.$ac_ext <<_ACEOF
17680 /* confdefs.h.  */
17681 _ACEOF
17682 cat confdefs.h >>conftest.$ac_ext
17683 cat >>conftest.$ac_ext <<_ACEOF
17684 /* end confdefs.h.  */
17685 $ac_includes_default
17686 int
17687 main ()
17688 {
17689 #ifndef strerror_s
17690   char *p = (char *) strerror_s;
17691   return !p;
17692 #endif
17693
17694   ;
17695   return 0;
17696 }
17697 _ACEOF
17698 rm -f conftest.$ac_objext
17699 if { (ac_try="$ac_compile"
17700 case "(($ac_try" in
17701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17702   *) ac_try_echo=$ac_try;;
17703 esac
17704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17705   (eval "$ac_compile") 2>conftest.er1
17706   ac_status=$?
17707   grep -v '^ *+' conftest.er1 >conftest.err
17708   rm -f conftest.er1
17709   cat conftest.err >&5
17710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711   (exit $ac_status); } &&
17712          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17713   { (case "(($ac_try" in
17714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715   *) ac_try_echo=$ac_try;;
17716 esac
17717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718   (eval "$ac_try") 2>&5
17719   ac_status=$?
17720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721   (exit $ac_status); }; } &&
17722          { ac_try='test -s conftest.$ac_objext'
17723   { (case "(($ac_try" in
17724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17725   *) ac_try_echo=$ac_try;;
17726 esac
17727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17728   (eval "$ac_try") 2>&5
17729   ac_status=$?
17730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731   (exit $ac_status); }; }; then
17732   ac_cv_have_decl_strerror_s=yes
17733 else
17734   echo "$as_me: failed program was:" >&5
17735 sed 's/^/| /' conftest.$ac_ext >&5
17736
17737         ac_cv_have_decl_strerror_s=no
17738 fi
17739
17740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17741 fi
17742 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17743 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17744 if test $ac_cv_have_decl_strerror_s = yes; then
17745
17746 cat >>confdefs.h <<_ACEOF
17747 #define HAVE_DECL_STRERROR_S 1
17748 _ACEOF
17749
17750
17751 else
17752   cat >>confdefs.h <<_ACEOF
17753 #define HAVE_DECL_STRERROR_S 0
17754 _ACEOF
17755
17756
17757 fi
17758
17759
17760
17761 if test "$llvm_cv_os_type" = "MingW" ; then
17762   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17763 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17764 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17765   echo $ECHO_N "(cached) $ECHO_C" >&6
17766 else
17767   ac_check_lib_save_LIBS=$LIBS
17768 LIBS="-lgcc  $LIBS"
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
17776 /* Override any GCC internal prototype to avoid an error.
17777    Use char because int might match the return type of a GCC
17778    builtin and then its argument prototype would still apply.  */
17779 #ifdef __cplusplus
17780 extern "C"
17781 #endif
17782 char _alloca ();
17783 int
17784 main ()
17785 {
17786 return _alloca ();
17787   ;
17788   return 0;
17789 }
17790 _ACEOF
17791 rm -f conftest.$ac_objext conftest$ac_exeext
17792 if { (ac_try="$ac_link"
17793 case "(($ac_try" in
17794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17795   *) ac_try_echo=$ac_try;;
17796 esac
17797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17798   (eval "$ac_link") 2>conftest.er1
17799   ac_status=$?
17800   grep -v '^ *+' conftest.er1 >conftest.err
17801   rm -f conftest.er1
17802   cat conftest.err >&5
17803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804   (exit $ac_status); } &&
17805          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17806   { (case "(($ac_try" in
17807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17808   *) ac_try_echo=$ac_try;;
17809 esac
17810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17811   (eval "$ac_try") 2>&5
17812   ac_status=$?
17813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814   (exit $ac_status); }; } &&
17815          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
17822   ac_status=$?
17823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824   (exit $ac_status); }; }; then
17825   ac_cv_lib_gcc__alloca=yes
17826 else
17827   echo "$as_me: failed program was:" >&5
17828 sed 's/^/| /' conftest.$ac_ext >&5
17829
17830         ac_cv_lib_gcc__alloca=no
17831 fi
17832
17833 rm -f core conftest.err conftest.$ac_objext \
17834       conftest$ac_exeext conftest.$ac_ext
17835 LIBS=$ac_check_lib_save_LIBS
17836 fi
17837 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17838 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17839 if test $ac_cv_lib_gcc__alloca = yes; then
17840
17841 cat >>confdefs.h <<\_ACEOF
17842 #define HAVE__ALLOCA 1
17843 _ACEOF
17844
17845 fi
17846
17847   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17848 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17849 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17850   echo $ECHO_N "(cached) $ECHO_C" >&6
17851 else
17852   ac_check_lib_save_LIBS=$LIBS
17853 LIBS="-lgcc  $LIBS"
17854 cat >conftest.$ac_ext <<_ACEOF
17855 /* confdefs.h.  */
17856 _ACEOF
17857 cat confdefs.h >>conftest.$ac_ext
17858 cat >>conftest.$ac_ext <<_ACEOF
17859 /* end confdefs.h.  */
17860
17861 /* Override any GCC internal prototype to avoid an error.
17862    Use char because int might match the return type of a GCC
17863    builtin and then its argument prototype would still apply.  */
17864 #ifdef __cplusplus
17865 extern "C"
17866 #endif
17867 char __alloca ();
17868 int
17869 main ()
17870 {
17871 return __alloca ();
17872   ;
17873   return 0;
17874 }
17875 _ACEOF
17876 rm -f conftest.$ac_objext conftest$ac_exeext
17877 if { (ac_try="$ac_link"
17878 case "(($ac_try" in
17879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17880   *) ac_try_echo=$ac_try;;
17881 esac
17882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17883   (eval "$ac_link") 2>conftest.er1
17884   ac_status=$?
17885   grep -v '^ *+' conftest.er1 >conftest.err
17886   rm -f conftest.er1
17887   cat conftest.err >&5
17888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889   (exit $ac_status); } &&
17890          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17891   { (case "(($ac_try" in
17892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17893   *) ac_try_echo=$ac_try;;
17894 esac
17895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17896   (eval "$ac_try") 2>&5
17897   ac_status=$?
17898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899   (exit $ac_status); }; } &&
17900          { ac_try='test -s conftest$ac_exeext'
17901   { (case "(($ac_try" in
17902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17903   *) ac_try_echo=$ac_try;;
17904 esac
17905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17906   (eval "$ac_try") 2>&5
17907   ac_status=$?
17908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909   (exit $ac_status); }; }; then
17910   ac_cv_lib_gcc___alloca=yes
17911 else
17912   echo "$as_me: failed program was:" >&5
17913 sed 's/^/| /' conftest.$ac_ext >&5
17914
17915         ac_cv_lib_gcc___alloca=no
17916 fi
17917
17918 rm -f core conftest.err conftest.$ac_objext \
17919       conftest$ac_exeext conftest.$ac_ext
17920 LIBS=$ac_check_lib_save_LIBS
17921 fi
17922 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17923 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17924 if test $ac_cv_lib_gcc___alloca = yes; then
17925
17926 cat >>confdefs.h <<\_ACEOF
17927 #define HAVE___ALLOCA 1
17928 _ACEOF
17929
17930 fi
17931
17932   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17933 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17934 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17935   echo $ECHO_N "(cached) $ECHO_C" >&6
17936 else
17937   ac_check_lib_save_LIBS=$LIBS
17938 LIBS="-lgcc  $LIBS"
17939 cat >conftest.$ac_ext <<_ACEOF
17940 /* confdefs.h.  */
17941 _ACEOF
17942 cat confdefs.h >>conftest.$ac_ext
17943 cat >>conftest.$ac_ext <<_ACEOF
17944 /* end confdefs.h.  */
17945
17946 /* Override any GCC internal prototype to avoid an error.
17947    Use char because int might match the return type of a GCC
17948    builtin and then its argument prototype would still apply.  */
17949 #ifdef __cplusplus
17950 extern "C"
17951 #endif
17952 char __chkstk ();
17953 int
17954 main ()
17955 {
17956 return __chkstk ();
17957   ;
17958   return 0;
17959 }
17960 _ACEOF
17961 rm -f conftest.$ac_objext conftest$ac_exeext
17962 if { (ac_try="$ac_link"
17963 case "(($ac_try" in
17964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17965   *) ac_try_echo=$ac_try;;
17966 esac
17967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17968   (eval "$ac_link") 2>conftest.er1
17969   ac_status=$?
17970   grep -v '^ *+' conftest.er1 >conftest.err
17971   rm -f conftest.er1
17972   cat conftest.err >&5
17973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974   (exit $ac_status); } &&
17975          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17976   { (case "(($ac_try" in
17977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17978   *) ac_try_echo=$ac_try;;
17979 esac
17980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17981   (eval "$ac_try") 2>&5
17982   ac_status=$?
17983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984   (exit $ac_status); }; } &&
17985          { ac_try='test -s conftest$ac_exeext'
17986   { (case "(($ac_try" in
17987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17988   *) ac_try_echo=$ac_try;;
17989 esac
17990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17991   (eval "$ac_try") 2>&5
17992   ac_status=$?
17993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994   (exit $ac_status); }; }; then
17995   ac_cv_lib_gcc___chkstk=yes
17996 else
17997   echo "$as_me: failed program was:" >&5
17998 sed 's/^/| /' conftest.$ac_ext >&5
17999
18000         ac_cv_lib_gcc___chkstk=no
18001 fi
18002
18003 rm -f core conftest.err conftest.$ac_objext \
18004       conftest$ac_exeext conftest.$ac_ext
18005 LIBS=$ac_check_lib_save_LIBS
18006 fi
18007 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18008 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18009 if test $ac_cv_lib_gcc___chkstk = yes; then
18010
18011 cat >>confdefs.h <<\_ACEOF
18012 #define HAVE___CHKSTK 1
18013 _ACEOF
18014
18015 fi
18016
18017   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18018 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18019 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18020   echo $ECHO_N "(cached) $ECHO_C" >&6
18021 else
18022   ac_check_lib_save_LIBS=$LIBS
18023 LIBS="-lgcc  $LIBS"
18024 cat >conftest.$ac_ext <<_ACEOF
18025 /* confdefs.h.  */
18026 _ACEOF
18027 cat confdefs.h >>conftest.$ac_ext
18028 cat >>conftest.$ac_ext <<_ACEOF
18029 /* end confdefs.h.  */
18030
18031 /* Override any GCC internal prototype to avoid an error.
18032    Use char because int might match the return type of a GCC
18033    builtin and then its argument prototype would still apply.  */
18034 #ifdef __cplusplus
18035 extern "C"
18036 #endif
18037 char ___chkstk ();
18038 int
18039 main ()
18040 {
18041 return ___chkstk ();
18042   ;
18043   return 0;
18044 }
18045 _ACEOF
18046 rm -f conftest.$ac_objext conftest$ac_exeext
18047 if { (ac_try="$ac_link"
18048 case "(($ac_try" in
18049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18050   *) ac_try_echo=$ac_try;;
18051 esac
18052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18053   (eval "$ac_link") 2>conftest.er1
18054   ac_status=$?
18055   grep -v '^ *+' conftest.er1 >conftest.err
18056   rm -f conftest.er1
18057   cat conftest.err >&5
18058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059   (exit $ac_status); } &&
18060          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18061   { (case "(($ac_try" in
18062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18063   *) ac_try_echo=$ac_try;;
18064 esac
18065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18066   (eval "$ac_try") 2>&5
18067   ac_status=$?
18068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069   (exit $ac_status); }; } &&
18070          { ac_try='test -s conftest$ac_exeext'
18071   { (case "(($ac_try" in
18072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18073   *) ac_try_echo=$ac_try;;
18074 esac
18075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18076   (eval "$ac_try") 2>&5
18077   ac_status=$?
18078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079   (exit $ac_status); }; }; then
18080   ac_cv_lib_gcc____chkstk=yes
18081 else
18082   echo "$as_me: failed program was:" >&5
18083 sed 's/^/| /' conftest.$ac_ext >&5
18084
18085         ac_cv_lib_gcc____chkstk=no
18086 fi
18087
18088 rm -f core conftest.err conftest.$ac_objext \
18089       conftest$ac_exeext conftest.$ac_ext
18090 LIBS=$ac_check_lib_save_LIBS
18091 fi
18092 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18093 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18094 if test $ac_cv_lib_gcc____chkstk = yes; then
18095
18096 cat >>confdefs.h <<\_ACEOF
18097 #define HAVE____CHKSTK 1
18098 _ACEOF
18099
18100 fi
18101
18102
18103   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18104 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18105 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18106   echo $ECHO_N "(cached) $ECHO_C" >&6
18107 else
18108   ac_check_lib_save_LIBS=$LIBS
18109 LIBS="-lgcc  $LIBS"
18110 cat >conftest.$ac_ext <<_ACEOF
18111 /* confdefs.h.  */
18112 _ACEOF
18113 cat confdefs.h >>conftest.$ac_ext
18114 cat >>conftest.$ac_ext <<_ACEOF
18115 /* end confdefs.h.  */
18116
18117 /* Override any GCC internal prototype to avoid an error.
18118    Use char because int might match the return type of a GCC
18119    builtin and then its argument prototype would still apply.  */
18120 #ifdef __cplusplus
18121 extern "C"
18122 #endif
18123 char __ashldi3 ();
18124 int
18125 main ()
18126 {
18127 return __ashldi3 ();
18128   ;
18129   return 0;
18130 }
18131 _ACEOF
18132 rm -f conftest.$ac_objext conftest$ac_exeext
18133 if { (ac_try="$ac_link"
18134 case "(($ac_try" in
18135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18136   *) ac_try_echo=$ac_try;;
18137 esac
18138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18139   (eval "$ac_link") 2>conftest.er1
18140   ac_status=$?
18141   grep -v '^ *+' conftest.er1 >conftest.err
18142   rm -f conftest.er1
18143   cat conftest.err >&5
18144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145   (exit $ac_status); } &&
18146          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18147   { (case "(($ac_try" in
18148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18149   *) ac_try_echo=$ac_try;;
18150 esac
18151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18152   (eval "$ac_try") 2>&5
18153   ac_status=$?
18154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155   (exit $ac_status); }; } &&
18156          { ac_try='test -s conftest$ac_exeext'
18157   { (case "(($ac_try" in
18158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18159   *) ac_try_echo=$ac_try;;
18160 esac
18161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18162   (eval "$ac_try") 2>&5
18163   ac_status=$?
18164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165   (exit $ac_status); }; }; then
18166   ac_cv_lib_gcc___ashldi3=yes
18167 else
18168   echo "$as_me: failed program was:" >&5
18169 sed 's/^/| /' conftest.$ac_ext >&5
18170
18171         ac_cv_lib_gcc___ashldi3=no
18172 fi
18173
18174 rm -f core conftest.err conftest.$ac_objext \
18175       conftest$ac_exeext conftest.$ac_ext
18176 LIBS=$ac_check_lib_save_LIBS
18177 fi
18178 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18179 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18180 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18181
18182 cat >>confdefs.h <<\_ACEOF
18183 #define HAVE___ASHLDI3 1
18184 _ACEOF
18185
18186 fi
18187
18188   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18189 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18190 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18191   echo $ECHO_N "(cached) $ECHO_C" >&6
18192 else
18193   ac_check_lib_save_LIBS=$LIBS
18194 LIBS="-lgcc  $LIBS"
18195 cat >conftest.$ac_ext <<_ACEOF
18196 /* confdefs.h.  */
18197 _ACEOF
18198 cat confdefs.h >>conftest.$ac_ext
18199 cat >>conftest.$ac_ext <<_ACEOF
18200 /* end confdefs.h.  */
18201
18202 /* Override any GCC internal prototype to avoid an error.
18203    Use char because int might match the return type of a GCC
18204    builtin and then its argument prototype would still apply.  */
18205 #ifdef __cplusplus
18206 extern "C"
18207 #endif
18208 char __ashrdi3 ();
18209 int
18210 main ()
18211 {
18212 return __ashrdi3 ();
18213   ;
18214   return 0;
18215 }
18216 _ACEOF
18217 rm -f conftest.$ac_objext conftest$ac_exeext
18218 if { (ac_try="$ac_link"
18219 case "(($ac_try" in
18220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18221   *) ac_try_echo=$ac_try;;
18222 esac
18223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18224   (eval "$ac_link") 2>conftest.er1
18225   ac_status=$?
18226   grep -v '^ *+' conftest.er1 >conftest.err
18227   rm -f conftest.er1
18228   cat conftest.err >&5
18229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230   (exit $ac_status); } &&
18231          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18232   { (case "(($ac_try" in
18233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18234   *) ac_try_echo=$ac_try;;
18235 esac
18236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18237   (eval "$ac_try") 2>&5
18238   ac_status=$?
18239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240   (exit $ac_status); }; } &&
18241          { ac_try='test -s conftest$ac_exeext'
18242   { (case "(($ac_try" in
18243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18244   *) ac_try_echo=$ac_try;;
18245 esac
18246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18247   (eval "$ac_try") 2>&5
18248   ac_status=$?
18249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250   (exit $ac_status); }; }; then
18251   ac_cv_lib_gcc___ashrdi3=yes
18252 else
18253   echo "$as_me: failed program was:" >&5
18254 sed 's/^/| /' conftest.$ac_ext >&5
18255
18256         ac_cv_lib_gcc___ashrdi3=no
18257 fi
18258
18259 rm -f core conftest.err conftest.$ac_objext \
18260       conftest$ac_exeext conftest.$ac_ext
18261 LIBS=$ac_check_lib_save_LIBS
18262 fi
18263 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18264 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18265 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18266
18267 cat >>confdefs.h <<\_ACEOF
18268 #define HAVE___ASHRDI3 1
18269 _ACEOF
18270
18271 fi
18272
18273   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18274 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18275 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18276   echo $ECHO_N "(cached) $ECHO_C" >&6
18277 else
18278   ac_check_lib_save_LIBS=$LIBS
18279 LIBS="-lgcc  $LIBS"
18280 cat >conftest.$ac_ext <<_ACEOF
18281 /* confdefs.h.  */
18282 _ACEOF
18283 cat confdefs.h >>conftest.$ac_ext
18284 cat >>conftest.$ac_ext <<_ACEOF
18285 /* end confdefs.h.  */
18286
18287 /* Override any GCC internal prototype to avoid an error.
18288    Use char because int might match the return type of a GCC
18289    builtin and then its argument prototype would still apply.  */
18290 #ifdef __cplusplus
18291 extern "C"
18292 #endif
18293 char __divdi3 ();
18294 int
18295 main ()
18296 {
18297 return __divdi3 ();
18298   ;
18299   return 0;
18300 }
18301 _ACEOF
18302 rm -f conftest.$ac_objext conftest$ac_exeext
18303 if { (ac_try="$ac_link"
18304 case "(($ac_try" in
18305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18306   *) ac_try_echo=$ac_try;;
18307 esac
18308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18309   (eval "$ac_link") 2>conftest.er1
18310   ac_status=$?
18311   grep -v '^ *+' conftest.er1 >conftest.err
18312   rm -f conftest.er1
18313   cat conftest.err >&5
18314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315   (exit $ac_status); } &&
18316          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18317   { (case "(($ac_try" in
18318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18319   *) ac_try_echo=$ac_try;;
18320 esac
18321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18322   (eval "$ac_try") 2>&5
18323   ac_status=$?
18324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325   (exit $ac_status); }; } &&
18326          { ac_try='test -s conftest$ac_exeext'
18327   { (case "(($ac_try" in
18328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18329   *) ac_try_echo=$ac_try;;
18330 esac
18331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18332   (eval "$ac_try") 2>&5
18333   ac_status=$?
18334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335   (exit $ac_status); }; }; then
18336   ac_cv_lib_gcc___divdi3=yes
18337 else
18338   echo "$as_me: failed program was:" >&5
18339 sed 's/^/| /' conftest.$ac_ext >&5
18340
18341         ac_cv_lib_gcc___divdi3=no
18342 fi
18343
18344 rm -f core conftest.err conftest.$ac_objext \
18345       conftest$ac_exeext conftest.$ac_ext
18346 LIBS=$ac_check_lib_save_LIBS
18347 fi
18348 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18349 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18350 if test $ac_cv_lib_gcc___divdi3 = yes; then
18351
18352 cat >>confdefs.h <<\_ACEOF
18353 #define HAVE___DIVDI3 1
18354 _ACEOF
18355
18356 fi
18357
18358   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18359 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18360 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18361   echo $ECHO_N "(cached) $ECHO_C" >&6
18362 else
18363   ac_check_lib_save_LIBS=$LIBS
18364 LIBS="-lgcc  $LIBS"
18365 cat >conftest.$ac_ext <<_ACEOF
18366 /* confdefs.h.  */
18367 _ACEOF
18368 cat confdefs.h >>conftest.$ac_ext
18369 cat >>conftest.$ac_ext <<_ACEOF
18370 /* end confdefs.h.  */
18371
18372 /* Override any GCC internal prototype to avoid an error.
18373    Use char because int might match the return type of a GCC
18374    builtin and then its argument prototype would still apply.  */
18375 #ifdef __cplusplus
18376 extern "C"
18377 #endif
18378 char __fixdfdi ();
18379 int
18380 main ()
18381 {
18382 return __fixdfdi ();
18383   ;
18384   return 0;
18385 }
18386 _ACEOF
18387 rm -f conftest.$ac_objext conftest$ac_exeext
18388 if { (ac_try="$ac_link"
18389 case "(($ac_try" in
18390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18391   *) ac_try_echo=$ac_try;;
18392 esac
18393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18394   (eval "$ac_link") 2>conftest.er1
18395   ac_status=$?
18396   grep -v '^ *+' conftest.er1 >conftest.err
18397   rm -f conftest.er1
18398   cat conftest.err >&5
18399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400   (exit $ac_status); } &&
18401          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18402   { (case "(($ac_try" in
18403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18404   *) ac_try_echo=$ac_try;;
18405 esac
18406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18407   (eval "$ac_try") 2>&5
18408   ac_status=$?
18409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410   (exit $ac_status); }; } &&
18411          { ac_try='test -s conftest$ac_exeext'
18412   { (case "(($ac_try" in
18413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18414   *) ac_try_echo=$ac_try;;
18415 esac
18416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18417   (eval "$ac_try") 2>&5
18418   ac_status=$?
18419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420   (exit $ac_status); }; }; then
18421   ac_cv_lib_gcc___fixdfdi=yes
18422 else
18423   echo "$as_me: failed program was:" >&5
18424 sed 's/^/| /' conftest.$ac_ext >&5
18425
18426         ac_cv_lib_gcc___fixdfdi=no
18427 fi
18428
18429 rm -f core conftest.err conftest.$ac_objext \
18430       conftest$ac_exeext conftest.$ac_ext
18431 LIBS=$ac_check_lib_save_LIBS
18432 fi
18433 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18434 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18435 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18436
18437 cat >>confdefs.h <<\_ACEOF
18438 #define HAVE___FIXDFDI 1
18439 _ACEOF
18440
18441 fi
18442
18443   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18444 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18445 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18446   echo $ECHO_N "(cached) $ECHO_C" >&6
18447 else
18448   ac_check_lib_save_LIBS=$LIBS
18449 LIBS="-lgcc  $LIBS"
18450 cat >conftest.$ac_ext <<_ACEOF
18451 /* confdefs.h.  */
18452 _ACEOF
18453 cat confdefs.h >>conftest.$ac_ext
18454 cat >>conftest.$ac_ext <<_ACEOF
18455 /* end confdefs.h.  */
18456
18457 /* Override any GCC internal prototype to avoid an error.
18458    Use char because int might match the return type of a GCC
18459    builtin and then its argument prototype would still apply.  */
18460 #ifdef __cplusplus
18461 extern "C"
18462 #endif
18463 char __fixsfdi ();
18464 int
18465 main ()
18466 {
18467 return __fixsfdi ();
18468   ;
18469   return 0;
18470 }
18471 _ACEOF
18472 rm -f conftest.$ac_objext conftest$ac_exeext
18473 if { (ac_try="$ac_link"
18474 case "(($ac_try" in
18475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18476   *) ac_try_echo=$ac_try;;
18477 esac
18478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18479   (eval "$ac_link") 2>conftest.er1
18480   ac_status=$?
18481   grep -v '^ *+' conftest.er1 >conftest.err
18482   rm -f conftest.er1
18483   cat conftest.err >&5
18484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485   (exit $ac_status); } &&
18486          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18487   { (case "(($ac_try" in
18488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18489   *) ac_try_echo=$ac_try;;
18490 esac
18491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18492   (eval "$ac_try") 2>&5
18493   ac_status=$?
18494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495   (exit $ac_status); }; } &&
18496          { ac_try='test -s conftest$ac_exeext'
18497   { (case "(($ac_try" in
18498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18499   *) ac_try_echo=$ac_try;;
18500 esac
18501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18502   (eval "$ac_try") 2>&5
18503   ac_status=$?
18504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505   (exit $ac_status); }; }; then
18506   ac_cv_lib_gcc___fixsfdi=yes
18507 else
18508   echo "$as_me: failed program was:" >&5
18509 sed 's/^/| /' conftest.$ac_ext >&5
18510
18511         ac_cv_lib_gcc___fixsfdi=no
18512 fi
18513
18514 rm -f core conftest.err conftest.$ac_objext \
18515       conftest$ac_exeext conftest.$ac_ext
18516 LIBS=$ac_check_lib_save_LIBS
18517 fi
18518 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18519 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18520 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18521
18522 cat >>confdefs.h <<\_ACEOF
18523 #define HAVE___FIXSFDI 1
18524 _ACEOF
18525
18526 fi
18527
18528   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18529 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18530 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18531   echo $ECHO_N "(cached) $ECHO_C" >&6
18532 else
18533   ac_check_lib_save_LIBS=$LIBS
18534 LIBS="-lgcc  $LIBS"
18535 cat >conftest.$ac_ext <<_ACEOF
18536 /* confdefs.h.  */
18537 _ACEOF
18538 cat confdefs.h >>conftest.$ac_ext
18539 cat >>conftest.$ac_ext <<_ACEOF
18540 /* end confdefs.h.  */
18541
18542 /* Override any GCC internal prototype to avoid an error.
18543    Use char because int might match the return type of a GCC
18544    builtin and then its argument prototype would still apply.  */
18545 #ifdef __cplusplus
18546 extern "C"
18547 #endif
18548 char __floatdidf ();
18549 int
18550 main ()
18551 {
18552 return __floatdidf ();
18553   ;
18554   return 0;
18555 }
18556 _ACEOF
18557 rm -f conftest.$ac_objext conftest$ac_exeext
18558 if { (ac_try="$ac_link"
18559 case "(($ac_try" in
18560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18561   *) ac_try_echo=$ac_try;;
18562 esac
18563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18564   (eval "$ac_link") 2>conftest.er1
18565   ac_status=$?
18566   grep -v '^ *+' conftest.er1 >conftest.err
18567   rm -f conftest.er1
18568   cat conftest.err >&5
18569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570   (exit $ac_status); } &&
18571          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18572   { (case "(($ac_try" in
18573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18574   *) ac_try_echo=$ac_try;;
18575 esac
18576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18577   (eval "$ac_try") 2>&5
18578   ac_status=$?
18579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580   (exit $ac_status); }; } &&
18581          { ac_try='test -s conftest$ac_exeext'
18582   { (case "(($ac_try" in
18583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18584   *) ac_try_echo=$ac_try;;
18585 esac
18586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18587   (eval "$ac_try") 2>&5
18588   ac_status=$?
18589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590   (exit $ac_status); }; }; then
18591   ac_cv_lib_gcc___floatdidf=yes
18592 else
18593   echo "$as_me: failed program was:" >&5
18594 sed 's/^/| /' conftest.$ac_ext >&5
18595
18596         ac_cv_lib_gcc___floatdidf=no
18597 fi
18598
18599 rm -f core conftest.err conftest.$ac_objext \
18600       conftest$ac_exeext conftest.$ac_ext
18601 LIBS=$ac_check_lib_save_LIBS
18602 fi
18603 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18604 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18605 if test $ac_cv_lib_gcc___floatdidf = yes; then
18606
18607 cat >>confdefs.h <<\_ACEOF
18608 #define HAVE___FLOATDIDF 1
18609 _ACEOF
18610
18611 fi
18612
18613   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18614 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18615 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18616   echo $ECHO_N "(cached) $ECHO_C" >&6
18617 else
18618   ac_check_lib_save_LIBS=$LIBS
18619 LIBS="-lgcc  $LIBS"
18620 cat >conftest.$ac_ext <<_ACEOF
18621 /* confdefs.h.  */
18622 _ACEOF
18623 cat confdefs.h >>conftest.$ac_ext
18624 cat >>conftest.$ac_ext <<_ACEOF
18625 /* end confdefs.h.  */
18626
18627 /* Override any GCC internal prototype to avoid an error.
18628    Use char because int might match the return type of a GCC
18629    builtin and then its argument prototype would still apply.  */
18630 #ifdef __cplusplus
18631 extern "C"
18632 #endif
18633 char __lshrdi3 ();
18634 int
18635 main ()
18636 {
18637 return __lshrdi3 ();
18638   ;
18639   return 0;
18640 }
18641 _ACEOF
18642 rm -f conftest.$ac_objext conftest$ac_exeext
18643 if { (ac_try="$ac_link"
18644 case "(($ac_try" in
18645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18646   *) ac_try_echo=$ac_try;;
18647 esac
18648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18649   (eval "$ac_link") 2>conftest.er1
18650   ac_status=$?
18651   grep -v '^ *+' conftest.er1 >conftest.err
18652   rm -f conftest.er1
18653   cat conftest.err >&5
18654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655   (exit $ac_status); } &&
18656          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18657   { (case "(($ac_try" in
18658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18659   *) ac_try_echo=$ac_try;;
18660 esac
18661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18662   (eval "$ac_try") 2>&5
18663   ac_status=$?
18664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665   (exit $ac_status); }; } &&
18666          { ac_try='test -s conftest$ac_exeext'
18667   { (case "(($ac_try" in
18668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18669   *) ac_try_echo=$ac_try;;
18670 esac
18671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18672   (eval "$ac_try") 2>&5
18673   ac_status=$?
18674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675   (exit $ac_status); }; }; then
18676   ac_cv_lib_gcc___lshrdi3=yes
18677 else
18678   echo "$as_me: failed program was:" >&5
18679 sed 's/^/| /' conftest.$ac_ext >&5
18680
18681         ac_cv_lib_gcc___lshrdi3=no
18682 fi
18683
18684 rm -f core conftest.err conftest.$ac_objext \
18685       conftest$ac_exeext conftest.$ac_ext
18686 LIBS=$ac_check_lib_save_LIBS
18687 fi
18688 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18689 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18690 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18691
18692 cat >>confdefs.h <<\_ACEOF
18693 #define HAVE___LSHRDI3 1
18694 _ACEOF
18695
18696 fi
18697
18698   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18699 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18700 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18701   echo $ECHO_N "(cached) $ECHO_C" >&6
18702 else
18703   ac_check_lib_save_LIBS=$LIBS
18704 LIBS="-lgcc  $LIBS"
18705 cat >conftest.$ac_ext <<_ACEOF
18706 /* confdefs.h.  */
18707 _ACEOF
18708 cat confdefs.h >>conftest.$ac_ext
18709 cat >>conftest.$ac_ext <<_ACEOF
18710 /* end confdefs.h.  */
18711
18712 /* Override any GCC internal prototype to avoid an error.
18713    Use char because int might match the return type of a GCC
18714    builtin and then its argument prototype would still apply.  */
18715 #ifdef __cplusplus
18716 extern "C"
18717 #endif
18718 char __moddi3 ();
18719 int
18720 main ()
18721 {
18722 return __moddi3 ();
18723   ;
18724   return 0;
18725 }
18726 _ACEOF
18727 rm -f conftest.$ac_objext conftest$ac_exeext
18728 if { (ac_try="$ac_link"
18729 case "(($ac_try" in
18730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18731   *) ac_try_echo=$ac_try;;
18732 esac
18733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18734   (eval "$ac_link") 2>conftest.er1
18735   ac_status=$?
18736   grep -v '^ *+' conftest.er1 >conftest.err
18737   rm -f conftest.er1
18738   cat conftest.err >&5
18739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740   (exit $ac_status); } &&
18741          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18742   { (case "(($ac_try" in
18743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18744   *) ac_try_echo=$ac_try;;
18745 esac
18746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18747   (eval "$ac_try") 2>&5
18748   ac_status=$?
18749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750   (exit $ac_status); }; } &&
18751          { ac_try='test -s conftest$ac_exeext'
18752   { (case "(($ac_try" in
18753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18754   *) ac_try_echo=$ac_try;;
18755 esac
18756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18757   (eval "$ac_try") 2>&5
18758   ac_status=$?
18759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760   (exit $ac_status); }; }; then
18761   ac_cv_lib_gcc___moddi3=yes
18762 else
18763   echo "$as_me: failed program was:" >&5
18764 sed 's/^/| /' conftest.$ac_ext >&5
18765
18766         ac_cv_lib_gcc___moddi3=no
18767 fi
18768
18769 rm -f core conftest.err conftest.$ac_objext \
18770       conftest$ac_exeext conftest.$ac_ext
18771 LIBS=$ac_check_lib_save_LIBS
18772 fi
18773 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18774 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18775 if test $ac_cv_lib_gcc___moddi3 = yes; then
18776
18777 cat >>confdefs.h <<\_ACEOF
18778 #define HAVE___MODDI3 1
18779 _ACEOF
18780
18781 fi
18782
18783   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18784 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18785 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18786   echo $ECHO_N "(cached) $ECHO_C" >&6
18787 else
18788   ac_check_lib_save_LIBS=$LIBS
18789 LIBS="-lgcc  $LIBS"
18790 cat >conftest.$ac_ext <<_ACEOF
18791 /* confdefs.h.  */
18792 _ACEOF
18793 cat confdefs.h >>conftest.$ac_ext
18794 cat >>conftest.$ac_ext <<_ACEOF
18795 /* end confdefs.h.  */
18796
18797 /* Override any GCC internal prototype to avoid an error.
18798    Use char because int might match the return type of a GCC
18799    builtin and then its argument prototype would still apply.  */
18800 #ifdef __cplusplus
18801 extern "C"
18802 #endif
18803 char __udivdi3 ();
18804 int
18805 main ()
18806 {
18807 return __udivdi3 ();
18808   ;
18809   return 0;
18810 }
18811 _ACEOF
18812 rm -f conftest.$ac_objext conftest$ac_exeext
18813 if { (ac_try="$ac_link"
18814 case "(($ac_try" in
18815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18816   *) ac_try_echo=$ac_try;;
18817 esac
18818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18819   (eval "$ac_link") 2>conftest.er1
18820   ac_status=$?
18821   grep -v '^ *+' conftest.er1 >conftest.err
18822   rm -f conftest.er1
18823   cat conftest.err >&5
18824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825   (exit $ac_status); } &&
18826          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18827   { (case "(($ac_try" in
18828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18829   *) ac_try_echo=$ac_try;;
18830 esac
18831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18832   (eval "$ac_try") 2>&5
18833   ac_status=$?
18834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835   (exit $ac_status); }; } &&
18836          { ac_try='test -s conftest$ac_exeext'
18837   { (case "(($ac_try" in
18838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18839   *) ac_try_echo=$ac_try;;
18840 esac
18841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18842   (eval "$ac_try") 2>&5
18843   ac_status=$?
18844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845   (exit $ac_status); }; }; then
18846   ac_cv_lib_gcc___udivdi3=yes
18847 else
18848   echo "$as_me: failed program was:" >&5
18849 sed 's/^/| /' conftest.$ac_ext >&5
18850
18851         ac_cv_lib_gcc___udivdi3=no
18852 fi
18853
18854 rm -f core conftest.err conftest.$ac_objext \
18855       conftest$ac_exeext conftest.$ac_ext
18856 LIBS=$ac_check_lib_save_LIBS
18857 fi
18858 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18859 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18860 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18861
18862 cat >>confdefs.h <<\_ACEOF
18863 #define HAVE___UDIVDI3 1
18864 _ACEOF
18865
18866 fi
18867
18868   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18869 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18870 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18871   echo $ECHO_N "(cached) $ECHO_C" >&6
18872 else
18873   ac_check_lib_save_LIBS=$LIBS
18874 LIBS="-lgcc  $LIBS"
18875 cat >conftest.$ac_ext <<_ACEOF
18876 /* confdefs.h.  */
18877 _ACEOF
18878 cat confdefs.h >>conftest.$ac_ext
18879 cat >>conftest.$ac_ext <<_ACEOF
18880 /* end confdefs.h.  */
18881
18882 /* Override any GCC internal prototype to avoid an error.
18883    Use char because int might match the return type of a GCC
18884    builtin and then its argument prototype would still apply.  */
18885 #ifdef __cplusplus
18886 extern "C"
18887 #endif
18888 char __umoddi3 ();
18889 int
18890 main ()
18891 {
18892 return __umoddi3 ();
18893   ;
18894   return 0;
18895 }
18896 _ACEOF
18897 rm -f conftest.$ac_objext conftest$ac_exeext
18898 if { (ac_try="$ac_link"
18899 case "(($ac_try" in
18900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18901   *) ac_try_echo=$ac_try;;
18902 esac
18903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18904   (eval "$ac_link") 2>conftest.er1
18905   ac_status=$?
18906   grep -v '^ *+' conftest.er1 >conftest.err
18907   rm -f conftest.er1
18908   cat conftest.err >&5
18909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910   (exit $ac_status); } &&
18911          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18912   { (case "(($ac_try" in
18913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18914   *) ac_try_echo=$ac_try;;
18915 esac
18916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18917   (eval "$ac_try") 2>&5
18918   ac_status=$?
18919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920   (exit $ac_status); }; } &&
18921          { ac_try='test -s conftest$ac_exeext'
18922   { (case "(($ac_try" in
18923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18924   *) ac_try_echo=$ac_try;;
18925 esac
18926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18927   (eval "$ac_try") 2>&5
18928   ac_status=$?
18929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930   (exit $ac_status); }; }; then
18931   ac_cv_lib_gcc___umoddi3=yes
18932 else
18933   echo "$as_me: failed program was:" >&5
18934 sed 's/^/| /' conftest.$ac_ext >&5
18935
18936         ac_cv_lib_gcc___umoddi3=no
18937 fi
18938
18939 rm -f core conftest.err conftest.$ac_objext \
18940       conftest$ac_exeext conftest.$ac_ext
18941 LIBS=$ac_check_lib_save_LIBS
18942 fi
18943 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18944 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18945 if test $ac_cv_lib_gcc___umoddi3 = yes; then
18946
18947 cat >>confdefs.h <<\_ACEOF
18948 #define HAVE___UMODDI3 1
18949 _ACEOF
18950
18951 fi
18952
18953
18954   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18955 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18956 if test "${ac_cv_lib_gcc___main+set}" = set; then
18957   echo $ECHO_N "(cached) $ECHO_C" >&6
18958 else
18959   ac_check_lib_save_LIBS=$LIBS
18960 LIBS="-lgcc  $LIBS"
18961 cat >conftest.$ac_ext <<_ACEOF
18962 /* confdefs.h.  */
18963 _ACEOF
18964 cat confdefs.h >>conftest.$ac_ext
18965 cat >>conftest.$ac_ext <<_ACEOF
18966 /* end confdefs.h.  */
18967
18968 /* Override any GCC internal prototype to avoid an error.
18969    Use char because int might match the return type of a GCC
18970    builtin and then its argument prototype would still apply.  */
18971 #ifdef __cplusplus
18972 extern "C"
18973 #endif
18974 char __main ();
18975 int
18976 main ()
18977 {
18978 return __main ();
18979   ;
18980   return 0;
18981 }
18982 _ACEOF
18983 rm -f conftest.$ac_objext conftest$ac_exeext
18984 if { (ac_try="$ac_link"
18985 case "(($ac_try" in
18986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18987   *) ac_try_echo=$ac_try;;
18988 esac
18989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18990   (eval "$ac_link") 2>conftest.er1
18991   ac_status=$?
18992   grep -v '^ *+' conftest.er1 >conftest.err
18993   rm -f conftest.er1
18994   cat conftest.err >&5
18995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996   (exit $ac_status); } &&
18997          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18998   { (case "(($ac_try" in
18999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19000   *) ac_try_echo=$ac_try;;
19001 esac
19002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19003   (eval "$ac_try") 2>&5
19004   ac_status=$?
19005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006   (exit $ac_status); }; } &&
19007          { ac_try='test -s conftest$ac_exeext'
19008   { (case "(($ac_try" in
19009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19010   *) ac_try_echo=$ac_try;;
19011 esac
19012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19013   (eval "$ac_try") 2>&5
19014   ac_status=$?
19015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016   (exit $ac_status); }; }; then
19017   ac_cv_lib_gcc___main=yes
19018 else
19019   echo "$as_me: failed program was:" >&5
19020 sed 's/^/| /' conftest.$ac_ext >&5
19021
19022         ac_cv_lib_gcc___main=no
19023 fi
19024
19025 rm -f core conftest.err conftest.$ac_objext \
19026       conftest$ac_exeext conftest.$ac_ext
19027 LIBS=$ac_check_lib_save_LIBS
19028 fi
19029 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19030 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19031 if test $ac_cv_lib_gcc___main = yes; then
19032
19033 cat >>confdefs.h <<\_ACEOF
19034 #define HAVE___MAIN 1
19035 _ACEOF
19036
19037 fi
19038
19039   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19040 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19041 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19042   echo $ECHO_N "(cached) $ECHO_C" >&6
19043 else
19044   ac_check_lib_save_LIBS=$LIBS
19045 LIBS="-lgcc  $LIBS"
19046 cat >conftest.$ac_ext <<_ACEOF
19047 /* confdefs.h.  */
19048 _ACEOF
19049 cat confdefs.h >>conftest.$ac_ext
19050 cat >>conftest.$ac_ext <<_ACEOF
19051 /* end confdefs.h.  */
19052
19053 /* Override any GCC internal prototype to avoid an error.
19054    Use char because int might match the return type of a GCC
19055    builtin and then its argument prototype would still apply.  */
19056 #ifdef __cplusplus
19057 extern "C"
19058 #endif
19059 char __cmpdi2 ();
19060 int
19061 main ()
19062 {
19063 return __cmpdi2 ();
19064   ;
19065   return 0;
19066 }
19067 _ACEOF
19068 rm -f conftest.$ac_objext conftest$ac_exeext
19069 if { (ac_try="$ac_link"
19070 case "(($ac_try" in
19071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19072   *) ac_try_echo=$ac_try;;
19073 esac
19074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19075   (eval "$ac_link") 2>conftest.er1
19076   ac_status=$?
19077   grep -v '^ *+' conftest.er1 >conftest.err
19078   rm -f conftest.er1
19079   cat conftest.err >&5
19080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081   (exit $ac_status); } &&
19082          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19083   { (case "(($ac_try" in
19084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19085   *) ac_try_echo=$ac_try;;
19086 esac
19087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19088   (eval "$ac_try") 2>&5
19089   ac_status=$?
19090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091   (exit $ac_status); }; } &&
19092          { ac_try='test -s conftest$ac_exeext'
19093   { (case "(($ac_try" in
19094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19095   *) ac_try_echo=$ac_try;;
19096 esac
19097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19098   (eval "$ac_try") 2>&5
19099   ac_status=$?
19100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101   (exit $ac_status); }; }; then
19102   ac_cv_lib_gcc___cmpdi2=yes
19103 else
19104   echo "$as_me: failed program was:" >&5
19105 sed 's/^/| /' conftest.$ac_ext >&5
19106
19107         ac_cv_lib_gcc___cmpdi2=no
19108 fi
19109
19110 rm -f core conftest.err conftest.$ac_objext \
19111       conftest$ac_exeext conftest.$ac_ext
19112 LIBS=$ac_check_lib_save_LIBS
19113 fi
19114 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19115 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19116 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19117
19118 cat >>confdefs.h <<\_ACEOF
19119 #define HAVE___CMPDI2 1
19120 _ACEOF
19121
19122 fi
19123
19124 fi
19125
19126 if test "$llvm_cv_os_type" = "MingW" ; then
19127   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19128 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19129   cat >conftest.$ac_ext <<_ACEOF
19130 #include <windows.h>
19131 #include <imagehlp.h>
19132 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19133 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19134 _ACEOF
19135 rm -f conftest.$ac_objext
19136 if { (ac_try="$ac_compile"
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_compile") 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_objext'
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
19170   { echo "$as_me:$LINENO: result: yes" >&5
19171 echo "${ECHO_T}yes" >&6; }
19172   llvm_cv_win32_elmcb_pcstr="PCSTR"
19173
19174 else
19175   echo "$as_me: failed program was:" >&5
19176 sed 's/^/| /' conftest.$ac_ext >&5
19177
19178
19179   { echo "$as_me:$LINENO: result: no" >&5
19180 echo "${ECHO_T}no" >&6; }
19181   llvm_cv_win32_elmcb_pcstr="PSTR"
19182
19183 fi
19184
19185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19186
19187 cat >>confdefs.h <<_ACEOF
19188 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19189 _ACEOF
19190
19191 fi
19192
19193
19194 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19195 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19196 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19197   echo $ECHO_N "(cached) $ECHO_C" >&6
19198 else
19199   ac_ext=cpp
19200 ac_cpp='$CXXCPP $CPPFLAGS'
19201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19204
19205    cat >conftest.$ac_ext <<_ACEOF
19206 /* confdefs.h.  */
19207 _ACEOF
19208 cat confdefs.h >>conftest.$ac_ext
19209 cat >>conftest.$ac_ext <<_ACEOF
19210 /* end confdefs.h.  */
19211 #include <math.h>
19212 int
19213 main ()
19214 {
19215 float f; isnan(f);
19216   ;
19217   return 0;
19218 }
19219 _ACEOF
19220 rm -f conftest.$ac_objext
19221 if { (ac_try="$ac_compile"
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_compile") 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_cxx_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_objext'
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_func_isnan_in_math_h=yes
19255 else
19256   echo "$as_me: failed program was:" >&5
19257 sed 's/^/| /' conftest.$ac_ext >&5
19258
19259         ac_cv_func_isnan_in_math_h=no
19260 fi
19261
19262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19263   ac_ext=c
19264 ac_cpp='$CPP $CPPFLAGS'
19265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19268
19269 fi
19270 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19271 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19272
19273
19274 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19275
19276 cat >>confdefs.h <<\_ACEOF
19277 #define HAVE_ISNAN_IN_MATH_H 1
19278 _ACEOF
19279
19280 fi
19281
19282 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19283 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19284 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19285   echo $ECHO_N "(cached) $ECHO_C" >&6
19286 else
19287   ac_ext=cpp
19288 ac_cpp='$CXXCPP $CPPFLAGS'
19289 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19290 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19291 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19292
19293    cat >conftest.$ac_ext <<_ACEOF
19294 /* confdefs.h.  */
19295 _ACEOF
19296 cat confdefs.h >>conftest.$ac_ext
19297 cat >>conftest.$ac_ext <<_ACEOF
19298 /* end confdefs.h.  */
19299 #include <cmath>
19300 int
19301 main ()
19302 {
19303 float f; isnan(f);
19304   ;
19305   return 0;
19306 }
19307 _ACEOF
19308 rm -f conftest.$ac_objext
19309 if { (ac_try="$ac_compile"
19310 case "(($ac_try" in
19311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19312   *) ac_try_echo=$ac_try;;
19313 esac
19314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19315   (eval "$ac_compile") 2>conftest.er1
19316   ac_status=$?
19317   grep -v '^ *+' conftest.er1 >conftest.err
19318   rm -f conftest.er1
19319   cat conftest.err >&5
19320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321   (exit $ac_status); } &&
19322          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19323   { (case "(($ac_try" in
19324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19325   *) ac_try_echo=$ac_try;;
19326 esac
19327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19328   (eval "$ac_try") 2>&5
19329   ac_status=$?
19330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331   (exit $ac_status); }; } &&
19332          { ac_try='test -s conftest.$ac_objext'
19333   { (case "(($ac_try" in
19334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19335   *) ac_try_echo=$ac_try;;
19336 esac
19337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19338   (eval "$ac_try") 2>&5
19339   ac_status=$?
19340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341   (exit $ac_status); }; }; then
19342   ac_cv_func_isnan_in_cmath=yes
19343 else
19344   echo "$as_me: failed program was:" >&5
19345 sed 's/^/| /' conftest.$ac_ext >&5
19346
19347         ac_cv_func_isnan_in_cmath=no
19348 fi
19349
19350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19351   ac_ext=c
19352 ac_cpp='$CPP $CPPFLAGS'
19353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19356
19357 fi
19358 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19359 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19360
19361 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19362
19363 cat >>confdefs.h <<\_ACEOF
19364 #define HAVE_ISNAN_IN_CMATH 1
19365 _ACEOF
19366
19367 fi
19368
19369 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19370 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19371 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19372   echo $ECHO_N "(cached) $ECHO_C" >&6
19373 else
19374   ac_ext=cpp
19375 ac_cpp='$CXXCPP $CPPFLAGS'
19376 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19377 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19378 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19379
19380    cat >conftest.$ac_ext <<_ACEOF
19381 /* confdefs.h.  */
19382 _ACEOF
19383 cat confdefs.h >>conftest.$ac_ext
19384 cat >>conftest.$ac_ext <<_ACEOF
19385 /* end confdefs.h.  */
19386 #include <cmath>
19387 int
19388 main ()
19389 {
19390 float f; std::isnan(f);
19391   ;
19392   return 0;
19393 }
19394 _ACEOF
19395 rm -f conftest.$ac_objext
19396 if { (ac_try="$ac_compile"
19397 case "(($ac_try" in
19398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19399   *) ac_try_echo=$ac_try;;
19400 esac
19401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19402   (eval "$ac_compile") 2>conftest.er1
19403   ac_status=$?
19404   grep -v '^ *+' conftest.er1 >conftest.err
19405   rm -f conftest.er1
19406   cat conftest.err >&5
19407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408   (exit $ac_status); } &&
19409          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19410   { (case "(($ac_try" in
19411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19412   *) ac_try_echo=$ac_try;;
19413 esac
19414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19415   (eval "$ac_try") 2>&5
19416   ac_status=$?
19417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418   (exit $ac_status); }; } &&
19419          { ac_try='test -s conftest.$ac_objext'
19420   { (case "(($ac_try" in
19421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19422   *) ac_try_echo=$ac_try;;
19423 esac
19424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19425   (eval "$ac_try") 2>&5
19426   ac_status=$?
19427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428   (exit $ac_status); }; }; then
19429   ac_cv_func_std_isnan_in_cmath=yes
19430 else
19431   echo "$as_me: failed program was:" >&5
19432 sed 's/^/| /' conftest.$ac_ext >&5
19433
19434         ac_cv_func_std_isnan_in_cmath=no
19435 fi
19436
19437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19438   ac_ext=c
19439 ac_cpp='$CPP $CPPFLAGS'
19440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19443
19444 fi
19445 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19446 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19447
19448 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19449
19450 cat >>confdefs.h <<\_ACEOF
19451 #define HAVE_STD_ISNAN_IN_CMATH 1
19452 _ACEOF
19453
19454 fi
19455
19456
19457 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19458 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19459 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19460   echo $ECHO_N "(cached) $ECHO_C" >&6
19461 else
19462   ac_ext=cpp
19463 ac_cpp='$CXXCPP $CPPFLAGS'
19464 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19465 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19466 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19467
19468    cat >conftest.$ac_ext <<_ACEOF
19469 /* confdefs.h.  */
19470 _ACEOF
19471 cat confdefs.h >>conftest.$ac_ext
19472 cat >>conftest.$ac_ext <<_ACEOF
19473 /* end confdefs.h.  */
19474 #include <math.h>
19475 int
19476 main ()
19477 {
19478 float f; isinf(f);
19479   ;
19480   return 0;
19481 }
19482 _ACEOF
19483 rm -f conftest.$ac_objext
19484 if { (ac_try="$ac_compile"
19485 case "(($ac_try" in
19486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19487   *) ac_try_echo=$ac_try;;
19488 esac
19489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19490   (eval "$ac_compile") 2>conftest.er1
19491   ac_status=$?
19492   grep -v '^ *+' conftest.er1 >conftest.err
19493   rm -f conftest.er1
19494   cat conftest.err >&5
19495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496   (exit $ac_status); } &&
19497          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19498   { (case "(($ac_try" in
19499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19500   *) ac_try_echo=$ac_try;;
19501 esac
19502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19503   (eval "$ac_try") 2>&5
19504   ac_status=$?
19505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506   (exit $ac_status); }; } &&
19507          { ac_try='test -s conftest.$ac_objext'
19508   { (case "(($ac_try" in
19509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19510   *) ac_try_echo=$ac_try;;
19511 esac
19512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19513   (eval "$ac_try") 2>&5
19514   ac_status=$?
19515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516   (exit $ac_status); }; }; then
19517   ac_cv_func_isinf_in_math_h=yes
19518 else
19519   echo "$as_me: failed program was:" >&5
19520 sed 's/^/| /' conftest.$ac_ext >&5
19521
19522         ac_cv_func_isinf_in_math_h=no
19523 fi
19524
19525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19526   ac_ext=c
19527 ac_cpp='$CPP $CPPFLAGS'
19528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19531
19532 fi
19533 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19534 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19535
19536 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19537
19538 cat >>confdefs.h <<\_ACEOF
19539 #define HAVE_ISINF_IN_MATH_H 1
19540 _ACEOF
19541
19542 fi
19543
19544 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19545 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19546 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19547   echo $ECHO_N "(cached) $ECHO_C" >&6
19548 else
19549   ac_ext=cpp
19550 ac_cpp='$CXXCPP $CPPFLAGS'
19551 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19552 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19553 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19554
19555    cat >conftest.$ac_ext <<_ACEOF
19556 /* confdefs.h.  */
19557 _ACEOF
19558 cat confdefs.h >>conftest.$ac_ext
19559 cat >>conftest.$ac_ext <<_ACEOF
19560 /* end confdefs.h.  */
19561 #include <cmath>
19562 int
19563 main ()
19564 {
19565 float f; isinf(f);
19566   ;
19567   return 0;
19568 }
19569 _ACEOF
19570 rm -f conftest.$ac_objext
19571 if { (ac_try="$ac_compile"
19572 case "(($ac_try" in
19573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19574   *) ac_try_echo=$ac_try;;
19575 esac
19576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19577   (eval "$ac_compile") 2>conftest.er1
19578   ac_status=$?
19579   grep -v '^ *+' conftest.er1 >conftest.err
19580   rm -f conftest.er1
19581   cat conftest.err >&5
19582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583   (exit $ac_status); } &&
19584          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19585   { (case "(($ac_try" in
19586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19587   *) ac_try_echo=$ac_try;;
19588 esac
19589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19590   (eval "$ac_try") 2>&5
19591   ac_status=$?
19592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593   (exit $ac_status); }; } &&
19594          { ac_try='test -s conftest.$ac_objext'
19595   { (case "(($ac_try" in
19596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19597   *) ac_try_echo=$ac_try;;
19598 esac
19599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19600   (eval "$ac_try") 2>&5
19601   ac_status=$?
19602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603   (exit $ac_status); }; }; then
19604   ac_cv_func_isinf_in_cmath=yes
19605 else
19606   echo "$as_me: failed program was:" >&5
19607 sed 's/^/| /' conftest.$ac_ext >&5
19608
19609         ac_cv_func_isinf_in_cmath=no
19610 fi
19611
19612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19613   ac_ext=c
19614 ac_cpp='$CPP $CPPFLAGS'
19615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19618
19619 fi
19620 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19621 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19622
19623 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19624
19625 cat >>confdefs.h <<\_ACEOF
19626 #define HAVE_ISINF_IN_CMATH 1
19627 _ACEOF
19628
19629 fi
19630
19631 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19632 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19633 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19634   echo $ECHO_N "(cached) $ECHO_C" >&6
19635 else
19636   ac_ext=cpp
19637 ac_cpp='$CXXCPP $CPPFLAGS'
19638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19641
19642    cat >conftest.$ac_ext <<_ACEOF
19643 /* confdefs.h.  */
19644 _ACEOF
19645 cat confdefs.h >>conftest.$ac_ext
19646 cat >>conftest.$ac_ext <<_ACEOF
19647 /* end confdefs.h.  */
19648 #include <cmath>
19649 int
19650 main ()
19651 {
19652 float f; std::isinf(f)}
19653   ;
19654   return 0;
19655 }
19656 _ACEOF
19657 rm -f conftest.$ac_objext
19658 if { (ac_try="$ac_compile"
19659 case "(($ac_try" in
19660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19661   *) ac_try_echo=$ac_try;;
19662 esac
19663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19664   (eval "$ac_compile") 2>conftest.er1
19665   ac_status=$?
19666   grep -v '^ *+' conftest.er1 >conftest.err
19667   rm -f conftest.er1
19668   cat conftest.err >&5
19669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670   (exit $ac_status); } &&
19671          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19672   { (case "(($ac_try" in
19673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19674   *) ac_try_echo=$ac_try;;
19675 esac
19676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19677   (eval "$ac_try") 2>&5
19678   ac_status=$?
19679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680   (exit $ac_status); }; } &&
19681          { ac_try='test -s conftest.$ac_objext'
19682   { (case "(($ac_try" in
19683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19684   *) ac_try_echo=$ac_try;;
19685 esac
19686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19687   (eval "$ac_try") 2>&5
19688   ac_status=$?
19689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690   (exit $ac_status); }; }; then
19691   ac_cv_func_std_isinf_in_cmath=yes
19692 else
19693   echo "$as_me: failed program was:" >&5
19694 sed 's/^/| /' conftest.$ac_ext >&5
19695
19696         ac_cv_func_std_isinf_in_cmath=no
19697 fi
19698
19699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19700   ac_ext=c
19701 ac_cpp='$CPP $CPPFLAGS'
19702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19705
19706 fi
19707 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19708 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19709
19710 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19711
19712 cat >>confdefs.h <<\_ACEOF
19713 #define HAVE_STD_ISINF_IN_CMATH 1
19714 _ACEOF
19715
19716 fi
19717
19718 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19719 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19720 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19721   echo $ECHO_N "(cached) $ECHO_C" >&6
19722 else
19723   ac_ext=cpp
19724 ac_cpp='$CXXCPP $CPPFLAGS'
19725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19728
19729    cat >conftest.$ac_ext <<_ACEOF
19730 /* confdefs.h.  */
19731 _ACEOF
19732 cat confdefs.h >>conftest.$ac_ext
19733 cat >>conftest.$ac_ext <<_ACEOF
19734 /* end confdefs.h.  */
19735 #include <ieeefp.h>
19736 int
19737 main ()
19738 {
19739 float f; finite(f);
19740   ;
19741   return 0;
19742 }
19743 _ACEOF
19744 rm -f conftest.$ac_objext
19745 if { (ac_try="$ac_compile"
19746 case "(($ac_try" in
19747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19748   *) ac_try_echo=$ac_try;;
19749 esac
19750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19751   (eval "$ac_compile") 2>conftest.er1
19752   ac_status=$?
19753   grep -v '^ *+' conftest.er1 >conftest.err
19754   rm -f conftest.er1
19755   cat conftest.err >&5
19756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757   (exit $ac_status); } &&
19758          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19759   { (case "(($ac_try" in
19760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19761   *) ac_try_echo=$ac_try;;
19762 esac
19763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19764   (eval "$ac_try") 2>&5
19765   ac_status=$?
19766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767   (exit $ac_status); }; } &&
19768          { ac_try='test -s conftest.$ac_objext'
19769   { (case "(($ac_try" in
19770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19771   *) ac_try_echo=$ac_try;;
19772 esac
19773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19774   (eval "$ac_try") 2>&5
19775   ac_status=$?
19776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777   (exit $ac_status); }; }; then
19778   ac_cv_func_finite_in_ieeefp_h=yes
19779 else
19780   echo "$as_me: failed program was:" >&5
19781 sed 's/^/| /' conftest.$ac_ext >&5
19782
19783         ac_cv_func_finite_in_ieeefp_h=no
19784 fi
19785
19786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19787   ac_ext=c
19788 ac_cpp='$CPP $CPPFLAGS'
19789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19792
19793 fi
19794 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19795 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19796
19797 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19798
19799 cat >>confdefs.h <<\_ACEOF
19800 #define HAVE_FINITE_IN_IEEEFP_H 1
19801 _ACEOF
19802
19803 fi
19804
19805
19806
19807 if test "$llvm_cv_platform_type" = "Unix" ; then
19808
19809
19810 for ac_header in stdlib.h unistd.h
19811 do
19812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19814   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19817   echo $ECHO_N "(cached) $ECHO_C" >&6
19818 fi
19819 ac_res=`eval echo '${'$as_ac_Header'}'`
19820                { echo "$as_me:$LINENO: result: $ac_res" >&5
19821 echo "${ECHO_T}$ac_res" >&6; }
19822 else
19823   # Is the header compilable?
19824 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19826 cat >conftest.$ac_ext <<_ACEOF
19827 /* confdefs.h.  */
19828 _ACEOF
19829 cat confdefs.h >>conftest.$ac_ext
19830 cat >>conftest.$ac_ext <<_ACEOF
19831 /* end confdefs.h.  */
19832 $ac_includes_default
19833 #include <$ac_header>
19834 _ACEOF
19835 rm -f conftest.$ac_objext
19836 if { (ac_try="$ac_compile"
19837 case "(($ac_try" in
19838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19839   *) ac_try_echo=$ac_try;;
19840 esac
19841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19842   (eval "$ac_compile") 2>conftest.er1
19843   ac_status=$?
19844   grep -v '^ *+' conftest.er1 >conftest.err
19845   rm -f conftest.er1
19846   cat conftest.err >&5
19847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848   (exit $ac_status); } &&
19849          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19850   { (case "(($ac_try" in
19851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19852   *) ac_try_echo=$ac_try;;
19853 esac
19854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19855   (eval "$ac_try") 2>&5
19856   ac_status=$?
19857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858   (exit $ac_status); }; } &&
19859          { ac_try='test -s conftest.$ac_objext'
19860   { (case "(($ac_try" in
19861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19862   *) ac_try_echo=$ac_try;;
19863 esac
19864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19865   (eval "$ac_try") 2>&5
19866   ac_status=$?
19867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868   (exit $ac_status); }; }; then
19869   ac_header_compiler=yes
19870 else
19871   echo "$as_me: failed program was:" >&5
19872 sed 's/^/| /' conftest.$ac_ext >&5
19873
19874         ac_header_compiler=no
19875 fi
19876
19877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19878 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19879 echo "${ECHO_T}$ac_header_compiler" >&6; }
19880
19881 # Is the header present?
19882 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19883 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19884 cat >conftest.$ac_ext <<_ACEOF
19885 /* confdefs.h.  */
19886 _ACEOF
19887 cat confdefs.h >>conftest.$ac_ext
19888 cat >>conftest.$ac_ext <<_ACEOF
19889 /* end confdefs.h.  */
19890 #include <$ac_header>
19891 _ACEOF
19892 if { (ac_try="$ac_cpp conftest.$ac_ext"
19893 case "(($ac_try" in
19894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19895   *) ac_try_echo=$ac_try;;
19896 esac
19897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19898   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19899   ac_status=$?
19900   grep -v '^ *+' conftest.er1 >conftest.err
19901   rm -f conftest.er1
19902   cat conftest.err >&5
19903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904   (exit $ac_status); } >/dev/null; then
19905   if test -s conftest.err; then
19906     ac_cpp_err=$ac_c_preproc_warn_flag
19907     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19908   else
19909     ac_cpp_err=
19910   fi
19911 else
19912   ac_cpp_err=yes
19913 fi
19914 if test -z "$ac_cpp_err"; then
19915   ac_header_preproc=yes
19916 else
19917   echo "$as_me: failed program was:" >&5
19918 sed 's/^/| /' conftest.$ac_ext >&5
19919
19920   ac_header_preproc=no
19921 fi
19922
19923 rm -f conftest.err conftest.$ac_ext
19924 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19925 echo "${ECHO_T}$ac_header_preproc" >&6; }
19926
19927 # So?  What about this header?
19928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19929   yes:no: )
19930     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19931 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19932     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19933 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19934     ac_header_preproc=yes
19935     ;;
19936   no:yes:* )
19937     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19938 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19939     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19940 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19941     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19942 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19943     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19944 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19945     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19947     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19948 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19949     ( cat <<\_ASBOX
19950 ## ------------------------------ ##
19951 ## Report this to bugs@yourdomain ##
19952 ## ------------------------------ ##
19953 _ASBOX
19954      ) | sed "s/^/$as_me: WARNING:     /" >&2
19955     ;;
19956 esac
19957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19960   echo $ECHO_N "(cached) $ECHO_C" >&6
19961 else
19962   eval "$as_ac_Header=\$ac_header_preproc"
19963 fi
19964 ac_res=`eval echo '${'$as_ac_Header'}'`
19965                { echo "$as_me:$LINENO: result: $ac_res" >&5
19966 echo "${ECHO_T}$ac_res" >&6; }
19967
19968 fi
19969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19970   cat >>confdefs.h <<_ACEOF
19971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19972 _ACEOF
19973
19974 fi
19975
19976 done
19977
19978
19979 for ac_func in getpagesize
19980 do
19981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19982 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19984 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19985   echo $ECHO_N "(cached) $ECHO_C" >&6
19986 else
19987   cat >conftest.$ac_ext <<_ACEOF
19988 /* confdefs.h.  */
19989 _ACEOF
19990 cat confdefs.h >>conftest.$ac_ext
19991 cat >>conftest.$ac_ext <<_ACEOF
19992 /* end confdefs.h.  */
19993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19994    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19995 #define $ac_func innocuous_$ac_func
19996
19997 /* System header to define __stub macros and hopefully few prototypes,
19998     which can conflict with char $ac_func (); below.
19999     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20000     <limits.h> exists even on freestanding compilers.  */
20001
20002 #ifdef __STDC__
20003 # include <limits.h>
20004 #else
20005 # include <assert.h>
20006 #endif
20007
20008 #undef $ac_func
20009
20010 /* Override any GCC internal prototype to avoid an error.
20011    Use char because int might match the return type of a GCC
20012    builtin and then its argument prototype would still apply.  */
20013 #ifdef __cplusplus
20014 extern "C"
20015 #endif
20016 char $ac_func ();
20017 /* The GNU C library defines this for functions which it implements
20018     to always fail with ENOSYS.  Some functions are actually named
20019     something starting with __ and the normal name is an alias.  */
20020 #if defined __stub_$ac_func || defined __stub___$ac_func
20021 choke me
20022 #endif
20023
20024 int
20025 main ()
20026 {
20027 return $ac_func ();
20028   ;
20029   return 0;
20030 }
20031 _ACEOF
20032 rm -f conftest.$ac_objext conftest$ac_exeext
20033 if { (ac_try="$ac_link"
20034 case "(($ac_try" in
20035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20036   *) ac_try_echo=$ac_try;;
20037 esac
20038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20039   (eval "$ac_link") 2>conftest.er1
20040   ac_status=$?
20041   grep -v '^ *+' conftest.er1 >conftest.err
20042   rm -f conftest.er1
20043   cat conftest.err >&5
20044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045   (exit $ac_status); } &&
20046          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20047   { (case "(($ac_try" in
20048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20049   *) ac_try_echo=$ac_try;;
20050 esac
20051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20052   (eval "$ac_try") 2>&5
20053   ac_status=$?
20054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055   (exit $ac_status); }; } &&
20056          { ac_try='test -s conftest$ac_exeext'
20057   { (case "(($ac_try" in
20058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20059   *) ac_try_echo=$ac_try;;
20060 esac
20061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20062   (eval "$ac_try") 2>&5
20063   ac_status=$?
20064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065   (exit $ac_status); }; }; then
20066   eval "$as_ac_var=yes"
20067 else
20068   echo "$as_me: failed program was:" >&5
20069 sed 's/^/| /' conftest.$ac_ext >&5
20070
20071         eval "$as_ac_var=no"
20072 fi
20073
20074 rm -f core conftest.err conftest.$ac_objext \
20075       conftest$ac_exeext conftest.$ac_ext
20076 fi
20077 ac_res=`eval echo '${'$as_ac_var'}'`
20078                { echo "$as_me:$LINENO: result: $ac_res" >&5
20079 echo "${ECHO_T}$ac_res" >&6; }
20080 if test `eval echo '${'$as_ac_var'}'` = yes; then
20081   cat >>confdefs.h <<_ACEOF
20082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20083 _ACEOF
20084
20085 fi
20086 done
20087
20088 { echo "$as_me:$LINENO: checking for working mmap" >&5
20089 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20090 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20091   echo $ECHO_N "(cached) $ECHO_C" >&6
20092 else
20093   if test "$cross_compiling" = yes; then
20094   ac_cv_func_mmap_fixed_mapped=no
20095 else
20096   cat >conftest.$ac_ext <<_ACEOF
20097 /* confdefs.h.  */
20098 _ACEOF
20099 cat confdefs.h >>conftest.$ac_ext
20100 cat >>conftest.$ac_ext <<_ACEOF
20101 /* end confdefs.h.  */
20102 $ac_includes_default
20103 /* malloc might have been renamed as rpl_malloc. */
20104 #undef malloc
20105
20106 /* Thanks to Mike Haertel and Jim Avera for this test.
20107    Here is a matrix of mmap possibilities:
20108         mmap private not fixed
20109         mmap private fixed at somewhere currently unmapped
20110         mmap private fixed at somewhere already mapped
20111         mmap shared not fixed
20112         mmap shared fixed at somewhere currently unmapped
20113         mmap shared fixed at somewhere already mapped
20114    For private mappings, we should verify that changes cannot be read()
20115    back from the file, nor mmap's back from the file at a different
20116    address.  (There have been systems where private was not correctly
20117    implemented like the infamous i386 svr4.0, and systems where the
20118    VM page cache was not coherent with the file system buffer cache
20119    like early versions of FreeBSD and possibly contemporary NetBSD.)
20120    For shared mappings, we should conversely verify that changes get
20121    propagated back to all the places they're supposed to be.
20122
20123    Grep wants private fixed already mapped.
20124    The main things grep needs to know about mmap are:
20125    * does it exist and is it safe to write into the mmap'd area
20126    * how to use it (BSD variants)  */
20127
20128 #include <fcntl.h>
20129 #include <sys/mman.h>
20130
20131 #if !STDC_HEADERS && !HAVE_STDLIB_H
20132 char *malloc ();
20133 #endif
20134
20135 /* This mess was copied from the GNU getpagesize.h.  */
20136 #if !HAVE_GETPAGESIZE
20137 /* Assume that all systems that can run configure have sys/param.h.  */
20138 # if !HAVE_SYS_PARAM_H
20139 #  define HAVE_SYS_PARAM_H 1
20140 # endif
20141
20142 # ifdef _SC_PAGESIZE
20143 #  define getpagesize() sysconf(_SC_PAGESIZE)
20144 # else /* no _SC_PAGESIZE */
20145 #  if HAVE_SYS_PARAM_H
20146 #   include <sys/param.h>
20147 #   ifdef EXEC_PAGESIZE
20148 #    define getpagesize() EXEC_PAGESIZE
20149 #   else /* no EXEC_PAGESIZE */
20150 #    ifdef NBPG
20151 #     define getpagesize() NBPG * CLSIZE
20152 #     ifndef CLSIZE
20153 #      define CLSIZE 1
20154 #     endif /* no CLSIZE */
20155 #    else /* no NBPG */
20156 #     ifdef NBPC
20157 #      define getpagesize() NBPC
20158 #     else /* no NBPC */
20159 #      ifdef PAGESIZE
20160 #       define getpagesize() PAGESIZE
20161 #      endif /* PAGESIZE */
20162 #     endif /* no NBPC */
20163 #    endif /* no NBPG */
20164 #   endif /* no EXEC_PAGESIZE */
20165 #  else /* no HAVE_SYS_PARAM_H */
20166 #   define getpagesize() 8192   /* punt totally */
20167 #  endif /* no HAVE_SYS_PARAM_H */
20168 # endif /* no _SC_PAGESIZE */
20169
20170 #endif /* no HAVE_GETPAGESIZE */
20171
20172 int
20173 main ()
20174 {
20175   char *data, *data2, *data3;
20176   int i, pagesize;
20177   int fd;
20178
20179   pagesize = getpagesize ();
20180
20181   /* First, make a file with some known garbage in it. */
20182   data = (char *) malloc (pagesize);
20183   if (!data)
20184     return 1;
20185   for (i = 0; i < pagesize; ++i)
20186     *(data + i) = rand ();
20187   umask (0);
20188   fd = creat ("conftest.mmap", 0600);
20189   if (fd < 0)
20190     return 1;
20191   if (write (fd, data, pagesize) != pagesize)
20192     return 1;
20193   close (fd);
20194
20195   /* Next, try to mmap the file at a fixed address which already has
20196      something else allocated at it.  If we can, also make sure that
20197      we see the same garbage.  */
20198   fd = open ("conftest.mmap", O_RDWR);
20199   if (fd < 0)
20200     return 1;
20201   data2 = (char *) malloc (2 * pagesize);
20202   if (!data2)
20203     return 1;
20204   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20205   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20206                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20207     return 1;
20208   for (i = 0; i < pagesize; ++i)
20209     if (*(data + i) != *(data2 + i))
20210       return 1;
20211
20212   /* Finally, make sure that changes to the mapped area do not
20213      percolate back to the file as seen by read().  (This is a bug on
20214      some variants of i386 svr4.0.)  */
20215   for (i = 0; i < pagesize; ++i)
20216     *(data2 + i) = *(data2 + i) + 1;
20217   data3 = (char *) malloc (pagesize);
20218   if (!data3)
20219     return 1;
20220   if (read (fd, data3, pagesize) != pagesize)
20221     return 1;
20222   for (i = 0; i < pagesize; ++i)
20223     if (*(data + i) != *(data3 + i))
20224       return 1;
20225   close (fd);
20226   return 0;
20227 }
20228 _ACEOF
20229 rm -f conftest$ac_exeext
20230 if { (ac_try="$ac_link"
20231 case "(($ac_try" in
20232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20233   *) ac_try_echo=$ac_try;;
20234 esac
20235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20236   (eval "$ac_link") 2>&5
20237   ac_status=$?
20238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20240   { (case "(($ac_try" in
20241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20242   *) ac_try_echo=$ac_try;;
20243 esac
20244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20245   (eval "$ac_try") 2>&5
20246   ac_status=$?
20247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248   (exit $ac_status); }; }; then
20249   ac_cv_func_mmap_fixed_mapped=yes
20250 else
20251   echo "$as_me: program exited with status $ac_status" >&5
20252 echo "$as_me: failed program was:" >&5
20253 sed 's/^/| /' conftest.$ac_ext >&5
20254
20255 ( exit $ac_status )
20256 ac_cv_func_mmap_fixed_mapped=no
20257 fi
20258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20259 fi
20260
20261
20262 fi
20263 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20264 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20265 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20266
20267 cat >>confdefs.h <<\_ACEOF
20268 #define HAVE_MMAP 1
20269 _ACEOF
20270
20271 fi
20272 rm -f conftest.mmap
20273
20274   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20275 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20276 if test "${ac_cv_func_mmap_file+set}" = set; then
20277   echo $ECHO_N "(cached) $ECHO_C" >&6
20278 else
20279    ac_ext=c
20280 ac_cpp='$CPP $CPPFLAGS'
20281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20284
20285   if test "$cross_compiling" = yes; then
20286   ac_cv_func_mmap_file=no
20287 else
20288   cat >conftest.$ac_ext <<_ACEOF
20289
20290     /* confdefs.h.  */
20291 _ACEOF
20292 cat confdefs.h >>conftest.$ac_ext
20293 cat >>conftest.$ac_ext <<_ACEOF
20294 /* end confdefs.h.  */
20295
20296 #include <sys/types.h>
20297 #include <sys/mman.h>
20298 #include <fcntl.h>
20299
20300 int
20301 main ()
20302 {
20303
20304   int fd;
20305   fd = creat ("foo",0777);
20306   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20307   unlink ("foo");
20308   return (fd != (int) MAP_FAILED);
20309   ;
20310   return 0;
20311 }
20312 _ACEOF
20313 rm -f conftest$ac_exeext
20314 if { (ac_try="$ac_link"
20315 case "(($ac_try" in
20316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20317   *) ac_try_echo=$ac_try;;
20318 esac
20319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20320   (eval "$ac_link") 2>&5
20321   ac_status=$?
20322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20324   { (case "(($ac_try" in
20325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326   *) ac_try_echo=$ac_try;;
20327 esac
20328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20329   (eval "$ac_try") 2>&5
20330   ac_status=$?
20331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332   (exit $ac_status); }; }; then
20333   ac_cv_func_mmap_file=yes
20334 else
20335   echo "$as_me: program exited with status $ac_status" >&5
20336 echo "$as_me: failed program was:" >&5
20337 sed 's/^/| /' conftest.$ac_ext >&5
20338
20339 ( exit $ac_status )
20340 ac_cv_func_mmap_file=no
20341 fi
20342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20343 fi
20344
20345
20346   ac_ext=c
20347 ac_cpp='$CPP $CPPFLAGS'
20348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20351
20352
20353 fi
20354 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20355 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20356 if test "$ac_cv_func_mmap_file" = yes; then
20357
20358 cat >>confdefs.h <<\_ACEOF
20359 #define HAVE_MMAP_FILE
20360 _ACEOF
20361
20362    MMAP_FILE=yes
20363
20364 fi
20365
20366   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20367 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20368 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20369   echo $ECHO_N "(cached) $ECHO_C" >&6
20370 else
20371   if test "$llvm_cv_os_type" = "Interix" ; then
20372    ac_cv_need_dev_zero_for_mmap=yes
20373  else
20374    ac_cv_need_dev_zero_for_mmap=no
20375  fi
20376
20377 fi
20378 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20379 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20380 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20381
20382 cat >>confdefs.h <<\_ACEOF
20383 #define NEED_DEV_ZERO_FOR_MMAP 1
20384 _ACEOF
20385
20386 fi
20387
20388   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20389   then
20390     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20391 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20392   fi
20393   if test "$ac_cv_func_mmap_file" = "no"
20394   then
20395     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20396 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20397   fi
20398 fi
20399
20400 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20401 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20402 ac_ext=cpp
20403 ac_cpp='$CXXCPP $CPPFLAGS'
20404 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20405 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20406 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20407
20408 cat >conftest.$ac_ext <<_ACEOF
20409 /* confdefs.h.  */
20410 _ACEOF
20411 cat confdefs.h >>conftest.$ac_ext
20412 cat >>conftest.$ac_ext <<_ACEOF
20413 /* end confdefs.h.  */
20414 int main() {
20415         volatile unsigned long val = 1;
20416         __sync_synchronize();
20417         __sync_val_compare_and_swap(&val, 1, 0);
20418         __sync_add_and_fetch(&val, 1);
20419         __sync_sub_and_fetch(&val, 1);
20420         return 0;
20421       }
20422
20423 _ACEOF
20424 rm -f conftest.$ac_objext conftest$ac_exeext
20425 if { (ac_try="$ac_link"
20426 case "(($ac_try" in
20427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20428   *) ac_try_echo=$ac_try;;
20429 esac
20430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20431   (eval "$ac_link") 2>conftest.er1
20432   ac_status=$?
20433   grep -v '^ *+' conftest.er1 >conftest.err
20434   rm -f conftest.er1
20435   cat conftest.err >&5
20436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437   (exit $ac_status); } &&
20438          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20439   { (case "(($ac_try" in
20440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20441   *) ac_try_echo=$ac_try;;
20442 esac
20443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20444   (eval "$ac_try") 2>&5
20445   ac_status=$?
20446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447   (exit $ac_status); }; } &&
20448          { ac_try='test -s conftest$ac_exeext'
20449   { (case "(($ac_try" in
20450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20451   *) ac_try_echo=$ac_try;;
20452 esac
20453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20454   (eval "$ac_try") 2>&5
20455   ac_status=$?
20456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457   (exit $ac_status); }; }; then
20458   ac_ext=c
20459 ac_cpp='$CPP $CPPFLAGS'
20460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20463
20464   { echo "$as_me:$LINENO: result: yes" >&5
20465 echo "${ECHO_T}yes" >&6; }
20466
20467 cat >>confdefs.h <<\_ACEOF
20468 #define LLVM_HAS_ATOMICS 1
20469 _ACEOF
20470
20471 else
20472   echo "$as_me: failed program was:" >&5
20473 sed 's/^/| /' conftest.$ac_ext >&5
20474
20475         { echo "$as_me:$LINENO: result: no" >&5
20476 echo "${ECHO_T}no" >&6; }
20477
20478 cat >>confdefs.h <<\_ACEOF
20479 #define LLVM_HAS_ATOMICS 0
20480 _ACEOF
20481
20482   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20483 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20484 fi
20485
20486 rm -f core conftest.err conftest.$ac_objext \
20487       conftest$ac_exeext conftest.$ac_ext
20488
20489
20490 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20491   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20492 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20493 if test "${llvm_cv_linux_mixed+set}" = set; then
20494   echo $ECHO_N "(cached) $ECHO_C" >&6
20495 else
20496    ac_ext=c
20497 ac_cpp='$CPP $CPPFLAGS'
20498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20501
20502   cat >conftest.$ac_ext <<_ACEOF
20503 /* confdefs.h.  */
20504 _ACEOF
20505 cat confdefs.h >>conftest.$ac_ext
20506 cat >>conftest.$ac_ext <<_ACEOF
20507 /* end confdefs.h.  */
20508 #ifndef __x86_64__
20509        error: Not x86-64 even if uname says so!
20510       #endif
20511
20512 int
20513 main ()
20514 {
20515
20516   ;
20517   return 0;
20518 }
20519 _ACEOF
20520 rm -f conftest.$ac_objext
20521 if { (ac_try="$ac_compile"
20522 case "(($ac_try" in
20523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20524   *) ac_try_echo=$ac_try;;
20525 esac
20526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20527   (eval "$ac_compile") 2>conftest.er1
20528   ac_status=$?
20529   grep -v '^ *+' conftest.er1 >conftest.err
20530   rm -f conftest.er1
20531   cat conftest.err >&5
20532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533   (exit $ac_status); } &&
20534          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20535   { (case "(($ac_try" in
20536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20537   *) ac_try_echo=$ac_try;;
20538 esac
20539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20540   (eval "$ac_try") 2>&5
20541   ac_status=$?
20542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543   (exit $ac_status); }; } &&
20544          { ac_try='test -s conftest.$ac_objext'
20545   { (case "(($ac_try" in
20546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20547   *) ac_try_echo=$ac_try;;
20548 esac
20549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20550   (eval "$ac_try") 2>&5
20551   ac_status=$?
20552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553   (exit $ac_status); }; }; then
20554   llvm_cv_linux_mixed=no
20555 else
20556   echo "$as_me: failed program was:" >&5
20557 sed 's/^/| /' conftest.$ac_ext >&5
20558
20559         llvm_cv_linux_mixed=yes
20560 fi
20561
20562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20563   ac_ext=c
20564 ac_cpp='$CPP $CPPFLAGS'
20565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20568
20569
20570 fi
20571 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20572 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20573
20574   if test "$llvm_cv_linux_mixed" = "yes"; then
20575     llvm_cv_target_arch="x86"
20576     ARCH="x86"
20577   fi
20578 fi
20579
20580
20581 for ac_func in __dso_handle
20582 do
20583 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20584 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20586 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20587   echo $ECHO_N "(cached) $ECHO_C" >&6
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20596    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20597 #define $ac_func innocuous_$ac_func
20598
20599 /* System header to define __stub macros and hopefully few prototypes,
20600     which can conflict with char $ac_func (); below.
20601     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20602     <limits.h> exists even on freestanding compilers.  */
20603
20604 #ifdef __STDC__
20605 # include <limits.h>
20606 #else
20607 # include <assert.h>
20608 #endif
20609
20610 #undef $ac_func
20611
20612 /* Override any GCC internal prototype to avoid an error.
20613    Use char because int might match the return type of a GCC
20614    builtin and then its argument prototype would still apply.  */
20615 #ifdef __cplusplus
20616 extern "C"
20617 #endif
20618 char $ac_func ();
20619 /* The GNU C library defines this for functions which it implements
20620     to always fail with ENOSYS.  Some functions are actually named
20621     something starting with __ and the normal name is an alias.  */
20622 #if defined __stub_$ac_func || defined __stub___$ac_func
20623 choke me
20624 #endif
20625
20626 int
20627 main ()
20628 {
20629 return $ac_func ();
20630   ;
20631   return 0;
20632 }
20633 _ACEOF
20634 rm -f conftest.$ac_objext conftest$ac_exeext
20635 if { (ac_try="$ac_link"
20636 case "(($ac_try" in
20637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20638   *) ac_try_echo=$ac_try;;
20639 esac
20640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20641   (eval "$ac_link") 2>conftest.er1
20642   ac_status=$?
20643   grep -v '^ *+' conftest.er1 >conftest.err
20644   rm -f conftest.er1
20645   cat conftest.err >&5
20646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647   (exit $ac_status); } &&
20648          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20649   { (case "(($ac_try" in
20650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20651   *) ac_try_echo=$ac_try;;
20652 esac
20653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20654   (eval "$ac_try") 2>&5
20655   ac_status=$?
20656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657   (exit $ac_status); }; } &&
20658          { ac_try='test -s conftest$ac_exeext'
20659   { (case "(($ac_try" in
20660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20661   *) ac_try_echo=$ac_try;;
20662 esac
20663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20664   (eval "$ac_try") 2>&5
20665   ac_status=$?
20666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667   (exit $ac_status); }; }; then
20668   eval "$as_ac_var=yes"
20669 else
20670   echo "$as_me: failed program was:" >&5
20671 sed 's/^/| /' conftest.$ac_ext >&5
20672
20673         eval "$as_ac_var=no"
20674 fi
20675
20676 rm -f core conftest.err conftest.$ac_objext \
20677       conftest$ac_exeext conftest.$ac_ext
20678 fi
20679 ac_res=`eval echo '${'$as_ac_var'}'`
20680                { echo "$as_me:$LINENO: result: $ac_res" >&5
20681 echo "${ECHO_T}$ac_res" >&6; }
20682 if test `eval echo '${'$as_ac_var'}'` = yes; then
20683   cat >>confdefs.h <<_ACEOF
20684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20685 _ACEOF
20686
20687 fi
20688 done
20689
20690
20691 SHLIBEXT=$libltdl_cv_shlibext
20692
20693
20694 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20695
20696
20697 # Translate the various configuration directories and other basic
20698 # information into substitutions that will end up in Makefile.config.in
20699 # that these configured values can be used by the makefiles
20700 if test "${prefix}" = "NONE" ; then
20701   prefix="/usr/local"
20702 fi
20703 eval LLVM_PREFIX="${prefix}";
20704 eval LLVM_BINDIR="${prefix}/bin";
20705 eval LLVM_LIBDIR="${prefix}/lib";
20706 eval LLVM_DATADIR="${prefix}/share/llvm";
20707 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20708 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20709 eval LLVM_INCLUDEDIR="${prefix}/include";
20710 eval LLVM_INFODIR="${prefix}/info";
20711 eval LLVM_MANDIR="${prefix}/man";
20712 LLVM_CONFIGTIME=`date`
20713
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723
20724 # Place the various directores into the config.h file as #defines so that we
20725 # can know about the installation paths within LLVM.
20726
20727 cat >>confdefs.h <<_ACEOF
20728 #define LLVM_PREFIX "$LLVM_PREFIX"
20729 _ACEOF
20730
20731
20732 cat >>confdefs.h <<_ACEOF
20733 #define LLVM_BINDIR "$LLVM_BINDIR"
20734 _ACEOF
20735
20736
20737 cat >>confdefs.h <<_ACEOF
20738 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20739 _ACEOF
20740
20741
20742 cat >>confdefs.h <<_ACEOF
20743 #define LLVM_DATADIR "$LLVM_DATADIR"
20744 _ACEOF
20745
20746
20747 cat >>confdefs.h <<_ACEOF
20748 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20749 _ACEOF
20750
20751
20752 cat >>confdefs.h <<_ACEOF
20753 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20754 _ACEOF
20755
20756
20757 cat >>confdefs.h <<_ACEOF
20758 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20759 _ACEOF
20760
20761
20762 cat >>confdefs.h <<_ACEOF
20763 #define LLVM_INFODIR "$LLVM_INFODIR"
20764 _ACEOF
20765
20766
20767 cat >>confdefs.h <<_ACEOF
20768 #define LLVM_MANDIR "$LLVM_MANDIR"
20769 _ACEOF
20770
20771
20772 cat >>confdefs.h <<_ACEOF
20773 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20774 _ACEOF
20775
20776
20777 cat >>confdefs.h <<_ACEOF
20778 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20779 _ACEOF
20780
20781
20782 # Determine which bindings to build.
20783 if test "$BINDINGS_TO_BUILD" = auto ; then
20784   BINDINGS_TO_BUILD=""
20785   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20786     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20787   fi
20788 fi
20789 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20790
20791
20792 # This isn't really configurey, but it avoids having to repeat the list in
20793 # other files.
20794 ALL_BINDINGS=ocaml
20795
20796
20797 # Do any work necessary to ensure that bindings have what they need.
20798 binding_prereqs_failed=0
20799 for a_binding in $BINDINGS_TO_BUILD ; do
20800   case "$a_binding" in
20801   ocaml)
20802     if test "x$OCAMLC" = x ; then
20803       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20804 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20805       binding_prereqs_failed=1
20806     fi
20807     if test "x$OCAMLDEP" = x ; then
20808       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20809 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20810       binding_prereqs_failed=1
20811     fi
20812     if test "x$OCAMLOPT" = x ; then
20813       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20814 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20815           fi
20816     if test "x$with_ocaml_libdir" != xauto ; then
20817       OCAML_LIBDIR=$with_ocaml_libdir
20818
20819     else
20820       ocaml_stdlib="`"$OCAMLC" -where`"
20821       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20822       then
20823         # ocaml stdlib is beneath our prefix; use stdlib
20824         OCAML_LIBDIR=$ocaml_stdlib
20825
20826       else
20827         # ocaml stdlib is outside our prefix; use libdir/ocaml
20828         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20829
20830       fi
20831     fi
20832     ;;
20833   esac
20834 done
20835 if test "$binding_prereqs_failed" = 1 ; then
20836   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20837 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20838    { (exit 1); exit 1; }; }
20839 fi
20840
20841 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20842 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20843 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20844   echo $ECHO_N "(cached) $ECHO_C" >&6
20845 else
20846    ac_ext=cpp
20847 ac_cpp='$CXXCPP $CPPFLAGS'
20848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20851
20852   oldcxxflags="$CXXFLAGS"
20853   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20854   cat >conftest.$ac_ext <<_ACEOF
20855 /* confdefs.h.  */
20856 _ACEOF
20857 cat confdefs.h >>conftest.$ac_ext
20858 cat >>conftest.$ac_ext <<_ACEOF
20859 /* end confdefs.h.  */
20860
20861 int
20862 main ()
20863 {
20864
20865   ;
20866   return 0;
20867 }
20868 _ACEOF
20869 rm -f conftest.$ac_objext
20870 if { (ac_try="$ac_compile"
20871 case "(($ac_try" in
20872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20873   *) ac_try_echo=$ac_try;;
20874 esac
20875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20876   (eval "$ac_compile") 2>conftest.er1
20877   ac_status=$?
20878   grep -v '^ *+' conftest.er1 >conftest.err
20879   rm -f conftest.er1
20880   cat conftest.err >&5
20881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882   (exit $ac_status); } &&
20883          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20884   { (case "(($ac_try" in
20885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20886   *) ac_try_echo=$ac_try;;
20887 esac
20888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20889   (eval "$ac_try") 2>&5
20890   ac_status=$?
20891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892   (exit $ac_status); }; } &&
20893          { ac_try='test -s conftest.$ac_objext'
20894   { (case "(($ac_try" in
20895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20896   *) ac_try_echo=$ac_try;;
20897 esac
20898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20899   (eval "$ac_try") 2>&5
20900   ac_status=$?
20901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902   (exit $ac_status); }; }; then
20903   llvm_cv_cxx_visibility_inlines_hidden=yes
20904 else
20905   echo "$as_me: failed program was:" >&5
20906 sed 's/^/| /' conftest.$ac_ext >&5
20907
20908         llvm_cv_cxx_visibility_inlines_hidden=no
20909 fi
20910
20911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20912   CXXFLAGS="$oldcxxflags"
20913   ac_ext=c
20914 ac_cpp='$CPP $CPPFLAGS'
20915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20918
20919
20920 fi
20921 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20922 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20923 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20924   ENABLE_VISIBILITY_INLINES_HIDDEN=1
20925
20926 else
20927   ENABLE_VISIBILITY_INLINES_HIDDEN=0
20928
20929 fi
20930
20931
20932 if test "$llvm_cv_link_use_r" = "yes" ; then
20933   RPATH="-Wl,-R"
20934 else
20935   RPATH="-Wl,-rpath"
20936 fi
20937
20938
20939 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20940   RDYNAMIC="-Wl,-export-dynamic"
20941 else
20942   RDYNAMIC=""
20943 fi
20944
20945
20946
20947
20948 ac_config_files="$ac_config_files Makefile.common"
20949
20950 ac_config_files="$ac_config_files Makefile.llvm.config"
20951
20952
20953 ac_config_commands="$ac_config_commands Makefile"
20954
20955
20956 ac_config_commands="$ac_config_commands lib/Makefile"
20957
20958
20959 ac_config_commands="$ac_config_commands lib/sample/Makefile"
20960
20961
20962 ac_config_commands="$ac_config_commands tools/Makefile"
20963
20964
20965 ac_config_commands="$ac_config_commands tools/sample/Makefile"
20966
20967
20968
20969 cat >confcache <<\_ACEOF
20970 # This file is a shell script that caches the results of configure
20971 # tests run on this system so they can be shared between configure
20972 # scripts and configure runs, see configure's option --config-cache.
20973 # It is not useful on other systems.  If it contains results you don't
20974 # want to keep, you may remove or edit it.
20975 #
20976 # config.status only pays attention to the cache file if you give it
20977 # the --recheck option to rerun configure.
20978 #
20979 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20980 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20981 # following values.
20982
20983 _ACEOF
20984
20985 # The following way of writing the cache mishandles newlines in values,
20986 # but we know of no workaround that is simple, portable, and efficient.
20987 # So, we kill variables containing newlines.
20988 # Ultrix sh set writes to stderr and can't be redirected directly,
20989 # and sets the high bit in the cache file unless we assign to the vars.
20990 (
20991   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20992     eval ac_val=\$$ac_var
20993     case $ac_val in #(
20994     *${as_nl}*)
20995       case $ac_var in #(
20996       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20997 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20998       esac
20999       case $ac_var in #(
21000       _ | IFS | as_nl) ;; #(
21001       *) $as_unset $ac_var ;;
21002       esac ;;
21003     esac
21004   done
21005
21006   (set) 2>&1 |
21007     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21008     *${as_nl}ac_space=\ *)
21009       # `set' does not quote correctly, so add quotes (double-quote
21010       # substitution turns \\\\ into \\, and sed turns \\ into \).
21011       sed -n \
21012         "s/'/'\\\\''/g;
21013           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21014       ;; #(
21015     *)
21016       # `set' quotes correctly as required by POSIX, so do not add quotes.
21017       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21018       ;;
21019     esac |
21020     sort
21021 ) |
21022   sed '
21023      /^ac_cv_env_/b end
21024      t clear
21025      :clear
21026      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21027      t end
21028      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21029      :end' >>confcache
21030 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21031   if test -w "$cache_file"; then
21032     test "x$cache_file" != "x/dev/null" &&
21033       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21034 echo "$as_me: updating cache $cache_file" >&6;}
21035     cat confcache >$cache_file
21036   else
21037     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21038 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21039   fi
21040 fi
21041 rm -f confcache
21042
21043 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21044 # Let make expand exec_prefix.
21045 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21046
21047 # Transform confdefs.h into DEFS.
21048 # Protect against shell expansion while executing Makefile rules.
21049 # Protect against Makefile macro expansion.
21050 #
21051 # If the first sed substitution is executed (which looks for macros that
21052 # take arguments), then branch to the quote section.  Otherwise,
21053 # look for a macro that doesn't take arguments.
21054 ac_script='
21055 t clear
21056 :clear
21057 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
21058 t quote
21059 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
21060 t quote
21061 b any
21062 :quote
21063 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21064 s/\[/\\&/g
21065 s/\]/\\&/g
21066 s/\$/$$/g
21067 H
21068 :any
21069 ${
21070         g
21071         s/^\n//
21072         s/\n/ /g
21073         p
21074 }
21075 '
21076 DEFS=`sed -n "$ac_script" confdefs.h`
21077
21078
21079 ac_libobjs=
21080 ac_ltlibobjs=
21081 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21082   # 1. Remove the extension, and $U if already installed.
21083   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21084   ac_i=`echo "$ac_i" | sed "$ac_script"`
21085   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21086   #    will be set to the directory where LIBOBJS objects are built.
21087   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21088   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21089 done
21090 LIBOBJS=$ac_libobjs
21091
21092 LTLIBOBJS=$ac_ltlibobjs
21093
21094
21095 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21096   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21097 Usually this means the macro was only invoked conditionally." >&5
21098 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21099 Usually this means the macro was only invoked conditionally." >&2;}
21100    { (exit 1); exit 1; }; }
21101 fi
21102 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21103   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21104 Usually this means the macro was only invoked conditionally." >&5
21105 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21106 Usually this means the macro was only invoked conditionally." >&2;}
21107    { (exit 1); exit 1; }; }
21108 fi
21109
21110 : ${CONFIG_STATUS=./config.status}
21111 ac_clean_files_save=$ac_clean_files
21112 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21113 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21114 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21115 cat >$CONFIG_STATUS <<_ACEOF
21116 #! $SHELL
21117 # Generated by $as_me.
21118 # Run this file to recreate the current configuration.
21119 # Compiler output produced by configure, useful for debugging
21120 # configure, is in config.log if it exists.
21121
21122 debug=false
21123 ac_cs_recheck=false
21124 ac_cs_silent=false
21125 SHELL=\${CONFIG_SHELL-$SHELL}
21126 _ACEOF
21127
21128 cat >>$CONFIG_STATUS <<\_ACEOF
21129 ## --------------------- ##
21130 ## M4sh Initialization.  ##
21131 ## --------------------- ##
21132
21133 # Be Bourne compatible
21134 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21135   emulate sh
21136   NULLCMD=:
21137   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21138   # is contrary to our usage.  Disable this feature.
21139   alias -g '${1+"$@"}'='"$@"'
21140   setopt NO_GLOB_SUBST
21141 else
21142   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21143 fi
21144 BIN_SH=xpg4; export BIN_SH # for Tru64
21145 DUALCASE=1; export DUALCASE # for MKS sh
21146
21147
21148 # PATH needs CR
21149 # Avoid depending upon Character Ranges.
21150 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21151 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21152 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21153 as_cr_digits='0123456789'
21154 as_cr_alnum=$as_cr_Letters$as_cr_digits
21155
21156 # The user is always right.
21157 if test "${PATH_SEPARATOR+set}" != set; then
21158   echo "#! /bin/sh" >conf$$.sh
21159   echo  "exit 0"   >>conf$$.sh
21160   chmod +x conf$$.sh
21161   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21162     PATH_SEPARATOR=';'
21163   else
21164     PATH_SEPARATOR=:
21165   fi
21166   rm -f conf$$.sh
21167 fi
21168
21169 # Support unset when possible.
21170 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21171   as_unset=unset
21172 else
21173   as_unset=false
21174 fi
21175
21176
21177 # IFS
21178 # We need space, tab and new line, in precisely that order.  Quoting is
21179 # there to prevent editors from complaining about space-tab.
21180 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21181 # splitting by setting IFS to empty value.)
21182 as_nl='
21183 '
21184 IFS=" ""        $as_nl"
21185
21186 # Find who we are.  Look in the path if we contain no directory separator.
21187 case $0 in
21188   *[\\/]* ) as_myself=$0 ;;
21189   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21190 for as_dir in $PATH
21191 do
21192   IFS=$as_save_IFS
21193   test -z "$as_dir" && as_dir=.
21194   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21195 done
21196 IFS=$as_save_IFS
21197
21198      ;;
21199 esac
21200 # We did not find ourselves, most probably we were run as `sh COMMAND'
21201 # in which case we are not to be found in the path.
21202 if test "x$as_myself" = x; then
21203   as_myself=$0
21204 fi
21205 if test ! -f "$as_myself"; then
21206   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21207   { (exit 1); exit 1; }
21208 fi
21209
21210 # Work around bugs in pre-3.0 UWIN ksh.
21211 for as_var in ENV MAIL MAILPATH
21212 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21213 done
21214 PS1='$ '
21215 PS2='> '
21216 PS4='+ '
21217
21218 # NLS nuisances.
21219 for as_var in \
21220   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21221   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21222   LC_TELEPHONE LC_TIME
21223 do
21224   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21225     eval $as_var=C; export $as_var
21226   else
21227     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21228   fi
21229 done
21230
21231 # Required to use basename.
21232 if expr a : '\(a\)' >/dev/null 2>&1 &&
21233    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21234   as_expr=expr
21235 else
21236   as_expr=false
21237 fi
21238
21239 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21240   as_basename=basename
21241 else
21242   as_basename=false
21243 fi
21244
21245
21246 # Name of the executable.
21247 as_me=`$as_basename -- "$0" ||
21248 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21249          X"$0" : 'X\(//\)$' \| \
21250          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21251 echo X/"$0" |
21252     sed '/^.*\/\([^/][^/]*\)\/*$/{
21253             s//\1/
21254             q
21255           }
21256           /^X\/\(\/\/\)$/{
21257             s//\1/
21258             q
21259           }
21260           /^X\/\(\/\).*/{
21261             s//\1/
21262             q
21263           }
21264           s/.*/./; q'`
21265
21266 # CDPATH.
21267 $as_unset CDPATH
21268
21269
21270
21271   as_lineno_1=$LINENO
21272   as_lineno_2=$LINENO
21273   test "x$as_lineno_1" != "x$as_lineno_2" &&
21274   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21275
21276   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21277   # uniformly replaced by the line number.  The first 'sed' inserts a
21278   # line-number line after each line using $LINENO; the second 'sed'
21279   # does the real work.  The second script uses 'N' to pair each
21280   # line-number line with the line containing $LINENO, and appends
21281   # trailing '-' during substitution so that $LINENO is not a special
21282   # case at line end.
21283   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21284   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21285   # E. McMahon (1931-1989) for sed's syntax.  :-)
21286   sed -n '
21287     p
21288     /[$]LINENO/=
21289   ' <$as_myself |
21290     sed '
21291       s/[$]LINENO.*/&-/
21292       t lineno
21293       b
21294       :lineno
21295       N
21296       :loop
21297       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21298       t loop
21299       s/-\n.*//
21300     ' >$as_me.lineno &&
21301   chmod +x "$as_me.lineno" ||
21302     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21303    { (exit 1); exit 1; }; }
21304
21305   # Don't try to exec as it changes $[0], causing all sort of problems
21306   # (the dirname of $[0] is not the place where we might find the
21307   # original and so on.  Autoconf is especially sensitive to this).
21308   . "./$as_me.lineno"
21309   # Exit status is that of the last command.
21310   exit
21311 }
21312
21313
21314 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21315   as_dirname=dirname
21316 else
21317   as_dirname=false
21318 fi
21319
21320 ECHO_C= ECHO_N= ECHO_T=
21321 case `echo -n x` in
21322 -n*)
21323   case `echo 'x\c'` in
21324   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21325   *)   ECHO_C='\c';;
21326   esac;;
21327 *)
21328   ECHO_N='-n';;
21329 esac
21330
21331 if expr a : '\(a\)' >/dev/null 2>&1 &&
21332    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21333   as_expr=expr
21334 else
21335   as_expr=false
21336 fi
21337
21338 rm -f conf$$ conf$$.exe conf$$.file
21339 if test -d conf$$.dir; then
21340   rm -f conf$$.dir/conf$$.file
21341 else
21342   rm -f conf$$.dir
21343   mkdir conf$$.dir
21344 fi
21345 echo >conf$$.file
21346 if ln -s conf$$.file conf$$ 2>/dev/null; then
21347   as_ln_s='ln -s'
21348   # ... but there are two gotchas:
21349   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21350   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21351   # In both cases, we have to default to `cp -p'.
21352   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21353     as_ln_s='cp -p'
21354 elif ln conf$$.file conf$$ 2>/dev/null; then
21355   as_ln_s=ln
21356 else
21357   as_ln_s='cp -p'
21358 fi
21359 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21360 rmdir conf$$.dir 2>/dev/null
21361
21362 if mkdir -p . 2>/dev/null; then
21363   as_mkdir_p=:
21364 else
21365   test -d ./-p && rmdir ./-p
21366   as_mkdir_p=false
21367 fi
21368
21369 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21370 # systems may use methods other than mode bits to determine executability.
21371 cat >conf$$.file <<_ASEOF
21372 #! /bin/sh
21373 exit 0
21374 _ASEOF
21375 chmod +x conf$$.file
21376 if test -x conf$$.file >/dev/null 2>&1; then
21377   as_executable_p="test -x"
21378 else
21379   as_executable_p=:
21380 fi
21381 rm -f conf$$.file
21382
21383 # Sed expression to map a string onto a valid CPP name.
21384 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21385
21386 # Sed expression to map a string onto a valid variable name.
21387 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21388
21389
21390 exec 6>&1
21391
21392 # Save the log message, to keep $[0] and so on meaningful, and to
21393 # report actual input values of CONFIG_FILES etc. instead of their
21394 # values after options handling.
21395 ac_log="
21396 This file was extended by [SAMPLE] $as_me [x.xx], which was
21397 generated by GNU Autoconf 2.60.  Invocation command line was
21398
21399   CONFIG_FILES    = $CONFIG_FILES
21400   CONFIG_HEADERS  = $CONFIG_HEADERS
21401   CONFIG_LINKS    = $CONFIG_LINKS
21402   CONFIG_COMMANDS = $CONFIG_COMMANDS
21403   $ $0 $@
21404
21405 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21406 "
21407
21408 _ACEOF
21409
21410 cat >>$CONFIG_STATUS <<_ACEOF
21411 # Files that config.status was made for.
21412 config_files="$ac_config_files"
21413 config_commands="$ac_config_commands"
21414
21415 _ACEOF
21416
21417 cat >>$CONFIG_STATUS <<\_ACEOF
21418 ac_cs_usage="\
21419 \`$as_me' instantiates files from templates according to the
21420 current configuration.
21421
21422 Usage: $0 [OPTIONS] [FILE]...
21423
21424   -h, --help       print this help, then exit
21425   -V, --version    print version number, then exit
21426   -q, --quiet      do not print progress messages
21427   -d, --debug      don't remove temporary files
21428       --recheck    update $as_me by reconfiguring in the same conditions
21429   --file=FILE[:TEMPLATE]
21430                    instantiate the configuration file FILE
21431
21432 Configuration files:
21433 $config_files
21434
21435 Configuration commands:
21436 $config_commands
21437
21438 Report bugs to <bug-autoconf@gnu.org>."
21439
21440 _ACEOF
21441 cat >>$CONFIG_STATUS <<_ACEOF
21442 ac_cs_version="\\
21443 [SAMPLE] config.status [x.xx]
21444 configured by $0, generated by GNU Autoconf 2.60,
21445   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21446
21447 Copyright (C) 2006 Free Software Foundation, Inc.
21448 This config.status script is free software; the Free Software Foundation
21449 gives unlimited permission to copy, distribute and modify it."
21450
21451 ac_pwd='$ac_pwd'
21452 srcdir='$srcdir'
21453 INSTALL='$INSTALL'
21454 _ACEOF
21455
21456 cat >>$CONFIG_STATUS <<\_ACEOF
21457 # If no file are specified by the user, then we need to provide default
21458 # value.  By we need to know if files were specified by the user.
21459 ac_need_defaults=:
21460 while test $# != 0
21461 do
21462   case $1 in
21463   --*=*)
21464     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21465     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21466     ac_shift=:
21467     ;;
21468   *)
21469     ac_option=$1
21470     ac_optarg=$2
21471     ac_shift=shift
21472     ;;
21473   esac
21474
21475   case $ac_option in
21476   # Handling of the options.
21477   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21478     ac_cs_recheck=: ;;
21479   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21480     echo "$ac_cs_version"; exit ;;
21481   --debug | --debu | --deb | --de | --d | -d )
21482     debug=: ;;
21483   --file | --fil | --fi | --f )
21484     $ac_shift
21485     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21486     ac_need_defaults=false;;
21487   --he | --h |  --help | --hel | -h )
21488     echo "$ac_cs_usage"; exit ;;
21489   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21490   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21491     ac_cs_silent=: ;;
21492
21493   # This is an error.
21494   -*) { echo "$as_me: error: unrecognized option: $1
21495 Try \`$0 --help' for more information." >&2
21496    { (exit 1); exit 1; }; } ;;
21497
21498   *) ac_config_targets="$ac_config_targets $1"
21499      ac_need_defaults=false ;;
21500
21501   esac
21502   shift
21503 done
21504
21505 ac_configure_extra_args=
21506
21507 if $ac_cs_silent; then
21508   exec 6>/dev/null
21509   ac_configure_extra_args="$ac_configure_extra_args --silent"
21510 fi
21511
21512 _ACEOF
21513 cat >>$CONFIG_STATUS <<_ACEOF
21514 if \$ac_cs_recheck; then
21515   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21516   CONFIG_SHELL=$SHELL
21517   export CONFIG_SHELL
21518   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21519 fi
21520
21521 _ACEOF
21522 cat >>$CONFIG_STATUS <<\_ACEOF
21523 exec 5>>config.log
21524 {
21525   echo
21526   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21527 ## Running $as_me. ##
21528 _ASBOX
21529   echo "$ac_log"
21530 } >&5
21531
21532 _ACEOF
21533 cat >>$CONFIG_STATUS <<_ACEOF
21534 #
21535 # INIT-COMMANDS
21536 #
21537 llvm_src="${LLVM_SRC}"
21538
21539 _ACEOF
21540
21541 cat >>$CONFIG_STATUS <<\_ACEOF
21542
21543 # Handling of arguments.
21544 for ac_config_target in $ac_config_targets
21545 do
21546   case $ac_config_target in
21547     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21548     "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
21549     "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
21550     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21551     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21552     "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21553     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21554     "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21555
21556   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21557 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21558    { (exit 1); exit 1; }; };;
21559   esac
21560 done
21561
21562
21563 # If the user did not use the arguments to specify the items to instantiate,
21564 # then the envvar interface is used.  Set only those that are not.
21565 # We use the long form for the default assignment because of an extremely
21566 # bizarre bug on SunOS 4.1.3.
21567 if $ac_need_defaults; then
21568   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21569   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21570 fi
21571
21572 # Have a temporary directory for convenience.  Make it in the build tree
21573 # simply because there is no reason against having it here, and in addition,
21574 # creating and moving files from /tmp can sometimes cause problems.
21575 # Hook for its removal unless debugging.
21576 # Note that there is a small window in which the directory will not be cleaned:
21577 # after its creation but before its name has been assigned to `$tmp'.
21578 $debug ||
21579 {
21580   tmp=
21581   trap 'exit_status=$?
21582   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21583 ' 0
21584   trap '{ (exit 1); exit 1; }' 1 2 13 15
21585 }
21586 # Create a (secure) tmp directory for tmp files.
21587
21588 {
21589   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21590   test -n "$tmp" && test -d "$tmp"
21591 }  ||
21592 {
21593   tmp=./conf$$-$RANDOM
21594   (umask 077 && mkdir "$tmp")
21595 } ||
21596 {
21597    echo "$me: cannot create a temporary directory in ." >&2
21598    { (exit 1); exit 1; }
21599 }
21600
21601 #
21602 # Set up the sed scripts for CONFIG_FILES section.
21603 #
21604
21605 # No need to generate the scripts if there are no CONFIG_FILES.
21606 # This happens for instance when ./config.status config.h
21607 if test -n "$CONFIG_FILES"; then
21608
21609 _ACEOF
21610
21611
21612
21613 ac_delim='%!_!# '
21614 for ac_last_try in false false false false false :; do
21615   cat >conf$$subs.sed <<_ACEOF
21616 SHELL!$SHELL$ac_delim
21617 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21618 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21619 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21620 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21621 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21622 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21623 exec_prefix!$exec_prefix$ac_delim
21624 prefix!$prefix$ac_delim
21625 program_transform_name!$program_transform_name$ac_delim
21626 bindir!$bindir$ac_delim
21627 sbindir!$sbindir$ac_delim
21628 libexecdir!$libexecdir$ac_delim
21629 datarootdir!$datarootdir$ac_delim
21630 datadir!$datadir$ac_delim
21631 sysconfdir!$sysconfdir$ac_delim
21632 sharedstatedir!$sharedstatedir$ac_delim
21633 localstatedir!$localstatedir$ac_delim
21634 includedir!$includedir$ac_delim
21635 oldincludedir!$oldincludedir$ac_delim
21636 docdir!$docdir$ac_delim
21637 infodir!$infodir$ac_delim
21638 htmldir!$htmldir$ac_delim
21639 dvidir!$dvidir$ac_delim
21640 pdfdir!$pdfdir$ac_delim
21641 psdir!$psdir$ac_delim
21642 libdir!$libdir$ac_delim
21643 localedir!$localedir$ac_delim
21644 mandir!$mandir$ac_delim
21645 DEFS!$DEFS$ac_delim
21646 ECHO_C!$ECHO_C$ac_delim
21647 ECHO_N!$ECHO_N$ac_delim
21648 ECHO_T!$ECHO_T$ac_delim
21649 LIBS!$LIBS$ac_delim
21650 build_alias!$build_alias$ac_delim
21651 host_alias!$host_alias$ac_delim
21652 target_alias!$target_alias$ac_delim
21653 LLVM_SRC!$LLVM_SRC$ac_delim
21654 LLVM_OBJ!$LLVM_OBJ$ac_delim
21655 LLVM_VERSION!$LLVM_VERSION$ac_delim
21656 CC!$CC$ac_delim
21657 CFLAGS!$CFLAGS$ac_delim
21658 LDFLAGS!$LDFLAGS$ac_delim
21659 CPPFLAGS!$CPPFLAGS$ac_delim
21660 ac_ct_CC!$ac_ct_CC$ac_delim
21661 EXEEXT!$EXEEXT$ac_delim
21662 OBJEXT!$OBJEXT$ac_delim
21663 CXX!$CXX$ac_delim
21664 CXXFLAGS!$CXXFLAGS$ac_delim
21665 ac_ct_CXX!$ac_ct_CXX$ac_delim
21666 CPP!$CPP$ac_delim
21667 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21668 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21669 subdirs!$subdirs$ac_delim
21670 build!$build$ac_delim
21671 build_cpu!$build_cpu$ac_delim
21672 build_vendor!$build_vendor$ac_delim
21673 build_os!$build_os$ac_delim
21674 host!$host$ac_delim
21675 host_cpu!$host_cpu$ac_delim
21676 host_vendor!$host_vendor$ac_delim
21677 host_os!$host_os$ac_delim
21678 target!$target$ac_delim
21679 target_cpu!$target_cpu$ac_delim
21680 target_vendor!$target_vendor$ac_delim
21681 target_os!$target_os$ac_delim
21682 OS!$OS$ac_delim
21683 HOST_OS!$HOST_OS$ac_delim
21684 TARGET_OS!$TARGET_OS$ac_delim
21685 LINKALL!$LINKALL$ac_delim
21686 NOLINKALL!$NOLINKALL$ac_delim
21687 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21688 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21689 ARCH!$ARCH$ac_delim
21690 ENDIAN!$ENDIAN$ac_delim
21691 GREP!$GREP$ac_delim
21692 EGREP!$EGREP$ac_delim
21693 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21694 BUILD_CC!$BUILD_CC$ac_delim
21695 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21696 BUILD_CXX!$BUILD_CXX$ac_delim
21697 CVSBUILD!$CVSBUILD$ac_delim
21698 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21699 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21700 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21701 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21702 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21703 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21704 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21705 JIT!$JIT$ac_delim
21706 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21707 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21708 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21709 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21710 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21711 ENABLE_PIC!$ENABLE_PIC$ac_delim
21712 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21713 _ACEOF
21714
21715   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21716     break
21717   elif $ac_last_try; then
21718     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21719 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21720    { (exit 1); exit 1; }; }
21721   else
21722     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21723   fi
21724 done
21725
21726 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21727 if test -n "$ac_eof"; then
21728   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21729   ac_eof=`expr $ac_eof + 1`
21730 fi
21731
21732 cat >>$CONFIG_STATUS <<_ACEOF
21733 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21734 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21735 _ACEOF
21736 sed '
21737 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21738 s/^/s,@/; s/!/@,|#_!!_#|/
21739 :n
21740 t n
21741 s/'"$ac_delim"'$/,g/; t
21742 s/$/\\/; p
21743 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21744 ' >>$CONFIG_STATUS <conf$$subs.sed
21745 rm -f conf$$subs.sed
21746 cat >>$CONFIG_STATUS <<_ACEOF
21747 CEOF$ac_eof
21748 _ACEOF
21749
21750
21751 ac_delim='%!_!# '
21752 for ac_last_try in false false false false false :; do
21753   cat >conf$$subs.sed <<_ACEOF
21754 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21755 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21756 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21757 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21758 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21759 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21760 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21761 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21762 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21763 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21764 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21765 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21766 NM!$NM$ac_delim
21767 ifGNUmake!$ifGNUmake$ac_delim
21768 LN_S!$LN_S$ac_delim
21769 CMP!$CMP$ac_delim
21770 CP!$CP$ac_delim
21771 DATE!$DATE$ac_delim
21772 FIND!$FIND$ac_delim
21773 MKDIR!$MKDIR$ac_delim
21774 MV!$MV$ac_delim
21775 RANLIB!$RANLIB$ac_delim
21776 AR!$AR$ac_delim
21777 RM!$RM$ac_delim
21778 SED!$SED$ac_delim
21779 TAR!$TAR$ac_delim
21780 BINPWD!$BINPWD$ac_delim
21781 GRAPHVIZ!$GRAPHVIZ$ac_delim
21782 DOT!$DOT$ac_delim
21783 FDP!$FDP$ac_delim
21784 NEATO!$NEATO$ac_delim
21785 TWOPI!$TWOPI$ac_delim
21786 CIRCO!$CIRCO$ac_delim
21787 GV!$GV$ac_delim
21788 DOTTY!$DOTTY$ac_delim
21789 XDOT_PY!$XDOT_PY$ac_delim
21790 PERL!$PERL$ac_delim
21791 HAVE_PERL!$HAVE_PERL$ac_delim
21792 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21793 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21794 INSTALL_DATA!$INSTALL_DATA$ac_delim
21795 BZIP2!$BZIP2$ac_delim
21796 CAT!$CAT$ac_delim
21797 DOXYGEN!$DOXYGEN$ac_delim
21798 GROFF!$GROFF$ac_delim
21799 GZIPBIN!$GZIPBIN$ac_delim
21800 POD2HTML!$POD2HTML$ac_delim
21801 POD2MAN!$POD2MAN$ac_delim
21802 PDFROFF!$PDFROFF$ac_delim
21803 RUNTEST!$RUNTEST$ac_delim
21804 TCLSH!$TCLSH$ac_delim
21805 ZIP!$ZIP$ac_delim
21806 OCAMLC!$OCAMLC$ac_delim
21807 OCAMLOPT!$OCAMLOPT$ac_delim
21808 OCAMLDEP!$OCAMLDEP$ac_delim
21809 OCAMLDOC!$OCAMLDOC$ac_delim
21810 GAS!$GAS$ac_delim
21811 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21812 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21813 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21814 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21815 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21816 LIBADD_DL!$LIBADD_DL$ac_delim
21817 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21818 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21819 USE_UDIS86!$USE_UDIS86$ac_delim
21820 USE_OPROFILE!$USE_OPROFILE$ac_delim
21821 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21822 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21823 MMAP_FILE!$MMAP_FILE$ac_delim
21824 SHLIBEXT!$SHLIBEXT$ac_delim
21825 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21826 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21827 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21828 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21829 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21830 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21831 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21832 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21833 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21834 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21835 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21836 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21837 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21838 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21839 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21840 RPATH!$RPATH$ac_delim
21841 RDYNAMIC!$RDYNAMIC$ac_delim
21842 LIBOBJS!$LIBOBJS$ac_delim
21843 LTLIBOBJS!$LTLIBOBJS$ac_delim
21844 _ACEOF
21845
21846   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
21847     break
21848   elif $ac_last_try; then
21849     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21850 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21851    { (exit 1); exit 1; }; }
21852   else
21853     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21854   fi
21855 done
21856
21857 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21858 if test -n "$ac_eof"; then
21859   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21860   ac_eof=`expr $ac_eof + 1`
21861 fi
21862
21863 cat >>$CONFIG_STATUS <<_ACEOF
21864 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21865 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21866 _ACEOF
21867 sed '
21868 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21869 s/^/s,@/; s/!/@,|#_!!_#|/
21870 :n
21871 t n
21872 s/'"$ac_delim"'$/,g/; t
21873 s/$/\\/; p
21874 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21875 ' >>$CONFIG_STATUS <conf$$subs.sed
21876 rm -f conf$$subs.sed
21877 cat >>$CONFIG_STATUS <<_ACEOF
21878 :end
21879 s/|#_!!_#|//g
21880 CEOF$ac_eof
21881 _ACEOF
21882
21883
21884 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21885 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21886 # trailing colons and then remove the whole line if VPATH becomes empty
21887 # (actually we leave an empty line to preserve line numbers).
21888 if test "x$srcdir" = x.; then
21889   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21890 s/:*\$(srcdir):*/:/
21891 s/:*\${srcdir}:*/:/
21892 s/:*@srcdir@:*/:/
21893 s/^\([^=]*=[     ]*\):*/\1/
21894 s/:*$//
21895 s/^[^=]*=[       ]*$//
21896 }'
21897 fi
21898
21899 cat >>$CONFIG_STATUS <<\_ACEOF
21900 fi # test -n "$CONFIG_FILES"
21901
21902
21903 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
21904 do
21905   case $ac_tag in
21906   :[FHLC]) ac_mode=$ac_tag; continue;;
21907   esac
21908   case $ac_mode$ac_tag in
21909   :[FHL]*:*);;
21910   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21911 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21912    { (exit 1); exit 1; }; };;
21913   :[FH]-) ac_tag=-:-;;
21914   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21915   esac
21916   ac_save_IFS=$IFS
21917   IFS=:
21918   set x $ac_tag
21919   IFS=$ac_save_IFS
21920   shift
21921   ac_file=$1
21922   shift
21923
21924   case $ac_mode in
21925   :L) ac_source=$1;;
21926   :[FH])
21927     ac_file_inputs=
21928     for ac_f
21929     do
21930       case $ac_f in
21931       -) ac_f="$tmp/stdin";;
21932       *) # Look for the file first in the build tree, then in the source tree
21933          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21934          # because $ac_f cannot contain `:'.
21935          test -f "$ac_f" ||
21936            case $ac_f in
21937            [\\/$]*) false;;
21938            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21939            esac ||
21940            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21941 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21942    { (exit 1); exit 1; }; };;
21943       esac
21944       ac_file_inputs="$ac_file_inputs $ac_f"
21945     done
21946
21947     # Let's still pretend it is `configure' which instantiates (i.e., don't
21948     # use $as_me), people would be surprised to read:
21949     #    /* config.h.  Generated by config.status.  */
21950     configure_input="Generated from "`IFS=:
21951           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21952     if test x"$ac_file" != x-; then
21953       configure_input="$ac_file.  $configure_input"
21954       { echo "$as_me:$LINENO: creating $ac_file" >&5
21955 echo "$as_me: creating $ac_file" >&6;}
21956     fi
21957
21958     case $ac_tag in
21959     *:-:* | *:-) cat >"$tmp/stdin";;
21960     esac
21961     ;;
21962   esac
21963
21964   ac_dir=`$as_dirname -- "$ac_file" ||
21965 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21966          X"$ac_file" : 'X\(//\)[^/]' \| \
21967          X"$ac_file" : 'X\(//\)$' \| \
21968          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21969 echo X"$ac_file" |
21970     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21971             s//\1/
21972             q
21973           }
21974           /^X\(\/\/\)[^/].*/{
21975             s//\1/
21976             q
21977           }
21978           /^X\(\/\/\)$/{
21979             s//\1/
21980             q
21981           }
21982           /^X\(\/\).*/{
21983             s//\1/
21984             q
21985           }
21986           s/.*/./; q'`
21987   { as_dir="$ac_dir"
21988   case $as_dir in #(
21989   -*) as_dir=./$as_dir;;
21990   esac
21991   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21992     as_dirs=
21993     while :; do
21994       case $as_dir in #(
21995       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21996       *) as_qdir=$as_dir;;
21997       esac
21998       as_dirs="'$as_qdir' $as_dirs"
21999       as_dir=`$as_dirname -- "$as_dir" ||
22000 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22001          X"$as_dir" : 'X\(//\)[^/]' \| \
22002          X"$as_dir" : 'X\(//\)$' \| \
22003          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22004 echo X"$as_dir" |
22005     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22006             s//\1/
22007             q
22008           }
22009           /^X\(\/\/\)[^/].*/{
22010             s//\1/
22011             q
22012           }
22013           /^X\(\/\/\)$/{
22014             s//\1/
22015             q
22016           }
22017           /^X\(\/\).*/{
22018             s//\1/
22019             q
22020           }
22021           s/.*/./; q'`
22022       test -d "$as_dir" && break
22023     done
22024     test -z "$as_dirs" || eval "mkdir $as_dirs"
22025   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22026 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22027    { (exit 1); exit 1; }; }; }
22028   ac_builddir=.
22029
22030 case "$ac_dir" in
22031 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22032 *)
22033   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22034   # A ".." for each directory in $ac_dir_suffix.
22035   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22036   case $ac_top_builddir_sub in
22037   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22038   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22039   esac ;;
22040 esac
22041 ac_abs_top_builddir=$ac_pwd
22042 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22043 # for backward compatibility:
22044 ac_top_builddir=$ac_top_build_prefix
22045
22046 case $srcdir in
22047   .)  # We are building in place.
22048     ac_srcdir=.
22049     ac_top_srcdir=$ac_top_builddir_sub
22050     ac_abs_top_srcdir=$ac_pwd ;;
22051   [\\/]* | ?:[\\/]* )  # Absolute name.
22052     ac_srcdir=$srcdir$ac_dir_suffix;
22053     ac_top_srcdir=$srcdir
22054     ac_abs_top_srcdir=$srcdir ;;
22055   *) # Relative name.
22056     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22057     ac_top_srcdir=$ac_top_build_prefix$srcdir
22058     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22059 esac
22060 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22061
22062
22063   case $ac_mode in
22064   :F)
22065   #
22066   # CONFIG_FILE
22067   #
22068
22069   case $INSTALL in
22070   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22071   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22072   esac
22073 _ACEOF
22074
22075 cat >>$CONFIG_STATUS <<\_ACEOF
22076 # If the template does not know about datarootdir, expand it.
22077 # FIXME: This hack should be removed a few years after 2.60.
22078 ac_datarootdir_hack=; ac_datarootdir_seen=
22079
22080 case `sed -n '/datarootdir/ {
22081   p
22082   q
22083 }
22084 /@datadir@/p
22085 /@docdir@/p
22086 /@infodir@/p
22087 /@localedir@/p
22088 /@mandir@/p
22089 ' $ac_file_inputs` in
22090 *datarootdir*) ac_datarootdir_seen=yes;;
22091 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22092   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22093 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22094 _ACEOF
22095 cat >>$CONFIG_STATUS <<_ACEOF
22096   ac_datarootdir_hack='
22097   s&@datadir@&$datadir&g
22098   s&@docdir@&$docdir&g
22099   s&@infodir@&$infodir&g
22100   s&@localedir@&$localedir&g
22101   s&@mandir@&$mandir&g
22102     s&\\\${datarootdir}&$datarootdir&g' ;;
22103 esac
22104 _ACEOF
22105
22106 # Neutralize VPATH when `$srcdir' = `.'.
22107 # Shell code in configure.ac might set extrasub.
22108 # FIXME: do we really want to maintain this feature?
22109 cat >>$CONFIG_STATUS <<_ACEOF
22110   sed "$ac_vpsub
22111 $extrasub
22112 _ACEOF
22113 cat >>$CONFIG_STATUS <<\_ACEOF
22114 :t
22115 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22116 s&@configure_input@&$configure_input&;t t
22117 s&@top_builddir@&$ac_top_builddir_sub&;t t
22118 s&@srcdir@&$ac_srcdir&;t t
22119 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22120 s&@top_srcdir@&$ac_top_srcdir&;t t
22121 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22122 s&@builddir@&$ac_builddir&;t t
22123 s&@abs_builddir@&$ac_abs_builddir&;t t
22124 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22125 s&@INSTALL@&$ac_INSTALL&;t t
22126 $ac_datarootdir_hack
22127 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22128
22129 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22130   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22131   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22132   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22133 which seems to be undefined.  Please make sure it is defined." >&5
22134 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22135 which seems to be undefined.  Please make sure it is defined." >&2;}
22136
22137   rm -f "$tmp/stdin"
22138   case $ac_file in
22139   -) cat "$tmp/out"; rm -f "$tmp/out";;
22140   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22141   esac
22142  ;;
22143
22144
22145   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22146 echo "$as_me: executing $ac_file commands" >&6;}
22147  ;;
22148   esac
22149
22150
22151   case $ac_file$ac_mode in
22152     "Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22153    ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22154     "lib/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22155    ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22156     "lib/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22157    ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22158     "tools/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22159    ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22160     "tools/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22161    ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22162
22163   esac
22164 done # for ac_tag
22165
22166
22167 { (exit 0); exit 0; }
22168 _ACEOF
22169 chmod +x $CONFIG_STATUS
22170 ac_clean_files=$ac_clean_files_save
22171
22172
22173 # configure is writing to config.log, and then calls config.status.
22174 # config.status does its own redirection, appending to config.log.
22175 # Unfortunately, on DOS this fails, as config.log is still kept open
22176 # by configure, so config.status won't be able to write to it; its
22177 # output is simply discarded.  So we exec the FD to /dev/null,
22178 # effectively closing config.log, so it can be properly (re)opened and
22179 # appended to by config.status.  When coming back to configure, we
22180 # need to make the FD available again.
22181 if test "$no_create" != yes; then
22182   ac_cs_success=:
22183   ac_config_status_args=
22184   test "$silent" = yes &&
22185     ac_config_status_args="$ac_config_status_args --quiet"
22186   exec 5>/dev/null
22187   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22188   exec 5>>config.log
22189   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22190   # would make configure fail if this is the last instruction.
22191   $ac_cs_success || { (exit 1); exit 1; }
22192 fi
22193
22194 #
22195 # CONFIG_SUBDIRS section.
22196 #
22197 if test "$no_recursion" != yes; then
22198
22199   # Remove --cache-file and --srcdir arguments so they do not pile up.
22200   ac_sub_configure_args=
22201   ac_prev=
22202   eval "set x $ac_configure_args"
22203   shift
22204   for ac_arg
22205   do
22206     if test -n "$ac_prev"; then
22207       ac_prev=
22208       continue
22209     fi
22210     case $ac_arg in
22211     -cache-file | --cache-file | --cache-fil | --cache-fi \
22212     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22213       ac_prev=cache_file ;;
22214     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22215     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22216     | --c=*)
22217       ;;
22218     --config-cache | -C)
22219       ;;
22220     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22221       ac_prev=srcdir ;;
22222     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22223       ;;
22224     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22225       ac_prev=prefix ;;
22226     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22227       ;;
22228     *)
22229       case $ac_arg in
22230       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22231       esac
22232       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22233     esac
22234   done
22235
22236   # Always prepend --prefix to ensure using the same prefix
22237   # in subdir configurations.
22238   ac_arg="--prefix=$prefix"
22239   case $ac_arg in
22240   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22241   esac
22242   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22243
22244   ac_popdir=`pwd`
22245   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22246
22247     # Do not complain, so a configure script can configure whichever
22248     # parts of a large source tree are present.
22249     test -d "$srcdir/$ac_dir" || continue
22250
22251     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22252     echo "$as_me:$LINENO: $ac_msg" >&5
22253     echo "$ac_msg" >&6
22254     { as_dir="$ac_dir"
22255   case $as_dir in #(
22256   -*) as_dir=./$as_dir;;
22257   esac
22258   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22259     as_dirs=
22260     while :; do
22261       case $as_dir in #(
22262       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22263       *) as_qdir=$as_dir;;
22264       esac
22265       as_dirs="'$as_qdir' $as_dirs"
22266       as_dir=`$as_dirname -- "$as_dir" ||
22267 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22268          X"$as_dir" : 'X\(//\)[^/]' \| \
22269          X"$as_dir" : 'X\(//\)$' \| \
22270          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22271 echo X"$as_dir" |
22272     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22273             s//\1/
22274             q
22275           }
22276           /^X\(\/\/\)[^/].*/{
22277             s//\1/
22278             q
22279           }
22280           /^X\(\/\/\)$/{
22281             s//\1/
22282             q
22283           }
22284           /^X\(\/\).*/{
22285             s//\1/
22286             q
22287           }
22288           s/.*/./; q'`
22289       test -d "$as_dir" && break
22290     done
22291     test -z "$as_dirs" || eval "mkdir $as_dirs"
22292   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22293 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22294    { (exit 1); exit 1; }; }; }
22295     ac_builddir=.
22296
22297 case "$ac_dir" in
22298 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22299 *)
22300   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22301   # A ".." for each directory in $ac_dir_suffix.
22302   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22303   case $ac_top_builddir_sub in
22304   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22305   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22306   esac ;;
22307 esac
22308 ac_abs_top_builddir=$ac_pwd
22309 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22310 # for backward compatibility:
22311 ac_top_builddir=$ac_top_build_prefix
22312
22313 case $srcdir in
22314   .)  # We are building in place.
22315     ac_srcdir=.
22316     ac_top_srcdir=$ac_top_builddir_sub
22317     ac_abs_top_srcdir=$ac_pwd ;;
22318   [\\/]* | ?:[\\/]* )  # Absolute name.
22319     ac_srcdir=$srcdir$ac_dir_suffix;
22320     ac_top_srcdir=$srcdir
22321     ac_abs_top_srcdir=$srcdir ;;
22322   *) # Relative name.
22323     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22324     ac_top_srcdir=$ac_top_build_prefix$srcdir
22325     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22326 esac
22327 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22328
22329
22330     cd "$ac_dir"
22331
22332     # Check for guested configure; otherwise get Cygnus style configure.
22333     if test -f "$ac_srcdir/configure.gnu"; then
22334       ac_sub_configure=$ac_srcdir/configure.gnu
22335     elif test -f "$ac_srcdir/configure"; then
22336       ac_sub_configure=$ac_srcdir/configure
22337     elif test -f "$ac_srcdir/configure.in"; then
22338       # This should be Cygnus configure.
22339       ac_sub_configure=$ac_aux_dir/configure
22340     else
22341       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22342 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22343       ac_sub_configure=
22344     fi
22345
22346     # The recursion is here.
22347     if test -n "$ac_sub_configure"; then
22348       # Make the cache file name correct relative to the subdirectory.
22349       case $cache_file in
22350       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22351       *) # Relative name.
22352         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22353       esac
22354
22355       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22356 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22357       # The eval makes quoting arguments work.
22358       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22359            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22360         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22361 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22362    { (exit 1); exit 1; }; }
22363     fi
22364
22365     cd "$ac_popdir"
22366   done
22367 fi
22368