Add AArch64 as an experimental target.
[oota-llvm.git] / projects / sample / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx].
4 #
5 # Report bugs to <bugs@yourdomain>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22   setopt NO_GLOB_SUBST
23 else
24   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25 fi
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
28
29
30 # PATH needs CR
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40   echo "#! /bin/sh" >conf$$.sh
41   echo  "exit 0"   >>conf$$.sh
42   chmod +x conf$$.sh
43   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44     PATH_SEPARATOR=';'
45   else
46     PATH_SEPARATOR=:
47   fi
48   rm -f conf$$.sh
49 fi
50
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53   as_unset=unset
54 else
55   as_unset=false
56 fi
57
58
59 # IFS
60 # We need space, tab and new line, in precisely that order.  Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
64 as_nl='
65 '
66 IFS=" ""        $as_nl"
67
68 # Find who we are.  Look in the path if we contain no directory separator.
69 case $0 in
70   *[\\/]* ) as_myself=$0 ;;
71   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72 for as_dir in $PATH
73 do
74   IFS=$as_save_IFS
75   test -z "$as_dir" && as_dir=.
76   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77 done
78 IFS=$as_save_IFS
79
80      ;;
81 esac
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
85   as_myself=$0
86 fi
87 if test ! -f "$as_myself"; then
88   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89   { (exit 1); exit 1; }
90 fi
91
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95 done
96 PS1='$ '
97 PS2='> '
98 PS4='+ '
99
100 # NLS nuisances.
101 for as_var in \
102   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104   LC_TELEPHONE LC_TIME
105 do
106   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107     eval $as_var=C; export $as_var
108   else
109     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
110   fi
111 done
112
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115    test "X`expr 00001 : '.*\(...\)'`" = X001; then
116   as_expr=expr
117 else
118   as_expr=false
119 fi
120
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122   as_basename=basename
123 else
124   as_basename=false
125 fi
126
127
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131          X"$0" : 'X\(//\)$' \| \
132          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133 echo X/"$0" |
134     sed '/^.*\/\([^/][^/]*\)\/*$/{
135             s//\1/
136             q
137           }
138           /^X\/\(\/\/\)$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\).*/{
143             s//\1/
144             q
145           }
146           s/.*/./; q'`
147
148 # CDPATH.
149 $as_unset CDPATH
150
151
152 if test "x$CONFIG_SHELL" = x; then
153   if (eval ":") 2>/dev/null; then
154   as_have_required=yes
155 else
156   as_have_required=no
157 fi
158
159   if test $as_have_required = yes &&     (eval ":
160 (as_func_return () {
161   (exit \$1)
162 }
163 as_func_success () {
164   as_func_return 0
165 }
166 as_func_failure () {
167   as_func_return 1
168 }
169 as_func_ret_success () {
170   return 0
171 }
172 as_func_ret_failure () {
173   return 1
174 }
175
176 exitcode=0
177 if as_func_success; then
178   :
179 else
180   exitcode=1
181   echo as_func_success failed.
182 fi
183
184 if as_func_failure; then
185   exitcode=1
186   echo as_func_failure succeeded.
187 fi
188
189 if as_func_ret_success; then
190   :
191 else
192   exitcode=1
193   echo as_func_ret_success failed.
194 fi
195
196 if as_func_ret_failure; then
197   exitcode=1
198   echo as_func_ret_failure succeeded.
199 fi
200
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202   :
203 else
204   exitcode=1
205   echo positional parameters were not saved.
206 fi
207
208 test \$exitcode = 0) || { (exit 1); exit 1; }
209
210 (
211   as_lineno_1=\$LINENO
212   as_lineno_2=\$LINENO
213   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
216   :
217 else
218   as_candidate_shells=
219     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   case $as_dir in
225          /*)
226            for as_base in sh bash ksh sh5; do
227              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228            done;;
229        esac
230 done
231 IFS=$as_save_IFS
232
233
234       for as_shell in $as_candidate_shells $SHELL; do
235          # Try only shells that exist, to save several forks.
236          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237                 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240   emulate sh
241   NULLCMD=:
242   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243   # is contrary to our usage.  Disable this feature.
244   alias -g '${1+"$@"}'='"$@"'
245   setopt NO_GLOB_SUBST
246 else
247   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248 fi
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
251
252 :
253 _ASEOF
254 }; then
255   CONFIG_SHELL=$as_shell
256                as_have_required=yes
257                if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268 fi
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
271
272 :
273 (as_func_return () {
274   (exit $1)
275 }
276 as_func_success () {
277   as_func_return 0
278 }
279 as_func_failure () {
280   as_func_return 1
281 }
282 as_func_ret_success () {
283   return 0
284 }
285 as_func_ret_failure () {
286   return 1
287 }
288
289 exitcode=0
290 if as_func_success; then
291   :
292 else
293   exitcode=1
294   echo as_func_success failed.
295 fi
296
297 if as_func_failure; then
298   exitcode=1
299   echo as_func_failure succeeded.
300 fi
301
302 if as_func_ret_success; then
303   :
304 else
305   exitcode=1
306   echo as_func_ret_success failed.
307 fi
308
309 if as_func_ret_failure; then
310   exitcode=1
311   echo as_func_ret_failure succeeded.
312 fi
313
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
315   :
316 else
317   exitcode=1
318   echo positional parameters were not saved.
319 fi
320
321 test $exitcode = 0) || { (exit 1); exit 1; }
322
323 (
324   as_lineno_1=$LINENO
325   as_lineno_2=$LINENO
326   test "x$as_lineno_1" != "x$as_lineno_2" &&
327   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329 _ASEOF
330 }; then
331   break
332 fi
333
334 fi
335
336       done
337
338       if test "x$CONFIG_SHELL" != x; then
339   for as_var in BASH_ENV ENV
340         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341         done
342         export CONFIG_SHELL
343         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344 fi
345
346
347     if test $as_have_required = no; then
348   echo This script requires a shell more modern than all the
349       echo shells that I found on your system.  Please install a
350       echo modern shell, or manually run the script under such a
351       echo shell if you do have one.
352       { (exit 1); exit 1; }
353 fi
354
355
356 fi
357
358 fi
359
360
361
362 (eval "as_func_return () {
363   (exit \$1)
364 }
365 as_func_success () {
366   as_func_return 0
367 }
368 as_func_failure () {
369   as_func_return 1
370 }
371 as_func_ret_success () {
372   return 0
373 }
374 as_func_ret_failure () {
375   return 1
376 }
377
378 exitcode=0
379 if as_func_success; then
380   :
381 else
382   exitcode=1
383   echo as_func_success failed.
384 fi
385
386 if as_func_failure; then
387   exitcode=1
388   echo as_func_failure succeeded.
389 fi
390
391 if as_func_ret_success; then
392   :
393 else
394   exitcode=1
395   echo as_func_ret_success failed.
396 fi
397
398 if as_func_ret_failure; then
399   exitcode=1
400   echo as_func_ret_failure succeeded.
401 fi
402
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404   :
405 else
406   exitcode=1
407   echo positional parameters were not saved.
408 fi
409
410 test \$exitcode = 0") || {
411   echo No shell found that supports shell functions.
412   echo Please tell autoconf@gnu.org about your system,
413   echo including any error possibly output before this
414   echo message
415 }
416
417
418
419   as_lineno_1=$LINENO
420   as_lineno_2=$LINENO
421   test "x$as_lineno_1" != "x$as_lineno_2" &&
422   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
423
424   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425   # uniformly replaced by the line number.  The first 'sed' inserts a
426   # line-number line after each line using $LINENO; the second 'sed'
427   # does the real work.  The second script uses 'N' to pair each
428   # line-number line with the line containing $LINENO, and appends
429   # trailing '-' during substitution so that $LINENO is not a special
430   # case at line end.
431   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432   # scripts with optimization help from Paolo Bonzini.  Blame Lee
433   # E. McMahon (1931-1989) for sed's syntax.  :-)
434   sed -n '
435     p
436     /[$]LINENO/=
437   ' <$as_myself |
438     sed '
439       s/[$]LINENO.*/&-/
440       t lineno
441       b
442       :lineno
443       N
444       :loop
445       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446       t loop
447       s/-\n.*//
448     ' >$as_me.lineno &&
449   chmod +x "$as_me.lineno" ||
450     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451    { (exit 1); exit 1; }; }
452
453   # Don't try to exec as it changes $[0], causing all sort of problems
454   # (the dirname of $[0] is not the place where we might find the
455   # original and so on.  Autoconf is especially sensitive to this).
456   . "./$as_me.lineno"
457   # Exit status is that of the last command.
458   exit
459 }
460
461
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463   as_dirname=dirname
464 else
465   as_dirname=false
466 fi
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in
470 -n*)
471   case `echo 'x\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   *)   ECHO_C='\c';;
474   esac;;
475 *)
476   ECHO_N='-n';;
477 esac
478
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480    test "X`expr 00001 : '.*\(...\)'`" = X001; then
481   as_expr=expr
482 else
483   as_expr=false
484 fi
485
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488   rm -f conf$$.dir/conf$$.file
489 else
490   rm -f conf$$.dir
491   mkdir conf$$.dir
492 fi
493 echo >conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
495   as_ln_s='ln -s'
496   # ... but there are two gotchas:
497   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499   # In both cases, we have to default to `cp -p'.
500   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501     as_ln_s='cp -p'
502 elif ln conf$$.file conf$$ 2>/dev/null; then
503   as_ln_s=ln
504 else
505   as_ln_s='cp -p'
506 fi
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
509
510 if mkdir -p . 2>/dev/null; then
511   as_mkdir_p=:
512 else
513   test -d ./-p && rmdir ./-p
514   as_mkdir_p=false
515 fi
516
517 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
520 #! /bin/sh
521 exit 0
522 _ASEOF
523 chmod +x conf$$.file
524 if test -x conf$$.file >/dev/null 2>&1; then
525   as_executable_p="test -x"
526 else
527   as_executable_p=:
528 fi
529 rm -f conf$$.file
530
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537
538
539 exec 7<&0 </dev/null 6>&1
540
541 # Name of the host.
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
546 #
547 # Initializations.
548 #
549 ac_default_prefix=/usr/local
550 ac_clean_files=
551 ac_config_libobj_dir=.
552 LIBOBJS=
553 cross_compiling=no
554 subdirs=
555 MFLAGS=
556 MAKEFLAGS=
557 SHELL=${CONFIG_SHELL-/bin/sh}
558
559 # Identity of this package.
560 PACKAGE_NAME='[SAMPLE]'
561 PACKAGE_TARNAME='--sample--'
562 PACKAGE_VERSION='[x.xx]'
563 PACKAGE_STRING='[SAMPLE] [x.xx]'
564 PACKAGE_BUGREPORT='bugs@yourdomain'
565
566 ac_unique_file=""Makefile.common.in""
567 # Factoring default headers for most tests.
568 ac_includes_default="\
569 #include <stdio.h>
570 #if HAVE_SYS_TYPES_H
571 # include <sys/types.h>
572 #endif
573 #if HAVE_SYS_STAT_H
574 # include <sys/stat.h>
575 #endif
576 #if STDC_HEADERS
577 # include <stdlib.h>
578 # include <stddef.h>
579 #else
580 # if HAVE_STDLIB_H
581 #  include <stdlib.h>
582 # endif
583 #endif
584 #if HAVE_STRING_H
585 # if !STDC_HEADERS && HAVE_MEMORY_H
586 #  include <memory.h>
587 # endif
588 # include <string.h>
589 #endif
590 #if HAVE_STRINGS_H
591 # include <strings.h>
592 #endif
593 #if HAVE_INTTYPES_H
594 # include <inttypes.h>
595 #endif
596 #if HAVE_STDINT_H
597 # include <stdint.h>
598 #endif
599 #if HAVE_UNISTD_H
600 # include <unistd.h>
601 #endif"
602
603 ac_subst_vars='SHELL
604 PATH_SEPARATOR
605 PACKAGE_NAME
606 PACKAGE_TARNAME
607 PACKAGE_VERSION
608 PACKAGE_STRING
609 PACKAGE_BUGREPORT
610 exec_prefix
611 prefix
612 program_transform_name
613 bindir
614 sbindir
615 libexecdir
616 datarootdir
617 datadir
618 sysconfdir
619 sharedstatedir
620 localstatedir
621 includedir
622 oldincludedir
623 docdir
624 infodir
625 htmldir
626 dvidir
627 pdfdir
628 psdir
629 libdir
630 localedir
631 mandir
632 DEFS
633 ECHO_C
634 ECHO_N
635 ECHO_T
636 LIBS
637 build_alias
638 host_alias
639 target_alias
640 LLVM_SRC
641 LLVM_OBJ
642 LLVM_VERSION
643 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 ENABLE_POLLY
655 LLVM_HAS_POLLY
656 subdirs
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 ENDIAN
678 GREP
679 EGREP
680 LLVM_CROSS_COMPILING
681 BUILD_CC
682 BUILD_EXEEXT
683 BUILD_CXX
684 CVSBUILD
685 ENABLE_LIBCPP
686 ENABLE_CXX11
687 ENABLE_OPTIMIZED
688 ENABLE_PROFILING
689 DISABLE_ASSERTIONS
690 ENABLE_WERROR
691 ENABLE_EXPENSIVE_CHECKS
692 EXPENSIVE_CHECKS
693 DEBUG_RUNTIME
694 DEBUG_SYMBOLS
695 JIT
696 TARGET_HAS_JIT
697 ENABLE_DOCS
698 ENABLE_DOXYGEN
699 ENABLE_THREADS
700 ENABLE_PTHREADS
701 ENABLE_PIC
702 ENABLE_SHARED
703 ENABLE_EMBED_STDCXX
704 ENABLE_TIMESTAMPS
705 TARGETS_TO_BUILD
706 LLVM_ENUM_TARGETS
707 LLVM_ENUM_ASM_PRINTERS
708 LLVM_ENUM_ASM_PARSERS
709 LLVM_ENUM_DISASSEMBLERS
710 OPTIMIZE_OPTION
711 EXTRA_OPTIONS
712 EXTRA_LD_OPTIONS
713 BINUTILS_INCDIR
714 NM
715 ifGNUmake
716 LN_S
717 CMP
718 CP
719 DATE
720 FIND
721 MKDIR
722 MV
723 RANLIB
724 AR
725 RM
726 SED
727 TAR
728 BINPWD
729 GRAPHVIZ
730 DOT
731 FDP
732 NEATO
733 TWOPI
734 CIRCO
735 GV
736 DOTTY
737 XDOT_PY
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 COVERED_SWITCH_DEFAULT
766 USE_UDIS86
767 USE_OPROFILE
768 HAVE_PTHREAD
769 HUGE_VAL_SANITY
770 MMAP_FILE
771 SHLIBEXT
772 SHLIBPATH_VAR
773 LLVM_PREFIX
774 LLVM_BINDIR
775 LLVM_LIBDIR
776 LLVM_DATADIR
777 LLVM_DOCSDIR
778 LLVM_ETCDIR
779 LLVM_INCLUDEDIR
780 LLVM_INFODIR
781 LLVM_MANDIR
782 LLVM_CONFIGTIME
783 BINDINGS_TO_BUILD
784 ALL_BINDINGS
785 OCAML_LIBDIR
786 ENABLE_VISIBILITY_INLINES_HIDDEN
787 RPATH
788 RDYNAMIC
789 LIBOBJS
790 LTLIBOBJS'
791 ac_subst_files=''
792       ac_precious_vars='build_alias
793 host_alias
794 target_alias
795 CC
796 CFLAGS
797 LDFLAGS
798 CPPFLAGS
799 CXX
800 CXXFLAGS
801 CCC
802 CPP'
803 ac_subdirs_all='tools/polly'
804
805 # Initialize some variables set by options.
806 ac_init_help=
807 ac_init_version=false
808 # The variables have the same names as the options, with
809 # dashes changed to underlines.
810 cache_file=/dev/null
811 exec_prefix=NONE
812 no_create=
813 no_recursion=
814 prefix=NONE
815 program_prefix=NONE
816 program_suffix=NONE
817 program_transform_name=s,x,x,
818 silent=
819 site=
820 srcdir=
821 verbose=
822 x_includes=NONE
823 x_libraries=NONE
824
825 # Installation directory options.
826 # These are left unexpanded so users can "make install exec_prefix=/foo"
827 # and all the variables that are supposed to be based on exec_prefix
828 # by default will actually change.
829 # Use braces instead of parens because sh, perl, etc. also accept them.
830 # (The list follows the same order as the GNU Coding Standards.)
831 bindir='${exec_prefix}/bin'
832 sbindir='${exec_prefix}/sbin'
833 libexecdir='${exec_prefix}/libexec'
834 datarootdir='${prefix}/share'
835 datadir='${datarootdir}'
836 sysconfdir='${prefix}/etc'
837 sharedstatedir='${prefix}/com'
838 localstatedir='${prefix}/var'
839 includedir='${prefix}/include'
840 oldincludedir='/usr/include'
841 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
842 infodir='${datarootdir}/info'
843 htmldir='${docdir}'
844 dvidir='${docdir}'
845 pdfdir='${docdir}'
846 psdir='${docdir}'
847 libdir='${exec_prefix}/lib'
848 localedir='${datarootdir}/locale'
849 mandir='${datarootdir}/man'
850
851 ac_prev=
852 ac_dashdash=
853 for ac_option
854 do
855   # If the previous option needs an argument, assign it.
856   if test -n "$ac_prev"; then
857     eval $ac_prev=\$ac_option
858     ac_prev=
859     continue
860   fi
861
862   case $ac_option in
863   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864   *)    ac_optarg=yes ;;
865   esac
866
867   # Accept the important Cygnus configure options, so we can diagnose typos.
868
869   case $ac_dashdash$ac_option in
870   --)
871     ac_dashdash=yes ;;
872
873   -bindir | --bindir | --bindi | --bind | --bin | --bi)
874     ac_prev=bindir ;;
875   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
876     bindir=$ac_optarg ;;
877
878   -build | --build | --buil | --bui | --bu)
879     ac_prev=build_alias ;;
880   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
881     build_alias=$ac_optarg ;;
882
883   -cache-file | --cache-file | --cache-fil | --cache-fi \
884   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
885     ac_prev=cache_file ;;
886   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
887   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
888     cache_file=$ac_optarg ;;
889
890   --config-cache | -C)
891     cache_file=config.cache ;;
892
893   -datadir | --datadir | --datadi | --datad)
894     ac_prev=datadir ;;
895   -datadir=* | --datadir=* | --datadi=* | --datad=*)
896     datadir=$ac_optarg ;;
897
898   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
899   | --dataroo | --dataro | --datar)
900     ac_prev=datarootdir ;;
901   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
902   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
903     datarootdir=$ac_optarg ;;
904
905   -disable-* | --disable-*)
906     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
907     # Reject names that are not valid shell variable names.
908     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
909       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
910    { (exit 1); exit 1; }; }
911     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
912     eval enable_$ac_feature=no ;;
913
914   -docdir | --docdir | --docdi | --doc | --do)
915     ac_prev=docdir ;;
916   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917     docdir=$ac_optarg ;;
918
919   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920     ac_prev=dvidir ;;
921   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922     dvidir=$ac_optarg ;;
923
924   -enable-* | --enable-*)
925     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926     # Reject names that are not valid shell variable names.
927     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
928       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
929    { (exit 1); exit 1; }; }
930     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
931     eval enable_$ac_feature=\$ac_optarg ;;
932
933   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935   | --exec | --exe | --ex)
936     ac_prev=exec_prefix ;;
937   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939   | --exec=* | --exe=* | --ex=*)
940     exec_prefix=$ac_optarg ;;
941
942   -gas | --gas | --ga | --g)
943     # Obsolete; use --with-gas.
944     with_gas=yes ;;
945
946   -help | --help | --hel | --he | -h)
947     ac_init_help=long ;;
948   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949     ac_init_help=recursive ;;
950   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951     ac_init_help=short ;;
952
953   -host | --host | --hos | --ho)
954     ac_prev=host_alias ;;
955   -host=* | --host=* | --hos=* | --ho=*)
956     host_alias=$ac_optarg ;;
957
958   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959     ac_prev=htmldir ;;
960   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961   | --ht=*)
962     htmldir=$ac_optarg ;;
963
964   -includedir | --includedir | --includedi | --included | --include \
965   | --includ | --inclu | --incl | --inc)
966     ac_prev=includedir ;;
967   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968   | --includ=* | --inclu=* | --incl=* | --inc=*)
969     includedir=$ac_optarg ;;
970
971   -infodir | --infodir | --infodi | --infod | --info | --inf)
972     ac_prev=infodir ;;
973   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
974     infodir=$ac_optarg ;;
975
976   -libdir | --libdir | --libdi | --libd)
977     ac_prev=libdir ;;
978   -libdir=* | --libdir=* | --libdi=* | --libd=*)
979     libdir=$ac_optarg ;;
980
981   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982   | --libexe | --libex | --libe)
983     ac_prev=libexecdir ;;
984   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985   | --libexe=* | --libex=* | --libe=*)
986     libexecdir=$ac_optarg ;;
987
988   -localedir | --localedir | --localedi | --localed | --locale)
989     ac_prev=localedir ;;
990   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991     localedir=$ac_optarg ;;
992
993   -localstatedir | --localstatedir | --localstatedi | --localstated \
994   | --localstate | --localstat | --localsta | --localst | --locals)
995     ac_prev=localstatedir ;;
996   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
997   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
998     localstatedir=$ac_optarg ;;
999
1000   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001     ac_prev=mandir ;;
1002   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1003     mandir=$ac_optarg ;;
1004
1005   -nfp | --nfp | --nf)
1006     # Obsolete; use --without-fp.
1007     with_fp=no ;;
1008
1009   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010   | --no-cr | --no-c | -n)
1011     no_create=yes ;;
1012
1013   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1015     no_recursion=yes ;;
1016
1017   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019   | --oldin | --oldi | --old | --ol | --o)
1020     ac_prev=oldincludedir ;;
1021   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1024     oldincludedir=$ac_optarg ;;
1025
1026   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027     ac_prev=prefix ;;
1028   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1029     prefix=$ac_optarg ;;
1030
1031   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032   | --program-pre | --program-pr | --program-p)
1033     ac_prev=program_prefix ;;
1034   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1036     program_prefix=$ac_optarg ;;
1037
1038   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039   | --program-suf | --program-su | --program-s)
1040     ac_prev=program_suffix ;;
1041   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1043     program_suffix=$ac_optarg ;;
1044
1045   -program-transform-name | --program-transform-name \
1046   | --program-transform-nam | --program-transform-na \
1047   | --program-transform-n | --program-transform- \
1048   | --program-transform | --program-transfor \
1049   | --program-transfo | --program-transf \
1050   | --program-trans | --program-tran \
1051   | --progr-tra | --program-tr | --program-t)
1052     ac_prev=program_transform_name ;;
1053   -program-transform-name=* | --program-transform-name=* \
1054   | --program-transform-nam=* | --program-transform-na=* \
1055   | --program-transform-n=* | --program-transform-=* \
1056   | --program-transform=* | --program-transfor=* \
1057   | --program-transfo=* | --program-transf=* \
1058   | --program-trans=* | --program-tran=* \
1059   | --progr-tra=* | --program-tr=* | --program-t=*)
1060     program_transform_name=$ac_optarg ;;
1061
1062   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063     ac_prev=pdfdir ;;
1064   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065     pdfdir=$ac_optarg ;;
1066
1067   -psdir | --psdir | --psdi | --psd | --ps)
1068     ac_prev=psdir ;;
1069   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1070     psdir=$ac_optarg ;;
1071
1072   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073   | -silent | --silent | --silen | --sile | --sil)
1074     silent=yes ;;
1075
1076   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1077     ac_prev=sbindir ;;
1078   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1079   | --sbi=* | --sb=*)
1080     sbindir=$ac_optarg ;;
1081
1082   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1083   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1084   | --sharedst | --shareds | --shared | --share | --shar \
1085   | --sha | --sh)
1086     ac_prev=sharedstatedir ;;
1087   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1088   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1089   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1090   | --sha=* | --sh=*)
1091     sharedstatedir=$ac_optarg ;;
1092
1093   -site | --site | --sit)
1094     ac_prev=site ;;
1095   -site=* | --site=* | --sit=*)
1096     site=$ac_optarg ;;
1097
1098   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1099     ac_prev=srcdir ;;
1100   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1101     srcdir=$ac_optarg ;;
1102
1103   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1104   | --syscon | --sysco | --sysc | --sys | --sy)
1105     ac_prev=sysconfdir ;;
1106   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1107   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1108     sysconfdir=$ac_optarg ;;
1109
1110   -target | --target | --targe | --targ | --tar | --ta | --t)
1111     ac_prev=target_alias ;;
1112   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1113     target_alias=$ac_optarg ;;
1114
1115   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1116     verbose=yes ;;
1117
1118   -version | --version | --versio | --versi | --vers | -V)
1119     ac_init_version=: ;;
1120
1121   -with-* | --with-*)
1122     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1123     # Reject names that are not valid shell variable names.
1124     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1125       { echo "$as_me: error: invalid package name: $ac_package" >&2
1126    { (exit 1); exit 1; }; }
1127     ac_package=`echo $ac_package| sed 's/-/_/g'`
1128     eval with_$ac_package=\$ac_optarg ;;
1129
1130   -without-* | --without-*)
1131     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1132     # Reject names that are not valid shell variable names.
1133     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1134       { echo "$as_me: error: invalid package name: $ac_package" >&2
1135    { (exit 1); exit 1; }; }
1136     ac_package=`echo $ac_package | sed 's/-/_/g'`
1137     eval with_$ac_package=no ;;
1138
1139   --x)
1140     # Obsolete; use --with-x.
1141     with_x=yes ;;
1142
1143   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1144   | --x-incl | --x-inc | --x-in | --x-i)
1145     ac_prev=x_includes ;;
1146   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1147   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1148     x_includes=$ac_optarg ;;
1149
1150   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1151   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1152     ac_prev=x_libraries ;;
1153   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1154   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1155     x_libraries=$ac_optarg ;;
1156
1157   -*) { echo "$as_me: error: unrecognized option: $ac_option
1158 Try \`$0 --help' for more information." >&2
1159    { (exit 1); exit 1; }; }
1160     ;;
1161
1162   *=*)
1163     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1164     # Reject names that are not valid shell variable names.
1165     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1166       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1167    { (exit 1); exit 1; }; }
1168     eval $ac_envvar=\$ac_optarg
1169     export $ac_envvar ;;
1170
1171   *)
1172     # FIXME: should be removed in autoconf 3.0.
1173     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1174     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1175       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1176     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1177     ;;
1178
1179   esac
1180 done
1181
1182 if test -n "$ac_prev"; then
1183   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1184   { echo "$as_me: error: missing argument to $ac_option" >&2
1185    { (exit 1); exit 1; }; }
1186 fi
1187
1188 # Be sure to have absolute directory names.
1189 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1190                 datadir sysconfdir sharedstatedir localstatedir includedir \
1191                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1192                 libdir localedir mandir
1193 do
1194   eval ac_val=\$$ac_var
1195   case $ac_val in
1196     [\\/$]* | ?:[\\/]* )  continue;;
1197     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1198   esac
1199   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1200    { (exit 1); exit 1; }; }
1201 done
1202
1203 # There might be people who depend on the old broken behavior: `$host'
1204 # used to hold the argument of --host etc.
1205 # FIXME: To remove some day.
1206 build=$build_alias
1207 host=$host_alias
1208 target=$target_alias
1209
1210 # FIXME: To remove some day.
1211 if test "x$host_alias" != x; then
1212   if test "x$build_alias" = x; then
1213     cross_compiling=maybe
1214     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1215     If a cross compiler is detected then cross compile mode will be used." >&2
1216   elif test "x$build_alias" != "x$host_alias"; then
1217     cross_compiling=yes
1218   fi
1219 fi
1220
1221 ac_tool_prefix=
1222 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1223
1224 test "$silent" = yes && exec 6>/dev/null
1225
1226
1227 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1228 ac_ls_di=`ls -di .` &&
1229 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1230   { echo "$as_me: error: Working directory cannot be determined" >&2
1231    { (exit 1); exit 1; }; }
1232 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1233   { echo "$as_me: error: pwd does not report name of working directory" >&2
1234    { (exit 1); exit 1; }; }
1235
1236
1237 # Find the source files, if location was not specified.
1238 if test -z "$srcdir"; then
1239   ac_srcdir_defaulted=yes
1240   # Try the directory containing this script, then the parent directory.
1241   ac_confdir=`$as_dirname -- "$0" ||
1242 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1243          X"$0" : 'X\(//\)[^/]' \| \
1244          X"$0" : 'X\(//\)$' \| \
1245          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1246 echo X"$0" |
1247     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1248             s//\1/
1249             q
1250           }
1251           /^X\(\/\/\)[^/].*/{
1252             s//\1/
1253             q
1254           }
1255           /^X\(\/\/\)$/{
1256             s//\1/
1257             q
1258           }
1259           /^X\(\/\).*/{
1260             s//\1/
1261             q
1262           }
1263           s/.*/./; q'`
1264   srcdir=$ac_confdir
1265   if test ! -r "$srcdir/$ac_unique_file"; then
1266     srcdir=..
1267   fi
1268 else
1269   ac_srcdir_defaulted=no
1270 fi
1271 if test ! -r "$srcdir/$ac_unique_file"; then
1272   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1273   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1274    { (exit 1); exit 1; }; }
1275 fi
1276 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1277 ac_abs_confdir=`(
1278         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1279    { (exit 1); exit 1; }; }
1280         pwd)`
1281 # When building in place, set srcdir=.
1282 if test "$ac_abs_confdir" = "$ac_pwd"; then
1283   srcdir=.
1284 fi
1285 # Remove unnecessary trailing slashes from srcdir.
1286 # Double slashes in file names in object file debugging info
1287 # mess up M-x gdb in Emacs.
1288 case $srcdir in
1289 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1290 esac
1291 for ac_var in $ac_precious_vars; do
1292   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1293   eval ac_env_${ac_var}_value=\$${ac_var}
1294   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1295   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1296 done
1297
1298 #
1299 # Report the --help message.
1300 #
1301 if test "$ac_init_help" = "long"; then
1302   # Omit some internal or obsolete options to make the list less imposing.
1303   # This message is too long to be a string in the A/UX 3.1 sh.
1304   cat <<_ACEOF
1305 \`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1306
1307 Usage: $0 [OPTION]... [VAR=VALUE]...
1308
1309 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1310 VAR=VALUE.  See below for descriptions of some of the useful variables.
1311
1312 Defaults for the options are specified in brackets.
1313
1314 Configuration:
1315   -h, --help              display this help and exit
1316       --help=short        display options specific to this package
1317       --help=recursive    display the short help of all the included packages
1318   -V, --version           display version information and exit
1319   -q, --quiet, --silent   do not print \`checking...' messages
1320       --cache-file=FILE   cache test results in FILE [disabled]
1321   -C, --config-cache      alias for \`--cache-file=config.cache'
1322   -n, --no-create         do not create output files
1323       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1324
1325 Installation directories:
1326   --prefix=PREFIX         install architecture-independent files in PREFIX
1327                           [$ac_default_prefix]
1328   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1329                           [PREFIX]
1330
1331 By default, \`make install' will install all the files in
1332 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1333 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1334 for instance \`--prefix=\$HOME'.
1335
1336 For better control, use the options below.
1337
1338 Fine tuning of the installation directories:
1339   --bindir=DIR           user executables [EPREFIX/bin]
1340   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1341   --libexecdir=DIR       program executables [EPREFIX/libexec]
1342   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1343   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1344   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1345   --libdir=DIR           object code libraries [EPREFIX/lib]
1346   --includedir=DIR       C header files [PREFIX/include]
1347   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1348   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1349   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1350   --infodir=DIR          info documentation [DATAROOTDIR/info]
1351   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1352   --mandir=DIR           man documentation [DATAROOTDIR/man]
1353   --docdir=DIR           documentation root [DATAROOTDIR/doc/--sample--]
1354   --htmldir=DIR          html documentation [DOCDIR]
1355   --dvidir=DIR           dvi documentation [DOCDIR]
1356   --pdfdir=DIR           pdf documentation [DOCDIR]
1357   --psdir=DIR            ps documentation [DOCDIR]
1358 _ACEOF
1359
1360   cat <<\_ACEOF
1361
1362 System types:
1363   --build=BUILD     configure for building on BUILD [guessed]
1364   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1365   --target=TARGET   configure for building compilers for TARGET [HOST]
1366 _ACEOF
1367 fi
1368
1369 if test -n "$ac_init_help"; then
1370   case $ac_init_help in
1371      short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1372    esac
1373   cat <<\_ACEOF
1374
1375 Optional Features:
1376   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1377   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1378   --enable-polly          Use polly if available (default is YES)
1379   --enable-libcpp         Use libc++ if available (default is NO)
1380   --enable-cxx11          Use c++11 if available (default is NO)
1381   --enable-optimized      Compile with optimizations enabled (default is NO)
1382   --enable-profiling      Compile with profiling enabled (default is NO)
1383   --enable-assertions     Compile with assertion checks enabled (default is
1384                           YES)
1385   --enable-werror         Compile with -Werror enabled (default is NO)
1386   --enable-expensive-checks
1387                           Compile with expensive debug checks enabled (default
1388                           is NO)
1389   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1390                           NO)
1391   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1392                           optimization is on and YES if it's off)
1393   --enable-jit            Enable Just In Time Compiling (default is YES)
1394   --enable-docs           Build documents (default is YES)
1395   --enable-doxygen        Build doxygen documentation (default is NO)
1396   --enable-threads        Use threads if available (default is YES)
1397   --enable-pthreads       Use pthreads if available (default is YES)
1398   --enable-pic            Build LLVM with Position Independent Code (default
1399                           is YES)
1400   --enable-shared         Build a shared library and link tools against it
1401                           (default is NO)
1402   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1403                           Win32 DLL (default is YES)
1404   --enable-timestamps     Enable embedding timestamp information in build
1405                           (default is YES)
1406   --enable-targets        Build specific host targets: all or
1407                           target1,target2,... Valid targets are: host, x86,
1408                           x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1409                           xcore, msp430, nvptx, cbe, and cpp (default=all)
1410   --enable-bindings       Build specific language bindings:
1411                           all,auto,none,{binding-name} (default=auto)
1412   --enable-libffi         Check for the presence of libffi (default is NO)
1413   --enable-ltdl-install   install libltdl
1414
1415 Optional Packages:
1416   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1417   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1418   --with-llvmsrc          Location of LLVM Source Code
1419   --with-llvmobj          Location of LLVM Object Code
1420   --with-optimize-option  Select the compiler options to use for optimized
1421                           builds
1422   --with-extra-options    Specify additional options to compile LLVM with
1423   --with-extra-ld-options Specify additional options to link LLVM with
1424   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1425                           is stdlib)
1426   --with-clang-resource-dir
1427                           Relative directory from the Clang binary for
1428                           resource files
1429   --with-c-include-dirs   Colon separated list of directories clang will
1430                           search for headers
1431   --with-gcc-toolchain    Directory where gcc is installed.
1432   --with-binutils-include Specify path to binutils/include/ containing
1433                           plugin-api.h file for gold plugin.
1434   --with-bug-report-url   Specify the URL where bug reports should be
1435                           submitted (default=http://llvm.org/bugs/)
1436   --with-tclinclude       directory where tcl headers are
1437   --with-udis86=<path>    Use udis86 external x86 disassembler library
1438   --with-oprofile=<prefix>
1439                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1440
1441 Some influential environment variables:
1442   CC          C compiler command
1443   CFLAGS      C compiler flags
1444   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1445               nonstandard directory <lib dir>
1446   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1447               you have headers in a nonstandard directory <include dir>
1448   CXX         C++ compiler command
1449   CXXFLAGS    C++ compiler flags
1450   CPP         C preprocessor
1451
1452 Use these variables to override the choices made by `configure' or to help
1453 it to find libraries and programs with nonstandard names/locations.
1454
1455 Report bugs to <bugs@yourdomain>.
1456 _ACEOF
1457 ac_status=$?
1458 fi
1459
1460 if test "$ac_init_help" = "recursive"; then
1461   # If there are subdirs, report their specific --help.
1462   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1463     test -d "$ac_dir" || continue
1464     ac_builddir=.
1465
1466 case "$ac_dir" in
1467 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468 *)
1469   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1470   # A ".." for each directory in $ac_dir_suffix.
1471   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1472   case $ac_top_builddir_sub in
1473   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1475   esac ;;
1476 esac
1477 ac_abs_top_builddir=$ac_pwd
1478 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1479 # for backward compatibility:
1480 ac_top_builddir=$ac_top_build_prefix
1481
1482 case $srcdir in
1483   .)  # We are building in place.
1484     ac_srcdir=.
1485     ac_top_srcdir=$ac_top_builddir_sub
1486     ac_abs_top_srcdir=$ac_pwd ;;
1487   [\\/]* | ?:[\\/]* )  # Absolute name.
1488     ac_srcdir=$srcdir$ac_dir_suffix;
1489     ac_top_srcdir=$srcdir
1490     ac_abs_top_srcdir=$srcdir ;;
1491   *) # Relative name.
1492     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1493     ac_top_srcdir=$ac_top_build_prefix$srcdir
1494     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1495 esac
1496 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1497
1498     cd "$ac_dir" || { ac_status=$?; continue; }
1499     # Check for guested configure.
1500     if test -f "$ac_srcdir/configure.gnu"; then
1501       echo &&
1502       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1503     elif test -f "$ac_srcdir/configure"; then
1504       echo &&
1505       $SHELL "$ac_srcdir/configure" --help=recursive
1506     else
1507       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1508     fi || ac_status=$?
1509     cd "$ac_pwd" || { ac_status=$?; break; }
1510   done
1511 fi
1512
1513 test -n "$ac_init_help" && exit $ac_status
1514 if $ac_init_version; then
1515   cat <<\_ACEOF
1516 [SAMPLE] configure [x.xx]
1517 generated by GNU Autoconf 2.60
1518
1519 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1520 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1521 This configure script is free software; the Free Software Foundation
1522 gives unlimited permission to copy, distribute and modify it.
1523 _ACEOF
1524   exit
1525 fi
1526 cat >config.log <<_ACEOF
1527 This file contains any messages produced by compilers while
1528 running configure, to aid debugging if configure makes a mistake.
1529
1530 It was created by [SAMPLE] $as_me [x.xx], which was
1531 generated by GNU Autoconf 2.60.  Invocation command line was
1532
1533   $ $0 $@
1534
1535 _ACEOF
1536 exec 5>>config.log
1537 {
1538 cat <<_ASUNAME
1539 ## --------- ##
1540 ## Platform. ##
1541 ## --------- ##
1542
1543 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1544 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1545 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1546 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1547 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1548
1549 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1550 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1551
1552 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1553 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1554 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1555 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1556 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1557 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1558 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1559
1560 _ASUNAME
1561
1562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1563 for as_dir in $PATH
1564 do
1565   IFS=$as_save_IFS
1566   test -z "$as_dir" && as_dir=.
1567   echo "PATH: $as_dir"
1568 done
1569 IFS=$as_save_IFS
1570
1571 } >&5
1572
1573 cat >&5 <<_ACEOF
1574
1575
1576 ## ----------- ##
1577 ## Core tests. ##
1578 ## ----------- ##
1579
1580 _ACEOF
1581
1582
1583 # Keep a trace of the command line.
1584 # Strip out --no-create and --no-recursion so they do not pile up.
1585 # Strip out --silent because we don't want to record it for future runs.
1586 # Also quote any args containing shell meta-characters.
1587 # Make two passes to allow for proper duplicate-argument suppression.
1588 ac_configure_args=
1589 ac_configure_args0=
1590 ac_configure_args1=
1591 ac_must_keep_next=false
1592 for ac_pass in 1 2
1593 do
1594   for ac_arg
1595   do
1596     case $ac_arg in
1597     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1598     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1599     | -silent | --silent | --silen | --sile | --sil)
1600       continue ;;
1601     *\'*)
1602       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1603     esac
1604     case $ac_pass in
1605     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1606     2)
1607       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1608       if test $ac_must_keep_next = true; then
1609         ac_must_keep_next=false # Got value, back to normal.
1610       else
1611         case $ac_arg in
1612           *=* | --config-cache | -C | -disable-* | --disable-* \
1613           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1614           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1615           | -with-* | --with-* | -without-* | --without-* | --x)
1616             case "$ac_configure_args0 " in
1617               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1618             esac
1619             ;;
1620           -* ) ac_must_keep_next=true ;;
1621         esac
1622       fi
1623       ac_configure_args="$ac_configure_args '$ac_arg'"
1624       ;;
1625     esac
1626   done
1627 done
1628 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1629 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1630
1631 # When interrupted or exit'd, cleanup temporary files, and complete
1632 # config.log.  We remove comments because anyway the quotes in there
1633 # would cause problems or look ugly.
1634 # WARNING: Use '\'' to represent an apostrophe within the trap.
1635 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1636 trap 'exit_status=$?
1637   # Save into config.log some information that might help in debugging.
1638   {
1639     echo
1640
1641     cat <<\_ASBOX
1642 ## ---------------- ##
1643 ## Cache variables. ##
1644 ## ---------------- ##
1645 _ASBOX
1646     echo
1647     # The following way of writing the cache mishandles newlines in values,
1648 (
1649   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1650     eval ac_val=\$$ac_var
1651     case $ac_val in #(
1652     *${as_nl}*)
1653       case $ac_var in #(
1654       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1655 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1656       esac
1657       case $ac_var in #(
1658       _ | IFS | as_nl) ;; #(
1659       *) $as_unset $ac_var ;;
1660       esac ;;
1661     esac
1662   done
1663   (set) 2>&1 |
1664     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1665     *${as_nl}ac_space=\ *)
1666       sed -n \
1667         "s/'\''/'\''\\\\'\'''\''/g;
1668           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1669       ;; #(
1670     *)
1671       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1672       ;;
1673     esac |
1674     sort
1675 )
1676     echo
1677
1678     cat <<\_ASBOX
1679 ## ----------------- ##
1680 ## Output variables. ##
1681 ## ----------------- ##
1682 _ASBOX
1683     echo
1684     for ac_var in $ac_subst_vars
1685     do
1686       eval ac_val=\$$ac_var
1687       case $ac_val in
1688       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1689       esac
1690       echo "$ac_var='\''$ac_val'\''"
1691     done | sort
1692     echo
1693
1694     if test -n "$ac_subst_files"; then
1695       cat <<\_ASBOX
1696 ## ------------------- ##
1697 ## File substitutions. ##
1698 ## ------------------- ##
1699 _ASBOX
1700       echo
1701       for ac_var in $ac_subst_files
1702       do
1703         eval ac_val=\$$ac_var
1704         case $ac_val in
1705         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1706         esac
1707         echo "$ac_var='\''$ac_val'\''"
1708       done | sort
1709       echo
1710     fi
1711
1712     if test -s confdefs.h; then
1713       cat <<\_ASBOX
1714 ## ----------- ##
1715 ## confdefs.h. ##
1716 ## ----------- ##
1717 _ASBOX
1718       echo
1719       cat confdefs.h
1720       echo
1721     fi
1722     test "$ac_signal" != 0 &&
1723       echo "$as_me: caught signal $ac_signal"
1724     echo "$as_me: exit $exit_status"
1725   } >&5
1726   rm -f core *.core core.conftest.* &&
1727     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1728     exit $exit_status
1729 ' 0
1730 for ac_signal in 1 2 13 15; do
1731   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1732 done
1733 ac_signal=0
1734
1735 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1736 rm -f -r conftest* confdefs.h
1737
1738 # Predefined preprocessor variables.
1739
1740 cat >>confdefs.h <<_ACEOF
1741 #define PACKAGE_NAME "$PACKAGE_NAME"
1742 _ACEOF
1743
1744
1745 cat >>confdefs.h <<_ACEOF
1746 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1747 _ACEOF
1748
1749
1750 cat >>confdefs.h <<_ACEOF
1751 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1752 _ACEOF
1753
1754
1755 cat >>confdefs.h <<_ACEOF
1756 #define PACKAGE_STRING "$PACKAGE_STRING"
1757 _ACEOF
1758
1759
1760 cat >>confdefs.h <<_ACEOF
1761 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1762 _ACEOF
1763
1764
1765 # Let the site file select an alternate cache file if it wants to.
1766 # Prefer explicitly selected file to automatically selected ones.
1767 if test -n "$CONFIG_SITE"; then
1768   set x "$CONFIG_SITE"
1769 elif test "x$prefix" != xNONE; then
1770   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1771 else
1772   set x "$ac_default_prefix/share/config.site" \
1773         "$ac_default_prefix/etc/config.site"
1774 fi
1775 shift
1776 for ac_site_file
1777 do
1778   if test -r "$ac_site_file"; then
1779     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1780 echo "$as_me: loading site script $ac_site_file" >&6;}
1781     sed 's/^/| /' "$ac_site_file" >&5
1782     . "$ac_site_file"
1783   fi
1784 done
1785
1786 if test -r "$cache_file"; then
1787   # Some versions of bash will fail to source /dev/null (special
1788   # files actually), so we avoid doing that.
1789   if test -f "$cache_file"; then
1790     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1791 echo "$as_me: loading cache $cache_file" >&6;}
1792     case $cache_file in
1793       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1794       *)                      . "./$cache_file";;
1795     esac
1796   fi
1797 else
1798   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1799 echo "$as_me: creating cache $cache_file" >&6;}
1800   >$cache_file
1801 fi
1802
1803 # Check that the precious variables saved in the cache have kept the same
1804 # value.
1805 ac_cache_corrupted=false
1806 for ac_var in $ac_precious_vars; do
1807   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1808   eval ac_new_set=\$ac_env_${ac_var}_set
1809   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1810   eval ac_new_val=\$ac_env_${ac_var}_value
1811   case $ac_old_set,$ac_new_set in
1812     set,)
1813       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1814 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1815       ac_cache_corrupted=: ;;
1816     ,set)
1817       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1818 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1819       ac_cache_corrupted=: ;;
1820     ,);;
1821     *)
1822       if test "x$ac_old_val" != "x$ac_new_val"; then
1823         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1824 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1825         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1826 echo "$as_me:   former value:  $ac_old_val" >&2;}
1827         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1828 echo "$as_me:   current value: $ac_new_val" >&2;}
1829         ac_cache_corrupted=:
1830       fi;;
1831   esac
1832   # Pass precious variables to config.status.
1833   if test "$ac_new_set" = set; then
1834     case $ac_new_val in
1835     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1836     *) ac_arg=$ac_var=$ac_new_val ;;
1837     esac
1838     case " $ac_configure_args " in
1839       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1840       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1841     esac
1842   fi
1843 done
1844 if $ac_cache_corrupted; then
1845   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1846 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1847   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1848 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1849    { (exit 1); exit 1; }; }
1850 fi
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876 ac_ext=c
1877 ac_cpp='$CPP $CPPFLAGS'
1878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1881
1882
1883
1884 LLVM_SRC_ROOT="../.."
1885 LLVM_OBJ_ROOT="../.."
1886
1887 LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1888 LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
1889
1890
1891 # Check whether --with-llvmsrc was given.
1892 if test "${with_llvmsrc+set}" = set; then
1893   withval=$with_llvmsrc; llvm_src="$withval"
1894 else
1895   llvm_src="$LLVM_ABS_SRC_ROOT"
1896 fi
1897
1898   LLVM_SRC=$llvm_src
1899
1900
1901 # Check whether --with-llvmobj was given.
1902 if test "${with_llvmobj+set}" = set; then
1903   withval=$with_llvmobj; llvm_obj="$withval"
1904 else
1905   llvm_obj="$LLVM_ABS_OBJ_ROOT"
1906 fi
1907
1908   LLVM_OBJ=$llvm_obj
1909
1910   ac_config_commands="$ac_config_commands setup"
1911
1912
1913
1914 { echo "$as_me:$LINENO: checking llvm-config" >&5
1915 echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1916 llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1917 if ! test -f "$llvm_config_path" ; then
1918    llvm_config_path="no"
1919 fi
1920 { echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1921 echo "${ECHO_T}$llvm_config_path" >&6; }
1922
1923 { echo "$as_me:$LINENO: checking LLVM package version" >&5
1924 echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1925 if test "$llvm_config_path" != no ; then
1926   llvm_package_version=`$llvm_config_path --version`
1927 else
1928   llvm_package_version="unknown";
1929 fi
1930 { echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1931 echo "${ECHO_T}$llvm_package_version" >&6; }
1932 LLVM_VERSION=$llvm_package_version
1933
1934
1935
1936
1937 ac_aux_dir=
1938 for ac_dir in autoconf "$srcdir"/autoconf; do
1939   if test -f "$ac_dir/install-sh"; then
1940     ac_aux_dir=$ac_dir
1941     ac_install_sh="$ac_aux_dir/install-sh -c"
1942     break
1943   elif test -f "$ac_dir/install.sh"; then
1944     ac_aux_dir=$ac_dir
1945     ac_install_sh="$ac_aux_dir/install.sh -c"
1946     break
1947   elif test -f "$ac_dir/shtool"; then
1948     ac_aux_dir=$ac_dir
1949     ac_install_sh="$ac_aux_dir/shtool install -c"
1950     break
1951   fi
1952 done
1953 if test -z "$ac_aux_dir"; then
1954   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1955 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1956    { (exit 1); exit 1; }; }
1957 fi
1958
1959 # These three variables are undocumented and unsupported,
1960 # and are intended to be withdrawn in a future Autoconf release.
1961 # They can cause serious problems if a builder's source tree is in a directory
1962 # whose full name contains unusual characters.
1963 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1964 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1965 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1966
1967
1968
1969
1970 ac_ext=c
1971 ac_cpp='$CPP $CPPFLAGS'
1972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1975 if test -n "$ac_tool_prefix"; then
1976   for ac_prog in clang llvm-gcc gcc
1977   do
1978     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1979 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1982 if test "${ac_cv_prog_CC+set}" = set; then
1983   echo $ECHO_N "(cached) $ECHO_C" >&6
1984 else
1985   if test -n "$CC"; then
1986   ac_cv_prog_CC="$CC" # Let the user override the test.
1987 else
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989 for as_dir in $PATH
1990 do
1991   IFS=$as_save_IFS
1992   test -z "$as_dir" && as_dir=.
1993   for ac_exec_ext in '' $ac_executable_extensions; do
1994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1995     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997     break 2
1998   fi
1999 done
2000 done
2001 IFS=$as_save_IFS
2002
2003 fi
2004 fi
2005 CC=$ac_cv_prog_CC
2006 if test -n "$CC"; then
2007   { echo "$as_me:$LINENO: result: $CC" >&5
2008 echo "${ECHO_T}$CC" >&6; }
2009 else
2010   { echo "$as_me:$LINENO: result: no" >&5
2011 echo "${ECHO_T}no" >&6; }
2012 fi
2013
2014
2015     test -n "$CC" && break
2016   done
2017 fi
2018 if test -z "$CC"; then
2019   ac_ct_CC=$CC
2020   for ac_prog in clang llvm-gcc gcc
2021 do
2022   # Extract the first word of "$ac_prog", so it can be a program name with args.
2023 set dummy $ac_prog; ac_word=$2
2024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2026 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2027   echo $ECHO_N "(cached) $ECHO_C" >&6
2028 else
2029   if test -n "$ac_ct_CC"; then
2030   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2031 else
2032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033 for as_dir in $PATH
2034 do
2035   IFS=$as_save_IFS
2036   test -z "$as_dir" && as_dir=.
2037   for ac_exec_ext in '' $ac_executable_extensions; do
2038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2039     ac_cv_prog_ac_ct_CC="$ac_prog"
2040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041     break 2
2042   fi
2043 done
2044 done
2045 IFS=$as_save_IFS
2046
2047 fi
2048 fi
2049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2050 if test -n "$ac_ct_CC"; then
2051   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2052 echo "${ECHO_T}$ac_ct_CC" >&6; }
2053 else
2054   { echo "$as_me:$LINENO: result: no" >&5
2055 echo "${ECHO_T}no" >&6; }
2056 fi
2057
2058
2059   test -n "$ac_ct_CC" && break
2060 done
2061
2062   if test "x$ac_ct_CC" = x; then
2063     CC=""
2064   else
2065     case $cross_compiling:$ac_tool_warned in
2066 yes:)
2067 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2068 whose name does not start with the host triplet.  If you think this
2069 configuration is useful to you, please write to autoconf@gnu.org." >&5
2070 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2071 whose name does not start with the host triplet.  If you think this
2072 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2073 ac_tool_warned=yes ;;
2074 esac
2075     CC=$ac_ct_CC
2076   fi
2077 fi
2078
2079
2080 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2081 See \`config.log' for more details." >&5
2082 echo "$as_me: error: no acceptable C compiler found in \$PATH
2083 See \`config.log' for more details." >&2;}
2084    { (exit 1); exit 1; }; }
2085
2086 # Provide some information about the compiler.
2087 echo "$as_me:$LINENO: checking for C compiler version" >&5
2088 ac_compiler=`set X $ac_compile; echo $2`
2089 { (ac_try="$ac_compiler --version >&5"
2090 case "(($ac_try" in
2091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092   *) ac_try_echo=$ac_try;;
2093 esac
2094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2095   (eval "$ac_compiler --version >&5") 2>&5
2096   ac_status=$?
2097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098   (exit $ac_status); }
2099 { (ac_try="$ac_compiler -v >&5"
2100 case "(($ac_try" in
2101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2102   *) ac_try_echo=$ac_try;;
2103 esac
2104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2105   (eval "$ac_compiler -v >&5") 2>&5
2106   ac_status=$?
2107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108   (exit $ac_status); }
2109 { (ac_try="$ac_compiler -V >&5"
2110 case "(($ac_try" in
2111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112   *) ac_try_echo=$ac_try;;
2113 esac
2114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2115   (eval "$ac_compiler -V >&5") 2>&5
2116   ac_status=$?
2117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118   (exit $ac_status); }
2119
2120 cat >conftest.$ac_ext <<_ACEOF
2121 /* confdefs.h.  */
2122 _ACEOF
2123 cat confdefs.h >>conftest.$ac_ext
2124 cat >>conftest.$ac_ext <<_ACEOF
2125 /* end confdefs.h.  */
2126
2127 int
2128 main ()
2129 {
2130
2131   ;
2132   return 0;
2133 }
2134 _ACEOF
2135 ac_clean_files_save=$ac_clean_files
2136 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2137 # Try to create an executable without -o first, disregard a.out.
2138 # It will help us diagnose broken compilers, and finding out an intuition
2139 # of exeext.
2140 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2141 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2142 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2143 #
2144 # List of possible output files, starting from the most likely.
2145 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2146 # only as a last resort.  b.out is created by i960 compilers.
2147 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2148 #
2149 # The IRIX 6 linker writes into existing files which may not be
2150 # executable, retaining their permissions.  Remove them first so a
2151 # subsequent execution test works.
2152 ac_rmfiles=
2153 for ac_file in $ac_files
2154 do
2155   case $ac_file in
2156     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2157     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2158   esac
2159 done
2160 rm -f $ac_rmfiles
2161
2162 if { (ac_try="$ac_link_default"
2163 case "(($ac_try" in
2164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2165   *) ac_try_echo=$ac_try;;
2166 esac
2167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2168   (eval "$ac_link_default") 2>&5
2169   ac_status=$?
2170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171   (exit $ac_status); }; then
2172   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2173 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2174 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2175 # so that the user can short-circuit this test for compilers unknown to
2176 # Autoconf.
2177 for ac_file in $ac_files
2178 do
2179   test -f "$ac_file" || continue
2180   case $ac_file in
2181     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2182         ;;
2183     [ab].out )
2184         # We found the default executable, but exeext='' is most
2185         # certainly right.
2186         break;;
2187     *.* )
2188         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2189         then :; else
2190            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2191         fi
2192         # We set ac_cv_exeext here because the later test for it is not
2193         # safe: cross compilers may not add the suffix if given an `-o'
2194         # argument, so we may need to know it at that point already.
2195         # Even if this section looks crufty: it has the advantage of
2196         # actually working.
2197         break;;
2198     * )
2199         break;;
2200   esac
2201 done
2202 test "$ac_cv_exeext" = no && ac_cv_exeext=
2203
2204 else
2205   echo "$as_me: failed program was:" >&5
2206 sed 's/^/| /' conftest.$ac_ext >&5
2207
2208 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2209 See \`config.log' for more details." >&5
2210 echo "$as_me: error: C compiler cannot create executables
2211 See \`config.log' for more details." >&2;}
2212    { (exit 77); exit 77; }; }
2213 fi
2214
2215 ac_exeext=$ac_cv_exeext
2216 { echo "$as_me:$LINENO: result: $ac_file" >&5
2217 echo "${ECHO_T}$ac_file" >&6; }
2218
2219 # Check that the compiler produces executables we can run.  If not, either
2220 # the compiler is broken, or we cross compile.
2221 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2222 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2223 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2224 # If not cross compiling, check that we can run a simple program.
2225 if test "$cross_compiling" != yes; then
2226   if { ac_try='./$ac_file'
2227   { (case "(($ac_try" in
2228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2229   *) ac_try_echo=$ac_try;;
2230 esac
2231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2232   (eval "$ac_try") 2>&5
2233   ac_status=$?
2234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235   (exit $ac_status); }; }; then
2236     cross_compiling=no
2237   else
2238     if test "$cross_compiling" = maybe; then
2239         cross_compiling=yes
2240     else
2241         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2242 If you meant to cross compile, use \`--host'.
2243 See \`config.log' for more details." >&5
2244 echo "$as_me: error: cannot run C compiled programs.
2245 If you meant to cross compile, use \`--host'.
2246 See \`config.log' for more details." >&2;}
2247    { (exit 1); exit 1; }; }
2248     fi
2249   fi
2250 fi
2251 { echo "$as_me:$LINENO: result: yes" >&5
2252 echo "${ECHO_T}yes" >&6; }
2253
2254 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2255 ac_clean_files=$ac_clean_files_save
2256 # Check that the compiler produces executables we can run.  If not, either
2257 # the compiler is broken, or we cross compile.
2258 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2259 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2260 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2261 echo "${ECHO_T}$cross_compiling" >&6; }
2262
2263 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2264 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2265 if { (ac_try="$ac_link"
2266 case "(($ac_try" in
2267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2268   *) ac_try_echo=$ac_try;;
2269 esac
2270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2271   (eval "$ac_link") 2>&5
2272   ac_status=$?
2273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274   (exit $ac_status); }; then
2275   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2276 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2277 # work properly (i.e., refer to `conftest.exe'), while it won't with
2278 # `rm'.
2279 for ac_file in conftest.exe conftest conftest.*; do
2280   test -f "$ac_file" || continue
2281   case $ac_file in
2282     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2283     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2284           break;;
2285     * ) break;;
2286   esac
2287 done
2288 else
2289   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2290 See \`config.log' for more details." >&5
2291 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2292 See \`config.log' for more details." >&2;}
2293    { (exit 1); exit 1; }; }
2294 fi
2295
2296 rm -f conftest$ac_cv_exeext
2297 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2298 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2299
2300 rm -f conftest.$ac_ext
2301 EXEEXT=$ac_cv_exeext
2302 ac_exeext=$EXEEXT
2303 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2304 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2305 if test "${ac_cv_objext+set}" = set; then
2306   echo $ECHO_N "(cached) $ECHO_C" >&6
2307 else
2308   cat >conftest.$ac_ext <<_ACEOF
2309 /* confdefs.h.  */
2310 _ACEOF
2311 cat confdefs.h >>conftest.$ac_ext
2312 cat >>conftest.$ac_ext <<_ACEOF
2313 /* end confdefs.h.  */
2314
2315 int
2316 main ()
2317 {
2318
2319   ;
2320   return 0;
2321 }
2322 _ACEOF
2323 rm -f conftest.o conftest.obj
2324 if { (ac_try="$ac_compile"
2325 case "(($ac_try" in
2326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2327   *) ac_try_echo=$ac_try;;
2328 esac
2329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2330   (eval "$ac_compile") 2>&5
2331   ac_status=$?
2332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333   (exit $ac_status); }; then
2334   for ac_file in conftest.o conftest.obj conftest.*; do
2335   test -f "$ac_file" || continue;
2336   case $ac_file in
2337     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2338     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2339        break;;
2340   esac
2341 done
2342 else
2343   echo "$as_me: failed program was:" >&5
2344 sed 's/^/| /' conftest.$ac_ext >&5
2345
2346 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2347 See \`config.log' for more details." >&5
2348 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2349 See \`config.log' for more details." >&2;}
2350    { (exit 1); exit 1; }; }
2351 fi
2352
2353 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2354 fi
2355 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2356 echo "${ECHO_T}$ac_cv_objext" >&6; }
2357 OBJEXT=$ac_cv_objext
2358 ac_objext=$OBJEXT
2359 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2360 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2361 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2362   echo $ECHO_N "(cached) $ECHO_C" >&6
2363 else
2364   cat >conftest.$ac_ext <<_ACEOF
2365 /* confdefs.h.  */
2366 _ACEOF
2367 cat confdefs.h >>conftest.$ac_ext
2368 cat >>conftest.$ac_ext <<_ACEOF
2369 /* end confdefs.h.  */
2370
2371 int
2372 main ()
2373 {
2374 #ifndef __GNUC__
2375        choke me
2376 #endif
2377
2378   ;
2379   return 0;
2380 }
2381 _ACEOF
2382 rm -f conftest.$ac_objext
2383 if { (ac_try="$ac_compile"
2384 case "(($ac_try" in
2385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386   *) ac_try_echo=$ac_try;;
2387 esac
2388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2389   (eval "$ac_compile") 2>conftest.er1
2390   ac_status=$?
2391   grep -v '^ *+' conftest.er1 >conftest.err
2392   rm -f conftest.er1
2393   cat conftest.err >&5
2394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395   (exit $ac_status); } &&
2396          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2397   { (case "(($ac_try" in
2398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399   *) ac_try_echo=$ac_try;;
2400 esac
2401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2402   (eval "$ac_try") 2>&5
2403   ac_status=$?
2404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405   (exit $ac_status); }; } &&
2406          { ac_try='test -s conftest.$ac_objext'
2407   { (case "(($ac_try" in
2408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409   *) ac_try_echo=$ac_try;;
2410 esac
2411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2412   (eval "$ac_try") 2>&5
2413   ac_status=$?
2414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415   (exit $ac_status); }; }; then
2416   ac_compiler_gnu=yes
2417 else
2418   echo "$as_me: failed program was:" >&5
2419 sed 's/^/| /' conftest.$ac_ext >&5
2420
2421         ac_compiler_gnu=no
2422 fi
2423
2424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2425 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2426
2427 fi
2428 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2429 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2430 GCC=`test $ac_compiler_gnu = yes && echo yes`
2431 ac_test_CFLAGS=${CFLAGS+set}
2432 ac_save_CFLAGS=$CFLAGS
2433 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2434 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2435 if test "${ac_cv_prog_cc_g+set}" = set; then
2436   echo $ECHO_N "(cached) $ECHO_C" >&6
2437 else
2438   ac_save_c_werror_flag=$ac_c_werror_flag
2439    ac_c_werror_flag=yes
2440    ac_cv_prog_cc_g=no
2441    CFLAGS="-g"
2442    cat >conftest.$ac_ext <<_ACEOF
2443 /* confdefs.h.  */
2444 _ACEOF
2445 cat confdefs.h >>conftest.$ac_ext
2446 cat >>conftest.$ac_ext <<_ACEOF
2447 /* end confdefs.h.  */
2448
2449 int
2450 main ()
2451 {
2452
2453   ;
2454   return 0;
2455 }
2456 _ACEOF
2457 rm -f conftest.$ac_objext
2458 if { (ac_try="$ac_compile"
2459 case "(($ac_try" in
2460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461   *) ac_try_echo=$ac_try;;
2462 esac
2463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2464   (eval "$ac_compile") 2>conftest.er1
2465   ac_status=$?
2466   grep -v '^ *+' conftest.er1 >conftest.err
2467   rm -f conftest.er1
2468   cat conftest.err >&5
2469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470   (exit $ac_status); } &&
2471          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2472   { (case "(($ac_try" in
2473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474   *) ac_try_echo=$ac_try;;
2475 esac
2476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2477   (eval "$ac_try") 2>&5
2478   ac_status=$?
2479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480   (exit $ac_status); }; } &&
2481          { ac_try='test -s conftest.$ac_objext'
2482   { (case "(($ac_try" in
2483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484   *) ac_try_echo=$ac_try;;
2485 esac
2486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2487   (eval "$ac_try") 2>&5
2488   ac_status=$?
2489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490   (exit $ac_status); }; }; then
2491   ac_cv_prog_cc_g=yes
2492 else
2493   echo "$as_me: failed program was:" >&5
2494 sed 's/^/| /' conftest.$ac_ext >&5
2495
2496         CFLAGS=""
2497       cat >conftest.$ac_ext <<_ACEOF
2498 /* confdefs.h.  */
2499 _ACEOF
2500 cat confdefs.h >>conftest.$ac_ext
2501 cat >>conftest.$ac_ext <<_ACEOF
2502 /* end confdefs.h.  */
2503
2504 int
2505 main ()
2506 {
2507
2508   ;
2509   return 0;
2510 }
2511 _ACEOF
2512 rm -f conftest.$ac_objext
2513 if { (ac_try="$ac_compile"
2514 case "(($ac_try" in
2515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516   *) ac_try_echo=$ac_try;;
2517 esac
2518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2519   (eval "$ac_compile") 2>conftest.er1
2520   ac_status=$?
2521   grep -v '^ *+' conftest.er1 >conftest.err
2522   rm -f conftest.er1
2523   cat conftest.err >&5
2524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525   (exit $ac_status); } &&
2526          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2527   { (case "(($ac_try" in
2528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529   *) ac_try_echo=$ac_try;;
2530 esac
2531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2532   (eval "$ac_try") 2>&5
2533   ac_status=$?
2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535   (exit $ac_status); }; } &&
2536          { ac_try='test -s conftest.$ac_objext'
2537   { (case "(($ac_try" in
2538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539   *) ac_try_echo=$ac_try;;
2540 esac
2541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542   (eval "$ac_try") 2>&5
2543   ac_status=$?
2544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545   (exit $ac_status); }; }; then
2546   :
2547 else
2548   echo "$as_me: failed program was:" >&5
2549 sed 's/^/| /' conftest.$ac_ext >&5
2550
2551         ac_c_werror_flag=$ac_save_c_werror_flag
2552          CFLAGS="-g"
2553          cat >conftest.$ac_ext <<_ACEOF
2554 /* confdefs.h.  */
2555 _ACEOF
2556 cat confdefs.h >>conftest.$ac_ext
2557 cat >>conftest.$ac_ext <<_ACEOF
2558 /* end confdefs.h.  */
2559
2560 int
2561 main ()
2562 {
2563
2564   ;
2565   return 0;
2566 }
2567 _ACEOF
2568 rm -f conftest.$ac_objext
2569 if { (ac_try="$ac_compile"
2570 case "(($ac_try" in
2571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572   *) ac_try_echo=$ac_try;;
2573 esac
2574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2575   (eval "$ac_compile") 2>conftest.er1
2576   ac_status=$?
2577   grep -v '^ *+' conftest.er1 >conftest.err
2578   rm -f conftest.er1
2579   cat conftest.err >&5
2580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581   (exit $ac_status); } &&
2582          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2583   { (case "(($ac_try" in
2584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585   *) ac_try_echo=$ac_try;;
2586 esac
2587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2588   (eval "$ac_try") 2>&5
2589   ac_status=$?
2590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591   (exit $ac_status); }; } &&
2592          { ac_try='test -s conftest.$ac_objext'
2593   { (case "(($ac_try" in
2594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595   *) ac_try_echo=$ac_try;;
2596 esac
2597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598   (eval "$ac_try") 2>&5
2599   ac_status=$?
2600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601   (exit $ac_status); }; }; then
2602   ac_cv_prog_cc_g=yes
2603 else
2604   echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2606
2607
2608 fi
2609
2610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2611 fi
2612
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614 fi
2615
2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617    ac_c_werror_flag=$ac_save_c_werror_flag
2618 fi
2619 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2620 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2621 if test "$ac_test_CFLAGS" = set; then
2622   CFLAGS=$ac_save_CFLAGS
2623 elif test $ac_cv_prog_cc_g = yes; then
2624   if test "$GCC" = yes; then
2625     CFLAGS="-g -O2"
2626   else
2627     CFLAGS="-g"
2628   fi
2629 else
2630   if test "$GCC" = yes; then
2631     CFLAGS="-O2"
2632   else
2633     CFLAGS=
2634   fi
2635 fi
2636 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2637 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2638 if test "${ac_cv_prog_cc_c89+set}" = set; then
2639   echo $ECHO_N "(cached) $ECHO_C" >&6
2640 else
2641   ac_cv_prog_cc_c89=no
2642 ac_save_CC=$CC
2643 cat >conftest.$ac_ext <<_ACEOF
2644 /* confdefs.h.  */
2645 _ACEOF
2646 cat confdefs.h >>conftest.$ac_ext
2647 cat >>conftest.$ac_ext <<_ACEOF
2648 /* end confdefs.h.  */
2649 #include <stdarg.h>
2650 #include <stdio.h>
2651 #include <sys/types.h>
2652 #include <sys/stat.h>
2653 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2654 struct buf { int x; };
2655 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2656 static char *e (p, i)
2657      char **p;
2658      int i;
2659 {
2660   return p[i];
2661 }
2662 static char *f (char * (*g) (char **, int), char **p, ...)
2663 {
2664   char *s;
2665   va_list v;
2666   va_start (v,p);
2667   s = g (p, va_arg (v,int));
2668   va_end (v);
2669   return s;
2670 }
2671
2672 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2673    function prototypes and stuff, but not '\xHH' hex character constants.
2674    These don't provoke an error unfortunately, instead are silently treated
2675    as 'x'.  The following induces an error, until -std is added to get
2676    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2677    array size at least.  It's necessary to write '\x00'==0 to get something
2678    that's true only with -std.  */
2679 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2680
2681 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2682    inside strings and character constants.  */
2683 #define FOO(x) 'x'
2684 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2685
2686 int test (int i, double x);
2687 struct s1 {int (*f) (int a);};
2688 struct s2 {int (*f) (double a);};
2689 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2690 int argc;
2691 char **argv;
2692 int
2693 main ()
2694 {
2695 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2696   ;
2697   return 0;
2698 }
2699 _ACEOF
2700 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2701         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2702 do
2703   CC="$ac_save_CC $ac_arg"
2704   rm -f conftest.$ac_objext
2705 if { (ac_try="$ac_compile"
2706 case "(($ac_try" in
2707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708   *) ac_try_echo=$ac_try;;
2709 esac
2710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711   (eval "$ac_compile") 2>conftest.er1
2712   ac_status=$?
2713   grep -v '^ *+' conftest.er1 >conftest.err
2714   rm -f conftest.er1
2715   cat conftest.err >&5
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); } &&
2718          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2719   { (case "(($ac_try" in
2720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721   *) ac_try_echo=$ac_try;;
2722 esac
2723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724   (eval "$ac_try") 2>&5
2725   ac_status=$?
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); }; } &&
2728          { ac_try='test -s conftest.$ac_objext'
2729   { (case "(($ac_try" in
2730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731   *) ac_try_echo=$ac_try;;
2732 esac
2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734   (eval "$ac_try") 2>&5
2735   ac_status=$?
2736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737   (exit $ac_status); }; }; then
2738   ac_cv_prog_cc_c89=$ac_arg
2739 else
2740   echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2742
2743
2744 fi
2745
2746 rm -f core conftest.err conftest.$ac_objext
2747   test "x$ac_cv_prog_cc_c89" != "xno" && break
2748 done
2749 rm -f conftest.$ac_ext
2750 CC=$ac_save_CC
2751
2752 fi
2753 # AC_CACHE_VAL
2754 case "x$ac_cv_prog_cc_c89" in
2755   x)
2756     { echo "$as_me:$LINENO: result: none needed" >&5
2757 echo "${ECHO_T}none needed" >&6; } ;;
2758   xno)
2759     { echo "$as_me:$LINENO: result: unsupported" >&5
2760 echo "${ECHO_T}unsupported" >&6; } ;;
2761   *)
2762     CC="$CC $ac_cv_prog_cc_c89"
2763     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2764 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2765 esac
2766
2767
2768 ac_ext=c
2769 ac_cpp='$CPP $CPPFLAGS'
2770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2773
2774 ac_ext=cpp
2775 ac_cpp='$CXXCPP $CPPFLAGS'
2776 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2779 if test -z "$CXX"; then
2780   if test -n "$CCC"; then
2781     CXX=$CCC
2782   else
2783     if test -n "$ac_tool_prefix"; then
2784   for ac_prog in clang++ llvm-g++ g++
2785   do
2786     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2787 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2790 if test "${ac_cv_prog_CXX+set}" = set; then
2791   echo $ECHO_N "(cached) $ECHO_C" >&6
2792 else
2793   if test -n "$CXX"; then
2794   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2795 else
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2798 do
2799   IFS=$as_save_IFS
2800   test -z "$as_dir" && as_dir=.
2801   for ac_exec_ext in '' $ac_executable_extensions; do
2802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2803     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2805     break 2
2806   fi
2807 done
2808 done
2809 IFS=$as_save_IFS
2810
2811 fi
2812 fi
2813 CXX=$ac_cv_prog_CXX
2814 if test -n "$CXX"; then
2815   { echo "$as_me:$LINENO: result: $CXX" >&5
2816 echo "${ECHO_T}$CXX" >&6; }
2817 else
2818   { echo "$as_me:$LINENO: result: no" >&5
2819 echo "${ECHO_T}no" >&6; }
2820 fi
2821
2822
2823     test -n "$CXX" && break
2824   done
2825 fi
2826 if test -z "$CXX"; then
2827   ac_ct_CXX=$CXX
2828   for ac_prog in clang++ llvm-g++ g++
2829 do
2830   # Extract the first word of "$ac_prog", so it can be a program name with args.
2831 set dummy $ac_prog; ac_word=$2
2832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2834 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2835   echo $ECHO_N "(cached) $ECHO_C" >&6
2836 else
2837   if test -n "$ac_ct_CXX"; then
2838   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2839 else
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 for as_dir in $PATH
2842 do
2843   IFS=$as_save_IFS
2844   test -z "$as_dir" && as_dir=.
2845   for ac_exec_ext in '' $ac_executable_extensions; do
2846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2847     ac_cv_prog_ac_ct_CXX="$ac_prog"
2848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849     break 2
2850   fi
2851 done
2852 done
2853 IFS=$as_save_IFS
2854
2855 fi
2856 fi
2857 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2858 if test -n "$ac_ct_CXX"; then
2859   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2860 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2861 else
2862   { echo "$as_me:$LINENO: result: no" >&5
2863 echo "${ECHO_T}no" >&6; }
2864 fi
2865
2866
2867   test -n "$ac_ct_CXX" && break
2868 done
2869
2870   if test "x$ac_ct_CXX" = x; then
2871     CXX="g++"
2872   else
2873     case $cross_compiling:$ac_tool_warned in
2874 yes:)
2875 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2876 whose name does not start with the host triplet.  If you think this
2877 configuration is useful to you, please write to autoconf@gnu.org." >&5
2878 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2879 whose name does not start with the host triplet.  If you think this
2880 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2881 ac_tool_warned=yes ;;
2882 esac
2883     CXX=$ac_ct_CXX
2884   fi
2885 fi
2886
2887   fi
2888 fi
2889 # Provide some information about the compiler.
2890 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2891 ac_compiler=`set X $ac_compile; echo $2`
2892 { (ac_try="$ac_compiler --version >&5"
2893 case "(($ac_try" in
2894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895   *) ac_try_echo=$ac_try;;
2896 esac
2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898   (eval "$ac_compiler --version >&5") 2>&5
2899   ac_status=$?
2900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901   (exit $ac_status); }
2902 { (ac_try="$ac_compiler -v >&5"
2903 case "(($ac_try" in
2904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905   *) ac_try_echo=$ac_try;;
2906 esac
2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908   (eval "$ac_compiler -v >&5") 2>&5
2909   ac_status=$?
2910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911   (exit $ac_status); }
2912 { (ac_try="$ac_compiler -V >&5"
2913 case "(($ac_try" in
2914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915   *) ac_try_echo=$ac_try;;
2916 esac
2917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918   (eval "$ac_compiler -V >&5") 2>&5
2919   ac_status=$?
2920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921   (exit $ac_status); }
2922
2923 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2924 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2925 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2926   echo $ECHO_N "(cached) $ECHO_C" >&6
2927 else
2928   cat >conftest.$ac_ext <<_ACEOF
2929 /* confdefs.h.  */
2930 _ACEOF
2931 cat confdefs.h >>conftest.$ac_ext
2932 cat >>conftest.$ac_ext <<_ACEOF
2933 /* end confdefs.h.  */
2934
2935 int
2936 main ()
2937 {
2938 #ifndef __GNUC__
2939        choke me
2940 #endif
2941
2942   ;
2943   return 0;
2944 }
2945 _ACEOF
2946 rm -f conftest.$ac_objext
2947 if { (ac_try="$ac_compile"
2948 case "(($ac_try" in
2949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950   *) ac_try_echo=$ac_try;;
2951 esac
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953   (eval "$ac_compile") 2>conftest.er1
2954   ac_status=$?
2955   grep -v '^ *+' conftest.er1 >conftest.err
2956   rm -f conftest.er1
2957   cat conftest.err >&5
2958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959   (exit $ac_status); } &&
2960          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2961   { (case "(($ac_try" in
2962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963   *) ac_try_echo=$ac_try;;
2964 esac
2965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966   (eval "$ac_try") 2>&5
2967   ac_status=$?
2968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969   (exit $ac_status); }; } &&
2970          { ac_try='test -s conftest.$ac_objext'
2971   { (case "(($ac_try" in
2972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973   *) ac_try_echo=$ac_try;;
2974 esac
2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976   (eval "$ac_try") 2>&5
2977   ac_status=$?
2978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979   (exit $ac_status); }; }; then
2980   ac_compiler_gnu=yes
2981 else
2982   echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.$ac_ext >&5
2984
2985         ac_compiler_gnu=no
2986 fi
2987
2988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2989 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2990
2991 fi
2992 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2993 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2994 GXX=`test $ac_compiler_gnu = yes && echo yes`
2995 ac_test_CXXFLAGS=${CXXFLAGS+set}
2996 ac_save_CXXFLAGS=$CXXFLAGS
2997 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2998 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2999 if test "${ac_cv_prog_cxx_g+set}" = set; then
3000   echo $ECHO_N "(cached) $ECHO_C" >&6
3001 else
3002   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3003    ac_cxx_werror_flag=yes
3004    ac_cv_prog_cxx_g=no
3005    CXXFLAGS="-g"
3006    cat >conftest.$ac_ext <<_ACEOF
3007 /* confdefs.h.  */
3008 _ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h.  */
3012
3013 int
3014 main ()
3015 {
3016
3017   ;
3018   return 0;
3019 }
3020 _ACEOF
3021 rm -f conftest.$ac_objext
3022 if { (ac_try="$ac_compile"
3023 case "(($ac_try" in
3024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025   *) ac_try_echo=$ac_try;;
3026 esac
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028   (eval "$ac_compile") 2>conftest.er1
3029   ac_status=$?
3030   grep -v '^ *+' conftest.er1 >conftest.err
3031   rm -f conftest.er1
3032   cat conftest.err >&5
3033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034   (exit $ac_status); } &&
3035          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3036   { (case "(($ac_try" in
3037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038   *) ac_try_echo=$ac_try;;
3039 esac
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041   (eval "$ac_try") 2>&5
3042   ac_status=$?
3043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044   (exit $ac_status); }; } &&
3045          { ac_try='test -s conftest.$ac_objext'
3046   { (case "(($ac_try" in
3047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048   *) ac_try_echo=$ac_try;;
3049 esac
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051   (eval "$ac_try") 2>&5
3052   ac_status=$?
3053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054   (exit $ac_status); }; }; then
3055   ac_cv_prog_cxx_g=yes
3056 else
3057   echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3059
3060         CXXFLAGS=""
3061       cat >conftest.$ac_ext <<_ACEOF
3062 /* confdefs.h.  */
3063 _ACEOF
3064 cat confdefs.h >>conftest.$ac_ext
3065 cat >>conftest.$ac_ext <<_ACEOF
3066 /* end confdefs.h.  */
3067
3068 int
3069 main ()
3070 {
3071
3072   ;
3073   return 0;
3074 }
3075 _ACEOF
3076 rm -f conftest.$ac_objext
3077 if { (ac_try="$ac_compile"
3078 case "(($ac_try" in
3079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080   *) ac_try_echo=$ac_try;;
3081 esac
3082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083   (eval "$ac_compile") 2>conftest.er1
3084   ac_status=$?
3085   grep -v '^ *+' conftest.er1 >conftest.err
3086   rm -f conftest.er1
3087   cat conftest.err >&5
3088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089   (exit $ac_status); } &&
3090          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3091   { (case "(($ac_try" in
3092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093   *) ac_try_echo=$ac_try;;
3094 esac
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096   (eval "$ac_try") 2>&5
3097   ac_status=$?
3098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099   (exit $ac_status); }; } &&
3100          { ac_try='test -s conftest.$ac_objext'
3101   { (case "(($ac_try" in
3102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103   *) ac_try_echo=$ac_try;;
3104 esac
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106   (eval "$ac_try") 2>&5
3107   ac_status=$?
3108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109   (exit $ac_status); }; }; then
3110   :
3111 else
3112   echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3114
3115         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3116          CXXFLAGS="-g"
3117          cat >conftest.$ac_ext <<_ACEOF
3118 /* confdefs.h.  */
3119 _ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h.  */
3123
3124 int
3125 main ()
3126 {
3127
3128   ;
3129   return 0;
3130 }
3131 _ACEOF
3132 rm -f conftest.$ac_objext
3133 if { (ac_try="$ac_compile"
3134 case "(($ac_try" in
3135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136   *) ac_try_echo=$ac_try;;
3137 esac
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139   (eval "$ac_compile") 2>conftest.er1
3140   ac_status=$?
3141   grep -v '^ *+' conftest.er1 >conftest.err
3142   rm -f conftest.er1
3143   cat conftest.err >&5
3144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145   (exit $ac_status); } &&
3146          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3147   { (case "(($ac_try" in
3148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149   *) ac_try_echo=$ac_try;;
3150 esac
3151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152   (eval "$ac_try") 2>&5
3153   ac_status=$?
3154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155   (exit $ac_status); }; } &&
3156          { ac_try='test -s conftest.$ac_objext'
3157   { (case "(($ac_try" in
3158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159   *) ac_try_echo=$ac_try;;
3160 esac
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162   (eval "$ac_try") 2>&5
3163   ac_status=$?
3164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165   (exit $ac_status); }; }; then
3166   ac_cv_prog_cxx_g=yes
3167 else
3168   echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3170
3171
3172 fi
3173
3174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3175 fi
3176
3177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3178 fi
3179
3180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3182 fi
3183 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3184 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3185 if test "$ac_test_CXXFLAGS" = set; then
3186   CXXFLAGS=$ac_save_CXXFLAGS
3187 elif test $ac_cv_prog_cxx_g = yes; then
3188   if test "$GXX" = yes; then
3189     CXXFLAGS="-g -O2"
3190   else
3191     CXXFLAGS="-g"
3192   fi
3193 else
3194   if test "$GXX" = yes; then
3195     CXXFLAGS="-O2"
3196   else
3197     CXXFLAGS=
3198   fi
3199 fi
3200 ac_ext=c
3201 ac_cpp='$CPP $CPPFLAGS'
3202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3205
3206 ac_ext=c
3207 ac_cpp='$CPP $CPPFLAGS'
3208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3212 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3213 # On Suns, sometimes $CPP names a directory.
3214 if test -n "$CPP" && test -d "$CPP"; then
3215   CPP=
3216 fi
3217 if test -z "$CPP"; then
3218   if test "${ac_cv_prog_CPP+set}" = set; then
3219   echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221       # Double quotes because CPP needs to be expanded
3222     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3223     do
3224       ac_preproc_ok=false
3225 for ac_c_preproc_warn_flag in '' yes
3226 do
3227   # Use a header file that comes with gcc, so configuring glibc
3228   # with a fresh cross-compiler works.
3229   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3230   # <limits.h> exists even on freestanding compilers.
3231   # On the NeXT, cc -E runs the code through the compiler's parser,
3232   # not just through cpp. "Syntax error" is here to catch this case.
3233   cat >conftest.$ac_ext <<_ACEOF
3234 /* confdefs.h.  */
3235 _ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h.  */
3239 #ifdef __STDC__
3240 # include <limits.h>
3241 #else
3242 # include <assert.h>
3243 #endif
3244                      Syntax error
3245 _ACEOF
3246 if { (ac_try="$ac_cpp conftest.$ac_ext"
3247 case "(($ac_try" in
3248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249   *) ac_try_echo=$ac_try;;
3250 esac
3251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3253   ac_status=$?
3254   grep -v '^ *+' conftest.er1 >conftest.err
3255   rm -f conftest.er1
3256   cat conftest.err >&5
3257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258   (exit $ac_status); } >/dev/null; then
3259   if test -s conftest.err; then
3260     ac_cpp_err=$ac_c_preproc_warn_flag
3261     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3262   else
3263     ac_cpp_err=
3264   fi
3265 else
3266   ac_cpp_err=yes
3267 fi
3268 if test -z "$ac_cpp_err"; then
3269   :
3270 else
3271   echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.$ac_ext >&5
3273
3274   # Broken: fails on valid input.
3275 continue
3276 fi
3277
3278 rm -f conftest.err conftest.$ac_ext
3279
3280   # OK, works on sane cases.  Now check whether nonexistent headers
3281   # can be detected and how.
3282   cat >conftest.$ac_ext <<_ACEOF
3283 /* confdefs.h.  */
3284 _ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h.  */
3288 #include <ac_nonexistent.h>
3289 _ACEOF
3290 if { (ac_try="$ac_cpp conftest.$ac_ext"
3291 case "(($ac_try" in
3292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293   *) ac_try_echo=$ac_try;;
3294 esac
3295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3296   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3297   ac_status=$?
3298   grep -v '^ *+' conftest.er1 >conftest.err
3299   rm -f conftest.er1
3300   cat conftest.err >&5
3301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302   (exit $ac_status); } >/dev/null; then
3303   if test -s conftest.err; then
3304     ac_cpp_err=$ac_c_preproc_warn_flag
3305     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3306   else
3307     ac_cpp_err=
3308   fi
3309 else
3310   ac_cpp_err=yes
3311 fi
3312 if test -z "$ac_cpp_err"; then
3313   # Broken: success on invalid input.
3314 continue
3315 else
3316   echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3318
3319   # Passes both tests.
3320 ac_preproc_ok=:
3321 break
3322 fi
3323
3324 rm -f conftest.err conftest.$ac_ext
3325
3326 done
3327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3328 rm -f conftest.err conftest.$ac_ext
3329 if $ac_preproc_ok; then
3330   break
3331 fi
3332
3333     done
3334     ac_cv_prog_CPP=$CPP
3335
3336 fi
3337   CPP=$ac_cv_prog_CPP
3338 else
3339   ac_cv_prog_CPP=$CPP
3340 fi
3341 { echo "$as_me:$LINENO: result: $CPP" >&5
3342 echo "${ECHO_T}$CPP" >&6; }
3343 ac_preproc_ok=false
3344 for ac_c_preproc_warn_flag in '' yes
3345 do
3346   # Use a header file that comes with gcc, so configuring glibc
3347   # with a fresh cross-compiler works.
3348   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3349   # <limits.h> exists even on freestanding compilers.
3350   # On the NeXT, cc -E runs the code through the compiler's parser,
3351   # not just through cpp. "Syntax error" is here to catch this case.
3352   cat >conftest.$ac_ext <<_ACEOF
3353 /* confdefs.h.  */
3354 _ACEOF
3355 cat confdefs.h >>conftest.$ac_ext
3356 cat >>conftest.$ac_ext <<_ACEOF
3357 /* end confdefs.h.  */
3358 #ifdef __STDC__
3359 # include <limits.h>
3360 #else
3361 # include <assert.h>
3362 #endif
3363                      Syntax error
3364 _ACEOF
3365 if { (ac_try="$ac_cpp conftest.$ac_ext"
3366 case "(($ac_try" in
3367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368   *) ac_try_echo=$ac_try;;
3369 esac
3370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3371   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3372   ac_status=$?
3373   grep -v '^ *+' conftest.er1 >conftest.err
3374   rm -f conftest.er1
3375   cat conftest.err >&5
3376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377   (exit $ac_status); } >/dev/null; then
3378   if test -s conftest.err; then
3379     ac_cpp_err=$ac_c_preproc_warn_flag
3380     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3381   else
3382     ac_cpp_err=
3383   fi
3384 else
3385   ac_cpp_err=yes
3386 fi
3387 if test -z "$ac_cpp_err"; then
3388   :
3389 else
3390   echo "$as_me: failed program was:" >&5
3391 sed 's/^/| /' conftest.$ac_ext >&5
3392
3393   # Broken: fails on valid input.
3394 continue
3395 fi
3396
3397 rm -f conftest.err conftest.$ac_ext
3398
3399   # OK, works on sane cases.  Now check whether nonexistent headers
3400   # can be detected and how.
3401   cat >conftest.$ac_ext <<_ACEOF
3402 /* confdefs.h.  */
3403 _ACEOF
3404 cat confdefs.h >>conftest.$ac_ext
3405 cat >>conftest.$ac_ext <<_ACEOF
3406 /* end confdefs.h.  */
3407 #include <ac_nonexistent.h>
3408 _ACEOF
3409 if { (ac_try="$ac_cpp conftest.$ac_ext"
3410 case "(($ac_try" in
3411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412   *) ac_try_echo=$ac_try;;
3413 esac
3414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3415   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3416   ac_status=$?
3417   grep -v '^ *+' conftest.er1 >conftest.err
3418   rm -f conftest.er1
3419   cat conftest.err >&5
3420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421   (exit $ac_status); } >/dev/null; then
3422   if test -s conftest.err; then
3423     ac_cpp_err=$ac_c_preproc_warn_flag
3424     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3425   else
3426     ac_cpp_err=
3427   fi
3428 else
3429   ac_cpp_err=yes
3430 fi
3431 if test -z "$ac_cpp_err"; then
3432   # Broken: success on invalid input.
3433 continue
3434 else
3435   echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3437
3438   # Passes both tests.
3439 ac_preproc_ok=:
3440 break
3441 fi
3442
3443 rm -f conftest.err conftest.$ac_ext
3444
3445 done
3446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3447 rm -f conftest.err conftest.$ac_ext
3448 if $ac_preproc_ok; then
3449   :
3450 else
3451   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3452 See \`config.log' for more details." >&5
3453 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3454 See \`config.log' for more details." >&2;}
3455    { (exit 1); exit 1; }; }
3456 fi
3457
3458 ac_ext=c
3459 ac_cpp='$CPP $CPPFLAGS'
3460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463
3464
3465
3466
3467 # Check whether --enable-polly was given.
3468 if test "${enable_polly+set}" = set; then
3469   enableval=$enable_polly;
3470 else
3471   enableval=default
3472 fi
3473
3474 case "$enableval" in
3475   yes) ENABLE_POLLY=1
3476  ;;
3477   no)  ENABLE_POLLY=0
3478  ;;
3479   default) ENABLE_POLLY=1
3480  ;;
3481   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3482 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3483    { (exit 1); exit 1; }; } ;;
3484 esac
3485
3486
3487 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3488   LLVM_HAS_POLLY=1
3489
3490   subdirs="$subdirs tools/polly"
3491
3492 fi
3493
3494
3495 # Make sure we can run config.sub.
3496 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3497   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3498 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3499    { (exit 1); exit 1; }; }
3500
3501 { echo "$as_me:$LINENO: checking build system type" >&5
3502 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3503 if test "${ac_cv_build+set}" = set; then
3504   echo $ECHO_N "(cached) $ECHO_C" >&6
3505 else
3506   ac_build_alias=$build_alias
3507 test "x$ac_build_alias" = x &&
3508   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3509 test "x$ac_build_alias" = x &&
3510   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3511 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3512    { (exit 1); exit 1; }; }
3513 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3514   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3515 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3516    { (exit 1); exit 1; }; }
3517
3518 fi
3519 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3520 echo "${ECHO_T}$ac_cv_build" >&6; }
3521 case $ac_cv_build in
3522 *-*-*) ;;
3523 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3524 echo "$as_me: error: invalid value of canonical build" >&2;}
3525    { (exit 1); exit 1; }; };;
3526 esac
3527 build=$ac_cv_build
3528 ac_save_IFS=$IFS; IFS='-'
3529 set x $ac_cv_build
3530 shift
3531 build_cpu=$1
3532 build_vendor=$2
3533 shift; shift
3534 # Remember, the first character of IFS is used to create $*,
3535 # except with old shells:
3536 build_os=$*
3537 IFS=$ac_save_IFS
3538 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3539
3540
3541 { echo "$as_me:$LINENO: checking host system type" >&5
3542 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3543 if test "${ac_cv_host+set}" = set; then
3544   echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546   if test "x$host_alias" = x; then
3547   ac_cv_host=$ac_cv_build
3548 else
3549   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3550     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3551 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3552    { (exit 1); exit 1; }; }
3553 fi
3554
3555 fi
3556 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3557 echo "${ECHO_T}$ac_cv_host" >&6; }
3558 case $ac_cv_host in
3559 *-*-*) ;;
3560 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3561 echo "$as_me: error: invalid value of canonical host" >&2;}
3562    { (exit 1); exit 1; }; };;
3563 esac
3564 host=$ac_cv_host
3565 ac_save_IFS=$IFS; IFS='-'
3566 set x $ac_cv_host
3567 shift
3568 host_cpu=$1
3569 host_vendor=$2
3570 shift; shift
3571 # Remember, the first character of IFS is used to create $*,
3572 # except with old shells:
3573 host_os=$*
3574 IFS=$ac_save_IFS
3575 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3576
3577
3578 { echo "$as_me:$LINENO: checking target system type" >&5
3579 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3580 if test "${ac_cv_target+set}" = set; then
3581   echo $ECHO_N "(cached) $ECHO_C" >&6
3582 else
3583   if test "x$target_alias" = x; then
3584   ac_cv_target=$ac_cv_host
3585 else
3586   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3587     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3588 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3589    { (exit 1); exit 1; }; }
3590 fi
3591
3592 fi
3593 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3594 echo "${ECHO_T}$ac_cv_target" >&6; }
3595 case $ac_cv_target in
3596 *-*-*) ;;
3597 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3598 echo "$as_me: error: invalid value of canonical target" >&2;}
3599    { (exit 1); exit 1; }; };;
3600 esac
3601 target=$ac_cv_target
3602 ac_save_IFS=$IFS; IFS='-'
3603 set x $ac_cv_target
3604 shift
3605 target_cpu=$1
3606 target_vendor=$2
3607 shift; shift
3608 # Remember, the first character of IFS is used to create $*,
3609 # except with old shells:
3610 target_os=$*
3611 IFS=$ac_save_IFS
3612 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3613
3614
3615 # The aliases save the names the user supplied, while $host etc.
3616 # will get canonicalized.
3617 test -n "$target_alias" &&
3618   test "$program_prefix$program_suffix$program_transform_name" = \
3619     NONENONEs,x,x, &&
3620   program_prefix=${target_alias}-
3621
3622 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3623 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3624 if test "${llvm_cv_os_type+set}" = set; then
3625   echo $ECHO_N "(cached) $ECHO_C" >&6
3626 else
3627   case $host in
3628   *-*-aix*)
3629     llvm_cv_link_all_option="-Wl,--whole-archive"
3630     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3631     llvm_cv_os_type="AIX"
3632     llvm_cv_platform_type="Unix" ;;
3633   *-*-irix*)
3634     llvm_cv_link_all_option="-Wl,--whole-archive"
3635     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3636     llvm_cv_os_type="IRIX"
3637     llvm_cv_platform_type="Unix" ;;
3638   *-*-cygwin*)
3639     llvm_cv_link_all_option="-Wl,--whole-archive"
3640     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3641     llvm_cv_os_type="Cygwin"
3642     llvm_cv_platform_type="Unix" ;;
3643   *-*-darwin*)
3644     llvm_cv_link_all_option="-Wl,-all_load"
3645     llvm_cv_no_link_all_option="-Wl,-noall_load"
3646     llvm_cv_os_type="Darwin"
3647     llvm_cv_platform_type="Unix" ;;
3648   *-*-minix*)
3649     llvm_cv_link_all_option="-Wl,-all_load"
3650     llvm_cv_no_link_all_option="-Wl,-noall_load"
3651     llvm_cv_os_type="Minix"
3652     llvm_cv_platform_type="Unix" ;;
3653   *-*-freebsd* | *-*-kfreebsd-gnu)
3654     llvm_cv_link_all_option="-Wl,--whole-archive"
3655     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3656     llvm_cv_os_type="FreeBSD"
3657     llvm_cv_platform_type="Unix" ;;
3658   *-*-openbsd*)
3659     llvm_cv_link_all_option="-Wl,--whole-archive"
3660     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3661     llvm_cv_os_type="OpenBSD"
3662     llvm_cv_platform_type="Unix" ;;
3663   *-*-netbsd*)
3664     llvm_cv_link_all_option="-Wl,--whole-archive"
3665     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3666     llvm_cv_os_type="NetBSD"
3667     llvm_cv_platform_type="Unix" ;;
3668   *-*-dragonfly*)
3669     llvm_cv_link_all_option="-Wl,--whole-archive"
3670     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3671     llvm_cv_os_type="DragonFly"
3672     llvm_cv_platform_type="Unix" ;;
3673   *-*-hpux*)
3674     llvm_cv_link_all_option="-Wl,--whole-archive"
3675     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3676     llvm_cv_os_type="HP-UX"
3677     llvm_cv_platform_type="Unix" ;;
3678   *-*-interix*)
3679     llvm_cv_link_all_option="-Wl,--whole-archive"
3680     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3681     llvm_cv_os_type="Interix"
3682     llvm_cv_platform_type="Unix" ;;
3683   *-*-linux*)
3684     llvm_cv_link_all_option="-Wl,--whole-archive"
3685     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3686     llvm_cv_os_type="Linux"
3687     llvm_cv_platform_type="Unix" ;;
3688   *-*-gnu*)
3689     llvm_cv_link_all_option="-Wl,--whole-archive"
3690     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3691     llvm_cv_os_type="GNU"
3692     llvm_cv_platform_type="Unix" ;;
3693   *-*-solaris*)
3694     llvm_cv_link_all_option="-Wl,-z,allextract"
3695     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3696     llvm_cv_os_type="SunOS"
3697     llvm_cv_platform_type="Unix" ;;
3698   *-*-auroraux*)
3699     llvm_cv_link_all_option="-Wl,-z,allextract"
3700     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3701     llvm_cv_os_type="AuroraUX"
3702     llvm_cv_platform_type="Unix" ;;
3703   *-*-win32*)
3704     llvm_cv_link_all_option="-Wl,--whole-archive"
3705     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3706     llvm_cv_os_type="Win32"
3707     llvm_cv_platform_type="Win32" ;;
3708   *-*-mingw*)
3709     llvm_cv_link_all_option="-Wl,--whole-archive"
3710     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3711     llvm_cv_os_type="MingW"
3712     llvm_cv_platform_type="Win32" ;;
3713   *-*-haiku*)
3714     llvm_cv_link_all_option="-Wl,--whole-archive"
3715     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3716     llvm_cv_os_type="Haiku"
3717     llvm_cv_platform_type="Unix" ;;
3718   *-unknown-eabi*)
3719     llvm_cv_link_all_option="-Wl,--whole-archive"
3720     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3721     llvm_cv_os_type="Freestanding"
3722     llvm_cv_platform_type="Unix" ;;
3723   *-unknown-elf*)
3724     llvm_cv_link_all_option="-Wl,--whole-archive"
3725     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3726     llvm_cv_os_type="Freestanding"
3727     llvm_cv_platform_type="Unix" ;;
3728   *)
3729     llvm_cv_link_all_option=""
3730     llvm_cv_no_link_all_option=""
3731     llvm_cv_os_type="Unknown"
3732     llvm_cv_platform_type="Unknown" ;;
3733 esac
3734 fi
3735 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3736 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3737
3738 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3739 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3740 if test "${llvm_cv_target_os_type+set}" = set; then
3741   echo $ECHO_N "(cached) $ECHO_C" >&6
3742 else
3743   case $target in
3744   *-*-aix*)
3745     llvm_cv_target_os_type="AIX" ;;
3746   *-*-irix*)
3747     llvm_cv_target_os_type="IRIX" ;;
3748   *-*-cygwin*)
3749     llvm_cv_target_os_type="Cygwin" ;;
3750   *-*-darwin*)
3751     llvm_cv_target_os_type="Darwin" ;;
3752   *-*-minix*)
3753     llvm_cv_target_os_type="Minix" ;;
3754   *-*-freebsd* | *-*-kfreebsd-gnu)
3755     llvm_cv_target_os_type="FreeBSD" ;;
3756   *-*-openbsd*)
3757     llvm_cv_target_os_type="OpenBSD" ;;
3758   *-*-netbsd*)
3759     llvm_cv_target_os_type="NetBSD" ;;
3760   *-*-dragonfly*)
3761     llvm_cv_target_os_type="DragonFly" ;;
3762   *-*-hpux*)
3763     llvm_cv_target_os_type="HP-UX" ;;
3764   *-*-interix*)
3765     llvm_cv_target_os_type="Interix" ;;
3766   *-*-linux*)
3767     llvm_cv_target_os_type="Linux" ;;
3768   *-*-gnu*)
3769     llvm_cv_target_os_type="GNU" ;;
3770   *-*-solaris*)
3771     llvm_cv_target_os_type="SunOS" ;;
3772   *-*-auroraux*)
3773     llvm_cv_target_os_type="AuroraUX" ;;
3774   *-*-win32*)
3775     llvm_cv_target_os_type="Win32" ;;
3776   *-*-mingw*)
3777     llvm_cv_target_os_type="MingW" ;;
3778   *-*-haiku*)
3779     llvm_cv_target_os_type="Haiku" ;;
3780   *-*-rtems*)
3781     llvm_cv_target_os_type="RTEMS" ;;
3782   *-*-nacl*)
3783     llvm_cv_target_os_type="NativeClient" ;;
3784   *-unknown-eabi*)
3785     llvm_cv_target_os_type="Freestanding" ;;
3786   *)
3787     llvm_cv_target_os_type="Unknown" ;;
3788 esac
3789 fi
3790 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3791 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3792
3793 if test "$llvm_cv_os_type" = "Unknown" ; then
3794   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3795 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3796    { (exit 1); exit 1; }; }
3797 fi
3798
3799 OS=$llvm_cv_os_type
3800
3801 HOST_OS=$llvm_cv_os_type
3802
3803 TARGET_OS=$llvm_cv_target_os_type
3804
3805
3806 LINKALL=$llvm_cv_link_all_option
3807
3808 NOLINKALL=$llvm_cv_no_link_all_option
3809
3810
3811 case $llvm_cv_platform_type in
3812   Unix)
3813
3814 cat >>confdefs.h <<\_ACEOF
3815 #define LLVM_ON_UNIX 1
3816 _ACEOF
3817
3818     LLVM_ON_UNIX=1
3819
3820     LLVM_ON_WIN32=0
3821
3822     ;;
3823   Win32)
3824
3825 cat >>confdefs.h <<\_ACEOF
3826 #define LLVM_ON_WIN32 1
3827 _ACEOF
3828
3829     LLVM_ON_UNIX=0
3830
3831     LLVM_ON_WIN32=1
3832
3833     ;;
3834 esac
3835
3836 { echo "$as_me:$LINENO: checking target architecture" >&5
3837 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3838 if test "${llvm_cv_target_arch+set}" = set; then
3839   echo $ECHO_N "(cached) $ECHO_C" >&6
3840 else
3841   case $target in
3842   i?86-*)                 llvm_cv_target_arch="x86" ;;
3843   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3844   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3845   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3846   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3847   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
3848   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
3849   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
3850   xcore-*)                llvm_cv_target_arch="XCore" ;;
3851   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3852   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3853   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3854   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
3855   *)                      llvm_cv_target_arch="Unknown" ;;
3856 esac
3857 fi
3858 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3859 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3860
3861 if test "$llvm_cv_target_arch" = "Unknown" ; then
3862   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3863 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3864 fi
3865
3866 # Determine the LLVM native architecture for the target
3867 case "$llvm_cv_target_arch" in
3868     x86)     LLVM_NATIVE_ARCH="X86" ;;
3869     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3870     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3871 esac
3872
3873 ARCH=$llvm_cv_target_arch
3874
3875
3876
3877
3878 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3879 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3880 if test "${ac_cv_path_GREP+set}" = set; then
3881   echo $ECHO_N "(cached) $ECHO_C" >&6
3882 else
3883   # Extract the first word of "grep ggrep" to use in msg output
3884 if test -z "$GREP"; then
3885 set dummy grep ggrep; ac_prog_name=$2
3886 if test "${ac_cv_path_GREP+set}" = set; then
3887   echo $ECHO_N "(cached) $ECHO_C" >&6
3888 else
3889   ac_path_GREP_found=false
3890 # Loop through the user's path and test for each of PROGNAME-LIST
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3893 do
3894   IFS=$as_save_IFS
3895   test -z "$as_dir" && as_dir=.
3896   for ac_prog in grep ggrep; do
3897   for ac_exec_ext in '' $ac_executable_extensions; do
3898     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3899     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3900     # Check for GNU ac_path_GREP and select it if it is found.
3901   # Check for GNU $ac_path_GREP
3902 case `"$ac_path_GREP" --version 2>&1` in
3903 *GNU*)
3904   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3905 *)
3906   ac_count=0
3907   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3908   while :
3909   do
3910     cat "conftest.in" "conftest.in" >"conftest.tmp"
3911     mv "conftest.tmp" "conftest.in"
3912     cp "conftest.in" "conftest.nl"
3913     echo 'GREP' >> "conftest.nl"
3914     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3915     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3916     ac_count=`expr $ac_count + 1`
3917     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3918       # Best one so far, save it but keep looking for a better one
3919       ac_cv_path_GREP="$ac_path_GREP"
3920       ac_path_GREP_max=$ac_count
3921     fi
3922     # 10*(2^10) chars as input seems more than enough
3923     test $ac_count -gt 10 && break
3924   done
3925   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3926 esac
3927
3928
3929     $ac_path_GREP_found && break 3
3930   done
3931 done
3932
3933 done
3934 IFS=$as_save_IFS
3935
3936
3937 fi
3938
3939 GREP="$ac_cv_path_GREP"
3940 if test -z "$GREP"; then
3941   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3942 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3943    { (exit 1); exit 1; }; }
3944 fi
3945
3946 else
3947   ac_cv_path_GREP=$GREP
3948 fi
3949
3950
3951 fi
3952 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3953 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3954  GREP="$ac_cv_path_GREP"
3955
3956
3957 { echo "$as_me:$LINENO: checking for egrep" >&5
3958 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3959 if test "${ac_cv_path_EGREP+set}" = set; then
3960   echo $ECHO_N "(cached) $ECHO_C" >&6
3961 else
3962   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3963    then ac_cv_path_EGREP="$GREP -E"
3964    else
3965      # Extract the first word of "egrep" to use in msg output
3966 if test -z "$EGREP"; then
3967 set dummy egrep; ac_prog_name=$2
3968 if test "${ac_cv_path_EGREP+set}" = set; then
3969   echo $ECHO_N "(cached) $ECHO_C" >&6
3970 else
3971   ac_path_EGREP_found=false
3972 # Loop through the user's path and test for each of PROGNAME-LIST
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3975 do
3976   IFS=$as_save_IFS
3977   test -z "$as_dir" && as_dir=.
3978   for ac_prog in egrep; do
3979   for ac_exec_ext in '' $ac_executable_extensions; do
3980     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3981     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3982     # Check for GNU ac_path_EGREP and select it if it is found.
3983   # Check for GNU $ac_path_EGREP
3984 case `"$ac_path_EGREP" --version 2>&1` in
3985 *GNU*)
3986   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3987 *)
3988   ac_count=0
3989   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3990   while :
3991   do
3992     cat "conftest.in" "conftest.in" >"conftest.tmp"
3993     mv "conftest.tmp" "conftest.in"
3994     cp "conftest.in" "conftest.nl"
3995     echo 'EGREP' >> "conftest.nl"
3996     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3997     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3998     ac_count=`expr $ac_count + 1`
3999     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4000       # Best one so far, save it but keep looking for a better one
4001       ac_cv_path_EGREP="$ac_path_EGREP"
4002       ac_path_EGREP_max=$ac_count
4003     fi
4004     # 10*(2^10) chars as input seems more than enough
4005     test $ac_count -gt 10 && break
4006   done
4007   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4008 esac
4009
4010
4011     $ac_path_EGREP_found && break 3
4012   done
4013 done
4014
4015 done
4016 IFS=$as_save_IFS
4017
4018
4019 fi
4020
4021 EGREP="$ac_cv_path_EGREP"
4022 if test -z "$EGREP"; then
4023   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4024 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4025    { (exit 1); exit 1; }; }
4026 fi
4027
4028 else
4029   ac_cv_path_EGREP=$EGREP
4030 fi
4031
4032
4033    fi
4034 fi
4035 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4036 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4037  EGREP="$ac_cv_path_EGREP"
4038
4039
4040 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4041 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4042 if test "${ac_cv_header_stdc+set}" = set; then
4043   echo $ECHO_N "(cached) $ECHO_C" >&6
4044 else
4045   cat >conftest.$ac_ext <<_ACEOF
4046 /* confdefs.h.  */
4047 _ACEOF
4048 cat confdefs.h >>conftest.$ac_ext
4049 cat >>conftest.$ac_ext <<_ACEOF
4050 /* end confdefs.h.  */
4051 #include <stdlib.h>
4052 #include <stdarg.h>
4053 #include <string.h>
4054 #include <float.h>
4055
4056 int
4057 main ()
4058 {
4059
4060   ;
4061   return 0;
4062 }
4063 _ACEOF
4064 rm -f conftest.$ac_objext
4065 if { (ac_try="$ac_compile"
4066 case "(($ac_try" in
4067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068   *) ac_try_echo=$ac_try;;
4069 esac
4070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4071   (eval "$ac_compile") 2>conftest.er1
4072   ac_status=$?
4073   grep -v '^ *+' conftest.er1 >conftest.err
4074   rm -f conftest.er1
4075   cat conftest.err >&5
4076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077   (exit $ac_status); } &&
4078          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4079   { (case "(($ac_try" in
4080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081   *) ac_try_echo=$ac_try;;
4082 esac
4083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4084   (eval "$ac_try") 2>&5
4085   ac_status=$?
4086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087   (exit $ac_status); }; } &&
4088          { ac_try='test -s conftest.$ac_objext'
4089   { (case "(($ac_try" in
4090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091   *) ac_try_echo=$ac_try;;
4092 esac
4093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4094   (eval "$ac_try") 2>&5
4095   ac_status=$?
4096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097   (exit $ac_status); }; }; then
4098   ac_cv_header_stdc=yes
4099 else
4100   echo "$as_me: failed program was:" >&5
4101 sed 's/^/| /' conftest.$ac_ext >&5
4102
4103         ac_cv_header_stdc=no
4104 fi
4105
4106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107
4108 if test $ac_cv_header_stdc = yes; then
4109   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4110   cat >conftest.$ac_ext <<_ACEOF
4111 /* confdefs.h.  */
4112 _ACEOF
4113 cat confdefs.h >>conftest.$ac_ext
4114 cat >>conftest.$ac_ext <<_ACEOF
4115 /* end confdefs.h.  */
4116 #include <string.h>
4117
4118 _ACEOF
4119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4120   $EGREP "memchr" >/dev/null 2>&1; then
4121   :
4122 else
4123   ac_cv_header_stdc=no
4124 fi
4125 rm -f conftest*
4126
4127 fi
4128
4129 if test $ac_cv_header_stdc = yes; then
4130   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4131   cat >conftest.$ac_ext <<_ACEOF
4132 /* confdefs.h.  */
4133 _ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h.  */
4137 #include <stdlib.h>
4138
4139 _ACEOF
4140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4141   $EGREP "free" >/dev/null 2>&1; then
4142   :
4143 else
4144   ac_cv_header_stdc=no
4145 fi
4146 rm -f conftest*
4147
4148 fi
4149
4150 if test $ac_cv_header_stdc = yes; then
4151   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4152   if test "$cross_compiling" = yes; then
4153   :
4154 else
4155   cat >conftest.$ac_ext <<_ACEOF
4156 /* confdefs.h.  */
4157 _ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h.  */
4161 #include <ctype.h>
4162 #include <stdlib.h>
4163 #if ((' ' & 0x0FF) == 0x020)
4164 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4165 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4166 #else
4167 # define ISLOWER(c) \
4168                    (('a' <= (c) && (c) <= 'i') \
4169                      || ('j' <= (c) && (c) <= 'r') \
4170                      || ('s' <= (c) && (c) <= 'z'))
4171 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4172 #endif
4173
4174 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4175 int
4176 main ()
4177 {
4178   int i;
4179   for (i = 0; i < 256; i++)
4180     if (XOR (islower (i), ISLOWER (i))
4181         || toupper (i) != TOUPPER (i))
4182       return 2;
4183   return 0;
4184 }
4185 _ACEOF
4186 rm -f conftest$ac_exeext
4187 if { (ac_try="$ac_link"
4188 case "(($ac_try" in
4189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4190   *) ac_try_echo=$ac_try;;
4191 esac
4192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4193   (eval "$ac_link") 2>&5
4194   ac_status=$?
4195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4197   { (case "(($ac_try" in
4198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199   *) ac_try_echo=$ac_try;;
4200 esac
4201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4202   (eval "$ac_try") 2>&5
4203   ac_status=$?
4204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205   (exit $ac_status); }; }; then
4206   :
4207 else
4208   echo "$as_me: program exited with status $ac_status" >&5
4209 echo "$as_me: failed program was:" >&5
4210 sed 's/^/| /' conftest.$ac_ext >&5
4211
4212 ( exit $ac_status )
4213 ac_cv_header_stdc=no
4214 fi
4215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4216 fi
4217
4218
4219 fi
4220 fi
4221 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4222 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4223 if test $ac_cv_header_stdc = yes; then
4224
4225 cat >>confdefs.h <<\_ACEOF
4226 #define STDC_HEADERS 1
4227 _ACEOF
4228
4229 fi
4230
4231 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4242                   inttypes.h stdint.h unistd.h
4243 do
4244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4248   echo $ECHO_N "(cached) $ECHO_C" >&6
4249 else
4250   cat >conftest.$ac_ext <<_ACEOF
4251 /* confdefs.h.  */
4252 _ACEOF
4253 cat confdefs.h >>conftest.$ac_ext
4254 cat >>conftest.$ac_ext <<_ACEOF
4255 /* end confdefs.h.  */
4256 $ac_includes_default
4257
4258 #include <$ac_header>
4259 _ACEOF
4260 rm -f conftest.$ac_objext
4261 if { (ac_try="$ac_compile"
4262 case "(($ac_try" in
4263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264   *) ac_try_echo=$ac_try;;
4265 esac
4266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267   (eval "$ac_compile") 2>conftest.er1
4268   ac_status=$?
4269   grep -v '^ *+' conftest.er1 >conftest.err
4270   rm -f conftest.er1
4271   cat conftest.err >&5
4272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273   (exit $ac_status); } &&
4274          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4275   { (case "(($ac_try" in
4276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277   *) ac_try_echo=$ac_try;;
4278 esac
4279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280   (eval "$ac_try") 2>&5
4281   ac_status=$?
4282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283   (exit $ac_status); }; } &&
4284          { ac_try='test -s conftest.$ac_objext'
4285   { (case "(($ac_try" in
4286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287   *) ac_try_echo=$ac_try;;
4288 esac
4289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4290   (eval "$ac_try") 2>&5
4291   ac_status=$?
4292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293   (exit $ac_status); }; }; then
4294   eval "$as_ac_Header=yes"
4295 else
4296   echo "$as_me: failed program was:" >&5
4297 sed 's/^/| /' conftest.$ac_ext >&5
4298
4299         eval "$as_ac_Header=no"
4300 fi
4301
4302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4303 fi
4304 ac_res=`eval echo '${'$as_ac_Header'}'`
4305                { echo "$as_me:$LINENO: result: $ac_res" >&5
4306 echo "${ECHO_T}$ac_res" >&6; }
4307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4308   cat >>confdefs.h <<_ACEOF
4309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4310 _ACEOF
4311
4312 fi
4313
4314 done
4315
4316
4317 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4318 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4319 if test "${ac_cv_c_bigendian+set}" = set; then
4320   echo $ECHO_N "(cached) $ECHO_C" >&6
4321 else
4322   # See if sys/param.h defines the BYTE_ORDER macro.
4323 cat >conftest.$ac_ext <<_ACEOF
4324 /* confdefs.h.  */
4325 _ACEOF
4326 cat confdefs.h >>conftest.$ac_ext
4327 cat >>conftest.$ac_ext <<_ACEOF
4328 /* end confdefs.h.  */
4329 #include <sys/types.h>
4330 #include <sys/param.h>
4331
4332 int
4333 main ()
4334 {
4335 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4336  bogus endian macros
4337 #endif
4338
4339   ;
4340   return 0;
4341 }
4342 _ACEOF
4343 rm -f conftest.$ac_objext
4344 if { (ac_try="$ac_compile"
4345 case "(($ac_try" in
4346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347   *) ac_try_echo=$ac_try;;
4348 esac
4349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4350   (eval "$ac_compile") 2>conftest.er1
4351   ac_status=$?
4352   grep -v '^ *+' conftest.er1 >conftest.err
4353   rm -f conftest.er1
4354   cat conftest.err >&5
4355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356   (exit $ac_status); } &&
4357          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4358   { (case "(($ac_try" in
4359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4360   *) ac_try_echo=$ac_try;;
4361 esac
4362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4363   (eval "$ac_try") 2>&5
4364   ac_status=$?
4365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366   (exit $ac_status); }; } &&
4367          { ac_try='test -s conftest.$ac_objext'
4368   { (case "(($ac_try" in
4369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4370   *) ac_try_echo=$ac_try;;
4371 esac
4372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4373   (eval "$ac_try") 2>&5
4374   ac_status=$?
4375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376   (exit $ac_status); }; }; then
4377   # It does; now see whether it defined to BIG_ENDIAN or not.
4378 cat >conftest.$ac_ext <<_ACEOF
4379 /* confdefs.h.  */
4380 _ACEOF
4381 cat confdefs.h >>conftest.$ac_ext
4382 cat >>conftest.$ac_ext <<_ACEOF
4383 /* end confdefs.h.  */
4384 #include <sys/types.h>
4385 #include <sys/param.h>
4386
4387 int
4388 main ()
4389 {
4390 #if BYTE_ORDER != BIG_ENDIAN
4391  not big endian
4392 #endif
4393
4394   ;
4395   return 0;
4396 }
4397 _ACEOF
4398 rm -f conftest.$ac_objext
4399 if { (ac_try="$ac_compile"
4400 case "(($ac_try" in
4401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402   *) ac_try_echo=$ac_try;;
4403 esac
4404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4405   (eval "$ac_compile") 2>conftest.er1
4406   ac_status=$?
4407   grep -v '^ *+' conftest.er1 >conftest.err
4408   rm -f conftest.er1
4409   cat conftest.err >&5
4410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411   (exit $ac_status); } &&
4412          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4413   { (case "(($ac_try" in
4414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415   *) ac_try_echo=$ac_try;;
4416 esac
4417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4418   (eval "$ac_try") 2>&5
4419   ac_status=$?
4420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421   (exit $ac_status); }; } &&
4422          { ac_try='test -s conftest.$ac_objext'
4423   { (case "(($ac_try" in
4424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4425   *) ac_try_echo=$ac_try;;
4426 esac
4427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4428   (eval "$ac_try") 2>&5
4429   ac_status=$?
4430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431   (exit $ac_status); }; }; then
4432   ac_cv_c_bigendian=yes
4433 else
4434   echo "$as_me: failed program was:" >&5
4435 sed 's/^/| /' conftest.$ac_ext >&5
4436
4437         ac_cv_c_bigendian=no
4438 fi
4439
4440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4441 else
4442   echo "$as_me: failed program was:" >&5
4443 sed 's/^/| /' conftest.$ac_ext >&5
4444
4445         # It does not; compile a test program.
4446 if test "$cross_compiling" = yes; then
4447   # try to guess the endianness by grepping values into an object file
4448   ac_cv_c_bigendian=unknown
4449   cat >conftest.$ac_ext <<_ACEOF
4450 /* confdefs.h.  */
4451 _ACEOF
4452 cat confdefs.h >>conftest.$ac_ext
4453 cat >>conftest.$ac_ext <<_ACEOF
4454 /* end confdefs.h.  */
4455 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4456 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4457 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4458 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4459 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4460 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4461 int
4462 main ()
4463 {
4464  _ascii (); _ebcdic ();
4465   ;
4466   return 0;
4467 }
4468 _ACEOF
4469 rm -f conftest.$ac_objext
4470 if { (ac_try="$ac_compile"
4471 case "(($ac_try" in
4472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473   *) ac_try_echo=$ac_try;;
4474 esac
4475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4476   (eval "$ac_compile") 2>conftest.er1
4477   ac_status=$?
4478   grep -v '^ *+' conftest.er1 >conftest.err
4479   rm -f conftest.er1
4480   cat conftest.err >&5
4481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482   (exit $ac_status); } &&
4483          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4484   { (case "(($ac_try" in
4485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486   *) ac_try_echo=$ac_try;;
4487 esac
4488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4489   (eval "$ac_try") 2>&5
4490   ac_status=$?
4491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492   (exit $ac_status); }; } &&
4493          { ac_try='test -s conftest.$ac_objext'
4494   { (case "(($ac_try" in
4495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496   *) ac_try_echo=$ac_try;;
4497 esac
4498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4499   (eval "$ac_try") 2>&5
4500   ac_status=$?
4501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502   (exit $ac_status); }; }; then
4503   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4504   ac_cv_c_bigendian=yes
4505 fi
4506 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4507   if test "$ac_cv_c_bigendian" = unknown; then
4508     ac_cv_c_bigendian=no
4509   else
4510     # finding both strings is unlikely to happen, but who knows?
4511     ac_cv_c_bigendian=unknown
4512   fi
4513 fi
4514 else
4515   echo "$as_me: failed program was:" >&5
4516 sed 's/^/| /' conftest.$ac_ext >&5
4517
4518
4519 fi
4520
4521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4522 else
4523   cat >conftest.$ac_ext <<_ACEOF
4524 /* confdefs.h.  */
4525 _ACEOF
4526 cat confdefs.h >>conftest.$ac_ext
4527 cat >>conftest.$ac_ext <<_ACEOF
4528 /* end confdefs.h.  */
4529 $ac_includes_default
4530 int
4531 main ()
4532 {
4533
4534   /* Are we little or big endian?  From Harbison&Steele.  */
4535   union
4536   {
4537     long int l;
4538     char c[sizeof (long int)];
4539   } u;
4540   u.l = 1;
4541   return u.c[sizeof (long int) - 1] == 1;
4542
4543   ;
4544   return 0;
4545 }
4546 _ACEOF
4547 rm -f conftest$ac_exeext
4548 if { (ac_try="$ac_link"
4549 case "(($ac_try" in
4550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4551   *) ac_try_echo=$ac_try;;
4552 esac
4553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4554   (eval "$ac_link") 2>&5
4555   ac_status=$?
4556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4558   { (case "(($ac_try" in
4559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560   *) ac_try_echo=$ac_try;;
4561 esac
4562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4563   (eval "$ac_try") 2>&5
4564   ac_status=$?
4565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566   (exit $ac_status); }; }; then
4567   ac_cv_c_bigendian=no
4568 else
4569   echo "$as_me: program exited with status $ac_status" >&5
4570 echo "$as_me: failed program was:" >&5
4571 sed 's/^/| /' conftest.$ac_ext >&5
4572
4573 ( exit $ac_status )
4574 ac_cv_c_bigendian=yes
4575 fi
4576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4577 fi
4578
4579
4580 fi
4581
4582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4583 fi
4584 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4585 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4586 case $ac_cv_c_bigendian in
4587   yes)
4588     ENDIAN=big
4589  ;;
4590   no)
4591     ENDIAN=little
4592  ;;
4593   *)
4594     { { echo "$as_me:$LINENO: error: unknown endianness
4595 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4596 echo "$as_me: error: unknown endianness
4597 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4598    { (exit 1); exit 1; }; } ;;
4599 esac
4600
4601
4602 if test "$cross_compiling" = yes; then
4603   LLVM_CROSS_COMPILING=1
4604
4605
4606 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4607 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4608 if test "${ac_cv_build_exeext+set}" = set; then
4609   echo $ECHO_N "(cached) $ECHO_C" >&6
4610 else
4611   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4612   ac_cv_build_exeext=.exe
4613 else
4614   ac_build_prefix=${build_alias}-
4615
4616   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4617 set dummy ${ac_build_prefix}gcc; ac_word=$2
4618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4620 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4621   echo $ECHO_N "(cached) $ECHO_C" >&6
4622 else
4623   if test -n "$BUILD_CC"; then
4624   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4625 else
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH
4628 do
4629   IFS=$as_save_IFS
4630   test -z "$as_dir" && as_dir=.
4631   for ac_exec_ext in '' $ac_executable_extensions; do
4632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4633     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4635     break 2
4636   fi
4637 done
4638 done
4639 IFS=$as_save_IFS
4640
4641 fi
4642 fi
4643 BUILD_CC=$ac_cv_prog_BUILD_CC
4644 if test -n "$BUILD_CC"; then
4645   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4646 echo "${ECHO_T}$BUILD_CC" >&6; }
4647 else
4648   { echo "$as_me:$LINENO: result: no" >&5
4649 echo "${ECHO_T}no" >&6; }
4650 fi
4651
4652
4653   if test -z "$BUILD_CC"; then
4654      # Extract the first word of "gcc", so it can be a program name with args.
4655 set dummy gcc; ac_word=$2
4656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4658 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4659   echo $ECHO_N "(cached) $ECHO_C" >&6
4660 else
4661   if test -n "$BUILD_CC"; then
4662   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4663 else
4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 for as_dir in $PATH
4666 do
4667   IFS=$as_save_IFS
4668   test -z "$as_dir" && as_dir=.
4669   for ac_exec_ext in '' $ac_executable_extensions; do
4670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4671     ac_cv_prog_BUILD_CC="gcc"
4672     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4673     break 2
4674   fi
4675 done
4676 done
4677 IFS=$as_save_IFS
4678
4679 fi
4680 fi
4681 BUILD_CC=$ac_cv_prog_BUILD_CC
4682 if test -n "$BUILD_CC"; then
4683   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4684 echo "${ECHO_T}$BUILD_CC" >&6; }
4685 else
4686   { echo "$as_me:$LINENO: result: no" >&5
4687 echo "${ECHO_T}no" >&6; }
4688 fi
4689
4690
4691      if test -z "$BUILD_CC"; then
4692        # Extract the first word of "cc", so it can be a program name with args.
4693 set dummy cc; ac_word=$2
4694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4696 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4697   echo $ECHO_N "(cached) $ECHO_C" >&6
4698 else
4699   if test -n "$BUILD_CC"; then
4700   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4701 else
4702   ac_prog_rejected=no
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 for as_dir in $PATH
4705 do
4706   IFS=$as_save_IFS
4707   test -z "$as_dir" && as_dir=.
4708   for ac_exec_ext in '' $ac_executable_extensions; do
4709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4710     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4711        ac_prog_rejected=yes
4712        continue
4713      fi
4714     ac_cv_prog_BUILD_CC="cc"
4715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4716     break 2
4717   fi
4718 done
4719 done
4720 IFS=$as_save_IFS
4721
4722 if test $ac_prog_rejected = yes; then
4723   # We found a bogon in the path, so make sure we never use it.
4724   set dummy $ac_cv_prog_BUILD_CC
4725   shift
4726   if test $# != 0; then
4727     # We chose a different compiler from the bogus one.
4728     # However, it has the same basename, so the bogon will be chosen
4729     # first if we set BUILD_CC to just the basename; use the full file name.
4730     shift
4731     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4732   fi
4733 fi
4734 fi
4735 fi
4736 BUILD_CC=$ac_cv_prog_BUILD_CC
4737 if test -n "$BUILD_CC"; then
4738   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4739 echo "${ECHO_T}$BUILD_CC" >&6; }
4740 else
4741   { echo "$as_me:$LINENO: result: no" >&5
4742 echo "${ECHO_T}no" >&6; }
4743 fi
4744
4745
4746      fi
4747   fi
4748   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4749 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4750    { (exit 1); exit 1; }; }
4751   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4752   rm -f conftest*
4753   echo 'int main () { return 0; }' > conftest.$ac_ext
4754   ac_cv_build_exeext=
4755   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4756   (eval $ac_build_link) 2>&5
4757   ac_status=$?
4758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759   (exit $ac_status); }; then
4760     for file in conftest.*; do
4761       case $file in
4762       *.c | *.o | *.obj | *.dSYM) ;;
4763       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4764       esac
4765     done
4766   else
4767     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4768 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4769    { (exit 1); exit 1; }; }
4770   fi
4771   rm -f conftest*
4772   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4773 fi
4774 fi
4775
4776 BUILD_EXEEXT=""
4777 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4778 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4779 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4780 ac_build_exeext=$BUILD_EXEEXT
4781
4782   ac_build_prefix=${build_alias}-
4783   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4784 set dummy ${ac_build_prefix}g++; ac_word=$2
4785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4787 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4788   echo $ECHO_N "(cached) $ECHO_C" >&6
4789 else
4790   if test -n "$BUILD_CXX"; then
4791   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4792 else
4793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794 for as_dir in $PATH
4795 do
4796   IFS=$as_save_IFS
4797   test -z "$as_dir" && as_dir=.
4798   for ac_exec_ext in '' $ac_executable_extensions; do
4799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4800     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4802     break 2
4803   fi
4804 done
4805 done
4806 IFS=$as_save_IFS
4807
4808 fi
4809 fi
4810 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4811 if test -n "$BUILD_CXX"; then
4812   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4813 echo "${ECHO_T}$BUILD_CXX" >&6; }
4814 else
4815   { echo "$as_me:$LINENO: result: no" >&5
4816 echo "${ECHO_T}no" >&6; }
4817 fi
4818
4819
4820   if test -z "$BUILD_CXX"; then
4821      # Extract the first word of "g++", so it can be a program name with args.
4822 set dummy g++; ac_word=$2
4823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4825 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4826   echo $ECHO_N "(cached) $ECHO_C" >&6
4827 else
4828   if test -n "$BUILD_CXX"; then
4829   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4830 else
4831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832 for as_dir in $PATH
4833 do
4834   IFS=$as_save_IFS
4835   test -z "$as_dir" && as_dir=.
4836   for ac_exec_ext in '' $ac_executable_extensions; do
4837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4838     ac_cv_prog_BUILD_CXX="g++"
4839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4840     break 2
4841   fi
4842 done
4843 done
4844 IFS=$as_save_IFS
4845
4846 fi
4847 fi
4848 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4849 if test -n "$BUILD_CXX"; then
4850   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4851 echo "${ECHO_T}$BUILD_CXX" >&6; }
4852 else
4853   { echo "$as_me:$LINENO: result: no" >&5
4854 echo "${ECHO_T}no" >&6; }
4855 fi
4856
4857
4858      if test -z "$BUILD_CXX"; then
4859        # Extract the first word of "c++", so it can be a program name with args.
4860 set dummy c++; ac_word=$2
4861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4863 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4864   echo $ECHO_N "(cached) $ECHO_C" >&6
4865 else
4866   if test -n "$BUILD_CXX"; then
4867   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4868 else
4869   ac_prog_rejected=no
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH
4872 do
4873   IFS=$as_save_IFS
4874   test -z "$as_dir" && as_dir=.
4875   for ac_exec_ext in '' $ac_executable_extensions; do
4876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4877     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4878        ac_prog_rejected=yes
4879        continue
4880      fi
4881     ac_cv_prog_BUILD_CXX="c++"
4882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4883     break 2
4884   fi
4885 done
4886 done
4887 IFS=$as_save_IFS
4888
4889 if test $ac_prog_rejected = yes; then
4890   # We found a bogon in the path, so make sure we never use it.
4891   set dummy $ac_cv_prog_BUILD_CXX
4892   shift
4893   if test $# != 0; then
4894     # We chose a different compiler from the bogus one.
4895     # However, it has the same basename, so the bogon will be chosen
4896     # first if we set BUILD_CXX to just the basename; use the full file name.
4897     shift
4898     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4899   fi
4900 fi
4901 fi
4902 fi
4903 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4904 if test -n "$BUILD_CXX"; then
4905   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4906 echo "${ECHO_T}$BUILD_CXX" >&6; }
4907 else
4908   { echo "$as_me:$LINENO: result: no" >&5
4909 echo "${ECHO_T}no" >&6; }
4910 fi
4911
4912
4913      fi
4914   fi
4915 else
4916   LLVM_CROSS_COMPILING=0
4917
4918 fi
4919
4920 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4921   cvsbuild="yes"
4922   optimize="no"
4923   CVSBUILD=CVSBUILD=1
4924
4925 else
4926   cvsbuild="no"
4927   optimize="yes"
4928 fi
4929
4930
4931 # Check whether --enable-libcpp was given.
4932 if test "${enable_libcpp+set}" = set; then
4933   enableval=$enable_libcpp;
4934 else
4935   enableval=default
4936 fi
4937
4938 case "$enableval" in
4939   yes) ENABLE_LIBCPP=1
4940  ;;
4941   no)  ENABLE_LIBCPP=0
4942  ;;
4943   default) ENABLE_LIBCPP=0
4944 ;;
4945   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4946 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4947    { (exit 1); exit 1; }; } ;;
4948 esac
4949
4950 # Check whether --enable-cxx11 was given.
4951 if test "${enable_cxx11+set}" = set; then
4952   enableval=$enable_cxx11;
4953 else
4954   enableval=default
4955 fi
4956
4957 case "$enableval" in
4958   yes) ENABLE_CXX11=1
4959  ;;
4960   no)  ENABLE_CXX11=0
4961  ;;
4962   default) ENABLE_CXX11=0
4963 ;;
4964   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4965 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4966    { (exit 1); exit 1; }; } ;;
4967 esac
4968
4969 # Check whether --enable-optimized was given.
4970 if test "${enable_optimized+set}" = set; then
4971   enableval=$enable_optimized;
4972 else
4973   enableval=$optimize
4974 fi
4975
4976 if test ${enableval} = "no" ; then
4977   ENABLE_OPTIMIZED=
4978
4979 else
4980   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4981
4982 fi
4983
4984 # Check whether --enable-profiling was given.
4985 if test "${enable_profiling+set}" = set; then
4986   enableval=$enable_profiling;
4987 else
4988   enableval="no"
4989 fi
4990
4991 if test ${enableval} = "no" ; then
4992   ENABLE_PROFILING=
4993
4994 else
4995   ENABLE_PROFILING=ENABLE_PROFILING=1
4996
4997 fi
4998
4999 # Check whether --enable-assertions was given.
5000 if test "${enable_assertions+set}" = set; then
5001   enableval=$enable_assertions;
5002 else
5003   enableval="yes"
5004 fi
5005
5006 if test ${enableval} = "yes" ; then
5007   DISABLE_ASSERTIONS=
5008
5009 else
5010   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5011
5012 fi
5013
5014 # Check whether --enable-werror was given.
5015 if test "${enable_werror+set}" = set; then
5016   enableval=$enable_werror;
5017 else
5018   enableval="no"
5019 fi
5020
5021 case "$enableval" in
5022   yes) ENABLE_WERROR=1
5023  ;;
5024   no)  ENABLE_WERROR=0
5025  ;;
5026   default) ENABLE_WERROR=0
5027 ;;
5028   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5029 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5030    { (exit 1); exit 1; }; } ;;
5031 esac
5032
5033 # Check whether --enable-expensive-checks was given.
5034 if test "${enable_expensive_checks+set}" = set; then
5035   enableval=$enable_expensive_checks;
5036 else
5037   enableval="no"
5038 fi
5039
5040 if test ${enableval} = "yes" ; then
5041   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5042
5043   EXPENSIVE_CHECKS=yes
5044
5045 else
5046   ENABLE_EXPENSIVE_CHECKS=
5047
5048   EXPENSIVE_CHECKS=no
5049
5050 fi
5051
5052 # Check whether --enable-debug-runtime was given.
5053 if test "${enable_debug_runtime+set}" = set; then
5054   enableval=$enable_debug_runtime;
5055 else
5056   enableval=no
5057 fi
5058
5059 if test ${enableval} = "no" ; then
5060   DEBUG_RUNTIME=
5061
5062 else
5063   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5064
5065 fi
5066
5067 # Check whether --enable-debug-symbols was given.
5068 if test "${enable_debug_symbols+set}" = set; then
5069   enableval=$enable_debug_symbols;
5070 else
5071   enableval=no
5072 fi
5073
5074 if test ${enableval} = "no" ; then
5075   DEBUG_SYMBOLS=
5076
5077 else
5078   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5079
5080 fi
5081
5082 # Check whether --enable-jit was given.
5083 if test "${enable_jit+set}" = set; then
5084   enableval=$enable_jit;
5085 else
5086   enableval=default
5087 fi
5088
5089 if test ${enableval} = "no"
5090 then
5091   JIT=
5092
5093 else
5094   case "$llvm_cv_target_arch" in
5095     x86)         TARGET_HAS_JIT=1
5096  ;;
5097     Sparc)       TARGET_HAS_JIT=0
5098  ;;
5099     PowerPC)     TARGET_HAS_JIT=1
5100  ;;
5101     x86_64)      TARGET_HAS_JIT=1
5102  ;;
5103     ARM)         TARGET_HAS_JIT=1
5104  ;;
5105     AArch64)     TARGET_HAS_JIT=0
5106  ;;
5107     Mips)        TARGET_HAS_JIT=1
5108  ;;
5109     XCore)       TARGET_HAS_JIT=0
5110  ;;
5111     MSP430)      TARGET_HAS_JIT=0
5112  ;;
5113     Hexagon)     TARGET_HAS_JIT=0
5114  ;;
5115     MBlaze)      TARGET_HAS_JIT=0
5116  ;;
5117     NVPTX)       TARGET_HAS_JIT=0
5118  ;;
5119     *)           TARGET_HAS_JIT=0
5120  ;;
5121   esac
5122 fi
5123
5124 # Check whether --enable-docs was given.
5125 if test "${enable_docs+set}" = set; then
5126   enableval=$enable_docs;
5127 else
5128   enableval=default
5129 fi
5130
5131 case "$enableval" in
5132   yes) ENABLE_DOCS=1
5133  ;;
5134   no)  ENABLE_DOCS=0
5135  ;;
5136   default) ENABLE_DOCS=1
5137  ;;
5138   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5139 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5140    { (exit 1); exit 1; }; } ;;
5141 esac
5142
5143 # Check whether --enable-doxygen was given.
5144 if test "${enable_doxygen+set}" = set; then
5145   enableval=$enable_doxygen;
5146 else
5147   enableval=default
5148 fi
5149
5150 case "$enableval" in
5151   yes) ENABLE_DOXYGEN=1
5152  ;;
5153   no)  ENABLE_DOXYGEN=0
5154  ;;
5155   default) ENABLE_DOXYGEN=0
5156  ;;
5157   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5158 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5159    { (exit 1); exit 1; }; } ;;
5160 esac
5161
5162 # Check whether --enable-threads was given.
5163 if test "${enable_threads+set}" = set; then
5164   enableval=$enable_threads;
5165 else
5166   enableval=default
5167 fi
5168
5169 case "$enableval" in
5170   yes) ENABLE_THREADS=1
5171  ;;
5172   no)  ENABLE_THREADS=0
5173  ;;
5174   default) ENABLE_THREADS=1
5175  ;;
5176   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5177 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5178    { (exit 1); exit 1; }; } ;;
5179 esac
5180
5181 cat >>confdefs.h <<_ACEOF
5182 #define ENABLE_THREADS $ENABLE_THREADS
5183 _ACEOF
5184
5185
5186 # Check whether --enable-pthreads was given.
5187 if test "${enable_pthreads+set}" = set; then
5188   enableval=$enable_pthreads;
5189 else
5190   enableval=default
5191 fi
5192
5193 case "$enableval" in
5194   yes) ENABLE_PTHREADS=1
5195  ;;
5196   no)  ENABLE_PTHREADS=0
5197  ;;
5198   default) ENABLE_PTHREADS=1
5199  ;;
5200   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5201 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5202    { (exit 1); exit 1; }; } ;;
5203 esac
5204
5205 # Check whether --enable-pic was given.
5206 if test "${enable_pic+set}" = set; then
5207   enableval=$enable_pic;
5208 else
5209   enableval=default
5210 fi
5211
5212 case "$enableval" in
5213   yes) ENABLE_PIC=1
5214  ;;
5215   no)  ENABLE_PIC=0
5216  ;;
5217   default) ENABLE_PIC=1
5218  ;;
5219   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5220 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5221    { (exit 1); exit 1; }; } ;;
5222 esac
5223
5224 cat >>confdefs.h <<_ACEOF
5225 #define ENABLE_PIC $ENABLE_PIC
5226 _ACEOF
5227
5228
5229 # Check whether --enable-shared was given.
5230 if test "${enable_shared+set}" = set; then
5231   enableval=$enable_shared;
5232 else
5233   enableval=default
5234 fi
5235
5236 case "$enableval" in
5237   yes) ENABLE_SHARED=1
5238  ;;
5239   no)  ENABLE_SHARED=0
5240  ;;
5241   default) ENABLE_SHARED=0
5242  ;;
5243   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5244 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5245    { (exit 1); exit 1; }; } ;;
5246 esac
5247
5248 # Check whether --enable-embed-stdcxx was given.
5249 if test "${enable_embed_stdcxx+set}" = set; then
5250   enableval=$enable_embed_stdcxx;
5251 else
5252   enableval=default
5253 fi
5254
5255 case "$enableval" in
5256   yes) ENABLE_EMBED_STDCXX=1
5257  ;;
5258   no)  ENABLE_EMBED_STDCXX=0
5259  ;;
5260   default) ENABLE_EMBED_STDCXX=1
5261  ;;
5262   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5263 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5264    { (exit 1); exit 1; }; } ;;
5265 esac
5266
5267 # Check whether --enable-timestamps was given.
5268 if test "${enable_timestamps+set}" = set; then
5269   enableval=$enable_timestamps;
5270 else
5271   enableval=default
5272 fi
5273
5274 case "$enableval" in
5275   yes) ENABLE_TIMESTAMPS=1
5276  ;;
5277   no)  ENABLE_TIMESTAMPS=0
5278  ;;
5279   default) ENABLE_TIMESTAMPS=1
5280  ;;
5281   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5282 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5283    { (exit 1); exit 1; }; } ;;
5284 esac
5285
5286 cat >>confdefs.h <<_ACEOF
5287 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5288 _ACEOF
5289
5290
5291 TARGETS_TO_BUILD=""
5292 # Check whether --enable-targets was given.
5293 if test "${enable_targets+set}" = set; then
5294   enableval=$enable_targets;
5295 else
5296   enableval=all
5297 fi
5298
5299 if test "$enableval" = host-only ; then
5300   enableval=host
5301 fi
5302 case "$enableval" in
5303   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 Hexagon CppBackend MBlaze NVPTX" ;;
5304   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5305       case "$a_target" in
5306         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5307         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5308         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5309         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5310         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5311         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5312         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5313         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5314         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5315         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5316         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5317         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5318         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5319         host) case "$llvm_cv_target_arch" in
5320             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5321             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5322             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5323             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5324             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5325             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5326             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5327             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5328             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5329             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5330             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5331             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5332             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5333 echo "$as_me: error: Can not set target to build" >&2;}
5334    { (exit 1); exit 1; }; } ;;
5335           esac ;;
5336         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5337 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5338    { (exit 1); exit 1; }; } ;;
5339       esac
5340   done
5341   ;;
5342 esac
5343 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5344
5345
5346 # Determine whether we are building LLVM support for the native architecture.
5347 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5348 for a_target in $TARGETS_TO_BUILD; do
5349   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5350
5351 cat >>confdefs.h <<_ACEOF
5352 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5353 _ACEOF
5354
5355     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5356     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5357     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5358     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5359     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5360       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5361     fi
5362     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5363       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5364     fi
5365
5366 cat >>confdefs.h <<_ACEOF
5367 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5368 _ACEOF
5369
5370
5371 cat >>confdefs.h <<_ACEOF
5372 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5373 _ACEOF
5374
5375
5376 cat >>confdefs.h <<_ACEOF
5377 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5378 _ACEOF
5379
5380
5381 cat >>confdefs.h <<_ACEOF
5382 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5383 _ACEOF
5384
5385     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5386
5387 cat >>confdefs.h <<_ACEOF
5388 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5389 _ACEOF
5390
5391     fi
5392     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5393
5394 cat >>confdefs.h <<_ACEOF
5395 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5396 _ACEOF
5397
5398     fi
5399   fi
5400 done
5401
5402 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5403 # target feature def files.
5404 LLVM_ENUM_TARGETS=""
5405 LLVM_ENUM_ASM_PRINTERS=""
5406 LLVM_ENUM_ASM_PARSERS=""
5407 LLVM_ENUM_DISASSEMBLERS=""
5408 for target_to_build in $TARGETS_TO_BUILD; do
5409   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5410   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5411     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5412   fi
5413   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5414     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5415   fi
5416   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5417     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5418   fi
5419 done
5420
5421
5422
5423
5424
5425
5426 # Check whether --with-optimize-option was given.
5427 if test "${with_optimize_option+set}" = set; then
5428   withval=$with_optimize_option;
5429 else
5430   withval=default
5431 fi
5432
5433 { echo "$as_me:$LINENO: checking optimization flags" >&5
5434 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5435 case "$withval" in
5436   default)
5437     case "$llvm_cv_os_type" in
5438     FreeBSD) optimize_option=-O2 ;;
5439     MingW) optimize_option=-O2 ;;
5440     *)     optimize_option=-O3 ;;
5441     esac ;;
5442   *) optimize_option="$withval" ;;
5443 esac
5444 OPTIMIZE_OPTION=$optimize_option
5445
5446 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5447 echo "${ECHO_T}$optimize_option" >&6; }
5448
5449
5450 # Check whether --with-extra-options was given.
5451 if test "${with_extra_options+set}" = set; then
5452   withval=$with_extra_options;
5453 else
5454   withval=default
5455 fi
5456
5457 case "$withval" in
5458   default) EXTRA_OPTIONS= ;;
5459   *) EXTRA_OPTIONS=$withval ;;
5460 esac
5461 EXTRA_OPTIONS=$EXTRA_OPTIONS
5462
5463
5464
5465 # Check whether --with-extra-ld-options was given.
5466 if test "${with_extra_ld_options+set}" = set; then
5467   withval=$with_extra_ld_options;
5468 else
5469   withval=default
5470 fi
5471
5472 case "$withval" in
5473   default) EXTRA_LD_OPTIONS= ;;
5474   *) EXTRA_LD_OPTIONS=$withval ;;
5475 esac
5476 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5477
5478
5479 # Check whether --enable-bindings was given.
5480 if test "${enable_bindings+set}" = set; then
5481   enableval=$enable_bindings;
5482 else
5483   enableval=default
5484 fi
5485
5486 BINDINGS_TO_BUILD=""
5487 case "$enableval" in
5488   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5489   all ) BINDINGS_TO_BUILD="ocaml" ;;
5490   none | no) BINDINGS_TO_BUILD="" ;;
5491   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5492       case "$a_binding" in
5493         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5494         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5495 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5496    { (exit 1); exit 1; }; } ;;
5497       esac
5498   done
5499   ;;
5500 esac
5501
5502
5503 # Check whether --with-ocaml-libdir was given.
5504 if test "${with_ocaml_libdir+set}" = set; then
5505   withval=$with_ocaml_libdir;
5506 else
5507   withval=auto
5508 fi
5509
5510 case "$withval" in
5511   auto) with_ocaml_libdir="$withval" ;;
5512   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5513   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5514 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5515    { (exit 1); exit 1; }; } ;;
5516 esac
5517
5518
5519 # Check whether --with-clang-resource-dir was given.
5520 if test "${with_clang_resource_dir+set}" = set; then
5521   withval=$with_clang_resource_dir;
5522 else
5523   withval=""
5524 fi
5525
5526
5527 cat >>confdefs.h <<_ACEOF
5528 #define CLANG_RESOURCE_DIR "$withval"
5529 _ACEOF
5530
5531
5532
5533 # Check whether --with-c-include-dirs was given.
5534 if test "${with_c_include_dirs+set}" = set; then
5535   withval=$with_c_include_dirs;
5536 else
5537   withval=""
5538 fi
5539
5540
5541 cat >>confdefs.h <<_ACEOF
5542 #define C_INCLUDE_DIRS "$withval"
5543 _ACEOF
5544
5545
5546 # Clang normally uses the system c++ headers and libraries. With this option,
5547 # clang will use the ones provided by a gcc installation instead. This option should
5548 # be passed the same value that was used with --prefix when configuring gcc.
5549
5550 # Check whether --with-gcc-toolchain was given.
5551 if test "${with_gcc_toolchain+set}" = set; then
5552   withval=$with_gcc_toolchain;
5553 else
5554   withval=""
5555 fi
5556
5557
5558 cat >>confdefs.h <<_ACEOF
5559 #define GCC_INSTALL_PREFIX "$withval"
5560 _ACEOF
5561
5562
5563
5564 # Check whether --with-binutils-include was given.
5565 if test "${with_binutils_include+set}" = set; then
5566   withval=$with_binutils_include;
5567 else
5568   withval=default
5569 fi
5570
5571 case "$withval" in
5572   default) WITH_BINUTILS_INCDIR=default ;;
5573   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5574   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5575 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5576    { (exit 1); exit 1; }; } ;;
5577 esac
5578 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5579   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5580
5581   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5582      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5583      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5584 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5585    { (exit 1); exit 1; }; };
5586   fi
5587 fi
5588
5589
5590 # Check whether --with-bug-report-url was given.
5591 if test "${with_bug_report_url+set}" = set; then
5592   withval=$with_bug_report_url;
5593 else
5594   withval="http://llvm.org/bugs/"
5595 fi
5596
5597
5598 cat >>confdefs.h <<_ACEOF
5599 #define BUG_REPORT_URL "$withval"
5600 _ACEOF
5601
5602
5603 # Check whether --enable-libffi was given.
5604 if test "${enable_libffi+set}" = set; then
5605   enableval=$enable_libffi; case "$enableval" in
5606     yes) llvm_cv_enable_libffi="yes" ;;
5607     no)  llvm_cv_enable_libffi="no"  ;;
5608     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5609 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5610    { (exit 1); exit 1; }; } ;;
5611   esac
5612 else
5613   llvm_cv_enable_libffi=no
5614 fi
5615
5616
5617
5618 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5619 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5620 if test "${lt_cv_path_NM+set}" = set; then
5621   echo $ECHO_N "(cached) $ECHO_C" >&6
5622 else
5623   if test -n "$NM"; then
5624   # Let the user override the test.
5625   lt_cv_path_NM="$NM"
5626 else
5627   lt_nm_to_check="${ac_tool_prefix}nm"
5628   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5629     lt_nm_to_check="$lt_nm_to_check nm"
5630   fi
5631   for lt_tmp_nm in $lt_nm_to_check; do
5632     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5633     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5634       IFS="$lt_save_ifs"
5635       test -z "$ac_dir" && ac_dir=.
5636       tmp_nm="$ac_dir/$lt_tmp_nm"
5637       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5638         # Check to see if the nm accepts a BSD-compat flag.
5639         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5640         #   nm: unknown option "B" ignored
5641         # Tru64's nm complains that /dev/null is an invalid object file
5642         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5643         */dev/null* | *'Invalid file or object type'*)
5644           lt_cv_path_NM="$tmp_nm -B"
5645           break
5646           ;;
5647         *)
5648           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5649           */dev/null*)
5650             lt_cv_path_NM="$tmp_nm -p"
5651             break
5652             ;;
5653           *)
5654             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5655             continue # so that we can try to find one that supports BSD flags
5656             ;;
5657           esac
5658           ;;
5659         esac
5660       fi
5661     done
5662     IFS="$lt_save_ifs"
5663   done
5664   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5665 fi
5666 fi
5667 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5668 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5669 NM="$lt_cv_path_NM"
5670
5671
5672
5673 { echo "$as_me:$LINENO: checking for GNU make" >&5
5674 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5675 if test "${llvm_cv_gnu_make_command+set}" = set; then
5676   echo $ECHO_N "(cached) $ECHO_C" >&6
5677 else
5678   llvm_cv_gnu_make_command=''
5679  for a in "$MAKE" make gmake gnumake ; do
5680   if test -z "$a" ; then continue ; fi ;
5681   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5682   then
5683    llvm_cv_gnu_make_command=$a ;
5684    break;
5685   fi
5686  done
5687 fi
5688 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5689 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5690  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5691    ifGNUmake='' ;
5692  else
5693    ifGNUmake='#' ;
5694    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5695 echo "${ECHO_T}\"Not found\"" >&6; };
5696  fi
5697
5698
5699 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5700 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5701 LN_S=$as_ln_s
5702 if test "$LN_S" = "ln -s"; then
5703   { echo "$as_me:$LINENO: result: yes" >&5
5704 echo "${ECHO_T}yes" >&6; }
5705 else
5706   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5707 echo "${ECHO_T}no, using $LN_S" >&6; }
5708 fi
5709
5710 # Extract the first word of "cmp", so it can be a program name with args.
5711 set dummy cmp; ac_word=$2
5712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5714 if test "${ac_cv_path_CMP+set}" = set; then
5715   echo $ECHO_N "(cached) $ECHO_C" >&6
5716 else
5717   case $CMP in
5718   [\\/]* | ?:[\\/]*)
5719   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5720   ;;
5721   *)
5722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723 for as_dir in $PATH
5724 do
5725   IFS=$as_save_IFS
5726   test -z "$as_dir" && as_dir=.
5727   for ac_exec_ext in '' $ac_executable_extensions; do
5728   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5729     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5731     break 2
5732   fi
5733 done
5734 done
5735 IFS=$as_save_IFS
5736
5737   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5738   ;;
5739 esac
5740 fi
5741 CMP=$ac_cv_path_CMP
5742 if test -n "$CMP"; then
5743   { echo "$as_me:$LINENO: result: $CMP" >&5
5744 echo "${ECHO_T}$CMP" >&6; }
5745 else
5746   { echo "$as_me:$LINENO: result: no" >&5
5747 echo "${ECHO_T}no" >&6; }
5748 fi
5749
5750
5751 # Extract the first word of "cp", so it can be a program name with args.
5752 set dummy cp; ac_word=$2
5753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5755 if test "${ac_cv_path_CP+set}" = set; then
5756   echo $ECHO_N "(cached) $ECHO_C" >&6
5757 else
5758   case $CP in
5759   [\\/]* | ?:[\\/]*)
5760   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5761   ;;
5762   *)
5763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764 for as_dir in $PATH
5765 do
5766   IFS=$as_save_IFS
5767   test -z "$as_dir" && as_dir=.
5768   for ac_exec_ext in '' $ac_executable_extensions; do
5769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5770     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5771     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5772     break 2
5773   fi
5774 done
5775 done
5776 IFS=$as_save_IFS
5777
5778   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5779   ;;
5780 esac
5781 fi
5782 CP=$ac_cv_path_CP
5783 if test -n "$CP"; then
5784   { echo "$as_me:$LINENO: result: $CP" >&5
5785 echo "${ECHO_T}$CP" >&6; }
5786 else
5787   { echo "$as_me:$LINENO: result: no" >&5
5788 echo "${ECHO_T}no" >&6; }
5789 fi
5790
5791
5792 # Extract the first word of "date", so it can be a program name with args.
5793 set dummy date; ac_word=$2
5794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5796 if test "${ac_cv_path_DATE+set}" = set; then
5797   echo $ECHO_N "(cached) $ECHO_C" >&6
5798 else
5799   case $DATE in
5800   [\\/]* | ?:[\\/]*)
5801   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5802   ;;
5803   *)
5804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805 for as_dir in $PATH
5806 do
5807   IFS=$as_save_IFS
5808   test -z "$as_dir" && as_dir=.
5809   for ac_exec_ext in '' $ac_executable_extensions; do
5810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5811     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5813     break 2
5814   fi
5815 done
5816 done
5817 IFS=$as_save_IFS
5818
5819   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5820   ;;
5821 esac
5822 fi
5823 DATE=$ac_cv_path_DATE
5824 if test -n "$DATE"; then
5825   { echo "$as_me:$LINENO: result: $DATE" >&5
5826 echo "${ECHO_T}$DATE" >&6; }
5827 else
5828   { echo "$as_me:$LINENO: result: no" >&5
5829 echo "${ECHO_T}no" >&6; }
5830 fi
5831
5832
5833 # Extract the first word of "find", so it can be a program name with args.
5834 set dummy find; ac_word=$2
5835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5837 if test "${ac_cv_path_FIND+set}" = set; then
5838   echo $ECHO_N "(cached) $ECHO_C" >&6
5839 else
5840   case $FIND in
5841   [\\/]* | ?:[\\/]*)
5842   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5843   ;;
5844   *)
5845   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846 for as_dir in $PATH
5847 do
5848   IFS=$as_save_IFS
5849   test -z "$as_dir" && as_dir=.
5850   for ac_exec_ext in '' $ac_executable_extensions; do
5851   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5852     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5853     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5854     break 2
5855   fi
5856 done
5857 done
5858 IFS=$as_save_IFS
5859
5860   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5861   ;;
5862 esac
5863 fi
5864 FIND=$ac_cv_path_FIND
5865 if test -n "$FIND"; then
5866   { echo "$as_me:$LINENO: result: $FIND" >&5
5867 echo "${ECHO_T}$FIND" >&6; }
5868 else
5869   { echo "$as_me:$LINENO: result: no" >&5
5870 echo "${ECHO_T}no" >&6; }
5871 fi
5872
5873
5874 # Extract the first word of "grep", so it can be a program name with args.
5875 set dummy grep; ac_word=$2
5876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5878 if test "${ac_cv_path_GREP+set}" = set; then
5879   echo $ECHO_N "(cached) $ECHO_C" >&6
5880 else
5881   case $GREP in
5882   [\\/]* | ?:[\\/]*)
5883   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5884   ;;
5885   *)
5886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887 for as_dir in $PATH
5888 do
5889   IFS=$as_save_IFS
5890   test -z "$as_dir" && as_dir=.
5891   for ac_exec_ext in '' $ac_executable_extensions; do
5892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5893     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5894     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5895     break 2
5896   fi
5897 done
5898 done
5899 IFS=$as_save_IFS
5900
5901   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5902   ;;
5903 esac
5904 fi
5905 GREP=$ac_cv_path_GREP
5906 if test -n "$GREP"; then
5907   { echo "$as_me:$LINENO: result: $GREP" >&5
5908 echo "${ECHO_T}$GREP" >&6; }
5909 else
5910   { echo "$as_me:$LINENO: result: no" >&5
5911 echo "${ECHO_T}no" >&6; }
5912 fi
5913
5914
5915 # Extract the first word of "mkdir", so it can be a program name with args.
5916 set dummy mkdir; ac_word=$2
5917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5919 if test "${ac_cv_path_MKDIR+set}" = set; then
5920   echo $ECHO_N "(cached) $ECHO_C" >&6
5921 else
5922   case $MKDIR in
5923   [\\/]* | ?:[\\/]*)
5924   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5925   ;;
5926   *)
5927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 for as_dir in $PATH
5929 do
5930   IFS=$as_save_IFS
5931   test -z "$as_dir" && as_dir=.
5932   for ac_exec_ext in '' $ac_executable_extensions; do
5933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5934     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5935     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5936     break 2
5937   fi
5938 done
5939 done
5940 IFS=$as_save_IFS
5941
5942   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5943   ;;
5944 esac
5945 fi
5946 MKDIR=$ac_cv_path_MKDIR
5947 if test -n "$MKDIR"; then
5948   { echo "$as_me:$LINENO: result: $MKDIR" >&5
5949 echo "${ECHO_T}$MKDIR" >&6; }
5950 else
5951   { echo "$as_me:$LINENO: result: no" >&5
5952 echo "${ECHO_T}no" >&6; }
5953 fi
5954
5955
5956 # Extract the first word of "mv", so it can be a program name with args.
5957 set dummy mv; ac_word=$2
5958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5960 if test "${ac_cv_path_MV+set}" = set; then
5961   echo $ECHO_N "(cached) $ECHO_C" >&6
5962 else
5963   case $MV in
5964   [\\/]* | ?:[\\/]*)
5965   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5966   ;;
5967   *)
5968   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969 for as_dir in $PATH
5970 do
5971   IFS=$as_save_IFS
5972   test -z "$as_dir" && as_dir=.
5973   for ac_exec_ext in '' $ac_executable_extensions; do
5974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5975     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5976     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5977     break 2
5978   fi
5979 done
5980 done
5981 IFS=$as_save_IFS
5982
5983   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5984   ;;
5985 esac
5986 fi
5987 MV=$ac_cv_path_MV
5988 if test -n "$MV"; then
5989   { echo "$as_me:$LINENO: result: $MV" >&5
5990 echo "${ECHO_T}$MV" >&6; }
5991 else
5992   { echo "$as_me:$LINENO: result: no" >&5
5993 echo "${ECHO_T}no" >&6; }
5994 fi
5995
5996
5997 if test -n "$ac_tool_prefix"; then
5998   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5999 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6002 if test "${ac_cv_prog_RANLIB+set}" = set; then
6003   echo $ECHO_N "(cached) $ECHO_C" >&6
6004 else
6005   if test -n "$RANLIB"; then
6006   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6007 else
6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009 for as_dir in $PATH
6010 do
6011   IFS=$as_save_IFS
6012   test -z "$as_dir" && as_dir=.
6013   for ac_exec_ext in '' $ac_executable_extensions; do
6014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6015     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6017     break 2
6018   fi
6019 done
6020 done
6021 IFS=$as_save_IFS
6022
6023 fi
6024 fi
6025 RANLIB=$ac_cv_prog_RANLIB
6026 if test -n "$RANLIB"; then
6027   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6028 echo "${ECHO_T}$RANLIB" >&6; }
6029 else
6030   { echo "$as_me:$LINENO: result: no" >&5
6031 echo "${ECHO_T}no" >&6; }
6032 fi
6033
6034
6035 fi
6036 if test -z "$ac_cv_prog_RANLIB"; then
6037   ac_ct_RANLIB=$RANLIB
6038   # Extract the first word of "ranlib", so it can be a program name with args.
6039 set dummy ranlib; ac_word=$2
6040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6042 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6043   echo $ECHO_N "(cached) $ECHO_C" >&6
6044 else
6045   if test -n "$ac_ct_RANLIB"; then
6046   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6047 else
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 for as_dir in $PATH
6050 do
6051   IFS=$as_save_IFS
6052   test -z "$as_dir" && as_dir=.
6053   for ac_exec_ext in '' $ac_executable_extensions; do
6054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6055     ac_cv_prog_ac_ct_RANLIB="ranlib"
6056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6057     break 2
6058   fi
6059 done
6060 done
6061 IFS=$as_save_IFS
6062
6063 fi
6064 fi
6065 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6066 if test -n "$ac_ct_RANLIB"; then
6067   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6068 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6069 else
6070   { echo "$as_me:$LINENO: result: no" >&5
6071 echo "${ECHO_T}no" >&6; }
6072 fi
6073
6074   if test "x$ac_ct_RANLIB" = x; then
6075     RANLIB=":"
6076   else
6077     case $cross_compiling:$ac_tool_warned in
6078 yes:)
6079 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6080 whose name does not start with the host triplet.  If you think this
6081 configuration is useful to you, please write to autoconf@gnu.org." >&5
6082 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6083 whose name does not start with the host triplet.  If you think this
6084 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6085 ac_tool_warned=yes ;;
6086 esac
6087     RANLIB=$ac_ct_RANLIB
6088   fi
6089 else
6090   RANLIB="$ac_cv_prog_RANLIB"
6091 fi
6092
6093 if test -n "$ac_tool_prefix"; then
6094   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6095 set dummy ${ac_tool_prefix}ar; ac_word=$2
6096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6098 if test "${ac_cv_prog_AR+set}" = set; then
6099   echo $ECHO_N "(cached) $ECHO_C" >&6
6100 else
6101   if test -n "$AR"; then
6102   ac_cv_prog_AR="$AR" # Let the user override the test.
6103 else
6104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105 for as_dir in $PATH
6106 do
6107   IFS=$as_save_IFS
6108   test -z "$as_dir" && as_dir=.
6109   for ac_exec_ext in '' $ac_executable_extensions; do
6110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6111     ac_cv_prog_AR="${ac_tool_prefix}ar"
6112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6113     break 2
6114   fi
6115 done
6116 done
6117 IFS=$as_save_IFS
6118
6119 fi
6120 fi
6121 AR=$ac_cv_prog_AR
6122 if test -n "$AR"; then
6123   { echo "$as_me:$LINENO: result: $AR" >&5
6124 echo "${ECHO_T}$AR" >&6; }
6125 else
6126   { echo "$as_me:$LINENO: result: no" >&5
6127 echo "${ECHO_T}no" >&6; }
6128 fi
6129
6130
6131 fi
6132 if test -z "$ac_cv_prog_AR"; then
6133   ac_ct_AR=$AR
6134   # Extract the first word of "ar", so it can be a program name with args.
6135 set dummy ar; 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_prog_ac_ct_AR+set}" = set; then
6139   echo $ECHO_N "(cached) $ECHO_C" >&6
6140 else
6141   if test -n "$ac_ct_AR"; then
6142   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6143 else
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145 for as_dir in $PATH
6146 do
6147   IFS=$as_save_IFS
6148   test -z "$as_dir" && as_dir=.
6149   for ac_exec_ext in '' $ac_executable_extensions; do
6150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6151     ac_cv_prog_ac_ct_AR="ar"
6152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6153     break 2
6154   fi
6155 done
6156 done
6157 IFS=$as_save_IFS
6158
6159 fi
6160 fi
6161 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6162 if test -n "$ac_ct_AR"; then
6163   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6164 echo "${ECHO_T}$ac_ct_AR" >&6; }
6165 else
6166   { echo "$as_me:$LINENO: result: no" >&5
6167 echo "${ECHO_T}no" >&6; }
6168 fi
6169
6170   if test "x$ac_ct_AR" = x; then
6171     AR="false"
6172   else
6173     case $cross_compiling:$ac_tool_warned in
6174 yes:)
6175 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6176 whose name does not start with the host triplet.  If you think this
6177 configuration is useful to you, please write to autoconf@gnu.org." >&5
6178 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6179 whose name does not start with the host triplet.  If you think this
6180 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6181 ac_tool_warned=yes ;;
6182 esac
6183     AR=$ac_ct_AR
6184   fi
6185 else
6186   AR="$ac_cv_prog_AR"
6187 fi
6188
6189 # Extract the first word of "rm", so it can be a program name with args.
6190 set dummy rm; ac_word=$2
6191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6193 if test "${ac_cv_path_RM+set}" = set; then
6194   echo $ECHO_N "(cached) $ECHO_C" >&6
6195 else
6196   case $RM in
6197   [\\/]* | ?:[\\/]*)
6198   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6199   ;;
6200   *)
6201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202 for as_dir in $PATH
6203 do
6204   IFS=$as_save_IFS
6205   test -z "$as_dir" && as_dir=.
6206   for ac_exec_ext in '' $ac_executable_extensions; do
6207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6208     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6210     break 2
6211   fi
6212 done
6213 done
6214 IFS=$as_save_IFS
6215
6216   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6217   ;;
6218 esac
6219 fi
6220 RM=$ac_cv_path_RM
6221 if test -n "$RM"; then
6222   { echo "$as_me:$LINENO: result: $RM" >&5
6223 echo "${ECHO_T}$RM" >&6; }
6224 else
6225   { echo "$as_me:$LINENO: result: no" >&5
6226 echo "${ECHO_T}no" >&6; }
6227 fi
6228
6229
6230 # Extract the first word of "sed", so it can be a program name with args.
6231 set dummy sed; ac_word=$2
6232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6234 if test "${ac_cv_path_SED+set}" = set; then
6235   echo $ECHO_N "(cached) $ECHO_C" >&6
6236 else
6237   case $SED in
6238   [\\/]* | ?:[\\/]*)
6239   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6240   ;;
6241   *)
6242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 for as_dir in $PATH
6244 do
6245   IFS=$as_save_IFS
6246   test -z "$as_dir" && as_dir=.
6247   for ac_exec_ext in '' $ac_executable_extensions; do
6248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6249     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6251     break 2
6252   fi
6253 done
6254 done
6255 IFS=$as_save_IFS
6256
6257   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6258   ;;
6259 esac
6260 fi
6261 SED=$ac_cv_path_SED
6262 if test -n "$SED"; then
6263   { echo "$as_me:$LINENO: result: $SED" >&5
6264 echo "${ECHO_T}$SED" >&6; }
6265 else
6266   { echo "$as_me:$LINENO: result: no" >&5
6267 echo "${ECHO_T}no" >&6; }
6268 fi
6269
6270
6271 # Extract the first word of "tar", so it can be a program name with args.
6272 set dummy tar; ac_word=$2
6273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6275 if test "${ac_cv_path_TAR+set}" = set; then
6276   echo $ECHO_N "(cached) $ECHO_C" >&6
6277 else
6278   case $TAR in
6279   [\\/]* | ?:[\\/]*)
6280   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6281   ;;
6282   *)
6283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284 for as_dir in $PATH
6285 do
6286   IFS=$as_save_IFS
6287   test -z "$as_dir" && as_dir=.
6288   for ac_exec_ext in '' $ac_executable_extensions; do
6289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6290     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6292     break 2
6293   fi
6294 done
6295 done
6296 IFS=$as_save_IFS
6297
6298   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6299   ;;
6300 esac
6301 fi
6302 TAR=$ac_cv_path_TAR
6303 if test -n "$TAR"; then
6304   { echo "$as_me:$LINENO: result: $TAR" >&5
6305 echo "${ECHO_T}$TAR" >&6; }
6306 else
6307   { echo "$as_me:$LINENO: result: no" >&5
6308 echo "${ECHO_T}no" >&6; }
6309 fi
6310
6311
6312 # Extract the first word of "pwd", so it can be a program name with args.
6313 set dummy pwd; ac_word=$2
6314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6316 if test "${ac_cv_path_BINPWD+set}" = set; then
6317   echo $ECHO_N "(cached) $ECHO_C" >&6
6318 else
6319   case $BINPWD in
6320   [\\/]* | ?:[\\/]*)
6321   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6322   ;;
6323   *)
6324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325 for as_dir in $PATH
6326 do
6327   IFS=$as_save_IFS
6328   test -z "$as_dir" && as_dir=.
6329   for ac_exec_ext in '' $ac_executable_extensions; do
6330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6331     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6333     break 2
6334   fi
6335 done
6336 done
6337 IFS=$as_save_IFS
6338
6339   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6340   ;;
6341 esac
6342 fi
6343 BINPWD=$ac_cv_path_BINPWD
6344 if test -n "$BINPWD"; then
6345   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6346 echo "${ECHO_T}$BINPWD" >&6; }
6347 else
6348   { echo "$as_me:$LINENO: result: no" >&5
6349 echo "${ECHO_T}no" >&6; }
6350 fi
6351
6352
6353
6354 # Extract the first word of "Graphviz", so it can be a program name with args.
6355 set dummy Graphviz; ac_word=$2
6356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6358 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6359   echo $ECHO_N "(cached) $ECHO_C" >&6
6360 else
6361   case $GRAPHVIZ in
6362   [\\/]* | ?:[\\/]*)
6363   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6364   ;;
6365   *)
6366   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367 for as_dir in $PATH
6368 do
6369   IFS=$as_save_IFS
6370   test -z "$as_dir" && as_dir=.
6371   for ac_exec_ext in '' $ac_executable_extensions; do
6372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6373     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6374     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6375     break 2
6376   fi
6377 done
6378 done
6379 IFS=$as_save_IFS
6380
6381   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6382   ;;
6383 esac
6384 fi
6385 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6386 if test -n "$GRAPHVIZ"; then
6387   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6388 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6389 else
6390   { echo "$as_me:$LINENO: result: no" >&5
6391 echo "${ECHO_T}no" >&6; }
6392 fi
6393
6394
6395 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6396
6397 cat >>confdefs.h <<\_ACEOF
6398 #define HAVE_GRAPHVIZ 1
6399 _ACEOF
6400
6401     if test "$llvm_cv_os_type" = "MingW" ; then
6402     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6403   fi
6404
6405 cat >>confdefs.h <<_ACEOF
6406 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6407 _ACEOF
6408
6409 fi
6410 # Extract the first word of "dot", so it can be a program name with args.
6411 set dummy dot; ac_word=$2
6412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6414 if test "${ac_cv_path_DOT+set}" = set; then
6415   echo $ECHO_N "(cached) $ECHO_C" >&6
6416 else
6417   case $DOT in
6418   [\\/]* | ?:[\\/]*)
6419   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6420   ;;
6421   *)
6422   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423 for as_dir in $PATH
6424 do
6425   IFS=$as_save_IFS
6426   test -z "$as_dir" && as_dir=.
6427   for ac_exec_ext in '' $ac_executable_extensions; do
6428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6429     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6430     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6431     break 2
6432   fi
6433 done
6434 done
6435 IFS=$as_save_IFS
6436
6437   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6438   ;;
6439 esac
6440 fi
6441 DOT=$ac_cv_path_DOT
6442 if test -n "$DOT"; then
6443   { echo "$as_me:$LINENO: result: $DOT" >&5
6444 echo "${ECHO_T}$DOT" >&6; }
6445 else
6446   { echo "$as_me:$LINENO: result: no" >&5
6447 echo "${ECHO_T}no" >&6; }
6448 fi
6449
6450
6451 if test "$DOT" != "echo dot" ; then
6452
6453 cat >>confdefs.h <<\_ACEOF
6454 #define HAVE_DOT 1
6455 _ACEOF
6456
6457     if test "$llvm_cv_os_type" = "MingW" ; then
6458     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6459   fi
6460
6461 cat >>confdefs.h <<_ACEOF
6462 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6463 _ACEOF
6464
6465 fi
6466 # Extract the first word of "fdp", so it can be a program name with args.
6467 set dummy fdp; ac_word=$2
6468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6470 if test "${ac_cv_path_FDP+set}" = set; then
6471   echo $ECHO_N "(cached) $ECHO_C" >&6
6472 else
6473   case $FDP in
6474   [\\/]* | ?:[\\/]*)
6475   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6476   ;;
6477   *)
6478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479 for as_dir in $PATH
6480 do
6481   IFS=$as_save_IFS
6482   test -z "$as_dir" && as_dir=.
6483   for ac_exec_ext in '' $ac_executable_extensions; do
6484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6485     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6487     break 2
6488   fi
6489 done
6490 done
6491 IFS=$as_save_IFS
6492
6493   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6494   ;;
6495 esac
6496 fi
6497 FDP=$ac_cv_path_FDP
6498 if test -n "$FDP"; then
6499   { echo "$as_me:$LINENO: result: $FDP" >&5
6500 echo "${ECHO_T}$FDP" >&6; }
6501 else
6502   { echo "$as_me:$LINENO: result: no" >&5
6503 echo "${ECHO_T}no" >&6; }
6504 fi
6505
6506
6507 if test "$FDP" != "echo fdp" ; then
6508
6509 cat >>confdefs.h <<\_ACEOF
6510 #define HAVE_FDP 1
6511 _ACEOF
6512
6513     if test "$llvm_cv_os_type" = "MingW" ; then
6514     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6515   fi
6516
6517 cat >>confdefs.h <<_ACEOF
6518 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6519 _ACEOF
6520
6521 fi
6522 # Extract the first word of "neato", so it can be a program name with args.
6523 set dummy neato; ac_word=$2
6524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6526 if test "${ac_cv_path_NEATO+set}" = set; then
6527   echo $ECHO_N "(cached) $ECHO_C" >&6
6528 else
6529   case $NEATO in
6530   [\\/]* | ?:[\\/]*)
6531   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6532   ;;
6533   *)
6534   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 for as_dir in $PATH
6536 do
6537   IFS=$as_save_IFS
6538   test -z "$as_dir" && as_dir=.
6539   for ac_exec_ext in '' $ac_executable_extensions; do
6540   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6541     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6543     break 2
6544   fi
6545 done
6546 done
6547 IFS=$as_save_IFS
6548
6549   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6550   ;;
6551 esac
6552 fi
6553 NEATO=$ac_cv_path_NEATO
6554 if test -n "$NEATO"; then
6555   { echo "$as_me:$LINENO: result: $NEATO" >&5
6556 echo "${ECHO_T}$NEATO" >&6; }
6557 else
6558   { echo "$as_me:$LINENO: result: no" >&5
6559 echo "${ECHO_T}no" >&6; }
6560 fi
6561
6562
6563 if test "$NEATO" != "echo neato" ; then
6564
6565 cat >>confdefs.h <<\_ACEOF
6566 #define HAVE_NEATO 1
6567 _ACEOF
6568
6569     if test "$llvm_cv_os_type" = "MingW" ; then
6570     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6571   fi
6572
6573 cat >>confdefs.h <<_ACEOF
6574 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6575 _ACEOF
6576
6577 fi
6578 # Extract the first word of "twopi", so it can be a program name with args.
6579 set dummy twopi; ac_word=$2
6580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6582 if test "${ac_cv_path_TWOPI+set}" = set; then
6583   echo $ECHO_N "(cached) $ECHO_C" >&6
6584 else
6585   case $TWOPI in
6586   [\\/]* | ?:[\\/]*)
6587   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6588   ;;
6589   *)
6590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591 for as_dir in $PATH
6592 do
6593   IFS=$as_save_IFS
6594   test -z "$as_dir" && as_dir=.
6595   for ac_exec_ext in '' $ac_executable_extensions; do
6596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6597     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6599     break 2
6600   fi
6601 done
6602 done
6603 IFS=$as_save_IFS
6604
6605   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6606   ;;
6607 esac
6608 fi
6609 TWOPI=$ac_cv_path_TWOPI
6610 if test -n "$TWOPI"; then
6611   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6612 echo "${ECHO_T}$TWOPI" >&6; }
6613 else
6614   { echo "$as_me:$LINENO: result: no" >&5
6615 echo "${ECHO_T}no" >&6; }
6616 fi
6617
6618
6619 if test "$TWOPI" != "echo twopi" ; then
6620
6621 cat >>confdefs.h <<\_ACEOF
6622 #define HAVE_TWOPI 1
6623 _ACEOF
6624
6625     if test "$llvm_cv_os_type" = "MingW" ; then
6626     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6627   fi
6628
6629 cat >>confdefs.h <<_ACEOF
6630 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6631 _ACEOF
6632
6633 fi
6634 # Extract the first word of "circo", so it can be a program name with args.
6635 set dummy circo; ac_word=$2
6636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6638 if test "${ac_cv_path_CIRCO+set}" = set; then
6639   echo $ECHO_N "(cached) $ECHO_C" >&6
6640 else
6641   case $CIRCO in
6642   [\\/]* | ?:[\\/]*)
6643   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6644   ;;
6645   *)
6646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647 for as_dir in $PATH
6648 do
6649   IFS=$as_save_IFS
6650   test -z "$as_dir" && as_dir=.
6651   for ac_exec_ext in '' $ac_executable_extensions; do
6652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6653     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6655     break 2
6656   fi
6657 done
6658 done
6659 IFS=$as_save_IFS
6660
6661   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6662   ;;
6663 esac
6664 fi
6665 CIRCO=$ac_cv_path_CIRCO
6666 if test -n "$CIRCO"; then
6667   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6668 echo "${ECHO_T}$CIRCO" >&6; }
6669 else
6670   { echo "$as_me:$LINENO: result: no" >&5
6671 echo "${ECHO_T}no" >&6; }
6672 fi
6673
6674
6675 if test "$CIRCO" != "echo circo" ; then
6676
6677 cat >>confdefs.h <<\_ACEOF
6678 #define HAVE_CIRCO 1
6679 _ACEOF
6680
6681     if test "$llvm_cv_os_type" = "MingW" ; then
6682     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6683   fi
6684
6685 cat >>confdefs.h <<_ACEOF
6686 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6687 _ACEOF
6688
6689 fi
6690 for ac_prog in gv gsview32
6691 do
6692   # Extract the first word of "$ac_prog", so it can be a program name with args.
6693 set dummy $ac_prog; ac_word=$2
6694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6696 if test "${ac_cv_path_GV+set}" = set; then
6697   echo $ECHO_N "(cached) $ECHO_C" >&6
6698 else
6699   case $GV in
6700   [\\/]* | ?:[\\/]*)
6701   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6702   ;;
6703   *)
6704   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705 for as_dir in $PATH
6706 do
6707   IFS=$as_save_IFS
6708   test -z "$as_dir" && as_dir=.
6709   for ac_exec_ext in '' $ac_executable_extensions; do
6710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6711     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6713     break 2
6714   fi
6715 done
6716 done
6717 IFS=$as_save_IFS
6718
6719   ;;
6720 esac
6721 fi
6722 GV=$ac_cv_path_GV
6723 if test -n "$GV"; then
6724   { echo "$as_me:$LINENO: result: $GV" >&5
6725 echo "${ECHO_T}$GV" >&6; }
6726 else
6727   { echo "$as_me:$LINENO: result: no" >&5
6728 echo "${ECHO_T}no" >&6; }
6729 fi
6730
6731
6732   test -n "$GV" && break
6733 done
6734 test -n "$GV" || GV="echo gv"
6735
6736 if test "$GV" != "echo gv" ; then
6737
6738 cat >>confdefs.h <<\_ACEOF
6739 #define HAVE_GV 1
6740 _ACEOF
6741
6742     if test "$llvm_cv_os_type" = "MingW" ; then
6743     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6744   fi
6745
6746 cat >>confdefs.h <<_ACEOF
6747 #define LLVM_PATH_GV "$GV${EXEEXT}"
6748 _ACEOF
6749
6750 fi
6751 # Extract the first word of "dotty", so it can be a program name with args.
6752 set dummy dotty; ac_word=$2
6753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6755 if test "${ac_cv_path_DOTTY+set}" = set; then
6756   echo $ECHO_N "(cached) $ECHO_C" >&6
6757 else
6758   case $DOTTY in
6759   [\\/]* | ?:[\\/]*)
6760   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6761   ;;
6762   *)
6763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764 for as_dir in $PATH
6765 do
6766   IFS=$as_save_IFS
6767   test -z "$as_dir" && as_dir=.
6768   for ac_exec_ext in '' $ac_executable_extensions; do
6769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6770     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6771     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6772     break 2
6773   fi
6774 done
6775 done
6776 IFS=$as_save_IFS
6777
6778   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6779   ;;
6780 esac
6781 fi
6782 DOTTY=$ac_cv_path_DOTTY
6783 if test -n "$DOTTY"; then
6784   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6785 echo "${ECHO_T}$DOTTY" >&6; }
6786 else
6787   { echo "$as_me:$LINENO: result: no" >&5
6788 echo "${ECHO_T}no" >&6; }
6789 fi
6790
6791
6792 if test "$DOTTY" != "echo dotty" ; then
6793
6794 cat >>confdefs.h <<\_ACEOF
6795 #define HAVE_DOTTY 1
6796 _ACEOF
6797
6798     if test "$llvm_cv_os_type" = "MingW" ; then
6799     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6800   fi
6801
6802 cat >>confdefs.h <<_ACEOF
6803 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6804 _ACEOF
6805
6806 fi
6807 # Extract the first word of "xdot.py", so it can be a program name with args.
6808 set dummy xdot.py; ac_word=$2
6809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6811 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6812   echo $ECHO_N "(cached) $ECHO_C" >&6
6813 else
6814   case $XDOT_PY in
6815   [\\/]* | ?:[\\/]*)
6816   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6817   ;;
6818   *)
6819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 for as_dir in $PATH
6821 do
6822   IFS=$as_save_IFS
6823   test -z "$as_dir" && as_dir=.
6824   for ac_exec_ext in '' $ac_executable_extensions; do
6825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6826     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6828     break 2
6829   fi
6830 done
6831 done
6832 IFS=$as_save_IFS
6833
6834   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6835   ;;
6836 esac
6837 fi
6838 XDOT_PY=$ac_cv_path_XDOT_PY
6839 if test -n "$XDOT_PY"; then
6840   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6841 echo "${ECHO_T}$XDOT_PY" >&6; }
6842 else
6843   { echo "$as_me:$LINENO: result: no" >&5
6844 echo "${ECHO_T}no" >&6; }
6845 fi
6846
6847
6848 if test "$XDOT_PY" != "echo xdot.py" ; then
6849
6850 cat >>confdefs.h <<\_ACEOF
6851 #define HAVE_XDOT_PY 1
6852 _ACEOF
6853
6854     if test "$llvm_cv_os_type" = "MingW" ; then
6855     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6856   fi
6857
6858 cat >>confdefs.h <<_ACEOF
6859 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6860 _ACEOF
6861
6862 fi
6863
6864 # Find a good install program.  We prefer a C program (faster),
6865 # so one script is as good as another.  But avoid the broken or
6866 # incompatible versions:
6867 # SysV /etc/install, /usr/sbin/install
6868 # SunOS /usr/etc/install
6869 # IRIX /sbin/install
6870 # AIX /bin/install
6871 # AmigaOS /C/install, which installs bootblocks on floppy discs
6872 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6873 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6874 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6875 # OS/2's system install, which has a completely different semantic
6876 # ./install, which can be erroneously created by make from ./install.sh.
6877 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6878 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6879 if test -z "$INSTALL"; then
6880 if test "${ac_cv_path_install+set}" = set; then
6881   echo $ECHO_N "(cached) $ECHO_C" >&6
6882 else
6883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884 for as_dir in $PATH
6885 do
6886   IFS=$as_save_IFS
6887   test -z "$as_dir" && as_dir=.
6888   # Account for people who put trailing slashes in PATH elements.
6889 case $as_dir/ in
6890   ./ | .// | /cC/* | \
6891   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6892   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6893   /usr/ucb/* ) ;;
6894   *)
6895     # OSF1 and SCO ODT 3.0 have their own names for install.
6896     # Don't use installbsd from OSF since it installs stuff as root
6897     # by default.
6898     for ac_prog in ginstall scoinst install; do
6899       for ac_exec_ext in '' $ac_executable_extensions; do
6900         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6901           if test $ac_prog = install &&
6902             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6903             # AIX install.  It has an incompatible calling convention.
6904             :
6905           elif test $ac_prog = install &&
6906             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6907             # program-specific install script used by HP pwplus--don't use.
6908             :
6909           else
6910             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6911             break 3
6912           fi
6913         fi
6914       done
6915     done
6916     ;;
6917 esac
6918 done
6919 IFS=$as_save_IFS
6920
6921
6922 fi
6923   if test "${ac_cv_path_install+set}" = set; then
6924     INSTALL=$ac_cv_path_install
6925   else
6926     # As a last resort, use the slow shell script.  Don't cache a
6927     # value for INSTALL within a source directory, because that will
6928     # break other packages using the cache if that directory is
6929     # removed, or if the value is a relative name.
6930     INSTALL=$ac_install_sh
6931   fi
6932 fi
6933 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6934 echo "${ECHO_T}$INSTALL" >&6; }
6935
6936 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6937 # It thinks the first close brace ends the variable substitution.
6938 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6939
6940 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6941
6942 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6943
6944 case "$INSTALL" in
6945  [\\/$]* | ?:[\\/]* ) ;;
6946  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6947 esac
6948
6949 # Extract the first word of "bzip2", so it can be a program name with args.
6950 set dummy bzip2; ac_word=$2
6951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6953 if test "${ac_cv_path_BZIP2+set}" = set; then
6954   echo $ECHO_N "(cached) $ECHO_C" >&6
6955 else
6956   case $BZIP2 in
6957   [\\/]* | ?:[\\/]*)
6958   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6959   ;;
6960   *)
6961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962 for as_dir in $PATH
6963 do
6964   IFS=$as_save_IFS
6965   test -z "$as_dir" && as_dir=.
6966   for ac_exec_ext in '' $ac_executable_extensions; do
6967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6968     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6970     break 2
6971   fi
6972 done
6973 done
6974 IFS=$as_save_IFS
6975
6976   ;;
6977 esac
6978 fi
6979 BZIP2=$ac_cv_path_BZIP2
6980 if test -n "$BZIP2"; then
6981   { echo "$as_me:$LINENO: result: $BZIP2" >&5
6982 echo "${ECHO_T}$BZIP2" >&6; }
6983 else
6984   { echo "$as_me:$LINENO: result: no" >&5
6985 echo "${ECHO_T}no" >&6; }
6986 fi
6987
6988
6989 # Extract the first word of "cat", so it can be a program name with args.
6990 set dummy cat; ac_word=$2
6991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6993 if test "${ac_cv_path_CAT+set}" = set; then
6994   echo $ECHO_N "(cached) $ECHO_C" >&6
6995 else
6996   case $CAT in
6997   [\\/]* | ?:[\\/]*)
6998   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6999   ;;
7000   *)
7001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 for as_dir in $PATH
7003 do
7004   IFS=$as_save_IFS
7005   test -z "$as_dir" && as_dir=.
7006   for ac_exec_ext in '' $ac_executable_extensions; do
7007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7008     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7010     break 2
7011   fi
7012 done
7013 done
7014 IFS=$as_save_IFS
7015
7016   ;;
7017 esac
7018 fi
7019 CAT=$ac_cv_path_CAT
7020 if test -n "$CAT"; then
7021   { echo "$as_me:$LINENO: result: $CAT" >&5
7022 echo "${ECHO_T}$CAT" >&6; }
7023 else
7024   { echo "$as_me:$LINENO: result: no" >&5
7025 echo "${ECHO_T}no" >&6; }
7026 fi
7027
7028
7029 # Extract the first word of "doxygen", so it can be a program name with args.
7030 set dummy doxygen; ac_word=$2
7031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7033 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7034   echo $ECHO_N "(cached) $ECHO_C" >&6
7035 else
7036   case $DOXYGEN in
7037   [\\/]* | ?:[\\/]*)
7038   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7039   ;;
7040   *)
7041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 for as_dir in $PATH
7043 do
7044   IFS=$as_save_IFS
7045   test -z "$as_dir" && as_dir=.
7046   for ac_exec_ext in '' $ac_executable_extensions; do
7047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7048     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7050     break 2
7051   fi
7052 done
7053 done
7054 IFS=$as_save_IFS
7055
7056   ;;
7057 esac
7058 fi
7059 DOXYGEN=$ac_cv_path_DOXYGEN
7060 if test -n "$DOXYGEN"; then
7061   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7062 echo "${ECHO_T}$DOXYGEN" >&6; }
7063 else
7064   { echo "$as_me:$LINENO: result: no" >&5
7065 echo "${ECHO_T}no" >&6; }
7066 fi
7067
7068
7069 # Extract the first word of "groff", so it can be a program name with args.
7070 set dummy groff; ac_word=$2
7071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7073 if test "${ac_cv_path_GROFF+set}" = set; then
7074   echo $ECHO_N "(cached) $ECHO_C" >&6
7075 else
7076   case $GROFF in
7077   [\\/]* | ?:[\\/]*)
7078   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7079   ;;
7080   *)
7081   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082 for as_dir in $PATH
7083 do
7084   IFS=$as_save_IFS
7085   test -z "$as_dir" && as_dir=.
7086   for ac_exec_ext in '' $ac_executable_extensions; do
7087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7088     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7090     break 2
7091   fi
7092 done
7093 done
7094 IFS=$as_save_IFS
7095
7096   ;;
7097 esac
7098 fi
7099 GROFF=$ac_cv_path_GROFF
7100 if test -n "$GROFF"; then
7101   { echo "$as_me:$LINENO: result: $GROFF" >&5
7102 echo "${ECHO_T}$GROFF" >&6; }
7103 else
7104   { echo "$as_me:$LINENO: result: no" >&5
7105 echo "${ECHO_T}no" >&6; }
7106 fi
7107
7108
7109 # Extract the first word of "gzip", so it can be a program name with args.
7110 set dummy gzip; ac_word=$2
7111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7113 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7114   echo $ECHO_N "(cached) $ECHO_C" >&6
7115 else
7116   case $GZIPBIN in
7117   [\\/]* | ?:[\\/]*)
7118   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7119   ;;
7120   *)
7121   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7122 for as_dir in $PATH
7123 do
7124   IFS=$as_save_IFS
7125   test -z "$as_dir" && as_dir=.
7126   for ac_exec_ext in '' $ac_executable_extensions; do
7127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7128     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7130     break 2
7131   fi
7132 done
7133 done
7134 IFS=$as_save_IFS
7135
7136   ;;
7137 esac
7138 fi
7139 GZIPBIN=$ac_cv_path_GZIPBIN
7140 if test -n "$GZIPBIN"; then
7141   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7142 echo "${ECHO_T}$GZIPBIN" >&6; }
7143 else
7144   { echo "$as_me:$LINENO: result: no" >&5
7145 echo "${ECHO_T}no" >&6; }
7146 fi
7147
7148
7149 # Extract the first word of "pod2html", so it can be a program name with args.
7150 set dummy pod2html; ac_word=$2
7151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7153 if test "${ac_cv_path_POD2HTML+set}" = set; then
7154   echo $ECHO_N "(cached) $ECHO_C" >&6
7155 else
7156   case $POD2HTML in
7157   [\\/]* | ?:[\\/]*)
7158   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7159   ;;
7160   *)
7161   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162 for as_dir in $PATH
7163 do
7164   IFS=$as_save_IFS
7165   test -z "$as_dir" && as_dir=.
7166   for ac_exec_ext in '' $ac_executable_extensions; do
7167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7168     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7170     break 2
7171   fi
7172 done
7173 done
7174 IFS=$as_save_IFS
7175
7176   ;;
7177 esac
7178 fi
7179 POD2HTML=$ac_cv_path_POD2HTML
7180 if test -n "$POD2HTML"; then
7181   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7182 echo "${ECHO_T}$POD2HTML" >&6; }
7183 else
7184   { echo "$as_me:$LINENO: result: no" >&5
7185 echo "${ECHO_T}no" >&6; }
7186 fi
7187
7188
7189 # Extract the first word of "pod2man", so it can be a program name with args.
7190 set dummy pod2man; ac_word=$2
7191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7193 if test "${ac_cv_path_POD2MAN+set}" = set; then
7194   echo $ECHO_N "(cached) $ECHO_C" >&6
7195 else
7196   case $POD2MAN in
7197   [\\/]* | ?:[\\/]*)
7198   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7199   ;;
7200   *)
7201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202 for as_dir in $PATH
7203 do
7204   IFS=$as_save_IFS
7205   test -z "$as_dir" && as_dir=.
7206   for ac_exec_ext in '' $ac_executable_extensions; do
7207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7208     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7210     break 2
7211   fi
7212 done
7213 done
7214 IFS=$as_save_IFS
7215
7216   ;;
7217 esac
7218 fi
7219 POD2MAN=$ac_cv_path_POD2MAN
7220 if test -n "$POD2MAN"; then
7221   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7222 echo "${ECHO_T}$POD2MAN" >&6; }
7223 else
7224   { echo "$as_me:$LINENO: result: no" >&5
7225 echo "${ECHO_T}no" >&6; }
7226 fi
7227
7228
7229 # Extract the first word of "pdfroff", so it can be a program name with args.
7230 set dummy pdfroff; ac_word=$2
7231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7233 if test "${ac_cv_path_PDFROFF+set}" = set; then
7234   echo $ECHO_N "(cached) $ECHO_C" >&6
7235 else
7236   case $PDFROFF in
7237   [\\/]* | ?:[\\/]*)
7238   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7239   ;;
7240   *)
7241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242 for as_dir in $PATH
7243 do
7244   IFS=$as_save_IFS
7245   test -z "$as_dir" && as_dir=.
7246   for ac_exec_ext in '' $ac_executable_extensions; do
7247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7248     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7250     break 2
7251   fi
7252 done
7253 done
7254 IFS=$as_save_IFS
7255
7256   ;;
7257 esac
7258 fi
7259 PDFROFF=$ac_cv_path_PDFROFF
7260 if test -n "$PDFROFF"; then
7261   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7262 echo "${ECHO_T}$PDFROFF" >&6; }
7263 else
7264   { echo "$as_me:$LINENO: result: no" >&5
7265 echo "${ECHO_T}no" >&6; }
7266 fi
7267
7268
7269 # Extract the first word of "runtest", so it can be a program name with args.
7270 set dummy runtest; ac_word=$2
7271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7273 if test "${ac_cv_path_RUNTEST+set}" = set; then
7274   echo $ECHO_N "(cached) $ECHO_C" >&6
7275 else
7276   case $RUNTEST in
7277   [\\/]* | ?:[\\/]*)
7278   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7279   ;;
7280   *)
7281   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282 for as_dir in $PATH
7283 do
7284   IFS=$as_save_IFS
7285   test -z "$as_dir" && as_dir=.
7286   for ac_exec_ext in '' $ac_executable_extensions; do
7287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7288     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7290     break 2
7291   fi
7292 done
7293 done
7294 IFS=$as_save_IFS
7295
7296   ;;
7297 esac
7298 fi
7299 RUNTEST=$ac_cv_path_RUNTEST
7300 if test -n "$RUNTEST"; then
7301   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7302 echo "${ECHO_T}$RUNTEST" >&6; }
7303 else
7304   { echo "$as_me:$LINENO: result: no" >&5
7305 echo "${ECHO_T}no" >&6; }
7306 fi
7307
7308
7309
7310 no_itcl=true
7311 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7312 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7313
7314 # Check whether --with-tclinclude was given.
7315 if test "${with_tclinclude+set}" = set; then
7316   withval=$with_tclinclude; with_tclinclude=${withval}
7317 else
7318   with_tclinclude=''
7319 fi
7320
7321 if test "${ac_cv_path_tclsh+set}" = set; then
7322   echo $ECHO_N "(cached) $ECHO_C" >&6
7323 else
7324
7325 if test x"${with_tclinclude}" != x ; then
7326   if test -f ${with_tclinclude}/tclsh ; then
7327     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7328   elif test -f ${with_tclinclude}/src/tclsh ; then
7329     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7330   else
7331     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7332 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7333    { (exit 1); exit 1; }; }
7334   fi
7335 fi
7336 fi
7337
7338
7339 if test x"${ac_cv_path_tclsh}" = x ; then
7340   { echo "$as_me:$LINENO: result: none" >&5
7341 echo "${ECHO_T}none" >&6; }
7342   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
7343 do
7344   # Extract the first word of "$ac_prog", so it can be a program name with args.
7345 set dummy $ac_prog; ac_word=$2
7346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7348 if test "${ac_cv_path_TCLSH+set}" = set; then
7349   echo $ECHO_N "(cached) $ECHO_C" >&6
7350 else
7351   case $TCLSH in
7352   [\\/]* | ?:[\\/]*)
7353   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7354   ;;
7355   *)
7356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357 for as_dir in $PATH
7358 do
7359   IFS=$as_save_IFS
7360   test -z "$as_dir" && as_dir=.
7361   for ac_exec_ext in '' $ac_executable_extensions; do
7362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7363     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7364     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7365     break 2
7366   fi
7367 done
7368 done
7369 IFS=$as_save_IFS
7370
7371   ;;
7372 esac
7373 fi
7374 TCLSH=$ac_cv_path_TCLSH
7375 if test -n "$TCLSH"; then
7376   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7377 echo "${ECHO_T}$TCLSH" >&6; }
7378 else
7379   { echo "$as_me:$LINENO: result: no" >&5
7380 echo "${ECHO_T}no" >&6; }
7381 fi
7382
7383
7384   test -n "$TCLSH" && break
7385 done
7386
7387   if test x"${TCLSH}" = x ; then
7388     ac_cv_path_tclsh='';
7389   else
7390     ac_cv_path_tclsh="${TCLSH}";
7391   fi
7392 else
7393   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7394 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7395   TCLSH="${ac_cv_path_tclsh}"
7396
7397 fi
7398
7399 # Extract the first word of "zip", so it can be a program name with args.
7400 set dummy zip; ac_word=$2
7401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7403 if test "${ac_cv_path_ZIP+set}" = set; then
7404   echo $ECHO_N "(cached) $ECHO_C" >&6
7405 else
7406   case $ZIP in
7407   [\\/]* | ?:[\\/]*)
7408   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7409   ;;
7410   *)
7411   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 for as_dir in $PATH
7413 do
7414   IFS=$as_save_IFS
7415   test -z "$as_dir" && as_dir=.
7416   for ac_exec_ext in '' $ac_executable_extensions; do
7417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7418     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7420     break 2
7421   fi
7422 done
7423 done
7424 IFS=$as_save_IFS
7425
7426   ;;
7427 esac
7428 fi
7429 ZIP=$ac_cv_path_ZIP
7430 if test -n "$ZIP"; then
7431   { echo "$as_me:$LINENO: result: $ZIP" >&5
7432 echo "${ECHO_T}$ZIP" >&6; }
7433 else
7434   { echo "$as_me:$LINENO: result: no" >&5
7435 echo "${ECHO_T}no" >&6; }
7436 fi
7437
7438
7439 for ac_prog in ocamlc
7440 do
7441   # Extract the first word of "$ac_prog", so it can be a program name with args.
7442 set dummy $ac_prog; ac_word=$2
7443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7445 if test "${ac_cv_path_OCAMLC+set}" = set; then
7446   echo $ECHO_N "(cached) $ECHO_C" >&6
7447 else
7448   case $OCAMLC in
7449   [\\/]* | ?:[\\/]*)
7450   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7451   ;;
7452   *)
7453   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454 for as_dir in $PATH
7455 do
7456   IFS=$as_save_IFS
7457   test -z "$as_dir" && as_dir=.
7458   for ac_exec_ext in '' $ac_executable_extensions; do
7459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7460     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7461     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7462     break 2
7463   fi
7464 done
7465 done
7466 IFS=$as_save_IFS
7467
7468   ;;
7469 esac
7470 fi
7471 OCAMLC=$ac_cv_path_OCAMLC
7472 if test -n "$OCAMLC"; then
7473   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7474 echo "${ECHO_T}$OCAMLC" >&6; }
7475 else
7476   { echo "$as_me:$LINENO: result: no" >&5
7477 echo "${ECHO_T}no" >&6; }
7478 fi
7479
7480
7481   test -n "$OCAMLC" && break
7482 done
7483
7484 for ac_prog in ocamlopt
7485 do
7486   # Extract the first word of "$ac_prog", so it can be a program name with args.
7487 set dummy $ac_prog; ac_word=$2
7488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7490 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7491   echo $ECHO_N "(cached) $ECHO_C" >&6
7492 else
7493   case $OCAMLOPT in
7494   [\\/]* | ?:[\\/]*)
7495   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7496   ;;
7497   *)
7498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499 for as_dir in $PATH
7500 do
7501   IFS=$as_save_IFS
7502   test -z "$as_dir" && as_dir=.
7503   for ac_exec_ext in '' $ac_executable_extensions; do
7504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7505     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7507     break 2
7508   fi
7509 done
7510 done
7511 IFS=$as_save_IFS
7512
7513   ;;
7514 esac
7515 fi
7516 OCAMLOPT=$ac_cv_path_OCAMLOPT
7517 if test -n "$OCAMLOPT"; then
7518   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7519 echo "${ECHO_T}$OCAMLOPT" >&6; }
7520 else
7521   { echo "$as_me:$LINENO: result: no" >&5
7522 echo "${ECHO_T}no" >&6; }
7523 fi
7524
7525
7526   test -n "$OCAMLOPT" && break
7527 done
7528
7529 for ac_prog in ocamldep
7530 do
7531   # Extract the first word of "$ac_prog", so it can be a program name with args.
7532 set dummy $ac_prog; ac_word=$2
7533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7535 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7536   echo $ECHO_N "(cached) $ECHO_C" >&6
7537 else
7538   case $OCAMLDEP in
7539   [\\/]* | ?:[\\/]*)
7540   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7541   ;;
7542   *)
7543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544 for as_dir in $PATH
7545 do
7546   IFS=$as_save_IFS
7547   test -z "$as_dir" && as_dir=.
7548   for ac_exec_ext in '' $ac_executable_extensions; do
7549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7550     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7552     break 2
7553   fi
7554 done
7555 done
7556 IFS=$as_save_IFS
7557
7558   ;;
7559 esac
7560 fi
7561 OCAMLDEP=$ac_cv_path_OCAMLDEP
7562 if test -n "$OCAMLDEP"; then
7563   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7564 echo "${ECHO_T}$OCAMLDEP" >&6; }
7565 else
7566   { echo "$as_me:$LINENO: result: no" >&5
7567 echo "${ECHO_T}no" >&6; }
7568 fi
7569
7570
7571   test -n "$OCAMLDEP" && break
7572 done
7573
7574 for ac_prog in ocamldoc
7575 do
7576   # Extract the first word of "$ac_prog", so it can be a program name with args.
7577 set dummy $ac_prog; ac_word=$2
7578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7580 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7581   echo $ECHO_N "(cached) $ECHO_C" >&6
7582 else
7583   case $OCAMLDOC in
7584   [\\/]* | ?:[\\/]*)
7585   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7586   ;;
7587   *)
7588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589 for as_dir in $PATH
7590 do
7591   IFS=$as_save_IFS
7592   test -z "$as_dir" && as_dir=.
7593   for ac_exec_ext in '' $ac_executable_extensions; do
7594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7595     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7596     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7597     break 2
7598   fi
7599 done
7600 done
7601 IFS=$as_save_IFS
7602
7603   ;;
7604 esac
7605 fi
7606 OCAMLDOC=$ac_cv_path_OCAMLDOC
7607 if test -n "$OCAMLDOC"; then
7608   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7609 echo "${ECHO_T}$OCAMLDOC" >&6; }
7610 else
7611   { echo "$as_me:$LINENO: result: no" >&5
7612 echo "${ECHO_T}no" >&6; }
7613 fi
7614
7615
7616   test -n "$OCAMLDOC" && break
7617 done
7618
7619 for ac_prog in gas as
7620 do
7621   # Extract the first word of "$ac_prog", so it can be a program name with args.
7622 set dummy $ac_prog; ac_word=$2
7623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7625 if test "${ac_cv_path_GAS+set}" = set; then
7626   echo $ECHO_N "(cached) $ECHO_C" >&6
7627 else
7628   case $GAS in
7629   [\\/]* | ?:[\\/]*)
7630   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7631   ;;
7632   *)
7633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634 for as_dir in $PATH
7635 do
7636   IFS=$as_save_IFS
7637   test -z "$as_dir" && as_dir=.
7638   for ac_exec_ext in '' $ac_executable_extensions; do
7639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7640     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7642     break 2
7643   fi
7644 done
7645 done
7646 IFS=$as_save_IFS
7647
7648   ;;
7649 esac
7650 fi
7651 GAS=$ac_cv_path_GAS
7652 if test -n "$GAS"; then
7653   { echo "$as_me:$LINENO: result: $GAS" >&5
7654 echo "${ECHO_T}$GAS" >&6; }
7655 else
7656   { echo "$as_me:$LINENO: result: no" >&5
7657 echo "${ECHO_T}no" >&6; }
7658 fi
7659
7660
7661   test -n "$GAS" && break
7662 done
7663
7664
7665 { echo "$as_me:$LINENO: checking for linker version" >&5
7666 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7667 if test "${llvm_cv_link_version+set}" = set; then
7668   echo $ECHO_N "(cached) $ECHO_C" >&6
7669 else
7670
7671    version_string="$(ld -v 2>&1 | head -1)"
7672
7673    # Check for ld64.
7674    if (echo "$version_string" | grep -q "ld64"); then
7675      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7676    else
7677      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7678    fi
7679
7680 fi
7681 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7682 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7683
7684 cat >>confdefs.h <<_ACEOF
7685 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7686 _ACEOF
7687
7688
7689
7690 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7691 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7692 if test "${llvm_cv_link_use_r+set}" = set; then
7693   echo $ECHO_N "(cached) $ECHO_C" >&6
7694 else
7695    ac_ext=c
7696 ac_cpp='$CPP $CPPFLAGS'
7697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7700
7701   oldcflags="$CFLAGS"
7702   CFLAGS="$CFLAGS -Wl,-R."
7703   cat >conftest.$ac_ext <<_ACEOF
7704 /* confdefs.h.  */
7705 _ACEOF
7706 cat confdefs.h >>conftest.$ac_ext
7707 cat >>conftest.$ac_ext <<_ACEOF
7708 /* end confdefs.h.  */
7709
7710 int
7711 main ()
7712 {
7713
7714   ;
7715   return 0;
7716 }
7717 _ACEOF
7718 rm -f conftest.$ac_objext conftest$ac_exeext
7719 if { (ac_try="$ac_link"
7720 case "(($ac_try" in
7721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7722   *) ac_try_echo=$ac_try;;
7723 esac
7724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7725   (eval "$ac_link") 2>conftest.er1
7726   ac_status=$?
7727   grep -v '^ *+' conftest.er1 >conftest.err
7728   rm -f conftest.er1
7729   cat conftest.err >&5
7730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731   (exit $ac_status); } &&
7732          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7733   { (case "(($ac_try" in
7734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7735   *) ac_try_echo=$ac_try;;
7736 esac
7737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7738   (eval "$ac_try") 2>&5
7739   ac_status=$?
7740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741   (exit $ac_status); }; } &&
7742          { ac_try='test -s conftest$ac_exeext'
7743   { (case "(($ac_try" in
7744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7745   *) ac_try_echo=$ac_try;;
7746 esac
7747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7748   (eval "$ac_try") 2>&5
7749   ac_status=$?
7750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751   (exit $ac_status); }; }; then
7752   llvm_cv_link_use_r=yes
7753 else
7754   echo "$as_me: failed program was:" >&5
7755 sed 's/^/| /' conftest.$ac_ext >&5
7756
7757         llvm_cv_link_use_r=no
7758 fi
7759
7760 rm -f core conftest.err conftest.$ac_objext \
7761       conftest$ac_exeext conftest.$ac_ext
7762   CFLAGS="$oldcflags"
7763   ac_ext=c
7764 ac_cpp='$CPP $CPPFLAGS'
7765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7768
7769
7770 fi
7771 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7772 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7773 if test "$llvm_cv_link_use_r" = yes ; then
7774
7775 cat >>confdefs.h <<\_ACEOF
7776 #define HAVE_LINK_R 1
7777 _ACEOF
7778
7779   fi
7780
7781
7782 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7783 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7784 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7785   echo $ECHO_N "(cached) $ECHO_C" >&6
7786 else
7787    ac_ext=c
7788 ac_cpp='$CPP $CPPFLAGS'
7789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7792
7793   oldcflags="$CFLAGS"
7794   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7795   cat >conftest.$ac_ext <<_ACEOF
7796 /* confdefs.h.  */
7797 _ACEOF
7798 cat confdefs.h >>conftest.$ac_ext
7799 cat >>conftest.$ac_ext <<_ACEOF
7800 /* end confdefs.h.  */
7801
7802 int
7803 main ()
7804 {
7805
7806   ;
7807   return 0;
7808 }
7809 _ACEOF
7810 rm -f conftest.$ac_objext conftest$ac_exeext
7811 if { (ac_try="$ac_link"
7812 case "(($ac_try" in
7813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7814   *) ac_try_echo=$ac_try;;
7815 esac
7816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7817   (eval "$ac_link") 2>conftest.er1
7818   ac_status=$?
7819   grep -v '^ *+' conftest.er1 >conftest.err
7820   rm -f conftest.er1
7821   cat conftest.err >&5
7822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823   (exit $ac_status); } &&
7824          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7825   { (case "(($ac_try" in
7826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7827   *) ac_try_echo=$ac_try;;
7828 esac
7829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7830   (eval "$ac_try") 2>&5
7831   ac_status=$?
7832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833   (exit $ac_status); }; } &&
7834          { ac_try='test -s conftest$ac_exeext'
7835   { (case "(($ac_try" in
7836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7837   *) ac_try_echo=$ac_try;;
7838 esac
7839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7840   (eval "$ac_try") 2>&5
7841   ac_status=$?
7842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843   (exit $ac_status); }; }; then
7844   llvm_cv_link_use_export_dynamic=yes
7845 else
7846   echo "$as_me: failed program was:" >&5
7847 sed 's/^/| /' conftest.$ac_ext >&5
7848
7849         llvm_cv_link_use_export_dynamic=no
7850 fi
7851
7852 rm -f core conftest.err conftest.$ac_objext \
7853       conftest$ac_exeext conftest.$ac_ext
7854   CFLAGS="$oldcflags"
7855   ac_ext=c
7856 ac_cpp='$CPP $CPPFLAGS'
7857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7860
7861
7862 fi
7863 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7864 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7865 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7866
7867 cat >>confdefs.h <<\_ACEOF
7868 #define HAVE_LINK_EXPORT_DYNAMIC 1
7869 _ACEOF
7870
7871   fi
7872
7873
7874 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7875 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7876 if test "${llvm_cv_link_use_version_script+set}" = set; then
7877   echo $ECHO_N "(cached) $ECHO_C" >&6
7878 else
7879    ac_ext=c
7880 ac_cpp='$CPP $CPPFLAGS'
7881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7884
7885   oldcflags="$CFLAGS"
7886
7887   # The following code is from the autoconf manual,
7888   # "11.13: Limitations of Usual Tools".
7889   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7890   # Use mktemp if possible; otherwise fall back on mkdir,
7891   # with $RANDOM to make collisions less likely.
7892   : ${TMPDIR=/tmp}
7893   {
7894     tmp=`
7895       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7896     ` &&
7897     test -n "$tmp" && test -d "$tmp"
7898   } || {
7899     tmp=$TMPDIR/foo$$-$RANDOM
7900     (umask 077 && mkdir "$tmp")
7901   } || exit $?
7902
7903   echo "{" > "$tmp/export.map"
7904   echo "  global: main;" >> "$tmp/export.map"
7905   echo "  local: *;" >> "$tmp/export.map"
7906   echo "};" >> "$tmp/export.map"
7907
7908   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7909   cat >conftest.$ac_ext <<_ACEOF
7910 /* confdefs.h.  */
7911 _ACEOF
7912 cat confdefs.h >>conftest.$ac_ext
7913 cat >>conftest.$ac_ext <<_ACEOF
7914 /* end confdefs.h.  */
7915
7916 int
7917 main ()
7918 {
7919
7920   ;
7921   return 0;
7922 }
7923 _ACEOF
7924 rm -f conftest.$ac_objext conftest$ac_exeext
7925 if { (ac_try="$ac_link"
7926 case "(($ac_try" in
7927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7928   *) ac_try_echo=$ac_try;;
7929 esac
7930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7931   (eval "$ac_link") 2>conftest.er1
7932   ac_status=$?
7933   grep -v '^ *+' conftest.er1 >conftest.err
7934   rm -f conftest.er1
7935   cat conftest.err >&5
7936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937   (exit $ac_status); } &&
7938          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7939   { (case "(($ac_try" in
7940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7941   *) ac_try_echo=$ac_try;;
7942 esac
7943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7944   (eval "$ac_try") 2>&5
7945   ac_status=$?
7946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947   (exit $ac_status); }; } &&
7948          { ac_try='test -s conftest$ac_exeext'
7949   { (case "(($ac_try" in
7950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7951   *) ac_try_echo=$ac_try;;
7952 esac
7953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7954   (eval "$ac_try") 2>&5
7955   ac_status=$?
7956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957   (exit $ac_status); }; }; then
7958   llvm_cv_link_use_version_script=yes
7959 else
7960   echo "$as_me: failed program was:" >&5
7961 sed 's/^/| /' conftest.$ac_ext >&5
7962
7963         llvm_cv_link_use_version_script=no
7964 fi
7965
7966 rm -f core conftest.err conftest.$ac_objext \
7967       conftest$ac_exeext conftest.$ac_ext
7968   rm "$tmp/export.map"
7969   rmdir "$tmp"
7970   CFLAGS="$oldcflags"
7971   ac_ext=c
7972 ac_cpp='$CPP $CPPFLAGS'
7973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7976
7977
7978 fi
7979 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7980 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7981 if test "$llvm_cv_link_use_version_script" = yes ; then
7982   HAVE_LINK_VERSION_SCRIPT=1
7983
7984   fi
7985
7986
7987
7988
7989 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7990 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7991 if test "${ac_cv_c_const+set}" = set; then
7992   echo $ECHO_N "(cached) $ECHO_C" >&6
7993 else
7994   cat >conftest.$ac_ext <<_ACEOF
7995 /* confdefs.h.  */
7996 _ACEOF
7997 cat confdefs.h >>conftest.$ac_ext
7998 cat >>conftest.$ac_ext <<_ACEOF
7999 /* end confdefs.h.  */
8000
8001 int
8002 main ()
8003 {
8004 /* FIXME: Include the comments suggested by Paul. */
8005 #ifndef __cplusplus
8006   /* Ultrix mips cc rejects this.  */
8007   typedef int charset[2];
8008   const charset x;
8009   /* SunOS 4.1.1 cc rejects this.  */
8010   char const *const *ccp;
8011   char **p;
8012   /* NEC SVR4.0.2 mips cc rejects this.  */
8013   struct point {int x, y;};
8014   static struct point const zero = {0,0};
8015   /* AIX XL C 1.02.0.0 rejects this.
8016      It does not let you subtract one const X* pointer from another in
8017      an arm of an if-expression whose if-part is not a constant
8018      expression */
8019   const char *g = "string";
8020   ccp = &g + (g ? g-g : 0);
8021   /* HPUX 7.0 cc rejects these. */
8022   ++ccp;
8023   p = (char**) ccp;
8024   ccp = (char const *const *) p;
8025   { /* SCO 3.2v4 cc rejects this.  */
8026     char *t;
8027     char const *s = 0 ? (char *) 0 : (char const *) 0;
8028
8029     *t++ = 0;
8030     if (s) return 0;
8031   }
8032   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8033     int x[] = {25, 17};
8034     const int *foo = &x[0];
8035     ++foo;
8036   }
8037   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8038     typedef const int *iptr;
8039     iptr p = 0;
8040     ++p;
8041   }
8042   { /* AIX XL C 1.02.0.0 rejects this saying
8043        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8044     struct s { int j; const int *ap[3]; };
8045     struct s *b; b->j = 5;
8046   }
8047   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8048     const int foo = 10;
8049     if (!foo) return 0;
8050   }
8051   return !x[0] && !zero.x;
8052 #endif
8053
8054   ;
8055   return 0;
8056 }
8057 _ACEOF
8058 rm -f conftest.$ac_objext
8059 if { (ac_try="$ac_compile"
8060 case "(($ac_try" in
8061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8062   *) ac_try_echo=$ac_try;;
8063 esac
8064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8065   (eval "$ac_compile") 2>conftest.er1
8066   ac_status=$?
8067   grep -v '^ *+' conftest.er1 >conftest.err
8068   rm -f conftest.er1
8069   cat conftest.err >&5
8070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071   (exit $ac_status); } &&
8072          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8073   { (case "(($ac_try" in
8074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8075   *) ac_try_echo=$ac_try;;
8076 esac
8077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8078   (eval "$ac_try") 2>&5
8079   ac_status=$?
8080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081   (exit $ac_status); }; } &&
8082          { ac_try='test -s conftest.$ac_objext'
8083   { (case "(($ac_try" in
8084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8085   *) ac_try_echo=$ac_try;;
8086 esac
8087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8088   (eval "$ac_try") 2>&5
8089   ac_status=$?
8090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091   (exit $ac_status); }; }; then
8092   ac_cv_c_const=yes
8093 else
8094   echo "$as_me: failed program was:" >&5
8095 sed 's/^/| /' conftest.$ac_ext >&5
8096
8097         ac_cv_c_const=no
8098 fi
8099
8100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8101 fi
8102 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8103 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8104 if test $ac_cv_c_const = no; then
8105
8106 cat >>confdefs.h <<\_ACEOF
8107 #define const
8108 _ACEOF
8109
8110 fi
8111
8112
8113
8114
8115
8116
8117 ac_header_dirent=no
8118 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8119   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8120 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8121 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8123   echo $ECHO_N "(cached) $ECHO_C" >&6
8124 else
8125   cat >conftest.$ac_ext <<_ACEOF
8126 /* confdefs.h.  */
8127 _ACEOF
8128 cat confdefs.h >>conftest.$ac_ext
8129 cat >>conftest.$ac_ext <<_ACEOF
8130 /* end confdefs.h.  */
8131 #include <sys/types.h>
8132 #include <$ac_hdr>
8133
8134 int
8135 main ()
8136 {
8137 if ((DIR *) 0)
8138 return 0;
8139   ;
8140   return 0;
8141 }
8142 _ACEOF
8143 rm -f conftest.$ac_objext
8144 if { (ac_try="$ac_compile"
8145 case "(($ac_try" in
8146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147   *) ac_try_echo=$ac_try;;
8148 esac
8149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8150   (eval "$ac_compile") 2>conftest.er1
8151   ac_status=$?
8152   grep -v '^ *+' conftest.er1 >conftest.err
8153   rm -f conftest.er1
8154   cat conftest.err >&5
8155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156   (exit $ac_status); } &&
8157          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8158   { (case "(($ac_try" in
8159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8160   *) ac_try_echo=$ac_try;;
8161 esac
8162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8163   (eval "$ac_try") 2>&5
8164   ac_status=$?
8165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166   (exit $ac_status); }; } &&
8167          { ac_try='test -s conftest.$ac_objext'
8168   { (case "(($ac_try" in
8169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8170   *) ac_try_echo=$ac_try;;
8171 esac
8172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8173   (eval "$ac_try") 2>&5
8174   ac_status=$?
8175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176   (exit $ac_status); }; }; then
8177   eval "$as_ac_Header=yes"
8178 else
8179   echo "$as_me: failed program was:" >&5
8180 sed 's/^/| /' conftest.$ac_ext >&5
8181
8182         eval "$as_ac_Header=no"
8183 fi
8184
8185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8186 fi
8187 ac_res=`eval echo '${'$as_ac_Header'}'`
8188                { echo "$as_me:$LINENO: result: $ac_res" >&5
8189 echo "${ECHO_T}$ac_res" >&6; }
8190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8191   cat >>confdefs.h <<_ACEOF
8192 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8193 _ACEOF
8194
8195 ac_header_dirent=$ac_hdr; break
8196 fi
8197
8198 done
8199 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8200 if test $ac_header_dirent = dirent.h; then
8201   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8202 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8203 if test "${ac_cv_search_opendir+set}" = set; then
8204   echo $ECHO_N "(cached) $ECHO_C" >&6
8205 else
8206   ac_func_search_save_LIBS=$LIBS
8207 cat >conftest.$ac_ext <<_ACEOF
8208 /* confdefs.h.  */
8209 _ACEOF
8210 cat confdefs.h >>conftest.$ac_ext
8211 cat >>conftest.$ac_ext <<_ACEOF
8212 /* end confdefs.h.  */
8213
8214 /* Override any GCC internal prototype to avoid an error.
8215    Use char because int might match the return type of a GCC
8216    builtin and then its argument prototype would still apply.  */
8217 #ifdef __cplusplus
8218 extern "C"
8219 #endif
8220 char opendir ();
8221 int
8222 main ()
8223 {
8224 return opendir ();
8225   ;
8226   return 0;
8227 }
8228 _ACEOF
8229 for ac_lib in '' dir; do
8230   if test -z "$ac_lib"; then
8231     ac_res="none required"
8232   else
8233     ac_res=-l$ac_lib
8234     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8235   fi
8236   rm -f conftest.$ac_objext conftest$ac_exeext
8237 if { (ac_try="$ac_link"
8238 case "(($ac_try" in
8239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8240   *) ac_try_echo=$ac_try;;
8241 esac
8242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8243   (eval "$ac_link") 2>conftest.er1
8244   ac_status=$?
8245   grep -v '^ *+' conftest.er1 >conftest.err
8246   rm -f conftest.er1
8247   cat conftest.err >&5
8248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249   (exit $ac_status); } &&
8250          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8251   { (case "(($ac_try" in
8252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8253   *) ac_try_echo=$ac_try;;
8254 esac
8255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8256   (eval "$ac_try") 2>&5
8257   ac_status=$?
8258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259   (exit $ac_status); }; } &&
8260          { ac_try='test -s conftest$ac_exeext'
8261   { (case "(($ac_try" in
8262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8263   *) ac_try_echo=$ac_try;;
8264 esac
8265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8266   (eval "$ac_try") 2>&5
8267   ac_status=$?
8268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269   (exit $ac_status); }; }; then
8270   ac_cv_search_opendir=$ac_res
8271 else
8272   echo "$as_me: failed program was:" >&5
8273 sed 's/^/| /' conftest.$ac_ext >&5
8274
8275
8276 fi
8277
8278 rm -f core conftest.err conftest.$ac_objext \
8279       conftest$ac_exeext
8280   if test "${ac_cv_search_opendir+set}" = set; then
8281   break
8282 fi
8283 done
8284 if test "${ac_cv_search_opendir+set}" = set; then
8285   :
8286 else
8287   ac_cv_search_opendir=no
8288 fi
8289 rm conftest.$ac_ext
8290 LIBS=$ac_func_search_save_LIBS
8291 fi
8292 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8293 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8294 ac_res=$ac_cv_search_opendir
8295 if test "$ac_res" != no; then
8296   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8297
8298 fi
8299
8300 else
8301   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8302 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8303 if test "${ac_cv_search_opendir+set}" = set; then
8304   echo $ECHO_N "(cached) $ECHO_C" >&6
8305 else
8306   ac_func_search_save_LIBS=$LIBS
8307 cat >conftest.$ac_ext <<_ACEOF
8308 /* confdefs.h.  */
8309 _ACEOF
8310 cat confdefs.h >>conftest.$ac_ext
8311 cat >>conftest.$ac_ext <<_ACEOF
8312 /* end confdefs.h.  */
8313
8314 /* Override any GCC internal prototype to avoid an error.
8315    Use char because int might match the return type of a GCC
8316    builtin and then its argument prototype would still apply.  */
8317 #ifdef __cplusplus
8318 extern "C"
8319 #endif
8320 char opendir ();
8321 int
8322 main ()
8323 {
8324 return opendir ();
8325   ;
8326   return 0;
8327 }
8328 _ACEOF
8329 for ac_lib in '' x; do
8330   if test -z "$ac_lib"; then
8331     ac_res="none required"
8332   else
8333     ac_res=-l$ac_lib
8334     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8335   fi
8336   rm -f conftest.$ac_objext conftest$ac_exeext
8337 if { (ac_try="$ac_link"
8338 case "(($ac_try" in
8339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8340   *) ac_try_echo=$ac_try;;
8341 esac
8342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8343   (eval "$ac_link") 2>conftest.er1
8344   ac_status=$?
8345   grep -v '^ *+' conftest.er1 >conftest.err
8346   rm -f conftest.er1
8347   cat conftest.err >&5
8348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349   (exit $ac_status); } &&
8350          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8351   { (case "(($ac_try" in
8352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353   *) ac_try_echo=$ac_try;;
8354 esac
8355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356   (eval "$ac_try") 2>&5
8357   ac_status=$?
8358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359   (exit $ac_status); }; } &&
8360          { ac_try='test -s conftest$ac_exeext'
8361   { (case "(($ac_try" in
8362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8363   *) ac_try_echo=$ac_try;;
8364 esac
8365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8366   (eval "$ac_try") 2>&5
8367   ac_status=$?
8368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369   (exit $ac_status); }; }; then
8370   ac_cv_search_opendir=$ac_res
8371 else
8372   echo "$as_me: failed program was:" >&5
8373 sed 's/^/| /' conftest.$ac_ext >&5
8374
8375
8376 fi
8377
8378 rm -f core conftest.err conftest.$ac_objext \
8379       conftest$ac_exeext
8380   if test "${ac_cv_search_opendir+set}" = set; then
8381   break
8382 fi
8383 done
8384 if test "${ac_cv_search_opendir+set}" = set; then
8385   :
8386 else
8387   ac_cv_search_opendir=no
8388 fi
8389 rm conftest.$ac_ext
8390 LIBS=$ac_func_search_save_LIBS
8391 fi
8392 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8393 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8394 ac_res=$ac_cv_search_opendir
8395 if test "$ac_res" != no; then
8396   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8397
8398 fi
8399
8400 fi
8401
8402
8403 for ac_header in dlfcn.h
8404 do
8405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8407   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8410   echo $ECHO_N "(cached) $ECHO_C" >&6
8411 fi
8412 ac_res=`eval echo '${'$as_ac_Header'}'`
8413                { echo "$as_me:$LINENO: result: $ac_res" >&5
8414 echo "${ECHO_T}$ac_res" >&6; }
8415 else
8416   # Is the header compilable?
8417 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8418 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8419 cat >conftest.$ac_ext <<_ACEOF
8420 /* confdefs.h.  */
8421 _ACEOF
8422 cat confdefs.h >>conftest.$ac_ext
8423 cat >>conftest.$ac_ext <<_ACEOF
8424 /* end confdefs.h.  */
8425 $ac_includes_default
8426 #include <$ac_header>
8427 _ACEOF
8428 rm -f conftest.$ac_objext
8429 if { (ac_try="$ac_compile"
8430 case "(($ac_try" in
8431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8432   *) ac_try_echo=$ac_try;;
8433 esac
8434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8435   (eval "$ac_compile") 2>conftest.er1
8436   ac_status=$?
8437   grep -v '^ *+' conftest.er1 >conftest.err
8438   rm -f conftest.er1
8439   cat conftest.err >&5
8440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441   (exit $ac_status); } &&
8442          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8443   { (case "(($ac_try" in
8444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445   *) ac_try_echo=$ac_try;;
8446 esac
8447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8448   (eval "$ac_try") 2>&5
8449   ac_status=$?
8450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451   (exit $ac_status); }; } &&
8452          { ac_try='test -s conftest.$ac_objext'
8453   { (case "(($ac_try" in
8454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8455   *) ac_try_echo=$ac_try;;
8456 esac
8457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8458   (eval "$ac_try") 2>&5
8459   ac_status=$?
8460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461   (exit $ac_status); }; }; then
8462   ac_header_compiler=yes
8463 else
8464   echo "$as_me: failed program was:" >&5
8465 sed 's/^/| /' conftest.$ac_ext >&5
8466
8467         ac_header_compiler=no
8468 fi
8469
8470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8471 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8472 echo "${ECHO_T}$ac_header_compiler" >&6; }
8473
8474 # Is the header present?
8475 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8476 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8477 cat >conftest.$ac_ext <<_ACEOF
8478 /* confdefs.h.  */
8479 _ACEOF
8480 cat confdefs.h >>conftest.$ac_ext
8481 cat >>conftest.$ac_ext <<_ACEOF
8482 /* end confdefs.h.  */
8483 #include <$ac_header>
8484 _ACEOF
8485 if { (ac_try="$ac_cpp conftest.$ac_ext"
8486 case "(($ac_try" in
8487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8488   *) ac_try_echo=$ac_try;;
8489 esac
8490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8491   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8492   ac_status=$?
8493   grep -v '^ *+' conftest.er1 >conftest.err
8494   rm -f conftest.er1
8495   cat conftest.err >&5
8496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497   (exit $ac_status); } >/dev/null; then
8498   if test -s conftest.err; then
8499     ac_cpp_err=$ac_c_preproc_warn_flag
8500     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8501   else
8502     ac_cpp_err=
8503   fi
8504 else
8505   ac_cpp_err=yes
8506 fi
8507 if test -z "$ac_cpp_err"; then
8508   ac_header_preproc=yes
8509 else
8510   echo "$as_me: failed program was:" >&5
8511 sed 's/^/| /' conftest.$ac_ext >&5
8512
8513   ac_header_preproc=no
8514 fi
8515
8516 rm -f conftest.err conftest.$ac_ext
8517 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8518 echo "${ECHO_T}$ac_header_preproc" >&6; }
8519
8520 # So?  What about this header?
8521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8522   yes:no: )
8523     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8524 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8525     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8526 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8527     ac_header_preproc=yes
8528     ;;
8529   no:yes:* )
8530     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8532     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8533 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8534     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8535 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8536     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8537 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8538     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8540     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8541 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8542     ( cat <<\_ASBOX
8543 ## ------------------------------ ##
8544 ## Report this to bugs@yourdomain ##
8545 ## ------------------------------ ##
8546 _ASBOX
8547      ) | sed "s/^/$as_me: WARNING:     /" >&2
8548     ;;
8549 esac
8550 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8553   echo $ECHO_N "(cached) $ECHO_C" >&6
8554 else
8555   eval "$as_ac_Header=\$ac_header_preproc"
8556 fi
8557 ac_res=`eval echo '${'$as_ac_Header'}'`
8558                { echo "$as_me:$LINENO: result: $ac_res" >&5
8559 echo "${ECHO_T}$ac_res" >&6; }
8560
8561 fi
8562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8563   cat >>confdefs.h <<_ACEOF
8564 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8565 _ACEOF
8566
8567 fi
8568
8569 done
8570
8571 # Check whether --enable-ltdl-install was given.
8572 if test "${enable_ltdl_install+set}" = set; then
8573   enableval=$enable_ltdl_install;
8574 fi
8575
8576
8577
8578
8579 if test x"${enable_ltdl_install-no}" != xno; then
8580   INSTALL_LTDL_TRUE=
8581   INSTALL_LTDL_FALSE='#'
8582 else
8583   INSTALL_LTDL_TRUE='#'
8584   INSTALL_LTDL_FALSE=
8585 fi
8586
8587
8588
8589 if test x"${enable_ltdl_convenience-no}" != xno; then
8590   CONVENIENCE_LTDL_TRUE=
8591   CONVENIENCE_LTDL_FALSE='#'
8592 else
8593   CONVENIENCE_LTDL_TRUE='#'
8594   CONVENIENCE_LTDL_FALSE=
8595 fi
8596
8597
8598 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8599 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8600 library_names_spec=
8601 libname_spec='lib$name'
8602 soname_spec=
8603 shrext_cmds=".so"
8604 postinstall_cmds=
8605 postuninstall_cmds=
8606 finish_cmds=
8607 finish_eval=
8608 shlibpath_var=
8609 shlibpath_overrides_runpath=unknown
8610 version_type=none
8611 dynamic_linker="$host_os ld.so"
8612 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8613 if test "$GCC" = yes; then
8614   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8615   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8616     # if the path contains ";" then we assume it to be the separator
8617     # otherwise default to the standard path separator (i.e. ":") - it is
8618     # assumed that no part of a normal pathname contains ";" but that should
8619     # okay in the real world where ";" in dirpaths is itself problematic.
8620     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8621   else
8622     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8623   fi
8624 else
8625   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8626 fi
8627 need_lib_prefix=unknown
8628 hardcode_into_libs=no
8629
8630 # when you set need_version to no, make sure it does not cause -set_version
8631 # flags to be left without arguments
8632 need_version=unknown
8633
8634 case $host_os in
8635 aix3*)
8636   version_type=linux
8637   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8638   shlibpath_var=LIBPATH
8639
8640   # AIX 3 has no versioning support, so we append a major version to the name.
8641   soname_spec='${libname}${release}${shared_ext}$major'
8642   ;;
8643
8644 aix4* | aix5*)
8645   version_type=linux
8646   need_lib_prefix=no
8647   need_version=no
8648   hardcode_into_libs=yes
8649   if test "$host_cpu" = ia64; then
8650     # AIX 5 supports IA64
8651     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8652     shlibpath_var=LD_LIBRARY_PATH
8653   else
8654     # With GCC up to 2.95.x, collect2 would create an import file
8655     # for dependence libraries.  The import file would start with
8656     # the line `#! .'.  This would cause the generated library to
8657     # depend on `.', always an invalid library.  This was fixed in
8658     # development snapshots of GCC prior to 3.0.
8659     case $host_os in
8660       aix4 | aix4.[01] | aix4.[01].*)
8661       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8662            echo ' yes '
8663            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8664         :
8665       else
8666         can_build_shared=no
8667       fi
8668       ;;
8669     esac
8670     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8671     # soname into executable. Probably we can add versioning support to
8672     # collect2, so additional links can be useful in future.
8673     if test "$aix_use_runtimelinking" = yes; then
8674       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8675       # instead of lib<name>.a to let people know that these are not
8676       # typical AIX shared libraries.
8677       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8678     else
8679       # We preserve .a as extension for shared libraries through AIX4.2
8680       # and later when we are not doing run time linking.
8681       library_names_spec='${libname}${release}.a $libname.a'
8682       soname_spec='${libname}${release}${shared_ext}$major'
8683     fi
8684     shlibpath_var=LIBPATH
8685   fi
8686   ;;
8687
8688 amigaos*)
8689   library_names_spec='$libname.ixlibrary $libname.a'
8690   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8691   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'
8692   ;;
8693
8694 beos*)
8695   library_names_spec='${libname}${shared_ext}'
8696   dynamic_linker="$host_os ld.so"
8697   shlibpath_var=LIBRARY_PATH
8698   ;;
8699
8700 bsdi[45]*)
8701   version_type=linux
8702   need_version=no
8703   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8704   soname_spec='${libname}${release}${shared_ext}$major'
8705   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8706   shlibpath_var=LD_LIBRARY_PATH
8707   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8708   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8709   # the default ld.so.conf also contains /usr/contrib/lib and
8710   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8711   # libtool to hard-code these into programs
8712   ;;
8713
8714 cygwin* | mingw* | pw32*)
8715   version_type=windows
8716   shrext_cmds=".dll"
8717   need_version=no
8718   need_lib_prefix=no
8719
8720   case $GCC,$host_os in
8721   yes,cygwin* | yes,mingw* | yes,pw32*)
8722     library_names_spec='$libname.dll.a'
8723     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8724     postinstall_cmds='base_file=`basename \${file}`~
8725       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8726       dldir=$destdir/`dirname \$dlpath`~
8727       test -d \$dldir || mkdir -p \$dldir~
8728       $install_prog $dir/$dlname \$dldir/$dlname~
8729       chmod a+x \$dldir/$dlname'
8730     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8731       dlpath=$dir/\$dldll~
8732        $rm \$dlpath'
8733     shlibpath_overrides_runpath=yes
8734
8735     case $host_os in
8736     cygwin*)
8737       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8738       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8739       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8740       ;;
8741     mingw*)
8742       # MinGW DLLs use traditional 'lib' prefix
8743       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8744       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8745       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8746         # It is most probably a Windows format PATH printed by
8747         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8748         # path with ; separators, and with drive letters. We can handle the
8749         # drive letters (cygwin fileutils understands them), so leave them,
8750         # especially as we might pass files found there to a mingw objdump,
8751         # which wouldn't understand a cygwinified path. Ahh.
8752         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8753       else
8754         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8755       fi
8756       ;;
8757     pw32*)
8758       # pw32 DLLs use 'pw' prefix rather than 'lib'
8759       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8760       ;;
8761     esac
8762     ;;
8763
8764   *)
8765     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8766     ;;
8767   esac
8768   dynamic_linker='Win32 ld.exe'
8769   # FIXME: first we should search . and the directory the executable is in
8770   shlibpath_var=PATH
8771   ;;
8772
8773 darwin* | rhapsody*)
8774   dynamic_linker="$host_os dyld"
8775   version_type=darwin
8776   need_lib_prefix=no
8777   need_version=no
8778   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8779   soname_spec='${libname}${release}${major}$shared_ext'
8780   shlibpath_overrides_runpath=yes
8781   shlibpath_var=DYLD_LIBRARY_PATH
8782   shrext_cmds='.dylib'
8783   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8784   if test "$GCC" = yes; then
8785     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"`
8786   else
8787     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8788   fi
8789   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8790   ;;
8791
8792 dgux*)
8793   version_type=linux
8794   need_lib_prefix=no
8795   need_version=no
8796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8797   soname_spec='${libname}${release}${shared_ext}$major'
8798   shlibpath_var=LD_LIBRARY_PATH
8799   ;;
8800
8801 freebsd1.*)
8802   dynamic_linker=no
8803   ;;
8804
8805 kfreebsd*-gnu)
8806   version_type=linux
8807   need_lib_prefix=no
8808   need_version=no
8809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8810   soname_spec='${libname}${release}${shared_ext}$major'
8811   shlibpath_var=LD_LIBRARY_PATH
8812   shlibpath_overrides_runpath=no
8813   hardcode_into_libs=yes
8814   dynamic_linker='GNU ld.so'
8815   ;;
8816
8817 freebsd* | dragonfly*)
8818   # DragonFly does not have aout.  When/if they implement a new
8819   # versioning mechanism, adjust this.
8820   if test -x /usr/bin/objformat; then
8821     objformat=`/usr/bin/objformat`
8822   else
8823     case $host_os in
8824     freebsd[123].*) objformat=aout ;;
8825     *) objformat=elf ;;
8826     esac
8827   fi
8828   version_type=freebsd-$objformat
8829   case $version_type in
8830     freebsd-elf*)
8831       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8832       need_version=no
8833       need_lib_prefix=no
8834       ;;
8835     freebsd-*)
8836       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8837       need_version=yes
8838       ;;
8839   esac
8840   shlibpath_var=LD_LIBRARY_PATH
8841   case $host_os in
8842   freebsd2.*)
8843     shlibpath_overrides_runpath=yes
8844     ;;
8845   freebsd3.[01]* | freebsdelf3.[01]*)
8846     shlibpath_overrides_runpath=yes
8847     hardcode_into_libs=yes
8848     ;;
8849   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8850   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8851     shlibpath_overrides_runpath=no
8852     hardcode_into_libs=yes
8853     ;;
8854   freebsd*) # from 4.6 on
8855     shlibpath_overrides_runpath=yes
8856     hardcode_into_libs=yes
8857     ;;
8858   esac
8859   ;;
8860
8861 gnu*)
8862   version_type=linux
8863   need_lib_prefix=no
8864   need_version=no
8865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8866   soname_spec='${libname}${release}${shared_ext}$major'
8867   shlibpath_var=LD_LIBRARY_PATH
8868   hardcode_into_libs=yes
8869   ;;
8870
8871 hpux9* | hpux10* | hpux11*)
8872   # Give a soname corresponding to the major version so that dld.sl refuses to
8873   # link against other versions.
8874   version_type=sunos
8875   need_lib_prefix=no
8876   need_version=no
8877   case $host_cpu in
8878   ia64*)
8879     shrext_cmds='.so'
8880     hardcode_into_libs=yes
8881     dynamic_linker="$host_os dld.so"
8882     shlibpath_var=LD_LIBRARY_PATH
8883     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8884     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8885     soname_spec='${libname}${release}${shared_ext}$major'
8886     if test "X$HPUX_IA64_MODE" = X32; then
8887       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8888     else
8889       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8890     fi
8891     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8892     ;;
8893    hppa*64*)
8894      shrext_cmds='.sl'
8895      hardcode_into_libs=yes
8896      dynamic_linker="$host_os dld.sl"
8897      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8898      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8899      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8900      soname_spec='${libname}${release}${shared_ext}$major'
8901      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8902      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8903      ;;
8904    *)
8905     shrext_cmds='.sl'
8906     dynamic_linker="$host_os dld.sl"
8907     shlibpath_var=SHLIB_PATH
8908     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8909     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8910     soname_spec='${libname}${release}${shared_ext}$major'
8911     ;;
8912   esac
8913   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8914   postinstall_cmds='chmod 555 $lib'
8915   ;;
8916
8917 interix3*)
8918   version_type=linux
8919   need_lib_prefix=no
8920   need_version=no
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8924   shlibpath_var=LD_LIBRARY_PATH
8925   shlibpath_overrides_runpath=no
8926   hardcode_into_libs=yes
8927   ;;
8928
8929 irix5* | irix6* | nonstopux*)
8930   case $host_os in
8931     nonstopux*) version_type=nonstopux ;;
8932     *)
8933         if test "$lt_cv_prog_gnu_ld" = yes; then
8934                 version_type=linux
8935         else
8936                 version_type=irix
8937         fi ;;
8938   esac
8939   need_lib_prefix=no
8940   need_version=no
8941   soname_spec='${libname}${release}${shared_ext}$major'
8942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8943   case $host_os in
8944   irix5* | nonstopux*)
8945     libsuff= shlibsuff=
8946     ;;
8947   *)
8948     case $LD in # libtool.m4 will add one of these switches to LD
8949     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8950       libsuff= shlibsuff= libmagic=32-bit;;
8951     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8952       libsuff=32 shlibsuff=N32 libmagic=N32;;
8953     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8954       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8955     *) libsuff= shlibsuff= libmagic=never-match;;
8956     esac
8957     ;;
8958   esac
8959   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8960   shlibpath_overrides_runpath=no
8961   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8962   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8963   hardcode_into_libs=yes
8964   ;;
8965
8966 # No shared lib support for Linux oldld, aout, or coff.
8967 linux*oldld* | linux*aout* | linux*coff*)
8968   dynamic_linker=no
8969   ;;
8970
8971 # This must be Linux ELF.
8972 linux*)
8973   version_type=linux
8974   need_lib_prefix=no
8975   need_version=no
8976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8977   soname_spec='${libname}${release}${shared_ext}$major'
8978   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8979   shlibpath_var=LD_LIBRARY_PATH
8980   shlibpath_overrides_runpath=no
8981   # This implies no fast_install, which is unacceptable.
8982   # Some rework will be needed to allow for fast_install
8983   # before this can be enabled.
8984   hardcode_into_libs=yes
8985
8986   # Append ld.so.conf contents to the search path
8987   if test -f /etc/ld.so.conf; then
8988     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' ' '`
8989     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8990   fi
8991
8992   # We used to test for /lib/ld.so.1 and disable shared libraries on
8993   # powerpc, because MkLinux only supported shared libraries with the
8994   # GNU dynamic linker.  Since this was broken with cross compilers,
8995   # most powerpc-linux boxes support dynamic linking these days and
8996   # people can always --disable-shared, the test was removed, and we
8997   # assume the GNU/Linux dynamic linker is in use.
8998   dynamic_linker='GNU/Linux ld.so'
8999   ;;
9000
9001 knetbsd*-gnu)
9002   version_type=linux
9003   need_lib_prefix=no
9004   need_version=no
9005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9006   soname_spec='${libname}${release}${shared_ext}$major'
9007   shlibpath_var=LD_LIBRARY_PATH
9008   shlibpath_overrides_runpath=no
9009   hardcode_into_libs=yes
9010   dynamic_linker='GNU ld.so'
9011   ;;
9012
9013 netbsd*)
9014   version_type=sunos
9015   need_lib_prefix=no
9016   need_version=no
9017   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9018     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9019     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9020     dynamic_linker='NetBSD (a.out) ld.so'
9021   else
9022     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9023     soname_spec='${libname}${release}${shared_ext}$major'
9024     dynamic_linker='NetBSD ld.elf_so'
9025   fi
9026   shlibpath_var=LD_LIBRARY_PATH
9027   shlibpath_overrides_runpath=yes
9028   hardcode_into_libs=yes
9029   ;;
9030
9031 newsos6)
9032   version_type=linux
9033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9034   shlibpath_var=LD_LIBRARY_PATH
9035   shlibpath_overrides_runpath=yes
9036   ;;
9037
9038 nto-qnx*)
9039   version_type=linux
9040   need_lib_prefix=no
9041   need_version=no
9042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9043   soname_spec='${libname}${release}${shared_ext}$major'
9044   shlibpath_var=LD_LIBRARY_PATH
9045   shlibpath_overrides_runpath=yes
9046   ;;
9047
9048 openbsd*)
9049   version_type=sunos
9050   sys_lib_dlsearch_path_spec="/usr/lib"
9051   need_lib_prefix=no
9052   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9053   case $host_os in
9054     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9055     *)                         need_version=no  ;;
9056   esac
9057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9058   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9059   shlibpath_var=LD_LIBRARY_PATH
9060   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9061     case $host_os in
9062       openbsd2.[89] | openbsd2.[89].*)
9063         shlibpath_overrides_runpath=no
9064         ;;
9065       *)
9066         shlibpath_overrides_runpath=yes
9067         ;;
9068       esac
9069   else
9070     shlibpath_overrides_runpath=yes
9071   fi
9072   ;;
9073
9074 os2*)
9075   libname_spec='$name'
9076   shrext_cmds=".dll"
9077   need_lib_prefix=no
9078   library_names_spec='$libname${shared_ext} $libname.a'
9079   dynamic_linker='OS/2 ld.exe'
9080   shlibpath_var=LIBPATH
9081   ;;
9082
9083 osf3* | osf4* | osf5*)
9084   version_type=osf
9085   need_lib_prefix=no
9086   need_version=no
9087   soname_spec='${libname}${release}${shared_ext}$major'
9088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9089   shlibpath_var=LD_LIBRARY_PATH
9090   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9091   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9092   ;;
9093
9094 solaris*)
9095   version_type=linux
9096   need_lib_prefix=no
9097   need_version=no
9098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9099   soname_spec='${libname}${release}${shared_ext}$major'
9100   shlibpath_var=LD_LIBRARY_PATH
9101   shlibpath_overrides_runpath=yes
9102   hardcode_into_libs=yes
9103   # ldd complains unless libraries are executable
9104   postinstall_cmds='chmod +x $lib'
9105   ;;
9106
9107 sunos4*)
9108   version_type=sunos
9109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9110   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9111   shlibpath_var=LD_LIBRARY_PATH
9112   shlibpath_overrides_runpath=yes
9113   if test "$with_gnu_ld" = yes; then
9114     need_lib_prefix=no
9115   fi
9116   need_version=yes
9117   ;;
9118
9119 sysv4 | sysv4.3*)
9120   version_type=linux
9121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9122   soname_spec='${libname}${release}${shared_ext}$major'
9123   shlibpath_var=LD_LIBRARY_PATH
9124   case $host_vendor in
9125     sni)
9126       shlibpath_overrides_runpath=no
9127       need_lib_prefix=no
9128       export_dynamic_flag_spec='${wl}-Blargedynsym'
9129       runpath_var=LD_RUN_PATH
9130       ;;
9131     siemens)
9132       need_lib_prefix=no
9133       ;;
9134     motorola)
9135       need_lib_prefix=no
9136       need_version=no
9137       shlibpath_overrides_runpath=no
9138       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9139       ;;
9140   esac
9141   ;;
9142
9143 sysv4*MP*)
9144   if test -d /usr/nec ;then
9145     version_type=linux
9146     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9147     soname_spec='$libname${shared_ext}.$major'
9148     shlibpath_var=LD_LIBRARY_PATH
9149   fi
9150   ;;
9151
9152 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9153   version_type=freebsd-elf
9154   need_lib_prefix=no
9155   need_version=no
9156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9157   soname_spec='${libname}${release}${shared_ext}$major'
9158   shlibpath_var=LD_LIBRARY_PATH
9159   hardcode_into_libs=yes
9160   if test "$with_gnu_ld" = yes; then
9161     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9162     shlibpath_overrides_runpath=no
9163   else
9164     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9165     shlibpath_overrides_runpath=yes
9166     case $host_os in
9167       sco3.2v5*)
9168         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9169         ;;
9170     esac
9171   fi
9172   sys_lib_dlsearch_path_spec='/usr/lib'
9173   ;;
9174
9175 uts4*)
9176   version_type=linux
9177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9178   soname_spec='${libname}${release}${shared_ext}$major'
9179   shlibpath_var=LD_LIBRARY_PATH
9180   ;;
9181
9182 *)
9183   dynamic_linker=no
9184   ;;
9185 esac
9186 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9187 echo "${ECHO_T}$dynamic_linker" >&6; }
9188 test "$dynamic_linker" = no && can_build_shared=no
9189
9190 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9191 if test "$GCC" = yes; then
9192   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9193 fi
9194
9195
9196 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9197 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9198 if test "${libltdl_cv_shlibext+set}" = set; then
9199   echo $ECHO_N "(cached) $ECHO_C" >&6
9200 else
9201
9202 module=yes
9203 eval libltdl_cv_shlibext=$shrext_cmds
9204
9205 fi
9206 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9207 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9208 if test -n "$libltdl_cv_shlibext"; then
9209
9210 cat >>confdefs.h <<_ACEOF
9211 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9212 _ACEOF
9213
9214 fi
9215
9216
9217 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9218 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9219 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9220   echo $ECHO_N "(cached) $ECHO_C" >&6
9221 else
9222   libltdl_cv_shlibpath_var="$shlibpath_var"
9223 fi
9224 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9225 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9226 if test -n "$libltdl_cv_shlibpath_var"; then
9227
9228 cat >>confdefs.h <<_ACEOF
9229 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9230 _ACEOF
9231
9232 fi
9233
9234
9235 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9236 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9237 if test "${libltdl_cv_sys_search_path+set}" = set; then
9238   echo $ECHO_N "(cached) $ECHO_C" >&6
9239 else
9240   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9241 fi
9242 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9243 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9244 if test -n "$libltdl_cv_sys_search_path"; then
9245   sys_search_path=
9246   for dir in $libltdl_cv_sys_search_path; do
9247     if test -z "$sys_search_path"; then
9248       sys_search_path="$dir"
9249     else
9250       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9251     fi
9252   done
9253
9254 cat >>confdefs.h <<_ACEOF
9255 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9256 _ACEOF
9257
9258 fi
9259
9260 { echo "$as_me:$LINENO: checking for objdir" >&5
9261 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9262 if test "${libltdl_cv_objdir+set}" = set; then
9263   echo $ECHO_N "(cached) $ECHO_C" >&6
9264 else
9265   libltdl_cv_objdir="$objdir"
9266   if test -n "$objdir"; then
9267     :
9268   else
9269     rm -f .libs 2>/dev/null
9270     mkdir .libs 2>/dev/null
9271     if test -d .libs; then
9272       libltdl_cv_objdir=.libs
9273     else
9274       # MS-DOS does not allow filenames that begin with a dot.
9275       libltdl_cv_objdir=_libs
9276     fi
9277   rmdir .libs 2>/dev/null
9278   fi
9279
9280 fi
9281 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9282 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9283
9284 cat >>confdefs.h <<_ACEOF
9285 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9286 _ACEOF
9287
9288
9289
9290
9291
9292
9293 # Check for command to grab the raw symbol name followed by C symbol from nm.
9294 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9295 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9296 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9297   echo $ECHO_N "(cached) $ECHO_C" >&6
9298 else
9299
9300 # These are sane defaults that work on at least a few old systems.
9301 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9302
9303 # Character class describing NM global symbol codes.
9304 symcode='[BCDEGRST]'
9305
9306 # Regexp to match symbols that can be accessed directly from C.
9307 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9308
9309 # Transform an extracted symbol line into a proper C declaration
9310 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9311
9312 # Transform an extracted symbol line into symbol name and symbol address
9313 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'"
9314
9315 # Define system-specific variables.
9316 case $host_os in
9317 aix*)
9318   symcode='[BCDT]'
9319   ;;
9320 cygwin* | mingw* | pw32*)
9321   symcode='[ABCDGISTW]'
9322   ;;
9323 hpux*) # Its linker distinguishes data from code symbols
9324   if test "$host_cpu" = ia64; then
9325     symcode='[ABCDEGRST]'
9326   fi
9327   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9328   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'"
9329   ;;
9330 linux*)
9331   if test "$host_cpu" = ia64; then
9332     symcode='[ABCDGIRSTW]'
9333     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9334     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'"
9335   fi
9336   ;;
9337 irix* | nonstopux*)
9338   symcode='[BCDEGRST]'
9339   ;;
9340 osf*)
9341   symcode='[BCDEGQRST]'
9342   ;;
9343 solaris*)
9344   symcode='[BDRT]'
9345   ;;
9346 sco3.2v5*)
9347   symcode='[DT]'
9348   ;;
9349 sysv4.2uw2*)
9350   symcode='[DT]'
9351   ;;
9352 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9353   symcode='[ABDT]'
9354   ;;
9355 sysv4)
9356   symcode='[DFNSTU]'
9357   ;;
9358 esac
9359
9360 # Handle CRLF in mingw tool chain
9361 opt_cr=
9362 case $build_os in
9363 mingw*)
9364   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9365   ;;
9366 esac
9367
9368 # If we're using GNU nm, then use its standard symbol codes.
9369 case `$NM -V 2>&1` in
9370 *GNU* | *'with BFD'*)
9371   symcode='[ABCDGIRSTW]' ;;
9372 esac
9373
9374 # Try without a prefix undercore, then with it.
9375 for ac_symprfx in "" "_"; do
9376
9377   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9378   symxfrm="\\1 $ac_symprfx\\2 \\2"
9379
9380   # Write the raw and C identifiers.
9381   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9382
9383   # Check to see that the pipe works correctly.
9384   pipe_works=no
9385
9386   rm -f conftest*
9387   cat > conftest.$ac_ext <<EOF
9388 #ifdef __cplusplus
9389 extern "C" {
9390 #endif
9391 char nm_test_var;
9392 void nm_test_func(){}
9393 #ifdef __cplusplus
9394 }
9395 #endif
9396 int main(){nm_test_var='a';nm_test_func();return(0);}
9397 EOF
9398
9399   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9400   (eval $ac_compile) 2>&5
9401   ac_status=$?
9402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403   (exit $ac_status); }; then
9404     # Now try to grab the symbols.
9405     nlist=conftest.nm
9406     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9407   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9408   ac_status=$?
9409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410   (exit $ac_status); } && test -s "$nlist"; then
9411       # Try sorting and uniquifying the output.
9412       if sort "$nlist" | uniq > "$nlist"T; then
9413         mv -f "$nlist"T "$nlist"
9414       else
9415         rm -f "$nlist"T
9416       fi
9417
9418       # Make sure that we snagged all the symbols we need.
9419       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9420         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9421           cat <<EOF > conftest.$ac_ext
9422 #ifdef __cplusplus
9423 extern "C" {
9424 #endif
9425
9426 EOF
9427           # Now generate the symbol file.
9428           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9429
9430           cat <<EOF >> conftest.$ac_ext
9431 #if defined (__STDC__) && __STDC__
9432 # define lt_ptr_t void *
9433 #else
9434 # define lt_ptr_t char *
9435 # define const
9436 #endif
9437
9438 /* The mapping between symbol names and symbols. */
9439 const struct {
9440   const char *name;
9441   lt_ptr_t address;
9442 }
9443 lt_preloaded_symbols[] =
9444 {
9445 EOF
9446           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9447           cat <<\EOF >> conftest.$ac_ext
9448   {0, (lt_ptr_t) 0}
9449 };
9450
9451 #ifdef __cplusplus
9452 }
9453 #endif
9454 EOF
9455           # Now try linking the two files.
9456           mv conftest.$ac_objext conftstm.$ac_objext
9457           lt_save_LIBS="$LIBS"
9458           lt_save_CFLAGS="$CFLAGS"
9459           LIBS="conftstm.$ac_objext"
9460           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9461           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9462   (eval $ac_link) 2>&5
9463   ac_status=$?
9464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9466             pipe_works=yes
9467           fi
9468           LIBS="$lt_save_LIBS"
9469           CFLAGS="$lt_save_CFLAGS"
9470         else
9471           echo "cannot find nm_test_func in $nlist" >&5
9472         fi
9473       else
9474         echo "cannot find nm_test_var in $nlist" >&5
9475       fi
9476     else
9477       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9478     fi
9479   else
9480     echo "$progname: failed program was:" >&5
9481     cat conftest.$ac_ext >&5
9482   fi
9483   rm -f conftest* conftst*
9484
9485   # Do not use the global_symbol_pipe unless it works.
9486   if test "$pipe_works" = yes; then
9487     break
9488   else
9489     lt_cv_sys_global_symbol_pipe=
9490   fi
9491 done
9492
9493 fi
9494
9495 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9496   lt_cv_sys_global_symbol_to_cdecl=
9497 fi
9498 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9499   { echo "$as_me:$LINENO: result: failed" >&5
9500 echo "${ECHO_T}failed" >&6; }
9501 else
9502   { echo "$as_me:$LINENO: result: ok" >&5
9503 echo "${ECHO_T}ok" >&6; }
9504 fi
9505
9506
9507 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9508 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9509 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9510   echo $ECHO_N "(cached) $ECHO_C" >&6
9511 else
9512   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9513     libltdl_cv_preloaded_symbols=yes
9514   else
9515     libltdl_cv_preloaded_symbols=no
9516   fi
9517
9518 fi
9519 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9520 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9521 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9522
9523 cat >>confdefs.h <<\_ACEOF
9524 #define HAVE_PRELOADED_SYMBOLS 1
9525 _ACEOF
9526
9527 fi
9528
9529 LIBADD_DL=
9530
9531 ac_ext=c
9532 ac_cpp='$CPP $CPPFLAGS'
9533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9536
9537
9538 { echo "$as_me:$LINENO: checking for shl_load" >&5
9539 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9540 if test "${ac_cv_func_shl_load+set}" = set; then
9541   echo $ECHO_N "(cached) $ECHO_C" >&6
9542 else
9543   cat >conftest.$ac_ext <<_ACEOF
9544 /* confdefs.h.  */
9545 _ACEOF
9546 cat confdefs.h >>conftest.$ac_ext
9547 cat >>conftest.$ac_ext <<_ACEOF
9548 /* end confdefs.h.  */
9549 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9550    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9551 #define shl_load innocuous_shl_load
9552
9553 /* System header to define __stub macros and hopefully few prototypes,
9554     which can conflict with char shl_load (); below.
9555     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9556     <limits.h> exists even on freestanding compilers.  */
9557
9558 #ifdef __STDC__
9559 # include <limits.h>
9560 #else
9561 # include <assert.h>
9562 #endif
9563
9564 #undef shl_load
9565
9566 /* Override any GCC internal prototype to avoid an error.
9567    Use char because int might match the return type of a GCC
9568    builtin and then its argument prototype would still apply.  */
9569 #ifdef __cplusplus
9570 extern "C"
9571 #endif
9572 char shl_load ();
9573 /* The GNU C library defines this for functions which it implements
9574     to always fail with ENOSYS.  Some functions are actually named
9575     something starting with __ and the normal name is an alias.  */
9576 #if defined __stub_shl_load || defined __stub___shl_load
9577 choke me
9578 #endif
9579
9580 int
9581 main ()
9582 {
9583 return shl_load ();
9584   ;
9585   return 0;
9586 }
9587 _ACEOF
9588 rm -f conftest.$ac_objext conftest$ac_exeext
9589 if { (ac_try="$ac_link"
9590 case "(($ac_try" in
9591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9592   *) ac_try_echo=$ac_try;;
9593 esac
9594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9595   (eval "$ac_link") 2>conftest.er1
9596   ac_status=$?
9597   grep -v '^ *+' conftest.er1 >conftest.err
9598   rm -f conftest.er1
9599   cat conftest.err >&5
9600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601   (exit $ac_status); } &&
9602          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9603   { (case "(($ac_try" in
9604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9605   *) ac_try_echo=$ac_try;;
9606 esac
9607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9608   (eval "$ac_try") 2>&5
9609   ac_status=$?
9610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611   (exit $ac_status); }; } &&
9612          { ac_try='test -s conftest$ac_exeext'
9613   { (case "(($ac_try" in
9614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9615   *) ac_try_echo=$ac_try;;
9616 esac
9617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9618   (eval "$ac_try") 2>&5
9619   ac_status=$?
9620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621   (exit $ac_status); }; }; then
9622   ac_cv_func_shl_load=yes
9623 else
9624   echo "$as_me: failed program was:" >&5
9625 sed 's/^/| /' conftest.$ac_ext >&5
9626
9627         ac_cv_func_shl_load=no
9628 fi
9629
9630 rm -f core conftest.err conftest.$ac_objext \
9631       conftest$ac_exeext conftest.$ac_ext
9632 fi
9633 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9634 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9635 if test $ac_cv_func_shl_load = yes; then
9636
9637 cat >>confdefs.h <<\_ACEOF
9638 #define HAVE_SHL_LOAD 1
9639 _ACEOF
9640
9641 else
9642   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9643 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9644 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9645   echo $ECHO_N "(cached) $ECHO_C" >&6
9646 else
9647   ac_check_lib_save_LIBS=$LIBS
9648 LIBS="-ldld  $LIBS"
9649 cat >conftest.$ac_ext <<_ACEOF
9650 /* confdefs.h.  */
9651 _ACEOF
9652 cat confdefs.h >>conftest.$ac_ext
9653 cat >>conftest.$ac_ext <<_ACEOF
9654 /* end confdefs.h.  */
9655
9656 /* Override any GCC internal prototype to avoid an error.
9657    Use char because int might match the return type of a GCC
9658    builtin and then its argument prototype would still apply.  */
9659 #ifdef __cplusplus
9660 extern "C"
9661 #endif
9662 char shl_load ();
9663 int
9664 main ()
9665 {
9666 return shl_load ();
9667   ;
9668   return 0;
9669 }
9670 _ACEOF
9671 rm -f conftest.$ac_objext conftest$ac_exeext
9672 if { (ac_try="$ac_link"
9673 case "(($ac_try" in
9674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9675   *) ac_try_echo=$ac_try;;
9676 esac
9677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9678   (eval "$ac_link") 2>conftest.er1
9679   ac_status=$?
9680   grep -v '^ *+' conftest.er1 >conftest.err
9681   rm -f conftest.er1
9682   cat conftest.err >&5
9683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684   (exit $ac_status); } &&
9685          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9686   { (case "(($ac_try" in
9687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688   *) ac_try_echo=$ac_try;;
9689 esac
9690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9691   (eval "$ac_try") 2>&5
9692   ac_status=$?
9693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694   (exit $ac_status); }; } &&
9695          { ac_try='test -s conftest$ac_exeext'
9696   { (case "(($ac_try" in
9697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9698   *) ac_try_echo=$ac_try;;
9699 esac
9700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9701   (eval "$ac_try") 2>&5
9702   ac_status=$?
9703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704   (exit $ac_status); }; }; then
9705   ac_cv_lib_dld_shl_load=yes
9706 else
9707   echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9709
9710         ac_cv_lib_dld_shl_load=no
9711 fi
9712
9713 rm -f core conftest.err conftest.$ac_objext \
9714       conftest$ac_exeext conftest.$ac_ext
9715 LIBS=$ac_check_lib_save_LIBS
9716 fi
9717 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9718 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9719 if test $ac_cv_lib_dld_shl_load = yes; then
9720
9721 cat >>confdefs.h <<\_ACEOF
9722 #define HAVE_SHL_LOAD 1
9723 _ACEOF
9724
9725         LIBADD_DL="$LIBADD_DL -ldld"
9726 else
9727   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9728 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9729 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9730   echo $ECHO_N "(cached) $ECHO_C" >&6
9731 else
9732   ac_check_lib_save_LIBS=$LIBS
9733 LIBS="-ldl  $LIBS"
9734 cat >conftest.$ac_ext <<_ACEOF
9735 /* confdefs.h.  */
9736 _ACEOF
9737 cat confdefs.h >>conftest.$ac_ext
9738 cat >>conftest.$ac_ext <<_ACEOF
9739 /* end confdefs.h.  */
9740
9741 /* Override any GCC internal prototype to avoid an error.
9742    Use char because int might match the return type of a GCC
9743    builtin and then its argument prototype would still apply.  */
9744 #ifdef __cplusplus
9745 extern "C"
9746 #endif
9747 char dlopen ();
9748 int
9749 main ()
9750 {
9751 return dlopen ();
9752   ;
9753   return 0;
9754 }
9755 _ACEOF
9756 rm -f conftest.$ac_objext conftest$ac_exeext
9757 if { (ac_try="$ac_link"
9758 case "(($ac_try" in
9759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9760   *) ac_try_echo=$ac_try;;
9761 esac
9762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9763   (eval "$ac_link") 2>conftest.er1
9764   ac_status=$?
9765   grep -v '^ *+' conftest.er1 >conftest.err
9766   rm -f conftest.er1
9767   cat conftest.err >&5
9768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769   (exit $ac_status); } &&
9770          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9771   { (case "(($ac_try" in
9772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773   *) ac_try_echo=$ac_try;;
9774 esac
9775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776   (eval "$ac_try") 2>&5
9777   ac_status=$?
9778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779   (exit $ac_status); }; } &&
9780          { ac_try='test -s conftest$ac_exeext'
9781   { (case "(($ac_try" in
9782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9783   *) ac_try_echo=$ac_try;;
9784 esac
9785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9786   (eval "$ac_try") 2>&5
9787   ac_status=$?
9788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789   (exit $ac_status); }; }; then
9790   ac_cv_lib_dl_dlopen=yes
9791 else
9792   echo "$as_me: failed program was:" >&5
9793 sed 's/^/| /' conftest.$ac_ext >&5
9794
9795         ac_cv_lib_dl_dlopen=no
9796 fi
9797
9798 rm -f core conftest.err conftest.$ac_objext \
9799       conftest$ac_exeext conftest.$ac_ext
9800 LIBS=$ac_check_lib_save_LIBS
9801 fi
9802 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9803 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9804 if test $ac_cv_lib_dl_dlopen = yes; then
9805
9806 cat >>confdefs.h <<\_ACEOF
9807 #define HAVE_LIBDL 1
9808 _ACEOF
9809
9810                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9811 else
9812   cat >conftest.$ac_ext <<_ACEOF
9813 /* confdefs.h.  */
9814 _ACEOF
9815 cat confdefs.h >>conftest.$ac_ext
9816 cat >>conftest.$ac_ext <<_ACEOF
9817 /* end confdefs.h.  */
9818 #if HAVE_DLFCN_H
9819 #  include <dlfcn.h>
9820 #endif
9821
9822 int
9823 main ()
9824 {
9825 dlopen(0, 0);
9826   ;
9827   return 0;
9828 }
9829 _ACEOF
9830 rm -f conftest.$ac_objext conftest$ac_exeext
9831 if { (ac_try="$ac_link"
9832 case "(($ac_try" in
9833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834   *) ac_try_echo=$ac_try;;
9835 esac
9836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837   (eval "$ac_link") 2>conftest.er1
9838   ac_status=$?
9839   grep -v '^ *+' conftest.er1 >conftest.err
9840   rm -f conftest.er1
9841   cat conftest.err >&5
9842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843   (exit $ac_status); } &&
9844          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9845   { (case "(($ac_try" in
9846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847   *) ac_try_echo=$ac_try;;
9848 esac
9849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850   (eval "$ac_try") 2>&5
9851   ac_status=$?
9852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853   (exit $ac_status); }; } &&
9854          { ac_try='test -s conftest$ac_exeext'
9855   { (case "(($ac_try" in
9856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857   *) ac_try_echo=$ac_try;;
9858 esac
9859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860   (eval "$ac_try") 2>&5
9861   ac_status=$?
9862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863   (exit $ac_status); }; }; then
9864
9865 cat >>confdefs.h <<\_ACEOF
9866 #define HAVE_LIBDL 1
9867 _ACEOF
9868  libltdl_cv_func_dlopen="yes"
9869 else
9870   echo "$as_me: failed program was:" >&5
9871 sed 's/^/| /' conftest.$ac_ext >&5
9872
9873         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9874 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9875 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9876   echo $ECHO_N "(cached) $ECHO_C" >&6
9877 else
9878   ac_check_lib_save_LIBS=$LIBS
9879 LIBS="-lsvld  $LIBS"
9880 cat >conftest.$ac_ext <<_ACEOF
9881 /* confdefs.h.  */
9882 _ACEOF
9883 cat confdefs.h >>conftest.$ac_ext
9884 cat >>conftest.$ac_ext <<_ACEOF
9885 /* end confdefs.h.  */
9886
9887 /* Override any GCC internal prototype to avoid an error.
9888    Use char because int might match the return type of a GCC
9889    builtin and then its argument prototype would still apply.  */
9890 #ifdef __cplusplus
9891 extern "C"
9892 #endif
9893 char dlopen ();
9894 int
9895 main ()
9896 {
9897 return dlopen ();
9898   ;
9899   return 0;
9900 }
9901 _ACEOF
9902 rm -f conftest.$ac_objext conftest$ac_exeext
9903 if { (ac_try="$ac_link"
9904 case "(($ac_try" in
9905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9906   *) ac_try_echo=$ac_try;;
9907 esac
9908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9909   (eval "$ac_link") 2>conftest.er1
9910   ac_status=$?
9911   grep -v '^ *+' conftest.er1 >conftest.err
9912   rm -f conftest.er1
9913   cat conftest.err >&5
9914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915   (exit $ac_status); } &&
9916          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9917   { (case "(($ac_try" in
9918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919   *) ac_try_echo=$ac_try;;
9920 esac
9921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922   (eval "$ac_try") 2>&5
9923   ac_status=$?
9924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925   (exit $ac_status); }; } &&
9926          { ac_try='test -s conftest$ac_exeext'
9927   { (case "(($ac_try" in
9928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9929   *) ac_try_echo=$ac_try;;
9930 esac
9931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9932   (eval "$ac_try") 2>&5
9933   ac_status=$?
9934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935   (exit $ac_status); }; }; then
9936   ac_cv_lib_svld_dlopen=yes
9937 else
9938   echo "$as_me: failed program was:" >&5
9939 sed 's/^/| /' conftest.$ac_ext >&5
9940
9941         ac_cv_lib_svld_dlopen=no
9942 fi
9943
9944 rm -f core conftest.err conftest.$ac_objext \
9945       conftest$ac_exeext conftest.$ac_ext
9946 LIBS=$ac_check_lib_save_LIBS
9947 fi
9948 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9949 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9950 if test $ac_cv_lib_svld_dlopen = yes; then
9951
9952 cat >>confdefs.h <<\_ACEOF
9953 #define HAVE_LIBDL 1
9954 _ACEOF
9955
9956                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9957 else
9958   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9959 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9960 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9961   echo $ECHO_N "(cached) $ECHO_C" >&6
9962 else
9963   ac_check_lib_save_LIBS=$LIBS
9964 LIBS="-ldld  $LIBS"
9965 cat >conftest.$ac_ext <<_ACEOF
9966 /* confdefs.h.  */
9967 _ACEOF
9968 cat confdefs.h >>conftest.$ac_ext
9969 cat >>conftest.$ac_ext <<_ACEOF
9970 /* end confdefs.h.  */
9971
9972 /* Override any GCC internal prototype to avoid an error.
9973    Use char because int might match the return type of a GCC
9974    builtin and then its argument prototype would still apply.  */
9975 #ifdef __cplusplus
9976 extern "C"
9977 #endif
9978 char dld_link ();
9979 int
9980 main ()
9981 {
9982 return dld_link ();
9983   ;
9984   return 0;
9985 }
9986 _ACEOF
9987 rm -f conftest.$ac_objext conftest$ac_exeext
9988 if { (ac_try="$ac_link"
9989 case "(($ac_try" in
9990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991   *) ac_try_echo=$ac_try;;
9992 esac
9993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994   (eval "$ac_link") 2>conftest.er1
9995   ac_status=$?
9996   grep -v '^ *+' conftest.er1 >conftest.err
9997   rm -f conftest.er1
9998   cat conftest.err >&5
9999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000   (exit $ac_status); } &&
10001          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10002   { (case "(($ac_try" in
10003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004   *) ac_try_echo=$ac_try;;
10005 esac
10006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10007   (eval "$ac_try") 2>&5
10008   ac_status=$?
10009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010   (exit $ac_status); }; } &&
10011          { ac_try='test -s conftest$ac_exeext'
10012   { (case "(($ac_try" in
10013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10014   *) ac_try_echo=$ac_try;;
10015 esac
10016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10017   (eval "$ac_try") 2>&5
10018   ac_status=$?
10019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020   (exit $ac_status); }; }; then
10021   ac_cv_lib_dld_dld_link=yes
10022 else
10023   echo "$as_me: failed program was:" >&5
10024 sed 's/^/| /' conftest.$ac_ext >&5
10025
10026         ac_cv_lib_dld_dld_link=no
10027 fi
10028
10029 rm -f core conftest.err conftest.$ac_objext \
10030       conftest$ac_exeext conftest.$ac_ext
10031 LIBS=$ac_check_lib_save_LIBS
10032 fi
10033 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10034 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10035 if test $ac_cv_lib_dld_dld_link = yes; then
10036
10037 cat >>confdefs.h <<\_ACEOF
10038 #define HAVE_DLD 1
10039 _ACEOF
10040
10041                 LIBADD_DL="$LIBADD_DL -ldld"
10042 else
10043   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10044 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10045 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10046   echo $ECHO_N "(cached) $ECHO_C" >&6
10047 else
10048   cat >conftest.$ac_ext <<_ACEOF
10049 /* confdefs.h.  */
10050 _ACEOF
10051 cat confdefs.h >>conftest.$ac_ext
10052 cat >>conftest.$ac_ext <<_ACEOF
10053 /* end confdefs.h.  */
10054 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10055    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10056 #define _dyld_func_lookup innocuous__dyld_func_lookup
10057
10058 /* System header to define __stub macros and hopefully few prototypes,
10059     which can conflict with char _dyld_func_lookup (); below.
10060     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10061     <limits.h> exists even on freestanding compilers.  */
10062
10063 #ifdef __STDC__
10064 # include <limits.h>
10065 #else
10066 # include <assert.h>
10067 #endif
10068
10069 #undef _dyld_func_lookup
10070
10071 /* Override any GCC internal prototype to avoid an error.
10072    Use char because int might match the return type of a GCC
10073    builtin and then its argument prototype would still apply.  */
10074 #ifdef __cplusplus
10075 extern "C"
10076 #endif
10077 char _dyld_func_lookup ();
10078 /* The GNU C library defines this for functions which it implements
10079     to always fail with ENOSYS.  Some functions are actually named
10080     something starting with __ and the normal name is an alias.  */
10081 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10082 choke me
10083 #endif
10084
10085 int
10086 main ()
10087 {
10088 return _dyld_func_lookup ();
10089   ;
10090   return 0;
10091 }
10092 _ACEOF
10093 rm -f conftest.$ac_objext conftest$ac_exeext
10094 if { (ac_try="$ac_link"
10095 case "(($ac_try" in
10096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10097   *) ac_try_echo=$ac_try;;
10098 esac
10099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10100   (eval "$ac_link") 2>conftest.er1
10101   ac_status=$?
10102   grep -v '^ *+' conftest.er1 >conftest.err
10103   rm -f conftest.er1
10104   cat conftest.err >&5
10105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106   (exit $ac_status); } &&
10107          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10108   { (case "(($ac_try" in
10109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10110   *) ac_try_echo=$ac_try;;
10111 esac
10112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10113   (eval "$ac_try") 2>&5
10114   ac_status=$?
10115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116   (exit $ac_status); }; } &&
10117          { ac_try='test -s conftest$ac_exeext'
10118   { (case "(($ac_try" in
10119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10120   *) ac_try_echo=$ac_try;;
10121 esac
10122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10123   (eval "$ac_try") 2>&5
10124   ac_status=$?
10125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126   (exit $ac_status); }; }; then
10127   ac_cv_func__dyld_func_lookup=yes
10128 else
10129   echo "$as_me: failed program was:" >&5
10130 sed 's/^/| /' conftest.$ac_ext >&5
10131
10132         ac_cv_func__dyld_func_lookup=no
10133 fi
10134
10135 rm -f core conftest.err conftest.$ac_objext \
10136       conftest$ac_exeext conftest.$ac_ext
10137 fi
10138 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10139 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10140 if test $ac_cv_func__dyld_func_lookup = yes; then
10141
10142 cat >>confdefs.h <<\_ACEOF
10143 #define HAVE_DYLD 1
10144 _ACEOF
10145
10146 fi
10147
10148
10149 fi
10150
10151
10152 fi
10153
10154
10155 fi
10156
10157 rm -f core conftest.err conftest.$ac_objext \
10158       conftest$ac_exeext conftest.$ac_ext
10159
10160 fi
10161
10162
10163 fi
10164
10165
10166 fi
10167
10168
10169 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10170 then
10171   lt_save_LIBS="$LIBS"
10172   LIBS="$LIBS $LIBADD_DL"
10173
10174 for ac_func in dlerror
10175 do
10176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10177 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10179 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10180   echo $ECHO_N "(cached) $ECHO_C" >&6
10181 else
10182   cat >conftest.$ac_ext <<_ACEOF
10183 /* confdefs.h.  */
10184 _ACEOF
10185 cat confdefs.h >>conftest.$ac_ext
10186 cat >>conftest.$ac_ext <<_ACEOF
10187 /* end confdefs.h.  */
10188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10189    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10190 #define $ac_func innocuous_$ac_func
10191
10192 /* System header to define __stub macros and hopefully few prototypes,
10193     which can conflict with char $ac_func (); below.
10194     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10195     <limits.h> exists even on freestanding compilers.  */
10196
10197 #ifdef __STDC__
10198 # include <limits.h>
10199 #else
10200 # include <assert.h>
10201 #endif
10202
10203 #undef $ac_func
10204
10205 /* Override any GCC internal prototype to avoid an error.
10206    Use char because int might match the return type of a GCC
10207    builtin and then its argument prototype would still apply.  */
10208 #ifdef __cplusplus
10209 extern "C"
10210 #endif
10211 char $ac_func ();
10212 /* The GNU C library defines this for functions which it implements
10213     to always fail with ENOSYS.  Some functions are actually named
10214     something starting with __ and the normal name is an alias.  */
10215 #if defined __stub_$ac_func || defined __stub___$ac_func
10216 choke me
10217 #endif
10218
10219 int
10220 main ()
10221 {
10222 return $ac_func ();
10223   ;
10224   return 0;
10225 }
10226 _ACEOF
10227 rm -f conftest.$ac_objext conftest$ac_exeext
10228 if { (ac_try="$ac_link"
10229 case "(($ac_try" in
10230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231   *) ac_try_echo=$ac_try;;
10232 esac
10233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234   (eval "$ac_link") 2>conftest.er1
10235   ac_status=$?
10236   grep -v '^ *+' conftest.er1 >conftest.err
10237   rm -f conftest.er1
10238   cat conftest.err >&5
10239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240   (exit $ac_status); } &&
10241          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10242   { (case "(($ac_try" in
10243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10244   *) ac_try_echo=$ac_try;;
10245 esac
10246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10247   (eval "$ac_try") 2>&5
10248   ac_status=$?
10249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250   (exit $ac_status); }; } &&
10251          { ac_try='test -s conftest$ac_exeext'
10252   { (case "(($ac_try" in
10253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10254   *) ac_try_echo=$ac_try;;
10255 esac
10256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10257   (eval "$ac_try") 2>&5
10258   ac_status=$?
10259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260   (exit $ac_status); }; }; then
10261   eval "$as_ac_var=yes"
10262 else
10263   echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10265
10266         eval "$as_ac_var=no"
10267 fi
10268
10269 rm -f core conftest.err conftest.$ac_objext \
10270       conftest$ac_exeext conftest.$ac_ext
10271 fi
10272 ac_res=`eval echo '${'$as_ac_var'}'`
10273                { echo "$as_me:$LINENO: result: $ac_res" >&5
10274 echo "${ECHO_T}$ac_res" >&6; }
10275 if test `eval echo '${'$as_ac_var'}'` = yes; then
10276   cat >>confdefs.h <<_ACEOF
10277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10278 _ACEOF
10279
10280 fi
10281 done
10282
10283   LIBS="$lt_save_LIBS"
10284 fi
10285 ac_ext=c
10286 ac_cpp='$CPP $CPPFLAGS'
10287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10290
10291
10292
10293 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10294 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10295 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10296   echo $ECHO_N "(cached) $ECHO_C" >&6
10297 else
10298   ac_cv_sys_symbol_underscore=no
10299   cat > conftest.$ac_ext <<EOF
10300 void nm_test_func(){}
10301 int main(){nm_test_func;return 0;}
10302 EOF
10303   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10304   (eval $ac_compile) 2>&5
10305   ac_status=$?
10306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307   (exit $ac_status); }; then
10308     # Now try to grab the symbols.
10309     ac_nlist=conftest.nm
10310     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10311   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10312   ac_status=$?
10313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314   (exit $ac_status); } && test -s "$ac_nlist"; then
10315       # See whether the symbols have a leading underscore.
10316       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10317         ac_cv_sys_symbol_underscore=yes
10318       else
10319         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10320           :
10321         else
10322           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10323         fi
10324       fi
10325     else
10326       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10327     fi
10328   else
10329     echo "configure: failed program was:" >&5
10330     cat conftest.c >&5
10331   fi
10332   rm -rf conftest*
10333
10334 fi
10335 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10336 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10337
10338
10339 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10340   if test x"$libltdl_cv_func_dlopen" = xyes ||
10341      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10342         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10343 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10344 if test "${libltdl_cv_need_uscore+set}" = set; then
10345   echo $ECHO_N "(cached) $ECHO_C" >&6
10346 else
10347   libltdl_cv_need_uscore=unknown
10348           save_LIBS="$LIBS"
10349           LIBS="$LIBS $LIBADD_DL"
10350           if test "$cross_compiling" = yes; then :
10351   libltdl_cv_need_uscore=cross
10352 else
10353   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10354   lt_status=$lt_dlunknown
10355   cat > conftest.$ac_ext <<EOF
10356 #line 10356 "configure"
10357 #include "confdefs.h"
10358
10359 #if HAVE_DLFCN_H
10360 #include <dlfcn.h>
10361 #endif
10362
10363 #include <stdio.h>
10364
10365 #ifdef RTLD_GLOBAL
10366 #  define LT_DLGLOBAL           RTLD_GLOBAL
10367 #else
10368 #  ifdef DL_GLOBAL
10369 #    define LT_DLGLOBAL         DL_GLOBAL
10370 #  else
10371 #    define LT_DLGLOBAL         0
10372 #  endif
10373 #endif
10374
10375 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10376    find out it does not work in some platform. */
10377 #ifndef LT_DLLAZY_OR_NOW
10378 #  ifdef RTLD_LAZY
10379 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10380 #  else
10381 #    ifdef DL_LAZY
10382 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10383 #    else
10384 #      ifdef RTLD_NOW
10385 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10386 #      else
10387 #        ifdef DL_NOW
10388 #          define LT_DLLAZY_OR_NOW      DL_NOW
10389 #        else
10390 #          define LT_DLLAZY_OR_NOW      0
10391 #        endif
10392 #      endif
10393 #    endif
10394 #  endif
10395 #endif
10396
10397 #ifdef __cplusplus
10398 extern "C" void exit (int);
10399 #endif
10400
10401 void fnord() { int i=42;}
10402 int main ()
10403 {
10404   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10405   int status = $lt_dlunknown;
10406
10407   if (self)
10408     {
10409       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10410       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10411       /* dlclose (self); */
10412     }
10413   else
10414     puts (dlerror ());
10415
10416     exit (status);
10417 }
10418 EOF
10419   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10420   (eval $ac_link) 2>&5
10421   ac_status=$?
10422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10424     (./conftest; exit; ) >&5 2>/dev/null
10425     lt_status=$?
10426     case x$lt_status in
10427       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10428       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10429       x$lt_dlunknown|x*)  ;;
10430     esac
10431   else :
10432     # compilation failed
10433
10434   fi
10435 fi
10436 rm -fr conftest*
10437
10438           LIBS="$save_LIBS"
10439
10440 fi
10441 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10442 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10443   fi
10444 fi
10445
10446 if test x"$libltdl_cv_need_uscore" = xyes; then
10447
10448 cat >>confdefs.h <<\_ACEOF
10449 #define NEED_USCORE 1
10450 _ACEOF
10451
10452 fi
10453
10454
10455 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10456 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10457 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10458   echo $ECHO_N "(cached) $ECHO_C" >&6
10459 else
10460   # PORTME does your system automatically load deplibs for dlopen?
10461   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10462   # For now, we just catch OSes we know something about -- in the
10463   # future, we'll try test this programmatically.
10464   libltdl_cv_sys_dlopen_deplibs=unknown
10465   case "$host_os" in
10466   aix3*|aix4.1.*|aix4.2.*)
10467     # Unknown whether this is true for these versions of AIX, but
10468     # we want this `case' here to explicitly catch those versions.
10469     libltdl_cv_sys_dlopen_deplibs=unknown
10470     ;;
10471   aix[45]*)
10472     libltdl_cv_sys_dlopen_deplibs=yes
10473     ;;
10474   darwin*)
10475     # Assuming the user has installed a libdl from somewhere, this is true
10476     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10477     libltdl_cv_sys_dlopen_deplibs=yes
10478     ;;
10479   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10480     # GNU and its variants, using gnu ld.so (Glibc)
10481     libltdl_cv_sys_dlopen_deplibs=yes
10482     ;;
10483   hpux10*|hpux11*)
10484     libltdl_cv_sys_dlopen_deplibs=yes
10485     ;;
10486   interix*)
10487     libltdl_cv_sys_dlopen_deplibs=yes
10488     ;;
10489   irix[12345]*|irix6.[01]*)
10490     # Catch all versions of IRIX before 6.2, and indicate that we don't
10491     # know how it worked for any of those versions.
10492     libltdl_cv_sys_dlopen_deplibs=unknown
10493     ;;
10494   irix*)
10495     # The case above catches anything before 6.2, and it's known that
10496     # at 6.2 and later dlopen does load deplibs.
10497     libltdl_cv_sys_dlopen_deplibs=yes
10498     ;;
10499   netbsd*)
10500     libltdl_cv_sys_dlopen_deplibs=yes
10501     ;;
10502   openbsd*)
10503     libltdl_cv_sys_dlopen_deplibs=yes
10504     ;;
10505   osf[1234]*)
10506     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10507     # it did *not* use an RPATH in a shared library to find objects the
10508     # library depends on, so we explicitly say `no'.
10509     libltdl_cv_sys_dlopen_deplibs=no
10510     ;;
10511   osf5.0|osf5.0a|osf5.1)
10512     # dlopen *does* load deplibs and with the right loader patch applied
10513     # it even uses RPATH in a shared library to search for shared objects
10514     # that the library depends on, but there's no easy way to know if that
10515     # patch is installed.  Since this is the case, all we can really
10516     # say is unknown -- it depends on the patch being installed.  If
10517     # it is, this changes to `yes'.  Without it, it would be `no'.
10518     libltdl_cv_sys_dlopen_deplibs=unknown
10519     ;;
10520   osf*)
10521     # the two cases above should catch all versions of osf <= 5.1.  Read
10522     # the comments above for what we know about them.
10523     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10524     # is used to find them so we can finally say `yes'.
10525     libltdl_cv_sys_dlopen_deplibs=yes
10526     ;;
10527   solaris*)
10528     libltdl_cv_sys_dlopen_deplibs=yes
10529     ;;
10530   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10531     libltdl_cv_sys_dlopen_deplibs=yes
10532     ;;
10533   esac
10534
10535 fi
10536 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10537 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10538 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10539
10540 cat >>confdefs.h <<\_ACEOF
10541 #define LTDL_DLOPEN_DEPLIBS 1
10542 _ACEOF
10543
10544 fi
10545
10546
10547 for ac_header in argz.h
10548 do
10549 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10551   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10554   echo $ECHO_N "(cached) $ECHO_C" >&6
10555 fi
10556 ac_res=`eval echo '${'$as_ac_Header'}'`
10557                { echo "$as_me:$LINENO: result: $ac_res" >&5
10558 echo "${ECHO_T}$ac_res" >&6; }
10559 else
10560   # Is the header compilable?
10561 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10562 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10563 cat >conftest.$ac_ext <<_ACEOF
10564 /* confdefs.h.  */
10565 _ACEOF
10566 cat confdefs.h >>conftest.$ac_ext
10567 cat >>conftest.$ac_ext <<_ACEOF
10568 /* end confdefs.h.  */
10569 $ac_includes_default
10570 #include <$ac_header>
10571 _ACEOF
10572 rm -f conftest.$ac_objext
10573 if { (ac_try="$ac_compile"
10574 case "(($ac_try" in
10575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10576   *) ac_try_echo=$ac_try;;
10577 esac
10578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10579   (eval "$ac_compile") 2>conftest.er1
10580   ac_status=$?
10581   grep -v '^ *+' conftest.er1 >conftest.err
10582   rm -f conftest.er1
10583   cat conftest.err >&5
10584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585   (exit $ac_status); } &&
10586          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10587   { (case "(($ac_try" in
10588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10589   *) ac_try_echo=$ac_try;;
10590 esac
10591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10592   (eval "$ac_try") 2>&5
10593   ac_status=$?
10594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595   (exit $ac_status); }; } &&
10596          { ac_try='test -s conftest.$ac_objext'
10597   { (case "(($ac_try" in
10598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10599   *) ac_try_echo=$ac_try;;
10600 esac
10601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10602   (eval "$ac_try") 2>&5
10603   ac_status=$?
10604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605   (exit $ac_status); }; }; then
10606   ac_header_compiler=yes
10607 else
10608   echo "$as_me: failed program was:" >&5
10609 sed 's/^/| /' conftest.$ac_ext >&5
10610
10611         ac_header_compiler=no
10612 fi
10613
10614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10615 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10616 echo "${ECHO_T}$ac_header_compiler" >&6; }
10617
10618 # Is the header present?
10619 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10620 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10621 cat >conftest.$ac_ext <<_ACEOF
10622 /* confdefs.h.  */
10623 _ACEOF
10624 cat confdefs.h >>conftest.$ac_ext
10625 cat >>conftest.$ac_ext <<_ACEOF
10626 /* end confdefs.h.  */
10627 #include <$ac_header>
10628 _ACEOF
10629 if { (ac_try="$ac_cpp conftest.$ac_ext"
10630 case "(($ac_try" in
10631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632   *) ac_try_echo=$ac_try;;
10633 esac
10634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10635   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10636   ac_status=$?
10637   grep -v '^ *+' conftest.er1 >conftest.err
10638   rm -f conftest.er1
10639   cat conftest.err >&5
10640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641   (exit $ac_status); } >/dev/null; then
10642   if test -s conftest.err; then
10643     ac_cpp_err=$ac_c_preproc_warn_flag
10644     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10645   else
10646     ac_cpp_err=
10647   fi
10648 else
10649   ac_cpp_err=yes
10650 fi
10651 if test -z "$ac_cpp_err"; then
10652   ac_header_preproc=yes
10653 else
10654   echo "$as_me: failed program was:" >&5
10655 sed 's/^/| /' conftest.$ac_ext >&5
10656
10657   ac_header_preproc=no
10658 fi
10659
10660 rm -f conftest.err conftest.$ac_ext
10661 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10662 echo "${ECHO_T}$ac_header_preproc" >&6; }
10663
10664 # So?  What about this header?
10665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10666   yes:no: )
10667     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10669     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10670 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10671     ac_header_preproc=yes
10672     ;;
10673   no:yes:* )
10674     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10676     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10677 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10678     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10679 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10680     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10681 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10682     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10684     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10685 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10686     ( cat <<\_ASBOX
10687 ## ------------------------------ ##
10688 ## Report this to bugs@yourdomain ##
10689 ## ------------------------------ ##
10690 _ASBOX
10691      ) | sed "s/^/$as_me: WARNING:     /" >&2
10692     ;;
10693 esac
10694 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10697   echo $ECHO_N "(cached) $ECHO_C" >&6
10698 else
10699   eval "$as_ac_Header=\$ac_header_preproc"
10700 fi
10701 ac_res=`eval echo '${'$as_ac_Header'}'`
10702                { echo "$as_me:$LINENO: result: $ac_res" >&5
10703 echo "${ECHO_T}$ac_res" >&6; }
10704
10705 fi
10706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10707   cat >>confdefs.h <<_ACEOF
10708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10709 _ACEOF
10710
10711 fi
10712
10713 done
10714
10715
10716 { echo "$as_me:$LINENO: checking for error_t" >&5
10717 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10718 if test "${ac_cv_type_error_t+set}" = set; then
10719   echo $ECHO_N "(cached) $ECHO_C" >&6
10720 else
10721   cat >conftest.$ac_ext <<_ACEOF
10722 /* confdefs.h.  */
10723 _ACEOF
10724 cat confdefs.h >>conftest.$ac_ext
10725 cat >>conftest.$ac_ext <<_ACEOF
10726 /* end confdefs.h.  */
10727 #if HAVE_ARGZ_H
10728 #  include <argz.h>
10729 #endif
10730
10731 typedef error_t ac__type_new_;
10732 int
10733 main ()
10734 {
10735 if ((ac__type_new_ *) 0)
10736   return 0;
10737 if (sizeof (ac__type_new_))
10738   return 0;
10739   ;
10740   return 0;
10741 }
10742 _ACEOF
10743 rm -f conftest.$ac_objext
10744 if { (ac_try="$ac_compile"
10745 case "(($ac_try" in
10746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10747   *) ac_try_echo=$ac_try;;
10748 esac
10749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10750   (eval "$ac_compile") 2>conftest.er1
10751   ac_status=$?
10752   grep -v '^ *+' conftest.er1 >conftest.err
10753   rm -f conftest.er1
10754   cat conftest.err >&5
10755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756   (exit $ac_status); } &&
10757          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10758   { (case "(($ac_try" in
10759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10760   *) ac_try_echo=$ac_try;;
10761 esac
10762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10763   (eval "$ac_try") 2>&5
10764   ac_status=$?
10765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766   (exit $ac_status); }; } &&
10767          { ac_try='test -s conftest.$ac_objext'
10768   { (case "(($ac_try" in
10769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10770   *) ac_try_echo=$ac_try;;
10771 esac
10772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10773   (eval "$ac_try") 2>&5
10774   ac_status=$?
10775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776   (exit $ac_status); }; }; then
10777   ac_cv_type_error_t=yes
10778 else
10779   echo "$as_me: failed program was:" >&5
10780 sed 's/^/| /' conftest.$ac_ext >&5
10781
10782         ac_cv_type_error_t=no
10783 fi
10784
10785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10786 fi
10787 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10788 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10789 if test $ac_cv_type_error_t = yes; then
10790
10791 cat >>confdefs.h <<_ACEOF
10792 #define HAVE_ERROR_T 1
10793 _ACEOF
10794
10795
10796 else
10797
10798 cat >>confdefs.h <<\_ACEOF
10799 #define error_t int
10800 _ACEOF
10801
10802 fi
10803
10804
10805
10806
10807
10808
10809
10810 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10811 do
10812 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10813 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10815 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10816   echo $ECHO_N "(cached) $ECHO_C" >&6
10817 else
10818   cat >conftest.$ac_ext <<_ACEOF
10819 /* confdefs.h.  */
10820 _ACEOF
10821 cat confdefs.h >>conftest.$ac_ext
10822 cat >>conftest.$ac_ext <<_ACEOF
10823 /* end confdefs.h.  */
10824 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10825    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10826 #define $ac_func innocuous_$ac_func
10827
10828 /* System header to define __stub macros and hopefully few prototypes,
10829     which can conflict with char $ac_func (); below.
10830     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10831     <limits.h> exists even on freestanding compilers.  */
10832
10833 #ifdef __STDC__
10834 # include <limits.h>
10835 #else
10836 # include <assert.h>
10837 #endif
10838
10839 #undef $ac_func
10840
10841 /* Override any GCC internal prototype to avoid an error.
10842    Use char because int might match the return type of a GCC
10843    builtin and then its argument prototype would still apply.  */
10844 #ifdef __cplusplus
10845 extern "C"
10846 #endif
10847 char $ac_func ();
10848 /* The GNU C library defines this for functions which it implements
10849     to always fail with ENOSYS.  Some functions are actually named
10850     something starting with __ and the normal name is an alias.  */
10851 #if defined __stub_$ac_func || defined __stub___$ac_func
10852 choke me
10853 #endif
10854
10855 int
10856 main ()
10857 {
10858 return $ac_func ();
10859   ;
10860   return 0;
10861 }
10862 _ACEOF
10863 rm -f conftest.$ac_objext conftest$ac_exeext
10864 if { (ac_try="$ac_link"
10865 case "(($ac_try" in
10866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867   *) ac_try_echo=$ac_try;;
10868 esac
10869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10870   (eval "$ac_link") 2>conftest.er1
10871   ac_status=$?
10872   grep -v '^ *+' conftest.er1 >conftest.err
10873   rm -f conftest.er1
10874   cat conftest.err >&5
10875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876   (exit $ac_status); } &&
10877          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10878   { (case "(($ac_try" in
10879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880   *) ac_try_echo=$ac_try;;
10881 esac
10882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10883   (eval "$ac_try") 2>&5
10884   ac_status=$?
10885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886   (exit $ac_status); }; } &&
10887          { ac_try='test -s conftest$ac_exeext'
10888   { (case "(($ac_try" in
10889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10890   *) ac_try_echo=$ac_try;;
10891 esac
10892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10893   (eval "$ac_try") 2>&5
10894   ac_status=$?
10895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896   (exit $ac_status); }; }; then
10897   eval "$as_ac_var=yes"
10898 else
10899   echo "$as_me: failed program was:" >&5
10900 sed 's/^/| /' conftest.$ac_ext >&5
10901
10902         eval "$as_ac_var=no"
10903 fi
10904
10905 rm -f core conftest.err conftest.$ac_objext \
10906       conftest$ac_exeext conftest.$ac_ext
10907 fi
10908 ac_res=`eval echo '${'$as_ac_var'}'`
10909                { echo "$as_me:$LINENO: result: $ac_res" >&5
10910 echo "${ECHO_T}$ac_res" >&6; }
10911 if test `eval echo '${'$as_ac_var'}'` = yes; then
10912   cat >>confdefs.h <<_ACEOF
10913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10914 _ACEOF
10915
10916 fi
10917 done
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10947                   stdio.h unistd.h
10948 do
10949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10951   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10954   echo $ECHO_N "(cached) $ECHO_C" >&6
10955 fi
10956 ac_res=`eval echo '${'$as_ac_Header'}'`
10957                { echo "$as_me:$LINENO: result: $ac_res" >&5
10958 echo "${ECHO_T}$ac_res" >&6; }
10959 else
10960   # Is the header compilable?
10961 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10962 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10963 cat >conftest.$ac_ext <<_ACEOF
10964 /* confdefs.h.  */
10965 _ACEOF
10966 cat confdefs.h >>conftest.$ac_ext
10967 cat >>conftest.$ac_ext <<_ACEOF
10968 /* end confdefs.h.  */
10969 $ac_includes_default
10970 #include <$ac_header>
10971 _ACEOF
10972 rm -f conftest.$ac_objext
10973 if { (ac_try="$ac_compile"
10974 case "(($ac_try" in
10975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10976   *) ac_try_echo=$ac_try;;
10977 esac
10978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10979   (eval "$ac_compile") 2>conftest.er1
10980   ac_status=$?
10981   grep -v '^ *+' conftest.er1 >conftest.err
10982   rm -f conftest.er1
10983   cat conftest.err >&5
10984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985   (exit $ac_status); } &&
10986          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10987   { (case "(($ac_try" in
10988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989   *) ac_try_echo=$ac_try;;
10990 esac
10991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992   (eval "$ac_try") 2>&5
10993   ac_status=$?
10994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995   (exit $ac_status); }; } &&
10996          { ac_try='test -s conftest.$ac_objext'
10997   { (case "(($ac_try" in
10998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10999   *) ac_try_echo=$ac_try;;
11000 esac
11001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11002   (eval "$ac_try") 2>&5
11003   ac_status=$?
11004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005   (exit $ac_status); }; }; then
11006   ac_header_compiler=yes
11007 else
11008   echo "$as_me: failed program was:" >&5
11009 sed 's/^/| /' conftest.$ac_ext >&5
11010
11011         ac_header_compiler=no
11012 fi
11013
11014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11015 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11016 echo "${ECHO_T}$ac_header_compiler" >&6; }
11017
11018 # Is the header present?
11019 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11020 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11021 cat >conftest.$ac_ext <<_ACEOF
11022 /* confdefs.h.  */
11023 _ACEOF
11024 cat confdefs.h >>conftest.$ac_ext
11025 cat >>conftest.$ac_ext <<_ACEOF
11026 /* end confdefs.h.  */
11027 #include <$ac_header>
11028 _ACEOF
11029 if { (ac_try="$ac_cpp conftest.$ac_ext"
11030 case "(($ac_try" in
11031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032   *) ac_try_echo=$ac_try;;
11033 esac
11034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11036   ac_status=$?
11037   grep -v '^ *+' conftest.er1 >conftest.err
11038   rm -f conftest.er1
11039   cat conftest.err >&5
11040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041   (exit $ac_status); } >/dev/null; then
11042   if test -s conftest.err; then
11043     ac_cpp_err=$ac_c_preproc_warn_flag
11044     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11045   else
11046     ac_cpp_err=
11047   fi
11048 else
11049   ac_cpp_err=yes
11050 fi
11051 if test -z "$ac_cpp_err"; then
11052   ac_header_preproc=yes
11053 else
11054   echo "$as_me: failed program was:" >&5
11055 sed 's/^/| /' conftest.$ac_ext >&5
11056
11057   ac_header_preproc=no
11058 fi
11059
11060 rm -f conftest.err conftest.$ac_ext
11061 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11062 echo "${ECHO_T}$ac_header_preproc" >&6; }
11063
11064 # So?  What about this header?
11065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11066   yes:no: )
11067     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11068 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11069     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11070 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11071     ac_header_preproc=yes
11072     ;;
11073   no:yes:* )
11074     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11075 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11076     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11077 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11078     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11079 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11080     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11081 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11082     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11083 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11084     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11085 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11086     ( cat <<\_ASBOX
11087 ## ------------------------------ ##
11088 ## Report this to bugs@yourdomain ##
11089 ## ------------------------------ ##
11090 _ASBOX
11091      ) | sed "s/^/$as_me: WARNING:     /" >&2
11092     ;;
11093 esac
11094 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11097   echo $ECHO_N "(cached) $ECHO_C" >&6
11098 else
11099   eval "$as_ac_Header=\$ac_header_preproc"
11100 fi
11101 ac_res=`eval echo '${'$as_ac_Header'}'`
11102                { echo "$as_me:$LINENO: result: $ac_res" >&5
11103 echo "${ECHO_T}$ac_res" >&6; }
11104
11105 fi
11106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11107   cat >>confdefs.h <<_ACEOF
11108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11109 _ACEOF
11110
11111 fi
11112
11113 done
11114
11115
11116
11117
11118
11119 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11120 do
11121 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11123   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11126   echo $ECHO_N "(cached) $ECHO_C" >&6
11127 fi
11128 ac_res=`eval echo '${'$as_ac_Header'}'`
11129                { echo "$as_me:$LINENO: result: $ac_res" >&5
11130 echo "${ECHO_T}$ac_res" >&6; }
11131 else
11132   # Is the header compilable?
11133 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11134 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11135 cat >conftest.$ac_ext <<_ACEOF
11136 /* confdefs.h.  */
11137 _ACEOF
11138 cat confdefs.h >>conftest.$ac_ext
11139 cat >>conftest.$ac_ext <<_ACEOF
11140 /* end confdefs.h.  */
11141 $ac_includes_default
11142 #include <$ac_header>
11143 _ACEOF
11144 rm -f conftest.$ac_objext
11145 if { (ac_try="$ac_compile"
11146 case "(($ac_try" in
11147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11148   *) ac_try_echo=$ac_try;;
11149 esac
11150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11151   (eval "$ac_compile") 2>conftest.er1
11152   ac_status=$?
11153   grep -v '^ *+' conftest.er1 >conftest.err
11154   rm -f conftest.er1
11155   cat conftest.err >&5
11156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157   (exit $ac_status); } &&
11158          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11159   { (case "(($ac_try" in
11160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11161   *) ac_try_echo=$ac_try;;
11162 esac
11163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11164   (eval "$ac_try") 2>&5
11165   ac_status=$?
11166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167   (exit $ac_status); }; } &&
11168          { ac_try='test -s conftest.$ac_objext'
11169   { (case "(($ac_try" in
11170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11171   *) ac_try_echo=$ac_try;;
11172 esac
11173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11174   (eval "$ac_try") 2>&5
11175   ac_status=$?
11176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177   (exit $ac_status); }; }; then
11178   ac_header_compiler=yes
11179 else
11180   echo "$as_me: failed program was:" >&5
11181 sed 's/^/| /' conftest.$ac_ext >&5
11182
11183         ac_header_compiler=no
11184 fi
11185
11186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11187 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11188 echo "${ECHO_T}$ac_header_compiler" >&6; }
11189
11190 # Is the header present?
11191 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11192 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11193 cat >conftest.$ac_ext <<_ACEOF
11194 /* confdefs.h.  */
11195 _ACEOF
11196 cat confdefs.h >>conftest.$ac_ext
11197 cat >>conftest.$ac_ext <<_ACEOF
11198 /* end confdefs.h.  */
11199 #include <$ac_header>
11200 _ACEOF
11201 if { (ac_try="$ac_cpp conftest.$ac_ext"
11202 case "(($ac_try" in
11203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11204   *) ac_try_echo=$ac_try;;
11205 esac
11206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11207   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11208   ac_status=$?
11209   grep -v '^ *+' conftest.er1 >conftest.err
11210   rm -f conftest.er1
11211   cat conftest.err >&5
11212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213   (exit $ac_status); } >/dev/null; then
11214   if test -s conftest.err; then
11215     ac_cpp_err=$ac_c_preproc_warn_flag
11216     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11217   else
11218     ac_cpp_err=
11219   fi
11220 else
11221   ac_cpp_err=yes
11222 fi
11223 if test -z "$ac_cpp_err"; then
11224   ac_header_preproc=yes
11225 else
11226   echo "$as_me: failed program was:" >&5
11227 sed 's/^/| /' conftest.$ac_ext >&5
11228
11229   ac_header_preproc=no
11230 fi
11231
11232 rm -f conftest.err conftest.$ac_ext
11233 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11234 echo "${ECHO_T}$ac_header_preproc" >&6; }
11235
11236 # So?  What about this header?
11237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11238   yes:no: )
11239     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11241     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11242 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11243     ac_header_preproc=yes
11244     ;;
11245   no:yes:* )
11246     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11248     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11249 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11250     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11251 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11252     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11253 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11254     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11256     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11257 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11258     ( cat <<\_ASBOX
11259 ## ------------------------------ ##
11260 ## Report this to bugs@yourdomain ##
11261 ## ------------------------------ ##
11262 _ASBOX
11263      ) | sed "s/^/$as_me: WARNING:     /" >&2
11264     ;;
11265 esac
11266 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11269   echo $ECHO_N "(cached) $ECHO_C" >&6
11270 else
11271   eval "$as_ac_Header=\$ac_header_preproc"
11272 fi
11273 ac_res=`eval echo '${'$as_ac_Header'}'`
11274                { echo "$as_me:$LINENO: result: $ac_res" >&5
11275 echo "${ECHO_T}$ac_res" >&6; }
11276
11277 fi
11278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11279   cat >>confdefs.h <<_ACEOF
11280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11281 _ACEOF
11282
11283 fi
11284
11285 done
11286
11287
11288
11289 for ac_header in string.h strings.h
11290 do
11291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11293   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11296   echo $ECHO_N "(cached) $ECHO_C" >&6
11297 fi
11298 ac_res=`eval echo '${'$as_ac_Header'}'`
11299                { echo "$as_me:$LINENO: result: $ac_res" >&5
11300 echo "${ECHO_T}$ac_res" >&6; }
11301 else
11302   # Is the header compilable?
11303 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11304 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11305 cat >conftest.$ac_ext <<_ACEOF
11306 /* confdefs.h.  */
11307 _ACEOF
11308 cat confdefs.h >>conftest.$ac_ext
11309 cat >>conftest.$ac_ext <<_ACEOF
11310 /* end confdefs.h.  */
11311 $ac_includes_default
11312 #include <$ac_header>
11313 _ACEOF
11314 rm -f conftest.$ac_objext
11315 if { (ac_try="$ac_compile"
11316 case "(($ac_try" in
11317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11318   *) ac_try_echo=$ac_try;;
11319 esac
11320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11321   (eval "$ac_compile") 2>conftest.er1
11322   ac_status=$?
11323   grep -v '^ *+' conftest.er1 >conftest.err
11324   rm -f conftest.er1
11325   cat conftest.err >&5
11326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327   (exit $ac_status); } &&
11328          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11329   { (case "(($ac_try" in
11330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331   *) ac_try_echo=$ac_try;;
11332 esac
11333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334   (eval "$ac_try") 2>&5
11335   ac_status=$?
11336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337   (exit $ac_status); }; } &&
11338          { ac_try='test -s conftest.$ac_objext'
11339   { (case "(($ac_try" in
11340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11341   *) ac_try_echo=$ac_try;;
11342 esac
11343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11344   (eval "$ac_try") 2>&5
11345   ac_status=$?
11346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347   (exit $ac_status); }; }; then
11348   ac_header_compiler=yes
11349 else
11350   echo "$as_me: failed program was:" >&5
11351 sed 's/^/| /' conftest.$ac_ext >&5
11352
11353         ac_header_compiler=no
11354 fi
11355
11356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11357 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11358 echo "${ECHO_T}$ac_header_compiler" >&6; }
11359
11360 # Is the header present?
11361 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11362 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11363 cat >conftest.$ac_ext <<_ACEOF
11364 /* confdefs.h.  */
11365 _ACEOF
11366 cat confdefs.h >>conftest.$ac_ext
11367 cat >>conftest.$ac_ext <<_ACEOF
11368 /* end confdefs.h.  */
11369 #include <$ac_header>
11370 _ACEOF
11371 if { (ac_try="$ac_cpp conftest.$ac_ext"
11372 case "(($ac_try" in
11373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11374   *) ac_try_echo=$ac_try;;
11375 esac
11376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11377   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11378   ac_status=$?
11379   grep -v '^ *+' conftest.er1 >conftest.err
11380   rm -f conftest.er1
11381   cat conftest.err >&5
11382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383   (exit $ac_status); } >/dev/null; then
11384   if test -s conftest.err; then
11385     ac_cpp_err=$ac_c_preproc_warn_flag
11386     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11387   else
11388     ac_cpp_err=
11389   fi
11390 else
11391   ac_cpp_err=yes
11392 fi
11393 if test -z "$ac_cpp_err"; then
11394   ac_header_preproc=yes
11395 else
11396   echo "$as_me: failed program was:" >&5
11397 sed 's/^/| /' conftest.$ac_ext >&5
11398
11399   ac_header_preproc=no
11400 fi
11401
11402 rm -f conftest.err conftest.$ac_ext
11403 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11404 echo "${ECHO_T}$ac_header_preproc" >&6; }
11405
11406 # So?  What about this header?
11407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11408   yes:no: )
11409     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11410 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11411     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11412 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11413     ac_header_preproc=yes
11414     ;;
11415   no:yes:* )
11416     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11417 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11418     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11419 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11420     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11421 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11422     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11423 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11424     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11425 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11426     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11427 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11428     ( cat <<\_ASBOX
11429 ## ------------------------------ ##
11430 ## Report this to bugs@yourdomain ##
11431 ## ------------------------------ ##
11432 _ASBOX
11433      ) | sed "s/^/$as_me: WARNING:     /" >&2
11434     ;;
11435 esac
11436 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11439   echo $ECHO_N "(cached) $ECHO_C" >&6
11440 else
11441   eval "$as_ac_Header=\$ac_header_preproc"
11442 fi
11443 ac_res=`eval echo '${'$as_ac_Header'}'`
11444                { echo "$as_me:$LINENO: result: $ac_res" >&5
11445 echo "${ECHO_T}$ac_res" >&6; }
11446
11447 fi
11448 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11449   cat >>confdefs.h <<_ACEOF
11450 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11451 _ACEOF
11452  break
11453 fi
11454
11455 done
11456
11457
11458
11459
11460 for ac_func in strchr index
11461 do
11462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11463 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11465 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11466   echo $ECHO_N "(cached) $ECHO_C" >&6
11467 else
11468   cat >conftest.$ac_ext <<_ACEOF
11469 /* confdefs.h.  */
11470 _ACEOF
11471 cat confdefs.h >>conftest.$ac_ext
11472 cat >>conftest.$ac_ext <<_ACEOF
11473 /* end confdefs.h.  */
11474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11475    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11476 #define $ac_func innocuous_$ac_func
11477
11478 /* System header to define __stub macros and hopefully few prototypes,
11479     which can conflict with char $ac_func (); below.
11480     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11481     <limits.h> exists even on freestanding compilers.  */
11482
11483 #ifdef __STDC__
11484 # include <limits.h>
11485 #else
11486 # include <assert.h>
11487 #endif
11488
11489 #undef $ac_func
11490
11491 /* Override any GCC internal prototype to avoid an error.
11492    Use char because int might match the return type of a GCC
11493    builtin and then its argument prototype would still apply.  */
11494 #ifdef __cplusplus
11495 extern "C"
11496 #endif
11497 char $ac_func ();
11498 /* The GNU C library defines this for functions which it implements
11499     to always fail with ENOSYS.  Some functions are actually named
11500     something starting with __ and the normal name is an alias.  */
11501 #if defined __stub_$ac_func || defined __stub___$ac_func
11502 choke me
11503 #endif
11504
11505 int
11506 main ()
11507 {
11508 return $ac_func ();
11509   ;
11510   return 0;
11511 }
11512 _ACEOF
11513 rm -f conftest.$ac_objext conftest$ac_exeext
11514 if { (ac_try="$ac_link"
11515 case "(($ac_try" in
11516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11517   *) ac_try_echo=$ac_try;;
11518 esac
11519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11520   (eval "$ac_link") 2>conftest.er1
11521   ac_status=$?
11522   grep -v '^ *+' conftest.er1 >conftest.err
11523   rm -f conftest.er1
11524   cat conftest.err >&5
11525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526   (exit $ac_status); } &&
11527          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11528   { (case "(($ac_try" in
11529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11530   *) ac_try_echo=$ac_try;;
11531 esac
11532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11533   (eval "$ac_try") 2>&5
11534   ac_status=$?
11535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536   (exit $ac_status); }; } &&
11537          { ac_try='test -s conftest$ac_exeext'
11538   { (case "(($ac_try" in
11539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11540   *) ac_try_echo=$ac_try;;
11541 esac
11542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11543   (eval "$ac_try") 2>&5
11544   ac_status=$?
11545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546   (exit $ac_status); }; }; then
11547   eval "$as_ac_var=yes"
11548 else
11549   echo "$as_me: failed program was:" >&5
11550 sed 's/^/| /' conftest.$ac_ext >&5
11551
11552         eval "$as_ac_var=no"
11553 fi
11554
11555 rm -f core conftest.err conftest.$ac_objext \
11556       conftest$ac_exeext conftest.$ac_ext
11557 fi
11558 ac_res=`eval echo '${'$as_ac_var'}'`
11559                { echo "$as_me:$LINENO: result: $ac_res" >&5
11560 echo "${ECHO_T}$ac_res" >&6; }
11561 if test `eval echo '${'$as_ac_var'}'` = yes; then
11562   cat >>confdefs.h <<_ACEOF
11563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11564 _ACEOF
11565  break
11566 fi
11567 done
11568
11569
11570
11571 for ac_func in strrchr rindex
11572 do
11573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11574 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11576 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11577   echo $ECHO_N "(cached) $ECHO_C" >&6
11578 else
11579   cat >conftest.$ac_ext <<_ACEOF
11580 /* confdefs.h.  */
11581 _ACEOF
11582 cat confdefs.h >>conftest.$ac_ext
11583 cat >>conftest.$ac_ext <<_ACEOF
11584 /* end confdefs.h.  */
11585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11586    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11587 #define $ac_func innocuous_$ac_func
11588
11589 /* System header to define __stub macros and hopefully few prototypes,
11590     which can conflict with char $ac_func (); below.
11591     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11592     <limits.h> exists even on freestanding compilers.  */
11593
11594 #ifdef __STDC__
11595 # include <limits.h>
11596 #else
11597 # include <assert.h>
11598 #endif
11599
11600 #undef $ac_func
11601
11602 /* Override any GCC internal prototype to avoid an error.
11603    Use char because int might match the return type of a GCC
11604    builtin and then its argument prototype would still apply.  */
11605 #ifdef __cplusplus
11606 extern "C"
11607 #endif
11608 char $ac_func ();
11609 /* The GNU C library defines this for functions which it implements
11610     to always fail with ENOSYS.  Some functions are actually named
11611     something starting with __ and the normal name is an alias.  */
11612 #if defined __stub_$ac_func || defined __stub___$ac_func
11613 choke me
11614 #endif
11615
11616 int
11617 main ()
11618 {
11619 return $ac_func ();
11620   ;
11621   return 0;
11622 }
11623 _ACEOF
11624 rm -f conftest.$ac_objext conftest$ac_exeext
11625 if { (ac_try="$ac_link"
11626 case "(($ac_try" in
11627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628   *) ac_try_echo=$ac_try;;
11629 esac
11630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11631   (eval "$ac_link") 2>conftest.er1
11632   ac_status=$?
11633   grep -v '^ *+' conftest.er1 >conftest.err
11634   rm -f conftest.er1
11635   cat conftest.err >&5
11636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637   (exit $ac_status); } &&
11638          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11639   { (case "(($ac_try" in
11640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641   *) ac_try_echo=$ac_try;;
11642 esac
11643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11644   (eval "$ac_try") 2>&5
11645   ac_status=$?
11646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647   (exit $ac_status); }; } &&
11648          { ac_try='test -s conftest$ac_exeext'
11649   { (case "(($ac_try" in
11650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651   *) ac_try_echo=$ac_try;;
11652 esac
11653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11654   (eval "$ac_try") 2>&5
11655   ac_status=$?
11656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657   (exit $ac_status); }; }; then
11658   eval "$as_ac_var=yes"
11659 else
11660   echo "$as_me: failed program was:" >&5
11661 sed 's/^/| /' conftest.$ac_ext >&5
11662
11663         eval "$as_ac_var=no"
11664 fi
11665
11666 rm -f core conftest.err conftest.$ac_objext \
11667       conftest$ac_exeext conftest.$ac_ext
11668 fi
11669 ac_res=`eval echo '${'$as_ac_var'}'`
11670                { echo "$as_me:$LINENO: result: $ac_res" >&5
11671 echo "${ECHO_T}$ac_res" >&6; }
11672 if test `eval echo '${'$as_ac_var'}'` = yes; then
11673   cat >>confdefs.h <<_ACEOF
11674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11675 _ACEOF
11676  break
11677 fi
11678 done
11679
11680
11681
11682 for ac_func in memcpy bcopy
11683 do
11684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11685 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11687 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11688   echo $ECHO_N "(cached) $ECHO_C" >&6
11689 else
11690   cat >conftest.$ac_ext <<_ACEOF
11691 /* confdefs.h.  */
11692 _ACEOF
11693 cat confdefs.h >>conftest.$ac_ext
11694 cat >>conftest.$ac_ext <<_ACEOF
11695 /* end confdefs.h.  */
11696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11697    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11698 #define $ac_func innocuous_$ac_func
11699
11700 /* System header to define __stub macros and hopefully few prototypes,
11701     which can conflict with char $ac_func (); below.
11702     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11703     <limits.h> exists even on freestanding compilers.  */
11704
11705 #ifdef __STDC__
11706 # include <limits.h>
11707 #else
11708 # include <assert.h>
11709 #endif
11710
11711 #undef $ac_func
11712
11713 /* Override any GCC internal prototype to avoid an error.
11714    Use char because int might match the return type of a GCC
11715    builtin and then its argument prototype would still apply.  */
11716 #ifdef __cplusplus
11717 extern "C"
11718 #endif
11719 char $ac_func ();
11720 /* The GNU C library defines this for functions which it implements
11721     to always fail with ENOSYS.  Some functions are actually named
11722     something starting with __ and the normal name is an alias.  */
11723 #if defined __stub_$ac_func || defined __stub___$ac_func
11724 choke me
11725 #endif
11726
11727 int
11728 main ()
11729 {
11730 return $ac_func ();
11731   ;
11732   return 0;
11733 }
11734 _ACEOF
11735 rm -f conftest.$ac_objext conftest$ac_exeext
11736 if { (ac_try="$ac_link"
11737 case "(($ac_try" in
11738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739   *) ac_try_echo=$ac_try;;
11740 esac
11741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11742   (eval "$ac_link") 2>conftest.er1
11743   ac_status=$?
11744   grep -v '^ *+' conftest.er1 >conftest.err
11745   rm -f conftest.er1
11746   cat conftest.err >&5
11747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748   (exit $ac_status); } &&
11749          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11750   { (case "(($ac_try" in
11751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11752   *) ac_try_echo=$ac_try;;
11753 esac
11754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11755   (eval "$ac_try") 2>&5
11756   ac_status=$?
11757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758   (exit $ac_status); }; } &&
11759          { ac_try='test -s conftest$ac_exeext'
11760   { (case "(($ac_try" in
11761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11762   *) ac_try_echo=$ac_try;;
11763 esac
11764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11765   (eval "$ac_try") 2>&5
11766   ac_status=$?
11767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768   (exit $ac_status); }; }; then
11769   eval "$as_ac_var=yes"
11770 else
11771   echo "$as_me: failed program was:" >&5
11772 sed 's/^/| /' conftest.$ac_ext >&5
11773
11774         eval "$as_ac_var=no"
11775 fi
11776
11777 rm -f core conftest.err conftest.$ac_objext \
11778       conftest$ac_exeext conftest.$ac_ext
11779 fi
11780 ac_res=`eval echo '${'$as_ac_var'}'`
11781                { echo "$as_me:$LINENO: result: $ac_res" >&5
11782 echo "${ECHO_T}$ac_res" >&6; }
11783 if test `eval echo '${'$as_ac_var'}'` = yes; then
11784   cat >>confdefs.h <<_ACEOF
11785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11786 _ACEOF
11787  break
11788 fi
11789 done
11790
11791
11792
11793 for ac_func in memmove strcmp
11794 do
11795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11796 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11798 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11799   echo $ECHO_N "(cached) $ECHO_C" >&6
11800 else
11801   cat >conftest.$ac_ext <<_ACEOF
11802 /* confdefs.h.  */
11803 _ACEOF
11804 cat confdefs.h >>conftest.$ac_ext
11805 cat >>conftest.$ac_ext <<_ACEOF
11806 /* end confdefs.h.  */
11807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11808    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11809 #define $ac_func innocuous_$ac_func
11810
11811 /* System header to define __stub macros and hopefully few prototypes,
11812     which can conflict with char $ac_func (); below.
11813     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11814     <limits.h> exists even on freestanding compilers.  */
11815
11816 #ifdef __STDC__
11817 # include <limits.h>
11818 #else
11819 # include <assert.h>
11820 #endif
11821
11822 #undef $ac_func
11823
11824 /* Override any GCC internal prototype to avoid an error.
11825    Use char because int might match the return type of a GCC
11826    builtin and then its argument prototype would still apply.  */
11827 #ifdef __cplusplus
11828 extern "C"
11829 #endif
11830 char $ac_func ();
11831 /* The GNU C library defines this for functions which it implements
11832     to always fail with ENOSYS.  Some functions are actually named
11833     something starting with __ and the normal name is an alias.  */
11834 #if defined __stub_$ac_func || defined __stub___$ac_func
11835 choke me
11836 #endif
11837
11838 int
11839 main ()
11840 {
11841 return $ac_func ();
11842   ;
11843   return 0;
11844 }
11845 _ACEOF
11846 rm -f conftest.$ac_objext conftest$ac_exeext
11847 if { (ac_try="$ac_link"
11848 case "(($ac_try" in
11849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850   *) ac_try_echo=$ac_try;;
11851 esac
11852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853   (eval "$ac_link") 2>conftest.er1
11854   ac_status=$?
11855   grep -v '^ *+' conftest.er1 >conftest.err
11856   rm -f conftest.er1
11857   cat conftest.err >&5
11858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859   (exit $ac_status); } &&
11860          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11861   { (case "(($ac_try" in
11862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863   *) ac_try_echo=$ac_try;;
11864 esac
11865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11866   (eval "$ac_try") 2>&5
11867   ac_status=$?
11868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869   (exit $ac_status); }; } &&
11870          { ac_try='test -s conftest$ac_exeext'
11871   { (case "(($ac_try" in
11872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11873   *) ac_try_echo=$ac_try;;
11874 esac
11875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11876   (eval "$ac_try") 2>&5
11877   ac_status=$?
11878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879   (exit $ac_status); }; }; then
11880   eval "$as_ac_var=yes"
11881 else
11882   echo "$as_me: failed program was:" >&5
11883 sed 's/^/| /' conftest.$ac_ext >&5
11884
11885         eval "$as_ac_var=no"
11886 fi
11887
11888 rm -f core conftest.err conftest.$ac_objext \
11889       conftest$ac_exeext conftest.$ac_ext
11890 fi
11891 ac_res=`eval echo '${'$as_ac_var'}'`
11892                { echo "$as_me:$LINENO: result: $ac_res" >&5
11893 echo "${ECHO_T}$ac_res" >&6; }
11894 if test `eval echo '${'$as_ac_var'}'` = yes; then
11895   cat >>confdefs.h <<_ACEOF
11896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11897 _ACEOF
11898
11899 fi
11900 done
11901
11902
11903
11904
11905 for ac_func in closedir opendir readdir
11906 do
11907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11908 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11910 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11911   echo $ECHO_N "(cached) $ECHO_C" >&6
11912 else
11913   cat >conftest.$ac_ext <<_ACEOF
11914 /* confdefs.h.  */
11915 _ACEOF
11916 cat confdefs.h >>conftest.$ac_ext
11917 cat >>conftest.$ac_ext <<_ACEOF
11918 /* end confdefs.h.  */
11919 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11920    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11921 #define $ac_func innocuous_$ac_func
11922
11923 /* System header to define __stub macros and hopefully few prototypes,
11924     which can conflict with char $ac_func (); below.
11925     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11926     <limits.h> exists even on freestanding compilers.  */
11927
11928 #ifdef __STDC__
11929 # include <limits.h>
11930 #else
11931 # include <assert.h>
11932 #endif
11933
11934 #undef $ac_func
11935
11936 /* Override any GCC internal prototype to avoid an error.
11937    Use char because int might match the return type of a GCC
11938    builtin and then its argument prototype would still apply.  */
11939 #ifdef __cplusplus
11940 extern "C"
11941 #endif
11942 char $ac_func ();
11943 /* The GNU C library defines this for functions which it implements
11944     to always fail with ENOSYS.  Some functions are actually named
11945     something starting with __ and the normal name is an alias.  */
11946 #if defined __stub_$ac_func || defined __stub___$ac_func
11947 choke me
11948 #endif
11949
11950 int
11951 main ()
11952 {
11953 return $ac_func ();
11954   ;
11955   return 0;
11956 }
11957 _ACEOF
11958 rm -f conftest.$ac_objext conftest$ac_exeext
11959 if { (ac_try="$ac_link"
11960 case "(($ac_try" in
11961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11962   *) ac_try_echo=$ac_try;;
11963 esac
11964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11965   (eval "$ac_link") 2>conftest.er1
11966   ac_status=$?
11967   grep -v '^ *+' conftest.er1 >conftest.err
11968   rm -f conftest.er1
11969   cat conftest.err >&5
11970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971   (exit $ac_status); } &&
11972          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11973   { (case "(($ac_try" in
11974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11975   *) ac_try_echo=$ac_try;;
11976 esac
11977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11978   (eval "$ac_try") 2>&5
11979   ac_status=$?
11980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981   (exit $ac_status); }; } &&
11982          { ac_try='test -s conftest$ac_exeext'
11983   { (case "(($ac_try" in
11984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11985   *) ac_try_echo=$ac_try;;
11986 esac
11987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11988   (eval "$ac_try") 2>&5
11989   ac_status=$?
11990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991   (exit $ac_status); }; }; then
11992   eval "$as_ac_var=yes"
11993 else
11994   echo "$as_me: failed program was:" >&5
11995 sed 's/^/| /' conftest.$ac_ext >&5
11996
11997         eval "$as_ac_var=no"
11998 fi
11999
12000 rm -f core conftest.err conftest.$ac_objext \
12001       conftest$ac_exeext conftest.$ac_ext
12002 fi
12003 ac_res=`eval echo '${'$as_ac_var'}'`
12004                { echo "$as_me:$LINENO: result: $ac_res" >&5
12005 echo "${ECHO_T}$ac_res" >&6; }
12006 if test `eval echo '${'$as_ac_var'}'` = yes; then
12007   cat >>confdefs.h <<_ACEOF
12008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12009 _ACEOF
12010
12011 fi
12012 done
12013
12014
12015
12016 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12017 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12018
12019 ICC=no
12020 IXX=no
12021 case $CC in
12022   icc*|icpc*)
12023     ICC=yes
12024     IXX=yes
12025     ;;
12026    *)
12027     ;;
12028 esac
12029
12030 if test "$GCC" != "yes" && test "$ICC" != "yes"
12031 then
12032   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12033 echo "$as_me: error: gcc|icc required but not found" >&2;}
12034    { (exit 1); exit 1; }; }
12035 fi
12036
12037 if test "$GXX" != "yes" && test "$IXX" != "yes"
12038 then
12039   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12040 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12041    { (exit 1); exit 1; }; }
12042 fi
12043
12044 if test "$GCC" = "yes"
12045 then
12046   cat >conftest.$ac_ext <<_ACEOF
12047 #if !defined(__GNUC__) || __GNUC__ < 3
12048 #error Unsupported GCC version
12049 #endif
12050
12051 _ACEOF
12052 rm -f conftest.$ac_objext
12053 if { (ac_try="$ac_compile"
12054 case "(($ac_try" in
12055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056   *) ac_try_echo=$ac_try;;
12057 esac
12058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059   (eval "$ac_compile") 2>conftest.er1
12060   ac_status=$?
12061   grep -v '^ *+' conftest.er1 >conftest.err
12062   rm -f conftest.er1
12063   cat conftest.err >&5
12064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065   (exit $ac_status); } &&
12066          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12067   { (case "(($ac_try" in
12068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069   *) ac_try_echo=$ac_try;;
12070 esac
12071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12072   (eval "$ac_try") 2>&5
12073   ac_status=$?
12074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075   (exit $ac_status); }; } &&
12076          { ac_try='test -s conftest.$ac_objext'
12077   { (case "(($ac_try" in
12078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12079   *) ac_try_echo=$ac_try;;
12080 esac
12081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12082   (eval "$ac_try") 2>&5
12083   ac_status=$?
12084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085   (exit $ac_status); }; }; then
12086   :
12087 else
12088   echo "$as_me: failed program was:" >&5
12089 sed 's/^/| /' conftest.$ac_ext >&5
12090
12091         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12092 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12093    { (exit 1); exit 1; }; }
12094 fi
12095
12096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12097 fi
12098
12099 if test -z "$llvm_cv_gnu_make_command"
12100 then
12101   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12102 echo "$as_me: error: GNU Make required but not found" >&2;}
12103    { (exit 1); exit 1; }; }
12104 fi
12105
12106 { echo "$as_me:$LINENO: result: ok" >&5
12107 echo "${ECHO_T}ok" >&6; }
12108
12109 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12110 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12111 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12112
12113 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12114
12115 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12116
12117 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12118 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12119
12120
12121
12122 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12123 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12124 if test "${ac_cv_lib_m_sin+set}" = set; then
12125   echo $ECHO_N "(cached) $ECHO_C" >&6
12126 else
12127   ac_check_lib_save_LIBS=$LIBS
12128 LIBS="-lm  $LIBS"
12129 cat >conftest.$ac_ext <<_ACEOF
12130 /* confdefs.h.  */
12131 _ACEOF
12132 cat confdefs.h >>conftest.$ac_ext
12133 cat >>conftest.$ac_ext <<_ACEOF
12134 /* end confdefs.h.  */
12135
12136 /* Override any GCC internal prototype to avoid an error.
12137    Use char because int might match the return type of a GCC
12138    builtin and then its argument prototype would still apply.  */
12139 #ifdef __cplusplus
12140 extern "C"
12141 #endif
12142 char sin ();
12143 int
12144 main ()
12145 {
12146 return sin ();
12147   ;
12148   return 0;
12149 }
12150 _ACEOF
12151 rm -f conftest.$ac_objext conftest$ac_exeext
12152 if { (ac_try="$ac_link"
12153 case "(($ac_try" in
12154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12155   *) ac_try_echo=$ac_try;;
12156 esac
12157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12158   (eval "$ac_link") 2>conftest.er1
12159   ac_status=$?
12160   grep -v '^ *+' conftest.er1 >conftest.err
12161   rm -f conftest.er1
12162   cat conftest.err >&5
12163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164   (exit $ac_status); } &&
12165          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12166   { (case "(($ac_try" in
12167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168   *) ac_try_echo=$ac_try;;
12169 esac
12170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171   (eval "$ac_try") 2>&5
12172   ac_status=$?
12173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174   (exit $ac_status); }; } &&
12175          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12185   ac_cv_lib_m_sin=yes
12186 else
12187   echo "$as_me: failed program was:" >&5
12188 sed 's/^/| /' conftest.$ac_ext >&5
12189
12190         ac_cv_lib_m_sin=no
12191 fi
12192
12193 rm -f core conftest.err conftest.$ac_objext \
12194       conftest$ac_exeext conftest.$ac_ext
12195 LIBS=$ac_check_lib_save_LIBS
12196 fi
12197 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12198 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12199 if test $ac_cv_lib_m_sin = yes; then
12200   cat >>confdefs.h <<_ACEOF
12201 #define HAVE_LIBM 1
12202 _ACEOF
12203
12204   LIBS="-lm $LIBS"
12205
12206 fi
12207
12208 if test "$llvm_cv_os_type" = "MingW" ; then
12209
12210 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12211 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12212 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12213   echo $ECHO_N "(cached) $ECHO_C" >&6
12214 else
12215   ac_check_lib_save_LIBS=$LIBS
12216 LIBS="-limagehlp  $LIBS"
12217 cat >conftest.$ac_ext <<_ACEOF
12218 /* confdefs.h.  */
12219 _ACEOF
12220 cat confdefs.h >>conftest.$ac_ext
12221 cat >>conftest.$ac_ext <<_ACEOF
12222 /* end confdefs.h.  */
12223
12224
12225 int
12226 main ()
12227 {
12228 return main ();
12229   ;
12230   return 0;
12231 }
12232 _ACEOF
12233 rm -f conftest.$ac_objext conftest$ac_exeext
12234 if { (ac_try="$ac_link"
12235 case "(($ac_try" in
12236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12237   *) ac_try_echo=$ac_try;;
12238 esac
12239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12240   (eval "$ac_link") 2>conftest.er1
12241   ac_status=$?
12242   grep -v '^ *+' conftest.er1 >conftest.err
12243   rm -f conftest.er1
12244   cat conftest.err >&5
12245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246   (exit $ac_status); } &&
12247          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12248   { (case "(($ac_try" in
12249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12250   *) ac_try_echo=$ac_try;;
12251 esac
12252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12253   (eval "$ac_try") 2>&5
12254   ac_status=$?
12255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256   (exit $ac_status); }; } &&
12257          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12267   ac_cv_lib_imagehlp_main=yes
12268 else
12269   echo "$as_me: failed program was:" >&5
12270 sed 's/^/| /' conftest.$ac_ext >&5
12271
12272         ac_cv_lib_imagehlp_main=no
12273 fi
12274
12275 rm -f core conftest.err conftest.$ac_objext \
12276       conftest$ac_exeext conftest.$ac_ext
12277 LIBS=$ac_check_lib_save_LIBS
12278 fi
12279 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12280 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12281 if test $ac_cv_lib_imagehlp_main = yes; then
12282   cat >>confdefs.h <<_ACEOF
12283 #define HAVE_LIBIMAGEHLP 1
12284 _ACEOF
12285
12286   LIBS="-limagehlp $LIBS"
12287
12288 fi
12289
12290
12291 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12292 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12293 if test "${ac_cv_lib_psapi_main+set}" = set; then
12294   echo $ECHO_N "(cached) $ECHO_C" >&6
12295 else
12296   ac_check_lib_save_LIBS=$LIBS
12297 LIBS="-lpsapi  $LIBS"
12298 cat >conftest.$ac_ext <<_ACEOF
12299 /* confdefs.h.  */
12300 _ACEOF
12301 cat confdefs.h >>conftest.$ac_ext
12302 cat >>conftest.$ac_ext <<_ACEOF
12303 /* end confdefs.h.  */
12304
12305
12306 int
12307 main ()
12308 {
12309 return main ();
12310   ;
12311   return 0;
12312 }
12313 _ACEOF
12314 rm -f conftest.$ac_objext conftest$ac_exeext
12315 if { (ac_try="$ac_link"
12316 case "(($ac_try" in
12317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318   *) ac_try_echo=$ac_try;;
12319 esac
12320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12321   (eval "$ac_link") 2>conftest.er1
12322   ac_status=$?
12323   grep -v '^ *+' conftest.er1 >conftest.err
12324   rm -f conftest.er1
12325   cat conftest.err >&5
12326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327   (exit $ac_status); } &&
12328          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12329   { (case "(($ac_try" in
12330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12331   *) ac_try_echo=$ac_try;;
12332 esac
12333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12334   (eval "$ac_try") 2>&5
12335   ac_status=$?
12336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337   (exit $ac_status); }; } &&
12338          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12348   ac_cv_lib_psapi_main=yes
12349 else
12350   echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.$ac_ext >&5
12352
12353         ac_cv_lib_psapi_main=no
12354 fi
12355
12356 rm -f core conftest.err conftest.$ac_objext \
12357       conftest$ac_exeext conftest.$ac_ext
12358 LIBS=$ac_check_lib_save_LIBS
12359 fi
12360 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12361 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12362 if test $ac_cv_lib_psapi_main = yes; then
12363   cat >>confdefs.h <<_ACEOF
12364 #define HAVE_LIBPSAPI 1
12365 _ACEOF
12366
12367   LIBS="-lpsapi $LIBS"
12368
12369 fi
12370
12371 fi
12372
12373 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12374 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12375 if test "${ac_cv_search_dlopen+set}" = set; then
12376   echo $ECHO_N "(cached) $ECHO_C" >&6
12377 else
12378   ac_func_search_save_LIBS=$LIBS
12379 cat >conftest.$ac_ext <<_ACEOF
12380 /* confdefs.h.  */
12381 _ACEOF
12382 cat confdefs.h >>conftest.$ac_ext
12383 cat >>conftest.$ac_ext <<_ACEOF
12384 /* end confdefs.h.  */
12385
12386 /* Override any GCC internal prototype to avoid an error.
12387    Use char because int might match the return type of a GCC
12388    builtin and then its argument prototype would still apply.  */
12389 #ifdef __cplusplus
12390 extern "C"
12391 #endif
12392 char dlopen ();
12393 int
12394 main ()
12395 {
12396 return dlopen ();
12397   ;
12398   return 0;
12399 }
12400 _ACEOF
12401 for ac_lib in '' dl; do
12402   if test -z "$ac_lib"; then
12403     ac_res="none required"
12404   else
12405     ac_res=-l$ac_lib
12406     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12407   fi
12408   rm -f conftest.$ac_objext conftest$ac_exeext
12409 if { (ac_try="$ac_link"
12410 case "(($ac_try" in
12411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12412   *) ac_try_echo=$ac_try;;
12413 esac
12414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12415   (eval "$ac_link") 2>conftest.er1
12416   ac_status=$?
12417   grep -v '^ *+' conftest.er1 >conftest.err
12418   rm -f conftest.er1
12419   cat conftest.err >&5
12420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421   (exit $ac_status); } &&
12422          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12423   { (case "(($ac_try" in
12424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425   *) ac_try_echo=$ac_try;;
12426 esac
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428   (eval "$ac_try") 2>&5
12429   ac_status=$?
12430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431   (exit $ac_status); }; } &&
12432          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12442   ac_cv_search_dlopen=$ac_res
12443 else
12444   echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12446
12447
12448 fi
12449
12450 rm -f core conftest.err conftest.$ac_objext \
12451       conftest$ac_exeext
12452   if test "${ac_cv_search_dlopen+set}" = set; then
12453   break
12454 fi
12455 done
12456 if test "${ac_cv_search_dlopen+set}" = set; then
12457   :
12458 else
12459   ac_cv_search_dlopen=no
12460 fi
12461 rm conftest.$ac_ext
12462 LIBS=$ac_func_search_save_LIBS
12463 fi
12464 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12465 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12466 ac_res=$ac_cv_search_dlopen
12467 if test "$ac_res" != no; then
12468   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12469
12470 cat >>confdefs.h <<\_ACEOF
12471 #define HAVE_DLOPEN 1
12472 _ACEOF
12473
12474 else
12475   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12476 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12477 fi
12478
12479
12480 if test "$llvm_cv_enable_libffi" = "yes" ; then
12481   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12482 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12483 if test "${ac_cv_search_ffi_call+set}" = set; then
12484   echo $ECHO_N "(cached) $ECHO_C" >&6
12485 else
12486   ac_func_search_save_LIBS=$LIBS
12487 cat >conftest.$ac_ext <<_ACEOF
12488 /* confdefs.h.  */
12489 _ACEOF
12490 cat confdefs.h >>conftest.$ac_ext
12491 cat >>conftest.$ac_ext <<_ACEOF
12492 /* end confdefs.h.  */
12493
12494 /* Override any GCC internal prototype to avoid an error.
12495    Use char because int might match the return type of a GCC
12496    builtin and then its argument prototype would still apply.  */
12497 #ifdef __cplusplus
12498 extern "C"
12499 #endif
12500 char ffi_call ();
12501 int
12502 main ()
12503 {
12504 return ffi_call ();
12505   ;
12506   return 0;
12507 }
12508 _ACEOF
12509 for ac_lib in '' ffi; do
12510   if test -z "$ac_lib"; then
12511     ac_res="none required"
12512   else
12513     ac_res=-l$ac_lib
12514     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12515   fi
12516   rm -f conftest.$ac_objext conftest$ac_exeext
12517 if { (ac_try="$ac_link"
12518 case "(($ac_try" in
12519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520   *) ac_try_echo=$ac_try;;
12521 esac
12522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12523   (eval "$ac_link") 2>conftest.er1
12524   ac_status=$?
12525   grep -v '^ *+' conftest.er1 >conftest.err
12526   rm -f conftest.er1
12527   cat conftest.err >&5
12528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529   (exit $ac_status); } &&
12530          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12531   { (case "(($ac_try" in
12532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533   *) ac_try_echo=$ac_try;;
12534 esac
12535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536   (eval "$ac_try") 2>&5
12537   ac_status=$?
12538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539   (exit $ac_status); }; } &&
12540          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12550   ac_cv_search_ffi_call=$ac_res
12551 else
12552   echo "$as_me: failed program was:" >&5
12553 sed 's/^/| /' conftest.$ac_ext >&5
12554
12555
12556 fi
12557
12558 rm -f core conftest.err conftest.$ac_objext \
12559       conftest$ac_exeext
12560   if test "${ac_cv_search_ffi_call+set}" = set; then
12561   break
12562 fi
12563 done
12564 if test "${ac_cv_search_ffi_call+set}" = set; then
12565   :
12566 else
12567   ac_cv_search_ffi_call=no
12568 fi
12569 rm conftest.$ac_ext
12570 LIBS=$ac_func_search_save_LIBS
12571 fi
12572 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12573 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12574 ac_res=$ac_cv_search_ffi_call
12575 if test "$ac_res" != no; then
12576   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12577
12578 cat >>confdefs.h <<\_ACEOF
12579 #define HAVE_FFI_CALL 1
12580 _ACEOF
12581
12582 else
12583   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12584 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12585    { (exit 1); exit 1; }; }
12586 fi
12587
12588 fi
12589
12590 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12591 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12592 if test "${ac_cv_search_mallinfo+set}" = set; then
12593   echo $ECHO_N "(cached) $ECHO_C" >&6
12594 else
12595   ac_func_search_save_LIBS=$LIBS
12596 cat >conftest.$ac_ext <<_ACEOF
12597 /* confdefs.h.  */
12598 _ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h.  */
12602
12603 /* Override any GCC internal prototype to avoid an error.
12604    Use char because int might match the return type of a GCC
12605    builtin and then its argument prototype would still apply.  */
12606 #ifdef __cplusplus
12607 extern "C"
12608 #endif
12609 char mallinfo ();
12610 int
12611 main ()
12612 {
12613 return mallinfo ();
12614   ;
12615   return 0;
12616 }
12617 _ACEOF
12618 for ac_lib in '' malloc; do
12619   if test -z "$ac_lib"; then
12620     ac_res="none required"
12621   else
12622     ac_res=-l$ac_lib
12623     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12624   fi
12625   rm -f conftest.$ac_objext conftest$ac_exeext
12626 if { (ac_try="$ac_link"
12627 case "(($ac_try" in
12628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12629   *) ac_try_echo=$ac_try;;
12630 esac
12631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12632   (eval "$ac_link") 2>conftest.er1
12633   ac_status=$?
12634   grep -v '^ *+' conftest.er1 >conftest.err
12635   rm -f conftest.er1
12636   cat conftest.err >&5
12637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638   (exit $ac_status); } &&
12639          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12640   { (case "(($ac_try" in
12641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642   *) ac_try_echo=$ac_try;;
12643 esac
12644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645   (eval "$ac_try") 2>&5
12646   ac_status=$?
12647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648   (exit $ac_status); }; } &&
12649          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12659   ac_cv_search_mallinfo=$ac_res
12660 else
12661   echo "$as_me: failed program was:" >&5
12662 sed 's/^/| /' conftest.$ac_ext >&5
12663
12664
12665 fi
12666
12667 rm -f core conftest.err conftest.$ac_objext \
12668       conftest$ac_exeext
12669   if test "${ac_cv_search_mallinfo+set}" = set; then
12670   break
12671 fi
12672 done
12673 if test "${ac_cv_search_mallinfo+set}" = set; then
12674   :
12675 else
12676   ac_cv_search_mallinfo=no
12677 fi
12678 rm conftest.$ac_ext
12679 LIBS=$ac_func_search_save_LIBS
12680 fi
12681 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12682 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12683 ac_res=$ac_cv_search_mallinfo
12684 if test "$ac_res" != no; then
12685   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12686
12687 cat >>confdefs.h <<\_ACEOF
12688 #define HAVE_MALLINFO 1
12689 _ACEOF
12690
12691 fi
12692
12693
12694 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12695
12696 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12697 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12698 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12699   echo $ECHO_N "(cached) $ECHO_C" >&6
12700 else
12701   ac_check_lib_save_LIBS=$LIBS
12702 LIBS="-lpthread  $LIBS"
12703 cat >conftest.$ac_ext <<_ACEOF
12704 /* confdefs.h.  */
12705 _ACEOF
12706 cat confdefs.h >>conftest.$ac_ext
12707 cat >>conftest.$ac_ext <<_ACEOF
12708 /* end confdefs.h.  */
12709
12710 /* Override any GCC internal prototype to avoid an error.
12711    Use char because int might match the return type of a GCC
12712    builtin and then its argument prototype would still apply.  */
12713 #ifdef __cplusplus
12714 extern "C"
12715 #endif
12716 char pthread_mutex_init ();
12717 int
12718 main ()
12719 {
12720 return pthread_mutex_init ();
12721   ;
12722   return 0;
12723 }
12724 _ACEOF
12725 rm -f conftest.$ac_objext conftest$ac_exeext
12726 if { (ac_try="$ac_link"
12727 case "(($ac_try" in
12728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12729   *) ac_try_echo=$ac_try;;
12730 esac
12731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12732   (eval "$ac_link") 2>conftest.er1
12733   ac_status=$?
12734   grep -v '^ *+' conftest.er1 >conftest.err
12735   rm -f conftest.er1
12736   cat conftest.err >&5
12737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738   (exit $ac_status); } &&
12739          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12740   { (case "(($ac_try" in
12741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742   *) ac_try_echo=$ac_try;;
12743 esac
12744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12745   (eval "$ac_try") 2>&5
12746   ac_status=$?
12747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748   (exit $ac_status); }; } &&
12749          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12759   ac_cv_lib_pthread_pthread_mutex_init=yes
12760 else
12761   echo "$as_me: failed program was:" >&5
12762 sed 's/^/| /' conftest.$ac_ext >&5
12763
12764         ac_cv_lib_pthread_pthread_mutex_init=no
12765 fi
12766
12767 rm -f core conftest.err conftest.$ac_objext \
12768       conftest$ac_exeext conftest.$ac_ext
12769 LIBS=$ac_check_lib_save_LIBS
12770 fi
12771 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12772 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12773 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12774   cat >>confdefs.h <<_ACEOF
12775 #define HAVE_LIBPTHREAD 1
12776 _ACEOF
12777
12778   LIBS="-lpthread $LIBS"
12779
12780 fi
12781
12782   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12783 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12784 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12785   echo $ECHO_N "(cached) $ECHO_C" >&6
12786 else
12787   ac_func_search_save_LIBS=$LIBS
12788 cat >conftest.$ac_ext <<_ACEOF
12789 /* confdefs.h.  */
12790 _ACEOF
12791 cat confdefs.h >>conftest.$ac_ext
12792 cat >>conftest.$ac_ext <<_ACEOF
12793 /* end confdefs.h.  */
12794
12795 /* Override any GCC internal prototype to avoid an error.
12796    Use char because int might match the return type of a GCC
12797    builtin and then its argument prototype would still apply.  */
12798 #ifdef __cplusplus
12799 extern "C"
12800 #endif
12801 char pthread_mutex_lock ();
12802 int
12803 main ()
12804 {
12805 return pthread_mutex_lock ();
12806   ;
12807   return 0;
12808 }
12809 _ACEOF
12810 for ac_lib in '' pthread; do
12811   if test -z "$ac_lib"; then
12812     ac_res="none required"
12813   else
12814     ac_res=-l$ac_lib
12815     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12816   fi
12817   rm -f conftest.$ac_objext conftest$ac_exeext
12818 if { (ac_try="$ac_link"
12819 case "(($ac_try" in
12820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12821   *) ac_try_echo=$ac_try;;
12822 esac
12823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12824   (eval "$ac_link") 2>conftest.er1
12825   ac_status=$?
12826   grep -v '^ *+' conftest.er1 >conftest.err
12827   rm -f conftest.er1
12828   cat conftest.err >&5
12829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830   (exit $ac_status); } &&
12831          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12832   { (case "(($ac_try" in
12833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12834   *) ac_try_echo=$ac_try;;
12835 esac
12836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12837   (eval "$ac_try") 2>&5
12838   ac_status=$?
12839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840   (exit $ac_status); }; } &&
12841          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12851   ac_cv_search_pthread_mutex_lock=$ac_res
12852 else
12853   echo "$as_me: failed program was:" >&5
12854 sed 's/^/| /' conftest.$ac_ext >&5
12855
12856
12857 fi
12858
12859 rm -f core conftest.err conftest.$ac_objext \
12860       conftest$ac_exeext
12861   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12862   break
12863 fi
12864 done
12865 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12866   :
12867 else
12868   ac_cv_search_pthread_mutex_lock=no
12869 fi
12870 rm conftest.$ac_ext
12871 LIBS=$ac_func_search_save_LIBS
12872 fi
12873 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12874 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12875 ac_res=$ac_cv_search_pthread_mutex_lock
12876 if test "$ac_res" != no; then
12877   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12878
12879 cat >>confdefs.h <<\_ACEOF
12880 #define HAVE_PTHREAD_MUTEX_LOCK 1
12881 _ACEOF
12882
12883 fi
12884
12885   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12886 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12887 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12888   echo $ECHO_N "(cached) $ECHO_C" >&6
12889 else
12890   ac_func_search_save_LIBS=$LIBS
12891 cat >conftest.$ac_ext <<_ACEOF
12892 /* confdefs.h.  */
12893 _ACEOF
12894 cat confdefs.h >>conftest.$ac_ext
12895 cat >>conftest.$ac_ext <<_ACEOF
12896 /* end confdefs.h.  */
12897
12898 /* Override any GCC internal prototype to avoid an error.
12899    Use char because int might match the return type of a GCC
12900    builtin and then its argument prototype would still apply.  */
12901 #ifdef __cplusplus
12902 extern "C"
12903 #endif
12904 char pthread_rwlock_init ();
12905 int
12906 main ()
12907 {
12908 return pthread_rwlock_init ();
12909   ;
12910   return 0;
12911 }
12912 _ACEOF
12913 for ac_lib in '' pthread; do
12914   if test -z "$ac_lib"; then
12915     ac_res="none required"
12916   else
12917     ac_res=-l$ac_lib
12918     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12919   fi
12920   rm -f conftest.$ac_objext conftest$ac_exeext
12921 if { (ac_try="$ac_link"
12922 case "(($ac_try" in
12923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12924   *) ac_try_echo=$ac_try;;
12925 esac
12926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12927   (eval "$ac_link") 2>conftest.er1
12928   ac_status=$?
12929   grep -v '^ *+' conftest.er1 >conftest.err
12930   rm -f conftest.er1
12931   cat conftest.err >&5
12932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933   (exit $ac_status); } &&
12934          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12935   { (case "(($ac_try" in
12936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12937   *) ac_try_echo=$ac_try;;
12938 esac
12939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12940   (eval "$ac_try") 2>&5
12941   ac_status=$?
12942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943   (exit $ac_status); }; } &&
12944          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12954   ac_cv_search_pthread_rwlock_init=$ac_res
12955 else
12956   echo "$as_me: failed program was:" >&5
12957 sed 's/^/| /' conftest.$ac_ext >&5
12958
12959
12960 fi
12961
12962 rm -f core conftest.err conftest.$ac_objext \
12963       conftest$ac_exeext
12964   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12965   break
12966 fi
12967 done
12968 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12969   :
12970 else
12971   ac_cv_search_pthread_rwlock_init=no
12972 fi
12973 rm conftest.$ac_ext
12974 LIBS=$ac_func_search_save_LIBS
12975 fi
12976 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12977 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12978 ac_res=$ac_cv_search_pthread_rwlock_init
12979 if test "$ac_res" != no; then
12980   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12981
12982 cat >>confdefs.h <<\_ACEOF
12983 #define HAVE_PTHREAD_RWLOCK_INIT 1
12984 _ACEOF
12985
12986 fi
12987
12988   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12989 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12990 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12991   echo $ECHO_N "(cached) $ECHO_C" >&6
12992 else
12993   ac_func_search_save_LIBS=$LIBS
12994 cat >conftest.$ac_ext <<_ACEOF
12995 /* confdefs.h.  */
12996 _ACEOF
12997 cat confdefs.h >>conftest.$ac_ext
12998 cat >>conftest.$ac_ext <<_ACEOF
12999 /* end confdefs.h.  */
13000
13001 /* Override any GCC internal prototype to avoid an error.
13002    Use char because int might match the return type of a GCC
13003    builtin and then its argument prototype would still apply.  */
13004 #ifdef __cplusplus
13005 extern "C"
13006 #endif
13007 char pthread_getspecific ();
13008 int
13009 main ()
13010 {
13011 return pthread_getspecific ();
13012   ;
13013   return 0;
13014 }
13015 _ACEOF
13016 for ac_lib in '' pthread; do
13017   if test -z "$ac_lib"; then
13018     ac_res="none required"
13019   else
13020     ac_res=-l$ac_lib
13021     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13022   fi
13023   rm -f conftest.$ac_objext conftest$ac_exeext
13024 if { (ac_try="$ac_link"
13025 case "(($ac_try" in
13026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13027   *) ac_try_echo=$ac_try;;
13028 esac
13029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13030   (eval "$ac_link") 2>conftest.er1
13031   ac_status=$?
13032   grep -v '^ *+' conftest.er1 >conftest.err
13033   rm -f conftest.er1
13034   cat conftest.err >&5
13035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036   (exit $ac_status); } &&
13037          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13038   { (case "(($ac_try" in
13039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13040   *) ac_try_echo=$ac_try;;
13041 esac
13042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13043   (eval "$ac_try") 2>&5
13044   ac_status=$?
13045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046   (exit $ac_status); }; } &&
13047          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13057   ac_cv_search_pthread_getspecific=$ac_res
13058 else
13059   echo "$as_me: failed program was:" >&5
13060 sed 's/^/| /' conftest.$ac_ext >&5
13061
13062
13063 fi
13064
13065 rm -f core conftest.err conftest.$ac_objext \
13066       conftest$ac_exeext
13067   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13068   break
13069 fi
13070 done
13071 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13072   :
13073 else
13074   ac_cv_search_pthread_getspecific=no
13075 fi
13076 rm conftest.$ac_ext
13077 LIBS=$ac_func_search_save_LIBS
13078 fi
13079 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13080 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13081 ac_res=$ac_cv_search_pthread_getspecific
13082 if test "$ac_res" != no; then
13083   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13084
13085 cat >>confdefs.h <<\_ACEOF
13086 #define HAVE_PTHREAD_GETSPECIFIC 1
13087 _ACEOF
13088
13089 fi
13090
13091 fi
13092
13093
13094 # Check whether --with-udis86 was given.
13095 if test "${with_udis86+set}" = set; then
13096   withval=$with_udis86;
13097       USE_UDIS86=1
13098
13099       case "$withval" in
13100         /usr/lib|yes) ;;
13101         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13102       esac
13103
13104 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13105 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13106 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13107   echo $ECHO_N "(cached) $ECHO_C" >&6
13108 else
13109   ac_check_lib_save_LIBS=$LIBS
13110 LIBS="-ludis86  $LIBS"
13111 cat >conftest.$ac_ext <<_ACEOF
13112 /* confdefs.h.  */
13113 _ACEOF
13114 cat confdefs.h >>conftest.$ac_ext
13115 cat >>conftest.$ac_ext <<_ACEOF
13116 /* end confdefs.h.  */
13117
13118 /* Override any GCC internal prototype to avoid an error.
13119    Use char because int might match the return type of a GCC
13120    builtin and then its argument prototype would still apply.  */
13121 #ifdef __cplusplus
13122 extern "C"
13123 #endif
13124 char ud_init ();
13125 int
13126 main ()
13127 {
13128 return ud_init ();
13129   ;
13130   return 0;
13131 }
13132 _ACEOF
13133 rm -f conftest.$ac_objext conftest$ac_exeext
13134 if { (ac_try="$ac_link"
13135 case "(($ac_try" in
13136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13137   *) ac_try_echo=$ac_try;;
13138 esac
13139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13140   (eval "$ac_link") 2>conftest.er1
13141   ac_status=$?
13142   grep -v '^ *+' conftest.er1 >conftest.err
13143   rm -f conftest.er1
13144   cat conftest.err >&5
13145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146   (exit $ac_status); } &&
13147          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13148   { (case "(($ac_try" in
13149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13150   *) ac_try_echo=$ac_try;;
13151 esac
13152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13153   (eval "$ac_try") 2>&5
13154   ac_status=$?
13155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156   (exit $ac_status); }; } &&
13157          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13167   ac_cv_lib_udis86_ud_init=yes
13168 else
13169   echo "$as_me: failed program was:" >&5
13170 sed 's/^/| /' conftest.$ac_ext >&5
13171
13172         ac_cv_lib_udis86_ud_init=no
13173 fi
13174
13175 rm -f core conftest.err conftest.$ac_objext \
13176       conftest$ac_exeext conftest.$ac_ext
13177 LIBS=$ac_check_lib_save_LIBS
13178 fi
13179 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13180 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13181 if test $ac_cv_lib_udis86_ud_init = yes; then
13182   cat >>confdefs.h <<_ACEOF
13183 #define HAVE_LIBUDIS86 1
13184 _ACEOF
13185
13186   LIBS="-ludis86 $LIBS"
13187
13188 else
13189
13190         echo "Error! You need to have libudis86 around."
13191         exit -1
13192
13193 fi
13194
13195
13196 else
13197   USE_UDIS86=0
13198
13199 fi
13200
13201
13202 cat >>confdefs.h <<_ACEOF
13203 #define USE_UDIS86 $USE_UDIS86
13204 _ACEOF
13205
13206
13207
13208 # Check whether --with-oprofile was given.
13209 if test "${with_oprofile+set}" = set; then
13210   withval=$with_oprofile;
13211       USE_OPROFILE=1
13212
13213       case "$withval" in
13214         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13215         no) llvm_cv_oppath=
13216             USE_OPROFILE=0
13217  ;;
13218         *) llvm_cv_oppath="${withval}/lib/oprofile"
13219            CPPFLAGS="-I${withval}/include";;
13220       esac
13221       if test -n "$llvm_cv_oppath" ; then
13222         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13223                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13224 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13225 if test "${ac_cv_search_bfd_init+set}" = set; then
13226   echo $ECHO_N "(cached) $ECHO_C" >&6
13227 else
13228   ac_func_search_save_LIBS=$LIBS
13229 cat >conftest.$ac_ext <<_ACEOF
13230 /* confdefs.h.  */
13231 _ACEOF
13232 cat confdefs.h >>conftest.$ac_ext
13233 cat >>conftest.$ac_ext <<_ACEOF
13234 /* end confdefs.h.  */
13235
13236 /* Override any GCC internal prototype to avoid an error.
13237    Use char because int might match the return type of a GCC
13238    builtin and then its argument prototype would still apply.  */
13239 #ifdef __cplusplus
13240 extern "C"
13241 #endif
13242 char bfd_init ();
13243 int
13244 main ()
13245 {
13246 return bfd_init ();
13247   ;
13248   return 0;
13249 }
13250 _ACEOF
13251 for ac_lib in '' bfd; do
13252   if test -z "$ac_lib"; then
13253     ac_res="none required"
13254   else
13255     ac_res=-l$ac_lib
13256     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13257   fi
13258   rm -f conftest.$ac_objext conftest$ac_exeext
13259 if { (ac_try="$ac_link"
13260 case "(($ac_try" in
13261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13262   *) ac_try_echo=$ac_try;;
13263 esac
13264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13265   (eval "$ac_link") 2>conftest.er1
13266   ac_status=$?
13267   grep -v '^ *+' conftest.er1 >conftest.err
13268   rm -f conftest.er1
13269   cat conftest.err >&5
13270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271   (exit $ac_status); } &&
13272          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13273   { (case "(($ac_try" in
13274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13275   *) ac_try_echo=$ac_try;;
13276 esac
13277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13278   (eval "$ac_try") 2>&5
13279   ac_status=$?
13280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281   (exit $ac_status); }; } &&
13282          { ac_try='test -s conftest$ac_exeext'
13283   { (case "(($ac_try" in
13284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13285   *) ac_try_echo=$ac_try;;
13286 esac
13287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13288   (eval "$ac_try") 2>&5
13289   ac_status=$?
13290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291   (exit $ac_status); }; }; then
13292   ac_cv_search_bfd_init=$ac_res
13293 else
13294   echo "$as_me: failed program was:" >&5
13295 sed 's/^/| /' conftest.$ac_ext >&5
13296
13297
13298 fi
13299
13300 rm -f core conftest.err conftest.$ac_objext \
13301       conftest$ac_exeext
13302   if test "${ac_cv_search_bfd_init+set}" = set; then
13303   break
13304 fi
13305 done
13306 if test "${ac_cv_search_bfd_init+set}" = set; then
13307   :
13308 else
13309   ac_cv_search_bfd_init=no
13310 fi
13311 rm conftest.$ac_ext
13312 LIBS=$ac_func_search_save_LIBS
13313 fi
13314 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13315 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13316 ac_res=$ac_cv_search_bfd_init
13317 if test "$ac_res" != no; then
13318   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13319
13320 fi
13321
13322         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13323 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13324 if test "${ac_cv_search_op_open_agent+set}" = set; then
13325   echo $ECHO_N "(cached) $ECHO_C" >&6
13326 else
13327   ac_func_search_save_LIBS=$LIBS
13328 cat >conftest.$ac_ext <<_ACEOF
13329 /* confdefs.h.  */
13330 _ACEOF
13331 cat confdefs.h >>conftest.$ac_ext
13332 cat >>conftest.$ac_ext <<_ACEOF
13333 /* end confdefs.h.  */
13334
13335 /* Override any GCC internal prototype to avoid an error.
13336    Use char because int might match the return type of a GCC
13337    builtin and then its argument prototype would still apply.  */
13338 #ifdef __cplusplus
13339 extern "C"
13340 #endif
13341 char op_open_agent ();
13342 int
13343 main ()
13344 {
13345 return op_open_agent ();
13346   ;
13347   return 0;
13348 }
13349 _ACEOF
13350 for ac_lib in '' opagent; do
13351   if test -z "$ac_lib"; then
13352     ac_res="none required"
13353   else
13354     ac_res=-l$ac_lib
13355     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13356   fi
13357   rm -f conftest.$ac_objext conftest$ac_exeext
13358 if { (ac_try="$ac_link"
13359 case "(($ac_try" in
13360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13361   *) ac_try_echo=$ac_try;;
13362 esac
13363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13364   (eval "$ac_link") 2>conftest.er1
13365   ac_status=$?
13366   grep -v '^ *+' conftest.er1 >conftest.err
13367   rm -f conftest.er1
13368   cat conftest.err >&5
13369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370   (exit $ac_status); } &&
13371          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13372   { (case "(($ac_try" in
13373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13374   *) ac_try_echo=$ac_try;;
13375 esac
13376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13377   (eval "$ac_try") 2>&5
13378   ac_status=$?
13379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380   (exit $ac_status); }; } &&
13381          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13391   ac_cv_search_op_open_agent=$ac_res
13392 else
13393   echo "$as_me: failed program was:" >&5
13394 sed 's/^/| /' conftest.$ac_ext >&5
13395
13396
13397 fi
13398
13399 rm -f core conftest.err conftest.$ac_objext \
13400       conftest$ac_exeext
13401   if test "${ac_cv_search_op_open_agent+set}" = set; then
13402   break
13403 fi
13404 done
13405 if test "${ac_cv_search_op_open_agent+set}" = set; then
13406   :
13407 else
13408   ac_cv_search_op_open_agent=no
13409 fi
13410 rm conftest.$ac_ext
13411 LIBS=$ac_func_search_save_LIBS
13412 fi
13413 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13414 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13415 ac_res=$ac_cv_search_op_open_agent
13416 if test "$ac_res" != no; then
13417   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13418
13419 else
13420
13421           echo "Error! You need to have libopagent around."
13422           exit -1
13423
13424 fi
13425
13426         if test "${ac_cv_header_opagent_h+set}" = set; then
13427   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13428 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13429 if test "${ac_cv_header_opagent_h+set}" = set; then
13430   echo $ECHO_N "(cached) $ECHO_C" >&6
13431 fi
13432 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13433 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13434 else
13435   # Is the header compilable?
13436 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13437 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13438 cat >conftest.$ac_ext <<_ACEOF
13439 /* confdefs.h.  */
13440 _ACEOF
13441 cat confdefs.h >>conftest.$ac_ext
13442 cat >>conftest.$ac_ext <<_ACEOF
13443 /* end confdefs.h.  */
13444 $ac_includes_default
13445 #include <opagent.h>
13446 _ACEOF
13447 rm -f conftest.$ac_objext
13448 if { (ac_try="$ac_compile"
13449 case "(($ac_try" in
13450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13451   *) ac_try_echo=$ac_try;;
13452 esac
13453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13454   (eval "$ac_compile") 2>conftest.er1
13455   ac_status=$?
13456   grep -v '^ *+' conftest.er1 >conftest.err
13457   rm -f conftest.er1
13458   cat conftest.err >&5
13459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460   (exit $ac_status); } &&
13461          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13462   { (case "(($ac_try" in
13463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464   *) ac_try_echo=$ac_try;;
13465 esac
13466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467   (eval "$ac_try") 2>&5
13468   ac_status=$?
13469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470   (exit $ac_status); }; } &&
13471          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13481   ac_header_compiler=yes
13482 else
13483   echo "$as_me: failed program was:" >&5
13484 sed 's/^/| /' conftest.$ac_ext >&5
13485
13486         ac_header_compiler=no
13487 fi
13488
13489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13490 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13491 echo "${ECHO_T}$ac_header_compiler" >&6; }
13492
13493 # Is the header present?
13494 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13495 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13496 cat >conftest.$ac_ext <<_ACEOF
13497 /* confdefs.h.  */
13498 _ACEOF
13499 cat confdefs.h >>conftest.$ac_ext
13500 cat >>conftest.$ac_ext <<_ACEOF
13501 /* end confdefs.h.  */
13502 #include <opagent.h>
13503 _ACEOF
13504 if { (ac_try="$ac_cpp conftest.$ac_ext"
13505 case "(($ac_try" in
13506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13507   *) ac_try_echo=$ac_try;;
13508 esac
13509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13510   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13511   ac_status=$?
13512   grep -v '^ *+' conftest.er1 >conftest.err
13513   rm -f conftest.er1
13514   cat conftest.err >&5
13515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516   (exit $ac_status); } >/dev/null; then
13517   if test -s conftest.err; then
13518     ac_cpp_err=$ac_c_preproc_warn_flag
13519     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13520   else
13521     ac_cpp_err=
13522   fi
13523 else
13524   ac_cpp_err=yes
13525 fi
13526 if test -z "$ac_cpp_err"; then
13527   ac_header_preproc=yes
13528 else
13529   echo "$as_me: failed program was:" >&5
13530 sed 's/^/| /' conftest.$ac_ext >&5
13531
13532   ac_header_preproc=no
13533 fi
13534
13535 rm -f conftest.err conftest.$ac_ext
13536 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13537 echo "${ECHO_T}$ac_header_preproc" >&6; }
13538
13539 # So?  What about this header?
13540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13541   yes:no: )
13542     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13543 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13544     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13545 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13546     ac_header_preproc=yes
13547     ;;
13548   no:yes:* )
13549     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13550 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13551     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13552 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13553     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13554 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13555     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13556 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13557     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13558 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13559     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13560 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13561     ( cat <<\_ASBOX
13562 ## ------------------------------ ##
13563 ## Report this to bugs@yourdomain ##
13564 ## ------------------------------ ##
13565 _ASBOX
13566      ) | sed "s/^/$as_me: WARNING:     /" >&2
13567     ;;
13568 esac
13569 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13570 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13571 if test "${ac_cv_header_opagent_h+set}" = set; then
13572   echo $ECHO_N "(cached) $ECHO_C" >&6
13573 else
13574   ac_cv_header_opagent_h=$ac_header_preproc
13575 fi
13576 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13577 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13578
13579 fi
13580 if test $ac_cv_header_opagent_h = yes; then
13581   :
13582 else
13583
13584           echo "Error! You need to have opagent.h around."
13585           exit -1
13586
13587 fi
13588
13589
13590       fi
13591
13592 else
13593
13594       USE_OPROFILE=0
13595
13596
13597 fi
13598
13599
13600 cat >>confdefs.h <<_ACEOF
13601 #define USE_OPROFILE $USE_OPROFILE
13602 _ACEOF
13603
13604
13605
13606
13607
13608
13609
13610
13611 ac_header_dirent=no
13612 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13613   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13614 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13615 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13617   echo $ECHO_N "(cached) $ECHO_C" >&6
13618 else
13619   cat >conftest.$ac_ext <<_ACEOF
13620 /* confdefs.h.  */
13621 _ACEOF
13622 cat confdefs.h >>conftest.$ac_ext
13623 cat >>conftest.$ac_ext <<_ACEOF
13624 /* end confdefs.h.  */
13625 #include <sys/types.h>
13626 #include <$ac_hdr>
13627
13628 int
13629 main ()
13630 {
13631 if ((DIR *) 0)
13632 return 0;
13633   ;
13634   return 0;
13635 }
13636 _ACEOF
13637 rm -f conftest.$ac_objext
13638 if { (ac_try="$ac_compile"
13639 case "(($ac_try" in
13640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641   *) ac_try_echo=$ac_try;;
13642 esac
13643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13644   (eval "$ac_compile") 2>conftest.er1
13645   ac_status=$?
13646   grep -v '^ *+' conftest.er1 >conftest.err
13647   rm -f conftest.er1
13648   cat conftest.err >&5
13649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650   (exit $ac_status); } &&
13651          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13652   { (case "(($ac_try" in
13653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13654   *) ac_try_echo=$ac_try;;
13655 esac
13656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13657   (eval "$ac_try") 2>&5
13658   ac_status=$?
13659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660   (exit $ac_status); }; } &&
13661          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13671   eval "$as_ac_Header=yes"
13672 else
13673   echo "$as_me: failed program was:" >&5
13674 sed 's/^/| /' conftest.$ac_ext >&5
13675
13676         eval "$as_ac_Header=no"
13677 fi
13678
13679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13680 fi
13681 ac_res=`eval echo '${'$as_ac_Header'}'`
13682                { echo "$as_me:$LINENO: result: $ac_res" >&5
13683 echo "${ECHO_T}$ac_res" >&6; }
13684 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13685   cat >>confdefs.h <<_ACEOF
13686 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13687 _ACEOF
13688
13689 ac_header_dirent=$ac_hdr; break
13690 fi
13691
13692 done
13693 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13694 if test $ac_header_dirent = dirent.h; then
13695   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13696 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13697 if test "${ac_cv_search_opendir+set}" = set; then
13698   echo $ECHO_N "(cached) $ECHO_C" >&6
13699 else
13700   ac_func_search_save_LIBS=$LIBS
13701 cat >conftest.$ac_ext <<_ACEOF
13702 /* confdefs.h.  */
13703 _ACEOF
13704 cat confdefs.h >>conftest.$ac_ext
13705 cat >>conftest.$ac_ext <<_ACEOF
13706 /* end confdefs.h.  */
13707
13708 /* Override any GCC internal prototype to avoid an error.
13709    Use char because int might match the return type of a GCC
13710    builtin and then its argument prototype would still apply.  */
13711 #ifdef __cplusplus
13712 extern "C"
13713 #endif
13714 char opendir ();
13715 int
13716 main ()
13717 {
13718 return opendir ();
13719   ;
13720   return 0;
13721 }
13722 _ACEOF
13723 for ac_lib in '' dir; do
13724   if test -z "$ac_lib"; then
13725     ac_res="none required"
13726   else
13727     ac_res=-l$ac_lib
13728     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13729   fi
13730   rm -f conftest.$ac_objext conftest$ac_exeext
13731 if { (ac_try="$ac_link"
13732 case "(($ac_try" in
13733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13734   *) ac_try_echo=$ac_try;;
13735 esac
13736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13737   (eval "$ac_link") 2>conftest.er1
13738   ac_status=$?
13739   grep -v '^ *+' conftest.er1 >conftest.err
13740   rm -f conftest.er1
13741   cat conftest.err >&5
13742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743   (exit $ac_status); } &&
13744          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13745   { (case "(($ac_try" in
13746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13747   *) ac_try_echo=$ac_try;;
13748 esac
13749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13750   (eval "$ac_try") 2>&5
13751   ac_status=$?
13752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753   (exit $ac_status); }; } &&
13754          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13764   ac_cv_search_opendir=$ac_res
13765 else
13766   echo "$as_me: failed program was:" >&5
13767 sed 's/^/| /' conftest.$ac_ext >&5
13768
13769
13770 fi
13771
13772 rm -f core conftest.err conftest.$ac_objext \
13773       conftest$ac_exeext
13774   if test "${ac_cv_search_opendir+set}" = set; then
13775   break
13776 fi
13777 done
13778 if test "${ac_cv_search_opendir+set}" = set; then
13779   :
13780 else
13781   ac_cv_search_opendir=no
13782 fi
13783 rm conftest.$ac_ext
13784 LIBS=$ac_func_search_save_LIBS
13785 fi
13786 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13787 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13788 ac_res=$ac_cv_search_opendir
13789 if test "$ac_res" != no; then
13790   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13791
13792 fi
13793
13794 else
13795   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13796 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13797 if test "${ac_cv_search_opendir+set}" = set; then
13798   echo $ECHO_N "(cached) $ECHO_C" >&6
13799 else
13800   ac_func_search_save_LIBS=$LIBS
13801 cat >conftest.$ac_ext <<_ACEOF
13802 /* confdefs.h.  */
13803 _ACEOF
13804 cat confdefs.h >>conftest.$ac_ext
13805 cat >>conftest.$ac_ext <<_ACEOF
13806 /* end confdefs.h.  */
13807
13808 /* Override any GCC internal prototype to avoid an error.
13809    Use char because int might match the return type of a GCC
13810    builtin and then its argument prototype would still apply.  */
13811 #ifdef __cplusplus
13812 extern "C"
13813 #endif
13814 char opendir ();
13815 int
13816 main ()
13817 {
13818 return opendir ();
13819   ;
13820   return 0;
13821 }
13822 _ACEOF
13823 for ac_lib in '' x; do
13824   if test -z "$ac_lib"; then
13825     ac_res="none required"
13826   else
13827     ac_res=-l$ac_lib
13828     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13829   fi
13830   rm -f conftest.$ac_objext conftest$ac_exeext
13831 if { (ac_try="$ac_link"
13832 case "(($ac_try" in
13833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13834   *) ac_try_echo=$ac_try;;
13835 esac
13836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13837   (eval "$ac_link") 2>conftest.er1
13838   ac_status=$?
13839   grep -v '^ *+' conftest.er1 >conftest.err
13840   rm -f conftest.er1
13841   cat conftest.err >&5
13842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843   (exit $ac_status); } &&
13844          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13845   { (case "(($ac_try" in
13846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13847   *) ac_try_echo=$ac_try;;
13848 esac
13849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13850   (eval "$ac_try") 2>&5
13851   ac_status=$?
13852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853   (exit $ac_status); }; } &&
13854          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13864   ac_cv_search_opendir=$ac_res
13865 else
13866   echo "$as_me: failed program was:" >&5
13867 sed 's/^/| /' conftest.$ac_ext >&5
13868
13869
13870 fi
13871
13872 rm -f core conftest.err conftest.$ac_objext \
13873       conftest$ac_exeext
13874   if test "${ac_cv_search_opendir+set}" = set; then
13875   break
13876 fi
13877 done
13878 if test "${ac_cv_search_opendir+set}" = set; then
13879   :
13880 else
13881   ac_cv_search_opendir=no
13882 fi
13883 rm conftest.$ac_ext
13884 LIBS=$ac_func_search_save_LIBS
13885 fi
13886 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13887 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13888 ac_res=$ac_cv_search_opendir
13889 if test "$ac_res" != no; then
13890   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13891
13892 fi
13893
13894 fi
13895
13896 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13897 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13898 if test "${ac_cv_header_mmap_anon+set}" = set; then
13899   echo $ECHO_N "(cached) $ECHO_C" >&6
13900 else
13901    ac_ext=c
13902 ac_cpp='$CPP $CPPFLAGS'
13903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13906
13907   cat >conftest.$ac_ext <<_ACEOF
13908 /* confdefs.h.  */
13909 _ACEOF
13910 cat confdefs.h >>conftest.$ac_ext
13911 cat >>conftest.$ac_ext <<_ACEOF
13912 /* end confdefs.h.  */
13913 #include <sys/mman.h>
13914 #include <unistd.h>
13915 #include <fcntl.h>
13916 int
13917 main ()
13918 {
13919 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13920   ;
13921   return 0;
13922 }
13923 _ACEOF
13924 rm -f conftest.$ac_objext
13925 if { (ac_try="$ac_compile"
13926 case "(($ac_try" in
13927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13928   *) ac_try_echo=$ac_try;;
13929 esac
13930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13931   (eval "$ac_compile") 2>conftest.er1
13932   ac_status=$?
13933   grep -v '^ *+' conftest.er1 >conftest.err
13934   rm -f conftest.er1
13935   cat conftest.err >&5
13936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937   (exit $ac_status); } &&
13938          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13939   { (case "(($ac_try" in
13940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13941   *) ac_try_echo=$ac_try;;
13942 esac
13943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13944   (eval "$ac_try") 2>&5
13945   ac_status=$?
13946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947   (exit $ac_status); }; } &&
13948          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13958   ac_cv_header_mmap_anon=yes
13959 else
13960   echo "$as_me: failed program was:" >&5
13961 sed 's/^/| /' conftest.$ac_ext >&5
13962
13963         ac_cv_header_mmap_anon=no
13964 fi
13965
13966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13967   ac_ext=c
13968 ac_cpp='$CPP $CPPFLAGS'
13969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13972
13973
13974 fi
13975 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13976 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13977 if test "$ac_cv_header_mmap_anon" = yes; then
13978
13979 cat >>confdefs.h <<\_ACEOF
13980 #define HAVE_MMAP_ANONYMOUS 1
13981 _ACEOF
13982
13983 fi
13984
13985 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13986 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
13987 if test "${ac_cv_header_stat_broken+set}" = set; then
13988   echo $ECHO_N "(cached) $ECHO_C" >&6
13989 else
13990   cat >conftest.$ac_ext <<_ACEOF
13991 /* confdefs.h.  */
13992 _ACEOF
13993 cat confdefs.h >>conftest.$ac_ext
13994 cat >>conftest.$ac_ext <<_ACEOF
13995 /* end confdefs.h.  */
13996 #include <sys/types.h>
13997 #include <sys/stat.h>
13998
13999 #if defined S_ISBLK && defined S_IFDIR
14000 # if S_ISBLK (S_IFDIR)
14001 You lose.
14002 # endif
14003 #endif
14004
14005 #if defined S_ISBLK && defined S_IFCHR
14006 # if S_ISBLK (S_IFCHR)
14007 You lose.
14008 # endif
14009 #endif
14010
14011 #if defined S_ISLNK && defined S_IFREG
14012 # if S_ISLNK (S_IFREG)
14013 You lose.
14014 # endif
14015 #endif
14016
14017 #if defined S_ISSOCK && defined S_IFREG
14018 # if S_ISSOCK (S_IFREG)
14019 You lose.
14020 # endif
14021 #endif
14022
14023 _ACEOF
14024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14025   $EGREP "You lose" >/dev/null 2>&1; then
14026   ac_cv_header_stat_broken=yes
14027 else
14028   ac_cv_header_stat_broken=no
14029 fi
14030 rm -f conftest*
14031
14032 fi
14033 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14034 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14035 if test $ac_cv_header_stat_broken = yes; then
14036
14037 cat >>confdefs.h <<\_ACEOF
14038 #define STAT_MACROS_BROKEN 1
14039 _ACEOF
14040
14041 fi
14042
14043 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14044 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14045 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14046   echo $ECHO_N "(cached) $ECHO_C" >&6
14047 else
14048   cat >conftest.$ac_ext <<_ACEOF
14049 /* confdefs.h.  */
14050 _ACEOF
14051 cat confdefs.h >>conftest.$ac_ext
14052 cat >>conftest.$ac_ext <<_ACEOF
14053 /* end confdefs.h.  */
14054 #include <sys/types.h>
14055 #include <sys/wait.h>
14056 #ifndef WEXITSTATUS
14057 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14058 #endif
14059 #ifndef WIFEXITED
14060 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14061 #endif
14062
14063 int
14064 main ()
14065 {
14066   int s;
14067   wait (&s);
14068   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14069   ;
14070   return 0;
14071 }
14072 _ACEOF
14073 rm -f conftest.$ac_objext
14074 if { (ac_try="$ac_compile"
14075 case "(($ac_try" in
14076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14077   *) ac_try_echo=$ac_try;;
14078 esac
14079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14080   (eval "$ac_compile") 2>conftest.er1
14081   ac_status=$?
14082   grep -v '^ *+' conftest.er1 >conftest.err
14083   rm -f conftest.er1
14084   cat conftest.err >&5
14085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086   (exit $ac_status); } &&
14087          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14088   { (case "(($ac_try" in
14089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14090   *) ac_try_echo=$ac_try;;
14091 esac
14092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14093   (eval "$ac_try") 2>&5
14094   ac_status=$?
14095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096   (exit $ac_status); }; } &&
14097          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14107   ac_cv_header_sys_wait_h=yes
14108 else
14109   echo "$as_me: failed program was:" >&5
14110 sed 's/^/| /' conftest.$ac_ext >&5
14111
14112         ac_cv_header_sys_wait_h=no
14113 fi
14114
14115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14116 fi
14117 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14118 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14119 if test $ac_cv_header_sys_wait_h = yes; then
14120
14121 cat >>confdefs.h <<\_ACEOF
14122 #define HAVE_SYS_WAIT_H 1
14123 _ACEOF
14124
14125 fi
14126
14127 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14128 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14129 if test "${ac_cv_header_time+set}" = set; then
14130   echo $ECHO_N "(cached) $ECHO_C" >&6
14131 else
14132   cat >conftest.$ac_ext <<_ACEOF
14133 /* confdefs.h.  */
14134 _ACEOF
14135 cat confdefs.h >>conftest.$ac_ext
14136 cat >>conftest.$ac_ext <<_ACEOF
14137 /* end confdefs.h.  */
14138 #include <sys/types.h>
14139 #include <sys/time.h>
14140 #include <time.h>
14141
14142 int
14143 main ()
14144 {
14145 if ((struct tm *) 0)
14146 return 0;
14147   ;
14148   return 0;
14149 }
14150 _ACEOF
14151 rm -f conftest.$ac_objext
14152 if { (ac_try="$ac_compile"
14153 case "(($ac_try" in
14154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14155   *) ac_try_echo=$ac_try;;
14156 esac
14157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14158   (eval "$ac_compile") 2>conftest.er1
14159   ac_status=$?
14160   grep -v '^ *+' conftest.er1 >conftest.err
14161   rm -f conftest.er1
14162   cat conftest.err >&5
14163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164   (exit $ac_status); } &&
14165          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14166   { (case "(($ac_try" in
14167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14168   *) ac_try_echo=$ac_try;;
14169 esac
14170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14171   (eval "$ac_try") 2>&5
14172   ac_status=$?
14173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174   (exit $ac_status); }; } &&
14175          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14185   ac_cv_header_time=yes
14186 else
14187   echo "$as_me: failed program was:" >&5
14188 sed 's/^/| /' conftest.$ac_ext >&5
14189
14190         ac_cv_header_time=no
14191 fi
14192
14193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14194 fi
14195 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14196 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14197 if test $ac_cv_header_time = yes; then
14198
14199 cat >>confdefs.h <<\_ACEOF
14200 #define TIME_WITH_SYS_TIME 1
14201 _ACEOF
14202
14203 fi
14204
14205
14206
14207
14208
14209
14210
14211
14212 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14213 do
14214 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14216   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14219   echo $ECHO_N "(cached) $ECHO_C" >&6
14220 fi
14221 ac_res=`eval echo '${'$as_ac_Header'}'`
14222                { echo "$as_me:$LINENO: result: $ac_res" >&5
14223 echo "${ECHO_T}$ac_res" >&6; }
14224 else
14225   # Is the header compilable?
14226 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14227 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14228 cat >conftest.$ac_ext <<_ACEOF
14229 /* confdefs.h.  */
14230 _ACEOF
14231 cat confdefs.h >>conftest.$ac_ext
14232 cat >>conftest.$ac_ext <<_ACEOF
14233 /* end confdefs.h.  */
14234 $ac_includes_default
14235 #include <$ac_header>
14236 _ACEOF
14237 rm -f conftest.$ac_objext
14238 if { (ac_try="$ac_compile"
14239 case "(($ac_try" in
14240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241   *) ac_try_echo=$ac_try;;
14242 esac
14243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14244   (eval "$ac_compile") 2>conftest.er1
14245   ac_status=$?
14246   grep -v '^ *+' conftest.er1 >conftest.err
14247   rm -f conftest.er1
14248   cat conftest.err >&5
14249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250   (exit $ac_status); } &&
14251          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14252   { (case "(($ac_try" in
14253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14254   *) ac_try_echo=$ac_try;;
14255 esac
14256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14257   (eval "$ac_try") 2>&5
14258   ac_status=$?
14259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260   (exit $ac_status); }; } &&
14261          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14271   ac_header_compiler=yes
14272 else
14273   echo "$as_me: failed program was:" >&5
14274 sed 's/^/| /' conftest.$ac_ext >&5
14275
14276         ac_header_compiler=no
14277 fi
14278
14279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14280 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14281 echo "${ECHO_T}$ac_header_compiler" >&6; }
14282
14283 # Is the header present?
14284 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14285 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14286 cat >conftest.$ac_ext <<_ACEOF
14287 /* confdefs.h.  */
14288 _ACEOF
14289 cat confdefs.h >>conftest.$ac_ext
14290 cat >>conftest.$ac_ext <<_ACEOF
14291 /* end confdefs.h.  */
14292 #include <$ac_header>
14293 _ACEOF
14294 if { (ac_try="$ac_cpp conftest.$ac_ext"
14295 case "(($ac_try" in
14296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14297   *) ac_try_echo=$ac_try;;
14298 esac
14299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14301   ac_status=$?
14302   grep -v '^ *+' conftest.er1 >conftest.err
14303   rm -f conftest.er1
14304   cat conftest.err >&5
14305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306   (exit $ac_status); } >/dev/null; then
14307   if test -s conftest.err; then
14308     ac_cpp_err=$ac_c_preproc_warn_flag
14309     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14310   else
14311     ac_cpp_err=
14312   fi
14313 else
14314   ac_cpp_err=yes
14315 fi
14316 if test -z "$ac_cpp_err"; then
14317   ac_header_preproc=yes
14318 else
14319   echo "$as_me: failed program was:" >&5
14320 sed 's/^/| /' conftest.$ac_ext >&5
14321
14322   ac_header_preproc=no
14323 fi
14324
14325 rm -f conftest.err conftest.$ac_ext
14326 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14327 echo "${ECHO_T}$ac_header_preproc" >&6; }
14328
14329 # So?  What about this header?
14330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14331   yes:no: )
14332     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14333 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14334     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14335 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14336     ac_header_preproc=yes
14337     ;;
14338   no:yes:* )
14339     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14340 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14341     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14342 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14343     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14344 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14345     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14346 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14347     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14348 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14349     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14350 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14351     ( cat <<\_ASBOX
14352 ## ------------------------------ ##
14353 ## Report this to bugs@yourdomain ##
14354 ## ------------------------------ ##
14355 _ASBOX
14356      ) | sed "s/^/$as_me: WARNING:     /" >&2
14357     ;;
14358 esac
14359 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14362   echo $ECHO_N "(cached) $ECHO_C" >&6
14363 else
14364   eval "$as_ac_Header=\$ac_header_preproc"
14365 fi
14366 ac_res=`eval echo '${'$as_ac_Header'}'`
14367                { echo "$as_me:$LINENO: result: $ac_res" >&5
14368 echo "${ECHO_T}$ac_res" >&6; }
14369
14370 fi
14371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14372   cat >>confdefs.h <<_ACEOF
14373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14374 _ACEOF
14375
14376 fi
14377
14378 done
14379
14380
14381
14382
14383
14384
14385
14386 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14387 do
14388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14390   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14393   echo $ECHO_N "(cached) $ECHO_C" >&6
14394 fi
14395 ac_res=`eval echo '${'$as_ac_Header'}'`
14396                { echo "$as_me:$LINENO: result: $ac_res" >&5
14397 echo "${ECHO_T}$ac_res" >&6; }
14398 else
14399   # Is the header compilable?
14400 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14402 cat >conftest.$ac_ext <<_ACEOF
14403 /* confdefs.h.  */
14404 _ACEOF
14405 cat confdefs.h >>conftest.$ac_ext
14406 cat >>conftest.$ac_ext <<_ACEOF
14407 /* end confdefs.h.  */
14408 $ac_includes_default
14409 #include <$ac_header>
14410 _ACEOF
14411 rm -f conftest.$ac_objext
14412 if { (ac_try="$ac_compile"
14413 case "(($ac_try" in
14414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14415   *) ac_try_echo=$ac_try;;
14416 esac
14417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14418   (eval "$ac_compile") 2>conftest.er1
14419   ac_status=$?
14420   grep -v '^ *+' conftest.er1 >conftest.err
14421   rm -f conftest.er1
14422   cat conftest.err >&5
14423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424   (exit $ac_status); } &&
14425          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14426   { (case "(($ac_try" in
14427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14428   *) ac_try_echo=$ac_try;;
14429 esac
14430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14431   (eval "$ac_try") 2>&5
14432   ac_status=$?
14433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434   (exit $ac_status); }; } &&
14435          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14445   ac_header_compiler=yes
14446 else
14447   echo "$as_me: failed program was:" >&5
14448 sed 's/^/| /' conftest.$ac_ext >&5
14449
14450         ac_header_compiler=no
14451 fi
14452
14453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14454 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14455 echo "${ECHO_T}$ac_header_compiler" >&6; }
14456
14457 # Is the header present?
14458 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14459 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14460 cat >conftest.$ac_ext <<_ACEOF
14461 /* confdefs.h.  */
14462 _ACEOF
14463 cat confdefs.h >>conftest.$ac_ext
14464 cat >>conftest.$ac_ext <<_ACEOF
14465 /* end confdefs.h.  */
14466 #include <$ac_header>
14467 _ACEOF
14468 if { (ac_try="$ac_cpp conftest.$ac_ext"
14469 case "(($ac_try" in
14470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14471   *) ac_try_echo=$ac_try;;
14472 esac
14473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14474   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14475   ac_status=$?
14476   grep -v '^ *+' conftest.er1 >conftest.err
14477   rm -f conftest.er1
14478   cat conftest.err >&5
14479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480   (exit $ac_status); } >/dev/null; then
14481   if test -s conftest.err; then
14482     ac_cpp_err=$ac_c_preproc_warn_flag
14483     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14484   else
14485     ac_cpp_err=
14486   fi
14487 else
14488   ac_cpp_err=yes
14489 fi
14490 if test -z "$ac_cpp_err"; then
14491   ac_header_preproc=yes
14492 else
14493   echo "$as_me: failed program was:" >&5
14494 sed 's/^/| /' conftest.$ac_ext >&5
14495
14496   ac_header_preproc=no
14497 fi
14498
14499 rm -f conftest.err conftest.$ac_ext
14500 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14501 echo "${ECHO_T}$ac_header_preproc" >&6; }
14502
14503 # So?  What about this header?
14504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14505   yes:no: )
14506     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14507 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14508     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14509 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14510     ac_header_preproc=yes
14511     ;;
14512   no:yes:* )
14513     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14515     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14516 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14517     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14518 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14519     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14520 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14521     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14523     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14524 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14525     ( cat <<\_ASBOX
14526 ## ------------------------------ ##
14527 ## Report this to bugs@yourdomain ##
14528 ## ------------------------------ ##
14529 _ASBOX
14530      ) | sed "s/^/$as_me: WARNING:     /" >&2
14531     ;;
14532 esac
14533 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14536   echo $ECHO_N "(cached) $ECHO_C" >&6
14537 else
14538   eval "$as_ac_Header=\$ac_header_preproc"
14539 fi
14540 ac_res=`eval echo '${'$as_ac_Header'}'`
14541                { echo "$as_me:$LINENO: result: $ac_res" >&5
14542 echo "${ECHO_T}$ac_res" >&6; }
14543
14544 fi
14545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14546   cat >>confdefs.h <<_ACEOF
14547 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14548 _ACEOF
14549
14550 fi
14551
14552 done
14553
14554
14555
14556 for ac_header in utime.h windows.h
14557 do
14558 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14560   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14563   echo $ECHO_N "(cached) $ECHO_C" >&6
14564 fi
14565 ac_res=`eval echo '${'$as_ac_Header'}'`
14566                { echo "$as_me:$LINENO: result: $ac_res" >&5
14567 echo "${ECHO_T}$ac_res" >&6; }
14568 else
14569   # Is the header compilable?
14570 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14571 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14572 cat >conftest.$ac_ext <<_ACEOF
14573 /* confdefs.h.  */
14574 _ACEOF
14575 cat confdefs.h >>conftest.$ac_ext
14576 cat >>conftest.$ac_ext <<_ACEOF
14577 /* end confdefs.h.  */
14578 $ac_includes_default
14579 #include <$ac_header>
14580 _ACEOF
14581 rm -f conftest.$ac_objext
14582 if { (ac_try="$ac_compile"
14583 case "(($ac_try" in
14584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14585   *) ac_try_echo=$ac_try;;
14586 esac
14587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14588   (eval "$ac_compile") 2>conftest.er1
14589   ac_status=$?
14590   grep -v '^ *+' conftest.er1 >conftest.err
14591   rm -f conftest.er1
14592   cat conftest.err >&5
14593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594   (exit $ac_status); } &&
14595          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14596   { (case "(($ac_try" in
14597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14598   *) ac_try_echo=$ac_try;;
14599 esac
14600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14601   (eval "$ac_try") 2>&5
14602   ac_status=$?
14603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604   (exit $ac_status); }; } &&
14605          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14615   ac_header_compiler=yes
14616 else
14617   echo "$as_me: failed program was:" >&5
14618 sed 's/^/| /' conftest.$ac_ext >&5
14619
14620         ac_header_compiler=no
14621 fi
14622
14623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14624 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14625 echo "${ECHO_T}$ac_header_compiler" >&6; }
14626
14627 # Is the header present?
14628 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14629 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14630 cat >conftest.$ac_ext <<_ACEOF
14631 /* confdefs.h.  */
14632 _ACEOF
14633 cat confdefs.h >>conftest.$ac_ext
14634 cat >>conftest.$ac_ext <<_ACEOF
14635 /* end confdefs.h.  */
14636 #include <$ac_header>
14637 _ACEOF
14638 if { (ac_try="$ac_cpp conftest.$ac_ext"
14639 case "(($ac_try" in
14640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14641   *) ac_try_echo=$ac_try;;
14642 esac
14643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14644   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14645   ac_status=$?
14646   grep -v '^ *+' conftest.er1 >conftest.err
14647   rm -f conftest.er1
14648   cat conftest.err >&5
14649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650   (exit $ac_status); } >/dev/null; then
14651   if test -s conftest.err; then
14652     ac_cpp_err=$ac_c_preproc_warn_flag
14653     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14654   else
14655     ac_cpp_err=
14656   fi
14657 else
14658   ac_cpp_err=yes
14659 fi
14660 if test -z "$ac_cpp_err"; then
14661   ac_header_preproc=yes
14662 else
14663   echo "$as_me: failed program was:" >&5
14664 sed 's/^/| /' conftest.$ac_ext >&5
14665
14666   ac_header_preproc=no
14667 fi
14668
14669 rm -f conftest.err conftest.$ac_ext
14670 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14671 echo "${ECHO_T}$ac_header_preproc" >&6; }
14672
14673 # So?  What about this header?
14674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14675   yes:no: )
14676     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14677 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14678     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14679 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14680     ac_header_preproc=yes
14681     ;;
14682   no:yes:* )
14683     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14684 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14685     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14686 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14687     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14688 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14689     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14690 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14691     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14692 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14693     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14694 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14695     ( cat <<\_ASBOX
14696 ## ------------------------------ ##
14697 ## Report this to bugs@yourdomain ##
14698 ## ------------------------------ ##
14699 _ASBOX
14700      ) | sed "s/^/$as_me: WARNING:     /" >&2
14701     ;;
14702 esac
14703 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14706   echo $ECHO_N "(cached) $ECHO_C" >&6
14707 else
14708   eval "$as_ac_Header=\$ac_header_preproc"
14709 fi
14710 ac_res=`eval echo '${'$as_ac_Header'}'`
14711                { echo "$as_me:$LINENO: result: $ac_res" >&5
14712 echo "${ECHO_T}$ac_res" >&6; }
14713
14714 fi
14715 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14716   cat >>confdefs.h <<_ACEOF
14717 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14718 _ACEOF
14719
14720 fi
14721
14722 done
14723
14724
14725
14726
14727
14728
14729 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14730 do
14731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14733   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14736   echo $ECHO_N "(cached) $ECHO_C" >&6
14737 fi
14738 ac_res=`eval echo '${'$as_ac_Header'}'`
14739                { echo "$as_me:$LINENO: result: $ac_res" >&5
14740 echo "${ECHO_T}$ac_res" >&6; }
14741 else
14742   # Is the header compilable?
14743 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14745 cat >conftest.$ac_ext <<_ACEOF
14746 /* confdefs.h.  */
14747 _ACEOF
14748 cat confdefs.h >>conftest.$ac_ext
14749 cat >>conftest.$ac_ext <<_ACEOF
14750 /* end confdefs.h.  */
14751 $ac_includes_default
14752 #include <$ac_header>
14753 _ACEOF
14754 rm -f conftest.$ac_objext
14755 if { (ac_try="$ac_compile"
14756 case "(($ac_try" in
14757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14758   *) ac_try_echo=$ac_try;;
14759 esac
14760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14761   (eval "$ac_compile") 2>conftest.er1
14762   ac_status=$?
14763   grep -v '^ *+' conftest.er1 >conftest.err
14764   rm -f conftest.er1
14765   cat conftest.err >&5
14766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767   (exit $ac_status); } &&
14768          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14769   { (case "(($ac_try" in
14770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14771   *) ac_try_echo=$ac_try;;
14772 esac
14773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14774   (eval "$ac_try") 2>&5
14775   ac_status=$?
14776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777   (exit $ac_status); }; } &&
14778          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14788   ac_header_compiler=yes
14789 else
14790   echo "$as_me: failed program was:" >&5
14791 sed 's/^/| /' conftest.$ac_ext >&5
14792
14793         ac_header_compiler=no
14794 fi
14795
14796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14797 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14798 echo "${ECHO_T}$ac_header_compiler" >&6; }
14799
14800 # Is the header present?
14801 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14803 cat >conftest.$ac_ext <<_ACEOF
14804 /* confdefs.h.  */
14805 _ACEOF
14806 cat confdefs.h >>conftest.$ac_ext
14807 cat >>conftest.$ac_ext <<_ACEOF
14808 /* end confdefs.h.  */
14809 #include <$ac_header>
14810 _ACEOF
14811 if { (ac_try="$ac_cpp conftest.$ac_ext"
14812 case "(($ac_try" in
14813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14814   *) ac_try_echo=$ac_try;;
14815 esac
14816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14817   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14818   ac_status=$?
14819   grep -v '^ *+' conftest.er1 >conftest.err
14820   rm -f conftest.er1
14821   cat conftest.err >&5
14822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823   (exit $ac_status); } >/dev/null; then
14824   if test -s conftest.err; then
14825     ac_cpp_err=$ac_c_preproc_warn_flag
14826     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14827   else
14828     ac_cpp_err=
14829   fi
14830 else
14831   ac_cpp_err=yes
14832 fi
14833 if test -z "$ac_cpp_err"; then
14834   ac_header_preproc=yes
14835 else
14836   echo "$as_me: failed program was:" >&5
14837 sed 's/^/| /' conftest.$ac_ext >&5
14838
14839   ac_header_preproc=no
14840 fi
14841
14842 rm -f conftest.err conftest.$ac_ext
14843 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14844 echo "${ECHO_T}$ac_header_preproc" >&6; }
14845
14846 # So?  What about this header?
14847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14848   yes:no: )
14849     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14850 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14851     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14852 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14853     ac_header_preproc=yes
14854     ;;
14855   no:yes:* )
14856     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14857 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14858     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14859 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14860     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14861 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14862     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14863 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14864     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14865 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14866     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14867 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14868     ( cat <<\_ASBOX
14869 ## ------------------------------ ##
14870 ## Report this to bugs@yourdomain ##
14871 ## ------------------------------ ##
14872 _ASBOX
14873      ) | sed "s/^/$as_me: WARNING:     /" >&2
14874     ;;
14875 esac
14876 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14879   echo $ECHO_N "(cached) $ECHO_C" >&6
14880 else
14881   eval "$as_ac_Header=\$ac_header_preproc"
14882 fi
14883 ac_res=`eval echo '${'$as_ac_Header'}'`
14884                { echo "$as_me:$LINENO: result: $ac_res" >&5
14885 echo "${ECHO_T}$ac_res" >&6; }
14886
14887 fi
14888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14889   cat >>confdefs.h <<_ACEOF
14890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14891 _ACEOF
14892
14893 fi
14894
14895 done
14896
14897
14898
14899
14900
14901 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14902 do
14903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14905   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14908   echo $ECHO_N "(cached) $ECHO_C" >&6
14909 fi
14910 ac_res=`eval echo '${'$as_ac_Header'}'`
14911                { echo "$as_me:$LINENO: result: $ac_res" >&5
14912 echo "${ECHO_T}$ac_res" >&6; }
14913 else
14914   # Is the header compilable?
14915 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14916 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14917 cat >conftest.$ac_ext <<_ACEOF
14918 /* confdefs.h.  */
14919 _ACEOF
14920 cat confdefs.h >>conftest.$ac_ext
14921 cat >>conftest.$ac_ext <<_ACEOF
14922 /* end confdefs.h.  */
14923 $ac_includes_default
14924 #include <$ac_header>
14925 _ACEOF
14926 rm -f conftest.$ac_objext
14927 if { (ac_try="$ac_compile"
14928 case "(($ac_try" in
14929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14930   *) ac_try_echo=$ac_try;;
14931 esac
14932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14933   (eval "$ac_compile") 2>conftest.er1
14934   ac_status=$?
14935   grep -v '^ *+' conftest.er1 >conftest.err
14936   rm -f conftest.er1
14937   cat conftest.err >&5
14938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939   (exit $ac_status); } &&
14940          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14941   { (case "(($ac_try" in
14942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14943   *) ac_try_echo=$ac_try;;
14944 esac
14945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14946   (eval "$ac_try") 2>&5
14947   ac_status=$?
14948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949   (exit $ac_status); }; } &&
14950          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14960   ac_header_compiler=yes
14961 else
14962   echo "$as_me: failed program was:" >&5
14963 sed 's/^/| /' conftest.$ac_ext >&5
14964
14965         ac_header_compiler=no
14966 fi
14967
14968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14969 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14970 echo "${ECHO_T}$ac_header_compiler" >&6; }
14971
14972 # Is the header present?
14973 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14974 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14975 cat >conftest.$ac_ext <<_ACEOF
14976 /* confdefs.h.  */
14977 _ACEOF
14978 cat confdefs.h >>conftest.$ac_ext
14979 cat >>conftest.$ac_ext <<_ACEOF
14980 /* end confdefs.h.  */
14981 #include <$ac_header>
14982 _ACEOF
14983 if { (ac_try="$ac_cpp conftest.$ac_ext"
14984 case "(($ac_try" in
14985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14986   *) ac_try_echo=$ac_try;;
14987 esac
14988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14989   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14990   ac_status=$?
14991   grep -v '^ *+' conftest.er1 >conftest.err
14992   rm -f conftest.er1
14993   cat conftest.err >&5
14994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995   (exit $ac_status); } >/dev/null; then
14996   if test -s conftest.err; then
14997     ac_cpp_err=$ac_c_preproc_warn_flag
14998     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14999   else
15000     ac_cpp_err=
15001   fi
15002 else
15003   ac_cpp_err=yes
15004 fi
15005 if test -z "$ac_cpp_err"; then
15006   ac_header_preproc=yes
15007 else
15008   echo "$as_me: failed program was:" >&5
15009 sed 's/^/| /' conftest.$ac_ext >&5
15010
15011   ac_header_preproc=no
15012 fi
15013
15014 rm -f conftest.err conftest.$ac_ext
15015 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15016 echo "${ECHO_T}$ac_header_preproc" >&6; }
15017
15018 # So?  What about this header?
15019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15020   yes:no: )
15021     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15022 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15023     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15024 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15025     ac_header_preproc=yes
15026     ;;
15027   no:yes:* )
15028     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15029 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15030     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15031 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15032     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15033 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15034     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15035 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15036     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15037 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15038     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15039 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15040     ( cat <<\_ASBOX
15041 ## ------------------------------ ##
15042 ## Report this to bugs@yourdomain ##
15043 ## ------------------------------ ##
15044 _ASBOX
15045      ) | sed "s/^/$as_me: WARNING:     /" >&2
15046     ;;
15047 esac
15048 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15051   echo $ECHO_N "(cached) $ECHO_C" >&6
15052 else
15053   eval "$as_ac_Header=\$ac_header_preproc"
15054 fi
15055 ac_res=`eval echo '${'$as_ac_Header'}'`
15056                { echo "$as_me:$LINENO: result: $ac_res" >&5
15057 echo "${ECHO_T}$ac_res" >&6; }
15058
15059 fi
15060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15061   cat >>confdefs.h <<_ACEOF
15062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15063 _ACEOF
15064
15065 fi
15066
15067 done
15068
15069
15070 for ac_header in valgrind/valgrind.h
15071 do
15072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15074   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15077   echo $ECHO_N "(cached) $ECHO_C" >&6
15078 fi
15079 ac_res=`eval echo '${'$as_ac_Header'}'`
15080                { echo "$as_me:$LINENO: result: $ac_res" >&5
15081 echo "${ECHO_T}$ac_res" >&6; }
15082 else
15083   # Is the header compilable?
15084 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15085 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15086 cat >conftest.$ac_ext <<_ACEOF
15087 /* confdefs.h.  */
15088 _ACEOF
15089 cat confdefs.h >>conftest.$ac_ext
15090 cat >>conftest.$ac_ext <<_ACEOF
15091 /* end confdefs.h.  */
15092 $ac_includes_default
15093 #include <$ac_header>
15094 _ACEOF
15095 rm -f conftest.$ac_objext
15096 if { (ac_try="$ac_compile"
15097 case "(($ac_try" in
15098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15099   *) ac_try_echo=$ac_try;;
15100 esac
15101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15102   (eval "$ac_compile") 2>conftest.er1
15103   ac_status=$?
15104   grep -v '^ *+' conftest.er1 >conftest.err
15105   rm -f conftest.er1
15106   cat conftest.err >&5
15107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108   (exit $ac_status); } &&
15109          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15110   { (case "(($ac_try" in
15111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15112   *) ac_try_echo=$ac_try;;
15113 esac
15114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15115   (eval "$ac_try") 2>&5
15116   ac_status=$?
15117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118   (exit $ac_status); }; } &&
15119          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15129   ac_header_compiler=yes
15130 else
15131   echo "$as_me: failed program was:" >&5
15132 sed 's/^/| /' conftest.$ac_ext >&5
15133
15134         ac_header_compiler=no
15135 fi
15136
15137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15138 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15139 echo "${ECHO_T}$ac_header_compiler" >&6; }
15140
15141 # Is the header present?
15142 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15143 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15144 cat >conftest.$ac_ext <<_ACEOF
15145 /* confdefs.h.  */
15146 _ACEOF
15147 cat confdefs.h >>conftest.$ac_ext
15148 cat >>conftest.$ac_ext <<_ACEOF
15149 /* end confdefs.h.  */
15150 #include <$ac_header>
15151 _ACEOF
15152 if { (ac_try="$ac_cpp conftest.$ac_ext"
15153 case "(($ac_try" in
15154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15155   *) ac_try_echo=$ac_try;;
15156 esac
15157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15158   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15159   ac_status=$?
15160   grep -v '^ *+' conftest.er1 >conftest.err
15161   rm -f conftest.er1
15162   cat conftest.err >&5
15163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164   (exit $ac_status); } >/dev/null; then
15165   if test -s conftest.err; then
15166     ac_cpp_err=$ac_c_preproc_warn_flag
15167     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15168   else
15169     ac_cpp_err=
15170   fi
15171 else
15172   ac_cpp_err=yes
15173 fi
15174 if test -z "$ac_cpp_err"; then
15175   ac_header_preproc=yes
15176 else
15177   echo "$as_me: failed program was:" >&5
15178 sed 's/^/| /' conftest.$ac_ext >&5
15179
15180   ac_header_preproc=no
15181 fi
15182
15183 rm -f conftest.err conftest.$ac_ext
15184 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15185 echo "${ECHO_T}$ac_header_preproc" >&6; }
15186
15187 # So?  What about this header?
15188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15189   yes:no: )
15190     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15191 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15192     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15193 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15194     ac_header_preproc=yes
15195     ;;
15196   no:yes:* )
15197     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15198 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15199     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15200 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15201     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15202 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15203     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15204 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15205     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15207     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15208 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15209     ( cat <<\_ASBOX
15210 ## ------------------------------ ##
15211 ## Report this to bugs@yourdomain ##
15212 ## ------------------------------ ##
15213 _ASBOX
15214      ) | sed "s/^/$as_me: WARNING:     /" >&2
15215     ;;
15216 esac
15217 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15220   echo $ECHO_N "(cached) $ECHO_C" >&6
15221 else
15222   eval "$as_ac_Header=\$ac_header_preproc"
15223 fi
15224 ac_res=`eval echo '${'$as_ac_Header'}'`
15225                { echo "$as_me:$LINENO: result: $ac_res" >&5
15226 echo "${ECHO_T}$ac_res" >&6; }
15227
15228 fi
15229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15230   cat >>confdefs.h <<_ACEOF
15231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15232 _ACEOF
15233
15234 fi
15235
15236 done
15237
15238
15239 for ac_header in fenv.h
15240 do
15241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15243   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15246   echo $ECHO_N "(cached) $ECHO_C" >&6
15247 fi
15248 ac_res=`eval echo '${'$as_ac_Header'}'`
15249                { echo "$as_me:$LINENO: result: $ac_res" >&5
15250 echo "${ECHO_T}$ac_res" >&6; }
15251 else
15252   # Is the header compilable?
15253 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15254 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15255 cat >conftest.$ac_ext <<_ACEOF
15256 /* confdefs.h.  */
15257 _ACEOF
15258 cat confdefs.h >>conftest.$ac_ext
15259 cat >>conftest.$ac_ext <<_ACEOF
15260 /* end confdefs.h.  */
15261 $ac_includes_default
15262 #include <$ac_header>
15263 _ACEOF
15264 rm -f conftest.$ac_objext
15265 if { (ac_try="$ac_compile"
15266 case "(($ac_try" in
15267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15268   *) ac_try_echo=$ac_try;;
15269 esac
15270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15271   (eval "$ac_compile") 2>conftest.er1
15272   ac_status=$?
15273   grep -v '^ *+' conftest.er1 >conftest.err
15274   rm -f conftest.er1
15275   cat conftest.err >&5
15276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277   (exit $ac_status); } &&
15278          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15279   { (case "(($ac_try" in
15280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15281   *) ac_try_echo=$ac_try;;
15282 esac
15283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15284   (eval "$ac_try") 2>&5
15285   ac_status=$?
15286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287   (exit $ac_status); }; } &&
15288          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15298   ac_header_compiler=yes
15299 else
15300   echo "$as_me: failed program was:" >&5
15301 sed 's/^/| /' conftest.$ac_ext >&5
15302
15303         ac_header_compiler=no
15304 fi
15305
15306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15307 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15308 echo "${ECHO_T}$ac_header_compiler" >&6; }
15309
15310 # Is the header present?
15311 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15312 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15313 cat >conftest.$ac_ext <<_ACEOF
15314 /* confdefs.h.  */
15315 _ACEOF
15316 cat confdefs.h >>conftest.$ac_ext
15317 cat >>conftest.$ac_ext <<_ACEOF
15318 /* end confdefs.h.  */
15319 #include <$ac_header>
15320 _ACEOF
15321 if { (ac_try="$ac_cpp conftest.$ac_ext"
15322 case "(($ac_try" in
15323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15324   *) ac_try_echo=$ac_try;;
15325 esac
15326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15327   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15328   ac_status=$?
15329   grep -v '^ *+' conftest.er1 >conftest.err
15330   rm -f conftest.er1
15331   cat conftest.err >&5
15332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333   (exit $ac_status); } >/dev/null; then
15334   if test -s conftest.err; then
15335     ac_cpp_err=$ac_c_preproc_warn_flag
15336     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15337   else
15338     ac_cpp_err=
15339   fi
15340 else
15341   ac_cpp_err=yes
15342 fi
15343 if test -z "$ac_cpp_err"; then
15344   ac_header_preproc=yes
15345 else
15346   echo "$as_me: failed program was:" >&5
15347 sed 's/^/| /' conftest.$ac_ext >&5
15348
15349   ac_header_preproc=no
15350 fi
15351
15352 rm -f conftest.err conftest.$ac_ext
15353 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15354 echo "${ECHO_T}$ac_header_preproc" >&6; }
15355
15356 # So?  What about this header?
15357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15358   yes:no: )
15359     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15360 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15361     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15362 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15363     ac_header_preproc=yes
15364     ;;
15365   no:yes:* )
15366     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15367 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15368     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15369 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15370     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15371 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15372     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15373 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15374     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15375 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15376     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15377 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15378     ( cat <<\_ASBOX
15379 ## ------------------------------ ##
15380 ## Report this to bugs@yourdomain ##
15381 ## ------------------------------ ##
15382 _ASBOX
15383      ) | sed "s/^/$as_me: WARNING:     /" >&2
15384     ;;
15385 esac
15386 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15389   echo $ECHO_N "(cached) $ECHO_C" >&6
15390 else
15391   eval "$as_ac_Header=\$ac_header_preproc"
15392 fi
15393 ac_res=`eval echo '${'$as_ac_Header'}'`
15394                { echo "$as_me:$LINENO: result: $ac_res" >&5
15395 echo "${ECHO_T}$ac_res" >&6; }
15396
15397 fi
15398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15399   cat >>confdefs.h <<_ACEOF
15400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15401 _ACEOF
15402
15403 fi
15404
15405 done
15406
15407 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15408
15409 for ac_header in pthread.h
15410 do
15411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15413   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15416   echo $ECHO_N "(cached) $ECHO_C" >&6
15417 fi
15418 ac_res=`eval echo '${'$as_ac_Header'}'`
15419                { echo "$as_me:$LINENO: result: $ac_res" >&5
15420 echo "${ECHO_T}$ac_res" >&6; }
15421 else
15422   # Is the header compilable?
15423 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15424 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15425 cat >conftest.$ac_ext <<_ACEOF
15426 /* confdefs.h.  */
15427 _ACEOF
15428 cat confdefs.h >>conftest.$ac_ext
15429 cat >>conftest.$ac_ext <<_ACEOF
15430 /* end confdefs.h.  */
15431 $ac_includes_default
15432 #include <$ac_header>
15433 _ACEOF
15434 rm -f conftest.$ac_objext
15435 if { (ac_try="$ac_compile"
15436 case "(($ac_try" in
15437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15438   *) ac_try_echo=$ac_try;;
15439 esac
15440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15441   (eval "$ac_compile") 2>conftest.er1
15442   ac_status=$?
15443   grep -v '^ *+' conftest.er1 >conftest.err
15444   rm -f conftest.er1
15445   cat conftest.err >&5
15446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447   (exit $ac_status); } &&
15448          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15449   { (case "(($ac_try" in
15450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15451   *) ac_try_echo=$ac_try;;
15452 esac
15453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15454   (eval "$ac_try") 2>&5
15455   ac_status=$?
15456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457   (exit $ac_status); }; } &&
15458          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15468   ac_header_compiler=yes
15469 else
15470   echo "$as_me: failed program was:" >&5
15471 sed 's/^/| /' conftest.$ac_ext >&5
15472
15473         ac_header_compiler=no
15474 fi
15475
15476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15477 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15478 echo "${ECHO_T}$ac_header_compiler" >&6; }
15479
15480 # Is the header present?
15481 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15482 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15483 cat >conftest.$ac_ext <<_ACEOF
15484 /* confdefs.h.  */
15485 _ACEOF
15486 cat confdefs.h >>conftest.$ac_ext
15487 cat >>conftest.$ac_ext <<_ACEOF
15488 /* end confdefs.h.  */
15489 #include <$ac_header>
15490 _ACEOF
15491 if { (ac_try="$ac_cpp conftest.$ac_ext"
15492 case "(($ac_try" in
15493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15494   *) ac_try_echo=$ac_try;;
15495 esac
15496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15497   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15498   ac_status=$?
15499   grep -v '^ *+' conftest.er1 >conftest.err
15500   rm -f conftest.er1
15501   cat conftest.err >&5
15502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503   (exit $ac_status); } >/dev/null; then
15504   if test -s conftest.err; then
15505     ac_cpp_err=$ac_c_preproc_warn_flag
15506     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15507   else
15508     ac_cpp_err=
15509   fi
15510 else
15511   ac_cpp_err=yes
15512 fi
15513 if test -z "$ac_cpp_err"; then
15514   ac_header_preproc=yes
15515 else
15516   echo "$as_me: failed program was:" >&5
15517 sed 's/^/| /' conftest.$ac_ext >&5
15518
15519   ac_header_preproc=no
15520 fi
15521
15522 rm -f conftest.err conftest.$ac_ext
15523 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15524 echo "${ECHO_T}$ac_header_preproc" >&6; }
15525
15526 # So?  What about this header?
15527 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15528   yes:no: )
15529     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15530 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15531     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15532 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15533     ac_header_preproc=yes
15534     ;;
15535   no:yes:* )
15536     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15537 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15538     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15539 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15540     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15541 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15542     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15543 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15544     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15545 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15546     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15547 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15548     ( cat <<\_ASBOX
15549 ## ------------------------------ ##
15550 ## Report this to bugs@yourdomain ##
15551 ## ------------------------------ ##
15552 _ASBOX
15553      ) | sed "s/^/$as_me: WARNING:     /" >&2
15554     ;;
15555 esac
15556 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15559   echo $ECHO_N "(cached) $ECHO_C" >&6
15560 else
15561   eval "$as_ac_Header=\$ac_header_preproc"
15562 fi
15563 ac_res=`eval echo '${'$as_ac_Header'}'`
15564                { echo "$as_me:$LINENO: result: $ac_res" >&5
15565 echo "${ECHO_T}$ac_res" >&6; }
15566
15567 fi
15568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15569   cat >>confdefs.h <<_ACEOF
15570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15571 _ACEOF
15572  HAVE_PTHREAD=1
15573
15574 else
15575   HAVE_PTHREAD=0
15576
15577 fi
15578
15579 done
15580
15581 else
15582   HAVE_PTHREAD=0
15583
15584 fi
15585
15586 if test "$llvm_cv_enable_libffi" = "yes" ; then
15587
15588
15589 for ac_header in ffi.h ffi/ffi.h
15590 do
15591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15593   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15596   echo $ECHO_N "(cached) $ECHO_C" >&6
15597 fi
15598 ac_res=`eval echo '${'$as_ac_Header'}'`
15599                { echo "$as_me:$LINENO: result: $ac_res" >&5
15600 echo "${ECHO_T}$ac_res" >&6; }
15601 else
15602   # Is the header compilable?
15603 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15605 cat >conftest.$ac_ext <<_ACEOF
15606 /* confdefs.h.  */
15607 _ACEOF
15608 cat confdefs.h >>conftest.$ac_ext
15609 cat >>conftest.$ac_ext <<_ACEOF
15610 /* end confdefs.h.  */
15611 $ac_includes_default
15612 #include <$ac_header>
15613 _ACEOF
15614 rm -f conftest.$ac_objext
15615 if { (ac_try="$ac_compile"
15616 case "(($ac_try" in
15617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15618   *) ac_try_echo=$ac_try;;
15619 esac
15620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15621   (eval "$ac_compile") 2>conftest.er1
15622   ac_status=$?
15623   grep -v '^ *+' conftest.er1 >conftest.err
15624   rm -f conftest.er1
15625   cat conftest.err >&5
15626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627   (exit $ac_status); } &&
15628          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15629   { (case "(($ac_try" in
15630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15631   *) ac_try_echo=$ac_try;;
15632 esac
15633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15634   (eval "$ac_try") 2>&5
15635   ac_status=$?
15636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637   (exit $ac_status); }; } &&
15638          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15648   ac_header_compiler=yes
15649 else
15650   echo "$as_me: failed program was:" >&5
15651 sed 's/^/| /' conftest.$ac_ext >&5
15652
15653         ac_header_compiler=no
15654 fi
15655
15656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15657 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15658 echo "${ECHO_T}$ac_header_compiler" >&6; }
15659
15660 # Is the header present?
15661 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15662 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15663 cat >conftest.$ac_ext <<_ACEOF
15664 /* confdefs.h.  */
15665 _ACEOF
15666 cat confdefs.h >>conftest.$ac_ext
15667 cat >>conftest.$ac_ext <<_ACEOF
15668 /* end confdefs.h.  */
15669 #include <$ac_header>
15670 _ACEOF
15671 if { (ac_try="$ac_cpp conftest.$ac_ext"
15672 case "(($ac_try" in
15673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15674   *) ac_try_echo=$ac_try;;
15675 esac
15676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15677   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15678   ac_status=$?
15679   grep -v '^ *+' conftest.er1 >conftest.err
15680   rm -f conftest.er1
15681   cat conftest.err >&5
15682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683   (exit $ac_status); } >/dev/null; then
15684   if test -s conftest.err; then
15685     ac_cpp_err=$ac_c_preproc_warn_flag
15686     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15687   else
15688     ac_cpp_err=
15689   fi
15690 else
15691   ac_cpp_err=yes
15692 fi
15693 if test -z "$ac_cpp_err"; then
15694   ac_header_preproc=yes
15695 else
15696   echo "$as_me: failed program was:" >&5
15697 sed 's/^/| /' conftest.$ac_ext >&5
15698
15699   ac_header_preproc=no
15700 fi
15701
15702 rm -f conftest.err conftest.$ac_ext
15703 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15704 echo "${ECHO_T}$ac_header_preproc" >&6; }
15705
15706 # So?  What about this header?
15707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15708   yes:no: )
15709     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15710 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15711     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15712 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15713     ac_header_preproc=yes
15714     ;;
15715   no:yes:* )
15716     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15717 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15718     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15719 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15720     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15721 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15722     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15723 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15724     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15725 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15726     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15727 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15728     ( cat <<\_ASBOX
15729 ## ------------------------------ ##
15730 ## Report this to bugs@yourdomain ##
15731 ## ------------------------------ ##
15732 _ASBOX
15733      ) | sed "s/^/$as_me: WARNING:     /" >&2
15734     ;;
15735 esac
15736 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15739   echo $ECHO_N "(cached) $ECHO_C" >&6
15740 else
15741   eval "$as_ac_Header=\$ac_header_preproc"
15742 fi
15743 ac_res=`eval echo '${'$as_ac_Header'}'`
15744                { echo "$as_me:$LINENO: result: $ac_res" >&5
15745 echo "${ECHO_T}$ac_res" >&6; }
15746
15747 fi
15748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15749   cat >>confdefs.h <<_ACEOF
15750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15751 _ACEOF
15752
15753 fi
15754
15755 done
15756
15757 fi
15758
15759
15760 for ac_header in CrashReporterClient.h
15761 do
15762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15764   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15767   echo $ECHO_N "(cached) $ECHO_C" >&6
15768 fi
15769 ac_res=`eval echo '${'$as_ac_Header'}'`
15770                { echo "$as_me:$LINENO: result: $ac_res" >&5
15771 echo "${ECHO_T}$ac_res" >&6; }
15772 else
15773   # Is the header compilable?
15774 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15775 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15776 cat >conftest.$ac_ext <<_ACEOF
15777 /* confdefs.h.  */
15778 _ACEOF
15779 cat confdefs.h >>conftest.$ac_ext
15780 cat >>conftest.$ac_ext <<_ACEOF
15781 /* end confdefs.h.  */
15782 $ac_includes_default
15783 #include <$ac_header>
15784 _ACEOF
15785 rm -f conftest.$ac_objext
15786 if { (ac_try="$ac_compile"
15787 case "(($ac_try" in
15788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15789   *) ac_try_echo=$ac_try;;
15790 esac
15791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15792   (eval "$ac_compile") 2>conftest.er1
15793   ac_status=$?
15794   grep -v '^ *+' conftest.er1 >conftest.err
15795   rm -f conftest.er1
15796   cat conftest.err >&5
15797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798   (exit $ac_status); } &&
15799          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15800   { (case "(($ac_try" in
15801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15802   *) ac_try_echo=$ac_try;;
15803 esac
15804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15805   (eval "$ac_try") 2>&5
15806   ac_status=$?
15807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808   (exit $ac_status); }; } &&
15809          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15819   ac_header_compiler=yes
15820 else
15821   echo "$as_me: failed program was:" >&5
15822 sed 's/^/| /' conftest.$ac_ext >&5
15823
15824         ac_header_compiler=no
15825 fi
15826
15827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15828 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15829 echo "${ECHO_T}$ac_header_compiler" >&6; }
15830
15831 # Is the header present?
15832 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15833 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15834 cat >conftest.$ac_ext <<_ACEOF
15835 /* confdefs.h.  */
15836 _ACEOF
15837 cat confdefs.h >>conftest.$ac_ext
15838 cat >>conftest.$ac_ext <<_ACEOF
15839 /* end confdefs.h.  */
15840 #include <$ac_header>
15841 _ACEOF
15842 if { (ac_try="$ac_cpp conftest.$ac_ext"
15843 case "(($ac_try" in
15844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15845   *) ac_try_echo=$ac_try;;
15846 esac
15847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15848   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15849   ac_status=$?
15850   grep -v '^ *+' conftest.er1 >conftest.err
15851   rm -f conftest.er1
15852   cat conftest.err >&5
15853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854   (exit $ac_status); } >/dev/null; then
15855   if test -s conftest.err; then
15856     ac_cpp_err=$ac_c_preproc_warn_flag
15857     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15858   else
15859     ac_cpp_err=
15860   fi
15861 else
15862   ac_cpp_err=yes
15863 fi
15864 if test -z "$ac_cpp_err"; then
15865   ac_header_preproc=yes
15866 else
15867   echo "$as_me: failed program was:" >&5
15868 sed 's/^/| /' conftest.$ac_ext >&5
15869
15870   ac_header_preproc=no
15871 fi
15872
15873 rm -f conftest.err conftest.$ac_ext
15874 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15875 echo "${ECHO_T}$ac_header_preproc" >&6; }
15876
15877 # So?  What about this header?
15878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15879   yes:no: )
15880     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15882     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15883 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15884     ac_header_preproc=yes
15885     ;;
15886   no:yes:* )
15887     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15889     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15890 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15891     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15892 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15893     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15894 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15895     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15897     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15898 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15899     ( cat <<\_ASBOX
15900 ## ------------------------------ ##
15901 ## Report this to bugs@yourdomain ##
15902 ## ------------------------------ ##
15903 _ASBOX
15904      ) | sed "s/^/$as_me: WARNING:     /" >&2
15905     ;;
15906 esac
15907 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15910   echo $ECHO_N "(cached) $ECHO_C" >&6
15911 else
15912   eval "$as_ac_Header=\$ac_header_preproc"
15913 fi
15914 ac_res=`eval echo '${'$as_ac_Header'}'`
15915                { echo "$as_me:$LINENO: result: $ac_res" >&5
15916 echo "${ECHO_T}$ac_res" >&6; }
15917
15918 fi
15919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15920   cat >>confdefs.h <<_ACEOF
15921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15922 _ACEOF
15923
15924 fi
15925
15926 done
15927
15928
15929 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15930 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15931 cat >conftest.$ac_ext <<_ACEOF
15932 /* confdefs.h.  */
15933 _ACEOF
15934 cat confdefs.h >>conftest.$ac_ext
15935 cat >>conftest.$ac_ext <<_ACEOF
15936 /* end confdefs.h.  */
15937 extern const char *__crashreporter_info__;
15938       int main() {
15939         __crashreporter_info__ = "test";
15940         return 0;
15941       }
15942
15943 _ACEOF
15944 rm -f conftest.$ac_objext conftest$ac_exeext
15945 if { (ac_try="$ac_link"
15946 case "(($ac_try" in
15947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15948   *) ac_try_echo=$ac_try;;
15949 esac
15950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15951   (eval "$ac_link") 2>conftest.er1
15952   ac_status=$?
15953   grep -v '^ *+' conftest.er1 >conftest.err
15954   rm -f conftest.er1
15955   cat conftest.err >&5
15956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957   (exit $ac_status); } &&
15958          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15959   { (case "(($ac_try" in
15960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15961   *) ac_try_echo=$ac_try;;
15962 esac
15963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15964   (eval "$ac_try") 2>&5
15965   ac_status=$?
15966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967   (exit $ac_status); }; } &&
15968          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15978   { echo "$as_me:$LINENO: result: yes" >&5
15979 echo "${ECHO_T}yes" >&6; }
15980
15981 cat >>confdefs.h <<\_ACEOF
15982 #define HAVE_CRASHREPORTER_INFO 1
15983 _ACEOF
15984
15985 else
15986   echo "$as_me: failed program was:" >&5
15987 sed 's/^/| /' conftest.$ac_ext >&5
15988
15989         { echo "$as_me:$LINENO: result: no" >&5
15990 echo "${ECHO_T}no" >&6; }
15991
15992 cat >>confdefs.h <<\_ACEOF
15993 #define HAVE_CRASHREPORTER_INFO 0
15994 _ACEOF
15995
15996 fi
15997
15998 rm -f core conftest.err conftest.$ac_objext \
15999       conftest$ac_exeext conftest.$ac_ext
16000
16001
16002
16003
16004   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16005 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16006 if test "${ac_cv_huge_val_sanity+set}" = set; then
16007   echo $ECHO_N "(cached) $ECHO_C" >&6
16008 else
16009
16010     ac_ext=cpp
16011 ac_cpp='$CXXCPP $CPPFLAGS'
16012 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16013 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16014 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16015
16016     ac_save_CXXFLAGS=$CXXFLAGS
16017     CXXFLAGS="$CXXFLAGS -pedantic"
16018     if test "$cross_compiling" = yes; then
16019   ac_cv_huge_val_sanity=yes
16020 else
16021   cat >conftest.$ac_ext <<_ACEOF
16022 /* confdefs.h.  */
16023 _ACEOF
16024 cat confdefs.h >>conftest.$ac_ext
16025 cat >>conftest.$ac_ext <<_ACEOF
16026 /* end confdefs.h.  */
16027 #include <math.h>
16028 int
16029 main ()
16030 {
16031 double x = HUGE_VAL; return x != x;
16032   ;
16033   return 0;
16034 }
16035 _ACEOF
16036 rm -f conftest$ac_exeext
16037 if { (ac_try="$ac_link"
16038 case "(($ac_try" in
16039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16040   *) ac_try_echo=$ac_try;;
16041 esac
16042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16043   (eval "$ac_link") 2>&5
16044   ac_status=$?
16045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16047   { (case "(($ac_try" in
16048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049   *) ac_try_echo=$ac_try;;
16050 esac
16051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16052   (eval "$ac_try") 2>&5
16053   ac_status=$?
16054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055   (exit $ac_status); }; }; then
16056   ac_cv_huge_val_sanity=yes
16057 else
16058   echo "$as_me: program exited with status $ac_status" >&5
16059 echo "$as_me: failed program was:" >&5
16060 sed 's/^/| /' conftest.$ac_ext >&5
16061
16062 ( exit $ac_status )
16063 ac_cv_huge_val_sanity=no
16064 fi
16065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16066 fi
16067
16068
16069     CXXFLAGS=$ac_save_CXXFLAGS
16070     ac_ext=c
16071 ac_cpp='$CPP $CPPFLAGS'
16072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16075
16076
16077 fi
16078 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16079 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16080   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16081
16082
16083 { echo "$as_me:$LINENO: checking for pid_t" >&5
16084 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16085 if test "${ac_cv_type_pid_t+set}" = set; then
16086   echo $ECHO_N "(cached) $ECHO_C" >&6
16087 else
16088   cat >conftest.$ac_ext <<_ACEOF
16089 /* confdefs.h.  */
16090 _ACEOF
16091 cat confdefs.h >>conftest.$ac_ext
16092 cat >>conftest.$ac_ext <<_ACEOF
16093 /* end confdefs.h.  */
16094 $ac_includes_default
16095 typedef pid_t ac__type_new_;
16096 int
16097 main ()
16098 {
16099 if ((ac__type_new_ *) 0)
16100   return 0;
16101 if (sizeof (ac__type_new_))
16102   return 0;
16103   ;
16104   return 0;
16105 }
16106 _ACEOF
16107 rm -f conftest.$ac_objext
16108 if { (ac_try="$ac_compile"
16109 case "(($ac_try" in
16110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16111   *) ac_try_echo=$ac_try;;
16112 esac
16113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16114   (eval "$ac_compile") 2>conftest.er1
16115   ac_status=$?
16116   grep -v '^ *+' conftest.er1 >conftest.err
16117   rm -f conftest.er1
16118   cat conftest.err >&5
16119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120   (exit $ac_status); } &&
16121          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16122   { (case "(($ac_try" in
16123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16124   *) ac_try_echo=$ac_try;;
16125 esac
16126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16127   (eval "$ac_try") 2>&5
16128   ac_status=$?
16129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130   (exit $ac_status); }; } &&
16131          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16141   ac_cv_type_pid_t=yes
16142 else
16143   echo "$as_me: failed program was:" >&5
16144 sed 's/^/| /' conftest.$ac_ext >&5
16145
16146         ac_cv_type_pid_t=no
16147 fi
16148
16149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16150 fi
16151 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16152 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16153 if test $ac_cv_type_pid_t = yes; then
16154   :
16155 else
16156
16157 cat >>confdefs.h <<_ACEOF
16158 #define pid_t int
16159 _ACEOF
16160
16161 fi
16162
16163 { echo "$as_me:$LINENO: checking for size_t" >&5
16164 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16165 if test "${ac_cv_type_size_t+set}" = set; then
16166   echo $ECHO_N "(cached) $ECHO_C" >&6
16167 else
16168   cat >conftest.$ac_ext <<_ACEOF
16169 /* confdefs.h.  */
16170 _ACEOF
16171 cat confdefs.h >>conftest.$ac_ext
16172 cat >>conftest.$ac_ext <<_ACEOF
16173 /* end confdefs.h.  */
16174 $ac_includes_default
16175 typedef size_t ac__type_new_;
16176 int
16177 main ()
16178 {
16179 if ((ac__type_new_ *) 0)
16180   return 0;
16181 if (sizeof (ac__type_new_))
16182   return 0;
16183   ;
16184   return 0;
16185 }
16186 _ACEOF
16187 rm -f conftest.$ac_objext
16188 if { (ac_try="$ac_compile"
16189 case "(($ac_try" in
16190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16191   *) ac_try_echo=$ac_try;;
16192 esac
16193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16194   (eval "$ac_compile") 2>conftest.er1
16195   ac_status=$?
16196   grep -v '^ *+' conftest.er1 >conftest.err
16197   rm -f conftest.er1
16198   cat conftest.err >&5
16199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200   (exit $ac_status); } &&
16201          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16202   { (case "(($ac_try" in
16203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16204   *) ac_try_echo=$ac_try;;
16205 esac
16206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16207   (eval "$ac_try") 2>&5
16208   ac_status=$?
16209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210   (exit $ac_status); }; } &&
16211          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16221   ac_cv_type_size_t=yes
16222 else
16223   echo "$as_me: failed program was:" >&5
16224 sed 's/^/| /' conftest.$ac_ext >&5
16225
16226         ac_cv_type_size_t=no
16227 fi
16228
16229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16230 fi
16231 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16232 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16233 if test $ac_cv_type_size_t = yes; then
16234   :
16235 else
16236
16237 cat >>confdefs.h <<_ACEOF
16238 #define size_t unsigned int
16239 _ACEOF
16240
16241 fi
16242
16243
16244 cat >>confdefs.h <<_ACEOF
16245 #define RETSIGTYPE void
16246 _ACEOF
16247
16248 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16249 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16250 if test "${ac_cv_struct_tm+set}" = set; then
16251   echo $ECHO_N "(cached) $ECHO_C" >&6
16252 else
16253   cat >conftest.$ac_ext <<_ACEOF
16254 /* confdefs.h.  */
16255 _ACEOF
16256 cat confdefs.h >>conftest.$ac_ext
16257 cat >>conftest.$ac_ext <<_ACEOF
16258 /* end confdefs.h.  */
16259 #include <sys/types.h>
16260 #include <time.h>
16261
16262 int
16263 main ()
16264 {
16265 struct tm *tp; tp->tm_sec;
16266   ;
16267   return 0;
16268 }
16269 _ACEOF
16270 rm -f conftest.$ac_objext
16271 if { (ac_try="$ac_compile"
16272 case "(($ac_try" in
16273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16274   *) ac_try_echo=$ac_try;;
16275 esac
16276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16277   (eval "$ac_compile") 2>conftest.er1
16278   ac_status=$?
16279   grep -v '^ *+' conftest.er1 >conftest.err
16280   rm -f conftest.er1
16281   cat conftest.err >&5
16282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283   (exit $ac_status); } &&
16284          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16285   { (case "(($ac_try" in
16286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16287   *) ac_try_echo=$ac_try;;
16288 esac
16289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16290   (eval "$ac_try") 2>&5
16291   ac_status=$?
16292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293   (exit $ac_status); }; } &&
16294          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16304   ac_cv_struct_tm=time.h
16305 else
16306   echo "$as_me: failed program was:" >&5
16307 sed 's/^/| /' conftest.$ac_ext >&5
16308
16309         ac_cv_struct_tm=sys/time.h
16310 fi
16311
16312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16313 fi
16314 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16315 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16316 if test $ac_cv_struct_tm = sys/time.h; then
16317
16318 cat >>confdefs.h <<\_ACEOF
16319 #define TM_IN_SYS_TIME 1
16320 _ACEOF
16321
16322 fi
16323
16324 { echo "$as_me:$LINENO: checking for int64_t" >&5
16325 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16326 if test "${ac_cv_type_int64_t+set}" = set; then
16327   echo $ECHO_N "(cached) $ECHO_C" >&6
16328 else
16329   cat >conftest.$ac_ext <<_ACEOF
16330 /* confdefs.h.  */
16331 _ACEOF
16332 cat confdefs.h >>conftest.$ac_ext
16333 cat >>conftest.$ac_ext <<_ACEOF
16334 /* end confdefs.h.  */
16335 $ac_includes_default
16336 typedef int64_t ac__type_new_;
16337 int
16338 main ()
16339 {
16340 if ((ac__type_new_ *) 0)
16341   return 0;
16342 if (sizeof (ac__type_new_))
16343   return 0;
16344   ;
16345   return 0;
16346 }
16347 _ACEOF
16348 rm -f conftest.$ac_objext
16349 if { (ac_try="$ac_compile"
16350 case "(($ac_try" in
16351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16352   *) ac_try_echo=$ac_try;;
16353 esac
16354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16355   (eval "$ac_compile") 2>conftest.er1
16356   ac_status=$?
16357   grep -v '^ *+' conftest.er1 >conftest.err
16358   rm -f conftest.er1
16359   cat conftest.err >&5
16360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361   (exit $ac_status); } &&
16362          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16363   { (case "(($ac_try" in
16364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16365   *) ac_try_echo=$ac_try;;
16366 esac
16367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16368   (eval "$ac_try") 2>&5
16369   ac_status=$?
16370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371   (exit $ac_status); }; } &&
16372          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16382   ac_cv_type_int64_t=yes
16383 else
16384   echo "$as_me: failed program was:" >&5
16385 sed 's/^/| /' conftest.$ac_ext >&5
16386
16387         ac_cv_type_int64_t=no
16388 fi
16389
16390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16391 fi
16392 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16393 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16394 if test $ac_cv_type_int64_t = yes; then
16395
16396 cat >>confdefs.h <<_ACEOF
16397 #define HAVE_INT64_T 1
16398 _ACEOF
16399
16400
16401 else
16402   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16403 echo "$as_me: error: Type int64_t required but not found" >&2;}
16404    { (exit 1); exit 1; }; }
16405 fi
16406
16407 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16408 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16409 if test "${ac_cv_type_uint64_t+set}" = set; then
16410   echo $ECHO_N "(cached) $ECHO_C" >&6
16411 else
16412   cat >conftest.$ac_ext <<_ACEOF
16413 /* confdefs.h.  */
16414 _ACEOF
16415 cat confdefs.h >>conftest.$ac_ext
16416 cat >>conftest.$ac_ext <<_ACEOF
16417 /* end confdefs.h.  */
16418 $ac_includes_default
16419 typedef uint64_t ac__type_new_;
16420 int
16421 main ()
16422 {
16423 if ((ac__type_new_ *) 0)
16424   return 0;
16425 if (sizeof (ac__type_new_))
16426   return 0;
16427   ;
16428   return 0;
16429 }
16430 _ACEOF
16431 rm -f conftest.$ac_objext
16432 if { (ac_try="$ac_compile"
16433 case "(($ac_try" in
16434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16435   *) ac_try_echo=$ac_try;;
16436 esac
16437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16438   (eval "$ac_compile") 2>conftest.er1
16439   ac_status=$?
16440   grep -v '^ *+' conftest.er1 >conftest.err
16441   rm -f conftest.er1
16442   cat conftest.err >&5
16443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444   (exit $ac_status); } &&
16445          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16446   { (case "(($ac_try" in
16447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16448   *) ac_try_echo=$ac_try;;
16449 esac
16450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16451   (eval "$ac_try") 2>&5
16452   ac_status=$?
16453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454   (exit $ac_status); }; } &&
16455          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16465   ac_cv_type_uint64_t=yes
16466 else
16467   echo "$as_me: failed program was:" >&5
16468 sed 's/^/| /' conftest.$ac_ext >&5
16469
16470         ac_cv_type_uint64_t=no
16471 fi
16472
16473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16474 fi
16475 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16476 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16477 if test $ac_cv_type_uint64_t = yes; then
16478
16479 cat >>confdefs.h <<_ACEOF
16480 #define HAVE_UINT64_T 1
16481 _ACEOF
16482
16483
16484 else
16485   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16486 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16487 if test "${ac_cv_type_u_int64_t+set}" = set; then
16488   echo $ECHO_N "(cached) $ECHO_C" >&6
16489 else
16490   cat >conftest.$ac_ext <<_ACEOF
16491 /* confdefs.h.  */
16492 _ACEOF
16493 cat confdefs.h >>conftest.$ac_ext
16494 cat >>conftest.$ac_ext <<_ACEOF
16495 /* end confdefs.h.  */
16496 $ac_includes_default
16497 typedef u_int64_t ac__type_new_;
16498 int
16499 main ()
16500 {
16501 if ((ac__type_new_ *) 0)
16502   return 0;
16503 if (sizeof (ac__type_new_))
16504   return 0;
16505   ;
16506   return 0;
16507 }
16508 _ACEOF
16509 rm -f conftest.$ac_objext
16510 if { (ac_try="$ac_compile"
16511 case "(($ac_try" in
16512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16513   *) ac_try_echo=$ac_try;;
16514 esac
16515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16516   (eval "$ac_compile") 2>conftest.er1
16517   ac_status=$?
16518   grep -v '^ *+' conftest.er1 >conftest.err
16519   rm -f conftest.er1
16520   cat conftest.err >&5
16521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522   (exit $ac_status); } &&
16523          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16524   { (case "(($ac_try" in
16525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16526   *) ac_try_echo=$ac_try;;
16527 esac
16528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16529   (eval "$ac_try") 2>&5
16530   ac_status=$?
16531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532   (exit $ac_status); }; } &&
16533          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16543   ac_cv_type_u_int64_t=yes
16544 else
16545   echo "$as_me: failed program was:" >&5
16546 sed 's/^/| /' conftest.$ac_ext >&5
16547
16548         ac_cv_type_u_int64_t=no
16549 fi
16550
16551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16552 fi
16553 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16554 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16555 if test $ac_cv_type_u_int64_t = yes; then
16556
16557 cat >>confdefs.h <<_ACEOF
16558 #define HAVE_U_INT64_T 1
16559 _ACEOF
16560
16561
16562 else
16563   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16564 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16565    { (exit 1); exit 1; }; }
16566 fi
16567
16568 fi
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16580 do
16581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16582 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16584 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16585   echo $ECHO_N "(cached) $ECHO_C" >&6
16586 else
16587   cat >conftest.$ac_ext <<_ACEOF
16588 /* confdefs.h.  */
16589 _ACEOF
16590 cat confdefs.h >>conftest.$ac_ext
16591 cat >>conftest.$ac_ext <<_ACEOF
16592 /* end confdefs.h.  */
16593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16594    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16595 #define $ac_func innocuous_$ac_func
16596
16597 /* System header to define __stub macros and hopefully few prototypes,
16598     which can conflict with char $ac_func (); below.
16599     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16600     <limits.h> exists even on freestanding compilers.  */
16601
16602 #ifdef __STDC__
16603 # include <limits.h>
16604 #else
16605 # include <assert.h>
16606 #endif
16607
16608 #undef $ac_func
16609
16610 /* Override any GCC internal prototype to avoid an error.
16611    Use char because int might match the return type of a GCC
16612    builtin and then its argument prototype would still apply.  */
16613 #ifdef __cplusplus
16614 extern "C"
16615 #endif
16616 char $ac_func ();
16617 /* The GNU C library defines this for functions which it implements
16618     to always fail with ENOSYS.  Some functions are actually named
16619     something starting with __ and the normal name is an alias.  */
16620 #if defined __stub_$ac_func || defined __stub___$ac_func
16621 choke me
16622 #endif
16623
16624 int
16625 main ()
16626 {
16627 return $ac_func ();
16628   ;
16629   return 0;
16630 }
16631 _ACEOF
16632 rm -f conftest.$ac_objext conftest$ac_exeext
16633 if { (ac_try="$ac_link"
16634 case "(($ac_try" in
16635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636   *) ac_try_echo=$ac_try;;
16637 esac
16638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16639   (eval "$ac_link") 2>conftest.er1
16640   ac_status=$?
16641   grep -v '^ *+' conftest.er1 >conftest.err
16642   rm -f conftest.er1
16643   cat conftest.err >&5
16644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645   (exit $ac_status); } &&
16646          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16647   { (case "(($ac_try" in
16648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16649   *) ac_try_echo=$ac_try;;
16650 esac
16651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16652   (eval "$ac_try") 2>&5
16653   ac_status=$?
16654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655   (exit $ac_status); }; } &&
16656          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16666   eval "$as_ac_var=yes"
16667 else
16668   echo "$as_me: failed program was:" >&5
16669 sed 's/^/| /' conftest.$ac_ext >&5
16670
16671         eval "$as_ac_var=no"
16672 fi
16673
16674 rm -f core conftest.err conftest.$ac_objext \
16675       conftest$ac_exeext conftest.$ac_ext
16676 fi
16677 ac_res=`eval echo '${'$as_ac_var'}'`
16678                { echo "$as_me:$LINENO: result: $ac_res" >&5
16679 echo "${ECHO_T}$ac_res" >&6; }
16680 if test `eval echo '${'$as_ac_var'}'` = yes; then
16681   cat >>confdefs.h <<_ACEOF
16682 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16683 _ACEOF
16684
16685 fi
16686 done
16687
16688
16689
16690
16691
16692 for ac_func in powf fmodf strtof round
16693 do
16694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16695 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16697 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16698   echo $ECHO_N "(cached) $ECHO_C" >&6
16699 else
16700   cat >conftest.$ac_ext <<_ACEOF
16701 /* confdefs.h.  */
16702 _ACEOF
16703 cat confdefs.h >>conftest.$ac_ext
16704 cat >>conftest.$ac_ext <<_ACEOF
16705 /* end confdefs.h.  */
16706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16707    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16708 #define $ac_func innocuous_$ac_func
16709
16710 /* System header to define __stub macros and hopefully few prototypes,
16711     which can conflict with char $ac_func (); below.
16712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16713     <limits.h> exists even on freestanding compilers.  */
16714
16715 #ifdef __STDC__
16716 # include <limits.h>
16717 #else
16718 # include <assert.h>
16719 #endif
16720
16721 #undef $ac_func
16722
16723 /* Override any GCC internal prototype to avoid an error.
16724    Use char because int might match the return type of a GCC
16725    builtin and then its argument prototype would still apply.  */
16726 #ifdef __cplusplus
16727 extern "C"
16728 #endif
16729 char $ac_func ();
16730 /* The GNU C library defines this for functions which it implements
16731     to always fail with ENOSYS.  Some functions are actually named
16732     something starting with __ and the normal name is an alias.  */
16733 #if defined __stub_$ac_func || defined __stub___$ac_func
16734 choke me
16735 #endif
16736
16737 int
16738 main ()
16739 {
16740 return $ac_func ();
16741   ;
16742   return 0;
16743 }
16744 _ACEOF
16745 rm -f conftest.$ac_objext conftest$ac_exeext
16746 if { (ac_try="$ac_link"
16747 case "(($ac_try" in
16748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749   *) ac_try_echo=$ac_try;;
16750 esac
16751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16752   (eval "$ac_link") 2>conftest.er1
16753   ac_status=$?
16754   grep -v '^ *+' conftest.er1 >conftest.err
16755   rm -f conftest.er1
16756   cat conftest.err >&5
16757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758   (exit $ac_status); } &&
16759          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16760   { (case "(($ac_try" in
16761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16762   *) ac_try_echo=$ac_try;;
16763 esac
16764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16765   (eval "$ac_try") 2>&5
16766   ac_status=$?
16767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768   (exit $ac_status); }; } &&
16769          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16779   eval "$as_ac_var=yes"
16780 else
16781   echo "$as_me: failed program was:" >&5
16782 sed 's/^/| /' conftest.$ac_ext >&5
16783
16784         eval "$as_ac_var=no"
16785 fi
16786
16787 rm -f core conftest.err conftest.$ac_objext \
16788       conftest$ac_exeext conftest.$ac_ext
16789 fi
16790 ac_res=`eval echo '${'$as_ac_var'}'`
16791                { echo "$as_me:$LINENO: result: $ac_res" >&5
16792 echo "${ECHO_T}$ac_res" >&6; }
16793 if test `eval echo '${'$as_ac_var'}'` = yes; then
16794   cat >>confdefs.h <<_ACEOF
16795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16796 _ACEOF
16797
16798 fi
16799 done
16800
16801
16802
16803
16804
16805
16806 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16807 do
16808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16809 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16811 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16812   echo $ECHO_N "(cached) $ECHO_C" >&6
16813 else
16814   cat >conftest.$ac_ext <<_ACEOF
16815 /* confdefs.h.  */
16816 _ACEOF
16817 cat confdefs.h >>conftest.$ac_ext
16818 cat >>conftest.$ac_ext <<_ACEOF
16819 /* end confdefs.h.  */
16820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16821    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16822 #define $ac_func innocuous_$ac_func
16823
16824 /* System header to define __stub macros and hopefully few prototypes,
16825     which can conflict with char $ac_func (); below.
16826     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16827     <limits.h> exists even on freestanding compilers.  */
16828
16829 #ifdef __STDC__
16830 # include <limits.h>
16831 #else
16832 # include <assert.h>
16833 #endif
16834
16835 #undef $ac_func
16836
16837 /* Override any GCC internal prototype to avoid an error.
16838    Use char because int might match the return type of a GCC
16839    builtin and then its argument prototype would still apply.  */
16840 #ifdef __cplusplus
16841 extern "C"
16842 #endif
16843 char $ac_func ();
16844 /* The GNU C library defines this for functions which it implements
16845     to always fail with ENOSYS.  Some functions are actually named
16846     something starting with __ and the normal name is an alias.  */
16847 #if defined __stub_$ac_func || defined __stub___$ac_func
16848 choke me
16849 #endif
16850
16851 int
16852 main ()
16853 {
16854 return $ac_func ();
16855   ;
16856   return 0;
16857 }
16858 _ACEOF
16859 rm -f conftest.$ac_objext conftest$ac_exeext
16860 if { (ac_try="$ac_link"
16861 case "(($ac_try" in
16862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16863   *) ac_try_echo=$ac_try;;
16864 esac
16865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16866   (eval "$ac_link") 2>conftest.er1
16867   ac_status=$?
16868   grep -v '^ *+' conftest.er1 >conftest.err
16869   rm -f conftest.er1
16870   cat conftest.err >&5
16871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872   (exit $ac_status); } &&
16873          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16874   { (case "(($ac_try" in
16875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16876   *) ac_try_echo=$ac_try;;
16877 esac
16878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16879   (eval "$ac_try") 2>&5
16880   ac_status=$?
16881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882   (exit $ac_status); }; } &&
16883          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16893   eval "$as_ac_var=yes"
16894 else
16895   echo "$as_me: failed program was:" >&5
16896 sed 's/^/| /' conftest.$ac_ext >&5
16897
16898         eval "$as_ac_var=no"
16899 fi
16900
16901 rm -f core conftest.err conftest.$ac_objext \
16902       conftest$ac_exeext conftest.$ac_ext
16903 fi
16904 ac_res=`eval echo '${'$as_ac_var'}'`
16905                { echo "$as_me:$LINENO: result: $ac_res" >&5
16906 echo "${ECHO_T}$ac_res" >&6; }
16907 if test `eval echo '${'$as_ac_var'}'` = yes; then
16908   cat >>confdefs.h <<_ACEOF
16909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16910 _ACEOF
16911
16912 fi
16913 done
16914
16915
16916
16917
16918 for ac_func in isatty mkdtemp mkstemp
16919 do
16920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16921 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16923 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16924   echo $ECHO_N "(cached) $ECHO_C" >&6
16925 else
16926   cat >conftest.$ac_ext <<_ACEOF
16927 /* confdefs.h.  */
16928 _ACEOF
16929 cat confdefs.h >>conftest.$ac_ext
16930 cat >>conftest.$ac_ext <<_ACEOF
16931 /* end confdefs.h.  */
16932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16933    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16934 #define $ac_func innocuous_$ac_func
16935
16936 /* System header to define __stub macros and hopefully few prototypes,
16937     which can conflict with char $ac_func (); below.
16938     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16939     <limits.h> exists even on freestanding compilers.  */
16940
16941 #ifdef __STDC__
16942 # include <limits.h>
16943 #else
16944 # include <assert.h>
16945 #endif
16946
16947 #undef $ac_func
16948
16949 /* Override any GCC internal prototype to avoid an error.
16950    Use char because int might match the return type of a GCC
16951    builtin and then its argument prototype would still apply.  */
16952 #ifdef __cplusplus
16953 extern "C"
16954 #endif
16955 char $ac_func ();
16956 /* The GNU C library defines this for functions which it implements
16957     to always fail with ENOSYS.  Some functions are actually named
16958     something starting with __ and the normal name is an alias.  */
16959 #if defined __stub_$ac_func || defined __stub___$ac_func
16960 choke me
16961 #endif
16962
16963 int
16964 main ()
16965 {
16966 return $ac_func ();
16967   ;
16968   return 0;
16969 }
16970 _ACEOF
16971 rm -f conftest.$ac_objext conftest$ac_exeext
16972 if { (ac_try="$ac_link"
16973 case "(($ac_try" in
16974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16975   *) ac_try_echo=$ac_try;;
16976 esac
16977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16978   (eval "$ac_link") 2>conftest.er1
16979   ac_status=$?
16980   grep -v '^ *+' conftest.er1 >conftest.err
16981   rm -f conftest.er1
16982   cat conftest.err >&5
16983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984   (exit $ac_status); } &&
16985          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16986   { (case "(($ac_try" in
16987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16988   *) ac_try_echo=$ac_try;;
16989 esac
16990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16991   (eval "$ac_try") 2>&5
16992   ac_status=$?
16993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994   (exit $ac_status); }; } &&
16995          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17005   eval "$as_ac_var=yes"
17006 else
17007   echo "$as_me: failed program was:" >&5
17008 sed 's/^/| /' conftest.$ac_ext >&5
17009
17010         eval "$as_ac_var=no"
17011 fi
17012
17013 rm -f core conftest.err conftest.$ac_objext \
17014       conftest$ac_exeext conftest.$ac_ext
17015 fi
17016 ac_res=`eval echo '${'$as_ac_var'}'`
17017                { echo "$as_me:$LINENO: result: $ac_res" >&5
17018 echo "${ECHO_T}$ac_res" >&6; }
17019 if test `eval echo '${'$as_ac_var'}'` = yes; then
17020   cat >>confdefs.h <<_ACEOF
17021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17022 _ACEOF
17023
17024 fi
17025 done
17026
17027
17028
17029
17030
17031
17032
17033 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17034 do
17035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17036 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17038 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17039   echo $ECHO_N "(cached) $ECHO_C" >&6
17040 else
17041   cat >conftest.$ac_ext <<_ACEOF
17042 /* confdefs.h.  */
17043 _ACEOF
17044 cat confdefs.h >>conftest.$ac_ext
17045 cat >>conftest.$ac_ext <<_ACEOF
17046 /* end confdefs.h.  */
17047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17048    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17049 #define $ac_func innocuous_$ac_func
17050
17051 /* System header to define __stub macros and hopefully few prototypes,
17052     which can conflict with char $ac_func (); below.
17053     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17054     <limits.h> exists even on freestanding compilers.  */
17055
17056 #ifdef __STDC__
17057 # include <limits.h>
17058 #else
17059 # include <assert.h>
17060 #endif
17061
17062 #undef $ac_func
17063
17064 /* Override any GCC internal prototype to avoid an error.
17065    Use char because int might match the return type of a GCC
17066    builtin and then its argument prototype would still apply.  */
17067 #ifdef __cplusplus
17068 extern "C"
17069 #endif
17070 char $ac_func ();
17071 /* The GNU C library defines this for functions which it implements
17072     to always fail with ENOSYS.  Some functions are actually named
17073     something starting with __ and the normal name is an alias.  */
17074 #if defined __stub_$ac_func || defined __stub___$ac_func
17075 choke me
17076 #endif
17077
17078 int
17079 main ()
17080 {
17081 return $ac_func ();
17082   ;
17083   return 0;
17084 }
17085 _ACEOF
17086 rm -f conftest.$ac_objext conftest$ac_exeext
17087 if { (ac_try="$ac_link"
17088 case "(($ac_try" in
17089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17090   *) ac_try_echo=$ac_try;;
17091 esac
17092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17093   (eval "$ac_link") 2>conftest.er1
17094   ac_status=$?
17095   grep -v '^ *+' conftest.er1 >conftest.err
17096   rm -f conftest.er1
17097   cat conftest.err >&5
17098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099   (exit $ac_status); } &&
17100          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17101   { (case "(($ac_try" in
17102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17103   *) ac_try_echo=$ac_try;;
17104 esac
17105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17106   (eval "$ac_try") 2>&5
17107   ac_status=$?
17108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109   (exit $ac_status); }; } &&
17110          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17120   eval "$as_ac_var=yes"
17121 else
17122   echo "$as_me: failed program was:" >&5
17123 sed 's/^/| /' conftest.$ac_ext >&5
17124
17125         eval "$as_ac_var=no"
17126 fi
17127
17128 rm -f core conftest.err conftest.$ac_objext \
17129       conftest$ac_exeext conftest.$ac_ext
17130 fi
17131 ac_res=`eval echo '${'$as_ac_var'}'`
17132                { echo "$as_me:$LINENO: result: $ac_res" >&5
17133 echo "${ECHO_T}$ac_res" >&6; }
17134 if test `eval echo '${'$as_ac_var'}'` = yes; then
17135   cat >>confdefs.h <<_ACEOF
17136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17137 _ACEOF
17138
17139 fi
17140 done
17141
17142
17143
17144
17145 for ac_func in strerror strerror_r setenv
17146 do
17147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17148 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17150 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17151   echo $ECHO_N "(cached) $ECHO_C" >&6
17152 else
17153   cat >conftest.$ac_ext <<_ACEOF
17154 /* confdefs.h.  */
17155 _ACEOF
17156 cat confdefs.h >>conftest.$ac_ext
17157 cat >>conftest.$ac_ext <<_ACEOF
17158 /* end confdefs.h.  */
17159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17160    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17161 #define $ac_func innocuous_$ac_func
17162
17163 /* System header to define __stub macros and hopefully few prototypes,
17164     which can conflict with char $ac_func (); below.
17165     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17166     <limits.h> exists even on freestanding compilers.  */
17167
17168 #ifdef __STDC__
17169 # include <limits.h>
17170 #else
17171 # include <assert.h>
17172 #endif
17173
17174 #undef $ac_func
17175
17176 /* Override any GCC internal prototype to avoid an error.
17177    Use char because int might match the return type of a GCC
17178    builtin and then its argument prototype would still apply.  */
17179 #ifdef __cplusplus
17180 extern "C"
17181 #endif
17182 char $ac_func ();
17183 /* The GNU C library defines this for functions which it implements
17184     to always fail with ENOSYS.  Some functions are actually named
17185     something starting with __ and the normal name is an alias.  */
17186 #if defined __stub_$ac_func || defined __stub___$ac_func
17187 choke me
17188 #endif
17189
17190 int
17191 main ()
17192 {
17193 return $ac_func ();
17194   ;
17195   return 0;
17196 }
17197 _ACEOF
17198 rm -f conftest.$ac_objext conftest$ac_exeext
17199 if { (ac_try="$ac_link"
17200 case "(($ac_try" in
17201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17202   *) ac_try_echo=$ac_try;;
17203 esac
17204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17205   (eval "$ac_link") 2>conftest.er1
17206   ac_status=$?
17207   grep -v '^ *+' conftest.er1 >conftest.err
17208   rm -f conftest.er1
17209   cat conftest.err >&5
17210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211   (exit $ac_status); } &&
17212          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17213   { (case "(($ac_try" in
17214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17215   *) ac_try_echo=$ac_try;;
17216 esac
17217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17218   (eval "$ac_try") 2>&5
17219   ac_status=$?
17220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221   (exit $ac_status); }; } &&
17222          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17232   eval "$as_ac_var=yes"
17233 else
17234   echo "$as_me: failed program was:" >&5
17235 sed 's/^/| /' conftest.$ac_ext >&5
17236
17237         eval "$as_ac_var=no"
17238 fi
17239
17240 rm -f core conftest.err conftest.$ac_objext \
17241       conftest$ac_exeext conftest.$ac_ext
17242 fi
17243 ac_res=`eval echo '${'$as_ac_var'}'`
17244                { echo "$as_me:$LINENO: result: $ac_res" >&5
17245 echo "${ECHO_T}$ac_res" >&6; }
17246 if test `eval echo '${'$as_ac_var'}'` = yes; then
17247   cat >>confdefs.h <<_ACEOF
17248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17249 _ACEOF
17250
17251 fi
17252 done
17253
17254
17255
17256
17257
17258 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17259 do
17260 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17261 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17262 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17263 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17264   echo $ECHO_N "(cached) $ECHO_C" >&6
17265 else
17266   cat >conftest.$ac_ext <<_ACEOF
17267 /* confdefs.h.  */
17268 _ACEOF
17269 cat confdefs.h >>conftest.$ac_ext
17270 cat >>conftest.$ac_ext <<_ACEOF
17271 /* end confdefs.h.  */
17272 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17273    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17274 #define $ac_func innocuous_$ac_func
17275
17276 /* System header to define __stub macros and hopefully few prototypes,
17277     which can conflict with char $ac_func (); below.
17278     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17279     <limits.h> exists even on freestanding compilers.  */
17280
17281 #ifdef __STDC__
17282 # include <limits.h>
17283 #else
17284 # include <assert.h>
17285 #endif
17286
17287 #undef $ac_func
17288
17289 /* Override any GCC internal prototype to avoid an error.
17290    Use char because int might match the return type of a GCC
17291    builtin and then its argument prototype would still apply.  */
17292 #ifdef __cplusplus
17293 extern "C"
17294 #endif
17295 char $ac_func ();
17296 /* The GNU C library defines this for functions which it implements
17297     to always fail with ENOSYS.  Some functions are actually named
17298     something starting with __ and the normal name is an alias.  */
17299 #if defined __stub_$ac_func || defined __stub___$ac_func
17300 choke me
17301 #endif
17302
17303 int
17304 main ()
17305 {
17306 return $ac_func ();
17307   ;
17308   return 0;
17309 }
17310 _ACEOF
17311 rm -f conftest.$ac_objext conftest$ac_exeext
17312 if { (ac_try="$ac_link"
17313 case "(($ac_try" in
17314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17315   *) ac_try_echo=$ac_try;;
17316 esac
17317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17318   (eval "$ac_link") 2>conftest.er1
17319   ac_status=$?
17320   grep -v '^ *+' conftest.er1 >conftest.err
17321   rm -f conftest.er1
17322   cat conftest.err >&5
17323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324   (exit $ac_status); } &&
17325          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17326   { (case "(($ac_try" in
17327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17328   *) ac_try_echo=$ac_try;;
17329 esac
17330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17331   (eval "$ac_try") 2>&5
17332   ac_status=$?
17333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334   (exit $ac_status); }; } &&
17335          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17345   eval "$as_ac_var=yes"
17346 else
17347   echo "$as_me: failed program was:" >&5
17348 sed 's/^/| /' conftest.$ac_ext >&5
17349
17350         eval "$as_ac_var=no"
17351 fi
17352
17353 rm -f core conftest.err conftest.$ac_objext \
17354       conftest$ac_exeext conftest.$ac_ext
17355 fi
17356 ac_res=`eval echo '${'$as_ac_var'}'`
17357                { echo "$as_me:$LINENO: result: $ac_res" >&5
17358 echo "${ECHO_T}$ac_res" >&6; }
17359 if test `eval echo '${'$as_ac_var'}'` = yes; then
17360   cat >>confdefs.h <<_ACEOF
17361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17362 _ACEOF
17363
17364 fi
17365 done
17366
17367
17368
17369
17370
17371
17372 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17373 do
17374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17375 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17377 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17378   echo $ECHO_N "(cached) $ECHO_C" >&6
17379 else
17380   cat >conftest.$ac_ext <<_ACEOF
17381 /* confdefs.h.  */
17382 _ACEOF
17383 cat confdefs.h >>conftest.$ac_ext
17384 cat >>conftest.$ac_ext <<_ACEOF
17385 /* end confdefs.h.  */
17386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17387    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17388 #define $ac_func innocuous_$ac_func
17389
17390 /* System header to define __stub macros and hopefully few prototypes,
17391     which can conflict with char $ac_func (); below.
17392     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17393     <limits.h> exists even on freestanding compilers.  */
17394
17395 #ifdef __STDC__
17396 # include <limits.h>
17397 #else
17398 # include <assert.h>
17399 #endif
17400
17401 #undef $ac_func
17402
17403 /* Override any GCC internal prototype to avoid an error.
17404    Use char because int might match the return type of a GCC
17405    builtin and then its argument prototype would still apply.  */
17406 #ifdef __cplusplus
17407 extern "C"
17408 #endif
17409 char $ac_func ();
17410 /* The GNU C library defines this for functions which it implements
17411     to always fail with ENOSYS.  Some functions are actually named
17412     something starting with __ and the normal name is an alias.  */
17413 #if defined __stub_$ac_func || defined __stub___$ac_func
17414 choke me
17415 #endif
17416
17417 int
17418 main ()
17419 {
17420 return $ac_func ();
17421   ;
17422   return 0;
17423 }
17424 _ACEOF
17425 rm -f conftest.$ac_objext conftest$ac_exeext
17426 if { (ac_try="$ac_link"
17427 case "(($ac_try" in
17428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17429   *) ac_try_echo=$ac_try;;
17430 esac
17431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17432   (eval "$ac_link") 2>conftest.er1
17433   ac_status=$?
17434   grep -v '^ *+' conftest.er1 >conftest.err
17435   rm -f conftest.er1
17436   cat conftest.err >&5
17437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438   (exit $ac_status); } &&
17439          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17440   { (case "(($ac_try" in
17441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17442   *) ac_try_echo=$ac_try;;
17443 esac
17444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17445   (eval "$ac_try") 2>&5
17446   ac_status=$?
17447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448   (exit $ac_status); }; } &&
17449          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17459   eval "$as_ac_var=yes"
17460 else
17461   echo "$as_me: failed program was:" >&5
17462 sed 's/^/| /' conftest.$ac_ext >&5
17463
17464         eval "$as_ac_var=no"
17465 fi
17466
17467 rm -f core conftest.err conftest.$ac_objext \
17468       conftest$ac_exeext conftest.$ac_ext
17469 fi
17470 ac_res=`eval echo '${'$as_ac_var'}'`
17471                { echo "$as_me:$LINENO: result: $ac_res" >&5
17472 echo "${ECHO_T}$ac_res" >&6; }
17473 if test `eval echo '${'$as_ac_var'}'` = yes; then
17474   cat >>confdefs.h <<_ACEOF
17475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17476 _ACEOF
17477
17478 fi
17479 done
17480
17481 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17482 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17483 if test "${llvm_cv_c_printf_a+set}" = set; then
17484   echo $ECHO_N "(cached) $ECHO_C" >&6
17485 else
17486   ac_ext=c
17487 ac_cpp='$CPP $CPPFLAGS'
17488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17491
17492  if test "$cross_compiling" = yes; then
17493   llvmac_cv_c_printf_a=no
17494 else
17495   cat >conftest.$ac_ext <<_ACEOF
17496
17497   /* confdefs.h.  */
17498 _ACEOF
17499 cat confdefs.h >>conftest.$ac_ext
17500 cat >>conftest.$ac_ext <<_ACEOF
17501 /* end confdefs.h.  */
17502
17503 #include <stdio.h>
17504 #include <stdlib.h>
17505
17506 int
17507 main ()
17508 {
17509
17510 volatile double A, B;
17511 char Buffer[100];
17512 A = 1;
17513 A /= 10.0;
17514 sprintf(Buffer, "%a", A);
17515 B = atof(Buffer);
17516 if (A != B)
17517   return (1);
17518 if (A != 0x1.999999999999ap-4)
17519   return (1);
17520 return (0);
17521   ;
17522   return 0;
17523 }
17524 _ACEOF
17525 rm -f conftest$ac_exeext
17526 if { (ac_try="$ac_link"
17527 case "(($ac_try" in
17528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17529   *) ac_try_echo=$ac_try;;
17530 esac
17531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17532   (eval "$ac_link") 2>&5
17533   ac_status=$?
17534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17536   { (case "(($ac_try" in
17537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17538   *) ac_try_echo=$ac_try;;
17539 esac
17540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17541   (eval "$ac_try") 2>&5
17542   ac_status=$?
17543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544   (exit $ac_status); }; }; then
17545   llvm_cv_c_printf_a=yes
17546 else
17547   echo "$as_me: program exited with status $ac_status" >&5
17548 echo "$as_me: failed program was:" >&5
17549 sed 's/^/| /' conftest.$ac_ext >&5
17550
17551 ( exit $ac_status )
17552 llvmac_cv_c_printf_a=no
17553 fi
17554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17555 fi
17556
17557
17558  ac_ext=c
17559 ac_cpp='$CPP $CPPFLAGS'
17560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17563
17564 fi
17565 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17566 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17567  if test "$llvm_cv_c_printf_a" = "yes"; then
17568
17569 cat >>confdefs.h <<\_ACEOF
17570 #define HAVE_PRINTF_A 1
17571 _ACEOF
17572
17573  fi
17574
17575
17576 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17577 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17578 if test "${ac_cv_func_rand48+set}" = set; then
17579   echo $ECHO_N "(cached) $ECHO_C" >&6
17580 else
17581   ac_ext=cpp
17582 ac_cpp='$CXXCPP $CPPFLAGS'
17583 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17584 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17585 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17586
17587    cat >conftest.$ac_ext <<_ACEOF
17588 /* confdefs.h.  */
17589 _ACEOF
17590 cat confdefs.h >>conftest.$ac_ext
17591 cat >>conftest.$ac_ext <<_ACEOF
17592 /* end confdefs.h.  */
17593 #include <stdlib.h>
17594 int
17595 main ()
17596 {
17597 srand48(0);lrand48();drand48();
17598   ;
17599   return 0;
17600 }
17601 _ACEOF
17602 rm -f conftest.$ac_objext
17603 if { (ac_try="$ac_compile"
17604 case "(($ac_try" in
17605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606   *) ac_try_echo=$ac_try;;
17607 esac
17608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17609   (eval "$ac_compile") 2>conftest.er1
17610   ac_status=$?
17611   grep -v '^ *+' conftest.er1 >conftest.err
17612   rm -f conftest.er1
17613   cat conftest.err >&5
17614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615   (exit $ac_status); } &&
17616          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17617   { (case "(($ac_try" in
17618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17619   *) ac_try_echo=$ac_try;;
17620 esac
17621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17622   (eval "$ac_try") 2>&5
17623   ac_status=$?
17624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625   (exit $ac_status); }; } &&
17626          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17636   ac_cv_func_rand48=yes
17637 else
17638   echo "$as_me: failed program was:" >&5
17639 sed 's/^/| /' conftest.$ac_ext >&5
17640
17641         ac_cv_func_rand48=no
17642 fi
17643
17644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17645   ac_ext=c
17646 ac_cpp='$CPP $CPPFLAGS'
17647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17650
17651 fi
17652 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17653 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17654
17655 if test "$ac_cv_func_rand48" = "yes" ; then
17656
17657 cat >>confdefs.h <<\_ACEOF
17658 #define HAVE_RAND48 1
17659 _ACEOF
17660
17661 fi
17662
17663
17664 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17665 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17666 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17667   echo $ECHO_N "(cached) $ECHO_C" >&6
17668 else
17669   cat >conftest.$ac_ext <<_ACEOF
17670 /* confdefs.h.  */
17671 _ACEOF
17672 cat confdefs.h >>conftest.$ac_ext
17673 cat >>conftest.$ac_ext <<_ACEOF
17674 /* end confdefs.h.  */
17675 $ac_includes_default
17676 int
17677 main ()
17678 {
17679 #ifndef strerror_s
17680   char *p = (char *) strerror_s;
17681   return !p;
17682 #endif
17683
17684   ;
17685   return 0;
17686 }
17687 _ACEOF
17688 rm -f conftest.$ac_objext
17689 if { (ac_try="$ac_compile"
17690 case "(($ac_try" in
17691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17692   *) ac_try_echo=$ac_try;;
17693 esac
17694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17695   (eval "$ac_compile") 2>conftest.er1
17696   ac_status=$?
17697   grep -v '^ *+' conftest.er1 >conftest.err
17698   rm -f conftest.er1
17699   cat conftest.err >&5
17700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701   (exit $ac_status); } &&
17702          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17703   { (case "(($ac_try" in
17704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705   *) ac_try_echo=$ac_try;;
17706 esac
17707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17708   (eval "$ac_try") 2>&5
17709   ac_status=$?
17710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711   (exit $ac_status); }; } &&
17712          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17722   ac_cv_have_decl_strerror_s=yes
17723 else
17724   echo "$as_me: failed program was:" >&5
17725 sed 's/^/| /' conftest.$ac_ext >&5
17726
17727         ac_cv_have_decl_strerror_s=no
17728 fi
17729
17730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17731 fi
17732 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17733 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17734 if test $ac_cv_have_decl_strerror_s = yes; then
17735
17736 cat >>confdefs.h <<_ACEOF
17737 #define HAVE_DECL_STRERROR_S 1
17738 _ACEOF
17739
17740
17741 else
17742   cat >>confdefs.h <<_ACEOF
17743 #define HAVE_DECL_STRERROR_S 0
17744 _ACEOF
17745
17746
17747 fi
17748
17749
17750
17751 if test "$llvm_cv_os_type" = "MingW" ; then
17752   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17753 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17754 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17755   echo $ECHO_N "(cached) $ECHO_C" >&6
17756 else
17757   ac_check_lib_save_LIBS=$LIBS
17758 LIBS="-lgcc  $LIBS"
17759 cat >conftest.$ac_ext <<_ACEOF
17760 /* confdefs.h.  */
17761 _ACEOF
17762 cat confdefs.h >>conftest.$ac_ext
17763 cat >>conftest.$ac_ext <<_ACEOF
17764 /* end confdefs.h.  */
17765
17766 /* Override any GCC internal prototype to avoid an error.
17767    Use char because int might match the return type of a GCC
17768    builtin and then its argument prototype would still apply.  */
17769 #ifdef __cplusplus
17770 extern "C"
17771 #endif
17772 char _alloca ();
17773 int
17774 main ()
17775 {
17776 return _alloca ();
17777   ;
17778   return 0;
17779 }
17780 _ACEOF
17781 rm -f conftest.$ac_objext conftest$ac_exeext
17782 if { (ac_try="$ac_link"
17783 case "(($ac_try" in
17784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17785   *) ac_try_echo=$ac_try;;
17786 esac
17787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17788   (eval "$ac_link") 2>conftest.er1
17789   ac_status=$?
17790   grep -v '^ *+' conftest.er1 >conftest.err
17791   rm -f conftest.er1
17792   cat conftest.err >&5
17793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794   (exit $ac_status); } &&
17795          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17796   { (case "(($ac_try" in
17797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17798   *) ac_try_echo=$ac_try;;
17799 esac
17800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17801   (eval "$ac_try") 2>&5
17802   ac_status=$?
17803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804   (exit $ac_status); }; } &&
17805          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17815   ac_cv_lib_gcc__alloca=yes
17816 else
17817   echo "$as_me: failed program was:" >&5
17818 sed 's/^/| /' conftest.$ac_ext >&5
17819
17820         ac_cv_lib_gcc__alloca=no
17821 fi
17822
17823 rm -f core conftest.err conftest.$ac_objext \
17824       conftest$ac_exeext conftest.$ac_ext
17825 LIBS=$ac_check_lib_save_LIBS
17826 fi
17827 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17828 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17829 if test $ac_cv_lib_gcc__alloca = yes; then
17830
17831 cat >>confdefs.h <<\_ACEOF
17832 #define HAVE__ALLOCA 1
17833 _ACEOF
17834
17835 fi
17836
17837   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17838 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17839 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17840   echo $ECHO_N "(cached) $ECHO_C" >&6
17841 else
17842   ac_check_lib_save_LIBS=$LIBS
17843 LIBS="-lgcc  $LIBS"
17844 cat >conftest.$ac_ext <<_ACEOF
17845 /* confdefs.h.  */
17846 _ACEOF
17847 cat confdefs.h >>conftest.$ac_ext
17848 cat >>conftest.$ac_ext <<_ACEOF
17849 /* end confdefs.h.  */
17850
17851 /* Override any GCC internal prototype to avoid an error.
17852    Use char because int might match the return type of a GCC
17853    builtin and then its argument prototype would still apply.  */
17854 #ifdef __cplusplus
17855 extern "C"
17856 #endif
17857 char __alloca ();
17858 int
17859 main ()
17860 {
17861 return __alloca ();
17862   ;
17863   return 0;
17864 }
17865 _ACEOF
17866 rm -f conftest.$ac_objext conftest$ac_exeext
17867 if { (ac_try="$ac_link"
17868 case "(($ac_try" in
17869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17870   *) ac_try_echo=$ac_try;;
17871 esac
17872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17873   (eval "$ac_link") 2>conftest.er1
17874   ac_status=$?
17875   grep -v '^ *+' conftest.er1 >conftest.err
17876   rm -f conftest.er1
17877   cat conftest.err >&5
17878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879   (exit $ac_status); } &&
17880          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17881   { (case "(($ac_try" in
17882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17883   *) ac_try_echo=$ac_try;;
17884 esac
17885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17886   (eval "$ac_try") 2>&5
17887   ac_status=$?
17888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889   (exit $ac_status); }; } &&
17890          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17900   ac_cv_lib_gcc___alloca=yes
17901 else
17902   echo "$as_me: failed program was:" >&5
17903 sed 's/^/| /' conftest.$ac_ext >&5
17904
17905         ac_cv_lib_gcc___alloca=no
17906 fi
17907
17908 rm -f core conftest.err conftest.$ac_objext \
17909       conftest$ac_exeext conftest.$ac_ext
17910 LIBS=$ac_check_lib_save_LIBS
17911 fi
17912 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17913 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17914 if test $ac_cv_lib_gcc___alloca = yes; then
17915
17916 cat >>confdefs.h <<\_ACEOF
17917 #define HAVE___ALLOCA 1
17918 _ACEOF
17919
17920 fi
17921
17922   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17923 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17924 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17925   echo $ECHO_N "(cached) $ECHO_C" >&6
17926 else
17927   ac_check_lib_save_LIBS=$LIBS
17928 LIBS="-lgcc  $LIBS"
17929 cat >conftest.$ac_ext <<_ACEOF
17930 /* confdefs.h.  */
17931 _ACEOF
17932 cat confdefs.h >>conftest.$ac_ext
17933 cat >>conftest.$ac_ext <<_ACEOF
17934 /* end confdefs.h.  */
17935
17936 /* Override any GCC internal prototype to avoid an error.
17937    Use char because int might match the return type of a GCC
17938    builtin and then its argument prototype would still apply.  */
17939 #ifdef __cplusplus
17940 extern "C"
17941 #endif
17942 char __chkstk ();
17943 int
17944 main ()
17945 {
17946 return __chkstk ();
17947   ;
17948   return 0;
17949 }
17950 _ACEOF
17951 rm -f conftest.$ac_objext conftest$ac_exeext
17952 if { (ac_try="$ac_link"
17953 case "(($ac_try" in
17954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17955   *) ac_try_echo=$ac_try;;
17956 esac
17957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17958   (eval "$ac_link") 2>conftest.er1
17959   ac_status=$?
17960   grep -v '^ *+' conftest.er1 >conftest.err
17961   rm -f conftest.er1
17962   cat conftest.err >&5
17963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964   (exit $ac_status); } &&
17965          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17966   { (case "(($ac_try" in
17967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17968   *) ac_try_echo=$ac_try;;
17969 esac
17970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17971   (eval "$ac_try") 2>&5
17972   ac_status=$?
17973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974   (exit $ac_status); }; } &&
17975          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17985   ac_cv_lib_gcc___chkstk=yes
17986 else
17987   echo "$as_me: failed program was:" >&5
17988 sed 's/^/| /' conftest.$ac_ext >&5
17989
17990         ac_cv_lib_gcc___chkstk=no
17991 fi
17992
17993 rm -f core conftest.err conftest.$ac_objext \
17994       conftest$ac_exeext conftest.$ac_ext
17995 LIBS=$ac_check_lib_save_LIBS
17996 fi
17997 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
17998 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
17999 if test $ac_cv_lib_gcc___chkstk = yes; then
18000
18001 cat >>confdefs.h <<\_ACEOF
18002 #define HAVE___CHKSTK 1
18003 _ACEOF
18004
18005 fi
18006
18007   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18008 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18009 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18010   echo $ECHO_N "(cached) $ECHO_C" >&6
18011 else
18012   ac_check_lib_save_LIBS=$LIBS
18013 LIBS="-lgcc  $LIBS"
18014 cat >conftest.$ac_ext <<_ACEOF
18015 /* confdefs.h.  */
18016 _ACEOF
18017 cat confdefs.h >>conftest.$ac_ext
18018 cat >>conftest.$ac_ext <<_ACEOF
18019 /* end confdefs.h.  */
18020
18021 /* Override any GCC internal prototype to avoid an error.
18022    Use char because int might match the return type of a GCC
18023    builtin and then its argument prototype would still apply.  */
18024 #ifdef __cplusplus
18025 extern "C"
18026 #endif
18027 char ___chkstk ();
18028 int
18029 main ()
18030 {
18031 return ___chkstk ();
18032   ;
18033   return 0;
18034 }
18035 _ACEOF
18036 rm -f conftest.$ac_objext conftest$ac_exeext
18037 if { (ac_try="$ac_link"
18038 case "(($ac_try" in
18039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18040   *) ac_try_echo=$ac_try;;
18041 esac
18042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18043   (eval "$ac_link") 2>conftest.er1
18044   ac_status=$?
18045   grep -v '^ *+' conftest.er1 >conftest.err
18046   rm -f conftest.er1
18047   cat conftest.err >&5
18048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049   (exit $ac_status); } &&
18050          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18051   { (case "(($ac_try" in
18052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053   *) ac_try_echo=$ac_try;;
18054 esac
18055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056   (eval "$ac_try") 2>&5
18057   ac_status=$?
18058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059   (exit $ac_status); }; } &&
18060          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18070   ac_cv_lib_gcc____chkstk=yes
18071 else
18072   echo "$as_me: failed program was:" >&5
18073 sed 's/^/| /' conftest.$ac_ext >&5
18074
18075         ac_cv_lib_gcc____chkstk=no
18076 fi
18077
18078 rm -f core conftest.err conftest.$ac_objext \
18079       conftest$ac_exeext conftest.$ac_ext
18080 LIBS=$ac_check_lib_save_LIBS
18081 fi
18082 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18083 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18084 if test $ac_cv_lib_gcc____chkstk = yes; then
18085
18086 cat >>confdefs.h <<\_ACEOF
18087 #define HAVE____CHKSTK 1
18088 _ACEOF
18089
18090 fi
18091
18092
18093   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18094 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18095 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18096   echo $ECHO_N "(cached) $ECHO_C" >&6
18097 else
18098   ac_check_lib_save_LIBS=$LIBS
18099 LIBS="-lgcc  $LIBS"
18100 cat >conftest.$ac_ext <<_ACEOF
18101 /* confdefs.h.  */
18102 _ACEOF
18103 cat confdefs.h >>conftest.$ac_ext
18104 cat >>conftest.$ac_ext <<_ACEOF
18105 /* end confdefs.h.  */
18106
18107 /* Override any GCC internal prototype to avoid an error.
18108    Use char because int might match the return type of a GCC
18109    builtin and then its argument prototype would still apply.  */
18110 #ifdef __cplusplus
18111 extern "C"
18112 #endif
18113 char __ashldi3 ();
18114 int
18115 main ()
18116 {
18117 return __ashldi3 ();
18118   ;
18119   return 0;
18120 }
18121 _ACEOF
18122 rm -f conftest.$ac_objext conftest$ac_exeext
18123 if { (ac_try="$ac_link"
18124 case "(($ac_try" in
18125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18126   *) ac_try_echo=$ac_try;;
18127 esac
18128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18129   (eval "$ac_link") 2>conftest.er1
18130   ac_status=$?
18131   grep -v '^ *+' conftest.er1 >conftest.err
18132   rm -f conftest.er1
18133   cat conftest.err >&5
18134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135   (exit $ac_status); } &&
18136          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18137   { (case "(($ac_try" in
18138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18139   *) ac_try_echo=$ac_try;;
18140 esac
18141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18142   (eval "$ac_try") 2>&5
18143   ac_status=$?
18144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145   (exit $ac_status); }; } &&
18146          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18156   ac_cv_lib_gcc___ashldi3=yes
18157 else
18158   echo "$as_me: failed program was:" >&5
18159 sed 's/^/| /' conftest.$ac_ext >&5
18160
18161         ac_cv_lib_gcc___ashldi3=no
18162 fi
18163
18164 rm -f core conftest.err conftest.$ac_objext \
18165       conftest$ac_exeext conftest.$ac_ext
18166 LIBS=$ac_check_lib_save_LIBS
18167 fi
18168 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18169 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18170 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18171
18172 cat >>confdefs.h <<\_ACEOF
18173 #define HAVE___ASHLDI3 1
18174 _ACEOF
18175
18176 fi
18177
18178   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18179 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18180 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18181   echo $ECHO_N "(cached) $ECHO_C" >&6
18182 else
18183   ac_check_lib_save_LIBS=$LIBS
18184 LIBS="-lgcc  $LIBS"
18185 cat >conftest.$ac_ext <<_ACEOF
18186 /* confdefs.h.  */
18187 _ACEOF
18188 cat confdefs.h >>conftest.$ac_ext
18189 cat >>conftest.$ac_ext <<_ACEOF
18190 /* end confdefs.h.  */
18191
18192 /* Override any GCC internal prototype to avoid an error.
18193    Use char because int might match the return type of a GCC
18194    builtin and then its argument prototype would still apply.  */
18195 #ifdef __cplusplus
18196 extern "C"
18197 #endif
18198 char __ashrdi3 ();
18199 int
18200 main ()
18201 {
18202 return __ashrdi3 ();
18203   ;
18204   return 0;
18205 }
18206 _ACEOF
18207 rm -f conftest.$ac_objext conftest$ac_exeext
18208 if { (ac_try="$ac_link"
18209 case "(($ac_try" in
18210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18211   *) ac_try_echo=$ac_try;;
18212 esac
18213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18214   (eval "$ac_link") 2>conftest.er1
18215   ac_status=$?
18216   grep -v '^ *+' conftest.er1 >conftest.err
18217   rm -f conftest.er1
18218   cat conftest.err >&5
18219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220   (exit $ac_status); } &&
18221          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18222   { (case "(($ac_try" in
18223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18224   *) ac_try_echo=$ac_try;;
18225 esac
18226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18227   (eval "$ac_try") 2>&5
18228   ac_status=$?
18229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230   (exit $ac_status); }; } &&
18231          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18241   ac_cv_lib_gcc___ashrdi3=yes
18242 else
18243   echo "$as_me: failed program was:" >&5
18244 sed 's/^/| /' conftest.$ac_ext >&5
18245
18246         ac_cv_lib_gcc___ashrdi3=no
18247 fi
18248
18249 rm -f core conftest.err conftest.$ac_objext \
18250       conftest$ac_exeext conftest.$ac_ext
18251 LIBS=$ac_check_lib_save_LIBS
18252 fi
18253 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18254 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18255 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18256
18257 cat >>confdefs.h <<\_ACEOF
18258 #define HAVE___ASHRDI3 1
18259 _ACEOF
18260
18261 fi
18262
18263   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18264 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18265 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18266   echo $ECHO_N "(cached) $ECHO_C" >&6
18267 else
18268   ac_check_lib_save_LIBS=$LIBS
18269 LIBS="-lgcc  $LIBS"
18270 cat >conftest.$ac_ext <<_ACEOF
18271 /* confdefs.h.  */
18272 _ACEOF
18273 cat confdefs.h >>conftest.$ac_ext
18274 cat >>conftest.$ac_ext <<_ACEOF
18275 /* end confdefs.h.  */
18276
18277 /* Override any GCC internal prototype to avoid an error.
18278    Use char because int might match the return type of a GCC
18279    builtin and then its argument prototype would still apply.  */
18280 #ifdef __cplusplus
18281 extern "C"
18282 #endif
18283 char __divdi3 ();
18284 int
18285 main ()
18286 {
18287 return __divdi3 ();
18288   ;
18289   return 0;
18290 }
18291 _ACEOF
18292 rm -f conftest.$ac_objext conftest$ac_exeext
18293 if { (ac_try="$ac_link"
18294 case "(($ac_try" in
18295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18296   *) ac_try_echo=$ac_try;;
18297 esac
18298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18299   (eval "$ac_link") 2>conftest.er1
18300   ac_status=$?
18301   grep -v '^ *+' conftest.er1 >conftest.err
18302   rm -f conftest.er1
18303   cat conftest.err >&5
18304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305   (exit $ac_status); } &&
18306          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18307   { (case "(($ac_try" in
18308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18309   *) ac_try_echo=$ac_try;;
18310 esac
18311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18312   (eval "$ac_try") 2>&5
18313   ac_status=$?
18314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315   (exit $ac_status); }; } &&
18316          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18326   ac_cv_lib_gcc___divdi3=yes
18327 else
18328   echo "$as_me: failed program was:" >&5
18329 sed 's/^/| /' conftest.$ac_ext >&5
18330
18331         ac_cv_lib_gcc___divdi3=no
18332 fi
18333
18334 rm -f core conftest.err conftest.$ac_objext \
18335       conftest$ac_exeext conftest.$ac_ext
18336 LIBS=$ac_check_lib_save_LIBS
18337 fi
18338 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18339 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18340 if test $ac_cv_lib_gcc___divdi3 = yes; then
18341
18342 cat >>confdefs.h <<\_ACEOF
18343 #define HAVE___DIVDI3 1
18344 _ACEOF
18345
18346 fi
18347
18348   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18349 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18350 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18351   echo $ECHO_N "(cached) $ECHO_C" >&6
18352 else
18353   ac_check_lib_save_LIBS=$LIBS
18354 LIBS="-lgcc  $LIBS"
18355 cat >conftest.$ac_ext <<_ACEOF
18356 /* confdefs.h.  */
18357 _ACEOF
18358 cat confdefs.h >>conftest.$ac_ext
18359 cat >>conftest.$ac_ext <<_ACEOF
18360 /* end confdefs.h.  */
18361
18362 /* Override any GCC internal prototype to avoid an error.
18363    Use char because int might match the return type of a GCC
18364    builtin and then its argument prototype would still apply.  */
18365 #ifdef __cplusplus
18366 extern "C"
18367 #endif
18368 char __fixdfdi ();
18369 int
18370 main ()
18371 {
18372 return __fixdfdi ();
18373   ;
18374   return 0;
18375 }
18376 _ACEOF
18377 rm -f conftest.$ac_objext conftest$ac_exeext
18378 if { (ac_try="$ac_link"
18379 case "(($ac_try" in
18380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18381   *) ac_try_echo=$ac_try;;
18382 esac
18383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18384   (eval "$ac_link") 2>conftest.er1
18385   ac_status=$?
18386   grep -v '^ *+' conftest.er1 >conftest.err
18387   rm -f conftest.er1
18388   cat conftest.err >&5
18389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390   (exit $ac_status); } &&
18391          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18392   { (case "(($ac_try" in
18393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18394   *) ac_try_echo=$ac_try;;
18395 esac
18396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18397   (eval "$ac_try") 2>&5
18398   ac_status=$?
18399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400   (exit $ac_status); }; } &&
18401          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18411   ac_cv_lib_gcc___fixdfdi=yes
18412 else
18413   echo "$as_me: failed program was:" >&5
18414 sed 's/^/| /' conftest.$ac_ext >&5
18415
18416         ac_cv_lib_gcc___fixdfdi=no
18417 fi
18418
18419 rm -f core conftest.err conftest.$ac_objext \
18420       conftest$ac_exeext conftest.$ac_ext
18421 LIBS=$ac_check_lib_save_LIBS
18422 fi
18423 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18424 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18425 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18426
18427 cat >>confdefs.h <<\_ACEOF
18428 #define HAVE___FIXDFDI 1
18429 _ACEOF
18430
18431 fi
18432
18433   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18434 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18435 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18436   echo $ECHO_N "(cached) $ECHO_C" >&6
18437 else
18438   ac_check_lib_save_LIBS=$LIBS
18439 LIBS="-lgcc  $LIBS"
18440 cat >conftest.$ac_ext <<_ACEOF
18441 /* confdefs.h.  */
18442 _ACEOF
18443 cat confdefs.h >>conftest.$ac_ext
18444 cat >>conftest.$ac_ext <<_ACEOF
18445 /* end confdefs.h.  */
18446
18447 /* Override any GCC internal prototype to avoid an error.
18448    Use char because int might match the return type of a GCC
18449    builtin and then its argument prototype would still apply.  */
18450 #ifdef __cplusplus
18451 extern "C"
18452 #endif
18453 char __fixsfdi ();
18454 int
18455 main ()
18456 {
18457 return __fixsfdi ();
18458   ;
18459   return 0;
18460 }
18461 _ACEOF
18462 rm -f conftest.$ac_objext conftest$ac_exeext
18463 if { (ac_try="$ac_link"
18464 case "(($ac_try" in
18465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18466   *) ac_try_echo=$ac_try;;
18467 esac
18468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18469   (eval "$ac_link") 2>conftest.er1
18470   ac_status=$?
18471   grep -v '^ *+' conftest.er1 >conftest.err
18472   rm -f conftest.er1
18473   cat conftest.err >&5
18474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475   (exit $ac_status); } &&
18476          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18477   { (case "(($ac_try" in
18478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18479   *) ac_try_echo=$ac_try;;
18480 esac
18481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18482   (eval "$ac_try") 2>&5
18483   ac_status=$?
18484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485   (exit $ac_status); }; } &&
18486          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18496   ac_cv_lib_gcc___fixsfdi=yes
18497 else
18498   echo "$as_me: failed program was:" >&5
18499 sed 's/^/| /' conftest.$ac_ext >&5
18500
18501         ac_cv_lib_gcc___fixsfdi=no
18502 fi
18503
18504 rm -f core conftest.err conftest.$ac_objext \
18505       conftest$ac_exeext conftest.$ac_ext
18506 LIBS=$ac_check_lib_save_LIBS
18507 fi
18508 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18509 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18510 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18511
18512 cat >>confdefs.h <<\_ACEOF
18513 #define HAVE___FIXSFDI 1
18514 _ACEOF
18515
18516 fi
18517
18518   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18519 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18520 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18521   echo $ECHO_N "(cached) $ECHO_C" >&6
18522 else
18523   ac_check_lib_save_LIBS=$LIBS
18524 LIBS="-lgcc  $LIBS"
18525 cat >conftest.$ac_ext <<_ACEOF
18526 /* confdefs.h.  */
18527 _ACEOF
18528 cat confdefs.h >>conftest.$ac_ext
18529 cat >>conftest.$ac_ext <<_ACEOF
18530 /* end confdefs.h.  */
18531
18532 /* Override any GCC internal prototype to avoid an error.
18533    Use char because int might match the return type of a GCC
18534    builtin and then its argument prototype would still apply.  */
18535 #ifdef __cplusplus
18536 extern "C"
18537 #endif
18538 char __floatdidf ();
18539 int
18540 main ()
18541 {
18542 return __floatdidf ();
18543   ;
18544   return 0;
18545 }
18546 _ACEOF
18547 rm -f conftest.$ac_objext conftest$ac_exeext
18548 if { (ac_try="$ac_link"
18549 case "(($ac_try" in
18550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18551   *) ac_try_echo=$ac_try;;
18552 esac
18553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18554   (eval "$ac_link") 2>conftest.er1
18555   ac_status=$?
18556   grep -v '^ *+' conftest.er1 >conftest.err
18557   rm -f conftest.er1
18558   cat conftest.err >&5
18559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560   (exit $ac_status); } &&
18561          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18562   { (case "(($ac_try" in
18563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18564   *) ac_try_echo=$ac_try;;
18565 esac
18566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18567   (eval "$ac_try") 2>&5
18568   ac_status=$?
18569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570   (exit $ac_status); }; } &&
18571          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18581   ac_cv_lib_gcc___floatdidf=yes
18582 else
18583   echo "$as_me: failed program was:" >&5
18584 sed 's/^/| /' conftest.$ac_ext >&5
18585
18586         ac_cv_lib_gcc___floatdidf=no
18587 fi
18588
18589 rm -f core conftest.err conftest.$ac_objext \
18590       conftest$ac_exeext conftest.$ac_ext
18591 LIBS=$ac_check_lib_save_LIBS
18592 fi
18593 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18594 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18595 if test $ac_cv_lib_gcc___floatdidf = yes; then
18596
18597 cat >>confdefs.h <<\_ACEOF
18598 #define HAVE___FLOATDIDF 1
18599 _ACEOF
18600
18601 fi
18602
18603   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18604 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18605 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18606   echo $ECHO_N "(cached) $ECHO_C" >&6
18607 else
18608   ac_check_lib_save_LIBS=$LIBS
18609 LIBS="-lgcc  $LIBS"
18610 cat >conftest.$ac_ext <<_ACEOF
18611 /* confdefs.h.  */
18612 _ACEOF
18613 cat confdefs.h >>conftest.$ac_ext
18614 cat >>conftest.$ac_ext <<_ACEOF
18615 /* end confdefs.h.  */
18616
18617 /* Override any GCC internal prototype to avoid an error.
18618    Use char because int might match the return type of a GCC
18619    builtin and then its argument prototype would still apply.  */
18620 #ifdef __cplusplus
18621 extern "C"
18622 #endif
18623 char __lshrdi3 ();
18624 int
18625 main ()
18626 {
18627 return __lshrdi3 ();
18628   ;
18629   return 0;
18630 }
18631 _ACEOF
18632 rm -f conftest.$ac_objext conftest$ac_exeext
18633 if { (ac_try="$ac_link"
18634 case "(($ac_try" in
18635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18636   *) ac_try_echo=$ac_try;;
18637 esac
18638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18639   (eval "$ac_link") 2>conftest.er1
18640   ac_status=$?
18641   grep -v '^ *+' conftest.er1 >conftest.err
18642   rm -f conftest.er1
18643   cat conftest.err >&5
18644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645   (exit $ac_status); } &&
18646          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18647   { (case "(($ac_try" in
18648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18649   *) ac_try_echo=$ac_try;;
18650 esac
18651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18652   (eval "$ac_try") 2>&5
18653   ac_status=$?
18654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655   (exit $ac_status); }; } &&
18656          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18666   ac_cv_lib_gcc___lshrdi3=yes
18667 else
18668   echo "$as_me: failed program was:" >&5
18669 sed 's/^/| /' conftest.$ac_ext >&5
18670
18671         ac_cv_lib_gcc___lshrdi3=no
18672 fi
18673
18674 rm -f core conftest.err conftest.$ac_objext \
18675       conftest$ac_exeext conftest.$ac_ext
18676 LIBS=$ac_check_lib_save_LIBS
18677 fi
18678 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18679 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18680 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18681
18682 cat >>confdefs.h <<\_ACEOF
18683 #define HAVE___LSHRDI3 1
18684 _ACEOF
18685
18686 fi
18687
18688   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18689 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18690 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18691   echo $ECHO_N "(cached) $ECHO_C" >&6
18692 else
18693   ac_check_lib_save_LIBS=$LIBS
18694 LIBS="-lgcc  $LIBS"
18695 cat >conftest.$ac_ext <<_ACEOF
18696 /* confdefs.h.  */
18697 _ACEOF
18698 cat confdefs.h >>conftest.$ac_ext
18699 cat >>conftest.$ac_ext <<_ACEOF
18700 /* end confdefs.h.  */
18701
18702 /* Override any GCC internal prototype to avoid an error.
18703    Use char because int might match the return type of a GCC
18704    builtin and then its argument prototype would still apply.  */
18705 #ifdef __cplusplus
18706 extern "C"
18707 #endif
18708 char __moddi3 ();
18709 int
18710 main ()
18711 {
18712 return __moddi3 ();
18713   ;
18714   return 0;
18715 }
18716 _ACEOF
18717 rm -f conftest.$ac_objext conftest$ac_exeext
18718 if { (ac_try="$ac_link"
18719 case "(($ac_try" in
18720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18721   *) ac_try_echo=$ac_try;;
18722 esac
18723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18724   (eval "$ac_link") 2>conftest.er1
18725   ac_status=$?
18726   grep -v '^ *+' conftest.er1 >conftest.err
18727   rm -f conftest.er1
18728   cat conftest.err >&5
18729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730   (exit $ac_status); } &&
18731          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18732   { (case "(($ac_try" in
18733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18734   *) ac_try_echo=$ac_try;;
18735 esac
18736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18737   (eval "$ac_try") 2>&5
18738   ac_status=$?
18739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740   (exit $ac_status); }; } &&
18741          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18751   ac_cv_lib_gcc___moddi3=yes
18752 else
18753   echo "$as_me: failed program was:" >&5
18754 sed 's/^/| /' conftest.$ac_ext >&5
18755
18756         ac_cv_lib_gcc___moddi3=no
18757 fi
18758
18759 rm -f core conftest.err conftest.$ac_objext \
18760       conftest$ac_exeext conftest.$ac_ext
18761 LIBS=$ac_check_lib_save_LIBS
18762 fi
18763 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18764 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18765 if test $ac_cv_lib_gcc___moddi3 = yes; then
18766
18767 cat >>confdefs.h <<\_ACEOF
18768 #define HAVE___MODDI3 1
18769 _ACEOF
18770
18771 fi
18772
18773   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18774 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18775 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18776   echo $ECHO_N "(cached) $ECHO_C" >&6
18777 else
18778   ac_check_lib_save_LIBS=$LIBS
18779 LIBS="-lgcc  $LIBS"
18780 cat >conftest.$ac_ext <<_ACEOF
18781 /* confdefs.h.  */
18782 _ACEOF
18783 cat confdefs.h >>conftest.$ac_ext
18784 cat >>conftest.$ac_ext <<_ACEOF
18785 /* end confdefs.h.  */
18786
18787 /* Override any GCC internal prototype to avoid an error.
18788    Use char because int might match the return type of a GCC
18789    builtin and then its argument prototype would still apply.  */
18790 #ifdef __cplusplus
18791 extern "C"
18792 #endif
18793 char __udivdi3 ();
18794 int
18795 main ()
18796 {
18797 return __udivdi3 ();
18798   ;
18799   return 0;
18800 }
18801 _ACEOF
18802 rm -f conftest.$ac_objext conftest$ac_exeext
18803 if { (ac_try="$ac_link"
18804 case "(($ac_try" in
18805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18806   *) ac_try_echo=$ac_try;;
18807 esac
18808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18809   (eval "$ac_link") 2>conftest.er1
18810   ac_status=$?
18811   grep -v '^ *+' conftest.er1 >conftest.err
18812   rm -f conftest.er1
18813   cat conftest.err >&5
18814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815   (exit $ac_status); } &&
18816          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18817   { (case "(($ac_try" in
18818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18819   *) ac_try_echo=$ac_try;;
18820 esac
18821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18822   (eval "$ac_try") 2>&5
18823   ac_status=$?
18824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825   (exit $ac_status); }; } &&
18826          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18836   ac_cv_lib_gcc___udivdi3=yes
18837 else
18838   echo "$as_me: failed program was:" >&5
18839 sed 's/^/| /' conftest.$ac_ext >&5
18840
18841         ac_cv_lib_gcc___udivdi3=no
18842 fi
18843
18844 rm -f core conftest.err conftest.$ac_objext \
18845       conftest$ac_exeext conftest.$ac_ext
18846 LIBS=$ac_check_lib_save_LIBS
18847 fi
18848 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18849 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18850 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18851
18852 cat >>confdefs.h <<\_ACEOF
18853 #define HAVE___UDIVDI3 1
18854 _ACEOF
18855
18856 fi
18857
18858   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18859 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18860 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18861   echo $ECHO_N "(cached) $ECHO_C" >&6
18862 else
18863   ac_check_lib_save_LIBS=$LIBS
18864 LIBS="-lgcc  $LIBS"
18865 cat >conftest.$ac_ext <<_ACEOF
18866 /* confdefs.h.  */
18867 _ACEOF
18868 cat confdefs.h >>conftest.$ac_ext
18869 cat >>conftest.$ac_ext <<_ACEOF
18870 /* end confdefs.h.  */
18871
18872 /* Override any GCC internal prototype to avoid an error.
18873    Use char because int might match the return type of a GCC
18874    builtin and then its argument prototype would still apply.  */
18875 #ifdef __cplusplus
18876 extern "C"
18877 #endif
18878 char __umoddi3 ();
18879 int
18880 main ()
18881 {
18882 return __umoddi3 ();
18883   ;
18884   return 0;
18885 }
18886 _ACEOF
18887 rm -f conftest.$ac_objext conftest$ac_exeext
18888 if { (ac_try="$ac_link"
18889 case "(($ac_try" in
18890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18891   *) ac_try_echo=$ac_try;;
18892 esac
18893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18894   (eval "$ac_link") 2>conftest.er1
18895   ac_status=$?
18896   grep -v '^ *+' conftest.er1 >conftest.err
18897   rm -f conftest.er1
18898   cat conftest.err >&5
18899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900   (exit $ac_status); } &&
18901          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18902   { (case "(($ac_try" in
18903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18904   *) ac_try_echo=$ac_try;;
18905 esac
18906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18907   (eval "$ac_try") 2>&5
18908   ac_status=$?
18909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910   (exit $ac_status); }; } &&
18911          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18921   ac_cv_lib_gcc___umoddi3=yes
18922 else
18923   echo "$as_me: failed program was:" >&5
18924 sed 's/^/| /' conftest.$ac_ext >&5
18925
18926         ac_cv_lib_gcc___umoddi3=no
18927 fi
18928
18929 rm -f core conftest.err conftest.$ac_objext \
18930       conftest$ac_exeext conftest.$ac_ext
18931 LIBS=$ac_check_lib_save_LIBS
18932 fi
18933 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18934 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18935 if test $ac_cv_lib_gcc___umoddi3 = yes; then
18936
18937 cat >>confdefs.h <<\_ACEOF
18938 #define HAVE___UMODDI3 1
18939 _ACEOF
18940
18941 fi
18942
18943
18944   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18945 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18946 if test "${ac_cv_lib_gcc___main+set}" = set; then
18947   echo $ECHO_N "(cached) $ECHO_C" >&6
18948 else
18949   ac_check_lib_save_LIBS=$LIBS
18950 LIBS="-lgcc  $LIBS"
18951 cat >conftest.$ac_ext <<_ACEOF
18952 /* confdefs.h.  */
18953 _ACEOF
18954 cat confdefs.h >>conftest.$ac_ext
18955 cat >>conftest.$ac_ext <<_ACEOF
18956 /* end confdefs.h.  */
18957
18958 /* Override any GCC internal prototype to avoid an error.
18959    Use char because int might match the return type of a GCC
18960    builtin and then its argument prototype would still apply.  */
18961 #ifdef __cplusplus
18962 extern "C"
18963 #endif
18964 char __main ();
18965 int
18966 main ()
18967 {
18968 return __main ();
18969   ;
18970   return 0;
18971 }
18972 _ACEOF
18973 rm -f conftest.$ac_objext conftest$ac_exeext
18974 if { (ac_try="$ac_link"
18975 case "(($ac_try" in
18976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18977   *) ac_try_echo=$ac_try;;
18978 esac
18979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18980   (eval "$ac_link") 2>conftest.er1
18981   ac_status=$?
18982   grep -v '^ *+' conftest.er1 >conftest.err
18983   rm -f conftest.er1
18984   cat conftest.err >&5
18985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986   (exit $ac_status); } &&
18987          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18988   { (case "(($ac_try" in
18989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18990   *) ac_try_echo=$ac_try;;
18991 esac
18992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18993   (eval "$ac_try") 2>&5
18994   ac_status=$?
18995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996   (exit $ac_status); }; } &&
18997          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19007   ac_cv_lib_gcc___main=yes
19008 else
19009   echo "$as_me: failed program was:" >&5
19010 sed 's/^/| /' conftest.$ac_ext >&5
19011
19012         ac_cv_lib_gcc___main=no
19013 fi
19014
19015 rm -f core conftest.err conftest.$ac_objext \
19016       conftest$ac_exeext conftest.$ac_ext
19017 LIBS=$ac_check_lib_save_LIBS
19018 fi
19019 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19020 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19021 if test $ac_cv_lib_gcc___main = yes; then
19022
19023 cat >>confdefs.h <<\_ACEOF
19024 #define HAVE___MAIN 1
19025 _ACEOF
19026
19027 fi
19028
19029   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19030 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19031 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19032   echo $ECHO_N "(cached) $ECHO_C" >&6
19033 else
19034   ac_check_lib_save_LIBS=$LIBS
19035 LIBS="-lgcc  $LIBS"
19036 cat >conftest.$ac_ext <<_ACEOF
19037 /* confdefs.h.  */
19038 _ACEOF
19039 cat confdefs.h >>conftest.$ac_ext
19040 cat >>conftest.$ac_ext <<_ACEOF
19041 /* end confdefs.h.  */
19042
19043 /* Override any GCC internal prototype to avoid an error.
19044    Use char because int might match the return type of a GCC
19045    builtin and then its argument prototype would still apply.  */
19046 #ifdef __cplusplus
19047 extern "C"
19048 #endif
19049 char __cmpdi2 ();
19050 int
19051 main ()
19052 {
19053 return __cmpdi2 ();
19054   ;
19055   return 0;
19056 }
19057 _ACEOF
19058 rm -f conftest.$ac_objext conftest$ac_exeext
19059 if { (ac_try="$ac_link"
19060 case "(($ac_try" in
19061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19062   *) ac_try_echo=$ac_try;;
19063 esac
19064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19065   (eval "$ac_link") 2>conftest.er1
19066   ac_status=$?
19067   grep -v '^ *+' conftest.er1 >conftest.err
19068   rm -f conftest.er1
19069   cat conftest.err >&5
19070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071   (exit $ac_status); } &&
19072          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19073   { (case "(($ac_try" in
19074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19075   *) ac_try_echo=$ac_try;;
19076 esac
19077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19078   (eval "$ac_try") 2>&5
19079   ac_status=$?
19080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081   (exit $ac_status); }; } &&
19082          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19092   ac_cv_lib_gcc___cmpdi2=yes
19093 else
19094   echo "$as_me: failed program was:" >&5
19095 sed 's/^/| /' conftest.$ac_ext >&5
19096
19097         ac_cv_lib_gcc___cmpdi2=no
19098 fi
19099
19100 rm -f core conftest.err conftest.$ac_objext \
19101       conftest$ac_exeext conftest.$ac_ext
19102 LIBS=$ac_check_lib_save_LIBS
19103 fi
19104 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19105 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19106 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19107
19108 cat >>confdefs.h <<\_ACEOF
19109 #define HAVE___CMPDI2 1
19110 _ACEOF
19111
19112 fi
19113
19114 fi
19115
19116 if test "$llvm_cv_os_type" = "MingW" ; then
19117   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19118 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19119   cat >conftest.$ac_ext <<_ACEOF
19120 #include <windows.h>
19121 #include <imagehlp.h>
19122 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19123 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19124 _ACEOF
19125 rm -f conftest.$ac_objext
19126 if { (ac_try="$ac_compile"
19127 case "(($ac_try" in
19128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19129   *) ac_try_echo=$ac_try;;
19130 esac
19131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19132   (eval "$ac_compile") 2>conftest.er1
19133   ac_status=$?
19134   grep -v '^ *+' conftest.er1 >conftest.err
19135   rm -f conftest.er1
19136   cat conftest.err >&5
19137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138   (exit $ac_status); } &&
19139          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19140   { (case "(($ac_try" in
19141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19142   *) ac_try_echo=$ac_try;;
19143 esac
19144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19145   (eval "$ac_try") 2>&5
19146   ac_status=$?
19147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148   (exit $ac_status); }; } &&
19149          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19159
19160   { echo "$as_me:$LINENO: result: yes" >&5
19161 echo "${ECHO_T}yes" >&6; }
19162   llvm_cv_win32_elmcb_pcstr="PCSTR"
19163
19164 else
19165   echo "$as_me: failed program was:" >&5
19166 sed 's/^/| /' conftest.$ac_ext >&5
19167
19168
19169   { echo "$as_me:$LINENO: result: no" >&5
19170 echo "${ECHO_T}no" >&6; }
19171   llvm_cv_win32_elmcb_pcstr="PSTR"
19172
19173 fi
19174
19175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19176
19177 cat >>confdefs.h <<_ACEOF
19178 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19179 _ACEOF
19180
19181 fi
19182
19183
19184 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19185 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19186 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19187   echo $ECHO_N "(cached) $ECHO_C" >&6
19188 else
19189   ac_ext=cpp
19190 ac_cpp='$CXXCPP $CPPFLAGS'
19191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19194
19195    cat >conftest.$ac_ext <<_ACEOF
19196 /* confdefs.h.  */
19197 _ACEOF
19198 cat confdefs.h >>conftest.$ac_ext
19199 cat >>conftest.$ac_ext <<_ACEOF
19200 /* end confdefs.h.  */
19201 #include <math.h>
19202 int
19203 main ()
19204 {
19205 float f; isnan(f);
19206   ;
19207   return 0;
19208 }
19209 _ACEOF
19210 rm -f conftest.$ac_objext
19211 if { (ac_try="$ac_compile"
19212 case "(($ac_try" in
19213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19214   *) ac_try_echo=$ac_try;;
19215 esac
19216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19217   (eval "$ac_compile") 2>conftest.er1
19218   ac_status=$?
19219   grep -v '^ *+' conftest.er1 >conftest.err
19220   rm -f conftest.er1
19221   cat conftest.err >&5
19222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223   (exit $ac_status); } &&
19224          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19225   { (case "(($ac_try" in
19226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19227   *) ac_try_echo=$ac_try;;
19228 esac
19229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19230   (eval "$ac_try") 2>&5
19231   ac_status=$?
19232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233   (exit $ac_status); }; } &&
19234          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19244   ac_cv_func_isnan_in_math_h=yes
19245 else
19246   echo "$as_me: failed program was:" >&5
19247 sed 's/^/| /' conftest.$ac_ext >&5
19248
19249         ac_cv_func_isnan_in_math_h=no
19250 fi
19251
19252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19253   ac_ext=c
19254 ac_cpp='$CPP $CPPFLAGS'
19255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19258
19259 fi
19260 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19261 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19262
19263
19264 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19265
19266 cat >>confdefs.h <<\_ACEOF
19267 #define HAVE_ISNAN_IN_MATH_H 1
19268 _ACEOF
19269
19270 fi
19271
19272 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19273 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19274 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19275   echo $ECHO_N "(cached) $ECHO_C" >&6
19276 else
19277   ac_ext=cpp
19278 ac_cpp='$CXXCPP $CPPFLAGS'
19279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19282
19283    cat >conftest.$ac_ext <<_ACEOF
19284 /* confdefs.h.  */
19285 _ACEOF
19286 cat confdefs.h >>conftest.$ac_ext
19287 cat >>conftest.$ac_ext <<_ACEOF
19288 /* end confdefs.h.  */
19289 #include <cmath>
19290 int
19291 main ()
19292 {
19293 float f; isnan(f);
19294   ;
19295   return 0;
19296 }
19297 _ACEOF
19298 rm -f conftest.$ac_objext
19299 if { (ac_try="$ac_compile"
19300 case "(($ac_try" in
19301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19302   *) ac_try_echo=$ac_try;;
19303 esac
19304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19305   (eval "$ac_compile") 2>conftest.er1
19306   ac_status=$?
19307   grep -v '^ *+' conftest.er1 >conftest.err
19308   rm -f conftest.er1
19309   cat conftest.err >&5
19310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311   (exit $ac_status); } &&
19312          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19313   { (case "(($ac_try" in
19314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19315   *) ac_try_echo=$ac_try;;
19316 esac
19317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19318   (eval "$ac_try") 2>&5
19319   ac_status=$?
19320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321   (exit $ac_status); }; } &&
19322          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19332   ac_cv_func_isnan_in_cmath=yes
19333 else
19334   echo "$as_me: failed program was:" >&5
19335 sed 's/^/| /' conftest.$ac_ext >&5
19336
19337         ac_cv_func_isnan_in_cmath=no
19338 fi
19339
19340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19341   ac_ext=c
19342 ac_cpp='$CPP $CPPFLAGS'
19343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19346
19347 fi
19348 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19349 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19350
19351 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19352
19353 cat >>confdefs.h <<\_ACEOF
19354 #define HAVE_ISNAN_IN_CMATH 1
19355 _ACEOF
19356
19357 fi
19358
19359 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19360 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19361 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19362   echo $ECHO_N "(cached) $ECHO_C" >&6
19363 else
19364   ac_ext=cpp
19365 ac_cpp='$CXXCPP $CPPFLAGS'
19366 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19367 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19368 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19369
19370    cat >conftest.$ac_ext <<_ACEOF
19371 /* confdefs.h.  */
19372 _ACEOF
19373 cat confdefs.h >>conftest.$ac_ext
19374 cat >>conftest.$ac_ext <<_ACEOF
19375 /* end confdefs.h.  */
19376 #include <cmath>
19377 int
19378 main ()
19379 {
19380 float f; std::isnan(f);
19381   ;
19382   return 0;
19383 }
19384 _ACEOF
19385 rm -f conftest.$ac_objext
19386 if { (ac_try="$ac_compile"
19387 case "(($ac_try" in
19388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19389   *) ac_try_echo=$ac_try;;
19390 esac
19391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19392   (eval "$ac_compile") 2>conftest.er1
19393   ac_status=$?
19394   grep -v '^ *+' conftest.er1 >conftest.err
19395   rm -f conftest.er1
19396   cat conftest.err >&5
19397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398   (exit $ac_status); } &&
19399          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19400   { (case "(($ac_try" in
19401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19402   *) ac_try_echo=$ac_try;;
19403 esac
19404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19405   (eval "$ac_try") 2>&5
19406   ac_status=$?
19407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408   (exit $ac_status); }; } &&
19409          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19419   ac_cv_func_std_isnan_in_cmath=yes
19420 else
19421   echo "$as_me: failed program was:" >&5
19422 sed 's/^/| /' conftest.$ac_ext >&5
19423
19424         ac_cv_func_std_isnan_in_cmath=no
19425 fi
19426
19427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19428   ac_ext=c
19429 ac_cpp='$CPP $CPPFLAGS'
19430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19433
19434 fi
19435 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19436 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19437
19438 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19439
19440 cat >>confdefs.h <<\_ACEOF
19441 #define HAVE_STD_ISNAN_IN_CMATH 1
19442 _ACEOF
19443
19444 fi
19445
19446
19447 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19448 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19449 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19450   echo $ECHO_N "(cached) $ECHO_C" >&6
19451 else
19452   ac_ext=cpp
19453 ac_cpp='$CXXCPP $CPPFLAGS'
19454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19457
19458    cat >conftest.$ac_ext <<_ACEOF
19459 /* confdefs.h.  */
19460 _ACEOF
19461 cat confdefs.h >>conftest.$ac_ext
19462 cat >>conftest.$ac_ext <<_ACEOF
19463 /* end confdefs.h.  */
19464 #include <math.h>
19465 int
19466 main ()
19467 {
19468 float f; isinf(f);
19469   ;
19470   return 0;
19471 }
19472 _ACEOF
19473 rm -f conftest.$ac_objext
19474 if { (ac_try="$ac_compile"
19475 case "(($ac_try" in
19476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19477   *) ac_try_echo=$ac_try;;
19478 esac
19479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19480   (eval "$ac_compile") 2>conftest.er1
19481   ac_status=$?
19482   grep -v '^ *+' conftest.er1 >conftest.err
19483   rm -f conftest.er1
19484   cat conftest.err >&5
19485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486   (exit $ac_status); } &&
19487          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19488   { (case "(($ac_try" in
19489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19490   *) ac_try_echo=$ac_try;;
19491 esac
19492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19493   (eval "$ac_try") 2>&5
19494   ac_status=$?
19495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496   (exit $ac_status); }; } &&
19497          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19507   ac_cv_func_isinf_in_math_h=yes
19508 else
19509   echo "$as_me: failed program was:" >&5
19510 sed 's/^/| /' conftest.$ac_ext >&5
19511
19512         ac_cv_func_isinf_in_math_h=no
19513 fi
19514
19515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19516   ac_ext=c
19517 ac_cpp='$CPP $CPPFLAGS'
19518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19521
19522 fi
19523 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19524 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19525
19526 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19527
19528 cat >>confdefs.h <<\_ACEOF
19529 #define HAVE_ISINF_IN_MATH_H 1
19530 _ACEOF
19531
19532 fi
19533
19534 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19535 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19536 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19537   echo $ECHO_N "(cached) $ECHO_C" >&6
19538 else
19539   ac_ext=cpp
19540 ac_cpp='$CXXCPP $CPPFLAGS'
19541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19544
19545    cat >conftest.$ac_ext <<_ACEOF
19546 /* confdefs.h.  */
19547 _ACEOF
19548 cat confdefs.h >>conftest.$ac_ext
19549 cat >>conftest.$ac_ext <<_ACEOF
19550 /* end confdefs.h.  */
19551 #include <cmath>
19552 int
19553 main ()
19554 {
19555 float f; isinf(f);
19556   ;
19557   return 0;
19558 }
19559 _ACEOF
19560 rm -f conftest.$ac_objext
19561 if { (ac_try="$ac_compile"
19562 case "(($ac_try" in
19563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19564   *) ac_try_echo=$ac_try;;
19565 esac
19566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19567   (eval "$ac_compile") 2>conftest.er1
19568   ac_status=$?
19569   grep -v '^ *+' conftest.er1 >conftest.err
19570   rm -f conftest.er1
19571   cat conftest.err >&5
19572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573   (exit $ac_status); } &&
19574          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19575   { (case "(($ac_try" in
19576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19577   *) ac_try_echo=$ac_try;;
19578 esac
19579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19580   (eval "$ac_try") 2>&5
19581   ac_status=$?
19582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583   (exit $ac_status); }; } &&
19584          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19594   ac_cv_func_isinf_in_cmath=yes
19595 else
19596   echo "$as_me: failed program was:" >&5
19597 sed 's/^/| /' conftest.$ac_ext >&5
19598
19599         ac_cv_func_isinf_in_cmath=no
19600 fi
19601
19602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19603   ac_ext=c
19604 ac_cpp='$CPP $CPPFLAGS'
19605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19608
19609 fi
19610 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19611 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19612
19613 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19614
19615 cat >>confdefs.h <<\_ACEOF
19616 #define HAVE_ISINF_IN_CMATH 1
19617 _ACEOF
19618
19619 fi
19620
19621 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19622 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19623 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19624   echo $ECHO_N "(cached) $ECHO_C" >&6
19625 else
19626   ac_ext=cpp
19627 ac_cpp='$CXXCPP $CPPFLAGS'
19628 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19629 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19630 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19631
19632    cat >conftest.$ac_ext <<_ACEOF
19633 /* confdefs.h.  */
19634 _ACEOF
19635 cat confdefs.h >>conftest.$ac_ext
19636 cat >>conftest.$ac_ext <<_ACEOF
19637 /* end confdefs.h.  */
19638 #include <cmath>
19639 int
19640 main ()
19641 {
19642 float f; std::isinf(f);
19643   ;
19644   return 0;
19645 }
19646 _ACEOF
19647 rm -f conftest.$ac_objext
19648 if { (ac_try="$ac_compile"
19649 case "(($ac_try" in
19650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19651   *) ac_try_echo=$ac_try;;
19652 esac
19653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19654   (eval "$ac_compile") 2>conftest.er1
19655   ac_status=$?
19656   grep -v '^ *+' conftest.er1 >conftest.err
19657   rm -f conftest.er1
19658   cat conftest.err >&5
19659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660   (exit $ac_status); } &&
19661          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19662   { (case "(($ac_try" in
19663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19664   *) ac_try_echo=$ac_try;;
19665 esac
19666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19667   (eval "$ac_try") 2>&5
19668   ac_status=$?
19669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670   (exit $ac_status); }; } &&
19671          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19681   ac_cv_func_std_isinf_in_cmath=yes
19682 else
19683   echo "$as_me: failed program was:" >&5
19684 sed 's/^/| /' conftest.$ac_ext >&5
19685
19686         ac_cv_func_std_isinf_in_cmath=no
19687 fi
19688
19689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19690   ac_ext=c
19691 ac_cpp='$CPP $CPPFLAGS'
19692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19695
19696 fi
19697 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19698 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19699
19700 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19701
19702 cat >>confdefs.h <<\_ACEOF
19703 #define HAVE_STD_ISINF_IN_CMATH 1
19704 _ACEOF
19705
19706 fi
19707
19708 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19709 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19710 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19711   echo $ECHO_N "(cached) $ECHO_C" >&6
19712 else
19713   ac_ext=cpp
19714 ac_cpp='$CXXCPP $CPPFLAGS'
19715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19718
19719    cat >conftest.$ac_ext <<_ACEOF
19720 /* confdefs.h.  */
19721 _ACEOF
19722 cat confdefs.h >>conftest.$ac_ext
19723 cat >>conftest.$ac_ext <<_ACEOF
19724 /* end confdefs.h.  */
19725 #include <ieeefp.h>
19726 int
19727 main ()
19728 {
19729 float f; finite(f);
19730   ;
19731   return 0;
19732 }
19733 _ACEOF
19734 rm -f conftest.$ac_objext
19735 if { (ac_try="$ac_compile"
19736 case "(($ac_try" in
19737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19738   *) ac_try_echo=$ac_try;;
19739 esac
19740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19741   (eval "$ac_compile") 2>conftest.er1
19742   ac_status=$?
19743   grep -v '^ *+' conftest.er1 >conftest.err
19744   rm -f conftest.er1
19745   cat conftest.err >&5
19746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747   (exit $ac_status); } &&
19748          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19749   { (case "(($ac_try" in
19750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19751   *) ac_try_echo=$ac_try;;
19752 esac
19753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19754   (eval "$ac_try") 2>&5
19755   ac_status=$?
19756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757   (exit $ac_status); }; } &&
19758          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19768   ac_cv_func_finite_in_ieeefp_h=yes
19769 else
19770   echo "$as_me: failed program was:" >&5
19771 sed 's/^/| /' conftest.$ac_ext >&5
19772
19773         ac_cv_func_finite_in_ieeefp_h=no
19774 fi
19775
19776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19777   ac_ext=c
19778 ac_cpp='$CPP $CPPFLAGS'
19779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19782
19783 fi
19784 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19785 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19786
19787 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19788
19789 cat >>confdefs.h <<\_ACEOF
19790 #define HAVE_FINITE_IN_IEEEFP_H 1
19791 _ACEOF
19792
19793 fi
19794
19795
19796
19797 if test "$llvm_cv_platform_type" = "Unix" ; then
19798
19799
19800 for ac_header in stdlib.h unistd.h
19801 do
19802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19804   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19807   echo $ECHO_N "(cached) $ECHO_C" >&6
19808 fi
19809 ac_res=`eval echo '${'$as_ac_Header'}'`
19810                { echo "$as_me:$LINENO: result: $ac_res" >&5
19811 echo "${ECHO_T}$ac_res" >&6; }
19812 else
19813   # Is the header compilable?
19814 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19816 cat >conftest.$ac_ext <<_ACEOF
19817 /* confdefs.h.  */
19818 _ACEOF
19819 cat confdefs.h >>conftest.$ac_ext
19820 cat >>conftest.$ac_ext <<_ACEOF
19821 /* end confdefs.h.  */
19822 $ac_includes_default
19823 #include <$ac_header>
19824 _ACEOF
19825 rm -f conftest.$ac_objext
19826 if { (ac_try="$ac_compile"
19827 case "(($ac_try" in
19828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19829   *) ac_try_echo=$ac_try;;
19830 esac
19831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19832   (eval "$ac_compile") 2>conftest.er1
19833   ac_status=$?
19834   grep -v '^ *+' conftest.er1 >conftest.err
19835   rm -f conftest.er1
19836   cat conftest.err >&5
19837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838   (exit $ac_status); } &&
19839          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19840   { (case "(($ac_try" in
19841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19842   *) ac_try_echo=$ac_try;;
19843 esac
19844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19845   (eval "$ac_try") 2>&5
19846   ac_status=$?
19847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848   (exit $ac_status); }; } &&
19849          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19859   ac_header_compiler=yes
19860 else
19861   echo "$as_me: failed program was:" >&5
19862 sed 's/^/| /' conftest.$ac_ext >&5
19863
19864         ac_header_compiler=no
19865 fi
19866
19867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19868 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19869 echo "${ECHO_T}$ac_header_compiler" >&6; }
19870
19871 # Is the header present?
19872 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19874 cat >conftest.$ac_ext <<_ACEOF
19875 /* confdefs.h.  */
19876 _ACEOF
19877 cat confdefs.h >>conftest.$ac_ext
19878 cat >>conftest.$ac_ext <<_ACEOF
19879 /* end confdefs.h.  */
19880 #include <$ac_header>
19881 _ACEOF
19882 if { (ac_try="$ac_cpp conftest.$ac_ext"
19883 case "(($ac_try" in
19884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19885   *) ac_try_echo=$ac_try;;
19886 esac
19887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19888   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19889   ac_status=$?
19890   grep -v '^ *+' conftest.er1 >conftest.err
19891   rm -f conftest.er1
19892   cat conftest.err >&5
19893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894   (exit $ac_status); } >/dev/null; then
19895   if test -s conftest.err; then
19896     ac_cpp_err=$ac_c_preproc_warn_flag
19897     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19898   else
19899     ac_cpp_err=
19900   fi
19901 else
19902   ac_cpp_err=yes
19903 fi
19904 if test -z "$ac_cpp_err"; then
19905   ac_header_preproc=yes
19906 else
19907   echo "$as_me: failed program was:" >&5
19908 sed 's/^/| /' conftest.$ac_ext >&5
19909
19910   ac_header_preproc=no
19911 fi
19912
19913 rm -f conftest.err conftest.$ac_ext
19914 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19915 echo "${ECHO_T}$ac_header_preproc" >&6; }
19916
19917 # So?  What about this header?
19918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19919   yes:no: )
19920     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19921 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19922     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19923 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19924     ac_header_preproc=yes
19925     ;;
19926   no:yes:* )
19927     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19928 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19929     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19930 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19931     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19932 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19933     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19934 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19935     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19937     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19938 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19939     ( cat <<\_ASBOX
19940 ## ------------------------------ ##
19941 ## Report this to bugs@yourdomain ##
19942 ## ------------------------------ ##
19943 _ASBOX
19944      ) | sed "s/^/$as_me: WARNING:     /" >&2
19945     ;;
19946 esac
19947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19950   echo $ECHO_N "(cached) $ECHO_C" >&6
19951 else
19952   eval "$as_ac_Header=\$ac_header_preproc"
19953 fi
19954 ac_res=`eval echo '${'$as_ac_Header'}'`
19955                { echo "$as_me:$LINENO: result: $ac_res" >&5
19956 echo "${ECHO_T}$ac_res" >&6; }
19957
19958 fi
19959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19960   cat >>confdefs.h <<_ACEOF
19961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19962 _ACEOF
19963
19964 fi
19965
19966 done
19967
19968
19969 for ac_func in getpagesize
19970 do
19971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19972 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19974 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19975   echo $ECHO_N "(cached) $ECHO_C" >&6
19976 else
19977   cat >conftest.$ac_ext <<_ACEOF
19978 /* confdefs.h.  */
19979 _ACEOF
19980 cat confdefs.h >>conftest.$ac_ext
19981 cat >>conftest.$ac_ext <<_ACEOF
19982 /* end confdefs.h.  */
19983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19984    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19985 #define $ac_func innocuous_$ac_func
19986
19987 /* System header to define __stub macros and hopefully few prototypes,
19988     which can conflict with char $ac_func (); below.
19989     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19990     <limits.h> exists even on freestanding compilers.  */
19991
19992 #ifdef __STDC__
19993 # include <limits.h>
19994 #else
19995 # include <assert.h>
19996 #endif
19997
19998 #undef $ac_func
19999
20000 /* Override any GCC internal prototype to avoid an error.
20001    Use char because int might match the return type of a GCC
20002    builtin and then its argument prototype would still apply.  */
20003 #ifdef __cplusplus
20004 extern "C"
20005 #endif
20006 char $ac_func ();
20007 /* The GNU C library defines this for functions which it implements
20008     to always fail with ENOSYS.  Some functions are actually named
20009     something starting with __ and the normal name is an alias.  */
20010 #if defined __stub_$ac_func || defined __stub___$ac_func
20011 choke me
20012 #endif
20013
20014 int
20015 main ()
20016 {
20017 return $ac_func ();
20018   ;
20019   return 0;
20020 }
20021 _ACEOF
20022 rm -f conftest.$ac_objext conftest$ac_exeext
20023 if { (ac_try="$ac_link"
20024 case "(($ac_try" in
20025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20026   *) ac_try_echo=$ac_try;;
20027 esac
20028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20029   (eval "$ac_link") 2>conftest.er1
20030   ac_status=$?
20031   grep -v '^ *+' conftest.er1 >conftest.err
20032   rm -f conftest.er1
20033   cat conftest.err >&5
20034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035   (exit $ac_status); } &&
20036          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20037   { (case "(($ac_try" in
20038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20039   *) ac_try_echo=$ac_try;;
20040 esac
20041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20042   (eval "$ac_try") 2>&5
20043   ac_status=$?
20044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045   (exit $ac_status); }; } &&
20046          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
20056   eval "$as_ac_var=yes"
20057 else
20058   echo "$as_me: failed program was:" >&5
20059 sed 's/^/| /' conftest.$ac_ext >&5
20060
20061         eval "$as_ac_var=no"
20062 fi
20063
20064 rm -f core conftest.err conftest.$ac_objext \
20065       conftest$ac_exeext conftest.$ac_ext
20066 fi
20067 ac_res=`eval echo '${'$as_ac_var'}'`
20068                { echo "$as_me:$LINENO: result: $ac_res" >&5
20069 echo "${ECHO_T}$ac_res" >&6; }
20070 if test `eval echo '${'$as_ac_var'}'` = yes; then
20071   cat >>confdefs.h <<_ACEOF
20072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20073 _ACEOF
20074
20075 fi
20076 done
20077
20078 { echo "$as_me:$LINENO: checking for working mmap" >&5
20079 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20080 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20081   echo $ECHO_N "(cached) $ECHO_C" >&6
20082 else
20083   if test "$cross_compiling" = yes; then
20084   ac_cv_func_mmap_fixed_mapped=no
20085 else
20086   cat >conftest.$ac_ext <<_ACEOF
20087 /* confdefs.h.  */
20088 _ACEOF
20089 cat confdefs.h >>conftest.$ac_ext
20090 cat >>conftest.$ac_ext <<_ACEOF
20091 /* end confdefs.h.  */
20092 $ac_includes_default
20093 /* malloc might have been renamed as rpl_malloc. */
20094 #undef malloc
20095
20096 /* Thanks to Mike Haertel and Jim Avera for this test.
20097    Here is a matrix of mmap possibilities:
20098         mmap private not fixed
20099         mmap private fixed at somewhere currently unmapped
20100         mmap private fixed at somewhere already mapped
20101         mmap shared not fixed
20102         mmap shared fixed at somewhere currently unmapped
20103         mmap shared fixed at somewhere already mapped
20104    For private mappings, we should verify that changes cannot be read()
20105    back from the file, nor mmap's back from the file at a different
20106    address.  (There have been systems where private was not correctly
20107    implemented like the infamous i386 svr4.0, and systems where the
20108    VM page cache was not coherent with the file system buffer cache
20109    like early versions of FreeBSD and possibly contemporary NetBSD.)
20110    For shared mappings, we should conversely verify that changes get
20111    propagated back to all the places they're supposed to be.
20112
20113    Grep wants private fixed already mapped.
20114    The main things grep needs to know about mmap are:
20115    * does it exist and is it safe to write into the mmap'd area
20116    * how to use it (BSD variants)  */
20117
20118 #include <fcntl.h>
20119 #include <sys/mman.h>
20120
20121 #if !STDC_HEADERS && !HAVE_STDLIB_H
20122 char *malloc ();
20123 #endif
20124
20125 /* This mess was copied from the GNU getpagesize.h.  */
20126 #if !HAVE_GETPAGESIZE
20127 /* Assume that all systems that can run configure have sys/param.h.  */
20128 # if !HAVE_SYS_PARAM_H
20129 #  define HAVE_SYS_PARAM_H 1
20130 # endif
20131
20132 # ifdef _SC_PAGESIZE
20133 #  define getpagesize() sysconf(_SC_PAGESIZE)
20134 # else /* no _SC_PAGESIZE */
20135 #  if HAVE_SYS_PARAM_H
20136 #   include <sys/param.h>
20137 #   ifdef EXEC_PAGESIZE
20138 #    define getpagesize() EXEC_PAGESIZE
20139 #   else /* no EXEC_PAGESIZE */
20140 #    ifdef NBPG
20141 #     define getpagesize() NBPG * CLSIZE
20142 #     ifndef CLSIZE
20143 #      define CLSIZE 1
20144 #     endif /* no CLSIZE */
20145 #    else /* no NBPG */
20146 #     ifdef NBPC
20147 #      define getpagesize() NBPC
20148 #     else /* no NBPC */
20149 #      ifdef PAGESIZE
20150 #       define getpagesize() PAGESIZE
20151 #      endif /* PAGESIZE */
20152 #     endif /* no NBPC */
20153 #    endif /* no NBPG */
20154 #   endif /* no EXEC_PAGESIZE */
20155 #  else /* no HAVE_SYS_PARAM_H */
20156 #   define getpagesize() 8192   /* punt totally */
20157 #  endif /* no HAVE_SYS_PARAM_H */
20158 # endif /* no _SC_PAGESIZE */
20159
20160 #endif /* no HAVE_GETPAGESIZE */
20161
20162 int
20163 main ()
20164 {
20165   char *data, *data2, *data3;
20166   int i, pagesize;
20167   int fd;
20168
20169   pagesize = getpagesize ();
20170
20171   /* First, make a file with some known garbage in it. */
20172   data = (char *) malloc (pagesize);
20173   if (!data)
20174     return 1;
20175   for (i = 0; i < pagesize; ++i)
20176     *(data + i) = rand ();
20177   umask (0);
20178   fd = creat ("conftest.mmap", 0600);
20179   if (fd < 0)
20180     return 1;
20181   if (write (fd, data, pagesize) != pagesize)
20182     return 1;
20183   close (fd);
20184
20185   /* Next, try to mmap the file at a fixed address which already has
20186      something else allocated at it.  If we can, also make sure that
20187      we see the same garbage.  */
20188   fd = open ("conftest.mmap", O_RDWR);
20189   if (fd < 0)
20190     return 1;
20191   data2 = (char *) malloc (2 * pagesize);
20192   if (!data2)
20193     return 1;
20194   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20195   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20196                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20197     return 1;
20198   for (i = 0; i < pagesize; ++i)
20199     if (*(data + i) != *(data2 + i))
20200       return 1;
20201
20202   /* Finally, make sure that changes to the mapped area do not
20203      percolate back to the file as seen by read().  (This is a bug on
20204      some variants of i386 svr4.0.)  */
20205   for (i = 0; i < pagesize; ++i)
20206     *(data2 + i) = *(data2 + i) + 1;
20207   data3 = (char *) malloc (pagesize);
20208   if (!data3)
20209     return 1;
20210   if (read (fd, data3, pagesize) != pagesize)
20211     return 1;
20212   for (i = 0; i < pagesize; ++i)
20213     if (*(data + i) != *(data3 + i))
20214       return 1;
20215   close (fd);
20216   return 0;
20217 }
20218 _ACEOF
20219 rm -f conftest$ac_exeext
20220 if { (ac_try="$ac_link"
20221 case "(($ac_try" in
20222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20223   *) ac_try_echo=$ac_try;;
20224 esac
20225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20226   (eval "$ac_link") 2>&5
20227   ac_status=$?
20228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20230   { (case "(($ac_try" in
20231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20232   *) ac_try_echo=$ac_try;;
20233 esac
20234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20235   (eval "$ac_try") 2>&5
20236   ac_status=$?
20237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238   (exit $ac_status); }; }; then
20239   ac_cv_func_mmap_fixed_mapped=yes
20240 else
20241   echo "$as_me: program exited with status $ac_status" >&5
20242 echo "$as_me: failed program was:" >&5
20243 sed 's/^/| /' conftest.$ac_ext >&5
20244
20245 ( exit $ac_status )
20246 ac_cv_func_mmap_fixed_mapped=no
20247 fi
20248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20249 fi
20250
20251
20252 fi
20253 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20254 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20255 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20256
20257 cat >>confdefs.h <<\_ACEOF
20258 #define HAVE_MMAP 1
20259 _ACEOF
20260
20261 fi
20262 rm -f conftest.mmap
20263
20264   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20265 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20266 if test "${ac_cv_func_mmap_file+set}" = set; then
20267   echo $ECHO_N "(cached) $ECHO_C" >&6
20268 else
20269    ac_ext=c
20270 ac_cpp='$CPP $CPPFLAGS'
20271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20274
20275   if test "$cross_compiling" = yes; then
20276   ac_cv_func_mmap_file=no
20277 else
20278   cat >conftest.$ac_ext <<_ACEOF
20279
20280     /* confdefs.h.  */
20281 _ACEOF
20282 cat confdefs.h >>conftest.$ac_ext
20283 cat >>conftest.$ac_ext <<_ACEOF
20284 /* end confdefs.h.  */
20285
20286 #include <sys/types.h>
20287 #include <sys/mman.h>
20288 #include <fcntl.h>
20289
20290 int
20291 main ()
20292 {
20293
20294   int fd;
20295   fd = creat ("foo",0777);
20296   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20297   unlink ("foo");
20298   return (fd != (int) MAP_FAILED);
20299   ;
20300   return 0;
20301 }
20302 _ACEOF
20303 rm -f conftest$ac_exeext
20304 if { (ac_try="$ac_link"
20305 case "(($ac_try" in
20306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20307   *) ac_try_echo=$ac_try;;
20308 esac
20309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20310   (eval "$ac_link") 2>&5
20311   ac_status=$?
20312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20314   { (case "(($ac_try" in
20315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20316   *) ac_try_echo=$ac_try;;
20317 esac
20318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20319   (eval "$ac_try") 2>&5
20320   ac_status=$?
20321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322   (exit $ac_status); }; }; then
20323   ac_cv_func_mmap_file=yes
20324 else
20325   echo "$as_me: program exited with status $ac_status" >&5
20326 echo "$as_me: failed program was:" >&5
20327 sed 's/^/| /' conftest.$ac_ext >&5
20328
20329 ( exit $ac_status )
20330 ac_cv_func_mmap_file=no
20331 fi
20332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20333 fi
20334
20335
20336   ac_ext=c
20337 ac_cpp='$CPP $CPPFLAGS'
20338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20341
20342
20343 fi
20344 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20345 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20346 if test "$ac_cv_func_mmap_file" = yes; then
20347
20348 cat >>confdefs.h <<\_ACEOF
20349 #define HAVE_MMAP_FILE
20350 _ACEOF
20351
20352    MMAP_FILE=yes
20353
20354 fi
20355
20356   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20357 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20358 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20359   echo $ECHO_N "(cached) $ECHO_C" >&6
20360 else
20361   if test "$llvm_cv_os_type" = "Interix" ; then
20362    ac_cv_need_dev_zero_for_mmap=yes
20363  else
20364    ac_cv_need_dev_zero_for_mmap=no
20365  fi
20366
20367 fi
20368 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20369 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20370 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20371
20372 cat >>confdefs.h <<\_ACEOF
20373 #define NEED_DEV_ZERO_FOR_MMAP 1
20374 _ACEOF
20375
20376 fi
20377
20378   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20379   then
20380     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20381 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20382   fi
20383   if test "$ac_cv_func_mmap_file" = "no"
20384   then
20385     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20386 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20387   fi
20388 fi
20389
20390 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20391 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20392 ac_ext=cpp
20393 ac_cpp='$CXXCPP $CPPFLAGS'
20394 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20395 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20396 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20397
20398 cat >conftest.$ac_ext <<_ACEOF
20399 /* confdefs.h.  */
20400 _ACEOF
20401 cat confdefs.h >>conftest.$ac_ext
20402 cat >>conftest.$ac_ext <<_ACEOF
20403 /* end confdefs.h.  */
20404 int main() {
20405         volatile unsigned long val = 1;
20406         __sync_synchronize();
20407         __sync_val_compare_and_swap(&val, 1, 0);
20408         __sync_add_and_fetch(&val, 1);
20409         __sync_sub_and_fetch(&val, 1);
20410         return 0;
20411       }
20412
20413 _ACEOF
20414 rm -f conftest.$ac_objext conftest$ac_exeext
20415 if { (ac_try="$ac_link"
20416 case "(($ac_try" in
20417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20418   *) ac_try_echo=$ac_try;;
20419 esac
20420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20421   (eval "$ac_link") 2>conftest.er1
20422   ac_status=$?
20423   grep -v '^ *+' conftest.er1 >conftest.err
20424   rm -f conftest.er1
20425   cat conftest.err >&5
20426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427   (exit $ac_status); } &&
20428          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20429   { (case "(($ac_try" in
20430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20431   *) ac_try_echo=$ac_try;;
20432 esac
20433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20434   (eval "$ac_try") 2>&5
20435   ac_status=$?
20436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437   (exit $ac_status); }; } &&
20438          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
20448   ac_ext=c
20449 ac_cpp='$CPP $CPPFLAGS'
20450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20453
20454   { echo "$as_me:$LINENO: result: yes" >&5
20455 echo "${ECHO_T}yes" >&6; }
20456
20457 cat >>confdefs.h <<\_ACEOF
20458 #define LLVM_HAS_ATOMICS 1
20459 _ACEOF
20460
20461 else
20462   echo "$as_me: failed program was:" >&5
20463 sed 's/^/| /' conftest.$ac_ext >&5
20464
20465         { echo "$as_me:$LINENO: result: no" >&5
20466 echo "${ECHO_T}no" >&6; }
20467
20468 cat >>confdefs.h <<\_ACEOF
20469 #define LLVM_HAS_ATOMICS 0
20470 _ACEOF
20471
20472   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20473 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20474 fi
20475
20476 rm -f core conftest.err conftest.$ac_objext \
20477       conftest$ac_exeext conftest.$ac_ext
20478
20479
20480 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20481   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20482 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20483 if test "${llvm_cv_linux_mixed+set}" = set; then
20484   echo $ECHO_N "(cached) $ECHO_C" >&6
20485 else
20486    ac_ext=c
20487 ac_cpp='$CPP $CPPFLAGS'
20488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20491
20492   cat >conftest.$ac_ext <<_ACEOF
20493 /* confdefs.h.  */
20494 _ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h.  */
20498 #ifndef __x86_64__
20499        error: Not x86-64 even if uname says so!
20500       #endif
20501
20502 int
20503 main ()
20504 {
20505
20506   ;
20507   return 0;
20508 }
20509 _ACEOF
20510 rm -f conftest.$ac_objext
20511 if { (ac_try="$ac_compile"
20512 case "(($ac_try" in
20513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20514   *) ac_try_echo=$ac_try;;
20515 esac
20516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20517   (eval "$ac_compile") 2>conftest.er1
20518   ac_status=$?
20519   grep -v '^ *+' conftest.er1 >conftest.err
20520   rm -f conftest.er1
20521   cat conftest.err >&5
20522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523   (exit $ac_status); } &&
20524          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20525   { (case "(($ac_try" in
20526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20527   *) ac_try_echo=$ac_try;;
20528 esac
20529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20530   (eval "$ac_try") 2>&5
20531   ac_status=$?
20532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533   (exit $ac_status); }; } &&
20534          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20544   llvm_cv_linux_mixed=no
20545 else
20546   echo "$as_me: failed program was:" >&5
20547 sed 's/^/| /' conftest.$ac_ext >&5
20548
20549         llvm_cv_linux_mixed=yes
20550 fi
20551
20552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20553   ac_ext=c
20554 ac_cpp='$CPP $CPPFLAGS'
20555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20558
20559
20560 fi
20561 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20562 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20563
20564   if test "$llvm_cv_linux_mixed" = "yes"; then
20565     llvm_cv_target_arch="x86"
20566     ARCH="x86"
20567   fi
20568 fi
20569
20570
20571 for ac_func in __dso_handle
20572 do
20573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20574 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20576 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20577   echo $ECHO_N "(cached) $ECHO_C" >&6
20578 else
20579   cat >conftest.$ac_ext <<_ACEOF
20580 /* confdefs.h.  */
20581 _ACEOF
20582 cat confdefs.h >>conftest.$ac_ext
20583 cat >>conftest.$ac_ext <<_ACEOF
20584 /* end confdefs.h.  */
20585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20586    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20587 #define $ac_func innocuous_$ac_func
20588
20589 /* System header to define __stub macros and hopefully few prototypes,
20590     which can conflict with char $ac_func (); below.
20591     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20592     <limits.h> exists even on freestanding compilers.  */
20593
20594 #ifdef __STDC__
20595 # include <limits.h>
20596 #else
20597 # include <assert.h>
20598 #endif
20599
20600 #undef $ac_func
20601
20602 /* Override any GCC internal prototype to avoid an error.
20603    Use char because int might match the return type of a GCC
20604    builtin and then its argument prototype would still apply.  */
20605 #ifdef __cplusplus
20606 extern "C"
20607 #endif
20608 char $ac_func ();
20609 /* The GNU C library defines this for functions which it implements
20610     to always fail with ENOSYS.  Some functions are actually named
20611     something starting with __ and the normal name is an alias.  */
20612 #if defined __stub_$ac_func || defined __stub___$ac_func
20613 choke me
20614 #endif
20615
20616 int
20617 main ()
20618 {
20619 return $ac_func ();
20620   ;
20621   return 0;
20622 }
20623 _ACEOF
20624 rm -f conftest.$ac_objext conftest$ac_exeext
20625 if { (ac_try="$ac_link"
20626 case "(($ac_try" in
20627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20628   *) ac_try_echo=$ac_try;;
20629 esac
20630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20631   (eval "$ac_link") 2>conftest.er1
20632   ac_status=$?
20633   grep -v '^ *+' conftest.er1 >conftest.err
20634   rm -f conftest.er1
20635   cat conftest.err >&5
20636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637   (exit $ac_status); } &&
20638          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20639   { (case "(($ac_try" in
20640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641   *) ac_try_echo=$ac_try;;
20642 esac
20643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20644   (eval "$ac_try") 2>&5
20645   ac_status=$?
20646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647   (exit $ac_status); }; } &&
20648          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
20658   eval "$as_ac_var=yes"
20659 else
20660   echo "$as_me: failed program was:" >&5
20661 sed 's/^/| /' conftest.$ac_ext >&5
20662
20663         eval "$as_ac_var=no"
20664 fi
20665
20666 rm -f core conftest.err conftest.$ac_objext \
20667       conftest$ac_exeext conftest.$ac_ext
20668 fi
20669 ac_res=`eval echo '${'$as_ac_var'}'`
20670                { echo "$as_me:$LINENO: result: $ac_res" >&5
20671 echo "${ECHO_T}$ac_res" >&6; }
20672 if test `eval echo '${'$as_ac_var'}'` = yes; then
20673   cat >>confdefs.h <<_ACEOF
20674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20675 _ACEOF
20676
20677 fi
20678 done
20679
20680
20681 SHLIBEXT=$libltdl_cv_shlibext
20682
20683
20684 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20685
20686
20687 # Translate the various configuration directories and other basic
20688 # information into substitutions that will end up in Makefile.config.in
20689 # that these configured values can be used by the makefiles
20690 if test "${prefix}" = "NONE" ; then
20691   prefix="/usr/local"
20692 fi
20693 eval LLVM_PREFIX="${prefix}";
20694 eval LLVM_BINDIR="${prefix}/bin";
20695 eval LLVM_LIBDIR="${prefix}/lib";
20696 eval LLVM_DATADIR="${prefix}/share/llvm";
20697 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20698 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20699 eval LLVM_INCLUDEDIR="${prefix}/include";
20700 eval LLVM_INFODIR="${prefix}/info";
20701 eval LLVM_MANDIR="${prefix}/man";
20702 LLVM_CONFIGTIME=`date`
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713
20714 # Place the various directores into the config.h file as #defines so that we
20715 # can know about the installation paths within LLVM.
20716
20717 cat >>confdefs.h <<_ACEOF
20718 #define LLVM_PREFIX "$LLVM_PREFIX"
20719 _ACEOF
20720
20721
20722 cat >>confdefs.h <<_ACEOF
20723 #define LLVM_BINDIR "$LLVM_BINDIR"
20724 _ACEOF
20725
20726
20727 cat >>confdefs.h <<_ACEOF
20728 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20729 _ACEOF
20730
20731
20732 cat >>confdefs.h <<_ACEOF
20733 #define LLVM_DATADIR "$LLVM_DATADIR"
20734 _ACEOF
20735
20736
20737 cat >>confdefs.h <<_ACEOF
20738 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20739 _ACEOF
20740
20741
20742 cat >>confdefs.h <<_ACEOF
20743 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20744 _ACEOF
20745
20746
20747 cat >>confdefs.h <<_ACEOF
20748 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20749 _ACEOF
20750
20751
20752 cat >>confdefs.h <<_ACEOF
20753 #define LLVM_INFODIR "$LLVM_INFODIR"
20754 _ACEOF
20755
20756
20757 cat >>confdefs.h <<_ACEOF
20758 #define LLVM_MANDIR "$LLVM_MANDIR"
20759 _ACEOF
20760
20761
20762 cat >>confdefs.h <<_ACEOF
20763 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20764 _ACEOF
20765
20766
20767 cat >>confdefs.h <<_ACEOF
20768 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20769 _ACEOF
20770
20771
20772 # Determine which bindings to build.
20773 if test "$BINDINGS_TO_BUILD" = auto ; then
20774   BINDINGS_TO_BUILD=""
20775   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20776     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20777   fi
20778 fi
20779 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20780
20781
20782 # This isn't really configurey, but it avoids having to repeat the list in
20783 # other files.
20784 ALL_BINDINGS=ocaml
20785
20786
20787 # Do any work necessary to ensure that bindings have what they need.
20788 binding_prereqs_failed=0
20789 for a_binding in $BINDINGS_TO_BUILD ; do
20790   case "$a_binding" in
20791   ocaml)
20792     if test "x$OCAMLC" = x ; then
20793       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20794 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20795       binding_prereqs_failed=1
20796     fi
20797     if test "x$OCAMLDEP" = x ; then
20798       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20799 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20800       binding_prereqs_failed=1
20801     fi
20802     if test "x$OCAMLOPT" = x ; then
20803       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20804 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20805           fi
20806     if test "x$with_ocaml_libdir" != xauto ; then
20807       OCAML_LIBDIR=$with_ocaml_libdir
20808
20809     else
20810       ocaml_stdlib="`"$OCAMLC" -where`"
20811       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20812       then
20813         # ocaml stdlib is beneath our prefix; use stdlib
20814         OCAML_LIBDIR=$ocaml_stdlib
20815
20816       else
20817         # ocaml stdlib is outside our prefix; use libdir/ocaml
20818         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20819
20820       fi
20821     fi
20822     ;;
20823   esac
20824 done
20825 if test "$binding_prereqs_failed" = 1 ; then
20826   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20827 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20828    { (exit 1); exit 1; }; }
20829 fi
20830
20831 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20832 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20833 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20834   echo $ECHO_N "(cached) $ECHO_C" >&6
20835 else
20836    ac_ext=cpp
20837 ac_cpp='$CXXCPP $CPPFLAGS'
20838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20841
20842   oldcxxflags="$CXXFLAGS"
20843   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
20844   cat >conftest.$ac_ext <<_ACEOF
20845 /* confdefs.h.  */
20846 _ACEOF
20847 cat confdefs.h >>conftest.$ac_ext
20848 cat >>conftest.$ac_ext <<_ACEOF
20849 /* end confdefs.h.  */
20850 template <typename T> struct X { void __attribute__((noinline)) f() {} };
20851 int
20852 main ()
20853 {
20854 X<int>().f();
20855   ;
20856   return 0;
20857 }
20858 _ACEOF
20859 rm -f conftest.$ac_objext
20860 if { (ac_try="$ac_compile"
20861 case "(($ac_try" in
20862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20863   *) ac_try_echo=$ac_try;;
20864 esac
20865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20866   (eval "$ac_compile") 2>conftest.er1
20867   ac_status=$?
20868   grep -v '^ *+' conftest.er1 >conftest.err
20869   rm -f conftest.er1
20870   cat conftest.err >&5
20871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872   (exit $ac_status); } &&
20873          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20874   { (case "(($ac_try" in
20875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20876   *) ac_try_echo=$ac_try;;
20877 esac
20878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20879   (eval "$ac_try") 2>&5
20880   ac_status=$?
20881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882   (exit $ac_status); }; } &&
20883          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20893   llvm_cv_cxx_visibility_inlines_hidden=yes
20894 else
20895   echo "$as_me: failed program was:" >&5
20896 sed 's/^/| /' conftest.$ac_ext >&5
20897
20898         llvm_cv_cxx_visibility_inlines_hidden=no
20899 fi
20900
20901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20902   CXXFLAGS="$oldcxxflags"
20903   ac_ext=c
20904 ac_cpp='$CPP $CPPFLAGS'
20905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20908
20909
20910 fi
20911 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20912 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20913 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20914   ENABLE_VISIBILITY_INLINES_HIDDEN=1
20915
20916 else
20917   ENABLE_VISIBILITY_INLINES_HIDDEN=0
20918
20919 fi
20920
20921
20922 if test "$llvm_cv_link_use_r" = "yes" ; then
20923   RPATH="-Wl,-R"
20924 else
20925   RPATH="-Wl,-rpath"
20926 fi
20927
20928
20929 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20930   RDYNAMIC="-Wl,-export-dynamic"
20931 else
20932   RDYNAMIC=""
20933 fi
20934
20935
20936
20937
20938 ac_config_files="$ac_config_files Makefile.common"
20939
20940 ac_config_files="$ac_config_files Makefile.llvm.config"
20941
20942
20943 ac_config_commands="$ac_config_commands Makefile"
20944
20945
20946 ac_config_commands="$ac_config_commands lib/Makefile"
20947
20948
20949 ac_config_commands="$ac_config_commands lib/sample/Makefile"
20950
20951
20952 ac_config_commands="$ac_config_commands tools/Makefile"
20953
20954
20955 ac_config_commands="$ac_config_commands tools/sample/Makefile"
20956
20957
20958
20959 cat >confcache <<\_ACEOF
20960 # This file is a shell script that caches the results of configure
20961 # tests run on this system so they can be shared between configure
20962 # scripts and configure runs, see configure's option --config-cache.
20963 # It is not useful on other systems.  If it contains results you don't
20964 # want to keep, you may remove or edit it.
20965 #
20966 # config.status only pays attention to the cache file if you give it
20967 # the --recheck option to rerun configure.
20968 #
20969 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20970 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20971 # following values.
20972
20973 _ACEOF
20974
20975 # The following way of writing the cache mishandles newlines in values,
20976 # but we know of no workaround that is simple, portable, and efficient.
20977 # So, we kill variables containing newlines.
20978 # Ultrix sh set writes to stderr and can't be redirected directly,
20979 # and sets the high bit in the cache file unless we assign to the vars.
20980 (
20981   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20982     eval ac_val=\$$ac_var
20983     case $ac_val in #(
20984     *${as_nl}*)
20985       case $ac_var in #(
20986       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20987 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20988       esac
20989       case $ac_var in #(
20990       _ | IFS | as_nl) ;; #(
20991       *) $as_unset $ac_var ;;
20992       esac ;;
20993     esac
20994   done
20995
20996   (set) 2>&1 |
20997     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20998     *${as_nl}ac_space=\ *)
20999       # `set' does not quote correctly, so add quotes (double-quote
21000       # substitution turns \\\\ into \\, and sed turns \\ into \).
21001       sed -n \
21002         "s/'/'\\\\''/g;
21003           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21004       ;; #(
21005     *)
21006       # `set' quotes correctly as required by POSIX, so do not add quotes.
21007       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21008       ;;
21009     esac |
21010     sort
21011 ) |
21012   sed '
21013      /^ac_cv_env_/b end
21014      t clear
21015      :clear
21016      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21017      t end
21018      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21019      :end' >>confcache
21020 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21021   if test -w "$cache_file"; then
21022     test "x$cache_file" != "x/dev/null" &&
21023       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21024 echo "$as_me: updating cache $cache_file" >&6;}
21025     cat confcache >$cache_file
21026   else
21027     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21028 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21029   fi
21030 fi
21031 rm -f confcache
21032
21033 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21034 # Let make expand exec_prefix.
21035 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21036
21037 # Transform confdefs.h into DEFS.
21038 # Protect against shell expansion while executing Makefile rules.
21039 # Protect against Makefile macro expansion.
21040 #
21041 # If the first sed substitution is executed (which looks for macros that
21042 # take arguments), then branch to the quote section.  Otherwise,
21043 # look for a macro that doesn't take arguments.
21044 ac_script='
21045 t clear
21046 :clear
21047 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
21048 t quote
21049 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
21050 t quote
21051 b any
21052 :quote
21053 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21054 s/\[/\\&/g
21055 s/\]/\\&/g
21056 s/\$/$$/g
21057 H
21058 :any
21059 ${
21060         g
21061         s/^\n//
21062         s/\n/ /g
21063         p
21064 }
21065 '
21066 DEFS=`sed -n "$ac_script" confdefs.h`
21067
21068
21069 ac_libobjs=
21070 ac_ltlibobjs=
21071 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21072   # 1. Remove the extension, and $U if already installed.
21073   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21074   ac_i=`echo "$ac_i" | sed "$ac_script"`
21075   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21076   #    will be set to the directory where LIBOBJS objects are built.
21077   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21078   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21079 done
21080 LIBOBJS=$ac_libobjs
21081
21082 LTLIBOBJS=$ac_ltlibobjs
21083
21084
21085 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21086   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21087 Usually this means the macro was only invoked conditionally." >&5
21088 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21089 Usually this means the macro was only invoked conditionally." >&2;}
21090    { (exit 1); exit 1; }; }
21091 fi
21092 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21093   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21094 Usually this means the macro was only invoked conditionally." >&5
21095 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21096 Usually this means the macro was only invoked conditionally." >&2;}
21097    { (exit 1); exit 1; }; }
21098 fi
21099
21100 : ${CONFIG_STATUS=./config.status}
21101 ac_clean_files_save=$ac_clean_files
21102 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21103 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21104 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21105 cat >$CONFIG_STATUS <<_ACEOF
21106 #! $SHELL
21107 # Generated by $as_me.
21108 # Run this file to recreate the current configuration.
21109 # Compiler output produced by configure, useful for debugging
21110 # configure, is in config.log if it exists.
21111
21112 debug=false
21113 ac_cs_recheck=false
21114 ac_cs_silent=false
21115 SHELL=\${CONFIG_SHELL-$SHELL}
21116 _ACEOF
21117
21118 cat >>$CONFIG_STATUS <<\_ACEOF
21119 ## --------------------- ##
21120 ## M4sh Initialization.  ##
21121 ## --------------------- ##
21122
21123 # Be Bourne compatible
21124 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21125   emulate sh
21126   NULLCMD=:
21127   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21128   # is contrary to our usage.  Disable this feature.
21129   alias -g '${1+"$@"}'='"$@"'
21130   setopt NO_GLOB_SUBST
21131 else
21132   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21133 fi
21134 BIN_SH=xpg4; export BIN_SH # for Tru64
21135 DUALCASE=1; export DUALCASE # for MKS sh
21136
21137
21138 # PATH needs CR
21139 # Avoid depending upon Character Ranges.
21140 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21141 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21142 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21143 as_cr_digits='0123456789'
21144 as_cr_alnum=$as_cr_Letters$as_cr_digits
21145
21146 # The user is always right.
21147 if test "${PATH_SEPARATOR+set}" != set; then
21148   echo "#! /bin/sh" >conf$$.sh
21149   echo  "exit 0"   >>conf$$.sh
21150   chmod +x conf$$.sh
21151   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21152     PATH_SEPARATOR=';'
21153   else
21154     PATH_SEPARATOR=:
21155   fi
21156   rm -f conf$$.sh
21157 fi
21158
21159 # Support unset when possible.
21160 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21161   as_unset=unset
21162 else
21163   as_unset=false
21164 fi
21165
21166
21167 # IFS
21168 # We need space, tab and new line, in precisely that order.  Quoting is
21169 # there to prevent editors from complaining about space-tab.
21170 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21171 # splitting by setting IFS to empty value.)
21172 as_nl='
21173 '
21174 IFS=" ""        $as_nl"
21175
21176 # Find who we are.  Look in the path if we contain no directory separator.
21177 case $0 in
21178   *[\\/]* ) as_myself=$0 ;;
21179   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21180 for as_dir in $PATH
21181 do
21182   IFS=$as_save_IFS
21183   test -z "$as_dir" && as_dir=.
21184   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21185 done
21186 IFS=$as_save_IFS
21187
21188      ;;
21189 esac
21190 # We did not find ourselves, most probably we were run as `sh COMMAND'
21191 # in which case we are not to be found in the path.
21192 if test "x$as_myself" = x; then
21193   as_myself=$0
21194 fi
21195 if test ! -f "$as_myself"; then
21196   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21197   { (exit 1); exit 1; }
21198 fi
21199
21200 # Work around bugs in pre-3.0 UWIN ksh.
21201 for as_var in ENV MAIL MAILPATH
21202 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21203 done
21204 PS1='$ '
21205 PS2='> '
21206 PS4='+ '
21207
21208 # NLS nuisances.
21209 for as_var in \
21210   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21211   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21212   LC_TELEPHONE LC_TIME
21213 do
21214   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21215     eval $as_var=C; export $as_var
21216   else
21217     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21218   fi
21219 done
21220
21221 # Required to use basename.
21222 if expr a : '\(a\)' >/dev/null 2>&1 &&
21223    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21224   as_expr=expr
21225 else
21226   as_expr=false
21227 fi
21228
21229 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21230   as_basename=basename
21231 else
21232   as_basename=false
21233 fi
21234
21235
21236 # Name of the executable.
21237 as_me=`$as_basename -- "$0" ||
21238 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21239          X"$0" : 'X\(//\)$' \| \
21240          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21241 echo X/"$0" |
21242     sed '/^.*\/\([^/][^/]*\)\/*$/{
21243             s//\1/
21244             q
21245           }
21246           /^X\/\(\/\/\)$/{
21247             s//\1/
21248             q
21249           }
21250           /^X\/\(\/\).*/{
21251             s//\1/
21252             q
21253           }
21254           s/.*/./; q'`
21255
21256 # CDPATH.
21257 $as_unset CDPATH
21258
21259
21260
21261   as_lineno_1=$LINENO
21262   as_lineno_2=$LINENO
21263   test "x$as_lineno_1" != "x$as_lineno_2" &&
21264   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21265
21266   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21267   # uniformly replaced by the line number.  The first 'sed' inserts a
21268   # line-number line after each line using $LINENO; the second 'sed'
21269   # does the real work.  The second script uses 'N' to pair each
21270   # line-number line with the line containing $LINENO, and appends
21271   # trailing '-' during substitution so that $LINENO is not a special
21272   # case at line end.
21273   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21274   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21275   # E. McMahon (1931-1989) for sed's syntax.  :-)
21276   sed -n '
21277     p
21278     /[$]LINENO/=
21279   ' <$as_myself |
21280     sed '
21281       s/[$]LINENO.*/&-/
21282       t lineno
21283       b
21284       :lineno
21285       N
21286       :loop
21287       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21288       t loop
21289       s/-\n.*//
21290     ' >$as_me.lineno &&
21291   chmod +x "$as_me.lineno" ||
21292     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21293    { (exit 1); exit 1; }; }
21294
21295   # Don't try to exec as it changes $[0], causing all sort of problems
21296   # (the dirname of $[0] is not the place where we might find the
21297   # original and so on.  Autoconf is especially sensitive to this).
21298   . "./$as_me.lineno"
21299   # Exit status is that of the last command.
21300   exit
21301 }
21302
21303
21304 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21305   as_dirname=dirname
21306 else
21307   as_dirname=false
21308 fi
21309
21310 ECHO_C= ECHO_N= ECHO_T=
21311 case `echo -n x` in
21312 -n*)
21313   case `echo 'x\c'` in
21314   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21315   *)   ECHO_C='\c';;
21316   esac;;
21317 *)
21318   ECHO_N='-n';;
21319 esac
21320
21321 if expr a : '\(a\)' >/dev/null 2>&1 &&
21322    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21323   as_expr=expr
21324 else
21325   as_expr=false
21326 fi
21327
21328 rm -f conf$$ conf$$.exe conf$$.file
21329 if test -d conf$$.dir; then
21330   rm -f conf$$.dir/conf$$.file
21331 else
21332   rm -f conf$$.dir
21333   mkdir conf$$.dir
21334 fi
21335 echo >conf$$.file
21336 if ln -s conf$$.file conf$$ 2>/dev/null; then
21337   as_ln_s='ln -s'
21338   # ... but there are two gotchas:
21339   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21340   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21341   # In both cases, we have to default to `cp -p'.
21342   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21343     as_ln_s='cp -p'
21344 elif ln conf$$.file conf$$ 2>/dev/null; then
21345   as_ln_s=ln
21346 else
21347   as_ln_s='cp -p'
21348 fi
21349 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21350 rmdir conf$$.dir 2>/dev/null
21351
21352 if mkdir -p . 2>/dev/null; then
21353   as_mkdir_p=:
21354 else
21355   test -d ./-p && rmdir ./-p
21356   as_mkdir_p=false
21357 fi
21358
21359 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21360 # systems may use methods other than mode bits to determine executability.
21361 cat >conf$$.file <<_ASEOF
21362 #! /bin/sh
21363 exit 0
21364 _ASEOF
21365 chmod +x conf$$.file
21366 if test -x conf$$.file >/dev/null 2>&1; then
21367   as_executable_p="test -x"
21368 else
21369   as_executable_p=:
21370 fi
21371 rm -f conf$$.file
21372
21373 # Sed expression to map a string onto a valid CPP name.
21374 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21375
21376 # Sed expression to map a string onto a valid variable name.
21377 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21378
21379
21380 exec 6>&1
21381
21382 # Save the log message, to keep $[0] and so on meaningful, and to
21383 # report actual input values of CONFIG_FILES etc. instead of their
21384 # values after options handling.
21385 ac_log="
21386 This file was extended by [SAMPLE] $as_me [x.xx], which was
21387 generated by GNU Autoconf 2.60.  Invocation command line was
21388
21389   CONFIG_FILES    = $CONFIG_FILES
21390   CONFIG_HEADERS  = $CONFIG_HEADERS
21391   CONFIG_LINKS    = $CONFIG_LINKS
21392   CONFIG_COMMANDS = $CONFIG_COMMANDS
21393   $ $0 $@
21394
21395 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21396 "
21397
21398 _ACEOF
21399
21400 cat >>$CONFIG_STATUS <<_ACEOF
21401 # Files that config.status was made for.
21402 config_files="$ac_config_files"
21403 config_commands="$ac_config_commands"
21404
21405 _ACEOF
21406
21407 cat >>$CONFIG_STATUS <<\_ACEOF
21408 ac_cs_usage="\
21409 \`$as_me' instantiates files from templates according to the
21410 current configuration.
21411
21412 Usage: $0 [OPTIONS] [FILE]...
21413
21414   -h, --help       print this help, then exit
21415   -V, --version    print version number, then exit
21416   -q, --quiet      do not print progress messages
21417   -d, --debug      don't remove temporary files
21418       --recheck    update $as_me by reconfiguring in the same conditions
21419   --file=FILE[:TEMPLATE]
21420                    instantiate the configuration file FILE
21421
21422 Configuration files:
21423 $config_files
21424
21425 Configuration commands:
21426 $config_commands
21427
21428 Report bugs to <bug-autoconf@gnu.org>."
21429
21430 _ACEOF
21431 cat >>$CONFIG_STATUS <<_ACEOF
21432 ac_cs_version="\\
21433 [SAMPLE] config.status [x.xx]
21434 configured by $0, generated by GNU Autoconf 2.60,
21435   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21436
21437 Copyright (C) 2006 Free Software Foundation, Inc.
21438 This config.status script is free software; the Free Software Foundation
21439 gives unlimited permission to copy, distribute and modify it."
21440
21441 ac_pwd='$ac_pwd'
21442 srcdir='$srcdir'
21443 INSTALL='$INSTALL'
21444 _ACEOF
21445
21446 cat >>$CONFIG_STATUS <<\_ACEOF
21447 # If no file are specified by the user, then we need to provide default
21448 # value.  By we need to know if files were specified by the user.
21449 ac_need_defaults=:
21450 while test $# != 0
21451 do
21452   case $1 in
21453   --*=*)
21454     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21455     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21456     ac_shift=:
21457     ;;
21458   *)
21459     ac_option=$1
21460     ac_optarg=$2
21461     ac_shift=shift
21462     ;;
21463   esac
21464
21465   case $ac_option in
21466   # Handling of the options.
21467   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21468     ac_cs_recheck=: ;;
21469   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21470     echo "$ac_cs_version"; exit ;;
21471   --debug | --debu | --deb | --de | --d | -d )
21472     debug=: ;;
21473   --file | --fil | --fi | --f )
21474     $ac_shift
21475     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21476     ac_need_defaults=false;;
21477   --he | --h |  --help | --hel | -h )
21478     echo "$ac_cs_usage"; exit ;;
21479   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21480   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21481     ac_cs_silent=: ;;
21482
21483   # This is an error.
21484   -*) { echo "$as_me: error: unrecognized option: $1
21485 Try \`$0 --help' for more information." >&2
21486    { (exit 1); exit 1; }; } ;;
21487
21488   *) ac_config_targets="$ac_config_targets $1"
21489      ac_need_defaults=false ;;
21490
21491   esac
21492   shift
21493 done
21494
21495 ac_configure_extra_args=
21496
21497 if $ac_cs_silent; then
21498   exec 6>/dev/null
21499   ac_configure_extra_args="$ac_configure_extra_args --silent"
21500 fi
21501
21502 _ACEOF
21503 cat >>$CONFIG_STATUS <<_ACEOF
21504 if \$ac_cs_recheck; then
21505   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21506   CONFIG_SHELL=$SHELL
21507   export CONFIG_SHELL
21508   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21509 fi
21510
21511 _ACEOF
21512 cat >>$CONFIG_STATUS <<\_ACEOF
21513 exec 5>>config.log
21514 {
21515   echo
21516   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21517 ## Running $as_me. ##
21518 _ASBOX
21519   echo "$ac_log"
21520 } >&5
21521
21522 _ACEOF
21523 cat >>$CONFIG_STATUS <<_ACEOF
21524 #
21525 # INIT-COMMANDS
21526 #
21527 llvm_src="${LLVM_SRC}"
21528
21529 _ACEOF
21530
21531 cat >>$CONFIG_STATUS <<\_ACEOF
21532
21533 # Handling of arguments.
21534 for ac_config_target in $ac_config_targets
21535 do
21536   case $ac_config_target in
21537     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21538     "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
21539     "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
21540     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21541     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21542     "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21543     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21544     "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21545
21546   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21547 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21548    { (exit 1); exit 1; }; };;
21549   esac
21550 done
21551
21552
21553 # If the user did not use the arguments to specify the items to instantiate,
21554 # then the envvar interface is used.  Set only those that are not.
21555 # We use the long form for the default assignment because of an extremely
21556 # bizarre bug on SunOS 4.1.3.
21557 if $ac_need_defaults; then
21558   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21559   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21560 fi
21561
21562 # Have a temporary directory for convenience.  Make it in the build tree
21563 # simply because there is no reason against having it here, and in addition,
21564 # creating and moving files from /tmp can sometimes cause problems.
21565 # Hook for its removal unless debugging.
21566 # Note that there is a small window in which the directory will not be cleaned:
21567 # after its creation but before its name has been assigned to `$tmp'.
21568 $debug ||
21569 {
21570   tmp=
21571   trap 'exit_status=$?
21572   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21573 ' 0
21574   trap '{ (exit 1); exit 1; }' 1 2 13 15
21575 }
21576 # Create a (secure) tmp directory for tmp files.
21577
21578 {
21579   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21580   test -n "$tmp" && test -d "$tmp"
21581 }  ||
21582 {
21583   tmp=./conf$$-$RANDOM
21584   (umask 077 && mkdir "$tmp")
21585 } ||
21586 {
21587    echo "$me: cannot create a temporary directory in ." >&2
21588    { (exit 1); exit 1; }
21589 }
21590
21591 #
21592 # Set up the sed scripts for CONFIG_FILES section.
21593 #
21594
21595 # No need to generate the scripts if there are no CONFIG_FILES.
21596 # This happens for instance when ./config.status config.h
21597 if test -n "$CONFIG_FILES"; then
21598
21599 _ACEOF
21600
21601
21602
21603 ac_delim='%!_!# '
21604 for ac_last_try in false false false false false :; do
21605   cat >conf$$subs.sed <<_ACEOF
21606 SHELL!$SHELL$ac_delim
21607 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21608 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21609 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21610 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21611 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21612 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21613 exec_prefix!$exec_prefix$ac_delim
21614 prefix!$prefix$ac_delim
21615 program_transform_name!$program_transform_name$ac_delim
21616 bindir!$bindir$ac_delim
21617 sbindir!$sbindir$ac_delim
21618 libexecdir!$libexecdir$ac_delim
21619 datarootdir!$datarootdir$ac_delim
21620 datadir!$datadir$ac_delim
21621 sysconfdir!$sysconfdir$ac_delim
21622 sharedstatedir!$sharedstatedir$ac_delim
21623 localstatedir!$localstatedir$ac_delim
21624 includedir!$includedir$ac_delim
21625 oldincludedir!$oldincludedir$ac_delim
21626 docdir!$docdir$ac_delim
21627 infodir!$infodir$ac_delim
21628 htmldir!$htmldir$ac_delim
21629 dvidir!$dvidir$ac_delim
21630 pdfdir!$pdfdir$ac_delim
21631 psdir!$psdir$ac_delim
21632 libdir!$libdir$ac_delim
21633 localedir!$localedir$ac_delim
21634 mandir!$mandir$ac_delim
21635 DEFS!$DEFS$ac_delim
21636 ECHO_C!$ECHO_C$ac_delim
21637 ECHO_N!$ECHO_N$ac_delim
21638 ECHO_T!$ECHO_T$ac_delim
21639 LIBS!$LIBS$ac_delim
21640 build_alias!$build_alias$ac_delim
21641 host_alias!$host_alias$ac_delim
21642 target_alias!$target_alias$ac_delim
21643 LLVM_SRC!$LLVM_SRC$ac_delim
21644 LLVM_OBJ!$LLVM_OBJ$ac_delim
21645 LLVM_VERSION!$LLVM_VERSION$ac_delim
21646 CC!$CC$ac_delim
21647 CFLAGS!$CFLAGS$ac_delim
21648 LDFLAGS!$LDFLAGS$ac_delim
21649 CPPFLAGS!$CPPFLAGS$ac_delim
21650 ac_ct_CC!$ac_ct_CC$ac_delim
21651 EXEEXT!$EXEEXT$ac_delim
21652 OBJEXT!$OBJEXT$ac_delim
21653 CXX!$CXX$ac_delim
21654 CXXFLAGS!$CXXFLAGS$ac_delim
21655 ac_ct_CXX!$ac_ct_CXX$ac_delim
21656 CPP!$CPP$ac_delim
21657 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21658 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21659 subdirs!$subdirs$ac_delim
21660 build!$build$ac_delim
21661 build_cpu!$build_cpu$ac_delim
21662 build_vendor!$build_vendor$ac_delim
21663 build_os!$build_os$ac_delim
21664 host!$host$ac_delim
21665 host_cpu!$host_cpu$ac_delim
21666 host_vendor!$host_vendor$ac_delim
21667 host_os!$host_os$ac_delim
21668 target!$target$ac_delim
21669 target_cpu!$target_cpu$ac_delim
21670 target_vendor!$target_vendor$ac_delim
21671 target_os!$target_os$ac_delim
21672 OS!$OS$ac_delim
21673 HOST_OS!$HOST_OS$ac_delim
21674 TARGET_OS!$TARGET_OS$ac_delim
21675 LINKALL!$LINKALL$ac_delim
21676 NOLINKALL!$NOLINKALL$ac_delim
21677 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21678 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21679 ARCH!$ARCH$ac_delim
21680 ENDIAN!$ENDIAN$ac_delim
21681 GREP!$GREP$ac_delim
21682 EGREP!$EGREP$ac_delim
21683 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21684 BUILD_CC!$BUILD_CC$ac_delim
21685 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21686 BUILD_CXX!$BUILD_CXX$ac_delim
21687 CVSBUILD!$CVSBUILD$ac_delim
21688 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21689 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
21690 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21691 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21692 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21693 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
21694 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21695 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21696 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21697 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21698 JIT!$JIT$ac_delim
21699 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21700 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21701 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21702 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21703 _ACEOF
21704
21705   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21706     break
21707   elif $ac_last_try; then
21708     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21709 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21710    { (exit 1); exit 1; }; }
21711   else
21712     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21713   fi
21714 done
21715
21716 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21717 if test -n "$ac_eof"; then
21718   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21719   ac_eof=`expr $ac_eof + 1`
21720 fi
21721
21722 cat >>$CONFIG_STATUS <<_ACEOF
21723 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21724 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21725 _ACEOF
21726 sed '
21727 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21728 s/^/s,@/; s/!/@,|#_!!_#|/
21729 :n
21730 t n
21731 s/'"$ac_delim"'$/,g/; t
21732 s/$/\\/; p
21733 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21734 ' >>$CONFIG_STATUS <conf$$subs.sed
21735 rm -f conf$$subs.sed
21736 cat >>$CONFIG_STATUS <<_ACEOF
21737 CEOF$ac_eof
21738 _ACEOF
21739
21740
21741 ac_delim='%!_!# '
21742 for ac_last_try in false false false false false :; do
21743   cat >conf$$subs.sed <<_ACEOF
21744 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21745 ENABLE_PIC!$ENABLE_PIC$ac_delim
21746 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21747 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21748 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21749 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21750 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21751 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21752 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21753 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21754 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21755 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21756 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21757 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21758 NM!$NM$ac_delim
21759 ifGNUmake!$ifGNUmake$ac_delim
21760 LN_S!$LN_S$ac_delim
21761 CMP!$CMP$ac_delim
21762 CP!$CP$ac_delim
21763 DATE!$DATE$ac_delim
21764 FIND!$FIND$ac_delim
21765 MKDIR!$MKDIR$ac_delim
21766 MV!$MV$ac_delim
21767 RANLIB!$RANLIB$ac_delim
21768 AR!$AR$ac_delim
21769 RM!$RM$ac_delim
21770 SED!$SED$ac_delim
21771 TAR!$TAR$ac_delim
21772 BINPWD!$BINPWD$ac_delim
21773 GRAPHVIZ!$GRAPHVIZ$ac_delim
21774 DOT!$DOT$ac_delim
21775 FDP!$FDP$ac_delim
21776 NEATO!$NEATO$ac_delim
21777 TWOPI!$TWOPI$ac_delim
21778 CIRCO!$CIRCO$ac_delim
21779 GV!$GV$ac_delim
21780 DOTTY!$DOTTY$ac_delim
21781 XDOT_PY!$XDOT_PY$ac_delim
21782 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21783 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21784 INSTALL_DATA!$INSTALL_DATA$ac_delim
21785 BZIP2!$BZIP2$ac_delim
21786 CAT!$CAT$ac_delim
21787 DOXYGEN!$DOXYGEN$ac_delim
21788 GROFF!$GROFF$ac_delim
21789 GZIPBIN!$GZIPBIN$ac_delim
21790 POD2HTML!$POD2HTML$ac_delim
21791 POD2MAN!$POD2MAN$ac_delim
21792 PDFROFF!$PDFROFF$ac_delim
21793 RUNTEST!$RUNTEST$ac_delim
21794 TCLSH!$TCLSH$ac_delim
21795 ZIP!$ZIP$ac_delim
21796 OCAMLC!$OCAMLC$ac_delim
21797 OCAMLOPT!$OCAMLOPT$ac_delim
21798 OCAMLDEP!$OCAMLDEP$ac_delim
21799 OCAMLDOC!$OCAMLDOC$ac_delim
21800 GAS!$GAS$ac_delim
21801 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21802 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21803 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21804 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21805 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21806 LIBADD_DL!$LIBADD_DL$ac_delim
21807 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21808 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21809 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
21810 USE_UDIS86!$USE_UDIS86$ac_delim
21811 USE_OPROFILE!$USE_OPROFILE$ac_delim
21812 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21813 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21814 MMAP_FILE!$MMAP_FILE$ac_delim
21815 SHLIBEXT!$SHLIBEXT$ac_delim
21816 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21817 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21818 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21819 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21820 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21821 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21822 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21823 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21824 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21825 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21826 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21827 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21828 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21829 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21830 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21831 RPATH!$RPATH$ac_delim
21832 RDYNAMIC!$RDYNAMIC$ac_delim
21833 LIBOBJS!$LIBOBJS$ac_delim
21834 LTLIBOBJS!$LTLIBOBJS$ac_delim
21835 _ACEOF
21836
21837   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
21838     break
21839   elif $ac_last_try; then
21840     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21841 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21842    { (exit 1); exit 1; }; }
21843   else
21844     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21845   fi
21846 done
21847
21848 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21849 if test -n "$ac_eof"; then
21850   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21851   ac_eof=`expr $ac_eof + 1`
21852 fi
21853
21854 cat >>$CONFIG_STATUS <<_ACEOF
21855 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21856 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21857 _ACEOF
21858 sed '
21859 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21860 s/^/s,@/; s/!/@,|#_!!_#|/
21861 :n
21862 t n
21863 s/'"$ac_delim"'$/,g/; t
21864 s/$/\\/; p
21865 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21866 ' >>$CONFIG_STATUS <conf$$subs.sed
21867 rm -f conf$$subs.sed
21868 cat >>$CONFIG_STATUS <<_ACEOF
21869 :end
21870 s/|#_!!_#|//g
21871 CEOF$ac_eof
21872 _ACEOF
21873
21874
21875 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21876 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21877 # trailing colons and then remove the whole line if VPATH becomes empty
21878 # (actually we leave an empty line to preserve line numbers).
21879 if test "x$srcdir" = x.; then
21880   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21881 s/:*\$(srcdir):*/:/
21882 s/:*\${srcdir}:*/:/
21883 s/:*@srcdir@:*/:/
21884 s/^\([^=]*=[     ]*\):*/\1/
21885 s/:*$//
21886 s/^[^=]*=[       ]*$//
21887 }'
21888 fi
21889
21890 cat >>$CONFIG_STATUS <<\_ACEOF
21891 fi # test -n "$CONFIG_FILES"
21892
21893
21894 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
21895 do
21896   case $ac_tag in
21897   :[FHLC]) ac_mode=$ac_tag; continue;;
21898   esac
21899   case $ac_mode$ac_tag in
21900   :[FHL]*:*);;
21901   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21902 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21903    { (exit 1); exit 1; }; };;
21904   :[FH]-) ac_tag=-:-;;
21905   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21906   esac
21907   ac_save_IFS=$IFS
21908   IFS=:
21909   set x $ac_tag
21910   IFS=$ac_save_IFS
21911   shift
21912   ac_file=$1
21913   shift
21914
21915   case $ac_mode in
21916   :L) ac_source=$1;;
21917   :[FH])
21918     ac_file_inputs=
21919     for ac_f
21920     do
21921       case $ac_f in
21922       -) ac_f="$tmp/stdin";;
21923       *) # Look for the file first in the build tree, then in the source tree
21924          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21925          # because $ac_f cannot contain `:'.
21926          test -f "$ac_f" ||
21927            case $ac_f in
21928            [\\/$]*) false;;
21929            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21930            esac ||
21931            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21932 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21933    { (exit 1); exit 1; }; };;
21934       esac
21935       ac_file_inputs="$ac_file_inputs $ac_f"
21936     done
21937
21938     # Let's still pretend it is `configure' which instantiates (i.e., don't
21939     # use $as_me), people would be surprised to read:
21940     #    /* config.h.  Generated by config.status.  */
21941     configure_input="Generated from "`IFS=:
21942           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21943     if test x"$ac_file" != x-; then
21944       configure_input="$ac_file.  $configure_input"
21945       { echo "$as_me:$LINENO: creating $ac_file" >&5
21946 echo "$as_me: creating $ac_file" >&6;}
21947     fi
21948
21949     case $ac_tag in
21950     *:-:* | *:-) cat >"$tmp/stdin";;
21951     esac
21952     ;;
21953   esac
21954
21955   ac_dir=`$as_dirname -- "$ac_file" ||
21956 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21957          X"$ac_file" : 'X\(//\)[^/]' \| \
21958          X"$ac_file" : 'X\(//\)$' \| \
21959          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21960 echo X"$ac_file" |
21961     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21962             s//\1/
21963             q
21964           }
21965           /^X\(\/\/\)[^/].*/{
21966             s//\1/
21967             q
21968           }
21969           /^X\(\/\/\)$/{
21970             s//\1/
21971             q
21972           }
21973           /^X\(\/\).*/{
21974             s//\1/
21975             q
21976           }
21977           s/.*/./; q'`
21978   { as_dir="$ac_dir"
21979   case $as_dir in #(
21980   -*) as_dir=./$as_dir;;
21981   esac
21982   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21983     as_dirs=
21984     while :; do
21985       case $as_dir in #(
21986       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21987       *) as_qdir=$as_dir;;
21988       esac
21989       as_dirs="'$as_qdir' $as_dirs"
21990       as_dir=`$as_dirname -- "$as_dir" ||
21991 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21992          X"$as_dir" : 'X\(//\)[^/]' \| \
21993          X"$as_dir" : 'X\(//\)$' \| \
21994          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21995 echo X"$as_dir" |
21996     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21997             s//\1/
21998             q
21999           }
22000           /^X\(\/\/\)[^/].*/{
22001             s//\1/
22002             q
22003           }
22004           /^X\(\/\/\)$/{
22005             s//\1/
22006             q
22007           }
22008           /^X\(\/\).*/{
22009             s//\1/
22010             q
22011           }
22012           s/.*/./; q'`
22013       test -d "$as_dir" && break
22014     done
22015     test -z "$as_dirs" || eval "mkdir $as_dirs"
22016   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22017 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22018    { (exit 1); exit 1; }; }; }
22019   ac_builddir=.
22020
22021 case "$ac_dir" in
22022 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22023 *)
22024   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22025   # A ".." for each directory in $ac_dir_suffix.
22026   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22027   case $ac_top_builddir_sub in
22028   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22029   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22030   esac ;;
22031 esac
22032 ac_abs_top_builddir=$ac_pwd
22033 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22034 # for backward compatibility:
22035 ac_top_builddir=$ac_top_build_prefix
22036
22037 case $srcdir in
22038   .)  # We are building in place.
22039     ac_srcdir=.
22040     ac_top_srcdir=$ac_top_builddir_sub
22041     ac_abs_top_srcdir=$ac_pwd ;;
22042   [\\/]* | ?:[\\/]* )  # Absolute name.
22043     ac_srcdir=$srcdir$ac_dir_suffix;
22044     ac_top_srcdir=$srcdir
22045     ac_abs_top_srcdir=$srcdir ;;
22046   *) # Relative name.
22047     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22048     ac_top_srcdir=$ac_top_build_prefix$srcdir
22049     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22050 esac
22051 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22052
22053
22054   case $ac_mode in
22055   :F)
22056   #
22057   # CONFIG_FILE
22058   #
22059
22060   case $INSTALL in
22061   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22062   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22063   esac
22064 _ACEOF
22065
22066 cat >>$CONFIG_STATUS <<\_ACEOF
22067 # If the template does not know about datarootdir, expand it.
22068 # FIXME: This hack should be removed a few years after 2.60.
22069 ac_datarootdir_hack=; ac_datarootdir_seen=
22070
22071 case `sed -n '/datarootdir/ {
22072   p
22073   q
22074 }
22075 /@datadir@/p
22076 /@docdir@/p
22077 /@infodir@/p
22078 /@localedir@/p
22079 /@mandir@/p
22080 ' $ac_file_inputs` in
22081 *datarootdir*) ac_datarootdir_seen=yes;;
22082 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22083   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22084 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22085 _ACEOF
22086 cat >>$CONFIG_STATUS <<_ACEOF
22087   ac_datarootdir_hack='
22088   s&@datadir@&$datadir&g
22089   s&@docdir@&$docdir&g
22090   s&@infodir@&$infodir&g
22091   s&@localedir@&$localedir&g
22092   s&@mandir@&$mandir&g
22093     s&\\\${datarootdir}&$datarootdir&g' ;;
22094 esac
22095 _ACEOF
22096
22097 # Neutralize VPATH when `$srcdir' = `.'.
22098 # Shell code in configure.ac might set extrasub.
22099 # FIXME: do we really want to maintain this feature?
22100 cat >>$CONFIG_STATUS <<_ACEOF
22101   sed "$ac_vpsub
22102 $extrasub
22103 _ACEOF
22104 cat >>$CONFIG_STATUS <<\_ACEOF
22105 :t
22106 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22107 s&@configure_input@&$configure_input&;t t
22108 s&@top_builddir@&$ac_top_builddir_sub&;t t
22109 s&@srcdir@&$ac_srcdir&;t t
22110 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22111 s&@top_srcdir@&$ac_top_srcdir&;t t
22112 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22113 s&@builddir@&$ac_builddir&;t t
22114 s&@abs_builddir@&$ac_abs_builddir&;t t
22115 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22116 s&@INSTALL@&$ac_INSTALL&;t t
22117 $ac_datarootdir_hack
22118 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22119
22120 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22121   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22122   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22123   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22124 which seems to be undefined.  Please make sure it is defined." >&5
22125 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22126 which seems to be undefined.  Please make sure it is defined." >&2;}
22127
22128   rm -f "$tmp/stdin"
22129   case $ac_file in
22130   -) cat "$tmp/out"; rm -f "$tmp/out";;
22131   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22132   esac
22133  ;;
22134
22135
22136   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22137 echo "$as_me: executing $ac_file commands" >&6;}
22138  ;;
22139   esac
22140
22141
22142   case $ac_file$ac_mode in
22143     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22144    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22145     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22146    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22147     "lib/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22148    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22149     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22150    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22151     "tools/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22152    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22153
22154   esac
22155 done # for ac_tag
22156
22157
22158 { (exit 0); exit 0; }
22159 _ACEOF
22160 chmod +x $CONFIG_STATUS
22161 ac_clean_files=$ac_clean_files_save
22162
22163
22164 # configure is writing to config.log, and then calls config.status.
22165 # config.status does its own redirection, appending to config.log.
22166 # Unfortunately, on DOS this fails, as config.log is still kept open
22167 # by configure, so config.status won't be able to write to it; its
22168 # output is simply discarded.  So we exec the FD to /dev/null,
22169 # effectively closing config.log, so it can be properly (re)opened and
22170 # appended to by config.status.  When coming back to configure, we
22171 # need to make the FD available again.
22172 if test "$no_create" != yes; then
22173   ac_cs_success=:
22174   ac_config_status_args=
22175   test "$silent" = yes &&
22176     ac_config_status_args="$ac_config_status_args --quiet"
22177   exec 5>/dev/null
22178   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22179   exec 5>>config.log
22180   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22181   # would make configure fail if this is the last instruction.
22182   $ac_cs_success || { (exit 1); exit 1; }
22183 fi
22184
22185 #
22186 # CONFIG_SUBDIRS section.
22187 #
22188 if test "$no_recursion" != yes; then
22189
22190   # Remove --cache-file and --srcdir arguments so they do not pile up.
22191   ac_sub_configure_args=
22192   ac_prev=
22193   eval "set x $ac_configure_args"
22194   shift
22195   for ac_arg
22196   do
22197     if test -n "$ac_prev"; then
22198       ac_prev=
22199       continue
22200     fi
22201     case $ac_arg in
22202     -cache-file | --cache-file | --cache-fil | --cache-fi \
22203     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22204       ac_prev=cache_file ;;
22205     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22206     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22207     | --c=*)
22208       ;;
22209     --config-cache | -C)
22210       ;;
22211     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22212       ac_prev=srcdir ;;
22213     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22214       ;;
22215     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22216       ac_prev=prefix ;;
22217     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22218       ;;
22219     *)
22220       case $ac_arg in
22221       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22222       esac
22223       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22224     esac
22225   done
22226
22227   # Always prepend --prefix to ensure using the same prefix
22228   # in subdir configurations.
22229   ac_arg="--prefix=$prefix"
22230   case $ac_arg in
22231   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22232   esac
22233   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22234
22235   ac_popdir=`pwd`
22236   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22237
22238     # Do not complain, so a configure script can configure whichever
22239     # parts of a large source tree are present.
22240     test -d "$srcdir/$ac_dir" || continue
22241
22242     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22243     echo "$as_me:$LINENO: $ac_msg" >&5
22244     echo "$ac_msg" >&6
22245     { as_dir="$ac_dir"
22246   case $as_dir in #(
22247   -*) as_dir=./$as_dir;;
22248   esac
22249   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22250     as_dirs=
22251     while :; do
22252       case $as_dir in #(
22253       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22254       *) as_qdir=$as_dir;;
22255       esac
22256       as_dirs="'$as_qdir' $as_dirs"
22257       as_dir=`$as_dirname -- "$as_dir" ||
22258 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22259          X"$as_dir" : 'X\(//\)[^/]' \| \
22260          X"$as_dir" : 'X\(//\)$' \| \
22261          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22262 echo X"$as_dir" |
22263     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22264             s//\1/
22265             q
22266           }
22267           /^X\(\/\/\)[^/].*/{
22268             s//\1/
22269             q
22270           }
22271           /^X\(\/\/\)$/{
22272             s//\1/
22273             q
22274           }
22275           /^X\(\/\).*/{
22276             s//\1/
22277             q
22278           }
22279           s/.*/./; q'`
22280       test -d "$as_dir" && break
22281     done
22282     test -z "$as_dirs" || eval "mkdir $as_dirs"
22283   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22284 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22285    { (exit 1); exit 1; }; }; }
22286     ac_builddir=.
22287
22288 case "$ac_dir" in
22289 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22290 *)
22291   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22292   # A ".." for each directory in $ac_dir_suffix.
22293   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22294   case $ac_top_builddir_sub in
22295   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22296   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22297   esac ;;
22298 esac
22299 ac_abs_top_builddir=$ac_pwd
22300 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22301 # for backward compatibility:
22302 ac_top_builddir=$ac_top_build_prefix
22303
22304 case $srcdir in
22305   .)  # We are building in place.
22306     ac_srcdir=.
22307     ac_top_srcdir=$ac_top_builddir_sub
22308     ac_abs_top_srcdir=$ac_pwd ;;
22309   [\\/]* | ?:[\\/]* )  # Absolute name.
22310     ac_srcdir=$srcdir$ac_dir_suffix;
22311     ac_top_srcdir=$srcdir
22312     ac_abs_top_srcdir=$srcdir ;;
22313   *) # Relative name.
22314     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22315     ac_top_srcdir=$ac_top_build_prefix$srcdir
22316     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22317 esac
22318 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22319
22320
22321     cd "$ac_dir"
22322
22323     # Check for guested configure; otherwise get Cygnus style configure.
22324     if test -f "$ac_srcdir/configure.gnu"; then
22325       ac_sub_configure=$ac_srcdir/configure.gnu
22326     elif test -f "$ac_srcdir/configure"; then
22327       ac_sub_configure=$ac_srcdir/configure
22328     elif test -f "$ac_srcdir/configure.in"; then
22329       # This should be Cygnus configure.
22330       ac_sub_configure=$ac_aux_dir/configure
22331     else
22332       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22333 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22334       ac_sub_configure=
22335     fi
22336
22337     # The recursion is here.
22338     if test -n "$ac_sub_configure"; then
22339       # Make the cache file name correct relative to the subdirectory.
22340       case $cache_file in
22341       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22342       *) # Relative name.
22343         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22344       esac
22345
22346       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22347 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22348       # The eval makes quoting arguments work.
22349       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22350            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22351         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22352 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22353    { (exit 1); exit 1; }; }
22354     fi
22355
22356     cd "$ac_popdir"
22357   done
22358 fi
22359