8c522006a04bfbcf6f89d3647bda05ff84e50eac
[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_DATADIR
776 LLVM_DOCSDIR
777 LLVM_ETCDIR
778 LLVM_INCLUDEDIR
779 LLVM_INFODIR
780 LLVM_MANDIR
781 LLVM_CONFIGTIME
782 BINDINGS_TO_BUILD
783 ALL_BINDINGS
784 OCAML_LIBDIR
785 ENABLE_VISIBILITY_INLINES_HIDDEN
786 RPATH
787 RDYNAMIC
788 LIBOBJS
789 LTLIBOBJS'
790 ac_subst_files=''
791       ac_precious_vars='build_alias
792 host_alias
793 target_alias
794 CC
795 CFLAGS
796 LDFLAGS
797 CPPFLAGS
798 CXX
799 CXXFLAGS
800 CCC
801 CPP'
802 ac_subdirs_all='tools/polly'
803
804 # Initialize some variables set by options.
805 ac_init_help=
806 ac_init_version=false
807 # The variables have the same names as the options, with
808 # dashes changed to underlines.
809 cache_file=/dev/null
810 exec_prefix=NONE
811 no_create=
812 no_recursion=
813 prefix=NONE
814 program_prefix=NONE
815 program_suffix=NONE
816 program_transform_name=s,x,x,
817 silent=
818 site=
819 srcdir=
820 verbose=
821 x_includes=NONE
822 x_libraries=NONE
823
824 # Installation directory options.
825 # These are left unexpanded so users can "make install exec_prefix=/foo"
826 # and all the variables that are supposed to be based on exec_prefix
827 # by default will actually change.
828 # Use braces instead of parens because sh, perl, etc. also accept them.
829 # (The list follows the same order as the GNU Coding Standards.)
830 bindir='${exec_prefix}/bin'
831 sbindir='${exec_prefix}/sbin'
832 libexecdir='${exec_prefix}/libexec'
833 datarootdir='${prefix}/share'
834 datadir='${datarootdir}'
835 sysconfdir='${prefix}/etc'
836 sharedstatedir='${prefix}/com'
837 localstatedir='${prefix}/var'
838 includedir='${prefix}/include'
839 oldincludedir='/usr/include'
840 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
841 infodir='${datarootdir}/info'
842 htmldir='${docdir}'
843 dvidir='${docdir}'
844 pdfdir='${docdir}'
845 psdir='${docdir}'
846 libdir='${exec_prefix}/lib'
847 localedir='${datarootdir}/locale'
848 mandir='${datarootdir}/man'
849
850 ac_prev=
851 ac_dashdash=
852 for ac_option
853 do
854   # If the previous option needs an argument, assign it.
855   if test -n "$ac_prev"; then
856     eval $ac_prev=\$ac_option
857     ac_prev=
858     continue
859   fi
860
861   case $ac_option in
862   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
863   *)    ac_optarg=yes ;;
864   esac
865
866   # Accept the important Cygnus configure options, so we can diagnose typos.
867
868   case $ac_dashdash$ac_option in
869   --)
870     ac_dashdash=yes ;;
871
872   -bindir | --bindir | --bindi | --bind | --bin | --bi)
873     ac_prev=bindir ;;
874   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
875     bindir=$ac_optarg ;;
876
877   -build | --build | --buil | --bui | --bu)
878     ac_prev=build_alias ;;
879   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
880     build_alias=$ac_optarg ;;
881
882   -cache-file | --cache-file | --cache-fil | --cache-fi \
883   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
884     ac_prev=cache_file ;;
885   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
886   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
887     cache_file=$ac_optarg ;;
888
889   --config-cache | -C)
890     cache_file=config.cache ;;
891
892   -datadir | --datadir | --datadi | --datad)
893     ac_prev=datadir ;;
894   -datadir=* | --datadir=* | --datadi=* | --datad=*)
895     datadir=$ac_optarg ;;
896
897   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
898   | --dataroo | --dataro | --datar)
899     ac_prev=datarootdir ;;
900   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
901   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
902     datarootdir=$ac_optarg ;;
903
904   -disable-* | --disable-*)
905     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
906     # Reject names that are not valid shell variable names.
907     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
908       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
909    { (exit 1); exit 1; }; }
910     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
911     eval enable_$ac_feature=no ;;
912
913   -docdir | --docdir | --docdi | --doc | --do)
914     ac_prev=docdir ;;
915   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
916     docdir=$ac_optarg ;;
917
918   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
919     ac_prev=dvidir ;;
920   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
921     dvidir=$ac_optarg ;;
922
923   -enable-* | --enable-*)
924     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
925     # Reject names that are not valid shell variable names.
926     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
927       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
928    { (exit 1); exit 1; }; }
929     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
930     eval enable_$ac_feature=\$ac_optarg ;;
931
932   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934   | --exec | --exe | --ex)
935     ac_prev=exec_prefix ;;
936   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938   | --exec=* | --exe=* | --ex=*)
939     exec_prefix=$ac_optarg ;;
940
941   -gas | --gas | --ga | --g)
942     # Obsolete; use --with-gas.
943     with_gas=yes ;;
944
945   -help | --help | --hel | --he | -h)
946     ac_init_help=long ;;
947   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948     ac_init_help=recursive ;;
949   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950     ac_init_help=short ;;
951
952   -host | --host | --hos | --ho)
953     ac_prev=host_alias ;;
954   -host=* | --host=* | --hos=* | --ho=*)
955     host_alias=$ac_optarg ;;
956
957   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
958     ac_prev=htmldir ;;
959   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
960   | --ht=*)
961     htmldir=$ac_optarg ;;
962
963   -includedir | --includedir | --includedi | --included | --include \
964   | --includ | --inclu | --incl | --inc)
965     ac_prev=includedir ;;
966   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967   | --includ=* | --inclu=* | --incl=* | --inc=*)
968     includedir=$ac_optarg ;;
969
970   -infodir | --infodir | --infodi | --infod | --info | --inf)
971     ac_prev=infodir ;;
972   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973     infodir=$ac_optarg ;;
974
975   -libdir | --libdir | --libdi | --libd)
976     ac_prev=libdir ;;
977   -libdir=* | --libdir=* | --libdi=* | --libd=*)
978     libdir=$ac_optarg ;;
979
980   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981   | --libexe | --libex | --libe)
982     ac_prev=libexecdir ;;
983   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984   | --libexe=* | --libex=* | --libe=*)
985     libexecdir=$ac_optarg ;;
986
987   -localedir | --localedir | --localedi | --localed | --locale)
988     ac_prev=localedir ;;
989   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990     localedir=$ac_optarg ;;
991
992   -localstatedir | --localstatedir | --localstatedi | --localstated \
993   | --localstate | --localstat | --localsta | --localst | --locals)
994     ac_prev=localstatedir ;;
995   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
996   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
997     localstatedir=$ac_optarg ;;
998
999   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000     ac_prev=mandir ;;
1001   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002     mandir=$ac_optarg ;;
1003
1004   -nfp | --nfp | --nf)
1005     # Obsolete; use --without-fp.
1006     with_fp=no ;;
1007
1008   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009   | --no-cr | --no-c | -n)
1010     no_create=yes ;;
1011
1012   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014     no_recursion=yes ;;
1015
1016   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018   | --oldin | --oldi | --old | --ol | --o)
1019     ac_prev=oldincludedir ;;
1020   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1023     oldincludedir=$ac_optarg ;;
1024
1025   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026     ac_prev=prefix ;;
1027   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028     prefix=$ac_optarg ;;
1029
1030   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031   | --program-pre | --program-pr | --program-p)
1032     ac_prev=program_prefix ;;
1033   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1035     program_prefix=$ac_optarg ;;
1036
1037   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038   | --program-suf | --program-su | --program-s)
1039     ac_prev=program_suffix ;;
1040   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1042     program_suffix=$ac_optarg ;;
1043
1044   -program-transform-name | --program-transform-name \
1045   | --program-transform-nam | --program-transform-na \
1046   | --program-transform-n | --program-transform- \
1047   | --program-transform | --program-transfor \
1048   | --program-transfo | --program-transf \
1049   | --program-trans | --program-tran \
1050   | --progr-tra | --program-tr | --program-t)
1051     ac_prev=program_transform_name ;;
1052   -program-transform-name=* | --program-transform-name=* \
1053   | --program-transform-nam=* | --program-transform-na=* \
1054   | --program-transform-n=* | --program-transform-=* \
1055   | --program-transform=* | --program-transfor=* \
1056   | --program-transfo=* | --program-transf=* \
1057   | --program-trans=* | --program-tran=* \
1058   | --progr-tra=* | --program-tr=* | --program-t=*)
1059     program_transform_name=$ac_optarg ;;
1060
1061   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1062     ac_prev=pdfdir ;;
1063   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064     pdfdir=$ac_optarg ;;
1065
1066   -psdir | --psdir | --psdi | --psd | --ps)
1067     ac_prev=psdir ;;
1068   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1069     psdir=$ac_optarg ;;
1070
1071   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072   | -silent | --silent | --silen | --sile | --sil)
1073     silent=yes ;;
1074
1075   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1076     ac_prev=sbindir ;;
1077   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1078   | --sbi=* | --sb=*)
1079     sbindir=$ac_optarg ;;
1080
1081   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1082   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1083   | --sharedst | --shareds | --shared | --share | --shar \
1084   | --sha | --sh)
1085     ac_prev=sharedstatedir ;;
1086   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1087   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1088   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1089   | --sha=* | --sh=*)
1090     sharedstatedir=$ac_optarg ;;
1091
1092   -site | --site | --sit)
1093     ac_prev=site ;;
1094   -site=* | --site=* | --sit=*)
1095     site=$ac_optarg ;;
1096
1097   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1098     ac_prev=srcdir ;;
1099   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1100     srcdir=$ac_optarg ;;
1101
1102   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1103   | --syscon | --sysco | --sysc | --sys | --sy)
1104     ac_prev=sysconfdir ;;
1105   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1106   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1107     sysconfdir=$ac_optarg ;;
1108
1109   -target | --target | --targe | --targ | --tar | --ta | --t)
1110     ac_prev=target_alias ;;
1111   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1112     target_alias=$ac_optarg ;;
1113
1114   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1115     verbose=yes ;;
1116
1117   -version | --version | --versio | --versi | --vers | -V)
1118     ac_init_version=: ;;
1119
1120   -with-* | --with-*)
1121     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1122     # Reject names that are not valid shell variable names.
1123     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1124       { echo "$as_me: error: invalid package name: $ac_package" >&2
1125    { (exit 1); exit 1; }; }
1126     ac_package=`echo $ac_package| sed 's/-/_/g'`
1127     eval with_$ac_package=\$ac_optarg ;;
1128
1129   -without-* | --without-*)
1130     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131     # Reject names that are not valid shell variable names.
1132     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1133       { echo "$as_me: error: invalid package name: $ac_package" >&2
1134    { (exit 1); exit 1; }; }
1135     ac_package=`echo $ac_package | sed 's/-/_/g'`
1136     eval with_$ac_package=no ;;
1137
1138   --x)
1139     # Obsolete; use --with-x.
1140     with_x=yes ;;
1141
1142   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1143   | --x-incl | --x-inc | --x-in | --x-i)
1144     ac_prev=x_includes ;;
1145   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1146   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1147     x_includes=$ac_optarg ;;
1148
1149   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1150   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1151     ac_prev=x_libraries ;;
1152   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1153   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1154     x_libraries=$ac_optarg ;;
1155
1156   -*) { echo "$as_me: error: unrecognized option: $ac_option
1157 Try \`$0 --help' for more information." >&2
1158    { (exit 1); exit 1; }; }
1159     ;;
1160
1161   *=*)
1162     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1163     # Reject names that are not valid shell variable names.
1164     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1165       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1166    { (exit 1); exit 1; }; }
1167     eval $ac_envvar=\$ac_optarg
1168     export $ac_envvar ;;
1169
1170   *)
1171     # FIXME: should be removed in autoconf 3.0.
1172     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1173     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1174       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1175     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1176     ;;
1177
1178   esac
1179 done
1180
1181 if test -n "$ac_prev"; then
1182   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1183   { echo "$as_me: error: missing argument to $ac_option" >&2
1184    { (exit 1); exit 1; }; }
1185 fi
1186
1187 # Be sure to have absolute directory names.
1188 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1189                 datadir sysconfdir sharedstatedir localstatedir includedir \
1190                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1191                 libdir localedir mandir
1192 do
1193   eval ac_val=\$$ac_var
1194   case $ac_val in
1195     [\\/$]* | ?:[\\/]* )  continue;;
1196     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1197   esac
1198   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1199    { (exit 1); exit 1; }; }
1200 done
1201
1202 # There might be people who depend on the old broken behavior: `$host'
1203 # used to hold the argument of --host etc.
1204 # FIXME: To remove some day.
1205 build=$build_alias
1206 host=$host_alias
1207 target=$target_alias
1208
1209 # FIXME: To remove some day.
1210 if test "x$host_alias" != x; then
1211   if test "x$build_alias" = x; then
1212     cross_compiling=maybe
1213     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1214     If a cross compiler is detected then cross compile mode will be used." >&2
1215   elif test "x$build_alias" != "x$host_alias"; then
1216     cross_compiling=yes
1217   fi
1218 fi
1219
1220 ac_tool_prefix=
1221 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1222
1223 test "$silent" = yes && exec 6>/dev/null
1224
1225
1226 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1227 ac_ls_di=`ls -di .` &&
1228 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1229   { echo "$as_me: error: Working directory cannot be determined" >&2
1230    { (exit 1); exit 1; }; }
1231 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1232   { echo "$as_me: error: pwd does not report name of working directory" >&2
1233    { (exit 1); exit 1; }; }
1234
1235
1236 # Find the source files, if location was not specified.
1237 if test -z "$srcdir"; then
1238   ac_srcdir_defaulted=yes
1239   # Try the directory containing this script, then the parent directory.
1240   ac_confdir=`$as_dirname -- "$0" ||
1241 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1242          X"$0" : 'X\(//\)[^/]' \| \
1243          X"$0" : 'X\(//\)$' \| \
1244          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1245 echo X"$0" |
1246     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1247             s//\1/
1248             q
1249           }
1250           /^X\(\/\/\)[^/].*/{
1251             s//\1/
1252             q
1253           }
1254           /^X\(\/\/\)$/{
1255             s//\1/
1256             q
1257           }
1258           /^X\(\/\).*/{
1259             s//\1/
1260             q
1261           }
1262           s/.*/./; q'`
1263   srcdir=$ac_confdir
1264   if test ! -r "$srcdir/$ac_unique_file"; then
1265     srcdir=..
1266   fi
1267 else
1268   ac_srcdir_defaulted=no
1269 fi
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1271   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1272   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1273    { (exit 1); exit 1; }; }
1274 fi
1275 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1276 ac_abs_confdir=`(
1277         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1278    { (exit 1); exit 1; }; }
1279         pwd)`
1280 # When building in place, set srcdir=.
1281 if test "$ac_abs_confdir" = "$ac_pwd"; then
1282   srcdir=.
1283 fi
1284 # Remove unnecessary trailing slashes from srcdir.
1285 # Double slashes in file names in object file debugging info
1286 # mess up M-x gdb in Emacs.
1287 case $srcdir in
1288 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1289 esac
1290 for ac_var in $ac_precious_vars; do
1291   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1292   eval ac_env_${ac_var}_value=\$${ac_var}
1293   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1294   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1295 done
1296
1297 #
1298 # Report the --help message.
1299 #
1300 if test "$ac_init_help" = "long"; then
1301   # Omit some internal or obsolete options to make the list less imposing.
1302   # This message is too long to be a string in the A/UX 3.1 sh.
1303   cat <<_ACEOF
1304 \`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1305
1306 Usage: $0 [OPTION]... [VAR=VALUE]...
1307
1308 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309 VAR=VALUE.  See below for descriptions of some of the useful variables.
1310
1311 Defaults for the options are specified in brackets.
1312
1313 Configuration:
1314   -h, --help              display this help and exit
1315       --help=short        display options specific to this package
1316       --help=recursive    display the short help of all the included packages
1317   -V, --version           display version information and exit
1318   -q, --quiet, --silent   do not print \`checking...' messages
1319       --cache-file=FILE   cache test results in FILE [disabled]
1320   -C, --config-cache      alias for \`--cache-file=config.cache'
1321   -n, --no-create         do not create output files
1322       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1323
1324 Installation directories:
1325   --prefix=PREFIX         install architecture-independent files in PREFIX
1326                           [$ac_default_prefix]
1327   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1328                           [PREFIX]
1329
1330 By default, \`make install' will install all the files in
1331 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1332 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1333 for instance \`--prefix=\$HOME'.
1334
1335 For better control, use the options below.
1336
1337 Fine tuning of the installation directories:
1338   --bindir=DIR           user executables [EPREFIX/bin]
1339   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1340   --libexecdir=DIR       program executables [EPREFIX/libexec]
1341   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1342   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1343   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1344   --libdir=DIR           object code libraries [EPREFIX/lib]
1345   --includedir=DIR       C header files [PREFIX/include]
1346   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1347   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1348   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1349   --infodir=DIR          info documentation [DATAROOTDIR/info]
1350   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1351   --mandir=DIR           man documentation [DATAROOTDIR/man]
1352   --docdir=DIR           documentation root [DATAROOTDIR/doc/--sample--]
1353   --htmldir=DIR          html documentation [DOCDIR]
1354   --dvidir=DIR           dvi documentation [DOCDIR]
1355   --pdfdir=DIR           pdf documentation [DOCDIR]
1356   --psdir=DIR            ps documentation [DOCDIR]
1357 _ACEOF
1358
1359   cat <<\_ACEOF
1360
1361 System types:
1362   --build=BUILD     configure for building on BUILD [guessed]
1363   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1364   --target=TARGET   configure for building compilers for TARGET [HOST]
1365 _ACEOF
1366 fi
1367
1368 if test -n "$ac_init_help"; then
1369   case $ac_init_help in
1370      short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1371    esac
1372   cat <<\_ACEOF
1373
1374 Optional Features:
1375   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1376   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1377   --enable-polly          Use polly if available (default is YES)
1378   --enable-libcpp         Use libc++ if available (default is NO)
1379   --enable-cxx11          Use c++11 if available (default is NO)
1380   --enable-optimized      Compile with optimizations enabled (default is NO)
1381   --enable-profiling      Compile with profiling enabled (default is NO)
1382   --enable-assertions     Compile with assertion checks enabled (default is
1383                           YES)
1384   --enable-werror         Compile with -Werror enabled (default is NO)
1385   --enable-expensive-checks
1386                           Compile with expensive debug checks enabled (default
1387                           is NO)
1388   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1389                           NO)
1390   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1391                           optimization is on and YES if it's off)
1392   --enable-jit            Enable Just In Time Compiling (default is YES)
1393   --enable-docs           Build documents (default is YES)
1394   --enable-doxygen        Build doxygen documentation (default is NO)
1395   --enable-threads        Use threads if available (default is YES)
1396   --enable-pthreads       Use pthreads if available (default is YES)
1397   --enable-pic            Build LLVM with Position Independent Code (default
1398                           is YES)
1399   --enable-shared         Build a shared library and link tools against it
1400                           (default is NO)
1401   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1402                           Win32 DLL (default is YES)
1403   --enable-timestamps     Enable embedding timestamp information in build
1404                           (default is YES)
1405   --enable-targets        Build specific host targets: all or
1406                           target1,target2,... Valid targets are: host, x86,
1407                           x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1408                           xcore, msp430, nvptx, systemz, r600, and cpp
1409                           (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   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
3856   *)                      llvm_cv_target_arch="Unknown" ;;
3857 esac
3858 fi
3859 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3860 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3861
3862 if test "$llvm_cv_target_arch" = "Unknown" ; then
3863   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3864 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3865 fi
3866
3867 # Determine the LLVM native architecture for the target
3868 case "$llvm_cv_target_arch" in
3869     x86)     LLVM_NATIVE_ARCH="X86" ;;
3870     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3871     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3872 esac
3873
3874 ARCH=$llvm_cv_target_arch
3875
3876
3877
3878
3879 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3880 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3881 if test "${ac_cv_path_GREP+set}" = set; then
3882   echo $ECHO_N "(cached) $ECHO_C" >&6
3883 else
3884   # Extract the first word of "grep ggrep" to use in msg output
3885 if test -z "$GREP"; then
3886 set dummy grep ggrep; ac_prog_name=$2
3887 if test "${ac_cv_path_GREP+set}" = set; then
3888   echo $ECHO_N "(cached) $ECHO_C" >&6
3889 else
3890   ac_path_GREP_found=false
3891 # Loop through the user's path and test for each of PROGNAME-LIST
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3894 do
3895   IFS=$as_save_IFS
3896   test -z "$as_dir" && as_dir=.
3897   for ac_prog in grep ggrep; do
3898   for ac_exec_ext in '' $ac_executable_extensions; do
3899     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3900     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3901     # Check for GNU ac_path_GREP and select it if it is found.
3902   # Check for GNU $ac_path_GREP
3903 case `"$ac_path_GREP" --version 2>&1` in
3904 *GNU*)
3905   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3906 *)
3907   ac_count=0
3908   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3909   while :
3910   do
3911     cat "conftest.in" "conftest.in" >"conftest.tmp"
3912     mv "conftest.tmp" "conftest.in"
3913     cp "conftest.in" "conftest.nl"
3914     echo 'GREP' >> "conftest.nl"
3915     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3916     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3917     ac_count=`expr $ac_count + 1`
3918     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3919       # Best one so far, save it but keep looking for a better one
3920       ac_cv_path_GREP="$ac_path_GREP"
3921       ac_path_GREP_max=$ac_count
3922     fi
3923     # 10*(2^10) chars as input seems more than enough
3924     test $ac_count -gt 10 && break
3925   done
3926   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3927 esac
3928
3929
3930     $ac_path_GREP_found && break 3
3931   done
3932 done
3933
3934 done
3935 IFS=$as_save_IFS
3936
3937
3938 fi
3939
3940 GREP="$ac_cv_path_GREP"
3941 if test -z "$GREP"; then
3942   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3943 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3944    { (exit 1); exit 1; }; }
3945 fi
3946
3947 else
3948   ac_cv_path_GREP=$GREP
3949 fi
3950
3951
3952 fi
3953 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3954 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3955  GREP="$ac_cv_path_GREP"
3956
3957
3958 { echo "$as_me:$LINENO: checking for egrep" >&5
3959 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3960 if test "${ac_cv_path_EGREP+set}" = set; then
3961   echo $ECHO_N "(cached) $ECHO_C" >&6
3962 else
3963   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3964    then ac_cv_path_EGREP="$GREP -E"
3965    else
3966      # Extract the first word of "egrep" to use in msg output
3967 if test -z "$EGREP"; then
3968 set dummy egrep; ac_prog_name=$2
3969 if test "${ac_cv_path_EGREP+set}" = set; then
3970   echo $ECHO_N "(cached) $ECHO_C" >&6
3971 else
3972   ac_path_EGREP_found=false
3973 # Loop through the user's path and test for each of PROGNAME-LIST
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3976 do
3977   IFS=$as_save_IFS
3978   test -z "$as_dir" && as_dir=.
3979   for ac_prog in egrep; do
3980   for ac_exec_ext in '' $ac_executable_extensions; do
3981     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3982     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3983     # Check for GNU ac_path_EGREP and select it if it is found.
3984   # Check for GNU $ac_path_EGREP
3985 case `"$ac_path_EGREP" --version 2>&1` in
3986 *GNU*)
3987   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3988 *)
3989   ac_count=0
3990   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3991   while :
3992   do
3993     cat "conftest.in" "conftest.in" >"conftest.tmp"
3994     mv "conftest.tmp" "conftest.in"
3995     cp "conftest.in" "conftest.nl"
3996     echo 'EGREP' >> "conftest.nl"
3997     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3998     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3999     ac_count=`expr $ac_count + 1`
4000     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4001       # Best one so far, save it but keep looking for a better one
4002       ac_cv_path_EGREP="$ac_path_EGREP"
4003       ac_path_EGREP_max=$ac_count
4004     fi
4005     # 10*(2^10) chars as input seems more than enough
4006     test $ac_count -gt 10 && break
4007   done
4008   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4009 esac
4010
4011
4012     $ac_path_EGREP_found && break 3
4013   done
4014 done
4015
4016 done
4017 IFS=$as_save_IFS
4018
4019
4020 fi
4021
4022 EGREP="$ac_cv_path_EGREP"
4023 if test -z "$EGREP"; then
4024   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4025 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4026    { (exit 1); exit 1; }; }
4027 fi
4028
4029 else
4030   ac_cv_path_EGREP=$EGREP
4031 fi
4032
4033
4034    fi
4035 fi
4036 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4037 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4038  EGREP="$ac_cv_path_EGREP"
4039
4040
4041 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4042 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4043 if test "${ac_cv_header_stdc+set}" = set; then
4044   echo $ECHO_N "(cached) $ECHO_C" >&6
4045 else
4046   cat >conftest.$ac_ext <<_ACEOF
4047 /* confdefs.h.  */
4048 _ACEOF
4049 cat confdefs.h >>conftest.$ac_ext
4050 cat >>conftest.$ac_ext <<_ACEOF
4051 /* end confdefs.h.  */
4052 #include <stdlib.h>
4053 #include <stdarg.h>
4054 #include <string.h>
4055 #include <float.h>
4056
4057 int
4058 main ()
4059 {
4060
4061   ;
4062   return 0;
4063 }
4064 _ACEOF
4065 rm -f conftest.$ac_objext
4066 if { (ac_try="$ac_compile"
4067 case "(($ac_try" in
4068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069   *) ac_try_echo=$ac_try;;
4070 esac
4071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4072   (eval "$ac_compile") 2>conftest.er1
4073   ac_status=$?
4074   grep -v '^ *+' conftest.er1 >conftest.err
4075   rm -f conftest.er1
4076   cat conftest.err >&5
4077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078   (exit $ac_status); } &&
4079          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4080   { (case "(($ac_try" in
4081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082   *) ac_try_echo=$ac_try;;
4083 esac
4084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4085   (eval "$ac_try") 2>&5
4086   ac_status=$?
4087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088   (exit $ac_status); }; } &&
4089          { ac_try='test -s conftest.$ac_objext'
4090   { (case "(($ac_try" in
4091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4092   *) ac_try_echo=$ac_try;;
4093 esac
4094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4095   (eval "$ac_try") 2>&5
4096   ac_status=$?
4097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098   (exit $ac_status); }; }; then
4099   ac_cv_header_stdc=yes
4100 else
4101   echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4103
4104         ac_cv_header_stdc=no
4105 fi
4106
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108
4109 if test $ac_cv_header_stdc = yes; then
4110   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4111   cat >conftest.$ac_ext <<_ACEOF
4112 /* confdefs.h.  */
4113 _ACEOF
4114 cat confdefs.h >>conftest.$ac_ext
4115 cat >>conftest.$ac_ext <<_ACEOF
4116 /* end confdefs.h.  */
4117 #include <string.h>
4118
4119 _ACEOF
4120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4121   $EGREP "memchr" >/dev/null 2>&1; then
4122   :
4123 else
4124   ac_cv_header_stdc=no
4125 fi
4126 rm -f conftest*
4127
4128 fi
4129
4130 if test $ac_cv_header_stdc = yes; then
4131   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4132   cat >conftest.$ac_ext <<_ACEOF
4133 /* confdefs.h.  */
4134 _ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h.  */
4138 #include <stdlib.h>
4139
4140 _ACEOF
4141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4142   $EGREP "free" >/dev/null 2>&1; then
4143   :
4144 else
4145   ac_cv_header_stdc=no
4146 fi
4147 rm -f conftest*
4148
4149 fi
4150
4151 if test $ac_cv_header_stdc = yes; then
4152   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4153   if test "$cross_compiling" = yes; then
4154   :
4155 else
4156   cat >conftest.$ac_ext <<_ACEOF
4157 /* confdefs.h.  */
4158 _ACEOF
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h.  */
4162 #include <ctype.h>
4163 #include <stdlib.h>
4164 #if ((' ' & 0x0FF) == 0x020)
4165 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4166 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4167 #else
4168 # define ISLOWER(c) \
4169                    (('a' <= (c) && (c) <= 'i') \
4170                      || ('j' <= (c) && (c) <= 'r') \
4171                      || ('s' <= (c) && (c) <= 'z'))
4172 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4173 #endif
4174
4175 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4176 int
4177 main ()
4178 {
4179   int i;
4180   for (i = 0; i < 256; i++)
4181     if (XOR (islower (i), ISLOWER (i))
4182         || toupper (i) != TOUPPER (i))
4183       return 2;
4184   return 0;
4185 }
4186 _ACEOF
4187 rm -f conftest$ac_exeext
4188 if { (ac_try="$ac_link"
4189 case "(($ac_try" in
4190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4191   *) ac_try_echo=$ac_try;;
4192 esac
4193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4194   (eval "$ac_link") 2>&5
4195   ac_status=$?
4196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4198   { (case "(($ac_try" in
4199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200   *) ac_try_echo=$ac_try;;
4201 esac
4202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4203   (eval "$ac_try") 2>&5
4204   ac_status=$?
4205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206   (exit $ac_status); }; }; then
4207   :
4208 else
4209   echo "$as_me: program exited with status $ac_status" >&5
4210 echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4212
4213 ( exit $ac_status )
4214 ac_cv_header_stdc=no
4215 fi
4216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4217 fi
4218
4219
4220 fi
4221 fi
4222 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4223 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4224 if test $ac_cv_header_stdc = yes; then
4225
4226 cat >>confdefs.h <<\_ACEOF
4227 #define STDC_HEADERS 1
4228 _ACEOF
4229
4230 fi
4231
4232 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4243                   inttypes.h stdint.h unistd.h
4244 do
4245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4246 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4249   echo $ECHO_N "(cached) $ECHO_C" >&6
4250 else
4251   cat >conftest.$ac_ext <<_ACEOF
4252 /* confdefs.h.  */
4253 _ACEOF
4254 cat confdefs.h >>conftest.$ac_ext
4255 cat >>conftest.$ac_ext <<_ACEOF
4256 /* end confdefs.h.  */
4257 $ac_includes_default
4258
4259 #include <$ac_header>
4260 _ACEOF
4261 rm -f conftest.$ac_objext
4262 if { (ac_try="$ac_compile"
4263 case "(($ac_try" in
4264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265   *) ac_try_echo=$ac_try;;
4266 esac
4267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4268   (eval "$ac_compile") 2>conftest.er1
4269   ac_status=$?
4270   grep -v '^ *+' conftest.er1 >conftest.err
4271   rm -f conftest.er1
4272   cat conftest.err >&5
4273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274   (exit $ac_status); } &&
4275          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4276   { (case "(($ac_try" in
4277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278   *) ac_try_echo=$ac_try;;
4279 esac
4280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4281   (eval "$ac_try") 2>&5
4282   ac_status=$?
4283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284   (exit $ac_status); }; } &&
4285          { ac_try='test -s conftest.$ac_objext'
4286   { (case "(($ac_try" in
4287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288   *) ac_try_echo=$ac_try;;
4289 esac
4290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4291   (eval "$ac_try") 2>&5
4292   ac_status=$?
4293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294   (exit $ac_status); }; }; then
4295   eval "$as_ac_Header=yes"
4296 else
4297   echo "$as_me: failed program was:" >&5
4298 sed 's/^/| /' conftest.$ac_ext >&5
4299
4300         eval "$as_ac_Header=no"
4301 fi
4302
4303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4304 fi
4305 ac_res=`eval echo '${'$as_ac_Header'}'`
4306                { echo "$as_me:$LINENO: result: $ac_res" >&5
4307 echo "${ECHO_T}$ac_res" >&6; }
4308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4309   cat >>confdefs.h <<_ACEOF
4310 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4311 _ACEOF
4312
4313 fi
4314
4315 done
4316
4317
4318 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4319 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4320 if test "${ac_cv_c_bigendian+set}" = set; then
4321   echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323   # See if sys/param.h defines the BYTE_ORDER macro.
4324 cat >conftest.$ac_ext <<_ACEOF
4325 /* confdefs.h.  */
4326 _ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h.  */
4330 #include <sys/types.h>
4331 #include <sys/param.h>
4332
4333 int
4334 main ()
4335 {
4336 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4337  bogus endian macros
4338 #endif
4339
4340   ;
4341   return 0;
4342 }
4343 _ACEOF
4344 rm -f conftest.$ac_objext
4345 if { (ac_try="$ac_compile"
4346 case "(($ac_try" in
4347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348   *) ac_try_echo=$ac_try;;
4349 esac
4350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4351   (eval "$ac_compile") 2>conftest.er1
4352   ac_status=$?
4353   grep -v '^ *+' conftest.er1 >conftest.err
4354   rm -f conftest.er1
4355   cat conftest.err >&5
4356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357   (exit $ac_status); } &&
4358          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4359   { (case "(($ac_try" in
4360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361   *) ac_try_echo=$ac_try;;
4362 esac
4363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4364   (eval "$ac_try") 2>&5
4365   ac_status=$?
4366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367   (exit $ac_status); }; } &&
4368          { ac_try='test -s conftest.$ac_objext'
4369   { (case "(($ac_try" in
4370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371   *) ac_try_echo=$ac_try;;
4372 esac
4373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4374   (eval "$ac_try") 2>&5
4375   ac_status=$?
4376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377   (exit $ac_status); }; }; then
4378   # It does; now see whether it defined to BIG_ENDIAN or not.
4379 cat >conftest.$ac_ext <<_ACEOF
4380 /* confdefs.h.  */
4381 _ACEOF
4382 cat confdefs.h >>conftest.$ac_ext
4383 cat >>conftest.$ac_ext <<_ACEOF
4384 /* end confdefs.h.  */
4385 #include <sys/types.h>
4386 #include <sys/param.h>
4387
4388 int
4389 main ()
4390 {
4391 #if BYTE_ORDER != BIG_ENDIAN
4392  not big endian
4393 #endif
4394
4395   ;
4396   return 0;
4397 }
4398 _ACEOF
4399 rm -f conftest.$ac_objext
4400 if { (ac_try="$ac_compile"
4401 case "(($ac_try" in
4402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403   *) ac_try_echo=$ac_try;;
4404 esac
4405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4406   (eval "$ac_compile") 2>conftest.er1
4407   ac_status=$?
4408   grep -v '^ *+' conftest.er1 >conftest.err
4409   rm -f conftest.er1
4410   cat conftest.err >&5
4411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412   (exit $ac_status); } &&
4413          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4414   { (case "(($ac_try" in
4415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416   *) ac_try_echo=$ac_try;;
4417 esac
4418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4419   (eval "$ac_try") 2>&5
4420   ac_status=$?
4421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422   (exit $ac_status); }; } &&
4423          { ac_try='test -s conftest.$ac_objext'
4424   { (case "(($ac_try" in
4425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426   *) ac_try_echo=$ac_try;;
4427 esac
4428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4429   (eval "$ac_try") 2>&5
4430   ac_status=$?
4431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432   (exit $ac_status); }; }; then
4433   ac_cv_c_bigendian=yes
4434 else
4435   echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4437
4438         ac_cv_c_bigendian=no
4439 fi
4440
4441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4442 else
4443   echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4445
4446         # It does not; compile a test program.
4447 if test "$cross_compiling" = yes; then
4448   # try to guess the endianness by grepping values into an object file
4449   ac_cv_c_bigendian=unknown
4450   cat >conftest.$ac_ext <<_ACEOF
4451 /* confdefs.h.  */
4452 _ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h.  */
4456 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4457 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4458 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4459 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4460 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4461 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4462 int
4463 main ()
4464 {
4465  _ascii (); _ebcdic ();
4466   ;
4467   return 0;
4468 }
4469 _ACEOF
4470 rm -f conftest.$ac_objext
4471 if { (ac_try="$ac_compile"
4472 case "(($ac_try" in
4473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474   *) ac_try_echo=$ac_try;;
4475 esac
4476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4477   (eval "$ac_compile") 2>conftest.er1
4478   ac_status=$?
4479   grep -v '^ *+' conftest.er1 >conftest.err
4480   rm -f conftest.er1
4481   cat conftest.err >&5
4482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483   (exit $ac_status); } &&
4484          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4485   { (case "(($ac_try" in
4486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487   *) ac_try_echo=$ac_try;;
4488 esac
4489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4490   (eval "$ac_try") 2>&5
4491   ac_status=$?
4492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493   (exit $ac_status); }; } &&
4494          { ac_try='test -s conftest.$ac_objext'
4495   { (case "(($ac_try" in
4496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497   *) ac_try_echo=$ac_try;;
4498 esac
4499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4500   (eval "$ac_try") 2>&5
4501   ac_status=$?
4502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503   (exit $ac_status); }; }; then
4504   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4505   ac_cv_c_bigendian=yes
4506 fi
4507 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4508   if test "$ac_cv_c_bigendian" = unknown; then
4509     ac_cv_c_bigendian=no
4510   else
4511     # finding both strings is unlikely to happen, but who knows?
4512     ac_cv_c_bigendian=unknown
4513   fi
4514 fi
4515 else
4516   echo "$as_me: failed program was:" >&5
4517 sed 's/^/| /' conftest.$ac_ext >&5
4518
4519
4520 fi
4521
4522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4523 else
4524   cat >conftest.$ac_ext <<_ACEOF
4525 /* confdefs.h.  */
4526 _ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h.  */
4530 $ac_includes_default
4531 int
4532 main ()
4533 {
4534
4535   /* Are we little or big endian?  From Harbison&Steele.  */
4536   union
4537   {
4538     long int l;
4539     char c[sizeof (long int)];
4540   } u;
4541   u.l = 1;
4542   return u.c[sizeof (long int) - 1] == 1;
4543
4544   ;
4545   return 0;
4546 }
4547 _ACEOF
4548 rm -f conftest$ac_exeext
4549 if { (ac_try="$ac_link"
4550 case "(($ac_try" in
4551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4552   *) ac_try_echo=$ac_try;;
4553 esac
4554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4555   (eval "$ac_link") 2>&5
4556   ac_status=$?
4557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4559   { (case "(($ac_try" in
4560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4561   *) ac_try_echo=$ac_try;;
4562 esac
4563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4564   (eval "$ac_try") 2>&5
4565   ac_status=$?
4566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567   (exit $ac_status); }; }; then
4568   ac_cv_c_bigendian=no
4569 else
4570   echo "$as_me: program exited with status $ac_status" >&5
4571 echo "$as_me: failed program was:" >&5
4572 sed 's/^/| /' conftest.$ac_ext >&5
4573
4574 ( exit $ac_status )
4575 ac_cv_c_bigendian=yes
4576 fi
4577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4578 fi
4579
4580
4581 fi
4582
4583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4584 fi
4585 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4586 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4587 case $ac_cv_c_bigendian in
4588   yes)
4589     ENDIAN=big
4590  ;;
4591   no)
4592     ENDIAN=little
4593  ;;
4594   *)
4595     { { echo "$as_me:$LINENO: error: unknown endianness
4596 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4597 echo "$as_me: error: unknown endianness
4598 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4599    { (exit 1); exit 1; }; } ;;
4600 esac
4601
4602
4603 if test "$cross_compiling" = yes; then
4604   LLVM_CROSS_COMPILING=1
4605
4606
4607 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4608 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4609 if test "${ac_cv_build_exeext+set}" = set; then
4610   echo $ECHO_N "(cached) $ECHO_C" >&6
4611 else
4612   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4613   ac_cv_build_exeext=.exe
4614 else
4615   ac_build_prefix=${build_alias}-
4616
4617   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4618 set dummy ${ac_build_prefix}gcc; ac_word=$2
4619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4621 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4622   echo $ECHO_N "(cached) $ECHO_C" >&6
4623 else
4624   if test -n "$BUILD_CC"; then
4625   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4626 else
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 for as_dir in $PATH
4629 do
4630   IFS=$as_save_IFS
4631   test -z "$as_dir" && as_dir=.
4632   for ac_exec_ext in '' $ac_executable_extensions; do
4633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4634     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4635     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4636     break 2
4637   fi
4638 done
4639 done
4640 IFS=$as_save_IFS
4641
4642 fi
4643 fi
4644 BUILD_CC=$ac_cv_prog_BUILD_CC
4645 if test -n "$BUILD_CC"; then
4646   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4647 echo "${ECHO_T}$BUILD_CC" >&6; }
4648 else
4649   { echo "$as_me:$LINENO: result: no" >&5
4650 echo "${ECHO_T}no" >&6; }
4651 fi
4652
4653
4654   if test -z "$BUILD_CC"; then
4655      # Extract the first word of "gcc", so it can be a program name with args.
4656 set dummy gcc; ac_word=$2
4657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4659 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4660   echo $ECHO_N "(cached) $ECHO_C" >&6
4661 else
4662   if test -n "$BUILD_CC"; then
4663   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4664 else
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666 for as_dir in $PATH
4667 do
4668   IFS=$as_save_IFS
4669   test -z "$as_dir" && as_dir=.
4670   for ac_exec_ext in '' $ac_executable_extensions; do
4671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4672     ac_cv_prog_BUILD_CC="gcc"
4673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4674     break 2
4675   fi
4676 done
4677 done
4678 IFS=$as_save_IFS
4679
4680 fi
4681 fi
4682 BUILD_CC=$ac_cv_prog_BUILD_CC
4683 if test -n "$BUILD_CC"; then
4684   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4685 echo "${ECHO_T}$BUILD_CC" >&6; }
4686 else
4687   { echo "$as_me:$LINENO: result: no" >&5
4688 echo "${ECHO_T}no" >&6; }
4689 fi
4690
4691
4692      if test -z "$BUILD_CC"; then
4693        # Extract the first word of "cc", so it can be a program name with args.
4694 set dummy cc; ac_word=$2
4695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4697 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4698   echo $ECHO_N "(cached) $ECHO_C" >&6
4699 else
4700   if test -n "$BUILD_CC"; then
4701   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4702 else
4703   ac_prog_rejected=no
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 for as_dir in $PATH
4706 do
4707   IFS=$as_save_IFS
4708   test -z "$as_dir" && as_dir=.
4709   for ac_exec_ext in '' $ac_executable_extensions; do
4710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4711     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4712        ac_prog_rejected=yes
4713        continue
4714      fi
4715     ac_cv_prog_BUILD_CC="cc"
4716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4717     break 2
4718   fi
4719 done
4720 done
4721 IFS=$as_save_IFS
4722
4723 if test $ac_prog_rejected = yes; then
4724   # We found a bogon in the path, so make sure we never use it.
4725   set dummy $ac_cv_prog_BUILD_CC
4726   shift
4727   if test $# != 0; then
4728     # We chose a different compiler from the bogus one.
4729     # However, it has the same basename, so the bogon will be chosen
4730     # first if we set BUILD_CC to just the basename; use the full file name.
4731     shift
4732     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4733   fi
4734 fi
4735 fi
4736 fi
4737 BUILD_CC=$ac_cv_prog_BUILD_CC
4738 if test -n "$BUILD_CC"; then
4739   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4740 echo "${ECHO_T}$BUILD_CC" >&6; }
4741 else
4742   { echo "$as_me:$LINENO: result: no" >&5
4743 echo "${ECHO_T}no" >&6; }
4744 fi
4745
4746
4747      fi
4748   fi
4749   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4750 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4751    { (exit 1); exit 1; }; }
4752   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4753   rm -f conftest*
4754   echo 'int main () { return 0; }' > conftest.$ac_ext
4755   ac_cv_build_exeext=
4756   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4757   (eval $ac_build_link) 2>&5
4758   ac_status=$?
4759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760   (exit $ac_status); }; then
4761     for file in conftest.*; do
4762       case $file in
4763       *.c | *.o | *.obj | *.dSYM) ;;
4764       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4765       esac
4766     done
4767   else
4768     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4769 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4770    { (exit 1); exit 1; }; }
4771   fi
4772   rm -f conftest*
4773   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4774 fi
4775 fi
4776
4777 BUILD_EXEEXT=""
4778 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4779 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4780 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4781 ac_build_exeext=$BUILD_EXEEXT
4782
4783   ac_build_prefix=${build_alias}-
4784   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4785 set dummy ${ac_build_prefix}g++; ac_word=$2
4786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4788 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4789   echo $ECHO_N "(cached) $ECHO_C" >&6
4790 else
4791   if test -n "$BUILD_CXX"; then
4792   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4793 else
4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795 for as_dir in $PATH
4796 do
4797   IFS=$as_save_IFS
4798   test -z "$as_dir" && as_dir=.
4799   for ac_exec_ext in '' $ac_executable_extensions; do
4800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4801     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4803     break 2
4804   fi
4805 done
4806 done
4807 IFS=$as_save_IFS
4808
4809 fi
4810 fi
4811 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4812 if test -n "$BUILD_CXX"; then
4813   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4814 echo "${ECHO_T}$BUILD_CXX" >&6; }
4815 else
4816   { echo "$as_me:$LINENO: result: no" >&5
4817 echo "${ECHO_T}no" >&6; }
4818 fi
4819
4820
4821   if test -z "$BUILD_CXX"; then
4822      # Extract the first word of "g++", so it can be a program name with args.
4823 set dummy g++; ac_word=$2
4824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4826 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4827   echo $ECHO_N "(cached) $ECHO_C" >&6
4828 else
4829   if test -n "$BUILD_CXX"; then
4830   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4831 else
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 for as_dir in $PATH
4834 do
4835   IFS=$as_save_IFS
4836   test -z "$as_dir" && as_dir=.
4837   for ac_exec_ext in '' $ac_executable_extensions; do
4838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4839     ac_cv_prog_BUILD_CXX="g++"
4840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4841     break 2
4842   fi
4843 done
4844 done
4845 IFS=$as_save_IFS
4846
4847 fi
4848 fi
4849 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4850 if test -n "$BUILD_CXX"; then
4851   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4852 echo "${ECHO_T}$BUILD_CXX" >&6; }
4853 else
4854   { echo "$as_me:$LINENO: result: no" >&5
4855 echo "${ECHO_T}no" >&6; }
4856 fi
4857
4858
4859      if test -z "$BUILD_CXX"; then
4860        # Extract the first word of "c++", so it can be a program name with args.
4861 set dummy c++; ac_word=$2
4862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4864 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4865   echo $ECHO_N "(cached) $ECHO_C" >&6
4866 else
4867   if test -n "$BUILD_CXX"; then
4868   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4869 else
4870   ac_prog_rejected=no
4871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872 for as_dir in $PATH
4873 do
4874   IFS=$as_save_IFS
4875   test -z "$as_dir" && as_dir=.
4876   for ac_exec_ext in '' $ac_executable_extensions; do
4877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4878     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4879        ac_prog_rejected=yes
4880        continue
4881      fi
4882     ac_cv_prog_BUILD_CXX="c++"
4883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4884     break 2
4885   fi
4886 done
4887 done
4888 IFS=$as_save_IFS
4889
4890 if test $ac_prog_rejected = yes; then
4891   # We found a bogon in the path, so make sure we never use it.
4892   set dummy $ac_cv_prog_BUILD_CXX
4893   shift
4894   if test $# != 0; then
4895     # We chose a different compiler from the bogus one.
4896     # However, it has the same basename, so the bogon will be chosen
4897     # first if we set BUILD_CXX to just the basename; use the full file name.
4898     shift
4899     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4900   fi
4901 fi
4902 fi
4903 fi
4904 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4905 if test -n "$BUILD_CXX"; then
4906   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4907 echo "${ECHO_T}$BUILD_CXX" >&6; }
4908 else
4909   { echo "$as_me:$LINENO: result: no" >&5
4910 echo "${ECHO_T}no" >&6; }
4911 fi
4912
4913
4914      fi
4915   fi
4916 else
4917   LLVM_CROSS_COMPILING=0
4918
4919 fi
4920
4921 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4922   cvsbuild="yes"
4923   optimize="no"
4924   CVSBUILD=CVSBUILD=1
4925
4926 else
4927   cvsbuild="no"
4928   optimize="yes"
4929 fi
4930
4931
4932 # Check whether --enable-libcpp was given.
4933 if test "${enable_libcpp+set}" = set; then
4934   enableval=$enable_libcpp;
4935 else
4936   enableval=default
4937 fi
4938
4939 case "$enableval" in
4940   yes) ENABLE_LIBCPP=1
4941  ;;
4942   no)  ENABLE_LIBCPP=0
4943  ;;
4944   default) ENABLE_LIBCPP=0
4945 ;;
4946   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4947 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4948    { (exit 1); exit 1; }; } ;;
4949 esac
4950
4951 # Check whether --enable-cxx11 was given.
4952 if test "${enable_cxx11+set}" = set; then
4953   enableval=$enable_cxx11;
4954 else
4955   enableval=default
4956 fi
4957
4958 case "$enableval" in
4959   yes) ENABLE_CXX11=1
4960  ;;
4961   no)  ENABLE_CXX11=0
4962  ;;
4963   default) ENABLE_CXX11=0
4964 ;;
4965   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4966 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4967    { (exit 1); exit 1; }; } ;;
4968 esac
4969
4970 # Check whether --enable-optimized was given.
4971 if test "${enable_optimized+set}" = set; then
4972   enableval=$enable_optimized;
4973 else
4974   enableval=$optimize
4975 fi
4976
4977 if test ${enableval} = "no" ; then
4978   ENABLE_OPTIMIZED=
4979
4980 else
4981   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4982
4983 fi
4984
4985 # Check whether --enable-profiling was given.
4986 if test "${enable_profiling+set}" = set; then
4987   enableval=$enable_profiling;
4988 else
4989   enableval="no"
4990 fi
4991
4992 if test ${enableval} = "no" ; then
4993   ENABLE_PROFILING=
4994
4995 else
4996   ENABLE_PROFILING=ENABLE_PROFILING=1
4997
4998 fi
4999
5000 # Check whether --enable-assertions was given.
5001 if test "${enable_assertions+set}" = set; then
5002   enableval=$enable_assertions;
5003 else
5004   enableval="yes"
5005 fi
5006
5007 if test ${enableval} = "yes" ; then
5008   DISABLE_ASSERTIONS=
5009
5010 else
5011   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5012
5013 fi
5014
5015 # Check whether --enable-werror was given.
5016 if test "${enable_werror+set}" = set; then
5017   enableval=$enable_werror;
5018 else
5019   enableval="no"
5020 fi
5021
5022 case "$enableval" in
5023   yes) ENABLE_WERROR=1
5024  ;;
5025   no)  ENABLE_WERROR=0
5026  ;;
5027   default) ENABLE_WERROR=0
5028 ;;
5029   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5030 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5031    { (exit 1); exit 1; }; } ;;
5032 esac
5033
5034 # Check whether --enable-expensive-checks was given.
5035 if test "${enable_expensive_checks+set}" = set; then
5036   enableval=$enable_expensive_checks;
5037 else
5038   enableval="no"
5039 fi
5040
5041 if test ${enableval} = "yes" ; then
5042   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5043
5044   EXPENSIVE_CHECKS=yes
5045
5046 else
5047   ENABLE_EXPENSIVE_CHECKS=
5048
5049   EXPENSIVE_CHECKS=no
5050
5051 fi
5052
5053 # Check whether --enable-debug-runtime was given.
5054 if test "${enable_debug_runtime+set}" = set; then
5055   enableval=$enable_debug_runtime;
5056 else
5057   enableval=no
5058 fi
5059
5060 if test ${enableval} = "no" ; then
5061   DEBUG_RUNTIME=
5062
5063 else
5064   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5065
5066 fi
5067
5068 # Check whether --enable-debug-symbols was given.
5069 if test "${enable_debug_symbols+set}" = set; then
5070   enableval=$enable_debug_symbols;
5071 else
5072   enableval=no
5073 fi
5074
5075 if test ${enableval} = "no" ; then
5076   DEBUG_SYMBOLS=
5077
5078 else
5079   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5080
5081 fi
5082
5083 # Check whether --enable-jit was given.
5084 if test "${enable_jit+set}" = set; then
5085   enableval=$enable_jit;
5086 else
5087   enableval=default
5088 fi
5089
5090 if test ${enableval} = "no"
5091 then
5092   JIT=
5093
5094 else
5095   case "$llvm_cv_target_arch" in
5096     x86)         TARGET_HAS_JIT=1
5097  ;;
5098     Sparc)       TARGET_HAS_JIT=0
5099  ;;
5100     PowerPC)     TARGET_HAS_JIT=1
5101  ;;
5102     x86_64)      TARGET_HAS_JIT=1
5103  ;;
5104     ARM)         TARGET_HAS_JIT=1
5105  ;;
5106     AArch64)     TARGET_HAS_JIT=0
5107  ;;
5108     Mips)        TARGET_HAS_JIT=1
5109  ;;
5110     XCore)       TARGET_HAS_JIT=0
5111  ;;
5112     MSP430)      TARGET_HAS_JIT=0
5113  ;;
5114     Hexagon)     TARGET_HAS_JIT=0
5115  ;;
5116     MBlaze)      TARGET_HAS_JIT=0
5117  ;;
5118     NVPTX)       TARGET_HAS_JIT=0
5119  ;;
5120     SystemZ)     TARGET_HAS_JIT=1
5121  ;;
5122     *)           TARGET_HAS_JIT=0
5123  ;;
5124   esac
5125 fi
5126
5127 # Check whether --enable-docs was given.
5128 if test "${enable_docs+set}" = set; then
5129   enableval=$enable_docs;
5130 else
5131   enableval=default
5132 fi
5133
5134 case "$enableval" in
5135   yes) ENABLE_DOCS=1
5136  ;;
5137   no)  ENABLE_DOCS=0
5138  ;;
5139   default) ENABLE_DOCS=1
5140  ;;
5141   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5142 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5143    { (exit 1); exit 1; }; } ;;
5144 esac
5145
5146 # Check whether --enable-doxygen was given.
5147 if test "${enable_doxygen+set}" = set; then
5148   enableval=$enable_doxygen;
5149 else
5150   enableval=default
5151 fi
5152
5153 case "$enableval" in
5154   yes) ENABLE_DOXYGEN=1
5155  ;;
5156   no)  ENABLE_DOXYGEN=0
5157  ;;
5158   default) ENABLE_DOXYGEN=0
5159  ;;
5160   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5161 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5162    { (exit 1); exit 1; }; } ;;
5163 esac
5164
5165 # Check whether --enable-threads was given.
5166 if test "${enable_threads+set}" = set; then
5167   enableval=$enable_threads;
5168 else
5169   enableval=default
5170 fi
5171
5172 case "$enableval" in
5173   yes) ENABLE_THREADS=1
5174  ;;
5175   no)  ENABLE_THREADS=0
5176  ;;
5177   default) ENABLE_THREADS=1
5178  ;;
5179   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5180 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5181    { (exit 1); exit 1; }; } ;;
5182 esac
5183
5184 cat >>confdefs.h <<_ACEOF
5185 #define ENABLE_THREADS $ENABLE_THREADS
5186 _ACEOF
5187
5188
5189 # Check whether --enable-pthreads was given.
5190 if test "${enable_pthreads+set}" = set; then
5191   enableval=$enable_pthreads;
5192 else
5193   enableval=default
5194 fi
5195
5196 case "$enableval" in
5197   yes) ENABLE_PTHREADS=1
5198  ;;
5199   no)  ENABLE_PTHREADS=0
5200  ;;
5201   default) ENABLE_PTHREADS=1
5202  ;;
5203   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5204 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5205    { (exit 1); exit 1; }; } ;;
5206 esac
5207
5208 # Check whether --enable-pic was given.
5209 if test "${enable_pic+set}" = set; then
5210   enableval=$enable_pic;
5211 else
5212   enableval=default
5213 fi
5214
5215 case "$enableval" in
5216   yes) ENABLE_PIC=1
5217  ;;
5218   no)  ENABLE_PIC=0
5219  ;;
5220   default) ENABLE_PIC=1
5221  ;;
5222   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5223 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5224    { (exit 1); exit 1; }; } ;;
5225 esac
5226
5227 cat >>confdefs.h <<_ACEOF
5228 #define ENABLE_PIC $ENABLE_PIC
5229 _ACEOF
5230
5231
5232 # Check whether --enable-shared was given.
5233 if test "${enable_shared+set}" = set; then
5234   enableval=$enable_shared;
5235 else
5236   enableval=default
5237 fi
5238
5239 case "$enableval" in
5240   yes) ENABLE_SHARED=1
5241  ;;
5242   no)  ENABLE_SHARED=0
5243  ;;
5244   default) ENABLE_SHARED=0
5245  ;;
5246   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5247 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5248    { (exit 1); exit 1; }; } ;;
5249 esac
5250
5251 # Check whether --enable-embed-stdcxx was given.
5252 if test "${enable_embed_stdcxx+set}" = set; then
5253   enableval=$enable_embed_stdcxx;
5254 else
5255   enableval=default
5256 fi
5257
5258 case "$enableval" in
5259   yes) ENABLE_EMBED_STDCXX=1
5260  ;;
5261   no)  ENABLE_EMBED_STDCXX=0
5262  ;;
5263   default) ENABLE_EMBED_STDCXX=1
5264  ;;
5265   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5266 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5267    { (exit 1); exit 1; }; } ;;
5268 esac
5269
5270 # Check whether --enable-timestamps was given.
5271 if test "${enable_timestamps+set}" = set; then
5272   enableval=$enable_timestamps;
5273 else
5274   enableval=default
5275 fi
5276
5277 case "$enableval" in
5278   yes) ENABLE_TIMESTAMPS=1
5279  ;;
5280   no)  ENABLE_TIMESTAMPS=0
5281  ;;
5282   default) ENABLE_TIMESTAMPS=1
5283  ;;
5284   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5285 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5286    { (exit 1); exit 1; }; } ;;
5287 esac
5288
5289 cat >>confdefs.h <<_ACEOF
5290 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5291 _ACEOF
5292
5293
5294 TARGETS_TO_BUILD=""
5295 # Check whether --enable-targets was given.
5296 if test "${enable_targets+set}" = set; then
5297   enableval=$enable_targets;
5298 else
5299   enableval=all
5300 fi
5301
5302 if test "$enableval" = host-only ; then
5303   enableval=host
5304 fi
5305 case "$enableval" in
5306   all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon SystemZ R600" ;;
5307   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5308       case "$a_target" in
5309         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5310         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5311         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5312         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5313         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5314         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5315         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5316         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5317         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5318         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5319         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5320         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5321         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5322         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5323         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5324         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5325         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5326         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5327         host) case "$llvm_cv_target_arch" in
5328             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5329             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5330             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5331             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5332             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5333             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5334             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5335             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5336             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5337             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5338             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5339             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5340             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5341             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5342 echo "$as_me: error: Can not set target to build" >&2;}
5343    { (exit 1); exit 1; }; } ;;
5344           esac ;;
5345         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5346 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5347    { (exit 1); exit 1; }; } ;;
5348       esac
5349   done
5350   ;;
5351 esac
5352 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5353
5354
5355 # Determine whether we are building LLVM support for the native architecture.
5356 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5357 for a_target in $TARGETS_TO_BUILD; do
5358   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5359
5360 cat >>confdefs.h <<_ACEOF
5361 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5362 _ACEOF
5363
5364     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5365     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5366     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5367     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5368     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5369       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5370     fi
5371     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5372       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5373     fi
5374
5375 cat >>confdefs.h <<_ACEOF
5376 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5377 _ACEOF
5378
5379
5380 cat >>confdefs.h <<_ACEOF
5381 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5382 _ACEOF
5383
5384
5385 cat >>confdefs.h <<_ACEOF
5386 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5387 _ACEOF
5388
5389
5390 cat >>confdefs.h <<_ACEOF
5391 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5392 _ACEOF
5393
5394     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5395
5396 cat >>confdefs.h <<_ACEOF
5397 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5398 _ACEOF
5399
5400     fi
5401     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5402
5403 cat >>confdefs.h <<_ACEOF
5404 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5405 _ACEOF
5406
5407     fi
5408   fi
5409 done
5410
5411 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5412 # target feature def files.
5413 LLVM_ENUM_TARGETS=""
5414 LLVM_ENUM_ASM_PRINTERS=""
5415 LLVM_ENUM_ASM_PARSERS=""
5416 LLVM_ENUM_DISASSEMBLERS=""
5417 for target_to_build in $TARGETS_TO_BUILD; do
5418   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5419   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5420     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5421   fi
5422   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5423     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5424   fi
5425   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5426     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5427   fi
5428 done
5429
5430
5431
5432
5433
5434
5435 # Check whether --with-optimize-option was given.
5436 if test "${with_optimize_option+set}" = set; then
5437   withval=$with_optimize_option;
5438 else
5439   withval=default
5440 fi
5441
5442 { echo "$as_me:$LINENO: checking optimization flags" >&5
5443 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5444 case "$withval" in
5445   default)
5446     case "$llvm_cv_os_type" in
5447     FreeBSD) optimize_option=-O2 ;;
5448     MingW) optimize_option=-O2 ;;
5449     *)     optimize_option=-O3 ;;
5450     esac ;;
5451   *) optimize_option="$withval" ;;
5452 esac
5453 OPTIMIZE_OPTION=$optimize_option
5454
5455 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5456 echo "${ECHO_T}$optimize_option" >&6; }
5457
5458
5459 # Check whether --with-extra-options was given.
5460 if test "${with_extra_options+set}" = set; then
5461   withval=$with_extra_options;
5462 else
5463   withval=default
5464 fi
5465
5466 case "$withval" in
5467   default) EXTRA_OPTIONS= ;;
5468   *) EXTRA_OPTIONS=$withval ;;
5469 esac
5470 EXTRA_OPTIONS=$EXTRA_OPTIONS
5471
5472
5473
5474 # Check whether --with-extra-ld-options was given.
5475 if test "${with_extra_ld_options+set}" = set; then
5476   withval=$with_extra_ld_options;
5477 else
5478   withval=default
5479 fi
5480
5481 case "$withval" in
5482   default) EXTRA_LD_OPTIONS= ;;
5483   *) EXTRA_LD_OPTIONS=$withval ;;
5484 esac
5485 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5486
5487
5488 # Check whether --enable-bindings was given.
5489 if test "${enable_bindings+set}" = set; then
5490   enableval=$enable_bindings;
5491 else
5492   enableval=default
5493 fi
5494
5495 BINDINGS_TO_BUILD=""
5496 case "$enableval" in
5497   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5498   all ) BINDINGS_TO_BUILD="ocaml" ;;
5499   none | no) BINDINGS_TO_BUILD="" ;;
5500   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5501       case "$a_binding" in
5502         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5503         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5504 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5505    { (exit 1); exit 1; }; } ;;
5506       esac
5507   done
5508   ;;
5509 esac
5510
5511
5512 # Check whether --with-ocaml-libdir was given.
5513 if test "${with_ocaml_libdir+set}" = set; then
5514   withval=$with_ocaml_libdir;
5515 else
5516   withval=auto
5517 fi
5518
5519 case "$withval" in
5520   auto) with_ocaml_libdir="$withval" ;;
5521   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5522   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5523 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5524    { (exit 1); exit 1; }; } ;;
5525 esac
5526
5527
5528 # Check whether --with-clang-resource-dir was given.
5529 if test "${with_clang_resource_dir+set}" = set; then
5530   withval=$with_clang_resource_dir;
5531 else
5532   withval=""
5533 fi
5534
5535
5536 cat >>confdefs.h <<_ACEOF
5537 #define CLANG_RESOURCE_DIR "$withval"
5538 _ACEOF
5539
5540
5541
5542 # Check whether --with-c-include-dirs was given.
5543 if test "${with_c_include_dirs+set}" = set; then
5544   withval=$with_c_include_dirs;
5545 else
5546   withval=""
5547 fi
5548
5549
5550 cat >>confdefs.h <<_ACEOF
5551 #define C_INCLUDE_DIRS "$withval"
5552 _ACEOF
5553
5554
5555 # Clang normally uses the system c++ headers and libraries. With this option,
5556 # clang will use the ones provided by a gcc installation instead. This option should
5557 # be passed the same value that was used with --prefix when configuring gcc.
5558
5559 # Check whether --with-gcc-toolchain was given.
5560 if test "${with_gcc_toolchain+set}" = set; then
5561   withval=$with_gcc_toolchain;
5562 else
5563   withval=""
5564 fi
5565
5566
5567 cat >>confdefs.h <<_ACEOF
5568 #define GCC_INSTALL_PREFIX "$withval"
5569 _ACEOF
5570
5571
5572
5573 # Check whether --with-binutils-include was given.
5574 if test "${with_binutils_include+set}" = set; then
5575   withval=$with_binutils_include;
5576 else
5577   withval=default
5578 fi
5579
5580 case "$withval" in
5581   default) WITH_BINUTILS_INCDIR=default ;;
5582   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5583   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5584 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5585    { (exit 1); exit 1; }; } ;;
5586 esac
5587 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5588   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5589
5590   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5591      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5592      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5593 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5594    { (exit 1); exit 1; }; };
5595   fi
5596 fi
5597
5598
5599 # Check whether --with-bug-report-url was given.
5600 if test "${with_bug_report_url+set}" = set; then
5601   withval=$with_bug_report_url;
5602 else
5603   withval="http://llvm.org/bugs/"
5604 fi
5605
5606
5607 cat >>confdefs.h <<_ACEOF
5608 #define BUG_REPORT_URL "$withval"
5609 _ACEOF
5610
5611
5612 # Check whether --enable-libffi was given.
5613 if test "${enable_libffi+set}" = set; then
5614   enableval=$enable_libffi; case "$enableval" in
5615     yes) llvm_cv_enable_libffi="yes" ;;
5616     no)  llvm_cv_enable_libffi="no"  ;;
5617     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5618 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5619    { (exit 1); exit 1; }; } ;;
5620   esac
5621 else
5622   llvm_cv_enable_libffi=no
5623 fi
5624
5625
5626
5627 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5628 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5629 if test "${lt_cv_path_NM+set}" = set; then
5630   echo $ECHO_N "(cached) $ECHO_C" >&6
5631 else
5632   if test -n "$NM"; then
5633   # Let the user override the test.
5634   lt_cv_path_NM="$NM"
5635 else
5636   lt_nm_to_check="${ac_tool_prefix}nm"
5637   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5638     lt_nm_to_check="$lt_nm_to_check nm"
5639   fi
5640   for lt_tmp_nm in $lt_nm_to_check; do
5641     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5642     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5643       IFS="$lt_save_ifs"
5644       test -z "$ac_dir" && ac_dir=.
5645       tmp_nm="$ac_dir/$lt_tmp_nm"
5646       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5647         # Check to see if the nm accepts a BSD-compat flag.
5648         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5649         #   nm: unknown option "B" ignored
5650         # Tru64's nm complains that /dev/null is an invalid object file
5651         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5652         */dev/null* | *'Invalid file or object type'*)
5653           lt_cv_path_NM="$tmp_nm -B"
5654           break
5655           ;;
5656         *)
5657           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5658           */dev/null*)
5659             lt_cv_path_NM="$tmp_nm -p"
5660             break
5661             ;;
5662           *)
5663             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5664             continue # so that we can try to find one that supports BSD flags
5665             ;;
5666           esac
5667           ;;
5668         esac
5669       fi
5670     done
5671     IFS="$lt_save_ifs"
5672   done
5673   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5674 fi
5675 fi
5676 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5677 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5678 NM="$lt_cv_path_NM"
5679
5680
5681
5682 { echo "$as_me:$LINENO: checking for GNU make" >&5
5683 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5684 if test "${llvm_cv_gnu_make_command+set}" = set; then
5685   echo $ECHO_N "(cached) $ECHO_C" >&6
5686 else
5687   llvm_cv_gnu_make_command=''
5688  for a in "$MAKE" make gmake gnumake ; do
5689   if test -z "$a" ; then continue ; fi ;
5690   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5691   then
5692    llvm_cv_gnu_make_command=$a ;
5693    break;
5694   fi
5695  done
5696 fi
5697 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5698 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5699  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5700    ifGNUmake='' ;
5701  else
5702    ifGNUmake='#' ;
5703    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5704 echo "${ECHO_T}\"Not found\"" >&6; };
5705  fi
5706
5707
5708 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5709 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5710 LN_S=$as_ln_s
5711 if test "$LN_S" = "ln -s"; then
5712   { echo "$as_me:$LINENO: result: yes" >&5
5713 echo "${ECHO_T}yes" >&6; }
5714 else
5715   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5716 echo "${ECHO_T}no, using $LN_S" >&6; }
5717 fi
5718
5719 # Extract the first word of "cmp", so it can be a program name with args.
5720 set dummy cmp; ac_word=$2
5721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5723 if test "${ac_cv_path_CMP+set}" = set; then
5724   echo $ECHO_N "(cached) $ECHO_C" >&6
5725 else
5726   case $CMP in
5727   [\\/]* | ?:[\\/]*)
5728   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5729   ;;
5730   *)
5731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732 for as_dir in $PATH
5733 do
5734   IFS=$as_save_IFS
5735   test -z "$as_dir" && as_dir=.
5736   for ac_exec_ext in '' $ac_executable_extensions; do
5737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5738     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5740     break 2
5741   fi
5742 done
5743 done
5744 IFS=$as_save_IFS
5745
5746   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5747   ;;
5748 esac
5749 fi
5750 CMP=$ac_cv_path_CMP
5751 if test -n "$CMP"; then
5752   { echo "$as_me:$LINENO: result: $CMP" >&5
5753 echo "${ECHO_T}$CMP" >&6; }
5754 else
5755   { echo "$as_me:$LINENO: result: no" >&5
5756 echo "${ECHO_T}no" >&6; }
5757 fi
5758
5759
5760 # Extract the first word of "cp", so it can be a program name with args.
5761 set dummy cp; ac_word=$2
5762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5764 if test "${ac_cv_path_CP+set}" = set; then
5765   echo $ECHO_N "(cached) $ECHO_C" >&6
5766 else
5767   case $CP in
5768   [\\/]* | ?:[\\/]*)
5769   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5770   ;;
5771   *)
5772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 for as_dir in $PATH
5774 do
5775   IFS=$as_save_IFS
5776   test -z "$as_dir" && as_dir=.
5777   for ac_exec_ext in '' $ac_executable_extensions; do
5778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5779     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5781     break 2
5782   fi
5783 done
5784 done
5785 IFS=$as_save_IFS
5786
5787   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5788   ;;
5789 esac
5790 fi
5791 CP=$ac_cv_path_CP
5792 if test -n "$CP"; then
5793   { echo "$as_me:$LINENO: result: $CP" >&5
5794 echo "${ECHO_T}$CP" >&6; }
5795 else
5796   { echo "$as_me:$LINENO: result: no" >&5
5797 echo "${ECHO_T}no" >&6; }
5798 fi
5799
5800
5801 # Extract the first word of "date", so it can be a program name with args.
5802 set dummy date; ac_word=$2
5803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5805 if test "${ac_cv_path_DATE+set}" = set; then
5806   echo $ECHO_N "(cached) $ECHO_C" >&6
5807 else
5808   case $DATE in
5809   [\\/]* | ?:[\\/]*)
5810   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5811   ;;
5812   *)
5813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814 for as_dir in $PATH
5815 do
5816   IFS=$as_save_IFS
5817   test -z "$as_dir" && as_dir=.
5818   for ac_exec_ext in '' $ac_executable_extensions; do
5819   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5820     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5822     break 2
5823   fi
5824 done
5825 done
5826 IFS=$as_save_IFS
5827
5828   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5829   ;;
5830 esac
5831 fi
5832 DATE=$ac_cv_path_DATE
5833 if test -n "$DATE"; then
5834   { echo "$as_me:$LINENO: result: $DATE" >&5
5835 echo "${ECHO_T}$DATE" >&6; }
5836 else
5837   { echo "$as_me:$LINENO: result: no" >&5
5838 echo "${ECHO_T}no" >&6; }
5839 fi
5840
5841
5842 # Extract the first word of "find", so it can be a program name with args.
5843 set dummy find; ac_word=$2
5844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5846 if test "${ac_cv_path_FIND+set}" = set; then
5847   echo $ECHO_N "(cached) $ECHO_C" >&6
5848 else
5849   case $FIND in
5850   [\\/]* | ?:[\\/]*)
5851   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5852   ;;
5853   *)
5854   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 for as_dir in $PATH
5856 do
5857   IFS=$as_save_IFS
5858   test -z "$as_dir" && as_dir=.
5859   for ac_exec_ext in '' $ac_executable_extensions; do
5860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5861     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5863     break 2
5864   fi
5865 done
5866 done
5867 IFS=$as_save_IFS
5868
5869   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5870   ;;
5871 esac
5872 fi
5873 FIND=$ac_cv_path_FIND
5874 if test -n "$FIND"; then
5875   { echo "$as_me:$LINENO: result: $FIND" >&5
5876 echo "${ECHO_T}$FIND" >&6; }
5877 else
5878   { echo "$as_me:$LINENO: result: no" >&5
5879 echo "${ECHO_T}no" >&6; }
5880 fi
5881
5882
5883 # Extract the first word of "grep", so it can be a program name with args.
5884 set dummy grep; ac_word=$2
5885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5887 if test "${ac_cv_path_GREP+set}" = set; then
5888   echo $ECHO_N "(cached) $ECHO_C" >&6
5889 else
5890   case $GREP in
5891   [\\/]* | ?:[\\/]*)
5892   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5893   ;;
5894   *)
5895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 for as_dir in $PATH
5897 do
5898   IFS=$as_save_IFS
5899   test -z "$as_dir" && as_dir=.
5900   for ac_exec_ext in '' $ac_executable_extensions; do
5901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5902     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5904     break 2
5905   fi
5906 done
5907 done
5908 IFS=$as_save_IFS
5909
5910   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5911   ;;
5912 esac
5913 fi
5914 GREP=$ac_cv_path_GREP
5915 if test -n "$GREP"; then
5916   { echo "$as_me:$LINENO: result: $GREP" >&5
5917 echo "${ECHO_T}$GREP" >&6; }
5918 else
5919   { echo "$as_me:$LINENO: result: no" >&5
5920 echo "${ECHO_T}no" >&6; }
5921 fi
5922
5923
5924 # Extract the first word of "mkdir", so it can be a program name with args.
5925 set dummy mkdir; ac_word=$2
5926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5928 if test "${ac_cv_path_MKDIR+set}" = set; then
5929   echo $ECHO_N "(cached) $ECHO_C" >&6
5930 else
5931   case $MKDIR in
5932   [\\/]* | ?:[\\/]*)
5933   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5934   ;;
5935   *)
5936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 for as_dir in $PATH
5938 do
5939   IFS=$as_save_IFS
5940   test -z "$as_dir" && as_dir=.
5941   for ac_exec_ext in '' $ac_executable_extensions; do
5942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5943     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5945     break 2
5946   fi
5947 done
5948 done
5949 IFS=$as_save_IFS
5950
5951   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5952   ;;
5953 esac
5954 fi
5955 MKDIR=$ac_cv_path_MKDIR
5956 if test -n "$MKDIR"; then
5957   { echo "$as_me:$LINENO: result: $MKDIR" >&5
5958 echo "${ECHO_T}$MKDIR" >&6; }
5959 else
5960   { echo "$as_me:$LINENO: result: no" >&5
5961 echo "${ECHO_T}no" >&6; }
5962 fi
5963
5964
5965 # Extract the first word of "mv", so it can be a program name with args.
5966 set dummy mv; ac_word=$2
5967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5969 if test "${ac_cv_path_MV+set}" = set; then
5970   echo $ECHO_N "(cached) $ECHO_C" >&6
5971 else
5972   case $MV in
5973   [\\/]* | ?:[\\/]*)
5974   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5975   ;;
5976   *)
5977   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978 for as_dir in $PATH
5979 do
5980   IFS=$as_save_IFS
5981   test -z "$as_dir" && as_dir=.
5982   for ac_exec_ext in '' $ac_executable_extensions; do
5983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5984     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5986     break 2
5987   fi
5988 done
5989 done
5990 IFS=$as_save_IFS
5991
5992   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5993   ;;
5994 esac
5995 fi
5996 MV=$ac_cv_path_MV
5997 if test -n "$MV"; then
5998   { echo "$as_me:$LINENO: result: $MV" >&5
5999 echo "${ECHO_T}$MV" >&6; }
6000 else
6001   { echo "$as_me:$LINENO: result: no" >&5
6002 echo "${ECHO_T}no" >&6; }
6003 fi
6004
6005
6006 if test -n "$ac_tool_prefix"; then
6007   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6008 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6011 if test "${ac_cv_prog_RANLIB+set}" = set; then
6012   echo $ECHO_N "(cached) $ECHO_C" >&6
6013 else
6014   if test -n "$RANLIB"; then
6015   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6016 else
6017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018 for as_dir in $PATH
6019 do
6020   IFS=$as_save_IFS
6021   test -z "$as_dir" && as_dir=.
6022   for ac_exec_ext in '' $ac_executable_extensions; do
6023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6024     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6026     break 2
6027   fi
6028 done
6029 done
6030 IFS=$as_save_IFS
6031
6032 fi
6033 fi
6034 RANLIB=$ac_cv_prog_RANLIB
6035 if test -n "$RANLIB"; then
6036   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6037 echo "${ECHO_T}$RANLIB" >&6; }
6038 else
6039   { echo "$as_me:$LINENO: result: no" >&5
6040 echo "${ECHO_T}no" >&6; }
6041 fi
6042
6043
6044 fi
6045 if test -z "$ac_cv_prog_RANLIB"; then
6046   ac_ct_RANLIB=$RANLIB
6047   # Extract the first word of "ranlib", so it can be a program name with args.
6048 set dummy ranlib; ac_word=$2
6049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6051 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6052   echo $ECHO_N "(cached) $ECHO_C" >&6
6053 else
6054   if test -n "$ac_ct_RANLIB"; then
6055   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6056 else
6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058 for as_dir in $PATH
6059 do
6060   IFS=$as_save_IFS
6061   test -z "$as_dir" && as_dir=.
6062   for ac_exec_ext in '' $ac_executable_extensions; do
6063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6064     ac_cv_prog_ac_ct_RANLIB="ranlib"
6065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6066     break 2
6067   fi
6068 done
6069 done
6070 IFS=$as_save_IFS
6071
6072 fi
6073 fi
6074 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6075 if test -n "$ac_ct_RANLIB"; then
6076   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6077 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6078 else
6079   { echo "$as_me:$LINENO: result: no" >&5
6080 echo "${ECHO_T}no" >&6; }
6081 fi
6082
6083   if test "x$ac_ct_RANLIB" = x; then
6084     RANLIB=":"
6085   else
6086     case $cross_compiling:$ac_tool_warned in
6087 yes:)
6088 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6089 whose name does not start with the host triplet.  If you think this
6090 configuration is useful to you, please write to autoconf@gnu.org." >&5
6091 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6092 whose name does not start with the host triplet.  If you think this
6093 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6094 ac_tool_warned=yes ;;
6095 esac
6096     RANLIB=$ac_ct_RANLIB
6097   fi
6098 else
6099   RANLIB="$ac_cv_prog_RANLIB"
6100 fi
6101
6102 if test -n "$ac_tool_prefix"; then
6103   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6104 set dummy ${ac_tool_prefix}ar; ac_word=$2
6105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6107 if test "${ac_cv_prog_AR+set}" = set; then
6108   echo $ECHO_N "(cached) $ECHO_C" >&6
6109 else
6110   if test -n "$AR"; then
6111   ac_cv_prog_AR="$AR" # Let the user override the test.
6112 else
6113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114 for as_dir in $PATH
6115 do
6116   IFS=$as_save_IFS
6117   test -z "$as_dir" && as_dir=.
6118   for ac_exec_ext in '' $ac_executable_extensions; do
6119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6120     ac_cv_prog_AR="${ac_tool_prefix}ar"
6121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6122     break 2
6123   fi
6124 done
6125 done
6126 IFS=$as_save_IFS
6127
6128 fi
6129 fi
6130 AR=$ac_cv_prog_AR
6131 if test -n "$AR"; then
6132   { echo "$as_me:$LINENO: result: $AR" >&5
6133 echo "${ECHO_T}$AR" >&6; }
6134 else
6135   { echo "$as_me:$LINENO: result: no" >&5
6136 echo "${ECHO_T}no" >&6; }
6137 fi
6138
6139
6140 fi
6141 if test -z "$ac_cv_prog_AR"; then
6142   ac_ct_AR=$AR
6143   # Extract the first word of "ar", so it can be a program name with args.
6144 set dummy ar; ac_word=$2
6145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6147 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6148   echo $ECHO_N "(cached) $ECHO_C" >&6
6149 else
6150   if test -n "$ac_ct_AR"; then
6151   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6152 else
6153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154 for as_dir in $PATH
6155 do
6156   IFS=$as_save_IFS
6157   test -z "$as_dir" && as_dir=.
6158   for ac_exec_ext in '' $ac_executable_extensions; do
6159   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6160     ac_cv_prog_ac_ct_AR="ar"
6161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6162     break 2
6163   fi
6164 done
6165 done
6166 IFS=$as_save_IFS
6167
6168 fi
6169 fi
6170 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6171 if test -n "$ac_ct_AR"; then
6172   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6173 echo "${ECHO_T}$ac_ct_AR" >&6; }
6174 else
6175   { echo "$as_me:$LINENO: result: no" >&5
6176 echo "${ECHO_T}no" >&6; }
6177 fi
6178
6179   if test "x$ac_ct_AR" = x; then
6180     AR="false"
6181   else
6182     case $cross_compiling:$ac_tool_warned in
6183 yes:)
6184 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6185 whose name does not start with the host triplet.  If you think this
6186 configuration is useful to you, please write to autoconf@gnu.org." >&5
6187 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6188 whose name does not start with the host triplet.  If you think this
6189 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6190 ac_tool_warned=yes ;;
6191 esac
6192     AR=$ac_ct_AR
6193   fi
6194 else
6195   AR="$ac_cv_prog_AR"
6196 fi
6197
6198 # Extract the first word of "rm", so it can be a program name with args.
6199 set dummy rm; ac_word=$2
6200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6202 if test "${ac_cv_path_RM+set}" = set; then
6203   echo $ECHO_N "(cached) $ECHO_C" >&6
6204 else
6205   case $RM in
6206   [\\/]* | ?:[\\/]*)
6207   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6208   ;;
6209   *)
6210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211 for as_dir in $PATH
6212 do
6213   IFS=$as_save_IFS
6214   test -z "$as_dir" && as_dir=.
6215   for ac_exec_ext in '' $ac_executable_extensions; do
6216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6217     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6219     break 2
6220   fi
6221 done
6222 done
6223 IFS=$as_save_IFS
6224
6225   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6226   ;;
6227 esac
6228 fi
6229 RM=$ac_cv_path_RM
6230 if test -n "$RM"; then
6231   { echo "$as_me:$LINENO: result: $RM" >&5
6232 echo "${ECHO_T}$RM" >&6; }
6233 else
6234   { echo "$as_me:$LINENO: result: no" >&5
6235 echo "${ECHO_T}no" >&6; }
6236 fi
6237
6238
6239 # Extract the first word of "sed", so it can be a program name with args.
6240 set dummy sed; ac_word=$2
6241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6243 if test "${ac_cv_path_SED+set}" = set; then
6244   echo $ECHO_N "(cached) $ECHO_C" >&6
6245 else
6246   case $SED in
6247   [\\/]* | ?:[\\/]*)
6248   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6249   ;;
6250   *)
6251   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252 for as_dir in $PATH
6253 do
6254   IFS=$as_save_IFS
6255   test -z "$as_dir" && as_dir=.
6256   for ac_exec_ext in '' $ac_executable_extensions; do
6257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6258     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6260     break 2
6261   fi
6262 done
6263 done
6264 IFS=$as_save_IFS
6265
6266   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6267   ;;
6268 esac
6269 fi
6270 SED=$ac_cv_path_SED
6271 if test -n "$SED"; then
6272   { echo "$as_me:$LINENO: result: $SED" >&5
6273 echo "${ECHO_T}$SED" >&6; }
6274 else
6275   { echo "$as_me:$LINENO: result: no" >&5
6276 echo "${ECHO_T}no" >&6; }
6277 fi
6278
6279
6280 # Extract the first word of "tar", so it can be a program name with args.
6281 set dummy tar; ac_word=$2
6282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6284 if test "${ac_cv_path_TAR+set}" = set; then
6285   echo $ECHO_N "(cached) $ECHO_C" >&6
6286 else
6287   case $TAR in
6288   [\\/]* | ?:[\\/]*)
6289   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6290   ;;
6291   *)
6292   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293 for as_dir in $PATH
6294 do
6295   IFS=$as_save_IFS
6296   test -z "$as_dir" && as_dir=.
6297   for ac_exec_ext in '' $ac_executable_extensions; do
6298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6299     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6301     break 2
6302   fi
6303 done
6304 done
6305 IFS=$as_save_IFS
6306
6307   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6308   ;;
6309 esac
6310 fi
6311 TAR=$ac_cv_path_TAR
6312 if test -n "$TAR"; then
6313   { echo "$as_me:$LINENO: result: $TAR" >&5
6314 echo "${ECHO_T}$TAR" >&6; }
6315 else
6316   { echo "$as_me:$LINENO: result: no" >&5
6317 echo "${ECHO_T}no" >&6; }
6318 fi
6319
6320
6321 # Extract the first word of "pwd", so it can be a program name with args.
6322 set dummy pwd; ac_word=$2
6323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6325 if test "${ac_cv_path_BINPWD+set}" = set; then
6326   echo $ECHO_N "(cached) $ECHO_C" >&6
6327 else
6328   case $BINPWD in
6329   [\\/]* | ?:[\\/]*)
6330   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6331   ;;
6332   *)
6333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 for as_dir in $PATH
6335 do
6336   IFS=$as_save_IFS
6337   test -z "$as_dir" && as_dir=.
6338   for ac_exec_ext in '' $ac_executable_extensions; do
6339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6340     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6342     break 2
6343   fi
6344 done
6345 done
6346 IFS=$as_save_IFS
6347
6348   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6349   ;;
6350 esac
6351 fi
6352 BINPWD=$ac_cv_path_BINPWD
6353 if test -n "$BINPWD"; then
6354   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6355 echo "${ECHO_T}$BINPWD" >&6; }
6356 else
6357   { echo "$as_me:$LINENO: result: no" >&5
6358 echo "${ECHO_T}no" >&6; }
6359 fi
6360
6361
6362
6363 # Extract the first word of "Graphviz", so it can be a program name with args.
6364 set dummy Graphviz; ac_word=$2
6365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6367 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6368   echo $ECHO_N "(cached) $ECHO_C" >&6
6369 else
6370   case $GRAPHVIZ in
6371   [\\/]* | ?:[\\/]*)
6372   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6373   ;;
6374   *)
6375   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376 for as_dir in $PATH
6377 do
6378   IFS=$as_save_IFS
6379   test -z "$as_dir" && as_dir=.
6380   for ac_exec_ext in '' $ac_executable_extensions; do
6381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6382     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6384     break 2
6385   fi
6386 done
6387 done
6388 IFS=$as_save_IFS
6389
6390   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6391   ;;
6392 esac
6393 fi
6394 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6395 if test -n "$GRAPHVIZ"; then
6396   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6397 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6398 else
6399   { echo "$as_me:$LINENO: result: no" >&5
6400 echo "${ECHO_T}no" >&6; }
6401 fi
6402
6403
6404 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6405
6406 cat >>confdefs.h <<\_ACEOF
6407 #define HAVE_GRAPHVIZ 1
6408 _ACEOF
6409
6410     if test "$llvm_cv_os_type" = "MingW" ; then
6411     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6412   fi
6413
6414 cat >>confdefs.h <<_ACEOF
6415 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6416 _ACEOF
6417
6418 fi
6419 # Extract the first word of "dot", so it can be a program name with args.
6420 set dummy dot; ac_word=$2
6421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6423 if test "${ac_cv_path_DOT+set}" = set; then
6424   echo $ECHO_N "(cached) $ECHO_C" >&6
6425 else
6426   case $DOT in
6427   [\\/]* | ?:[\\/]*)
6428   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6429   ;;
6430   *)
6431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432 for as_dir in $PATH
6433 do
6434   IFS=$as_save_IFS
6435   test -z "$as_dir" && as_dir=.
6436   for ac_exec_ext in '' $ac_executable_extensions; do
6437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6438     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6440     break 2
6441   fi
6442 done
6443 done
6444 IFS=$as_save_IFS
6445
6446   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6447   ;;
6448 esac
6449 fi
6450 DOT=$ac_cv_path_DOT
6451 if test -n "$DOT"; then
6452   { echo "$as_me:$LINENO: result: $DOT" >&5
6453 echo "${ECHO_T}$DOT" >&6; }
6454 else
6455   { echo "$as_me:$LINENO: result: no" >&5
6456 echo "${ECHO_T}no" >&6; }
6457 fi
6458
6459
6460 if test "$DOT" != "echo dot" ; then
6461
6462 cat >>confdefs.h <<\_ACEOF
6463 #define HAVE_DOT 1
6464 _ACEOF
6465
6466     if test "$llvm_cv_os_type" = "MingW" ; then
6467     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6468   fi
6469
6470 cat >>confdefs.h <<_ACEOF
6471 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6472 _ACEOF
6473
6474 fi
6475 # Extract the first word of "fdp", so it can be a program name with args.
6476 set dummy fdp; ac_word=$2
6477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6479 if test "${ac_cv_path_FDP+set}" = set; then
6480   echo $ECHO_N "(cached) $ECHO_C" >&6
6481 else
6482   case $FDP in
6483   [\\/]* | ?:[\\/]*)
6484   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6485   ;;
6486   *)
6487   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 for as_dir in $PATH
6489 do
6490   IFS=$as_save_IFS
6491   test -z "$as_dir" && as_dir=.
6492   for ac_exec_ext in '' $ac_executable_extensions; do
6493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6494     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6495     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6496     break 2
6497   fi
6498 done
6499 done
6500 IFS=$as_save_IFS
6501
6502   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6503   ;;
6504 esac
6505 fi
6506 FDP=$ac_cv_path_FDP
6507 if test -n "$FDP"; then
6508   { echo "$as_me:$LINENO: result: $FDP" >&5
6509 echo "${ECHO_T}$FDP" >&6; }
6510 else
6511   { echo "$as_me:$LINENO: result: no" >&5
6512 echo "${ECHO_T}no" >&6; }
6513 fi
6514
6515
6516 if test "$FDP" != "echo fdp" ; then
6517
6518 cat >>confdefs.h <<\_ACEOF
6519 #define HAVE_FDP 1
6520 _ACEOF
6521
6522     if test "$llvm_cv_os_type" = "MingW" ; then
6523     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6524   fi
6525
6526 cat >>confdefs.h <<_ACEOF
6527 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6528 _ACEOF
6529
6530 fi
6531 # Extract the first word of "neato", so it can be a program name with args.
6532 set dummy neato; ac_word=$2
6533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6535 if test "${ac_cv_path_NEATO+set}" = set; then
6536   echo $ECHO_N "(cached) $ECHO_C" >&6
6537 else
6538   case $NEATO in
6539   [\\/]* | ?:[\\/]*)
6540   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6541   ;;
6542   *)
6543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544 for as_dir in $PATH
6545 do
6546   IFS=$as_save_IFS
6547   test -z "$as_dir" && as_dir=.
6548   for ac_exec_ext in '' $ac_executable_extensions; do
6549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6550     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6552     break 2
6553   fi
6554 done
6555 done
6556 IFS=$as_save_IFS
6557
6558   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6559   ;;
6560 esac
6561 fi
6562 NEATO=$ac_cv_path_NEATO
6563 if test -n "$NEATO"; then
6564   { echo "$as_me:$LINENO: result: $NEATO" >&5
6565 echo "${ECHO_T}$NEATO" >&6; }
6566 else
6567   { echo "$as_me:$LINENO: result: no" >&5
6568 echo "${ECHO_T}no" >&6; }
6569 fi
6570
6571
6572 if test "$NEATO" != "echo neato" ; then
6573
6574 cat >>confdefs.h <<\_ACEOF
6575 #define HAVE_NEATO 1
6576 _ACEOF
6577
6578     if test "$llvm_cv_os_type" = "MingW" ; then
6579     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6580   fi
6581
6582 cat >>confdefs.h <<_ACEOF
6583 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6584 _ACEOF
6585
6586 fi
6587 # Extract the first word of "twopi", so it can be a program name with args.
6588 set dummy twopi; ac_word=$2
6589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6591 if test "${ac_cv_path_TWOPI+set}" = set; then
6592   echo $ECHO_N "(cached) $ECHO_C" >&6
6593 else
6594   case $TWOPI in
6595   [\\/]* | ?:[\\/]*)
6596   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6597   ;;
6598   *)
6599   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600 for as_dir in $PATH
6601 do
6602   IFS=$as_save_IFS
6603   test -z "$as_dir" && as_dir=.
6604   for ac_exec_ext in '' $ac_executable_extensions; do
6605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6606     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6608     break 2
6609   fi
6610 done
6611 done
6612 IFS=$as_save_IFS
6613
6614   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6615   ;;
6616 esac
6617 fi
6618 TWOPI=$ac_cv_path_TWOPI
6619 if test -n "$TWOPI"; then
6620   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6621 echo "${ECHO_T}$TWOPI" >&6; }
6622 else
6623   { echo "$as_me:$LINENO: result: no" >&5
6624 echo "${ECHO_T}no" >&6; }
6625 fi
6626
6627
6628 if test "$TWOPI" != "echo twopi" ; then
6629
6630 cat >>confdefs.h <<\_ACEOF
6631 #define HAVE_TWOPI 1
6632 _ACEOF
6633
6634     if test "$llvm_cv_os_type" = "MingW" ; then
6635     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6636   fi
6637
6638 cat >>confdefs.h <<_ACEOF
6639 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6640 _ACEOF
6641
6642 fi
6643 # Extract the first word of "circo", so it can be a program name with args.
6644 set dummy circo; ac_word=$2
6645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6647 if test "${ac_cv_path_CIRCO+set}" = set; then
6648   echo $ECHO_N "(cached) $ECHO_C" >&6
6649 else
6650   case $CIRCO in
6651   [\\/]* | ?:[\\/]*)
6652   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6653   ;;
6654   *)
6655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656 for as_dir in $PATH
6657 do
6658   IFS=$as_save_IFS
6659   test -z "$as_dir" && as_dir=.
6660   for ac_exec_ext in '' $ac_executable_extensions; do
6661   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6662     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6663     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6664     break 2
6665   fi
6666 done
6667 done
6668 IFS=$as_save_IFS
6669
6670   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6671   ;;
6672 esac
6673 fi
6674 CIRCO=$ac_cv_path_CIRCO
6675 if test -n "$CIRCO"; then
6676   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6677 echo "${ECHO_T}$CIRCO" >&6; }
6678 else
6679   { echo "$as_me:$LINENO: result: no" >&5
6680 echo "${ECHO_T}no" >&6; }
6681 fi
6682
6683
6684 if test "$CIRCO" != "echo circo" ; then
6685
6686 cat >>confdefs.h <<\_ACEOF
6687 #define HAVE_CIRCO 1
6688 _ACEOF
6689
6690     if test "$llvm_cv_os_type" = "MingW" ; then
6691     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6692   fi
6693
6694 cat >>confdefs.h <<_ACEOF
6695 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6696 _ACEOF
6697
6698 fi
6699 for ac_prog in gv gsview32
6700 do
6701   # Extract the first word of "$ac_prog", so it can be a program name with args.
6702 set dummy $ac_prog; ac_word=$2
6703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6705 if test "${ac_cv_path_GV+set}" = set; then
6706   echo $ECHO_N "(cached) $ECHO_C" >&6
6707 else
6708   case $GV in
6709   [\\/]* | ?:[\\/]*)
6710   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6711   ;;
6712   *)
6713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714 for as_dir in $PATH
6715 do
6716   IFS=$as_save_IFS
6717   test -z "$as_dir" && as_dir=.
6718   for ac_exec_ext in '' $ac_executable_extensions; do
6719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6720     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6722     break 2
6723   fi
6724 done
6725 done
6726 IFS=$as_save_IFS
6727
6728   ;;
6729 esac
6730 fi
6731 GV=$ac_cv_path_GV
6732 if test -n "$GV"; then
6733   { echo "$as_me:$LINENO: result: $GV" >&5
6734 echo "${ECHO_T}$GV" >&6; }
6735 else
6736   { echo "$as_me:$LINENO: result: no" >&5
6737 echo "${ECHO_T}no" >&6; }
6738 fi
6739
6740
6741   test -n "$GV" && break
6742 done
6743 test -n "$GV" || GV="echo gv"
6744
6745 if test "$GV" != "echo gv" ; then
6746
6747 cat >>confdefs.h <<\_ACEOF
6748 #define HAVE_GV 1
6749 _ACEOF
6750
6751     if test "$llvm_cv_os_type" = "MingW" ; then
6752     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6753   fi
6754
6755 cat >>confdefs.h <<_ACEOF
6756 #define LLVM_PATH_GV "$GV${EXEEXT}"
6757 _ACEOF
6758
6759 fi
6760 # Extract the first word of "dotty", so it can be a program name with args.
6761 set dummy dotty; ac_word=$2
6762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6764 if test "${ac_cv_path_DOTTY+set}" = set; then
6765   echo $ECHO_N "(cached) $ECHO_C" >&6
6766 else
6767   case $DOTTY in
6768   [\\/]* | ?:[\\/]*)
6769   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6770   ;;
6771   *)
6772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 for as_dir in $PATH
6774 do
6775   IFS=$as_save_IFS
6776   test -z "$as_dir" && as_dir=.
6777   for ac_exec_ext in '' $ac_executable_extensions; do
6778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6779     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6781     break 2
6782   fi
6783 done
6784 done
6785 IFS=$as_save_IFS
6786
6787   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6788   ;;
6789 esac
6790 fi
6791 DOTTY=$ac_cv_path_DOTTY
6792 if test -n "$DOTTY"; then
6793   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6794 echo "${ECHO_T}$DOTTY" >&6; }
6795 else
6796   { echo "$as_me:$LINENO: result: no" >&5
6797 echo "${ECHO_T}no" >&6; }
6798 fi
6799
6800
6801 if test "$DOTTY" != "echo dotty" ; then
6802
6803 cat >>confdefs.h <<\_ACEOF
6804 #define HAVE_DOTTY 1
6805 _ACEOF
6806
6807     if test "$llvm_cv_os_type" = "MingW" ; then
6808     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6809   fi
6810
6811 cat >>confdefs.h <<_ACEOF
6812 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6813 _ACEOF
6814
6815 fi
6816 # Extract the first word of "xdot.py", so it can be a program name with args.
6817 set dummy xdot.py; ac_word=$2
6818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6820 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6821   echo $ECHO_N "(cached) $ECHO_C" >&6
6822 else
6823   case $XDOT_PY in
6824   [\\/]* | ?:[\\/]*)
6825   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6826   ;;
6827   *)
6828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829 for as_dir in $PATH
6830 do
6831   IFS=$as_save_IFS
6832   test -z "$as_dir" && as_dir=.
6833   for ac_exec_ext in '' $ac_executable_extensions; do
6834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6835     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6837     break 2
6838   fi
6839 done
6840 done
6841 IFS=$as_save_IFS
6842
6843   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6844   ;;
6845 esac
6846 fi
6847 XDOT_PY=$ac_cv_path_XDOT_PY
6848 if test -n "$XDOT_PY"; then
6849   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6850 echo "${ECHO_T}$XDOT_PY" >&6; }
6851 else
6852   { echo "$as_me:$LINENO: result: no" >&5
6853 echo "${ECHO_T}no" >&6; }
6854 fi
6855
6856
6857 if test "$XDOT_PY" != "echo xdot.py" ; then
6858
6859 cat >>confdefs.h <<\_ACEOF
6860 #define HAVE_XDOT_PY 1
6861 _ACEOF
6862
6863     if test "$llvm_cv_os_type" = "MingW" ; then
6864     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6865   fi
6866
6867 cat >>confdefs.h <<_ACEOF
6868 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6869 _ACEOF
6870
6871 fi
6872
6873 # Find a good install program.  We prefer a C program (faster),
6874 # so one script is as good as another.  But avoid the broken or
6875 # incompatible versions:
6876 # SysV /etc/install, /usr/sbin/install
6877 # SunOS /usr/etc/install
6878 # IRIX /sbin/install
6879 # AIX /bin/install
6880 # AmigaOS /C/install, which installs bootblocks on floppy discs
6881 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6882 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6883 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6884 # OS/2's system install, which has a completely different semantic
6885 # ./install, which can be erroneously created by make from ./install.sh.
6886 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6887 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6888 if test -z "$INSTALL"; then
6889 if test "${ac_cv_path_install+set}" = set; then
6890   echo $ECHO_N "(cached) $ECHO_C" >&6
6891 else
6892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893 for as_dir in $PATH
6894 do
6895   IFS=$as_save_IFS
6896   test -z "$as_dir" && as_dir=.
6897   # Account for people who put trailing slashes in PATH elements.
6898 case $as_dir/ in
6899   ./ | .// | /cC/* | \
6900   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6901   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6902   /usr/ucb/* ) ;;
6903   *)
6904     # OSF1 and SCO ODT 3.0 have their own names for install.
6905     # Don't use installbsd from OSF since it installs stuff as root
6906     # by default.
6907     for ac_prog in ginstall scoinst install; do
6908       for ac_exec_ext in '' $ac_executable_extensions; do
6909         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6910           if test $ac_prog = install &&
6911             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6912             # AIX install.  It has an incompatible calling convention.
6913             :
6914           elif test $ac_prog = install &&
6915             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6916             # program-specific install script used by HP pwplus--don't use.
6917             :
6918           else
6919             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6920             break 3
6921           fi
6922         fi
6923       done
6924     done
6925     ;;
6926 esac
6927 done
6928 IFS=$as_save_IFS
6929
6930
6931 fi
6932   if test "${ac_cv_path_install+set}" = set; then
6933     INSTALL=$ac_cv_path_install
6934   else
6935     # As a last resort, use the slow shell script.  Don't cache a
6936     # value for INSTALL within a source directory, because that will
6937     # break other packages using the cache if that directory is
6938     # removed, or if the value is a relative name.
6939     INSTALL=$ac_install_sh
6940   fi
6941 fi
6942 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6943 echo "${ECHO_T}$INSTALL" >&6; }
6944
6945 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6946 # It thinks the first close brace ends the variable substitution.
6947 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6948
6949 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6950
6951 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6952
6953 case "$INSTALL" in
6954  [\\/$]* | ?:[\\/]* ) ;;
6955  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6956 esac
6957
6958 # Extract the first word of "bzip2", so it can be a program name with args.
6959 set dummy bzip2; ac_word=$2
6960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6962 if test "${ac_cv_path_BZIP2+set}" = set; then
6963   echo $ECHO_N "(cached) $ECHO_C" >&6
6964 else
6965   case $BZIP2 in
6966   [\\/]* | ?:[\\/]*)
6967   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6968   ;;
6969   *)
6970   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971 for as_dir in $PATH
6972 do
6973   IFS=$as_save_IFS
6974   test -z "$as_dir" && as_dir=.
6975   for ac_exec_ext in '' $ac_executable_extensions; do
6976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6977     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6979     break 2
6980   fi
6981 done
6982 done
6983 IFS=$as_save_IFS
6984
6985   ;;
6986 esac
6987 fi
6988 BZIP2=$ac_cv_path_BZIP2
6989 if test -n "$BZIP2"; then
6990   { echo "$as_me:$LINENO: result: $BZIP2" >&5
6991 echo "${ECHO_T}$BZIP2" >&6; }
6992 else
6993   { echo "$as_me:$LINENO: result: no" >&5
6994 echo "${ECHO_T}no" >&6; }
6995 fi
6996
6997
6998 # Extract the first word of "cat", so it can be a program name with args.
6999 set dummy cat; ac_word=$2
7000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7002 if test "${ac_cv_path_CAT+set}" = set; then
7003   echo $ECHO_N "(cached) $ECHO_C" >&6
7004 else
7005   case $CAT in
7006   [\\/]* | ?:[\\/]*)
7007   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7008   ;;
7009   *)
7010   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011 for as_dir in $PATH
7012 do
7013   IFS=$as_save_IFS
7014   test -z "$as_dir" && as_dir=.
7015   for ac_exec_ext in '' $ac_executable_extensions; do
7016   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7017     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7018     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7019     break 2
7020   fi
7021 done
7022 done
7023 IFS=$as_save_IFS
7024
7025   ;;
7026 esac
7027 fi
7028 CAT=$ac_cv_path_CAT
7029 if test -n "$CAT"; then
7030   { echo "$as_me:$LINENO: result: $CAT" >&5
7031 echo "${ECHO_T}$CAT" >&6; }
7032 else
7033   { echo "$as_me:$LINENO: result: no" >&5
7034 echo "${ECHO_T}no" >&6; }
7035 fi
7036
7037
7038 # Extract the first word of "doxygen", so it can be a program name with args.
7039 set dummy doxygen; ac_word=$2
7040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7042 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7043   echo $ECHO_N "(cached) $ECHO_C" >&6
7044 else
7045   case $DOXYGEN in
7046   [\\/]* | ?:[\\/]*)
7047   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7048   ;;
7049   *)
7050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051 for as_dir in $PATH
7052 do
7053   IFS=$as_save_IFS
7054   test -z "$as_dir" && as_dir=.
7055   for ac_exec_ext in '' $ac_executable_extensions; do
7056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7057     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7059     break 2
7060   fi
7061 done
7062 done
7063 IFS=$as_save_IFS
7064
7065   ;;
7066 esac
7067 fi
7068 DOXYGEN=$ac_cv_path_DOXYGEN
7069 if test -n "$DOXYGEN"; then
7070   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7071 echo "${ECHO_T}$DOXYGEN" >&6; }
7072 else
7073   { echo "$as_me:$LINENO: result: no" >&5
7074 echo "${ECHO_T}no" >&6; }
7075 fi
7076
7077
7078 # Extract the first word of "groff", so it can be a program name with args.
7079 set dummy groff; ac_word=$2
7080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7082 if test "${ac_cv_path_GROFF+set}" = set; then
7083   echo $ECHO_N "(cached) $ECHO_C" >&6
7084 else
7085   case $GROFF in
7086   [\\/]* | ?:[\\/]*)
7087   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7088   ;;
7089   *)
7090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091 for as_dir in $PATH
7092 do
7093   IFS=$as_save_IFS
7094   test -z "$as_dir" && as_dir=.
7095   for ac_exec_ext in '' $ac_executable_extensions; do
7096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7097     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7098     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7099     break 2
7100   fi
7101 done
7102 done
7103 IFS=$as_save_IFS
7104
7105   ;;
7106 esac
7107 fi
7108 GROFF=$ac_cv_path_GROFF
7109 if test -n "$GROFF"; then
7110   { echo "$as_me:$LINENO: result: $GROFF" >&5
7111 echo "${ECHO_T}$GROFF" >&6; }
7112 else
7113   { echo "$as_me:$LINENO: result: no" >&5
7114 echo "${ECHO_T}no" >&6; }
7115 fi
7116
7117
7118 # Extract the first word of "gzip", so it can be a program name with args.
7119 set dummy gzip; ac_word=$2
7120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7122 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7123   echo $ECHO_N "(cached) $ECHO_C" >&6
7124 else
7125   case $GZIPBIN in
7126   [\\/]* | ?:[\\/]*)
7127   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7128   ;;
7129   *)
7130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131 for as_dir in $PATH
7132 do
7133   IFS=$as_save_IFS
7134   test -z "$as_dir" && as_dir=.
7135   for ac_exec_ext in '' $ac_executable_extensions; do
7136   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7137     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7138     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7139     break 2
7140   fi
7141 done
7142 done
7143 IFS=$as_save_IFS
7144
7145   ;;
7146 esac
7147 fi
7148 GZIPBIN=$ac_cv_path_GZIPBIN
7149 if test -n "$GZIPBIN"; then
7150   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7151 echo "${ECHO_T}$GZIPBIN" >&6; }
7152 else
7153   { echo "$as_me:$LINENO: result: no" >&5
7154 echo "${ECHO_T}no" >&6; }
7155 fi
7156
7157
7158 # Extract the first word of "pod2html", so it can be a program name with args.
7159 set dummy pod2html; ac_word=$2
7160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7162 if test "${ac_cv_path_POD2HTML+set}" = set; then
7163   echo $ECHO_N "(cached) $ECHO_C" >&6
7164 else
7165   case $POD2HTML in
7166   [\\/]* | ?:[\\/]*)
7167   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7168   ;;
7169   *)
7170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 for as_dir in $PATH
7172 do
7173   IFS=$as_save_IFS
7174   test -z "$as_dir" && as_dir=.
7175   for ac_exec_ext in '' $ac_executable_extensions; do
7176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7177     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7178     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7179     break 2
7180   fi
7181 done
7182 done
7183 IFS=$as_save_IFS
7184
7185   ;;
7186 esac
7187 fi
7188 POD2HTML=$ac_cv_path_POD2HTML
7189 if test -n "$POD2HTML"; then
7190   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7191 echo "${ECHO_T}$POD2HTML" >&6; }
7192 else
7193   { echo "$as_me:$LINENO: result: no" >&5
7194 echo "${ECHO_T}no" >&6; }
7195 fi
7196
7197
7198 # Extract the first word of "pod2man", so it can be a program name with args.
7199 set dummy pod2man; ac_word=$2
7200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7202 if test "${ac_cv_path_POD2MAN+set}" = set; then
7203   echo $ECHO_N "(cached) $ECHO_C" >&6
7204 else
7205   case $POD2MAN in
7206   [\\/]* | ?:[\\/]*)
7207   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7208   ;;
7209   *)
7210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211 for as_dir in $PATH
7212 do
7213   IFS=$as_save_IFS
7214   test -z "$as_dir" && as_dir=.
7215   for ac_exec_ext in '' $ac_executable_extensions; do
7216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7217     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7219     break 2
7220   fi
7221 done
7222 done
7223 IFS=$as_save_IFS
7224
7225   ;;
7226 esac
7227 fi
7228 POD2MAN=$ac_cv_path_POD2MAN
7229 if test -n "$POD2MAN"; then
7230   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7231 echo "${ECHO_T}$POD2MAN" >&6; }
7232 else
7233   { echo "$as_me:$LINENO: result: no" >&5
7234 echo "${ECHO_T}no" >&6; }
7235 fi
7236
7237
7238 # Extract the first word of "pdfroff", so it can be a program name with args.
7239 set dummy pdfroff; ac_word=$2
7240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7242 if test "${ac_cv_path_PDFROFF+set}" = set; then
7243   echo $ECHO_N "(cached) $ECHO_C" >&6
7244 else
7245   case $PDFROFF in
7246   [\\/]* | ?:[\\/]*)
7247   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7248   ;;
7249   *)
7250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 for as_dir in $PATH
7252 do
7253   IFS=$as_save_IFS
7254   test -z "$as_dir" && as_dir=.
7255   for ac_exec_ext in '' $ac_executable_extensions; do
7256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7257     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7259     break 2
7260   fi
7261 done
7262 done
7263 IFS=$as_save_IFS
7264
7265   ;;
7266 esac
7267 fi
7268 PDFROFF=$ac_cv_path_PDFROFF
7269 if test -n "$PDFROFF"; then
7270   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7271 echo "${ECHO_T}$PDFROFF" >&6; }
7272 else
7273   { echo "$as_me:$LINENO: result: no" >&5
7274 echo "${ECHO_T}no" >&6; }
7275 fi
7276
7277
7278 # Extract the first word of "runtest", so it can be a program name with args.
7279 set dummy runtest; ac_word=$2
7280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7282 if test "${ac_cv_path_RUNTEST+set}" = set; then
7283   echo $ECHO_N "(cached) $ECHO_C" >&6
7284 else
7285   case $RUNTEST in
7286   [\\/]* | ?:[\\/]*)
7287   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7288   ;;
7289   *)
7290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 for as_dir in $PATH
7292 do
7293   IFS=$as_save_IFS
7294   test -z "$as_dir" && as_dir=.
7295   for ac_exec_ext in '' $ac_executable_extensions; do
7296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7297     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7298     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7299     break 2
7300   fi
7301 done
7302 done
7303 IFS=$as_save_IFS
7304
7305   ;;
7306 esac
7307 fi
7308 RUNTEST=$ac_cv_path_RUNTEST
7309 if test -n "$RUNTEST"; then
7310   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7311 echo "${ECHO_T}$RUNTEST" >&6; }
7312 else
7313   { echo "$as_me:$LINENO: result: no" >&5
7314 echo "${ECHO_T}no" >&6; }
7315 fi
7316
7317
7318
7319 no_itcl=true
7320 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7321 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7322
7323 # Check whether --with-tclinclude was given.
7324 if test "${with_tclinclude+set}" = set; then
7325   withval=$with_tclinclude; with_tclinclude=${withval}
7326 else
7327   with_tclinclude=''
7328 fi
7329
7330 if test "${ac_cv_path_tclsh+set}" = set; then
7331   echo $ECHO_N "(cached) $ECHO_C" >&6
7332 else
7333
7334 if test x"${with_tclinclude}" != x ; then
7335   if test -f ${with_tclinclude}/tclsh ; then
7336     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7337   elif test -f ${with_tclinclude}/src/tclsh ; then
7338     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7339   else
7340     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7341 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7342    { (exit 1); exit 1; }; }
7343   fi
7344 fi
7345 fi
7346
7347
7348 if test x"${ac_cv_path_tclsh}" = x ; then
7349   { echo "$as_me:$LINENO: result: none" >&5
7350 echo "${ECHO_T}none" >&6; }
7351   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
7352 do
7353   # Extract the first word of "$ac_prog", so it can be a program name with args.
7354 set dummy $ac_prog; ac_word=$2
7355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7357 if test "${ac_cv_path_TCLSH+set}" = set; then
7358   echo $ECHO_N "(cached) $ECHO_C" >&6
7359 else
7360   case $TCLSH in
7361   [\\/]* | ?:[\\/]*)
7362   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7363   ;;
7364   *)
7365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366 for as_dir in $PATH
7367 do
7368   IFS=$as_save_IFS
7369   test -z "$as_dir" && as_dir=.
7370   for ac_exec_ext in '' $ac_executable_extensions; do
7371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7372     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7374     break 2
7375   fi
7376 done
7377 done
7378 IFS=$as_save_IFS
7379
7380   ;;
7381 esac
7382 fi
7383 TCLSH=$ac_cv_path_TCLSH
7384 if test -n "$TCLSH"; then
7385   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7386 echo "${ECHO_T}$TCLSH" >&6; }
7387 else
7388   { echo "$as_me:$LINENO: result: no" >&5
7389 echo "${ECHO_T}no" >&6; }
7390 fi
7391
7392
7393   test -n "$TCLSH" && break
7394 done
7395
7396   if test x"${TCLSH}" = x ; then
7397     ac_cv_path_tclsh='';
7398   else
7399     ac_cv_path_tclsh="${TCLSH}";
7400   fi
7401 else
7402   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7403 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7404   TCLSH="${ac_cv_path_tclsh}"
7405
7406 fi
7407
7408 # Extract the first word of "zip", so it can be a program name with args.
7409 set dummy zip; ac_word=$2
7410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7412 if test "${ac_cv_path_ZIP+set}" = set; then
7413   echo $ECHO_N "(cached) $ECHO_C" >&6
7414 else
7415   case $ZIP in
7416   [\\/]* | ?:[\\/]*)
7417   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7418   ;;
7419   *)
7420   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421 for as_dir in $PATH
7422 do
7423   IFS=$as_save_IFS
7424   test -z "$as_dir" && as_dir=.
7425   for ac_exec_ext in '' $ac_executable_extensions; do
7426   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7427     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7428     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7429     break 2
7430   fi
7431 done
7432 done
7433 IFS=$as_save_IFS
7434
7435   ;;
7436 esac
7437 fi
7438 ZIP=$ac_cv_path_ZIP
7439 if test -n "$ZIP"; then
7440   { echo "$as_me:$LINENO: result: $ZIP" >&5
7441 echo "${ECHO_T}$ZIP" >&6; }
7442 else
7443   { echo "$as_me:$LINENO: result: no" >&5
7444 echo "${ECHO_T}no" >&6; }
7445 fi
7446
7447
7448 for ac_prog in ocamlc
7449 do
7450   # Extract the first word of "$ac_prog", so it can be a program name with args.
7451 set dummy $ac_prog; ac_word=$2
7452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7454 if test "${ac_cv_path_OCAMLC+set}" = set; then
7455   echo $ECHO_N "(cached) $ECHO_C" >&6
7456 else
7457   case $OCAMLC in
7458   [\\/]* | ?:[\\/]*)
7459   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7460   ;;
7461   *)
7462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463 for as_dir in $PATH
7464 do
7465   IFS=$as_save_IFS
7466   test -z "$as_dir" && as_dir=.
7467   for ac_exec_ext in '' $ac_executable_extensions; do
7468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7469     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7471     break 2
7472   fi
7473 done
7474 done
7475 IFS=$as_save_IFS
7476
7477   ;;
7478 esac
7479 fi
7480 OCAMLC=$ac_cv_path_OCAMLC
7481 if test -n "$OCAMLC"; then
7482   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7483 echo "${ECHO_T}$OCAMLC" >&6; }
7484 else
7485   { echo "$as_me:$LINENO: result: no" >&5
7486 echo "${ECHO_T}no" >&6; }
7487 fi
7488
7489
7490   test -n "$OCAMLC" && break
7491 done
7492
7493 for ac_prog in ocamlopt
7494 do
7495   # Extract the first word of "$ac_prog", so it can be a program name with args.
7496 set dummy $ac_prog; ac_word=$2
7497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7499 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7500   echo $ECHO_N "(cached) $ECHO_C" >&6
7501 else
7502   case $OCAMLOPT in
7503   [\\/]* | ?:[\\/]*)
7504   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7505   ;;
7506   *)
7507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508 for as_dir in $PATH
7509 do
7510   IFS=$as_save_IFS
7511   test -z "$as_dir" && as_dir=.
7512   for ac_exec_ext in '' $ac_executable_extensions; do
7513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7514     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7516     break 2
7517   fi
7518 done
7519 done
7520 IFS=$as_save_IFS
7521
7522   ;;
7523 esac
7524 fi
7525 OCAMLOPT=$ac_cv_path_OCAMLOPT
7526 if test -n "$OCAMLOPT"; then
7527   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7528 echo "${ECHO_T}$OCAMLOPT" >&6; }
7529 else
7530   { echo "$as_me:$LINENO: result: no" >&5
7531 echo "${ECHO_T}no" >&6; }
7532 fi
7533
7534
7535   test -n "$OCAMLOPT" && break
7536 done
7537
7538 for ac_prog in ocamldep
7539 do
7540   # Extract the first word of "$ac_prog", so it can be a program name with args.
7541 set dummy $ac_prog; ac_word=$2
7542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7544 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7545   echo $ECHO_N "(cached) $ECHO_C" >&6
7546 else
7547   case $OCAMLDEP in
7548   [\\/]* | ?:[\\/]*)
7549   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7550   ;;
7551   *)
7552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553 for as_dir in $PATH
7554 do
7555   IFS=$as_save_IFS
7556   test -z "$as_dir" && as_dir=.
7557   for ac_exec_ext in '' $ac_executable_extensions; do
7558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7559     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7561     break 2
7562   fi
7563 done
7564 done
7565 IFS=$as_save_IFS
7566
7567   ;;
7568 esac
7569 fi
7570 OCAMLDEP=$ac_cv_path_OCAMLDEP
7571 if test -n "$OCAMLDEP"; then
7572   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7573 echo "${ECHO_T}$OCAMLDEP" >&6; }
7574 else
7575   { echo "$as_me:$LINENO: result: no" >&5
7576 echo "${ECHO_T}no" >&6; }
7577 fi
7578
7579
7580   test -n "$OCAMLDEP" && break
7581 done
7582
7583 for ac_prog in ocamldoc
7584 do
7585   # Extract the first word of "$ac_prog", so it can be a program name with args.
7586 set dummy $ac_prog; ac_word=$2
7587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7589 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7590   echo $ECHO_N "(cached) $ECHO_C" >&6
7591 else
7592   case $OCAMLDOC in
7593   [\\/]* | ?:[\\/]*)
7594   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7595   ;;
7596   *)
7597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 for as_dir in $PATH
7599 do
7600   IFS=$as_save_IFS
7601   test -z "$as_dir" && as_dir=.
7602   for ac_exec_ext in '' $ac_executable_extensions; do
7603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7604     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7606     break 2
7607   fi
7608 done
7609 done
7610 IFS=$as_save_IFS
7611
7612   ;;
7613 esac
7614 fi
7615 OCAMLDOC=$ac_cv_path_OCAMLDOC
7616 if test -n "$OCAMLDOC"; then
7617   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7618 echo "${ECHO_T}$OCAMLDOC" >&6; }
7619 else
7620   { echo "$as_me:$LINENO: result: no" >&5
7621 echo "${ECHO_T}no" >&6; }
7622 fi
7623
7624
7625   test -n "$OCAMLDOC" && break
7626 done
7627
7628 for ac_prog in gas as
7629 do
7630   # Extract the first word of "$ac_prog", so it can be a program name with args.
7631 set dummy $ac_prog; ac_word=$2
7632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7634 if test "${ac_cv_path_GAS+set}" = set; then
7635   echo $ECHO_N "(cached) $ECHO_C" >&6
7636 else
7637   case $GAS in
7638   [\\/]* | ?:[\\/]*)
7639   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7640   ;;
7641   *)
7642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643 for as_dir in $PATH
7644 do
7645   IFS=$as_save_IFS
7646   test -z "$as_dir" && as_dir=.
7647   for ac_exec_ext in '' $ac_executable_extensions; do
7648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7649     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7651     break 2
7652   fi
7653 done
7654 done
7655 IFS=$as_save_IFS
7656
7657   ;;
7658 esac
7659 fi
7660 GAS=$ac_cv_path_GAS
7661 if test -n "$GAS"; then
7662   { echo "$as_me:$LINENO: result: $GAS" >&5
7663 echo "${ECHO_T}$GAS" >&6; }
7664 else
7665   { echo "$as_me:$LINENO: result: no" >&5
7666 echo "${ECHO_T}no" >&6; }
7667 fi
7668
7669
7670   test -n "$GAS" && break
7671 done
7672
7673
7674 { echo "$as_me:$LINENO: checking for linker version" >&5
7675 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7676 if test "${llvm_cv_link_version+set}" = set; then
7677   echo $ECHO_N "(cached) $ECHO_C" >&6
7678 else
7679
7680    version_string="$(ld -v 2>&1 | head -1)"
7681
7682    # Check for ld64.
7683    if (echo "$version_string" | grep -q "ld64"); then
7684      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7685    else
7686      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7687    fi
7688
7689 fi
7690 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7691 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7692
7693 cat >>confdefs.h <<_ACEOF
7694 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7695 _ACEOF
7696
7697
7698
7699 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7700 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7701 if test "${llvm_cv_link_use_r+set}" = set; then
7702   echo $ECHO_N "(cached) $ECHO_C" >&6
7703 else
7704    ac_ext=c
7705 ac_cpp='$CPP $CPPFLAGS'
7706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7709
7710   oldcflags="$CFLAGS"
7711   CFLAGS="$CFLAGS -Wl,-R."
7712   cat >conftest.$ac_ext <<_ACEOF
7713 /* confdefs.h.  */
7714 _ACEOF
7715 cat confdefs.h >>conftest.$ac_ext
7716 cat >>conftest.$ac_ext <<_ACEOF
7717 /* end confdefs.h.  */
7718
7719 int
7720 main ()
7721 {
7722
7723   ;
7724   return 0;
7725 }
7726 _ACEOF
7727 rm -f conftest.$ac_objext conftest$ac_exeext
7728 if { (ac_try="$ac_link"
7729 case "(($ac_try" in
7730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7731   *) ac_try_echo=$ac_try;;
7732 esac
7733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7734   (eval "$ac_link") 2>conftest.er1
7735   ac_status=$?
7736   grep -v '^ *+' conftest.er1 >conftest.err
7737   rm -f conftest.er1
7738   cat conftest.err >&5
7739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740   (exit $ac_status); } &&
7741          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7742   { (case "(($ac_try" in
7743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7744   *) ac_try_echo=$ac_try;;
7745 esac
7746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7747   (eval "$ac_try") 2>&5
7748   ac_status=$?
7749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750   (exit $ac_status); }; } &&
7751          { ac_try='test -s conftest$ac_exeext'
7752   { (case "(($ac_try" in
7753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7754   *) ac_try_echo=$ac_try;;
7755 esac
7756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7757   (eval "$ac_try") 2>&5
7758   ac_status=$?
7759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760   (exit $ac_status); }; }; then
7761   llvm_cv_link_use_r=yes
7762 else
7763   echo "$as_me: failed program was:" >&5
7764 sed 's/^/| /' conftest.$ac_ext >&5
7765
7766         llvm_cv_link_use_r=no
7767 fi
7768
7769 rm -f core conftest.err conftest.$ac_objext \
7770       conftest$ac_exeext conftest.$ac_ext
7771   CFLAGS="$oldcflags"
7772   ac_ext=c
7773 ac_cpp='$CPP $CPPFLAGS'
7774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7777
7778
7779 fi
7780 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7781 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7782 if test "$llvm_cv_link_use_r" = yes ; then
7783
7784 cat >>confdefs.h <<\_ACEOF
7785 #define HAVE_LINK_R 1
7786 _ACEOF
7787
7788   fi
7789
7790
7791 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7792 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7793 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7794   echo $ECHO_N "(cached) $ECHO_C" >&6
7795 else
7796    ac_ext=c
7797 ac_cpp='$CPP $CPPFLAGS'
7798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7801
7802   oldcflags="$CFLAGS"
7803   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7804   cat >conftest.$ac_ext <<_ACEOF
7805 /* confdefs.h.  */
7806 _ACEOF
7807 cat confdefs.h >>conftest.$ac_ext
7808 cat >>conftest.$ac_ext <<_ACEOF
7809 /* end confdefs.h.  */
7810
7811 int
7812 main ()
7813 {
7814
7815   ;
7816   return 0;
7817 }
7818 _ACEOF
7819 rm -f conftest.$ac_objext conftest$ac_exeext
7820 if { (ac_try="$ac_link"
7821 case "(($ac_try" in
7822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7823   *) ac_try_echo=$ac_try;;
7824 esac
7825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7826   (eval "$ac_link") 2>conftest.er1
7827   ac_status=$?
7828   grep -v '^ *+' conftest.er1 >conftest.err
7829   rm -f conftest.er1
7830   cat conftest.err >&5
7831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832   (exit $ac_status); } &&
7833          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7834   { (case "(($ac_try" in
7835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7836   *) ac_try_echo=$ac_try;;
7837 esac
7838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7839   (eval "$ac_try") 2>&5
7840   ac_status=$?
7841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842   (exit $ac_status); }; } &&
7843          { ac_try='test -s conftest$ac_exeext'
7844   { (case "(($ac_try" in
7845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7846   *) ac_try_echo=$ac_try;;
7847 esac
7848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7849   (eval "$ac_try") 2>&5
7850   ac_status=$?
7851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852   (exit $ac_status); }; }; then
7853   llvm_cv_link_use_export_dynamic=yes
7854 else
7855   echo "$as_me: failed program was:" >&5
7856 sed 's/^/| /' conftest.$ac_ext >&5
7857
7858         llvm_cv_link_use_export_dynamic=no
7859 fi
7860
7861 rm -f core conftest.err conftest.$ac_objext \
7862       conftest$ac_exeext conftest.$ac_ext
7863   CFLAGS="$oldcflags"
7864   ac_ext=c
7865 ac_cpp='$CPP $CPPFLAGS'
7866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7869
7870
7871 fi
7872 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7873 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7874 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7875
7876 cat >>confdefs.h <<\_ACEOF
7877 #define HAVE_LINK_EXPORT_DYNAMIC 1
7878 _ACEOF
7879
7880   fi
7881
7882
7883 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7884 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7885 if test "${llvm_cv_link_use_version_script+set}" = set; then
7886   echo $ECHO_N "(cached) $ECHO_C" >&6
7887 else
7888    ac_ext=c
7889 ac_cpp='$CPP $CPPFLAGS'
7890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7893
7894   oldcflags="$CFLAGS"
7895
7896   # The following code is from the autoconf manual,
7897   # "11.13: Limitations of Usual Tools".
7898   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7899   # Use mktemp if possible; otherwise fall back on mkdir,
7900   # with $RANDOM to make collisions less likely.
7901   : ${TMPDIR=/tmp}
7902   {
7903     tmp=`
7904       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7905     ` &&
7906     test -n "$tmp" && test -d "$tmp"
7907   } || {
7908     tmp=$TMPDIR/foo$$-$RANDOM
7909     (umask 077 && mkdir "$tmp")
7910   } || exit $?
7911
7912   echo "{" > "$tmp/export.map"
7913   echo "  global: main;" >> "$tmp/export.map"
7914   echo "  local: *;" >> "$tmp/export.map"
7915   echo "};" >> "$tmp/export.map"
7916
7917   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7918   cat >conftest.$ac_ext <<_ACEOF
7919 /* confdefs.h.  */
7920 _ACEOF
7921 cat confdefs.h >>conftest.$ac_ext
7922 cat >>conftest.$ac_ext <<_ACEOF
7923 /* end confdefs.h.  */
7924
7925 int
7926 main ()
7927 {
7928
7929   ;
7930   return 0;
7931 }
7932 _ACEOF
7933 rm -f conftest.$ac_objext conftest$ac_exeext
7934 if { (ac_try="$ac_link"
7935 case "(($ac_try" in
7936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7937   *) ac_try_echo=$ac_try;;
7938 esac
7939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7940   (eval "$ac_link") 2>conftest.er1
7941   ac_status=$?
7942   grep -v '^ *+' conftest.er1 >conftest.err
7943   rm -f conftest.er1
7944   cat conftest.err >&5
7945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946   (exit $ac_status); } &&
7947          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7948   { (case "(($ac_try" in
7949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950   *) ac_try_echo=$ac_try;;
7951 esac
7952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7953   (eval "$ac_try") 2>&5
7954   ac_status=$?
7955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956   (exit $ac_status); }; } &&
7957          { ac_try='test -s conftest$ac_exeext'
7958   { (case "(($ac_try" in
7959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7960   *) ac_try_echo=$ac_try;;
7961 esac
7962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7963   (eval "$ac_try") 2>&5
7964   ac_status=$?
7965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966   (exit $ac_status); }; }; then
7967   llvm_cv_link_use_version_script=yes
7968 else
7969   echo "$as_me: failed program was:" >&5
7970 sed 's/^/| /' conftest.$ac_ext >&5
7971
7972         llvm_cv_link_use_version_script=no
7973 fi
7974
7975 rm -f core conftest.err conftest.$ac_objext \
7976       conftest$ac_exeext conftest.$ac_ext
7977   rm "$tmp/export.map"
7978   rmdir "$tmp"
7979   CFLAGS="$oldcflags"
7980   ac_ext=c
7981 ac_cpp='$CPP $CPPFLAGS'
7982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7985
7986
7987 fi
7988 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7989 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7990 if test "$llvm_cv_link_use_version_script" = yes ; then
7991   HAVE_LINK_VERSION_SCRIPT=1
7992
7993   fi
7994
7995
7996
7997
7998 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7999 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8000 if test "${ac_cv_c_const+set}" = set; then
8001   echo $ECHO_N "(cached) $ECHO_C" >&6
8002 else
8003   cat >conftest.$ac_ext <<_ACEOF
8004 /* confdefs.h.  */
8005 _ACEOF
8006 cat confdefs.h >>conftest.$ac_ext
8007 cat >>conftest.$ac_ext <<_ACEOF
8008 /* end confdefs.h.  */
8009
8010 int
8011 main ()
8012 {
8013 /* FIXME: Include the comments suggested by Paul. */
8014 #ifndef __cplusplus
8015   /* Ultrix mips cc rejects this.  */
8016   typedef int charset[2];
8017   const charset x;
8018   /* SunOS 4.1.1 cc rejects this.  */
8019   char const *const *ccp;
8020   char **p;
8021   /* NEC SVR4.0.2 mips cc rejects this.  */
8022   struct point {int x, y;};
8023   static struct point const zero = {0,0};
8024   /* AIX XL C 1.02.0.0 rejects this.
8025      It does not let you subtract one const X* pointer from another in
8026      an arm of an if-expression whose if-part is not a constant
8027      expression */
8028   const char *g = "string";
8029   ccp = &g + (g ? g-g : 0);
8030   /* HPUX 7.0 cc rejects these. */
8031   ++ccp;
8032   p = (char**) ccp;
8033   ccp = (char const *const *) p;
8034   { /* SCO 3.2v4 cc rejects this.  */
8035     char *t;
8036     char const *s = 0 ? (char *) 0 : (char const *) 0;
8037
8038     *t++ = 0;
8039     if (s) return 0;
8040   }
8041   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8042     int x[] = {25, 17};
8043     const int *foo = &x[0];
8044     ++foo;
8045   }
8046   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8047     typedef const int *iptr;
8048     iptr p = 0;
8049     ++p;
8050   }
8051   { /* AIX XL C 1.02.0.0 rejects this saying
8052        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8053     struct s { int j; const int *ap[3]; };
8054     struct s *b; b->j = 5;
8055   }
8056   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8057     const int foo = 10;
8058     if (!foo) return 0;
8059   }
8060   return !x[0] && !zero.x;
8061 #endif
8062
8063   ;
8064   return 0;
8065 }
8066 _ACEOF
8067 rm -f conftest.$ac_objext
8068 if { (ac_try="$ac_compile"
8069 case "(($ac_try" in
8070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8071   *) ac_try_echo=$ac_try;;
8072 esac
8073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8074   (eval "$ac_compile") 2>conftest.er1
8075   ac_status=$?
8076   grep -v '^ *+' conftest.er1 >conftest.err
8077   rm -f conftest.er1
8078   cat conftest.err >&5
8079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080   (exit $ac_status); } &&
8081          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8082   { (case "(($ac_try" in
8083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8084   *) ac_try_echo=$ac_try;;
8085 esac
8086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8087   (eval "$ac_try") 2>&5
8088   ac_status=$?
8089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090   (exit $ac_status); }; } &&
8091          { ac_try='test -s conftest.$ac_objext'
8092   { (case "(($ac_try" in
8093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8094   *) ac_try_echo=$ac_try;;
8095 esac
8096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8097   (eval "$ac_try") 2>&5
8098   ac_status=$?
8099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100   (exit $ac_status); }; }; then
8101   ac_cv_c_const=yes
8102 else
8103   echo "$as_me: failed program was:" >&5
8104 sed 's/^/| /' conftest.$ac_ext >&5
8105
8106         ac_cv_c_const=no
8107 fi
8108
8109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8110 fi
8111 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8112 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8113 if test $ac_cv_c_const = no; then
8114
8115 cat >>confdefs.h <<\_ACEOF
8116 #define const
8117 _ACEOF
8118
8119 fi
8120
8121
8122
8123
8124
8125
8126 ac_header_dirent=no
8127 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8128   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8129 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8130 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8132   echo $ECHO_N "(cached) $ECHO_C" >&6
8133 else
8134   cat >conftest.$ac_ext <<_ACEOF
8135 /* confdefs.h.  */
8136 _ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h.  */
8140 #include <sys/types.h>
8141 #include <$ac_hdr>
8142
8143 int
8144 main ()
8145 {
8146 if ((DIR *) 0)
8147 return 0;
8148   ;
8149   return 0;
8150 }
8151 _ACEOF
8152 rm -f conftest.$ac_objext
8153 if { (ac_try="$ac_compile"
8154 case "(($ac_try" in
8155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8156   *) ac_try_echo=$ac_try;;
8157 esac
8158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8159   (eval "$ac_compile") 2>conftest.er1
8160   ac_status=$?
8161   grep -v '^ *+' conftest.er1 >conftest.err
8162   rm -f conftest.er1
8163   cat conftest.err >&5
8164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165   (exit $ac_status); } &&
8166          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8167   { (case "(($ac_try" in
8168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8169   *) ac_try_echo=$ac_try;;
8170 esac
8171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8172   (eval "$ac_try") 2>&5
8173   ac_status=$?
8174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175   (exit $ac_status); }; } &&
8176          { ac_try='test -s conftest.$ac_objext'
8177   { (case "(($ac_try" in
8178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8179   *) ac_try_echo=$ac_try;;
8180 esac
8181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8182   (eval "$ac_try") 2>&5
8183   ac_status=$?
8184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185   (exit $ac_status); }; }; then
8186   eval "$as_ac_Header=yes"
8187 else
8188   echo "$as_me: failed program was:" >&5
8189 sed 's/^/| /' conftest.$ac_ext >&5
8190
8191         eval "$as_ac_Header=no"
8192 fi
8193
8194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8195 fi
8196 ac_res=`eval echo '${'$as_ac_Header'}'`
8197                { echo "$as_me:$LINENO: result: $ac_res" >&5
8198 echo "${ECHO_T}$ac_res" >&6; }
8199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8200   cat >>confdefs.h <<_ACEOF
8201 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8202 _ACEOF
8203
8204 ac_header_dirent=$ac_hdr; break
8205 fi
8206
8207 done
8208 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8209 if test $ac_header_dirent = dirent.h; then
8210   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8211 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8212 if test "${ac_cv_search_opendir+set}" = set; then
8213   echo $ECHO_N "(cached) $ECHO_C" >&6
8214 else
8215   ac_func_search_save_LIBS=$LIBS
8216 cat >conftest.$ac_ext <<_ACEOF
8217 /* confdefs.h.  */
8218 _ACEOF
8219 cat confdefs.h >>conftest.$ac_ext
8220 cat >>conftest.$ac_ext <<_ACEOF
8221 /* end confdefs.h.  */
8222
8223 /* Override any GCC internal prototype to avoid an error.
8224    Use char because int might match the return type of a GCC
8225    builtin and then its argument prototype would still apply.  */
8226 #ifdef __cplusplus
8227 extern "C"
8228 #endif
8229 char opendir ();
8230 int
8231 main ()
8232 {
8233 return opendir ();
8234   ;
8235   return 0;
8236 }
8237 _ACEOF
8238 for ac_lib in '' dir; do
8239   if test -z "$ac_lib"; then
8240     ac_res="none required"
8241   else
8242     ac_res=-l$ac_lib
8243     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8244   fi
8245   rm -f conftest.$ac_objext conftest$ac_exeext
8246 if { (ac_try="$ac_link"
8247 case "(($ac_try" in
8248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249   *) ac_try_echo=$ac_try;;
8250 esac
8251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8252   (eval "$ac_link") 2>conftest.er1
8253   ac_status=$?
8254   grep -v '^ *+' conftest.er1 >conftest.err
8255   rm -f conftest.er1
8256   cat conftest.err >&5
8257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258   (exit $ac_status); } &&
8259          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8260   { (case "(($ac_try" in
8261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8262   *) ac_try_echo=$ac_try;;
8263 esac
8264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8265   (eval "$ac_try") 2>&5
8266   ac_status=$?
8267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268   (exit $ac_status); }; } &&
8269          { ac_try='test -s conftest$ac_exeext'
8270   { (case "(($ac_try" in
8271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8272   *) ac_try_echo=$ac_try;;
8273 esac
8274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8275   (eval "$ac_try") 2>&5
8276   ac_status=$?
8277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278   (exit $ac_status); }; }; then
8279   ac_cv_search_opendir=$ac_res
8280 else
8281   echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.$ac_ext >&5
8283
8284
8285 fi
8286
8287 rm -f core conftest.err conftest.$ac_objext \
8288       conftest$ac_exeext
8289   if test "${ac_cv_search_opendir+set}" = set; then
8290   break
8291 fi
8292 done
8293 if test "${ac_cv_search_opendir+set}" = set; then
8294   :
8295 else
8296   ac_cv_search_opendir=no
8297 fi
8298 rm conftest.$ac_ext
8299 LIBS=$ac_func_search_save_LIBS
8300 fi
8301 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8302 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8303 ac_res=$ac_cv_search_opendir
8304 if test "$ac_res" != no; then
8305   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8306
8307 fi
8308
8309 else
8310   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8311 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8312 if test "${ac_cv_search_opendir+set}" = set; then
8313   echo $ECHO_N "(cached) $ECHO_C" >&6
8314 else
8315   ac_func_search_save_LIBS=$LIBS
8316 cat >conftest.$ac_ext <<_ACEOF
8317 /* confdefs.h.  */
8318 _ACEOF
8319 cat confdefs.h >>conftest.$ac_ext
8320 cat >>conftest.$ac_ext <<_ACEOF
8321 /* end confdefs.h.  */
8322
8323 /* Override any GCC internal prototype to avoid an error.
8324    Use char because int might match the return type of a GCC
8325    builtin and then its argument prototype would still apply.  */
8326 #ifdef __cplusplus
8327 extern "C"
8328 #endif
8329 char opendir ();
8330 int
8331 main ()
8332 {
8333 return opendir ();
8334   ;
8335   return 0;
8336 }
8337 _ACEOF
8338 for ac_lib in '' x; do
8339   if test -z "$ac_lib"; then
8340     ac_res="none required"
8341   else
8342     ac_res=-l$ac_lib
8343     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8344   fi
8345   rm -f conftest.$ac_objext conftest$ac_exeext
8346 if { (ac_try="$ac_link"
8347 case "(($ac_try" in
8348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8349   *) ac_try_echo=$ac_try;;
8350 esac
8351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8352   (eval "$ac_link") 2>conftest.er1
8353   ac_status=$?
8354   grep -v '^ *+' conftest.er1 >conftest.err
8355   rm -f conftest.er1
8356   cat conftest.err >&5
8357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358   (exit $ac_status); } &&
8359          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8360   { (case "(($ac_try" in
8361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8362   *) ac_try_echo=$ac_try;;
8363 esac
8364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8365   (eval "$ac_try") 2>&5
8366   ac_status=$?
8367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368   (exit $ac_status); }; } &&
8369          { ac_try='test -s conftest$ac_exeext'
8370   { (case "(($ac_try" in
8371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8372   *) ac_try_echo=$ac_try;;
8373 esac
8374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8375   (eval "$ac_try") 2>&5
8376   ac_status=$?
8377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378   (exit $ac_status); }; }; then
8379   ac_cv_search_opendir=$ac_res
8380 else
8381   echo "$as_me: failed program was:" >&5
8382 sed 's/^/| /' conftest.$ac_ext >&5
8383
8384
8385 fi
8386
8387 rm -f core conftest.err conftest.$ac_objext \
8388       conftest$ac_exeext
8389   if test "${ac_cv_search_opendir+set}" = set; then
8390   break
8391 fi
8392 done
8393 if test "${ac_cv_search_opendir+set}" = set; then
8394   :
8395 else
8396   ac_cv_search_opendir=no
8397 fi
8398 rm conftest.$ac_ext
8399 LIBS=$ac_func_search_save_LIBS
8400 fi
8401 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8402 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8403 ac_res=$ac_cv_search_opendir
8404 if test "$ac_res" != no; then
8405   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8406
8407 fi
8408
8409 fi
8410
8411
8412 for ac_header in dlfcn.h
8413 do
8414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8416   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8419   echo $ECHO_N "(cached) $ECHO_C" >&6
8420 fi
8421 ac_res=`eval echo '${'$as_ac_Header'}'`
8422                { echo "$as_me:$LINENO: result: $ac_res" >&5
8423 echo "${ECHO_T}$ac_res" >&6; }
8424 else
8425   # Is the header compilable?
8426 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8427 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8428 cat >conftest.$ac_ext <<_ACEOF
8429 /* confdefs.h.  */
8430 _ACEOF
8431 cat confdefs.h >>conftest.$ac_ext
8432 cat >>conftest.$ac_ext <<_ACEOF
8433 /* end confdefs.h.  */
8434 $ac_includes_default
8435 #include <$ac_header>
8436 _ACEOF
8437 rm -f conftest.$ac_objext
8438 if { (ac_try="$ac_compile"
8439 case "(($ac_try" in
8440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8441   *) ac_try_echo=$ac_try;;
8442 esac
8443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8444   (eval "$ac_compile") 2>conftest.er1
8445   ac_status=$?
8446   grep -v '^ *+' conftest.er1 >conftest.err
8447   rm -f conftest.er1
8448   cat conftest.err >&5
8449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450   (exit $ac_status); } &&
8451          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8452   { (case "(($ac_try" in
8453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8454   *) ac_try_echo=$ac_try;;
8455 esac
8456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8457   (eval "$ac_try") 2>&5
8458   ac_status=$?
8459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460   (exit $ac_status); }; } &&
8461          { ac_try='test -s conftest.$ac_objext'
8462   { (case "(($ac_try" in
8463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8464   *) ac_try_echo=$ac_try;;
8465 esac
8466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8467   (eval "$ac_try") 2>&5
8468   ac_status=$?
8469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470   (exit $ac_status); }; }; then
8471   ac_header_compiler=yes
8472 else
8473   echo "$as_me: failed program was:" >&5
8474 sed 's/^/| /' conftest.$ac_ext >&5
8475
8476         ac_header_compiler=no
8477 fi
8478
8479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8480 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8481 echo "${ECHO_T}$ac_header_compiler" >&6; }
8482
8483 # Is the header present?
8484 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8485 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8486 cat >conftest.$ac_ext <<_ACEOF
8487 /* confdefs.h.  */
8488 _ACEOF
8489 cat confdefs.h >>conftest.$ac_ext
8490 cat >>conftest.$ac_ext <<_ACEOF
8491 /* end confdefs.h.  */
8492 #include <$ac_header>
8493 _ACEOF
8494 if { (ac_try="$ac_cpp conftest.$ac_ext"
8495 case "(($ac_try" in
8496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8497   *) ac_try_echo=$ac_try;;
8498 esac
8499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8500   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8501   ac_status=$?
8502   grep -v '^ *+' conftest.er1 >conftest.err
8503   rm -f conftest.er1
8504   cat conftest.err >&5
8505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506   (exit $ac_status); } >/dev/null; then
8507   if test -s conftest.err; then
8508     ac_cpp_err=$ac_c_preproc_warn_flag
8509     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8510   else
8511     ac_cpp_err=
8512   fi
8513 else
8514   ac_cpp_err=yes
8515 fi
8516 if test -z "$ac_cpp_err"; then
8517   ac_header_preproc=yes
8518 else
8519   echo "$as_me: failed program was:" >&5
8520 sed 's/^/| /' conftest.$ac_ext >&5
8521
8522   ac_header_preproc=no
8523 fi
8524
8525 rm -f conftest.err conftest.$ac_ext
8526 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8527 echo "${ECHO_T}$ac_header_preproc" >&6; }
8528
8529 # So?  What about this header?
8530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8531   yes:no: )
8532     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8533 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8534     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8535 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8536     ac_header_preproc=yes
8537     ;;
8538   no:yes:* )
8539     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8541     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8542 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8543     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8544 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8545     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8546 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8547     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8549     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8550 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8551     ( cat <<\_ASBOX
8552 ## ------------------------------ ##
8553 ## Report this to bugs@yourdomain ##
8554 ## ------------------------------ ##
8555 _ASBOX
8556      ) | sed "s/^/$as_me: WARNING:     /" >&2
8557     ;;
8558 esac
8559 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8562   echo $ECHO_N "(cached) $ECHO_C" >&6
8563 else
8564   eval "$as_ac_Header=\$ac_header_preproc"
8565 fi
8566 ac_res=`eval echo '${'$as_ac_Header'}'`
8567                { echo "$as_me:$LINENO: result: $ac_res" >&5
8568 echo "${ECHO_T}$ac_res" >&6; }
8569
8570 fi
8571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8572   cat >>confdefs.h <<_ACEOF
8573 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8574 _ACEOF
8575
8576 fi
8577
8578 done
8579
8580 # Check whether --enable-ltdl-install was given.
8581 if test "${enable_ltdl_install+set}" = set; then
8582   enableval=$enable_ltdl_install;
8583 fi
8584
8585
8586
8587
8588 if test x"${enable_ltdl_install-no}" != xno; then
8589   INSTALL_LTDL_TRUE=
8590   INSTALL_LTDL_FALSE='#'
8591 else
8592   INSTALL_LTDL_TRUE='#'
8593   INSTALL_LTDL_FALSE=
8594 fi
8595
8596
8597
8598 if test x"${enable_ltdl_convenience-no}" != xno; then
8599   CONVENIENCE_LTDL_TRUE=
8600   CONVENIENCE_LTDL_FALSE='#'
8601 else
8602   CONVENIENCE_LTDL_TRUE='#'
8603   CONVENIENCE_LTDL_FALSE=
8604 fi
8605
8606
8607 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8608 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8609 library_names_spec=
8610 libname_spec='lib$name'
8611 soname_spec=
8612 shrext_cmds=".so"
8613 postinstall_cmds=
8614 postuninstall_cmds=
8615 finish_cmds=
8616 finish_eval=
8617 shlibpath_var=
8618 shlibpath_overrides_runpath=unknown
8619 version_type=none
8620 dynamic_linker="$host_os ld.so"
8621 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8622 if test "$GCC" = yes; then
8623   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8624   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8625     # if the path contains ";" then we assume it to be the separator
8626     # otherwise default to the standard path separator (i.e. ":") - it is
8627     # assumed that no part of a normal pathname contains ";" but that should
8628     # okay in the real world where ";" in dirpaths is itself problematic.
8629     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8630   else
8631     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8632   fi
8633 else
8634   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8635 fi
8636 need_lib_prefix=unknown
8637 hardcode_into_libs=no
8638
8639 # when you set need_version to no, make sure it does not cause -set_version
8640 # flags to be left without arguments
8641 need_version=unknown
8642
8643 case $host_os in
8644 aix3*)
8645   version_type=linux
8646   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8647   shlibpath_var=LIBPATH
8648
8649   # AIX 3 has no versioning support, so we append a major version to the name.
8650   soname_spec='${libname}${release}${shared_ext}$major'
8651   ;;
8652
8653 aix4* | aix5*)
8654   version_type=linux
8655   need_lib_prefix=no
8656   need_version=no
8657   hardcode_into_libs=yes
8658   if test "$host_cpu" = ia64; then
8659     # AIX 5 supports IA64
8660     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8661     shlibpath_var=LD_LIBRARY_PATH
8662   else
8663     # With GCC up to 2.95.x, collect2 would create an import file
8664     # for dependence libraries.  The import file would start with
8665     # the line `#! .'.  This would cause the generated library to
8666     # depend on `.', always an invalid library.  This was fixed in
8667     # development snapshots of GCC prior to 3.0.
8668     case $host_os in
8669       aix4 | aix4.[01] | aix4.[01].*)
8670       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8671            echo ' yes '
8672            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8673         :
8674       else
8675         can_build_shared=no
8676       fi
8677       ;;
8678     esac
8679     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8680     # soname into executable. Probably we can add versioning support to
8681     # collect2, so additional links can be useful in future.
8682     if test "$aix_use_runtimelinking" = yes; then
8683       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8684       # instead of lib<name>.a to let people know that these are not
8685       # typical AIX shared libraries.
8686       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8687     else
8688       # We preserve .a as extension for shared libraries through AIX4.2
8689       # and later when we are not doing run time linking.
8690       library_names_spec='${libname}${release}.a $libname.a'
8691       soname_spec='${libname}${release}${shared_ext}$major'
8692     fi
8693     shlibpath_var=LIBPATH
8694   fi
8695   ;;
8696
8697 amigaos*)
8698   library_names_spec='$libname.ixlibrary $libname.a'
8699   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8700   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'
8701   ;;
8702
8703 beos*)
8704   library_names_spec='${libname}${shared_ext}'
8705   dynamic_linker="$host_os ld.so"
8706   shlibpath_var=LIBRARY_PATH
8707   ;;
8708
8709 bsdi[45]*)
8710   version_type=linux
8711   need_version=no
8712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8713   soname_spec='${libname}${release}${shared_ext}$major'
8714   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8715   shlibpath_var=LD_LIBRARY_PATH
8716   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8717   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8718   # the default ld.so.conf also contains /usr/contrib/lib and
8719   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8720   # libtool to hard-code these into programs
8721   ;;
8722
8723 cygwin* | mingw* | pw32*)
8724   version_type=windows
8725   shrext_cmds=".dll"
8726   need_version=no
8727   need_lib_prefix=no
8728
8729   case $GCC,$host_os in
8730   yes,cygwin* | yes,mingw* | yes,pw32*)
8731     library_names_spec='$libname.dll.a'
8732     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8733     postinstall_cmds='base_file=`basename \${file}`~
8734       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8735       dldir=$destdir/`dirname \$dlpath`~
8736       test -d \$dldir || mkdir -p \$dldir~
8737       $install_prog $dir/$dlname \$dldir/$dlname~
8738       chmod a+x \$dldir/$dlname'
8739     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8740       dlpath=$dir/\$dldll~
8741        $rm \$dlpath'
8742     shlibpath_overrides_runpath=yes
8743
8744     case $host_os in
8745     cygwin*)
8746       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8747       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8748       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8749       ;;
8750     mingw*)
8751       # MinGW DLLs use traditional 'lib' prefix
8752       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8753       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8754       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8755         # It is most probably a Windows format PATH printed by
8756         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8757         # path with ; separators, and with drive letters. We can handle the
8758         # drive letters (cygwin fileutils understands them), so leave them,
8759         # especially as we might pass files found there to a mingw objdump,
8760         # which wouldn't understand a cygwinified path. Ahh.
8761         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8762       else
8763         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8764       fi
8765       ;;
8766     pw32*)
8767       # pw32 DLLs use 'pw' prefix rather than 'lib'
8768       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8769       ;;
8770     esac
8771     ;;
8772
8773   *)
8774     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8775     ;;
8776   esac
8777   dynamic_linker='Win32 ld.exe'
8778   # FIXME: first we should search . and the directory the executable is in
8779   shlibpath_var=PATH
8780   ;;
8781
8782 darwin* | rhapsody*)
8783   dynamic_linker="$host_os dyld"
8784   version_type=darwin
8785   need_lib_prefix=no
8786   need_version=no
8787   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8788   soname_spec='${libname}${release}${major}$shared_ext'
8789   shlibpath_overrides_runpath=yes
8790   shlibpath_var=DYLD_LIBRARY_PATH
8791   shrext_cmds='.dylib'
8792   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8793   if test "$GCC" = yes; then
8794     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"`
8795   else
8796     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8797   fi
8798   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8799   ;;
8800
8801 dgux*)
8802   version_type=linux
8803   need_lib_prefix=no
8804   need_version=no
8805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8806   soname_spec='${libname}${release}${shared_ext}$major'
8807   shlibpath_var=LD_LIBRARY_PATH
8808   ;;
8809
8810 freebsd1.*)
8811   dynamic_linker=no
8812   ;;
8813
8814 kfreebsd*-gnu)
8815   version_type=linux
8816   need_lib_prefix=no
8817   need_version=no
8818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8819   soname_spec='${libname}${release}${shared_ext}$major'
8820   shlibpath_var=LD_LIBRARY_PATH
8821   shlibpath_overrides_runpath=no
8822   hardcode_into_libs=yes
8823   dynamic_linker='GNU ld.so'
8824   ;;
8825
8826 freebsd* | dragonfly*)
8827   # DragonFly does not have aout.  When/if they implement a new
8828   # versioning mechanism, adjust this.
8829   if test -x /usr/bin/objformat; then
8830     objformat=`/usr/bin/objformat`
8831   else
8832     case $host_os in
8833     freebsd[123].*) objformat=aout ;;
8834     *) objformat=elf ;;
8835     esac
8836   fi
8837   version_type=freebsd-$objformat
8838   case $version_type in
8839     freebsd-elf*)
8840       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8841       need_version=no
8842       need_lib_prefix=no
8843       ;;
8844     freebsd-*)
8845       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8846       need_version=yes
8847       ;;
8848   esac
8849   shlibpath_var=LD_LIBRARY_PATH
8850   case $host_os in
8851   freebsd2.*)
8852     shlibpath_overrides_runpath=yes
8853     ;;
8854   freebsd3.[01]* | freebsdelf3.[01]*)
8855     shlibpath_overrides_runpath=yes
8856     hardcode_into_libs=yes
8857     ;;
8858   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8859   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8860     shlibpath_overrides_runpath=no
8861     hardcode_into_libs=yes
8862     ;;
8863   freebsd*) # from 4.6 on
8864     shlibpath_overrides_runpath=yes
8865     hardcode_into_libs=yes
8866     ;;
8867   esac
8868   ;;
8869
8870 gnu*)
8871   version_type=linux
8872   need_lib_prefix=no
8873   need_version=no
8874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8875   soname_spec='${libname}${release}${shared_ext}$major'
8876   shlibpath_var=LD_LIBRARY_PATH
8877   hardcode_into_libs=yes
8878   ;;
8879
8880 hpux9* | hpux10* | hpux11*)
8881   # Give a soname corresponding to the major version so that dld.sl refuses to
8882   # link against other versions.
8883   version_type=sunos
8884   need_lib_prefix=no
8885   need_version=no
8886   case $host_cpu in
8887   ia64*)
8888     shrext_cmds='.so'
8889     hardcode_into_libs=yes
8890     dynamic_linker="$host_os dld.so"
8891     shlibpath_var=LD_LIBRARY_PATH
8892     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8893     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8894     soname_spec='${libname}${release}${shared_ext}$major'
8895     if test "X$HPUX_IA64_MODE" = X32; then
8896       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8897     else
8898       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8899     fi
8900     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8901     ;;
8902    hppa*64*)
8903      shrext_cmds='.sl'
8904      hardcode_into_libs=yes
8905      dynamic_linker="$host_os dld.sl"
8906      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8907      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8908      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8909      soname_spec='${libname}${release}${shared_ext}$major'
8910      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8911      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8912      ;;
8913    *)
8914     shrext_cmds='.sl'
8915     dynamic_linker="$host_os dld.sl"
8916     shlibpath_var=SHLIB_PATH
8917     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8918     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8919     soname_spec='${libname}${release}${shared_ext}$major'
8920     ;;
8921   esac
8922   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8923   postinstall_cmds='chmod 555 $lib'
8924   ;;
8925
8926 interix3*)
8927   version_type=linux
8928   need_lib_prefix=no
8929   need_version=no
8930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8931   soname_spec='${libname}${release}${shared_ext}$major'
8932   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8933   shlibpath_var=LD_LIBRARY_PATH
8934   shlibpath_overrides_runpath=no
8935   hardcode_into_libs=yes
8936   ;;
8937
8938 irix5* | irix6* | nonstopux*)
8939   case $host_os in
8940     nonstopux*) version_type=nonstopux ;;
8941     *)
8942         if test "$lt_cv_prog_gnu_ld" = yes; then
8943                 version_type=linux
8944         else
8945                 version_type=irix
8946         fi ;;
8947   esac
8948   need_lib_prefix=no
8949   need_version=no
8950   soname_spec='${libname}${release}${shared_ext}$major'
8951   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8952   case $host_os in
8953   irix5* | nonstopux*)
8954     libsuff= shlibsuff=
8955     ;;
8956   *)
8957     case $LD in # libtool.m4 will add one of these switches to LD
8958     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8959       libsuff= shlibsuff= libmagic=32-bit;;
8960     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8961       libsuff=32 shlibsuff=N32 libmagic=N32;;
8962     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8963       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8964     *) libsuff= shlibsuff= libmagic=never-match;;
8965     esac
8966     ;;
8967   esac
8968   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8969   shlibpath_overrides_runpath=no
8970   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8971   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8972   hardcode_into_libs=yes
8973   ;;
8974
8975 # No shared lib support for Linux oldld, aout, or coff.
8976 linux*oldld* | linux*aout* | linux*coff*)
8977   dynamic_linker=no
8978   ;;
8979
8980 # This must be Linux ELF.
8981 linux*)
8982   version_type=linux
8983   need_lib_prefix=no
8984   need_version=no
8985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8986   soname_spec='${libname}${release}${shared_ext}$major'
8987   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8988   shlibpath_var=LD_LIBRARY_PATH
8989   shlibpath_overrides_runpath=no
8990   # This implies no fast_install, which is unacceptable.
8991   # Some rework will be needed to allow for fast_install
8992   # before this can be enabled.
8993   hardcode_into_libs=yes
8994
8995   # Append ld.so.conf contents to the search path
8996   if test -f /etc/ld.so.conf; then
8997     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' ' '`
8998     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8999   fi
9000
9001   # We used to test for /lib/ld.so.1 and disable shared libraries on
9002   # powerpc, because MkLinux only supported shared libraries with the
9003   # GNU dynamic linker.  Since this was broken with cross compilers,
9004   # most powerpc-linux boxes support dynamic linking these days and
9005   # people can always --disable-shared, the test was removed, and we
9006   # assume the GNU/Linux dynamic linker is in use.
9007   dynamic_linker='GNU/Linux ld.so'
9008   ;;
9009
9010 knetbsd*-gnu)
9011   version_type=linux
9012   need_lib_prefix=no
9013   need_version=no
9014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9015   soname_spec='${libname}${release}${shared_ext}$major'
9016   shlibpath_var=LD_LIBRARY_PATH
9017   shlibpath_overrides_runpath=no
9018   hardcode_into_libs=yes
9019   dynamic_linker='GNU ld.so'
9020   ;;
9021
9022 netbsd*)
9023   version_type=sunos
9024   need_lib_prefix=no
9025   need_version=no
9026   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9027     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9028     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9029     dynamic_linker='NetBSD (a.out) ld.so'
9030   else
9031     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9032     soname_spec='${libname}${release}${shared_ext}$major'
9033     dynamic_linker='NetBSD ld.elf_so'
9034   fi
9035   shlibpath_var=LD_LIBRARY_PATH
9036   shlibpath_overrides_runpath=yes
9037   hardcode_into_libs=yes
9038   ;;
9039
9040 newsos6)
9041   version_type=linux
9042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9043   shlibpath_var=LD_LIBRARY_PATH
9044   shlibpath_overrides_runpath=yes
9045   ;;
9046
9047 nto-qnx*)
9048   version_type=linux
9049   need_lib_prefix=no
9050   need_version=no
9051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9052   soname_spec='${libname}${release}${shared_ext}$major'
9053   shlibpath_var=LD_LIBRARY_PATH
9054   shlibpath_overrides_runpath=yes
9055   ;;
9056
9057 openbsd*)
9058   version_type=sunos
9059   sys_lib_dlsearch_path_spec="/usr/lib"
9060   need_lib_prefix=no
9061   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9062   case $host_os in
9063     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9064     *)                         need_version=no  ;;
9065   esac
9066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9067   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9068   shlibpath_var=LD_LIBRARY_PATH
9069   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9070     case $host_os in
9071       openbsd2.[89] | openbsd2.[89].*)
9072         shlibpath_overrides_runpath=no
9073         ;;
9074       *)
9075         shlibpath_overrides_runpath=yes
9076         ;;
9077       esac
9078   else
9079     shlibpath_overrides_runpath=yes
9080   fi
9081   ;;
9082
9083 os2*)
9084   libname_spec='$name'
9085   shrext_cmds=".dll"
9086   need_lib_prefix=no
9087   library_names_spec='$libname${shared_ext} $libname.a'
9088   dynamic_linker='OS/2 ld.exe'
9089   shlibpath_var=LIBPATH
9090   ;;
9091
9092 osf3* | osf4* | osf5*)
9093   version_type=osf
9094   need_lib_prefix=no
9095   need_version=no
9096   soname_spec='${libname}${release}${shared_ext}$major'
9097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9098   shlibpath_var=LD_LIBRARY_PATH
9099   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9100   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9101   ;;
9102
9103 solaris*)
9104   version_type=linux
9105   need_lib_prefix=no
9106   need_version=no
9107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9108   soname_spec='${libname}${release}${shared_ext}$major'
9109   shlibpath_var=LD_LIBRARY_PATH
9110   shlibpath_overrides_runpath=yes
9111   hardcode_into_libs=yes
9112   # ldd complains unless libraries are executable
9113   postinstall_cmds='chmod +x $lib'
9114   ;;
9115
9116 sunos4*)
9117   version_type=sunos
9118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9119   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9120   shlibpath_var=LD_LIBRARY_PATH
9121   shlibpath_overrides_runpath=yes
9122   if test "$with_gnu_ld" = yes; then
9123     need_lib_prefix=no
9124   fi
9125   need_version=yes
9126   ;;
9127
9128 sysv4 | sysv4.3*)
9129   version_type=linux
9130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9131   soname_spec='${libname}${release}${shared_ext}$major'
9132   shlibpath_var=LD_LIBRARY_PATH
9133   case $host_vendor in
9134     sni)
9135       shlibpath_overrides_runpath=no
9136       need_lib_prefix=no
9137       export_dynamic_flag_spec='${wl}-Blargedynsym'
9138       runpath_var=LD_RUN_PATH
9139       ;;
9140     siemens)
9141       need_lib_prefix=no
9142       ;;
9143     motorola)
9144       need_lib_prefix=no
9145       need_version=no
9146       shlibpath_overrides_runpath=no
9147       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9148       ;;
9149   esac
9150   ;;
9151
9152 sysv4*MP*)
9153   if test -d /usr/nec ;then
9154     version_type=linux
9155     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9156     soname_spec='$libname${shared_ext}.$major'
9157     shlibpath_var=LD_LIBRARY_PATH
9158   fi
9159   ;;
9160
9161 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9162   version_type=freebsd-elf
9163   need_lib_prefix=no
9164   need_version=no
9165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9166   soname_spec='${libname}${release}${shared_ext}$major'
9167   shlibpath_var=LD_LIBRARY_PATH
9168   hardcode_into_libs=yes
9169   if test "$with_gnu_ld" = yes; then
9170     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9171     shlibpath_overrides_runpath=no
9172   else
9173     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9174     shlibpath_overrides_runpath=yes
9175     case $host_os in
9176       sco3.2v5*)
9177         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9178         ;;
9179     esac
9180   fi
9181   sys_lib_dlsearch_path_spec='/usr/lib'
9182   ;;
9183
9184 uts4*)
9185   version_type=linux
9186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9187   soname_spec='${libname}${release}${shared_ext}$major'
9188   shlibpath_var=LD_LIBRARY_PATH
9189   ;;
9190
9191 *)
9192   dynamic_linker=no
9193   ;;
9194 esac
9195 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9196 echo "${ECHO_T}$dynamic_linker" >&6; }
9197 test "$dynamic_linker" = no && can_build_shared=no
9198
9199 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9200 if test "$GCC" = yes; then
9201   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9202 fi
9203
9204
9205 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9206 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9207 if test "${libltdl_cv_shlibext+set}" = set; then
9208   echo $ECHO_N "(cached) $ECHO_C" >&6
9209 else
9210
9211 module=yes
9212 eval libltdl_cv_shlibext=$shrext_cmds
9213
9214 fi
9215 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9216 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9217 if test -n "$libltdl_cv_shlibext"; then
9218
9219 cat >>confdefs.h <<_ACEOF
9220 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9221 _ACEOF
9222
9223 fi
9224
9225
9226 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9227 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9228 if test "${libltdl_cv_sys_search_path+set}" = set; then
9229   echo $ECHO_N "(cached) $ECHO_C" >&6
9230 else
9231   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9232 fi
9233 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9234 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9235 if test -n "$libltdl_cv_sys_search_path"; then
9236   sys_search_path=
9237   for dir in $libltdl_cv_sys_search_path; do
9238     if test -z "$sys_search_path"; then
9239       sys_search_path="$dir"
9240     else
9241       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9242     fi
9243   done
9244
9245 cat >>confdefs.h <<_ACEOF
9246 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9247 _ACEOF
9248
9249 fi
9250
9251 { echo "$as_me:$LINENO: checking for objdir" >&5
9252 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9253 if test "${libltdl_cv_objdir+set}" = set; then
9254   echo $ECHO_N "(cached) $ECHO_C" >&6
9255 else
9256   libltdl_cv_objdir="$objdir"
9257   if test -n "$objdir"; then
9258     :
9259   else
9260     rm -f .libs 2>/dev/null
9261     mkdir .libs 2>/dev/null
9262     if test -d .libs; then
9263       libltdl_cv_objdir=.libs
9264     else
9265       # MS-DOS does not allow filenames that begin with a dot.
9266       libltdl_cv_objdir=_libs
9267     fi
9268   rmdir .libs 2>/dev/null
9269   fi
9270
9271 fi
9272 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9273 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9274
9275 cat >>confdefs.h <<_ACEOF
9276 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9277 _ACEOF
9278
9279
9280
9281
9282
9283
9284 # Check for command to grab the raw symbol name followed by C symbol from nm.
9285 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9286 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9287 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9288   echo $ECHO_N "(cached) $ECHO_C" >&6
9289 else
9290
9291 # These are sane defaults that work on at least a few old systems.
9292 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9293
9294 # Character class describing NM global symbol codes.
9295 symcode='[BCDEGRST]'
9296
9297 # Regexp to match symbols that can be accessed directly from C.
9298 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9299
9300 # Transform an extracted symbol line into a proper C declaration
9301 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9302
9303 # Transform an extracted symbol line into symbol name and symbol address
9304 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'"
9305
9306 # Define system-specific variables.
9307 case $host_os in
9308 aix*)
9309   symcode='[BCDT]'
9310   ;;
9311 cygwin* | mingw* | pw32*)
9312   symcode='[ABCDGISTW]'
9313   ;;
9314 hpux*) # Its linker distinguishes data from code symbols
9315   if test "$host_cpu" = ia64; then
9316     symcode='[ABCDEGRST]'
9317   fi
9318   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9319   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'"
9320   ;;
9321 linux*)
9322   if test "$host_cpu" = ia64; then
9323     symcode='[ABCDGIRSTW]'
9324     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9325     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
9326   fi
9327   ;;
9328 irix* | nonstopux*)
9329   symcode='[BCDEGRST]'
9330   ;;
9331 osf*)
9332   symcode='[BCDEGQRST]'
9333   ;;
9334 solaris*)
9335   symcode='[BDRT]'
9336   ;;
9337 sco3.2v5*)
9338   symcode='[DT]'
9339   ;;
9340 sysv4.2uw2*)
9341   symcode='[DT]'
9342   ;;
9343 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9344   symcode='[ABDT]'
9345   ;;
9346 sysv4)
9347   symcode='[DFNSTU]'
9348   ;;
9349 esac
9350
9351 # Handle CRLF in mingw tool chain
9352 opt_cr=
9353 case $build_os in
9354 mingw*)
9355   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9356   ;;
9357 esac
9358
9359 # If we're using GNU nm, then use its standard symbol codes.
9360 case `$NM -V 2>&1` in
9361 *GNU* | *'with BFD'*)
9362   symcode='[ABCDGIRSTW]' ;;
9363 esac
9364
9365 # Try without a prefix undercore, then with it.
9366 for ac_symprfx in "" "_"; do
9367
9368   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9369   symxfrm="\\1 $ac_symprfx\\2 \\2"
9370
9371   # Write the raw and C identifiers.
9372   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9373
9374   # Check to see that the pipe works correctly.
9375   pipe_works=no
9376
9377   rm -f conftest*
9378   cat > conftest.$ac_ext <<EOF
9379 #ifdef __cplusplus
9380 extern "C" {
9381 #endif
9382 char nm_test_var;
9383 void nm_test_func(){}
9384 #ifdef __cplusplus
9385 }
9386 #endif
9387 int main(){nm_test_var='a';nm_test_func();return(0);}
9388 EOF
9389
9390   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9391   (eval $ac_compile) 2>&5
9392   ac_status=$?
9393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394   (exit $ac_status); }; then
9395     # Now try to grab the symbols.
9396     nlist=conftest.nm
9397     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9398   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9399   ac_status=$?
9400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401   (exit $ac_status); } && test -s "$nlist"; then
9402       # Try sorting and uniquifying the output.
9403       if sort "$nlist" | uniq > "$nlist"T; then
9404         mv -f "$nlist"T "$nlist"
9405       else
9406         rm -f "$nlist"T
9407       fi
9408
9409       # Make sure that we snagged all the symbols we need.
9410       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9411         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9412           cat <<EOF > conftest.$ac_ext
9413 #ifdef __cplusplus
9414 extern "C" {
9415 #endif
9416
9417 EOF
9418           # Now generate the symbol file.
9419           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9420
9421           cat <<EOF >> conftest.$ac_ext
9422 #if defined (__STDC__) && __STDC__
9423 # define lt_ptr_t void *
9424 #else
9425 # define lt_ptr_t char *
9426 # define const
9427 #endif
9428
9429 /* The mapping between symbol names and symbols. */
9430 const struct {
9431   const char *name;
9432   lt_ptr_t address;
9433 }
9434 lt_preloaded_symbols[] =
9435 {
9436 EOF
9437           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9438           cat <<\EOF >> conftest.$ac_ext
9439   {0, (lt_ptr_t) 0}
9440 };
9441
9442 #ifdef __cplusplus
9443 }
9444 #endif
9445 EOF
9446           # Now try linking the two files.
9447           mv conftest.$ac_objext conftstm.$ac_objext
9448           lt_save_LIBS="$LIBS"
9449           lt_save_CFLAGS="$CFLAGS"
9450           LIBS="conftstm.$ac_objext"
9451           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9452           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9453   (eval $ac_link) 2>&5
9454   ac_status=$?
9455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9457             pipe_works=yes
9458           fi
9459           LIBS="$lt_save_LIBS"
9460           CFLAGS="$lt_save_CFLAGS"
9461         else
9462           echo "cannot find nm_test_func in $nlist" >&5
9463         fi
9464       else
9465         echo "cannot find nm_test_var in $nlist" >&5
9466       fi
9467     else
9468       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9469     fi
9470   else
9471     echo "$progname: failed program was:" >&5
9472     cat conftest.$ac_ext >&5
9473   fi
9474   rm -f conftest* conftst*
9475
9476   # Do not use the global_symbol_pipe unless it works.
9477   if test "$pipe_works" = yes; then
9478     break
9479   else
9480     lt_cv_sys_global_symbol_pipe=
9481   fi
9482 done
9483
9484 fi
9485
9486 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9487   lt_cv_sys_global_symbol_to_cdecl=
9488 fi
9489 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9490   { echo "$as_me:$LINENO: result: failed" >&5
9491 echo "${ECHO_T}failed" >&6; }
9492 else
9493   { echo "$as_me:$LINENO: result: ok" >&5
9494 echo "${ECHO_T}ok" >&6; }
9495 fi
9496
9497
9498 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9499 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9500 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9501   echo $ECHO_N "(cached) $ECHO_C" >&6
9502 else
9503   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9504     libltdl_cv_preloaded_symbols=yes
9505   else
9506     libltdl_cv_preloaded_symbols=no
9507   fi
9508
9509 fi
9510 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9511 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9512 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9513
9514 cat >>confdefs.h <<\_ACEOF
9515 #define HAVE_PRELOADED_SYMBOLS 1
9516 _ACEOF
9517
9518 fi
9519
9520 LIBADD_DL=
9521
9522 ac_ext=c
9523 ac_cpp='$CPP $CPPFLAGS'
9524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9527
9528
9529 { echo "$as_me:$LINENO: checking for shl_load" >&5
9530 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9531 if test "${ac_cv_func_shl_load+set}" = set; then
9532   echo $ECHO_N "(cached) $ECHO_C" >&6
9533 else
9534   cat >conftest.$ac_ext <<_ACEOF
9535 /* confdefs.h.  */
9536 _ACEOF
9537 cat confdefs.h >>conftest.$ac_ext
9538 cat >>conftest.$ac_ext <<_ACEOF
9539 /* end confdefs.h.  */
9540 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9541    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9542 #define shl_load innocuous_shl_load
9543
9544 /* System header to define __stub macros and hopefully few prototypes,
9545     which can conflict with char shl_load (); below.
9546     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9547     <limits.h> exists even on freestanding compilers.  */
9548
9549 #ifdef __STDC__
9550 # include <limits.h>
9551 #else
9552 # include <assert.h>
9553 #endif
9554
9555 #undef shl_load
9556
9557 /* Override any GCC internal prototype to avoid an error.
9558    Use char because int might match the return type of a GCC
9559    builtin and then its argument prototype would still apply.  */
9560 #ifdef __cplusplus
9561 extern "C"
9562 #endif
9563 char shl_load ();
9564 /* The GNU C library defines this for functions which it implements
9565     to always fail with ENOSYS.  Some functions are actually named
9566     something starting with __ and the normal name is an alias.  */
9567 #if defined __stub_shl_load || defined __stub___shl_load
9568 choke me
9569 #endif
9570
9571 int
9572 main ()
9573 {
9574 return shl_load ();
9575   ;
9576   return 0;
9577 }
9578 _ACEOF
9579 rm -f conftest.$ac_objext conftest$ac_exeext
9580 if { (ac_try="$ac_link"
9581 case "(($ac_try" in
9582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9583   *) ac_try_echo=$ac_try;;
9584 esac
9585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9586   (eval "$ac_link") 2>conftest.er1
9587   ac_status=$?
9588   grep -v '^ *+' conftest.er1 >conftest.err
9589   rm -f conftest.er1
9590   cat conftest.err >&5
9591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592   (exit $ac_status); } &&
9593          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9594   { (case "(($ac_try" in
9595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9596   *) ac_try_echo=$ac_try;;
9597 esac
9598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9599   (eval "$ac_try") 2>&5
9600   ac_status=$?
9601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602   (exit $ac_status); }; } &&
9603          { ac_try='test -s conftest$ac_exeext'
9604   { (case "(($ac_try" in
9605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9606   *) ac_try_echo=$ac_try;;
9607 esac
9608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9609   (eval "$ac_try") 2>&5
9610   ac_status=$?
9611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612   (exit $ac_status); }; }; then
9613   ac_cv_func_shl_load=yes
9614 else
9615   echo "$as_me: failed program was:" >&5
9616 sed 's/^/| /' conftest.$ac_ext >&5
9617
9618         ac_cv_func_shl_load=no
9619 fi
9620
9621 rm -f core conftest.err conftest.$ac_objext \
9622       conftest$ac_exeext conftest.$ac_ext
9623 fi
9624 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9625 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9626 if test $ac_cv_func_shl_load = yes; then
9627
9628 cat >>confdefs.h <<\_ACEOF
9629 #define HAVE_SHL_LOAD 1
9630 _ACEOF
9631
9632 else
9633   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9634 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9635 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9636   echo $ECHO_N "(cached) $ECHO_C" >&6
9637 else
9638   ac_check_lib_save_LIBS=$LIBS
9639 LIBS="-ldld  $LIBS"
9640 cat >conftest.$ac_ext <<_ACEOF
9641 /* confdefs.h.  */
9642 _ACEOF
9643 cat confdefs.h >>conftest.$ac_ext
9644 cat >>conftest.$ac_ext <<_ACEOF
9645 /* end confdefs.h.  */
9646
9647 /* Override any GCC internal prototype to avoid an error.
9648    Use char because int might match the return type of a GCC
9649    builtin and then its argument prototype would still apply.  */
9650 #ifdef __cplusplus
9651 extern "C"
9652 #endif
9653 char shl_load ();
9654 int
9655 main ()
9656 {
9657 return shl_load ();
9658   ;
9659   return 0;
9660 }
9661 _ACEOF
9662 rm -f conftest.$ac_objext conftest$ac_exeext
9663 if { (ac_try="$ac_link"
9664 case "(($ac_try" in
9665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9666   *) ac_try_echo=$ac_try;;
9667 esac
9668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9669   (eval "$ac_link") 2>conftest.er1
9670   ac_status=$?
9671   grep -v '^ *+' conftest.er1 >conftest.err
9672   rm -f conftest.er1
9673   cat conftest.err >&5
9674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675   (exit $ac_status); } &&
9676          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9677   { (case "(($ac_try" in
9678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9679   *) ac_try_echo=$ac_try;;
9680 esac
9681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9682   (eval "$ac_try") 2>&5
9683   ac_status=$?
9684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685   (exit $ac_status); }; } &&
9686          { ac_try='test -s conftest$ac_exeext'
9687   { (case "(($ac_try" in
9688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9689   *) ac_try_echo=$ac_try;;
9690 esac
9691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9692   (eval "$ac_try") 2>&5
9693   ac_status=$?
9694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695   (exit $ac_status); }; }; then
9696   ac_cv_lib_dld_shl_load=yes
9697 else
9698   echo "$as_me: failed program was:" >&5
9699 sed 's/^/| /' conftest.$ac_ext >&5
9700
9701         ac_cv_lib_dld_shl_load=no
9702 fi
9703
9704 rm -f core conftest.err conftest.$ac_objext \
9705       conftest$ac_exeext conftest.$ac_ext
9706 LIBS=$ac_check_lib_save_LIBS
9707 fi
9708 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9709 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9710 if test $ac_cv_lib_dld_shl_load = yes; then
9711
9712 cat >>confdefs.h <<\_ACEOF
9713 #define HAVE_SHL_LOAD 1
9714 _ACEOF
9715
9716         LIBADD_DL="$LIBADD_DL -ldld"
9717 else
9718   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9719 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9720 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9721   echo $ECHO_N "(cached) $ECHO_C" >&6
9722 else
9723   ac_check_lib_save_LIBS=$LIBS
9724 LIBS="-ldl  $LIBS"
9725 cat >conftest.$ac_ext <<_ACEOF
9726 /* confdefs.h.  */
9727 _ACEOF
9728 cat confdefs.h >>conftest.$ac_ext
9729 cat >>conftest.$ac_ext <<_ACEOF
9730 /* end confdefs.h.  */
9731
9732 /* Override any GCC internal prototype to avoid an error.
9733    Use char because int might match the return type of a GCC
9734    builtin and then its argument prototype would still apply.  */
9735 #ifdef __cplusplus
9736 extern "C"
9737 #endif
9738 char dlopen ();
9739 int
9740 main ()
9741 {
9742 return dlopen ();
9743   ;
9744   return 0;
9745 }
9746 _ACEOF
9747 rm -f conftest.$ac_objext conftest$ac_exeext
9748 if { (ac_try="$ac_link"
9749 case "(($ac_try" in
9750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751   *) ac_try_echo=$ac_try;;
9752 esac
9753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9754   (eval "$ac_link") 2>conftest.er1
9755   ac_status=$?
9756   grep -v '^ *+' conftest.er1 >conftest.err
9757   rm -f conftest.er1
9758   cat conftest.err >&5
9759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760   (exit $ac_status); } &&
9761          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9762   { (case "(($ac_try" in
9763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764   *) ac_try_echo=$ac_try;;
9765 esac
9766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9767   (eval "$ac_try") 2>&5
9768   ac_status=$?
9769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770   (exit $ac_status); }; } &&
9771          { ac_try='test -s conftest$ac_exeext'
9772   { (case "(($ac_try" in
9773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9774   *) ac_try_echo=$ac_try;;
9775 esac
9776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9777   (eval "$ac_try") 2>&5
9778   ac_status=$?
9779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780   (exit $ac_status); }; }; then
9781   ac_cv_lib_dl_dlopen=yes
9782 else
9783   echo "$as_me: failed program was:" >&5
9784 sed 's/^/| /' conftest.$ac_ext >&5
9785
9786         ac_cv_lib_dl_dlopen=no
9787 fi
9788
9789 rm -f core conftest.err conftest.$ac_objext \
9790       conftest$ac_exeext conftest.$ac_ext
9791 LIBS=$ac_check_lib_save_LIBS
9792 fi
9793 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9794 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9795 if test $ac_cv_lib_dl_dlopen = yes; then
9796
9797 cat >>confdefs.h <<\_ACEOF
9798 #define HAVE_LIBDL 1
9799 _ACEOF
9800
9801                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9802 else
9803   cat >conftest.$ac_ext <<_ACEOF
9804 /* confdefs.h.  */
9805 _ACEOF
9806 cat confdefs.h >>conftest.$ac_ext
9807 cat >>conftest.$ac_ext <<_ACEOF
9808 /* end confdefs.h.  */
9809 #if HAVE_DLFCN_H
9810 #  include <dlfcn.h>
9811 #endif
9812
9813 int
9814 main ()
9815 {
9816 dlopen(0, 0);
9817   ;
9818   return 0;
9819 }
9820 _ACEOF
9821 rm -f conftest.$ac_objext conftest$ac_exeext
9822 if { (ac_try="$ac_link"
9823 case "(($ac_try" in
9824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9825   *) ac_try_echo=$ac_try;;
9826 esac
9827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9828   (eval "$ac_link") 2>conftest.er1
9829   ac_status=$?
9830   grep -v '^ *+' conftest.er1 >conftest.err
9831   rm -f conftest.er1
9832   cat conftest.err >&5
9833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834   (exit $ac_status); } &&
9835          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9836   { (case "(($ac_try" in
9837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9838   *) ac_try_echo=$ac_try;;
9839 esac
9840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9841   (eval "$ac_try") 2>&5
9842   ac_status=$?
9843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844   (exit $ac_status); }; } &&
9845          { ac_try='test -s conftest$ac_exeext'
9846   { (case "(($ac_try" in
9847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848   *) ac_try_echo=$ac_try;;
9849 esac
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851   (eval "$ac_try") 2>&5
9852   ac_status=$?
9853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854   (exit $ac_status); }; }; then
9855
9856 cat >>confdefs.h <<\_ACEOF
9857 #define HAVE_LIBDL 1
9858 _ACEOF
9859  libltdl_cv_func_dlopen="yes"
9860 else
9861   echo "$as_me: failed program was:" >&5
9862 sed 's/^/| /' conftest.$ac_ext >&5
9863
9864         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9865 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9866 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9867   echo $ECHO_N "(cached) $ECHO_C" >&6
9868 else
9869   ac_check_lib_save_LIBS=$LIBS
9870 LIBS="-lsvld  $LIBS"
9871 cat >conftest.$ac_ext <<_ACEOF
9872 /* confdefs.h.  */
9873 _ACEOF
9874 cat confdefs.h >>conftest.$ac_ext
9875 cat >>conftest.$ac_ext <<_ACEOF
9876 /* end confdefs.h.  */
9877
9878 /* Override any GCC internal prototype to avoid an error.
9879    Use char because int might match the return type of a GCC
9880    builtin and then its argument prototype would still apply.  */
9881 #ifdef __cplusplus
9882 extern "C"
9883 #endif
9884 char dlopen ();
9885 int
9886 main ()
9887 {
9888 return dlopen ();
9889   ;
9890   return 0;
9891 }
9892 _ACEOF
9893 rm -f conftest.$ac_objext conftest$ac_exeext
9894 if { (ac_try="$ac_link"
9895 case "(($ac_try" in
9896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9897   *) ac_try_echo=$ac_try;;
9898 esac
9899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9900   (eval "$ac_link") 2>conftest.er1
9901   ac_status=$?
9902   grep -v '^ *+' conftest.er1 >conftest.err
9903   rm -f conftest.er1
9904   cat conftest.err >&5
9905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906   (exit $ac_status); } &&
9907          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9908   { (case "(($ac_try" in
9909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9910   *) ac_try_echo=$ac_try;;
9911 esac
9912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9913   (eval "$ac_try") 2>&5
9914   ac_status=$?
9915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916   (exit $ac_status); }; } &&
9917          { ac_try='test -s conftest$ac_exeext'
9918   { (case "(($ac_try" in
9919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9920   *) ac_try_echo=$ac_try;;
9921 esac
9922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9923   (eval "$ac_try") 2>&5
9924   ac_status=$?
9925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926   (exit $ac_status); }; }; then
9927   ac_cv_lib_svld_dlopen=yes
9928 else
9929   echo "$as_me: failed program was:" >&5
9930 sed 's/^/| /' conftest.$ac_ext >&5
9931
9932         ac_cv_lib_svld_dlopen=no
9933 fi
9934
9935 rm -f core conftest.err conftest.$ac_objext \
9936       conftest$ac_exeext conftest.$ac_ext
9937 LIBS=$ac_check_lib_save_LIBS
9938 fi
9939 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9940 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9941 if test $ac_cv_lib_svld_dlopen = yes; then
9942
9943 cat >>confdefs.h <<\_ACEOF
9944 #define HAVE_LIBDL 1
9945 _ACEOF
9946
9947                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9948 else
9949   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9950 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9951 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9952   echo $ECHO_N "(cached) $ECHO_C" >&6
9953 else
9954   ac_check_lib_save_LIBS=$LIBS
9955 LIBS="-ldld  $LIBS"
9956 cat >conftest.$ac_ext <<_ACEOF
9957 /* confdefs.h.  */
9958 _ACEOF
9959 cat confdefs.h >>conftest.$ac_ext
9960 cat >>conftest.$ac_ext <<_ACEOF
9961 /* end confdefs.h.  */
9962
9963 /* Override any GCC internal prototype to avoid an error.
9964    Use char because int might match the return type of a GCC
9965    builtin and then its argument prototype would still apply.  */
9966 #ifdef __cplusplus
9967 extern "C"
9968 #endif
9969 char dld_link ();
9970 int
9971 main ()
9972 {
9973 return dld_link ();
9974   ;
9975   return 0;
9976 }
9977 _ACEOF
9978 rm -f conftest.$ac_objext conftest$ac_exeext
9979 if { (ac_try="$ac_link"
9980 case "(($ac_try" in
9981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982   *) ac_try_echo=$ac_try;;
9983 esac
9984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9985   (eval "$ac_link") 2>conftest.er1
9986   ac_status=$?
9987   grep -v '^ *+' conftest.er1 >conftest.err
9988   rm -f conftest.er1
9989   cat conftest.err >&5
9990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991   (exit $ac_status); } &&
9992          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9993   { (case "(($ac_try" in
9994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9995   *) ac_try_echo=$ac_try;;
9996 esac
9997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9998   (eval "$ac_try") 2>&5
9999   ac_status=$?
10000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001   (exit $ac_status); }; } &&
10002          { ac_try='test -s conftest$ac_exeext'
10003   { (case "(($ac_try" in
10004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10005   *) ac_try_echo=$ac_try;;
10006 esac
10007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10008   (eval "$ac_try") 2>&5
10009   ac_status=$?
10010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011   (exit $ac_status); }; }; then
10012   ac_cv_lib_dld_dld_link=yes
10013 else
10014   echo "$as_me: failed program was:" >&5
10015 sed 's/^/| /' conftest.$ac_ext >&5
10016
10017         ac_cv_lib_dld_dld_link=no
10018 fi
10019
10020 rm -f core conftest.err conftest.$ac_objext \
10021       conftest$ac_exeext conftest.$ac_ext
10022 LIBS=$ac_check_lib_save_LIBS
10023 fi
10024 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10025 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10026 if test $ac_cv_lib_dld_dld_link = yes; then
10027
10028 cat >>confdefs.h <<\_ACEOF
10029 #define HAVE_DLD 1
10030 _ACEOF
10031
10032                 LIBADD_DL="$LIBADD_DL -ldld"
10033 else
10034   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10035 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10036 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10037   echo $ECHO_N "(cached) $ECHO_C" >&6
10038 else
10039   cat >conftest.$ac_ext <<_ACEOF
10040 /* confdefs.h.  */
10041 _ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h.  */
10045 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10046    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10047 #define _dyld_func_lookup innocuous__dyld_func_lookup
10048
10049 /* System header to define __stub macros and hopefully few prototypes,
10050     which can conflict with char _dyld_func_lookup (); below.
10051     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10052     <limits.h> exists even on freestanding compilers.  */
10053
10054 #ifdef __STDC__
10055 # include <limits.h>
10056 #else
10057 # include <assert.h>
10058 #endif
10059
10060 #undef _dyld_func_lookup
10061
10062 /* Override any GCC internal prototype to avoid an error.
10063    Use char because int might match the return type of a GCC
10064    builtin and then its argument prototype would still apply.  */
10065 #ifdef __cplusplus
10066 extern "C"
10067 #endif
10068 char _dyld_func_lookup ();
10069 /* The GNU C library defines this for functions which it implements
10070     to always fail with ENOSYS.  Some functions are actually named
10071     something starting with __ and the normal name is an alias.  */
10072 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10073 choke me
10074 #endif
10075
10076 int
10077 main ()
10078 {
10079 return _dyld_func_lookup ();
10080   ;
10081   return 0;
10082 }
10083 _ACEOF
10084 rm -f conftest.$ac_objext conftest$ac_exeext
10085 if { (ac_try="$ac_link"
10086 case "(($ac_try" in
10087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10088   *) ac_try_echo=$ac_try;;
10089 esac
10090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10091   (eval "$ac_link") 2>conftest.er1
10092   ac_status=$?
10093   grep -v '^ *+' conftest.er1 >conftest.err
10094   rm -f conftest.er1
10095   cat conftest.err >&5
10096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097   (exit $ac_status); } &&
10098          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10099   { (case "(($ac_try" in
10100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10101   *) ac_try_echo=$ac_try;;
10102 esac
10103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10104   (eval "$ac_try") 2>&5
10105   ac_status=$?
10106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107   (exit $ac_status); }; } &&
10108          { ac_try='test -s conftest$ac_exeext'
10109   { (case "(($ac_try" in
10110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10111   *) ac_try_echo=$ac_try;;
10112 esac
10113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10114   (eval "$ac_try") 2>&5
10115   ac_status=$?
10116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117   (exit $ac_status); }; }; then
10118   ac_cv_func__dyld_func_lookup=yes
10119 else
10120   echo "$as_me: failed program was:" >&5
10121 sed 's/^/| /' conftest.$ac_ext >&5
10122
10123         ac_cv_func__dyld_func_lookup=no
10124 fi
10125
10126 rm -f core conftest.err conftest.$ac_objext \
10127       conftest$ac_exeext conftest.$ac_ext
10128 fi
10129 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10130 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10131 if test $ac_cv_func__dyld_func_lookup = yes; then
10132
10133 cat >>confdefs.h <<\_ACEOF
10134 #define HAVE_DYLD 1
10135 _ACEOF
10136
10137 fi
10138
10139
10140 fi
10141
10142
10143 fi
10144
10145
10146 fi
10147
10148 rm -f core conftest.err conftest.$ac_objext \
10149       conftest$ac_exeext conftest.$ac_ext
10150
10151 fi
10152
10153
10154 fi
10155
10156
10157 fi
10158
10159
10160 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10161 then
10162   lt_save_LIBS="$LIBS"
10163   LIBS="$LIBS $LIBADD_DL"
10164
10165 for ac_func in dlerror
10166 do
10167 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10168 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10170 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10171   echo $ECHO_N "(cached) $ECHO_C" >&6
10172 else
10173   cat >conftest.$ac_ext <<_ACEOF
10174 /* confdefs.h.  */
10175 _ACEOF
10176 cat confdefs.h >>conftest.$ac_ext
10177 cat >>conftest.$ac_ext <<_ACEOF
10178 /* end confdefs.h.  */
10179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10180    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10181 #define $ac_func innocuous_$ac_func
10182
10183 /* System header to define __stub macros and hopefully few prototypes,
10184     which can conflict with char $ac_func (); below.
10185     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10186     <limits.h> exists even on freestanding compilers.  */
10187
10188 #ifdef __STDC__
10189 # include <limits.h>
10190 #else
10191 # include <assert.h>
10192 #endif
10193
10194 #undef $ac_func
10195
10196 /* Override any GCC internal prototype to avoid an error.
10197    Use char because int might match the return type of a GCC
10198    builtin and then its argument prototype would still apply.  */
10199 #ifdef __cplusplus
10200 extern "C"
10201 #endif
10202 char $ac_func ();
10203 /* The GNU C library defines this for functions which it implements
10204     to always fail with ENOSYS.  Some functions are actually named
10205     something starting with __ and the normal name is an alias.  */
10206 #if defined __stub_$ac_func || defined __stub___$ac_func
10207 choke me
10208 #endif
10209
10210 int
10211 main ()
10212 {
10213 return $ac_func ();
10214   ;
10215   return 0;
10216 }
10217 _ACEOF
10218 rm -f conftest.$ac_objext conftest$ac_exeext
10219 if { (ac_try="$ac_link"
10220 case "(($ac_try" in
10221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10222   *) ac_try_echo=$ac_try;;
10223 esac
10224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10225   (eval "$ac_link") 2>conftest.er1
10226   ac_status=$?
10227   grep -v '^ *+' conftest.er1 >conftest.err
10228   rm -f conftest.er1
10229   cat conftest.err >&5
10230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231   (exit $ac_status); } &&
10232          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10233   { (case "(($ac_try" in
10234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10235   *) ac_try_echo=$ac_try;;
10236 esac
10237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10238   (eval "$ac_try") 2>&5
10239   ac_status=$?
10240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241   (exit $ac_status); }; } &&
10242          { ac_try='test -s conftest$ac_exeext'
10243   { (case "(($ac_try" in
10244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10245   *) ac_try_echo=$ac_try;;
10246 esac
10247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10248   (eval "$ac_try") 2>&5
10249   ac_status=$?
10250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251   (exit $ac_status); }; }; then
10252   eval "$as_ac_var=yes"
10253 else
10254   echo "$as_me: failed program was:" >&5
10255 sed 's/^/| /' conftest.$ac_ext >&5
10256
10257         eval "$as_ac_var=no"
10258 fi
10259
10260 rm -f core conftest.err conftest.$ac_objext \
10261       conftest$ac_exeext conftest.$ac_ext
10262 fi
10263 ac_res=`eval echo '${'$as_ac_var'}'`
10264                { echo "$as_me:$LINENO: result: $ac_res" >&5
10265 echo "${ECHO_T}$ac_res" >&6; }
10266 if test `eval echo '${'$as_ac_var'}'` = yes; then
10267   cat >>confdefs.h <<_ACEOF
10268 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10269 _ACEOF
10270
10271 fi
10272 done
10273
10274   LIBS="$lt_save_LIBS"
10275 fi
10276 ac_ext=c
10277 ac_cpp='$CPP $CPPFLAGS'
10278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10281
10282
10283
10284 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10285 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10286 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10287   echo $ECHO_N "(cached) $ECHO_C" >&6
10288 else
10289   ac_cv_sys_symbol_underscore=no
10290   cat > conftest.$ac_ext <<EOF
10291 void nm_test_func(){}
10292 int main(){nm_test_func;return 0;}
10293 EOF
10294   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10295   (eval $ac_compile) 2>&5
10296   ac_status=$?
10297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298   (exit $ac_status); }; then
10299     # Now try to grab the symbols.
10300     ac_nlist=conftest.nm
10301     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10302   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10303   ac_status=$?
10304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305   (exit $ac_status); } && test -s "$ac_nlist"; then
10306       # See whether the symbols have a leading underscore.
10307       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10308         ac_cv_sys_symbol_underscore=yes
10309       else
10310         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10311           :
10312         else
10313           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10314         fi
10315       fi
10316     else
10317       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10318     fi
10319   else
10320     echo "configure: failed program was:" >&5
10321     cat conftest.c >&5
10322   fi
10323   rm -rf conftest*
10324
10325 fi
10326 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10327 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10328
10329
10330 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10331   if test x"$libltdl_cv_func_dlopen" = xyes ||
10332      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10333         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10334 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10335 if test "${libltdl_cv_need_uscore+set}" = set; then
10336   echo $ECHO_N "(cached) $ECHO_C" >&6
10337 else
10338   libltdl_cv_need_uscore=unknown
10339           save_LIBS="$LIBS"
10340           LIBS="$LIBS $LIBADD_DL"
10341           if test "$cross_compiling" = yes; then :
10342   libltdl_cv_need_uscore=cross
10343 else
10344   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10345   lt_status=$lt_dlunknown
10346   cat > conftest.$ac_ext <<EOF
10347 #line 10347 "configure"
10348 #include "confdefs.h"
10349
10350 #if HAVE_DLFCN_H
10351 #include <dlfcn.h>
10352 #endif
10353
10354 #include <stdio.h>
10355
10356 #ifdef RTLD_GLOBAL
10357 #  define LT_DLGLOBAL           RTLD_GLOBAL
10358 #else
10359 #  ifdef DL_GLOBAL
10360 #    define LT_DLGLOBAL         DL_GLOBAL
10361 #  else
10362 #    define LT_DLGLOBAL         0
10363 #  endif
10364 #endif
10365
10366 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10367    find out it does not work in some platform. */
10368 #ifndef LT_DLLAZY_OR_NOW
10369 #  ifdef RTLD_LAZY
10370 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10371 #  else
10372 #    ifdef DL_LAZY
10373 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10374 #    else
10375 #      ifdef RTLD_NOW
10376 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10377 #      else
10378 #        ifdef DL_NOW
10379 #          define LT_DLLAZY_OR_NOW      DL_NOW
10380 #        else
10381 #          define LT_DLLAZY_OR_NOW      0
10382 #        endif
10383 #      endif
10384 #    endif
10385 #  endif
10386 #endif
10387
10388 #ifdef __cplusplus
10389 extern "C" void exit (int);
10390 #endif
10391
10392 void fnord() { int i=42;}
10393 int main ()
10394 {
10395   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10396   int status = $lt_dlunknown;
10397
10398   if (self)
10399     {
10400       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10401       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10402       /* dlclose (self); */
10403     }
10404   else
10405     puts (dlerror ());
10406
10407     exit (status);
10408 }
10409 EOF
10410   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10411   (eval $ac_link) 2>&5
10412   ac_status=$?
10413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10415     (./conftest; exit; ) >&5 2>/dev/null
10416     lt_status=$?
10417     case x$lt_status in
10418       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10419       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10420       x$lt_dlunknown|x*)  ;;
10421     esac
10422   else :
10423     # compilation failed
10424
10425   fi
10426 fi
10427 rm -fr conftest*
10428
10429           LIBS="$save_LIBS"
10430
10431 fi
10432 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10433 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10434   fi
10435 fi
10436
10437 if test x"$libltdl_cv_need_uscore" = xyes; then
10438
10439 cat >>confdefs.h <<\_ACEOF
10440 #define NEED_USCORE 1
10441 _ACEOF
10442
10443 fi
10444
10445
10446 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10447 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10448 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10449   echo $ECHO_N "(cached) $ECHO_C" >&6
10450 else
10451   # PORTME does your system automatically load deplibs for dlopen?
10452   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10453   # For now, we just catch OSes we know something about -- in the
10454   # future, we'll try test this programmatically.
10455   libltdl_cv_sys_dlopen_deplibs=unknown
10456   case "$host_os" in
10457   aix3*|aix4.1.*|aix4.2.*)
10458     # Unknown whether this is true for these versions of AIX, but
10459     # we want this `case' here to explicitly catch those versions.
10460     libltdl_cv_sys_dlopen_deplibs=unknown
10461     ;;
10462   aix[45]*)
10463     libltdl_cv_sys_dlopen_deplibs=yes
10464     ;;
10465   darwin*)
10466     # Assuming the user has installed a libdl from somewhere, this is true
10467     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10468     libltdl_cv_sys_dlopen_deplibs=yes
10469     ;;
10470   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10471     # GNU and its variants, using gnu ld.so (Glibc)
10472     libltdl_cv_sys_dlopen_deplibs=yes
10473     ;;
10474   hpux10*|hpux11*)
10475     libltdl_cv_sys_dlopen_deplibs=yes
10476     ;;
10477   interix*)
10478     libltdl_cv_sys_dlopen_deplibs=yes
10479     ;;
10480   irix[12345]*|irix6.[01]*)
10481     # Catch all versions of IRIX before 6.2, and indicate that we don't
10482     # know how it worked for any of those versions.
10483     libltdl_cv_sys_dlopen_deplibs=unknown
10484     ;;
10485   irix*)
10486     # The case above catches anything before 6.2, and it's known that
10487     # at 6.2 and later dlopen does load deplibs.
10488     libltdl_cv_sys_dlopen_deplibs=yes
10489     ;;
10490   netbsd*)
10491     libltdl_cv_sys_dlopen_deplibs=yes
10492     ;;
10493   openbsd*)
10494     libltdl_cv_sys_dlopen_deplibs=yes
10495     ;;
10496   osf[1234]*)
10497     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10498     # it did *not* use an RPATH in a shared library to find objects the
10499     # library depends on, so we explicitly say `no'.
10500     libltdl_cv_sys_dlopen_deplibs=no
10501     ;;
10502   osf5.0|osf5.0a|osf5.1)
10503     # dlopen *does* load deplibs and with the right loader patch applied
10504     # it even uses RPATH in a shared library to search for shared objects
10505     # that the library depends on, but there's no easy way to know if that
10506     # patch is installed.  Since this is the case, all we can really
10507     # say is unknown -- it depends on the patch being installed.  If
10508     # it is, this changes to `yes'.  Without it, it would be `no'.
10509     libltdl_cv_sys_dlopen_deplibs=unknown
10510     ;;
10511   osf*)
10512     # the two cases above should catch all versions of osf <= 5.1.  Read
10513     # the comments above for what we know about them.
10514     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10515     # is used to find them so we can finally say `yes'.
10516     libltdl_cv_sys_dlopen_deplibs=yes
10517     ;;
10518   solaris*)
10519     libltdl_cv_sys_dlopen_deplibs=yes
10520     ;;
10521   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10522     libltdl_cv_sys_dlopen_deplibs=yes
10523     ;;
10524   esac
10525
10526 fi
10527 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10528 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10529 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10530
10531 cat >>confdefs.h <<\_ACEOF
10532 #define LTDL_DLOPEN_DEPLIBS 1
10533 _ACEOF
10534
10535 fi
10536
10537
10538 for ac_header in argz.h
10539 do
10540 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10542   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10545   echo $ECHO_N "(cached) $ECHO_C" >&6
10546 fi
10547 ac_res=`eval echo '${'$as_ac_Header'}'`
10548                { echo "$as_me:$LINENO: result: $ac_res" >&5
10549 echo "${ECHO_T}$ac_res" >&6; }
10550 else
10551   # Is the header compilable?
10552 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10553 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10554 cat >conftest.$ac_ext <<_ACEOF
10555 /* confdefs.h.  */
10556 _ACEOF
10557 cat confdefs.h >>conftest.$ac_ext
10558 cat >>conftest.$ac_ext <<_ACEOF
10559 /* end confdefs.h.  */
10560 $ac_includes_default
10561 #include <$ac_header>
10562 _ACEOF
10563 rm -f conftest.$ac_objext
10564 if { (ac_try="$ac_compile"
10565 case "(($ac_try" in
10566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10567   *) ac_try_echo=$ac_try;;
10568 esac
10569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10570   (eval "$ac_compile") 2>conftest.er1
10571   ac_status=$?
10572   grep -v '^ *+' conftest.er1 >conftest.err
10573   rm -f conftest.er1
10574   cat conftest.err >&5
10575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576   (exit $ac_status); } &&
10577          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10578   { (case "(($ac_try" in
10579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10580   *) ac_try_echo=$ac_try;;
10581 esac
10582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10583   (eval "$ac_try") 2>&5
10584   ac_status=$?
10585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586   (exit $ac_status); }; } &&
10587          { ac_try='test -s conftest.$ac_objext'
10588   { (case "(($ac_try" in
10589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10590   *) ac_try_echo=$ac_try;;
10591 esac
10592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10593   (eval "$ac_try") 2>&5
10594   ac_status=$?
10595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596   (exit $ac_status); }; }; then
10597   ac_header_compiler=yes
10598 else
10599   echo "$as_me: failed program was:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10601
10602         ac_header_compiler=no
10603 fi
10604
10605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10606 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10607 echo "${ECHO_T}$ac_header_compiler" >&6; }
10608
10609 # Is the header present?
10610 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10611 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10612 cat >conftest.$ac_ext <<_ACEOF
10613 /* confdefs.h.  */
10614 _ACEOF
10615 cat confdefs.h >>conftest.$ac_ext
10616 cat >>conftest.$ac_ext <<_ACEOF
10617 /* end confdefs.h.  */
10618 #include <$ac_header>
10619 _ACEOF
10620 if { (ac_try="$ac_cpp conftest.$ac_ext"
10621 case "(($ac_try" in
10622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10623   *) ac_try_echo=$ac_try;;
10624 esac
10625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10626   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10627   ac_status=$?
10628   grep -v '^ *+' conftest.er1 >conftest.err
10629   rm -f conftest.er1
10630   cat conftest.err >&5
10631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632   (exit $ac_status); } >/dev/null; then
10633   if test -s conftest.err; then
10634     ac_cpp_err=$ac_c_preproc_warn_flag
10635     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10636   else
10637     ac_cpp_err=
10638   fi
10639 else
10640   ac_cpp_err=yes
10641 fi
10642 if test -z "$ac_cpp_err"; then
10643   ac_header_preproc=yes
10644 else
10645   echo "$as_me: failed program was:" >&5
10646 sed 's/^/| /' conftest.$ac_ext >&5
10647
10648   ac_header_preproc=no
10649 fi
10650
10651 rm -f conftest.err conftest.$ac_ext
10652 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10653 echo "${ECHO_T}$ac_header_preproc" >&6; }
10654
10655 # So?  What about this header?
10656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10657   yes:no: )
10658     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10660     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10662     ac_header_preproc=yes
10663     ;;
10664   no:yes:* )
10665     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10667     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10668 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10669     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10671     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10672 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10673     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10675     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10677     ( cat <<\_ASBOX
10678 ## ------------------------------ ##
10679 ## Report this to bugs@yourdomain ##
10680 ## ------------------------------ ##
10681 _ASBOX
10682      ) | sed "s/^/$as_me: WARNING:     /" >&2
10683     ;;
10684 esac
10685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10688   echo $ECHO_N "(cached) $ECHO_C" >&6
10689 else
10690   eval "$as_ac_Header=\$ac_header_preproc"
10691 fi
10692 ac_res=`eval echo '${'$as_ac_Header'}'`
10693                { echo "$as_me:$LINENO: result: $ac_res" >&5
10694 echo "${ECHO_T}$ac_res" >&6; }
10695
10696 fi
10697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10698   cat >>confdefs.h <<_ACEOF
10699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10700 _ACEOF
10701
10702 fi
10703
10704 done
10705
10706
10707 { echo "$as_me:$LINENO: checking for error_t" >&5
10708 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10709 if test "${ac_cv_type_error_t+set}" = set; then
10710   echo $ECHO_N "(cached) $ECHO_C" >&6
10711 else
10712   cat >conftest.$ac_ext <<_ACEOF
10713 /* confdefs.h.  */
10714 _ACEOF
10715 cat confdefs.h >>conftest.$ac_ext
10716 cat >>conftest.$ac_ext <<_ACEOF
10717 /* end confdefs.h.  */
10718 #if HAVE_ARGZ_H
10719 #  include <argz.h>
10720 #endif
10721
10722 typedef error_t ac__type_new_;
10723 int
10724 main ()
10725 {
10726 if ((ac__type_new_ *) 0)
10727   return 0;
10728 if (sizeof (ac__type_new_))
10729   return 0;
10730   ;
10731   return 0;
10732 }
10733 _ACEOF
10734 rm -f conftest.$ac_objext
10735 if { (ac_try="$ac_compile"
10736 case "(($ac_try" in
10737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10738   *) ac_try_echo=$ac_try;;
10739 esac
10740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10741   (eval "$ac_compile") 2>conftest.er1
10742   ac_status=$?
10743   grep -v '^ *+' conftest.er1 >conftest.err
10744   rm -f conftest.er1
10745   cat conftest.err >&5
10746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747   (exit $ac_status); } &&
10748          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10749   { (case "(($ac_try" in
10750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10751   *) ac_try_echo=$ac_try;;
10752 esac
10753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10754   (eval "$ac_try") 2>&5
10755   ac_status=$?
10756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757   (exit $ac_status); }; } &&
10758          { ac_try='test -s conftest.$ac_objext'
10759   { (case "(($ac_try" in
10760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10761   *) ac_try_echo=$ac_try;;
10762 esac
10763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10764   (eval "$ac_try") 2>&5
10765   ac_status=$?
10766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767   (exit $ac_status); }; }; then
10768   ac_cv_type_error_t=yes
10769 else
10770   echo "$as_me: failed program was:" >&5
10771 sed 's/^/| /' conftest.$ac_ext >&5
10772
10773         ac_cv_type_error_t=no
10774 fi
10775
10776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10777 fi
10778 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10779 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10780 if test $ac_cv_type_error_t = yes; then
10781
10782 cat >>confdefs.h <<_ACEOF
10783 #define HAVE_ERROR_T 1
10784 _ACEOF
10785
10786
10787 else
10788
10789 cat >>confdefs.h <<\_ACEOF
10790 #define error_t int
10791 _ACEOF
10792
10793 fi
10794
10795
10796
10797
10798
10799
10800
10801 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10802 do
10803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10804 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10806 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10807   echo $ECHO_N "(cached) $ECHO_C" >&6
10808 else
10809   cat >conftest.$ac_ext <<_ACEOF
10810 /* confdefs.h.  */
10811 _ACEOF
10812 cat confdefs.h >>conftest.$ac_ext
10813 cat >>conftest.$ac_ext <<_ACEOF
10814 /* end confdefs.h.  */
10815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10816    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10817 #define $ac_func innocuous_$ac_func
10818
10819 /* System header to define __stub macros and hopefully few prototypes,
10820     which can conflict with char $ac_func (); below.
10821     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10822     <limits.h> exists even on freestanding compilers.  */
10823
10824 #ifdef __STDC__
10825 # include <limits.h>
10826 #else
10827 # include <assert.h>
10828 #endif
10829
10830 #undef $ac_func
10831
10832 /* Override any GCC internal prototype to avoid an error.
10833    Use char because int might match the return type of a GCC
10834    builtin and then its argument prototype would still apply.  */
10835 #ifdef __cplusplus
10836 extern "C"
10837 #endif
10838 char $ac_func ();
10839 /* The GNU C library defines this for functions which it implements
10840     to always fail with ENOSYS.  Some functions are actually named
10841     something starting with __ and the normal name is an alias.  */
10842 #if defined __stub_$ac_func || defined __stub___$ac_func
10843 choke me
10844 #endif
10845
10846 int
10847 main ()
10848 {
10849 return $ac_func ();
10850   ;
10851   return 0;
10852 }
10853 _ACEOF
10854 rm -f conftest.$ac_objext conftest$ac_exeext
10855 if { (ac_try="$ac_link"
10856 case "(($ac_try" in
10857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10858   *) ac_try_echo=$ac_try;;
10859 esac
10860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10861   (eval "$ac_link") 2>conftest.er1
10862   ac_status=$?
10863   grep -v '^ *+' conftest.er1 >conftest.err
10864   rm -f conftest.er1
10865   cat conftest.err >&5
10866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867   (exit $ac_status); } &&
10868          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10869   { (case "(($ac_try" in
10870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10871   *) ac_try_echo=$ac_try;;
10872 esac
10873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10874   (eval "$ac_try") 2>&5
10875   ac_status=$?
10876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877   (exit $ac_status); }; } &&
10878          { ac_try='test -s conftest$ac_exeext'
10879   { (case "(($ac_try" in
10880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10881   *) ac_try_echo=$ac_try;;
10882 esac
10883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10884   (eval "$ac_try") 2>&5
10885   ac_status=$?
10886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887   (exit $ac_status); }; }; then
10888   eval "$as_ac_var=yes"
10889 else
10890   echo "$as_me: failed program was:" >&5
10891 sed 's/^/| /' conftest.$ac_ext >&5
10892
10893         eval "$as_ac_var=no"
10894 fi
10895
10896 rm -f core conftest.err conftest.$ac_objext \
10897       conftest$ac_exeext conftest.$ac_ext
10898 fi
10899 ac_res=`eval echo '${'$as_ac_var'}'`
10900                { echo "$as_me:$LINENO: result: $ac_res" >&5
10901 echo "${ECHO_T}$ac_res" >&6; }
10902 if test `eval echo '${'$as_ac_var'}'` = yes; then
10903   cat >>confdefs.h <<_ACEOF
10904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10905 _ACEOF
10906
10907 fi
10908 done
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10937                   stdio.h unistd.h
10938 do
10939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10941   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10944   echo $ECHO_N "(cached) $ECHO_C" >&6
10945 fi
10946 ac_res=`eval echo '${'$as_ac_Header'}'`
10947                { echo "$as_me:$LINENO: result: $ac_res" >&5
10948 echo "${ECHO_T}$ac_res" >&6; }
10949 else
10950   # Is the header compilable?
10951 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10952 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10953 cat >conftest.$ac_ext <<_ACEOF
10954 /* confdefs.h.  */
10955 _ACEOF
10956 cat confdefs.h >>conftest.$ac_ext
10957 cat >>conftest.$ac_ext <<_ACEOF
10958 /* end confdefs.h.  */
10959 $ac_includes_default
10960 #include <$ac_header>
10961 _ACEOF
10962 rm -f conftest.$ac_objext
10963 if { (ac_try="$ac_compile"
10964 case "(($ac_try" in
10965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10966   *) ac_try_echo=$ac_try;;
10967 esac
10968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10969   (eval "$ac_compile") 2>conftest.er1
10970   ac_status=$?
10971   grep -v '^ *+' conftest.er1 >conftest.err
10972   rm -f conftest.er1
10973   cat conftest.err >&5
10974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975   (exit $ac_status); } &&
10976          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10977   { (case "(($ac_try" in
10978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10979   *) ac_try_echo=$ac_try;;
10980 esac
10981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10982   (eval "$ac_try") 2>&5
10983   ac_status=$?
10984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985   (exit $ac_status); }; } &&
10986          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10996   ac_header_compiler=yes
10997 else
10998   echo "$as_me: failed program was:" >&5
10999 sed 's/^/| /' conftest.$ac_ext >&5
11000
11001         ac_header_compiler=no
11002 fi
11003
11004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11005 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11006 echo "${ECHO_T}$ac_header_compiler" >&6; }
11007
11008 # Is the header present?
11009 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11011 cat >conftest.$ac_ext <<_ACEOF
11012 /* confdefs.h.  */
11013 _ACEOF
11014 cat confdefs.h >>conftest.$ac_ext
11015 cat >>conftest.$ac_ext <<_ACEOF
11016 /* end confdefs.h.  */
11017 #include <$ac_header>
11018 _ACEOF
11019 if { (ac_try="$ac_cpp conftest.$ac_ext"
11020 case "(($ac_try" in
11021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11022   *) ac_try_echo=$ac_try;;
11023 esac
11024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11025   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11026   ac_status=$?
11027   grep -v '^ *+' conftest.er1 >conftest.err
11028   rm -f conftest.er1
11029   cat conftest.err >&5
11030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031   (exit $ac_status); } >/dev/null; then
11032   if test -s conftest.err; then
11033     ac_cpp_err=$ac_c_preproc_warn_flag
11034     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11035   else
11036     ac_cpp_err=
11037   fi
11038 else
11039   ac_cpp_err=yes
11040 fi
11041 if test -z "$ac_cpp_err"; then
11042   ac_header_preproc=yes
11043 else
11044   echo "$as_me: failed program was:" >&5
11045 sed 's/^/| /' conftest.$ac_ext >&5
11046
11047   ac_header_preproc=no
11048 fi
11049
11050 rm -f conftest.err conftest.$ac_ext
11051 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11052 echo "${ECHO_T}$ac_header_preproc" >&6; }
11053
11054 # So?  What about this header?
11055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11056   yes:no: )
11057     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11058 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11059     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11060 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11061     ac_header_preproc=yes
11062     ;;
11063   no:yes:* )
11064     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11065 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11066     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11067 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11068     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11069 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11070     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11071 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11072     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11073 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11074     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11075 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11076     ( cat <<\_ASBOX
11077 ## ------------------------------ ##
11078 ## Report this to bugs@yourdomain ##
11079 ## ------------------------------ ##
11080 _ASBOX
11081      ) | sed "s/^/$as_me: WARNING:     /" >&2
11082     ;;
11083 esac
11084 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11087   echo $ECHO_N "(cached) $ECHO_C" >&6
11088 else
11089   eval "$as_ac_Header=\$ac_header_preproc"
11090 fi
11091 ac_res=`eval echo '${'$as_ac_Header'}'`
11092                { echo "$as_me:$LINENO: result: $ac_res" >&5
11093 echo "${ECHO_T}$ac_res" >&6; }
11094
11095 fi
11096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11097   cat >>confdefs.h <<_ACEOF
11098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11099 _ACEOF
11100
11101 fi
11102
11103 done
11104
11105
11106
11107
11108
11109 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11110 do
11111 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11113   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11116   echo $ECHO_N "(cached) $ECHO_C" >&6
11117 fi
11118 ac_res=`eval echo '${'$as_ac_Header'}'`
11119                { echo "$as_me:$LINENO: result: $ac_res" >&5
11120 echo "${ECHO_T}$ac_res" >&6; }
11121 else
11122   # Is the header compilable?
11123 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11125 cat >conftest.$ac_ext <<_ACEOF
11126 /* confdefs.h.  */
11127 _ACEOF
11128 cat confdefs.h >>conftest.$ac_ext
11129 cat >>conftest.$ac_ext <<_ACEOF
11130 /* end confdefs.h.  */
11131 $ac_includes_default
11132 #include <$ac_header>
11133 _ACEOF
11134 rm -f conftest.$ac_objext
11135 if { (ac_try="$ac_compile"
11136 case "(($ac_try" in
11137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11138   *) ac_try_echo=$ac_try;;
11139 esac
11140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11141   (eval "$ac_compile") 2>conftest.er1
11142   ac_status=$?
11143   grep -v '^ *+' conftest.er1 >conftest.err
11144   rm -f conftest.er1
11145   cat conftest.err >&5
11146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147   (exit $ac_status); } &&
11148          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11149   { (case "(($ac_try" in
11150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11151   *) ac_try_echo=$ac_try;;
11152 esac
11153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11154   (eval "$ac_try") 2>&5
11155   ac_status=$?
11156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157   (exit $ac_status); }; } &&
11158          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11168   ac_header_compiler=yes
11169 else
11170   echo "$as_me: failed program was:" >&5
11171 sed 's/^/| /' conftest.$ac_ext >&5
11172
11173         ac_header_compiler=no
11174 fi
11175
11176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11177 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11178 echo "${ECHO_T}$ac_header_compiler" >&6; }
11179
11180 # Is the header present?
11181 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11182 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11183 cat >conftest.$ac_ext <<_ACEOF
11184 /* confdefs.h.  */
11185 _ACEOF
11186 cat confdefs.h >>conftest.$ac_ext
11187 cat >>conftest.$ac_ext <<_ACEOF
11188 /* end confdefs.h.  */
11189 #include <$ac_header>
11190 _ACEOF
11191 if { (ac_try="$ac_cpp conftest.$ac_ext"
11192 case "(($ac_try" in
11193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11194   *) ac_try_echo=$ac_try;;
11195 esac
11196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11197   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11198   ac_status=$?
11199   grep -v '^ *+' conftest.er1 >conftest.err
11200   rm -f conftest.er1
11201   cat conftest.err >&5
11202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203   (exit $ac_status); } >/dev/null; then
11204   if test -s conftest.err; then
11205     ac_cpp_err=$ac_c_preproc_warn_flag
11206     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11207   else
11208     ac_cpp_err=
11209   fi
11210 else
11211   ac_cpp_err=yes
11212 fi
11213 if test -z "$ac_cpp_err"; then
11214   ac_header_preproc=yes
11215 else
11216   echo "$as_me: failed program was:" >&5
11217 sed 's/^/| /' conftest.$ac_ext >&5
11218
11219   ac_header_preproc=no
11220 fi
11221
11222 rm -f conftest.err conftest.$ac_ext
11223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11224 echo "${ECHO_T}$ac_header_preproc" >&6; }
11225
11226 # So?  What about this header?
11227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11228   yes:no: )
11229     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11230 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11231     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11232 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11233     ac_header_preproc=yes
11234     ;;
11235   no:yes:* )
11236     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11237 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11238     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11239 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11240     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11241 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11242     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11243 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11244     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11245 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11246     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11247 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11248     ( cat <<\_ASBOX
11249 ## ------------------------------ ##
11250 ## Report this to bugs@yourdomain ##
11251 ## ------------------------------ ##
11252 _ASBOX
11253      ) | sed "s/^/$as_me: WARNING:     /" >&2
11254     ;;
11255 esac
11256 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11259   echo $ECHO_N "(cached) $ECHO_C" >&6
11260 else
11261   eval "$as_ac_Header=\$ac_header_preproc"
11262 fi
11263 ac_res=`eval echo '${'$as_ac_Header'}'`
11264                { echo "$as_me:$LINENO: result: $ac_res" >&5
11265 echo "${ECHO_T}$ac_res" >&6; }
11266
11267 fi
11268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11269   cat >>confdefs.h <<_ACEOF
11270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11271 _ACEOF
11272
11273 fi
11274
11275 done
11276
11277
11278
11279 for ac_header in string.h strings.h
11280 do
11281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11283   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11286   echo $ECHO_N "(cached) $ECHO_C" >&6
11287 fi
11288 ac_res=`eval echo '${'$as_ac_Header'}'`
11289                { echo "$as_me:$LINENO: result: $ac_res" >&5
11290 echo "${ECHO_T}$ac_res" >&6; }
11291 else
11292   # Is the header compilable?
11293 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11295 cat >conftest.$ac_ext <<_ACEOF
11296 /* confdefs.h.  */
11297 _ACEOF
11298 cat confdefs.h >>conftest.$ac_ext
11299 cat >>conftest.$ac_ext <<_ACEOF
11300 /* end confdefs.h.  */
11301 $ac_includes_default
11302 #include <$ac_header>
11303 _ACEOF
11304 rm -f conftest.$ac_objext
11305 if { (ac_try="$ac_compile"
11306 case "(($ac_try" in
11307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308   *) ac_try_echo=$ac_try;;
11309 esac
11310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11311   (eval "$ac_compile") 2>conftest.er1
11312   ac_status=$?
11313   grep -v '^ *+' conftest.er1 >conftest.err
11314   rm -f conftest.er1
11315   cat conftest.err >&5
11316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317   (exit $ac_status); } &&
11318          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11319   { (case "(($ac_try" in
11320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321   *) ac_try_echo=$ac_try;;
11322 esac
11323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324   (eval "$ac_try") 2>&5
11325   ac_status=$?
11326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327   (exit $ac_status); }; } &&
11328          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11338   ac_header_compiler=yes
11339 else
11340   echo "$as_me: failed program was:" >&5
11341 sed 's/^/| /' conftest.$ac_ext >&5
11342
11343         ac_header_compiler=no
11344 fi
11345
11346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11347 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11348 echo "${ECHO_T}$ac_header_compiler" >&6; }
11349
11350 # Is the header present?
11351 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11353 cat >conftest.$ac_ext <<_ACEOF
11354 /* confdefs.h.  */
11355 _ACEOF
11356 cat confdefs.h >>conftest.$ac_ext
11357 cat >>conftest.$ac_ext <<_ACEOF
11358 /* end confdefs.h.  */
11359 #include <$ac_header>
11360 _ACEOF
11361 if { (ac_try="$ac_cpp conftest.$ac_ext"
11362 case "(($ac_try" in
11363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11364   *) ac_try_echo=$ac_try;;
11365 esac
11366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11367   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11368   ac_status=$?
11369   grep -v '^ *+' conftest.er1 >conftest.err
11370   rm -f conftest.er1
11371   cat conftest.err >&5
11372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373   (exit $ac_status); } >/dev/null; then
11374   if test -s conftest.err; then
11375     ac_cpp_err=$ac_c_preproc_warn_flag
11376     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11377   else
11378     ac_cpp_err=
11379   fi
11380 else
11381   ac_cpp_err=yes
11382 fi
11383 if test -z "$ac_cpp_err"; then
11384   ac_header_preproc=yes
11385 else
11386   echo "$as_me: failed program was:" >&5
11387 sed 's/^/| /' conftest.$ac_ext >&5
11388
11389   ac_header_preproc=no
11390 fi
11391
11392 rm -f conftest.err conftest.$ac_ext
11393 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11394 echo "${ECHO_T}$ac_header_preproc" >&6; }
11395
11396 # So?  What about this header?
11397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11398   yes:no: )
11399     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11400 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11401     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11402 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11403     ac_header_preproc=yes
11404     ;;
11405   no:yes:* )
11406     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11407 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11408     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11409 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11410     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11411 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11412     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11413 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11414     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11415 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11416     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11417 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11418     ( cat <<\_ASBOX
11419 ## ------------------------------ ##
11420 ## Report this to bugs@yourdomain ##
11421 ## ------------------------------ ##
11422 _ASBOX
11423      ) | sed "s/^/$as_me: WARNING:     /" >&2
11424     ;;
11425 esac
11426 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11429   echo $ECHO_N "(cached) $ECHO_C" >&6
11430 else
11431   eval "$as_ac_Header=\$ac_header_preproc"
11432 fi
11433 ac_res=`eval echo '${'$as_ac_Header'}'`
11434                { echo "$as_me:$LINENO: result: $ac_res" >&5
11435 echo "${ECHO_T}$ac_res" >&6; }
11436
11437 fi
11438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11439   cat >>confdefs.h <<_ACEOF
11440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11441 _ACEOF
11442  break
11443 fi
11444
11445 done
11446
11447
11448
11449
11450 for ac_func in strchr index
11451 do
11452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11453 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11455 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11456   echo $ECHO_N "(cached) $ECHO_C" >&6
11457 else
11458   cat >conftest.$ac_ext <<_ACEOF
11459 /* confdefs.h.  */
11460 _ACEOF
11461 cat confdefs.h >>conftest.$ac_ext
11462 cat >>conftest.$ac_ext <<_ACEOF
11463 /* end confdefs.h.  */
11464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11465    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11466 #define $ac_func innocuous_$ac_func
11467
11468 /* System header to define __stub macros and hopefully few prototypes,
11469     which can conflict with char $ac_func (); below.
11470     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11471     <limits.h> exists even on freestanding compilers.  */
11472
11473 #ifdef __STDC__
11474 # include <limits.h>
11475 #else
11476 # include <assert.h>
11477 #endif
11478
11479 #undef $ac_func
11480
11481 /* Override any GCC internal prototype to avoid an error.
11482    Use char because int might match the return type of a GCC
11483    builtin and then its argument prototype would still apply.  */
11484 #ifdef __cplusplus
11485 extern "C"
11486 #endif
11487 char $ac_func ();
11488 /* The GNU C library defines this for functions which it implements
11489     to always fail with ENOSYS.  Some functions are actually named
11490     something starting with __ and the normal name is an alias.  */
11491 #if defined __stub_$ac_func || defined __stub___$ac_func
11492 choke me
11493 #endif
11494
11495 int
11496 main ()
11497 {
11498 return $ac_func ();
11499   ;
11500   return 0;
11501 }
11502 _ACEOF
11503 rm -f conftest.$ac_objext conftest$ac_exeext
11504 if { (ac_try="$ac_link"
11505 case "(($ac_try" in
11506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11507   *) ac_try_echo=$ac_try;;
11508 esac
11509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11510   (eval "$ac_link") 2>conftest.er1
11511   ac_status=$?
11512   grep -v '^ *+' conftest.er1 >conftest.err
11513   rm -f conftest.er1
11514   cat conftest.err >&5
11515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516   (exit $ac_status); } &&
11517          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11518   { (case "(($ac_try" in
11519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11520   *) ac_try_echo=$ac_try;;
11521 esac
11522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11523   (eval "$ac_try") 2>&5
11524   ac_status=$?
11525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526   (exit $ac_status); }; } &&
11527          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11537   eval "$as_ac_var=yes"
11538 else
11539   echo "$as_me: failed program was:" >&5
11540 sed 's/^/| /' conftest.$ac_ext >&5
11541
11542         eval "$as_ac_var=no"
11543 fi
11544
11545 rm -f core conftest.err conftest.$ac_objext \
11546       conftest$ac_exeext conftest.$ac_ext
11547 fi
11548 ac_res=`eval echo '${'$as_ac_var'}'`
11549                { echo "$as_me:$LINENO: result: $ac_res" >&5
11550 echo "${ECHO_T}$ac_res" >&6; }
11551 if test `eval echo '${'$as_ac_var'}'` = yes; then
11552   cat >>confdefs.h <<_ACEOF
11553 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11554 _ACEOF
11555  break
11556 fi
11557 done
11558
11559
11560
11561 for ac_func in strrchr rindex
11562 do
11563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11564 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11566 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11567   echo $ECHO_N "(cached) $ECHO_C" >&6
11568 else
11569   cat >conftest.$ac_ext <<_ACEOF
11570 /* confdefs.h.  */
11571 _ACEOF
11572 cat confdefs.h >>conftest.$ac_ext
11573 cat >>conftest.$ac_ext <<_ACEOF
11574 /* end confdefs.h.  */
11575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11576    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11577 #define $ac_func innocuous_$ac_func
11578
11579 /* System header to define __stub macros and hopefully few prototypes,
11580     which can conflict with char $ac_func (); below.
11581     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11582     <limits.h> exists even on freestanding compilers.  */
11583
11584 #ifdef __STDC__
11585 # include <limits.h>
11586 #else
11587 # include <assert.h>
11588 #endif
11589
11590 #undef $ac_func
11591
11592 /* Override any GCC internal prototype to avoid an error.
11593    Use char because int might match the return type of a GCC
11594    builtin and then its argument prototype would still apply.  */
11595 #ifdef __cplusplus
11596 extern "C"
11597 #endif
11598 char $ac_func ();
11599 /* The GNU C library defines this for functions which it implements
11600     to always fail with ENOSYS.  Some functions are actually named
11601     something starting with __ and the normal name is an alias.  */
11602 #if defined __stub_$ac_func || defined __stub___$ac_func
11603 choke me
11604 #endif
11605
11606 int
11607 main ()
11608 {
11609 return $ac_func ();
11610   ;
11611   return 0;
11612 }
11613 _ACEOF
11614 rm -f conftest.$ac_objext conftest$ac_exeext
11615 if { (ac_try="$ac_link"
11616 case "(($ac_try" in
11617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11618   *) ac_try_echo=$ac_try;;
11619 esac
11620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11621   (eval "$ac_link") 2>conftest.er1
11622   ac_status=$?
11623   grep -v '^ *+' conftest.er1 >conftest.err
11624   rm -f conftest.er1
11625   cat conftest.err >&5
11626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627   (exit $ac_status); } &&
11628          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11629   { (case "(($ac_try" in
11630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11631   *) ac_try_echo=$ac_try;;
11632 esac
11633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11634   (eval "$ac_try") 2>&5
11635   ac_status=$?
11636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637   (exit $ac_status); }; } &&
11638          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11648   eval "$as_ac_var=yes"
11649 else
11650   echo "$as_me: failed program was:" >&5
11651 sed 's/^/| /' conftest.$ac_ext >&5
11652
11653         eval "$as_ac_var=no"
11654 fi
11655
11656 rm -f core conftest.err conftest.$ac_objext \
11657       conftest$ac_exeext conftest.$ac_ext
11658 fi
11659 ac_res=`eval echo '${'$as_ac_var'}'`
11660                { echo "$as_me:$LINENO: result: $ac_res" >&5
11661 echo "${ECHO_T}$ac_res" >&6; }
11662 if test `eval echo '${'$as_ac_var'}'` = yes; then
11663   cat >>confdefs.h <<_ACEOF
11664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11665 _ACEOF
11666  break
11667 fi
11668 done
11669
11670
11671
11672 for ac_func in memcpy bcopy
11673 do
11674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11675 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11677 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11678   echo $ECHO_N "(cached) $ECHO_C" >&6
11679 else
11680   cat >conftest.$ac_ext <<_ACEOF
11681 /* confdefs.h.  */
11682 _ACEOF
11683 cat confdefs.h >>conftest.$ac_ext
11684 cat >>conftest.$ac_ext <<_ACEOF
11685 /* end confdefs.h.  */
11686 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11687    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11688 #define $ac_func innocuous_$ac_func
11689
11690 /* System header to define __stub macros and hopefully few prototypes,
11691     which can conflict with char $ac_func (); below.
11692     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11693     <limits.h> exists even on freestanding compilers.  */
11694
11695 #ifdef __STDC__
11696 # include <limits.h>
11697 #else
11698 # include <assert.h>
11699 #endif
11700
11701 #undef $ac_func
11702
11703 /* Override any GCC internal prototype to avoid an error.
11704    Use char because int might match the return type of a GCC
11705    builtin and then its argument prototype would still apply.  */
11706 #ifdef __cplusplus
11707 extern "C"
11708 #endif
11709 char $ac_func ();
11710 /* The GNU C library defines this for functions which it implements
11711     to always fail with ENOSYS.  Some functions are actually named
11712     something starting with __ and the normal name is an alias.  */
11713 #if defined __stub_$ac_func || defined __stub___$ac_func
11714 choke me
11715 #endif
11716
11717 int
11718 main ()
11719 {
11720 return $ac_func ();
11721   ;
11722   return 0;
11723 }
11724 _ACEOF
11725 rm -f conftest.$ac_objext conftest$ac_exeext
11726 if { (ac_try="$ac_link"
11727 case "(($ac_try" in
11728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11729   *) ac_try_echo=$ac_try;;
11730 esac
11731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11732   (eval "$ac_link") 2>conftest.er1
11733   ac_status=$?
11734   grep -v '^ *+' conftest.er1 >conftest.err
11735   rm -f conftest.er1
11736   cat conftest.err >&5
11737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738   (exit $ac_status); } &&
11739          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11740   { (case "(($ac_try" in
11741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11742   *) ac_try_echo=$ac_try;;
11743 esac
11744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11745   (eval "$ac_try") 2>&5
11746   ac_status=$?
11747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748   (exit $ac_status); }; } &&
11749          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11759   eval "$as_ac_var=yes"
11760 else
11761   echo "$as_me: failed program was:" >&5
11762 sed 's/^/| /' conftest.$ac_ext >&5
11763
11764         eval "$as_ac_var=no"
11765 fi
11766
11767 rm -f core conftest.err conftest.$ac_objext \
11768       conftest$ac_exeext conftest.$ac_ext
11769 fi
11770 ac_res=`eval echo '${'$as_ac_var'}'`
11771                { echo "$as_me:$LINENO: result: $ac_res" >&5
11772 echo "${ECHO_T}$ac_res" >&6; }
11773 if test `eval echo '${'$as_ac_var'}'` = yes; then
11774   cat >>confdefs.h <<_ACEOF
11775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11776 _ACEOF
11777  break
11778 fi
11779 done
11780
11781
11782
11783 for ac_func in memmove strcmp
11784 do
11785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11786 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11788 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11789   echo $ECHO_N "(cached) $ECHO_C" >&6
11790 else
11791   cat >conftest.$ac_ext <<_ACEOF
11792 /* confdefs.h.  */
11793 _ACEOF
11794 cat confdefs.h >>conftest.$ac_ext
11795 cat >>conftest.$ac_ext <<_ACEOF
11796 /* end confdefs.h.  */
11797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11798    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11799 #define $ac_func innocuous_$ac_func
11800
11801 /* System header to define __stub macros and hopefully few prototypes,
11802     which can conflict with char $ac_func (); below.
11803     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11804     <limits.h> exists even on freestanding compilers.  */
11805
11806 #ifdef __STDC__
11807 # include <limits.h>
11808 #else
11809 # include <assert.h>
11810 #endif
11811
11812 #undef $ac_func
11813
11814 /* Override any GCC internal prototype to avoid an error.
11815    Use char because int might match the return type of a GCC
11816    builtin and then its argument prototype would still apply.  */
11817 #ifdef __cplusplus
11818 extern "C"
11819 #endif
11820 char $ac_func ();
11821 /* The GNU C library defines this for functions which it implements
11822     to always fail with ENOSYS.  Some functions are actually named
11823     something starting with __ and the normal name is an alias.  */
11824 #if defined __stub_$ac_func || defined __stub___$ac_func
11825 choke me
11826 #endif
11827
11828 int
11829 main ()
11830 {
11831 return $ac_func ();
11832   ;
11833   return 0;
11834 }
11835 _ACEOF
11836 rm -f conftest.$ac_objext conftest$ac_exeext
11837 if { (ac_try="$ac_link"
11838 case "(($ac_try" in
11839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11840   *) ac_try_echo=$ac_try;;
11841 esac
11842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11843   (eval "$ac_link") 2>conftest.er1
11844   ac_status=$?
11845   grep -v '^ *+' conftest.er1 >conftest.err
11846   rm -f conftest.er1
11847   cat conftest.err >&5
11848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849   (exit $ac_status); } &&
11850          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11851   { (case "(($ac_try" in
11852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11853   *) ac_try_echo=$ac_try;;
11854 esac
11855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11856   (eval "$ac_try") 2>&5
11857   ac_status=$?
11858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859   (exit $ac_status); }; } &&
11860          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11870   eval "$as_ac_var=yes"
11871 else
11872   echo "$as_me: failed program was:" >&5
11873 sed 's/^/| /' conftest.$ac_ext >&5
11874
11875         eval "$as_ac_var=no"
11876 fi
11877
11878 rm -f core conftest.err conftest.$ac_objext \
11879       conftest$ac_exeext conftest.$ac_ext
11880 fi
11881 ac_res=`eval echo '${'$as_ac_var'}'`
11882                { echo "$as_me:$LINENO: result: $ac_res" >&5
11883 echo "${ECHO_T}$ac_res" >&6; }
11884 if test `eval echo '${'$as_ac_var'}'` = yes; then
11885   cat >>confdefs.h <<_ACEOF
11886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11887 _ACEOF
11888
11889 fi
11890 done
11891
11892
11893
11894
11895 for ac_func in closedir opendir readdir
11896 do
11897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11898 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11900 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11901   echo $ECHO_N "(cached) $ECHO_C" >&6
11902 else
11903   cat >conftest.$ac_ext <<_ACEOF
11904 /* confdefs.h.  */
11905 _ACEOF
11906 cat confdefs.h >>conftest.$ac_ext
11907 cat >>conftest.$ac_ext <<_ACEOF
11908 /* end confdefs.h.  */
11909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11910    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11911 #define $ac_func innocuous_$ac_func
11912
11913 /* System header to define __stub macros and hopefully few prototypes,
11914     which can conflict with char $ac_func (); below.
11915     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11916     <limits.h> exists even on freestanding compilers.  */
11917
11918 #ifdef __STDC__
11919 # include <limits.h>
11920 #else
11921 # include <assert.h>
11922 #endif
11923
11924 #undef $ac_func
11925
11926 /* Override any GCC internal prototype to avoid an error.
11927    Use char because int might match the return type of a GCC
11928    builtin and then its argument prototype would still apply.  */
11929 #ifdef __cplusplus
11930 extern "C"
11931 #endif
11932 char $ac_func ();
11933 /* The GNU C library defines this for functions which it implements
11934     to always fail with ENOSYS.  Some functions are actually named
11935     something starting with __ and the normal name is an alias.  */
11936 #if defined __stub_$ac_func || defined __stub___$ac_func
11937 choke me
11938 #endif
11939
11940 int
11941 main ()
11942 {
11943 return $ac_func ();
11944   ;
11945   return 0;
11946 }
11947 _ACEOF
11948 rm -f conftest.$ac_objext conftest$ac_exeext
11949 if { (ac_try="$ac_link"
11950 case "(($ac_try" in
11951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11952   *) ac_try_echo=$ac_try;;
11953 esac
11954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11955   (eval "$ac_link") 2>conftest.er1
11956   ac_status=$?
11957   grep -v '^ *+' conftest.er1 >conftest.err
11958   rm -f conftest.er1
11959   cat conftest.err >&5
11960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961   (exit $ac_status); } &&
11962          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11963   { (case "(($ac_try" in
11964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11965   *) ac_try_echo=$ac_try;;
11966 esac
11967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11968   (eval "$ac_try") 2>&5
11969   ac_status=$?
11970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971   (exit $ac_status); }; } &&
11972          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11982   eval "$as_ac_var=yes"
11983 else
11984   echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11986
11987         eval "$as_ac_var=no"
11988 fi
11989
11990 rm -f core conftest.err conftest.$ac_objext \
11991       conftest$ac_exeext conftest.$ac_ext
11992 fi
11993 ac_res=`eval echo '${'$as_ac_var'}'`
11994                { echo "$as_me:$LINENO: result: $ac_res" >&5
11995 echo "${ECHO_T}$ac_res" >&6; }
11996 if test `eval echo '${'$as_ac_var'}'` = yes; then
11997   cat >>confdefs.h <<_ACEOF
11998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11999 _ACEOF
12000
12001 fi
12002 done
12003
12004
12005
12006 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12007 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12008
12009 ICC=no
12010 IXX=no
12011 case $CC in
12012   icc*|icpc*)
12013     ICC=yes
12014     IXX=yes
12015     ;;
12016    *)
12017     ;;
12018 esac
12019
12020 if test "$GCC" != "yes" && test "$ICC" != "yes"
12021 then
12022   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12023 echo "$as_me: error: gcc|icc required but not found" >&2;}
12024    { (exit 1); exit 1; }; }
12025 fi
12026
12027 if test "$GXX" != "yes" && test "$IXX" != "yes"
12028 then
12029   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12030 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12031    { (exit 1); exit 1; }; }
12032 fi
12033
12034 if test "$GCC" = "yes"
12035 then
12036   cat >conftest.$ac_ext <<_ACEOF
12037 #if !defined(__GNUC__) || __GNUC__ < 3
12038 #error Unsupported GCC version
12039 #endif
12040
12041 _ACEOF
12042 rm -f conftest.$ac_objext
12043 if { (ac_try="$ac_compile"
12044 case "(($ac_try" in
12045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046   *) ac_try_echo=$ac_try;;
12047 esac
12048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049   (eval "$ac_compile") 2>conftest.er1
12050   ac_status=$?
12051   grep -v '^ *+' conftest.er1 >conftest.err
12052   rm -f conftest.er1
12053   cat conftest.err >&5
12054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055   (exit $ac_status); } &&
12056          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12057   { (case "(($ac_try" in
12058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12059   *) ac_try_echo=$ac_try;;
12060 esac
12061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12062   (eval "$ac_try") 2>&5
12063   ac_status=$?
12064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065   (exit $ac_status); }; } &&
12066          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12076   :
12077 else
12078   echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.$ac_ext >&5
12080
12081         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12082 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12083    { (exit 1); exit 1; }; }
12084 fi
12085
12086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12087 fi
12088
12089 if test -z "$llvm_cv_gnu_make_command"
12090 then
12091   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12092 echo "$as_me: error: GNU Make required but not found" >&2;}
12093    { (exit 1); exit 1; }; }
12094 fi
12095
12096 { echo "$as_me:$LINENO: result: ok" >&5
12097 echo "${ECHO_T}ok" >&6; }
12098
12099 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12100 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12101 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12102
12103 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12104
12105 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12106
12107 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12108 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12109
12110
12111
12112 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12113 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12114 if test "${ac_cv_lib_m_sin+set}" = set; then
12115   echo $ECHO_N "(cached) $ECHO_C" >&6
12116 else
12117   ac_check_lib_save_LIBS=$LIBS
12118 LIBS="-lm  $LIBS"
12119 cat >conftest.$ac_ext <<_ACEOF
12120 /* confdefs.h.  */
12121 _ACEOF
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h.  */
12125
12126 /* Override any GCC internal prototype to avoid an error.
12127    Use char because int might match the return type of a GCC
12128    builtin and then its argument prototype would still apply.  */
12129 #ifdef __cplusplus
12130 extern "C"
12131 #endif
12132 char sin ();
12133 int
12134 main ()
12135 {
12136 return sin ();
12137   ;
12138   return 0;
12139 }
12140 _ACEOF
12141 rm -f conftest.$ac_objext conftest$ac_exeext
12142 if { (ac_try="$ac_link"
12143 case "(($ac_try" in
12144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12145   *) ac_try_echo=$ac_try;;
12146 esac
12147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12148   (eval "$ac_link") 2>conftest.er1
12149   ac_status=$?
12150   grep -v '^ *+' conftest.er1 >conftest.err
12151   rm -f conftest.er1
12152   cat conftest.err >&5
12153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154   (exit $ac_status); } &&
12155          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12156   { (case "(($ac_try" in
12157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158   *) ac_try_echo=$ac_try;;
12159 esac
12160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161   (eval "$ac_try") 2>&5
12162   ac_status=$?
12163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164   (exit $ac_status); }; } &&
12165          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12175   ac_cv_lib_m_sin=yes
12176 else
12177   echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.$ac_ext >&5
12179
12180         ac_cv_lib_m_sin=no
12181 fi
12182
12183 rm -f core conftest.err conftest.$ac_objext \
12184       conftest$ac_exeext conftest.$ac_ext
12185 LIBS=$ac_check_lib_save_LIBS
12186 fi
12187 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12188 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12189 if test $ac_cv_lib_m_sin = yes; then
12190   cat >>confdefs.h <<_ACEOF
12191 #define HAVE_LIBM 1
12192 _ACEOF
12193
12194   LIBS="-lm $LIBS"
12195
12196 fi
12197
12198 if test "$llvm_cv_os_type" = "MingW" ; then
12199
12200 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12201 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12202 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12203   echo $ECHO_N "(cached) $ECHO_C" >&6
12204 else
12205   ac_check_lib_save_LIBS=$LIBS
12206 LIBS="-limagehlp  $LIBS"
12207 cat >conftest.$ac_ext <<_ACEOF
12208 /* confdefs.h.  */
12209 _ACEOF
12210 cat confdefs.h >>conftest.$ac_ext
12211 cat >>conftest.$ac_ext <<_ACEOF
12212 /* end confdefs.h.  */
12213
12214
12215 int
12216 main ()
12217 {
12218 return main ();
12219   ;
12220   return 0;
12221 }
12222 _ACEOF
12223 rm -f conftest.$ac_objext conftest$ac_exeext
12224 if { (ac_try="$ac_link"
12225 case "(($ac_try" in
12226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12227   *) ac_try_echo=$ac_try;;
12228 esac
12229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12230   (eval "$ac_link") 2>conftest.er1
12231   ac_status=$?
12232   grep -v '^ *+' conftest.er1 >conftest.err
12233   rm -f conftest.er1
12234   cat conftest.err >&5
12235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236   (exit $ac_status); } &&
12237          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12238   { (case "(($ac_try" in
12239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12240   *) ac_try_echo=$ac_try;;
12241 esac
12242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12243   (eval "$ac_try") 2>&5
12244   ac_status=$?
12245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246   (exit $ac_status); }; } &&
12247          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12257   ac_cv_lib_imagehlp_main=yes
12258 else
12259   echo "$as_me: failed program was:" >&5
12260 sed 's/^/| /' conftest.$ac_ext >&5
12261
12262         ac_cv_lib_imagehlp_main=no
12263 fi
12264
12265 rm -f core conftest.err conftest.$ac_objext \
12266       conftest$ac_exeext conftest.$ac_ext
12267 LIBS=$ac_check_lib_save_LIBS
12268 fi
12269 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12270 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12271 if test $ac_cv_lib_imagehlp_main = yes; then
12272   cat >>confdefs.h <<_ACEOF
12273 #define HAVE_LIBIMAGEHLP 1
12274 _ACEOF
12275
12276   LIBS="-limagehlp $LIBS"
12277
12278 fi
12279
12280
12281 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12282 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12283 if test "${ac_cv_lib_psapi_main+set}" = set; then
12284   echo $ECHO_N "(cached) $ECHO_C" >&6
12285 else
12286   ac_check_lib_save_LIBS=$LIBS
12287 LIBS="-lpsapi  $LIBS"
12288 cat >conftest.$ac_ext <<_ACEOF
12289 /* confdefs.h.  */
12290 _ACEOF
12291 cat confdefs.h >>conftest.$ac_ext
12292 cat >>conftest.$ac_ext <<_ACEOF
12293 /* end confdefs.h.  */
12294
12295
12296 int
12297 main ()
12298 {
12299 return main ();
12300   ;
12301   return 0;
12302 }
12303 _ACEOF
12304 rm -f conftest.$ac_objext conftest$ac_exeext
12305 if { (ac_try="$ac_link"
12306 case "(($ac_try" in
12307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12308   *) ac_try_echo=$ac_try;;
12309 esac
12310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12311   (eval "$ac_link") 2>conftest.er1
12312   ac_status=$?
12313   grep -v '^ *+' conftest.er1 >conftest.err
12314   rm -f conftest.er1
12315   cat conftest.err >&5
12316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317   (exit $ac_status); } &&
12318          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12319   { (case "(($ac_try" in
12320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12321   *) ac_try_echo=$ac_try;;
12322 esac
12323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12324   (eval "$ac_try") 2>&5
12325   ac_status=$?
12326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327   (exit $ac_status); }; } &&
12328          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12338   ac_cv_lib_psapi_main=yes
12339 else
12340   echo "$as_me: failed program was:" >&5
12341 sed 's/^/| /' conftest.$ac_ext >&5
12342
12343         ac_cv_lib_psapi_main=no
12344 fi
12345
12346 rm -f core conftest.err conftest.$ac_objext \
12347       conftest$ac_exeext conftest.$ac_ext
12348 LIBS=$ac_check_lib_save_LIBS
12349 fi
12350 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12351 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12352 if test $ac_cv_lib_psapi_main = yes; then
12353   cat >>confdefs.h <<_ACEOF
12354 #define HAVE_LIBPSAPI 1
12355 _ACEOF
12356
12357   LIBS="-lpsapi $LIBS"
12358
12359 fi
12360
12361 fi
12362
12363 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12364 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12365 if test "${ac_cv_search_dlopen+set}" = set; then
12366   echo $ECHO_N "(cached) $ECHO_C" >&6
12367 else
12368   ac_func_search_save_LIBS=$LIBS
12369 cat >conftest.$ac_ext <<_ACEOF
12370 /* confdefs.h.  */
12371 _ACEOF
12372 cat confdefs.h >>conftest.$ac_ext
12373 cat >>conftest.$ac_ext <<_ACEOF
12374 /* end confdefs.h.  */
12375
12376 /* Override any GCC internal prototype to avoid an error.
12377    Use char because int might match the return type of a GCC
12378    builtin and then its argument prototype would still apply.  */
12379 #ifdef __cplusplus
12380 extern "C"
12381 #endif
12382 char dlopen ();
12383 int
12384 main ()
12385 {
12386 return dlopen ();
12387   ;
12388   return 0;
12389 }
12390 _ACEOF
12391 for ac_lib in '' dl; do
12392   if test -z "$ac_lib"; then
12393     ac_res="none required"
12394   else
12395     ac_res=-l$ac_lib
12396     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12397   fi
12398   rm -f conftest.$ac_objext conftest$ac_exeext
12399 if { (ac_try="$ac_link"
12400 case "(($ac_try" in
12401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12402   *) ac_try_echo=$ac_try;;
12403 esac
12404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12405   (eval "$ac_link") 2>conftest.er1
12406   ac_status=$?
12407   grep -v '^ *+' conftest.er1 >conftest.err
12408   rm -f conftest.er1
12409   cat conftest.err >&5
12410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411   (exit $ac_status); } &&
12412          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12413   { (case "(($ac_try" in
12414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12415   *) ac_try_echo=$ac_try;;
12416 esac
12417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12418   (eval "$ac_try") 2>&5
12419   ac_status=$?
12420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421   (exit $ac_status); }; } &&
12422          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12432   ac_cv_search_dlopen=$ac_res
12433 else
12434   echo "$as_me: failed program was:" >&5
12435 sed 's/^/| /' conftest.$ac_ext >&5
12436
12437
12438 fi
12439
12440 rm -f core conftest.err conftest.$ac_objext \
12441       conftest$ac_exeext
12442   if test "${ac_cv_search_dlopen+set}" = set; then
12443   break
12444 fi
12445 done
12446 if test "${ac_cv_search_dlopen+set}" = set; then
12447   :
12448 else
12449   ac_cv_search_dlopen=no
12450 fi
12451 rm conftest.$ac_ext
12452 LIBS=$ac_func_search_save_LIBS
12453 fi
12454 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12455 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12456 ac_res=$ac_cv_search_dlopen
12457 if test "$ac_res" != no; then
12458   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12459
12460 cat >>confdefs.h <<\_ACEOF
12461 #define HAVE_DLOPEN 1
12462 _ACEOF
12463
12464 else
12465   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12466 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12467 fi
12468
12469
12470 if test "$llvm_cv_enable_libffi" = "yes" ; then
12471   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12472 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12473 if test "${ac_cv_search_ffi_call+set}" = set; then
12474   echo $ECHO_N "(cached) $ECHO_C" >&6
12475 else
12476   ac_func_search_save_LIBS=$LIBS
12477 cat >conftest.$ac_ext <<_ACEOF
12478 /* confdefs.h.  */
12479 _ACEOF
12480 cat confdefs.h >>conftest.$ac_ext
12481 cat >>conftest.$ac_ext <<_ACEOF
12482 /* end confdefs.h.  */
12483
12484 /* Override any GCC internal prototype to avoid an error.
12485    Use char because int might match the return type of a GCC
12486    builtin and then its argument prototype would still apply.  */
12487 #ifdef __cplusplus
12488 extern "C"
12489 #endif
12490 char ffi_call ();
12491 int
12492 main ()
12493 {
12494 return ffi_call ();
12495   ;
12496   return 0;
12497 }
12498 _ACEOF
12499 for ac_lib in '' ffi; do
12500   if test -z "$ac_lib"; then
12501     ac_res="none required"
12502   else
12503     ac_res=-l$ac_lib
12504     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12505   fi
12506   rm -f conftest.$ac_objext conftest$ac_exeext
12507 if { (ac_try="$ac_link"
12508 case "(($ac_try" in
12509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510   *) ac_try_echo=$ac_try;;
12511 esac
12512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513   (eval "$ac_link") 2>conftest.er1
12514   ac_status=$?
12515   grep -v '^ *+' conftest.er1 >conftest.err
12516   rm -f conftest.er1
12517   cat conftest.err >&5
12518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519   (exit $ac_status); } &&
12520          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12521   { (case "(($ac_try" in
12522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12523   *) ac_try_echo=$ac_try;;
12524 esac
12525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12526   (eval "$ac_try") 2>&5
12527   ac_status=$?
12528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529   (exit $ac_status); }; } &&
12530          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12540   ac_cv_search_ffi_call=$ac_res
12541 else
12542   echo "$as_me: failed program was:" >&5
12543 sed 's/^/| /' conftest.$ac_ext >&5
12544
12545
12546 fi
12547
12548 rm -f core conftest.err conftest.$ac_objext \
12549       conftest$ac_exeext
12550   if test "${ac_cv_search_ffi_call+set}" = set; then
12551   break
12552 fi
12553 done
12554 if test "${ac_cv_search_ffi_call+set}" = set; then
12555   :
12556 else
12557   ac_cv_search_ffi_call=no
12558 fi
12559 rm conftest.$ac_ext
12560 LIBS=$ac_func_search_save_LIBS
12561 fi
12562 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12563 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12564 ac_res=$ac_cv_search_ffi_call
12565 if test "$ac_res" != no; then
12566   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12567
12568 cat >>confdefs.h <<\_ACEOF
12569 #define HAVE_FFI_CALL 1
12570 _ACEOF
12571
12572 else
12573   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12574 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12575    { (exit 1); exit 1; }; }
12576 fi
12577
12578 fi
12579
12580 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12581 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12582 if test "${ac_cv_search_mallinfo+set}" = set; then
12583   echo $ECHO_N "(cached) $ECHO_C" >&6
12584 else
12585   ac_func_search_save_LIBS=$LIBS
12586 cat >conftest.$ac_ext <<_ACEOF
12587 /* confdefs.h.  */
12588 _ACEOF
12589 cat confdefs.h >>conftest.$ac_ext
12590 cat >>conftest.$ac_ext <<_ACEOF
12591 /* end confdefs.h.  */
12592
12593 /* Override any GCC internal prototype to avoid an error.
12594    Use char because int might match the return type of a GCC
12595    builtin and then its argument prototype would still apply.  */
12596 #ifdef __cplusplus
12597 extern "C"
12598 #endif
12599 char mallinfo ();
12600 int
12601 main ()
12602 {
12603 return mallinfo ();
12604   ;
12605   return 0;
12606 }
12607 _ACEOF
12608 for ac_lib in '' malloc; do
12609   if test -z "$ac_lib"; then
12610     ac_res="none required"
12611   else
12612     ac_res=-l$ac_lib
12613     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12614   fi
12615   rm -f conftest.$ac_objext conftest$ac_exeext
12616 if { (ac_try="$ac_link"
12617 case "(($ac_try" in
12618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12619   *) ac_try_echo=$ac_try;;
12620 esac
12621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12622   (eval "$ac_link") 2>conftest.er1
12623   ac_status=$?
12624   grep -v '^ *+' conftest.er1 >conftest.err
12625   rm -f conftest.er1
12626   cat conftest.err >&5
12627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628   (exit $ac_status); } &&
12629          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12630   { (case "(($ac_try" in
12631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12632   *) ac_try_echo=$ac_try;;
12633 esac
12634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12635   (eval "$ac_try") 2>&5
12636   ac_status=$?
12637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638   (exit $ac_status); }; } &&
12639          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12649   ac_cv_search_mallinfo=$ac_res
12650 else
12651   echo "$as_me: failed program was:" >&5
12652 sed 's/^/| /' conftest.$ac_ext >&5
12653
12654
12655 fi
12656
12657 rm -f core conftest.err conftest.$ac_objext \
12658       conftest$ac_exeext
12659   if test "${ac_cv_search_mallinfo+set}" = set; then
12660   break
12661 fi
12662 done
12663 if test "${ac_cv_search_mallinfo+set}" = set; then
12664   :
12665 else
12666   ac_cv_search_mallinfo=no
12667 fi
12668 rm conftest.$ac_ext
12669 LIBS=$ac_func_search_save_LIBS
12670 fi
12671 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12672 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12673 ac_res=$ac_cv_search_mallinfo
12674 if test "$ac_res" != no; then
12675   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12676
12677 cat >>confdefs.h <<\_ACEOF
12678 #define HAVE_MALLINFO 1
12679 _ACEOF
12680
12681 fi
12682
12683
12684 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12685
12686 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12687 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12688 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12689   echo $ECHO_N "(cached) $ECHO_C" >&6
12690 else
12691   ac_check_lib_save_LIBS=$LIBS
12692 LIBS="-lpthread  $LIBS"
12693 cat >conftest.$ac_ext <<_ACEOF
12694 /* confdefs.h.  */
12695 _ACEOF
12696 cat confdefs.h >>conftest.$ac_ext
12697 cat >>conftest.$ac_ext <<_ACEOF
12698 /* end confdefs.h.  */
12699
12700 /* Override any GCC internal prototype to avoid an error.
12701    Use char because int might match the return type of a GCC
12702    builtin and then its argument prototype would still apply.  */
12703 #ifdef __cplusplus
12704 extern "C"
12705 #endif
12706 char pthread_mutex_init ();
12707 int
12708 main ()
12709 {
12710 return pthread_mutex_init ();
12711   ;
12712   return 0;
12713 }
12714 _ACEOF
12715 rm -f conftest.$ac_objext conftest$ac_exeext
12716 if { (ac_try="$ac_link"
12717 case "(($ac_try" in
12718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12719   *) ac_try_echo=$ac_try;;
12720 esac
12721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12722   (eval "$ac_link") 2>conftest.er1
12723   ac_status=$?
12724   grep -v '^ *+' conftest.er1 >conftest.err
12725   rm -f conftest.er1
12726   cat conftest.err >&5
12727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728   (exit $ac_status); } &&
12729          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12730   { (case "(($ac_try" in
12731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12732   *) ac_try_echo=$ac_try;;
12733 esac
12734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12735   (eval "$ac_try") 2>&5
12736   ac_status=$?
12737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738   (exit $ac_status); }; } &&
12739          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12749   ac_cv_lib_pthread_pthread_mutex_init=yes
12750 else
12751   echo "$as_me: failed program was:" >&5
12752 sed 's/^/| /' conftest.$ac_ext >&5
12753
12754         ac_cv_lib_pthread_pthread_mutex_init=no
12755 fi
12756
12757 rm -f core conftest.err conftest.$ac_objext \
12758       conftest$ac_exeext conftest.$ac_ext
12759 LIBS=$ac_check_lib_save_LIBS
12760 fi
12761 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12762 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12763 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12764   cat >>confdefs.h <<_ACEOF
12765 #define HAVE_LIBPTHREAD 1
12766 _ACEOF
12767
12768   LIBS="-lpthread $LIBS"
12769
12770 fi
12771
12772   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12773 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12774 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12775   echo $ECHO_N "(cached) $ECHO_C" >&6
12776 else
12777   ac_func_search_save_LIBS=$LIBS
12778 cat >conftest.$ac_ext <<_ACEOF
12779 /* confdefs.h.  */
12780 _ACEOF
12781 cat confdefs.h >>conftest.$ac_ext
12782 cat >>conftest.$ac_ext <<_ACEOF
12783 /* end confdefs.h.  */
12784
12785 /* Override any GCC internal prototype to avoid an error.
12786    Use char because int might match the return type of a GCC
12787    builtin and then its argument prototype would still apply.  */
12788 #ifdef __cplusplus
12789 extern "C"
12790 #endif
12791 char pthread_mutex_lock ();
12792 int
12793 main ()
12794 {
12795 return pthread_mutex_lock ();
12796   ;
12797   return 0;
12798 }
12799 _ACEOF
12800 for ac_lib in '' pthread; do
12801   if test -z "$ac_lib"; then
12802     ac_res="none required"
12803   else
12804     ac_res=-l$ac_lib
12805     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12806   fi
12807   rm -f conftest.$ac_objext conftest$ac_exeext
12808 if { (ac_try="$ac_link"
12809 case "(($ac_try" in
12810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12811   *) ac_try_echo=$ac_try;;
12812 esac
12813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12814   (eval "$ac_link") 2>conftest.er1
12815   ac_status=$?
12816   grep -v '^ *+' conftest.er1 >conftest.err
12817   rm -f conftest.er1
12818   cat conftest.err >&5
12819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820   (exit $ac_status); } &&
12821          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12822   { (case "(($ac_try" in
12823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12824   *) ac_try_echo=$ac_try;;
12825 esac
12826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12827   (eval "$ac_try") 2>&5
12828   ac_status=$?
12829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830   (exit $ac_status); }; } &&
12831          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12841   ac_cv_search_pthread_mutex_lock=$ac_res
12842 else
12843   echo "$as_me: failed program was:" >&5
12844 sed 's/^/| /' conftest.$ac_ext >&5
12845
12846
12847 fi
12848
12849 rm -f core conftest.err conftest.$ac_objext \
12850       conftest$ac_exeext
12851   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12852   break
12853 fi
12854 done
12855 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12856   :
12857 else
12858   ac_cv_search_pthread_mutex_lock=no
12859 fi
12860 rm conftest.$ac_ext
12861 LIBS=$ac_func_search_save_LIBS
12862 fi
12863 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12864 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12865 ac_res=$ac_cv_search_pthread_mutex_lock
12866 if test "$ac_res" != no; then
12867   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12868
12869 cat >>confdefs.h <<\_ACEOF
12870 #define HAVE_PTHREAD_MUTEX_LOCK 1
12871 _ACEOF
12872
12873 fi
12874
12875   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12876 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12877 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12878   echo $ECHO_N "(cached) $ECHO_C" >&6
12879 else
12880   ac_func_search_save_LIBS=$LIBS
12881 cat >conftest.$ac_ext <<_ACEOF
12882 /* confdefs.h.  */
12883 _ACEOF
12884 cat confdefs.h >>conftest.$ac_ext
12885 cat >>conftest.$ac_ext <<_ACEOF
12886 /* end confdefs.h.  */
12887
12888 /* Override any GCC internal prototype to avoid an error.
12889    Use char because int might match the return type of a GCC
12890    builtin and then its argument prototype would still apply.  */
12891 #ifdef __cplusplus
12892 extern "C"
12893 #endif
12894 char pthread_rwlock_init ();
12895 int
12896 main ()
12897 {
12898 return pthread_rwlock_init ();
12899   ;
12900   return 0;
12901 }
12902 _ACEOF
12903 for ac_lib in '' pthread; do
12904   if test -z "$ac_lib"; then
12905     ac_res="none required"
12906   else
12907     ac_res=-l$ac_lib
12908     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12909   fi
12910   rm -f conftest.$ac_objext conftest$ac_exeext
12911 if { (ac_try="$ac_link"
12912 case "(($ac_try" in
12913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12914   *) ac_try_echo=$ac_try;;
12915 esac
12916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12917   (eval "$ac_link") 2>conftest.er1
12918   ac_status=$?
12919   grep -v '^ *+' conftest.er1 >conftest.err
12920   rm -f conftest.er1
12921   cat conftest.err >&5
12922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923   (exit $ac_status); } &&
12924          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12925   { (case "(($ac_try" in
12926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12927   *) ac_try_echo=$ac_try;;
12928 esac
12929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12930   (eval "$ac_try") 2>&5
12931   ac_status=$?
12932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933   (exit $ac_status); }; } &&
12934          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12944   ac_cv_search_pthread_rwlock_init=$ac_res
12945 else
12946   echo "$as_me: failed program was:" >&5
12947 sed 's/^/| /' conftest.$ac_ext >&5
12948
12949
12950 fi
12951
12952 rm -f core conftest.err conftest.$ac_objext \
12953       conftest$ac_exeext
12954   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12955   break
12956 fi
12957 done
12958 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12959   :
12960 else
12961   ac_cv_search_pthread_rwlock_init=no
12962 fi
12963 rm conftest.$ac_ext
12964 LIBS=$ac_func_search_save_LIBS
12965 fi
12966 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12967 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12968 ac_res=$ac_cv_search_pthread_rwlock_init
12969 if test "$ac_res" != no; then
12970   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12971
12972 cat >>confdefs.h <<\_ACEOF
12973 #define HAVE_PTHREAD_RWLOCK_INIT 1
12974 _ACEOF
12975
12976 fi
12977
12978   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12979 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12980 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12981   echo $ECHO_N "(cached) $ECHO_C" >&6
12982 else
12983   ac_func_search_save_LIBS=$LIBS
12984 cat >conftest.$ac_ext <<_ACEOF
12985 /* confdefs.h.  */
12986 _ACEOF
12987 cat confdefs.h >>conftest.$ac_ext
12988 cat >>conftest.$ac_ext <<_ACEOF
12989 /* end confdefs.h.  */
12990
12991 /* Override any GCC internal prototype to avoid an error.
12992    Use char because int might match the return type of a GCC
12993    builtin and then its argument prototype would still apply.  */
12994 #ifdef __cplusplus
12995 extern "C"
12996 #endif
12997 char pthread_getspecific ();
12998 int
12999 main ()
13000 {
13001 return pthread_getspecific ();
13002   ;
13003   return 0;
13004 }
13005 _ACEOF
13006 for ac_lib in '' pthread; do
13007   if test -z "$ac_lib"; then
13008     ac_res="none required"
13009   else
13010     ac_res=-l$ac_lib
13011     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13012   fi
13013   rm -f conftest.$ac_objext conftest$ac_exeext
13014 if { (ac_try="$ac_link"
13015 case "(($ac_try" in
13016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13017   *) ac_try_echo=$ac_try;;
13018 esac
13019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13020   (eval "$ac_link") 2>conftest.er1
13021   ac_status=$?
13022   grep -v '^ *+' conftest.er1 >conftest.err
13023   rm -f conftest.er1
13024   cat conftest.err >&5
13025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026   (exit $ac_status); } &&
13027          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13028   { (case "(($ac_try" in
13029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13030   *) ac_try_echo=$ac_try;;
13031 esac
13032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13033   (eval "$ac_try") 2>&5
13034   ac_status=$?
13035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036   (exit $ac_status); }; } &&
13037          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13047   ac_cv_search_pthread_getspecific=$ac_res
13048 else
13049   echo "$as_me: failed program was:" >&5
13050 sed 's/^/| /' conftest.$ac_ext >&5
13051
13052
13053 fi
13054
13055 rm -f core conftest.err conftest.$ac_objext \
13056       conftest$ac_exeext
13057   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13058   break
13059 fi
13060 done
13061 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13062   :
13063 else
13064   ac_cv_search_pthread_getspecific=no
13065 fi
13066 rm conftest.$ac_ext
13067 LIBS=$ac_func_search_save_LIBS
13068 fi
13069 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13070 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13071 ac_res=$ac_cv_search_pthread_getspecific
13072 if test "$ac_res" != no; then
13073   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13074
13075 cat >>confdefs.h <<\_ACEOF
13076 #define HAVE_PTHREAD_GETSPECIFIC 1
13077 _ACEOF
13078
13079 fi
13080
13081 fi
13082
13083
13084 # Check whether --with-udis86 was given.
13085 if test "${with_udis86+set}" = set; then
13086   withval=$with_udis86;
13087       USE_UDIS86=1
13088
13089       case "$withval" in
13090         /usr/lib|yes) ;;
13091         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13092       esac
13093
13094 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13095 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13096 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13097   echo $ECHO_N "(cached) $ECHO_C" >&6
13098 else
13099   ac_check_lib_save_LIBS=$LIBS
13100 LIBS="-ludis86  $LIBS"
13101 cat >conftest.$ac_ext <<_ACEOF
13102 /* confdefs.h.  */
13103 _ACEOF
13104 cat confdefs.h >>conftest.$ac_ext
13105 cat >>conftest.$ac_ext <<_ACEOF
13106 /* end confdefs.h.  */
13107
13108 /* Override any GCC internal prototype to avoid an error.
13109    Use char because int might match the return type of a GCC
13110    builtin and then its argument prototype would still apply.  */
13111 #ifdef __cplusplus
13112 extern "C"
13113 #endif
13114 char ud_init ();
13115 int
13116 main ()
13117 {
13118 return ud_init ();
13119   ;
13120   return 0;
13121 }
13122 _ACEOF
13123 rm -f conftest.$ac_objext conftest$ac_exeext
13124 if { (ac_try="$ac_link"
13125 case "(($ac_try" in
13126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13127   *) ac_try_echo=$ac_try;;
13128 esac
13129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13130   (eval "$ac_link") 2>conftest.er1
13131   ac_status=$?
13132   grep -v '^ *+' conftest.er1 >conftest.err
13133   rm -f conftest.er1
13134   cat conftest.err >&5
13135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136   (exit $ac_status); } &&
13137          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13138   { (case "(($ac_try" in
13139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13140   *) ac_try_echo=$ac_try;;
13141 esac
13142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13143   (eval "$ac_try") 2>&5
13144   ac_status=$?
13145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146   (exit $ac_status); }; } &&
13147          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13157   ac_cv_lib_udis86_ud_init=yes
13158 else
13159   echo "$as_me: failed program was:" >&5
13160 sed 's/^/| /' conftest.$ac_ext >&5
13161
13162         ac_cv_lib_udis86_ud_init=no
13163 fi
13164
13165 rm -f core conftest.err conftest.$ac_objext \
13166       conftest$ac_exeext conftest.$ac_ext
13167 LIBS=$ac_check_lib_save_LIBS
13168 fi
13169 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13170 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13171 if test $ac_cv_lib_udis86_ud_init = yes; then
13172   cat >>confdefs.h <<_ACEOF
13173 #define HAVE_LIBUDIS86 1
13174 _ACEOF
13175
13176   LIBS="-ludis86 $LIBS"
13177
13178 else
13179
13180         echo "Error! You need to have libudis86 around."
13181         exit -1
13182
13183 fi
13184
13185
13186 else
13187   USE_UDIS86=0
13188
13189 fi
13190
13191
13192 cat >>confdefs.h <<_ACEOF
13193 #define USE_UDIS86 $USE_UDIS86
13194 _ACEOF
13195
13196
13197
13198 # Check whether --with-oprofile was given.
13199 if test "${with_oprofile+set}" = set; then
13200   withval=$with_oprofile;
13201       USE_OPROFILE=1
13202
13203       case "$withval" in
13204         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13205         no) llvm_cv_oppath=
13206             USE_OPROFILE=0
13207  ;;
13208         *) llvm_cv_oppath="${withval}/lib/oprofile"
13209            CPPFLAGS="-I${withval}/include";;
13210       esac
13211       if test -n "$llvm_cv_oppath" ; then
13212         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13213                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13214 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13215 if test "${ac_cv_search_bfd_init+set}" = set; then
13216   echo $ECHO_N "(cached) $ECHO_C" >&6
13217 else
13218   ac_func_search_save_LIBS=$LIBS
13219 cat >conftest.$ac_ext <<_ACEOF
13220 /* confdefs.h.  */
13221 _ACEOF
13222 cat confdefs.h >>conftest.$ac_ext
13223 cat >>conftest.$ac_ext <<_ACEOF
13224 /* end confdefs.h.  */
13225
13226 /* Override any GCC internal prototype to avoid an error.
13227    Use char because int might match the return type of a GCC
13228    builtin and then its argument prototype would still apply.  */
13229 #ifdef __cplusplus
13230 extern "C"
13231 #endif
13232 char bfd_init ();
13233 int
13234 main ()
13235 {
13236 return bfd_init ();
13237   ;
13238   return 0;
13239 }
13240 _ACEOF
13241 for ac_lib in '' bfd; do
13242   if test -z "$ac_lib"; then
13243     ac_res="none required"
13244   else
13245     ac_res=-l$ac_lib
13246     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13247   fi
13248   rm -f conftest.$ac_objext conftest$ac_exeext
13249 if { (ac_try="$ac_link"
13250 case "(($ac_try" in
13251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13252   *) ac_try_echo=$ac_try;;
13253 esac
13254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13255   (eval "$ac_link") 2>conftest.er1
13256   ac_status=$?
13257   grep -v '^ *+' conftest.er1 >conftest.err
13258   rm -f conftest.er1
13259   cat conftest.err >&5
13260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261   (exit $ac_status); } &&
13262          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13263   { (case "(($ac_try" in
13264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13265   *) ac_try_echo=$ac_try;;
13266 esac
13267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13268   (eval "$ac_try") 2>&5
13269   ac_status=$?
13270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271   (exit $ac_status); }; } &&
13272          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13282   ac_cv_search_bfd_init=$ac_res
13283 else
13284   echo "$as_me: failed program was:" >&5
13285 sed 's/^/| /' conftest.$ac_ext >&5
13286
13287
13288 fi
13289
13290 rm -f core conftest.err conftest.$ac_objext \
13291       conftest$ac_exeext
13292   if test "${ac_cv_search_bfd_init+set}" = set; then
13293   break
13294 fi
13295 done
13296 if test "${ac_cv_search_bfd_init+set}" = set; then
13297   :
13298 else
13299   ac_cv_search_bfd_init=no
13300 fi
13301 rm conftest.$ac_ext
13302 LIBS=$ac_func_search_save_LIBS
13303 fi
13304 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13305 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13306 ac_res=$ac_cv_search_bfd_init
13307 if test "$ac_res" != no; then
13308   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13309
13310 fi
13311
13312         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13313 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13314 if test "${ac_cv_search_op_open_agent+set}" = set; then
13315   echo $ECHO_N "(cached) $ECHO_C" >&6
13316 else
13317   ac_func_search_save_LIBS=$LIBS
13318 cat >conftest.$ac_ext <<_ACEOF
13319 /* confdefs.h.  */
13320 _ACEOF
13321 cat confdefs.h >>conftest.$ac_ext
13322 cat >>conftest.$ac_ext <<_ACEOF
13323 /* end confdefs.h.  */
13324
13325 /* Override any GCC internal prototype to avoid an error.
13326    Use char because int might match the return type of a GCC
13327    builtin and then its argument prototype would still apply.  */
13328 #ifdef __cplusplus
13329 extern "C"
13330 #endif
13331 char op_open_agent ();
13332 int
13333 main ()
13334 {
13335 return op_open_agent ();
13336   ;
13337   return 0;
13338 }
13339 _ACEOF
13340 for ac_lib in '' opagent; do
13341   if test -z "$ac_lib"; then
13342     ac_res="none required"
13343   else
13344     ac_res=-l$ac_lib
13345     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13346   fi
13347   rm -f conftest.$ac_objext conftest$ac_exeext
13348 if { (ac_try="$ac_link"
13349 case "(($ac_try" in
13350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13351   *) ac_try_echo=$ac_try;;
13352 esac
13353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13354   (eval "$ac_link") 2>conftest.er1
13355   ac_status=$?
13356   grep -v '^ *+' conftest.er1 >conftest.err
13357   rm -f conftest.er1
13358   cat conftest.err >&5
13359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360   (exit $ac_status); } &&
13361          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13362   { (case "(($ac_try" in
13363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13364   *) ac_try_echo=$ac_try;;
13365 esac
13366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13367   (eval "$ac_try") 2>&5
13368   ac_status=$?
13369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370   (exit $ac_status); }; } &&
13371          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13381   ac_cv_search_op_open_agent=$ac_res
13382 else
13383   echo "$as_me: failed program was:" >&5
13384 sed 's/^/| /' conftest.$ac_ext >&5
13385
13386
13387 fi
13388
13389 rm -f core conftest.err conftest.$ac_objext \
13390       conftest$ac_exeext
13391   if test "${ac_cv_search_op_open_agent+set}" = set; then
13392   break
13393 fi
13394 done
13395 if test "${ac_cv_search_op_open_agent+set}" = set; then
13396   :
13397 else
13398   ac_cv_search_op_open_agent=no
13399 fi
13400 rm conftest.$ac_ext
13401 LIBS=$ac_func_search_save_LIBS
13402 fi
13403 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13404 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13405 ac_res=$ac_cv_search_op_open_agent
13406 if test "$ac_res" != no; then
13407   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13408
13409 else
13410
13411           echo "Error! You need to have libopagent around."
13412           exit -1
13413
13414 fi
13415
13416         if test "${ac_cv_header_opagent_h+set}" = set; then
13417   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13418 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13419 if test "${ac_cv_header_opagent_h+set}" = set; then
13420   echo $ECHO_N "(cached) $ECHO_C" >&6
13421 fi
13422 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13423 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13424 else
13425   # Is the header compilable?
13426 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13427 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13428 cat >conftest.$ac_ext <<_ACEOF
13429 /* confdefs.h.  */
13430 _ACEOF
13431 cat confdefs.h >>conftest.$ac_ext
13432 cat >>conftest.$ac_ext <<_ACEOF
13433 /* end confdefs.h.  */
13434 $ac_includes_default
13435 #include <opagent.h>
13436 _ACEOF
13437 rm -f conftest.$ac_objext
13438 if { (ac_try="$ac_compile"
13439 case "(($ac_try" in
13440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13441   *) ac_try_echo=$ac_try;;
13442 esac
13443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13444   (eval "$ac_compile") 2>conftest.er1
13445   ac_status=$?
13446   grep -v '^ *+' conftest.er1 >conftest.err
13447   rm -f conftest.er1
13448   cat conftest.err >&5
13449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450   (exit $ac_status); } &&
13451          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13452   { (case "(($ac_try" in
13453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13454   *) ac_try_echo=$ac_try;;
13455 esac
13456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13457   (eval "$ac_try") 2>&5
13458   ac_status=$?
13459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460   (exit $ac_status); }; } &&
13461          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13471   ac_header_compiler=yes
13472 else
13473   echo "$as_me: failed program was:" >&5
13474 sed 's/^/| /' conftest.$ac_ext >&5
13475
13476         ac_header_compiler=no
13477 fi
13478
13479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13480 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13481 echo "${ECHO_T}$ac_header_compiler" >&6; }
13482
13483 # Is the header present?
13484 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13485 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13486 cat >conftest.$ac_ext <<_ACEOF
13487 /* confdefs.h.  */
13488 _ACEOF
13489 cat confdefs.h >>conftest.$ac_ext
13490 cat >>conftest.$ac_ext <<_ACEOF
13491 /* end confdefs.h.  */
13492 #include <opagent.h>
13493 _ACEOF
13494 if { (ac_try="$ac_cpp conftest.$ac_ext"
13495 case "(($ac_try" in
13496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13497   *) ac_try_echo=$ac_try;;
13498 esac
13499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13500   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13501   ac_status=$?
13502   grep -v '^ *+' conftest.er1 >conftest.err
13503   rm -f conftest.er1
13504   cat conftest.err >&5
13505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506   (exit $ac_status); } >/dev/null; then
13507   if test -s conftest.err; then
13508     ac_cpp_err=$ac_c_preproc_warn_flag
13509     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13510   else
13511     ac_cpp_err=
13512   fi
13513 else
13514   ac_cpp_err=yes
13515 fi
13516 if test -z "$ac_cpp_err"; then
13517   ac_header_preproc=yes
13518 else
13519   echo "$as_me: failed program was:" >&5
13520 sed 's/^/| /' conftest.$ac_ext >&5
13521
13522   ac_header_preproc=no
13523 fi
13524
13525 rm -f conftest.err conftest.$ac_ext
13526 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13527 echo "${ECHO_T}$ac_header_preproc" >&6; }
13528
13529 # So?  What about this header?
13530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13531   yes:no: )
13532     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13533 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13534     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13535 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13536     ac_header_preproc=yes
13537     ;;
13538   no:yes:* )
13539     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13540 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13541     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13542 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13543     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13544 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13545     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13546 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13547     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13548 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13549     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13550 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13551     ( cat <<\_ASBOX
13552 ## ------------------------------ ##
13553 ## Report this to bugs@yourdomain ##
13554 ## ------------------------------ ##
13555 _ASBOX
13556      ) | sed "s/^/$as_me: WARNING:     /" >&2
13557     ;;
13558 esac
13559 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13560 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13561 if test "${ac_cv_header_opagent_h+set}" = set; then
13562   echo $ECHO_N "(cached) $ECHO_C" >&6
13563 else
13564   ac_cv_header_opagent_h=$ac_header_preproc
13565 fi
13566 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13567 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13568
13569 fi
13570 if test $ac_cv_header_opagent_h = yes; then
13571   :
13572 else
13573
13574           echo "Error! You need to have opagent.h around."
13575           exit -1
13576
13577 fi
13578
13579
13580       fi
13581
13582 else
13583
13584       USE_OPROFILE=0
13585
13586
13587 fi
13588
13589
13590 cat >>confdefs.h <<_ACEOF
13591 #define USE_OPROFILE $USE_OPROFILE
13592 _ACEOF
13593
13594
13595
13596
13597
13598
13599
13600
13601 ac_header_dirent=no
13602 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13603   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13604 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13605 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13607   echo $ECHO_N "(cached) $ECHO_C" >&6
13608 else
13609   cat >conftest.$ac_ext <<_ACEOF
13610 /* confdefs.h.  */
13611 _ACEOF
13612 cat confdefs.h >>conftest.$ac_ext
13613 cat >>conftest.$ac_ext <<_ACEOF
13614 /* end confdefs.h.  */
13615 #include <sys/types.h>
13616 #include <$ac_hdr>
13617
13618 int
13619 main ()
13620 {
13621 if ((DIR *) 0)
13622 return 0;
13623   ;
13624   return 0;
13625 }
13626 _ACEOF
13627 rm -f conftest.$ac_objext
13628 if { (ac_try="$ac_compile"
13629 case "(($ac_try" in
13630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13631   *) ac_try_echo=$ac_try;;
13632 esac
13633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13634   (eval "$ac_compile") 2>conftest.er1
13635   ac_status=$?
13636   grep -v '^ *+' conftest.er1 >conftest.err
13637   rm -f conftest.er1
13638   cat conftest.err >&5
13639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640   (exit $ac_status); } &&
13641          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13642   { (case "(($ac_try" in
13643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13644   *) ac_try_echo=$ac_try;;
13645 esac
13646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13647   (eval "$ac_try") 2>&5
13648   ac_status=$?
13649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650   (exit $ac_status); }; } &&
13651          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13661   eval "$as_ac_Header=yes"
13662 else
13663   echo "$as_me: failed program was:" >&5
13664 sed 's/^/| /' conftest.$ac_ext >&5
13665
13666         eval "$as_ac_Header=no"
13667 fi
13668
13669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13670 fi
13671 ac_res=`eval echo '${'$as_ac_Header'}'`
13672                { echo "$as_me:$LINENO: result: $ac_res" >&5
13673 echo "${ECHO_T}$ac_res" >&6; }
13674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13675   cat >>confdefs.h <<_ACEOF
13676 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13677 _ACEOF
13678
13679 ac_header_dirent=$ac_hdr; break
13680 fi
13681
13682 done
13683 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13684 if test $ac_header_dirent = dirent.h; then
13685   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13686 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13687 if test "${ac_cv_search_opendir+set}" = set; then
13688   echo $ECHO_N "(cached) $ECHO_C" >&6
13689 else
13690   ac_func_search_save_LIBS=$LIBS
13691 cat >conftest.$ac_ext <<_ACEOF
13692 /* confdefs.h.  */
13693 _ACEOF
13694 cat confdefs.h >>conftest.$ac_ext
13695 cat >>conftest.$ac_ext <<_ACEOF
13696 /* end confdefs.h.  */
13697
13698 /* Override any GCC internal prototype to avoid an error.
13699    Use char because int might match the return type of a GCC
13700    builtin and then its argument prototype would still apply.  */
13701 #ifdef __cplusplus
13702 extern "C"
13703 #endif
13704 char opendir ();
13705 int
13706 main ()
13707 {
13708 return opendir ();
13709   ;
13710   return 0;
13711 }
13712 _ACEOF
13713 for ac_lib in '' dir; do
13714   if test -z "$ac_lib"; then
13715     ac_res="none required"
13716   else
13717     ac_res=-l$ac_lib
13718     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13719   fi
13720   rm -f conftest.$ac_objext conftest$ac_exeext
13721 if { (ac_try="$ac_link"
13722 case "(($ac_try" in
13723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13724   *) ac_try_echo=$ac_try;;
13725 esac
13726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13727   (eval "$ac_link") 2>conftest.er1
13728   ac_status=$?
13729   grep -v '^ *+' conftest.er1 >conftest.err
13730   rm -f conftest.er1
13731   cat conftest.err >&5
13732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733   (exit $ac_status); } &&
13734          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13735   { (case "(($ac_try" in
13736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13737   *) ac_try_echo=$ac_try;;
13738 esac
13739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13740   (eval "$ac_try") 2>&5
13741   ac_status=$?
13742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743   (exit $ac_status); }; } &&
13744          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13754   ac_cv_search_opendir=$ac_res
13755 else
13756   echo "$as_me: failed program was:" >&5
13757 sed 's/^/| /' conftest.$ac_ext >&5
13758
13759
13760 fi
13761
13762 rm -f core conftest.err conftest.$ac_objext \
13763       conftest$ac_exeext
13764   if test "${ac_cv_search_opendir+set}" = set; then
13765   break
13766 fi
13767 done
13768 if test "${ac_cv_search_opendir+set}" = set; then
13769   :
13770 else
13771   ac_cv_search_opendir=no
13772 fi
13773 rm conftest.$ac_ext
13774 LIBS=$ac_func_search_save_LIBS
13775 fi
13776 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13777 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13778 ac_res=$ac_cv_search_opendir
13779 if test "$ac_res" != no; then
13780   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13781
13782 fi
13783
13784 else
13785   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13786 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13787 if test "${ac_cv_search_opendir+set}" = set; then
13788   echo $ECHO_N "(cached) $ECHO_C" >&6
13789 else
13790   ac_func_search_save_LIBS=$LIBS
13791 cat >conftest.$ac_ext <<_ACEOF
13792 /* confdefs.h.  */
13793 _ACEOF
13794 cat confdefs.h >>conftest.$ac_ext
13795 cat >>conftest.$ac_ext <<_ACEOF
13796 /* end confdefs.h.  */
13797
13798 /* Override any GCC internal prototype to avoid an error.
13799    Use char because int might match the return type of a GCC
13800    builtin and then its argument prototype would still apply.  */
13801 #ifdef __cplusplus
13802 extern "C"
13803 #endif
13804 char opendir ();
13805 int
13806 main ()
13807 {
13808 return opendir ();
13809   ;
13810   return 0;
13811 }
13812 _ACEOF
13813 for ac_lib in '' x; do
13814   if test -z "$ac_lib"; then
13815     ac_res="none required"
13816   else
13817     ac_res=-l$ac_lib
13818     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13819   fi
13820   rm -f conftest.$ac_objext conftest$ac_exeext
13821 if { (ac_try="$ac_link"
13822 case "(($ac_try" in
13823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13824   *) ac_try_echo=$ac_try;;
13825 esac
13826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13827   (eval "$ac_link") 2>conftest.er1
13828   ac_status=$?
13829   grep -v '^ *+' conftest.er1 >conftest.err
13830   rm -f conftest.er1
13831   cat conftest.err >&5
13832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833   (exit $ac_status); } &&
13834          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13835   { (case "(($ac_try" in
13836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13837   *) ac_try_echo=$ac_try;;
13838 esac
13839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13840   (eval "$ac_try") 2>&5
13841   ac_status=$?
13842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843   (exit $ac_status); }; } &&
13844          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13854   ac_cv_search_opendir=$ac_res
13855 else
13856   echo "$as_me: failed program was:" >&5
13857 sed 's/^/| /' conftest.$ac_ext >&5
13858
13859
13860 fi
13861
13862 rm -f core conftest.err conftest.$ac_objext \
13863       conftest$ac_exeext
13864   if test "${ac_cv_search_opendir+set}" = set; then
13865   break
13866 fi
13867 done
13868 if test "${ac_cv_search_opendir+set}" = set; then
13869   :
13870 else
13871   ac_cv_search_opendir=no
13872 fi
13873 rm conftest.$ac_ext
13874 LIBS=$ac_func_search_save_LIBS
13875 fi
13876 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13877 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13878 ac_res=$ac_cv_search_opendir
13879 if test "$ac_res" != no; then
13880   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13881
13882 fi
13883
13884 fi
13885
13886 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13887 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13888 if test "${ac_cv_header_mmap_anon+set}" = set; then
13889   echo $ECHO_N "(cached) $ECHO_C" >&6
13890 else
13891    ac_ext=c
13892 ac_cpp='$CPP $CPPFLAGS'
13893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13896
13897   cat >conftest.$ac_ext <<_ACEOF
13898 /* confdefs.h.  */
13899 _ACEOF
13900 cat confdefs.h >>conftest.$ac_ext
13901 cat >>conftest.$ac_ext <<_ACEOF
13902 /* end confdefs.h.  */
13903 #include <sys/mman.h>
13904 #include <unistd.h>
13905 #include <fcntl.h>
13906 int
13907 main ()
13908 {
13909 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13910   ;
13911   return 0;
13912 }
13913 _ACEOF
13914 rm -f conftest.$ac_objext
13915 if { (ac_try="$ac_compile"
13916 case "(($ac_try" in
13917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13918   *) ac_try_echo=$ac_try;;
13919 esac
13920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13921   (eval "$ac_compile") 2>conftest.er1
13922   ac_status=$?
13923   grep -v '^ *+' conftest.er1 >conftest.err
13924   rm -f conftest.er1
13925   cat conftest.err >&5
13926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927   (exit $ac_status); } &&
13928          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13929   { (case "(($ac_try" in
13930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13931   *) ac_try_echo=$ac_try;;
13932 esac
13933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13934   (eval "$ac_try") 2>&5
13935   ac_status=$?
13936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937   (exit $ac_status); }; } &&
13938          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13948   ac_cv_header_mmap_anon=yes
13949 else
13950   echo "$as_me: failed program was:" >&5
13951 sed 's/^/| /' conftest.$ac_ext >&5
13952
13953         ac_cv_header_mmap_anon=no
13954 fi
13955
13956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13957   ac_ext=c
13958 ac_cpp='$CPP $CPPFLAGS'
13959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13962
13963
13964 fi
13965 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13966 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13967 if test "$ac_cv_header_mmap_anon" = yes; then
13968
13969 cat >>confdefs.h <<\_ACEOF
13970 #define HAVE_MMAP_ANONYMOUS 1
13971 _ACEOF
13972
13973 fi
13974
13975 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13976 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
13977 if test "${ac_cv_header_stat_broken+set}" = set; then
13978   echo $ECHO_N "(cached) $ECHO_C" >&6
13979 else
13980   cat >conftest.$ac_ext <<_ACEOF
13981 /* confdefs.h.  */
13982 _ACEOF
13983 cat confdefs.h >>conftest.$ac_ext
13984 cat >>conftest.$ac_ext <<_ACEOF
13985 /* end confdefs.h.  */
13986 #include <sys/types.h>
13987 #include <sys/stat.h>
13988
13989 #if defined S_ISBLK && defined S_IFDIR
13990 # if S_ISBLK (S_IFDIR)
13991 You lose.
13992 # endif
13993 #endif
13994
13995 #if defined S_ISBLK && defined S_IFCHR
13996 # if S_ISBLK (S_IFCHR)
13997 You lose.
13998 # endif
13999 #endif
14000
14001 #if defined S_ISLNK && defined S_IFREG
14002 # if S_ISLNK (S_IFREG)
14003 You lose.
14004 # endif
14005 #endif
14006
14007 #if defined S_ISSOCK && defined S_IFREG
14008 # if S_ISSOCK (S_IFREG)
14009 You lose.
14010 # endif
14011 #endif
14012
14013 _ACEOF
14014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14015   $EGREP "You lose" >/dev/null 2>&1; then
14016   ac_cv_header_stat_broken=yes
14017 else
14018   ac_cv_header_stat_broken=no
14019 fi
14020 rm -f conftest*
14021
14022 fi
14023 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14024 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14025 if test $ac_cv_header_stat_broken = yes; then
14026
14027 cat >>confdefs.h <<\_ACEOF
14028 #define STAT_MACROS_BROKEN 1
14029 _ACEOF
14030
14031 fi
14032
14033 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14034 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14035 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14036   echo $ECHO_N "(cached) $ECHO_C" >&6
14037 else
14038   cat >conftest.$ac_ext <<_ACEOF
14039 /* confdefs.h.  */
14040 _ACEOF
14041 cat confdefs.h >>conftest.$ac_ext
14042 cat >>conftest.$ac_ext <<_ACEOF
14043 /* end confdefs.h.  */
14044 #include <sys/types.h>
14045 #include <sys/wait.h>
14046 #ifndef WEXITSTATUS
14047 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14048 #endif
14049 #ifndef WIFEXITED
14050 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14051 #endif
14052
14053 int
14054 main ()
14055 {
14056   int s;
14057   wait (&s);
14058   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14059   ;
14060   return 0;
14061 }
14062 _ACEOF
14063 rm -f conftest.$ac_objext
14064 if { (ac_try="$ac_compile"
14065 case "(($ac_try" in
14066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14067   *) ac_try_echo=$ac_try;;
14068 esac
14069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14070   (eval "$ac_compile") 2>conftest.er1
14071   ac_status=$?
14072   grep -v '^ *+' conftest.er1 >conftest.err
14073   rm -f conftest.er1
14074   cat conftest.err >&5
14075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076   (exit $ac_status); } &&
14077          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14078   { (case "(($ac_try" in
14079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14080   *) ac_try_echo=$ac_try;;
14081 esac
14082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14083   (eval "$ac_try") 2>&5
14084   ac_status=$?
14085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086   (exit $ac_status); }; } &&
14087          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14097   ac_cv_header_sys_wait_h=yes
14098 else
14099   echo "$as_me: failed program was:" >&5
14100 sed 's/^/| /' conftest.$ac_ext >&5
14101
14102         ac_cv_header_sys_wait_h=no
14103 fi
14104
14105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14106 fi
14107 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14108 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14109 if test $ac_cv_header_sys_wait_h = yes; then
14110
14111 cat >>confdefs.h <<\_ACEOF
14112 #define HAVE_SYS_WAIT_H 1
14113 _ACEOF
14114
14115 fi
14116
14117 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14118 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14119 if test "${ac_cv_header_time+set}" = set; then
14120   echo $ECHO_N "(cached) $ECHO_C" >&6
14121 else
14122   cat >conftest.$ac_ext <<_ACEOF
14123 /* confdefs.h.  */
14124 _ACEOF
14125 cat confdefs.h >>conftest.$ac_ext
14126 cat >>conftest.$ac_ext <<_ACEOF
14127 /* end confdefs.h.  */
14128 #include <sys/types.h>
14129 #include <sys/time.h>
14130 #include <time.h>
14131
14132 int
14133 main ()
14134 {
14135 if ((struct tm *) 0)
14136 return 0;
14137   ;
14138   return 0;
14139 }
14140 _ACEOF
14141 rm -f conftest.$ac_objext
14142 if { (ac_try="$ac_compile"
14143 case "(($ac_try" in
14144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14145   *) ac_try_echo=$ac_try;;
14146 esac
14147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14148   (eval "$ac_compile") 2>conftest.er1
14149   ac_status=$?
14150   grep -v '^ *+' conftest.er1 >conftest.err
14151   rm -f conftest.er1
14152   cat conftest.err >&5
14153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154   (exit $ac_status); } &&
14155          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14156   { (case "(($ac_try" in
14157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14158   *) ac_try_echo=$ac_try;;
14159 esac
14160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14161   (eval "$ac_try") 2>&5
14162   ac_status=$?
14163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164   (exit $ac_status); }; } &&
14165          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14175   ac_cv_header_time=yes
14176 else
14177   echo "$as_me: failed program was:" >&5
14178 sed 's/^/| /' conftest.$ac_ext >&5
14179
14180         ac_cv_header_time=no
14181 fi
14182
14183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14184 fi
14185 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14186 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14187 if test $ac_cv_header_time = yes; then
14188
14189 cat >>confdefs.h <<\_ACEOF
14190 #define TIME_WITH_SYS_TIME 1
14191 _ACEOF
14192
14193 fi
14194
14195
14196
14197
14198
14199
14200
14201
14202 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14203 do
14204 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14206   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14209   echo $ECHO_N "(cached) $ECHO_C" >&6
14210 fi
14211 ac_res=`eval echo '${'$as_ac_Header'}'`
14212                { echo "$as_me:$LINENO: result: $ac_res" >&5
14213 echo "${ECHO_T}$ac_res" >&6; }
14214 else
14215   # Is the header compilable?
14216 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14217 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14218 cat >conftest.$ac_ext <<_ACEOF
14219 /* confdefs.h.  */
14220 _ACEOF
14221 cat confdefs.h >>conftest.$ac_ext
14222 cat >>conftest.$ac_ext <<_ACEOF
14223 /* end confdefs.h.  */
14224 $ac_includes_default
14225 #include <$ac_header>
14226 _ACEOF
14227 rm -f conftest.$ac_objext
14228 if { (ac_try="$ac_compile"
14229 case "(($ac_try" in
14230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14231   *) ac_try_echo=$ac_try;;
14232 esac
14233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14234   (eval "$ac_compile") 2>conftest.er1
14235   ac_status=$?
14236   grep -v '^ *+' conftest.er1 >conftest.err
14237   rm -f conftest.er1
14238   cat conftest.err >&5
14239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240   (exit $ac_status); } &&
14241          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14242   { (case "(($ac_try" in
14243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14244   *) ac_try_echo=$ac_try;;
14245 esac
14246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14247   (eval "$ac_try") 2>&5
14248   ac_status=$?
14249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250   (exit $ac_status); }; } &&
14251          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14261   ac_header_compiler=yes
14262 else
14263   echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14265
14266         ac_header_compiler=no
14267 fi
14268
14269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14270 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14271 echo "${ECHO_T}$ac_header_compiler" >&6; }
14272
14273 # Is the header present?
14274 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14275 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14276 cat >conftest.$ac_ext <<_ACEOF
14277 /* confdefs.h.  */
14278 _ACEOF
14279 cat confdefs.h >>conftest.$ac_ext
14280 cat >>conftest.$ac_ext <<_ACEOF
14281 /* end confdefs.h.  */
14282 #include <$ac_header>
14283 _ACEOF
14284 if { (ac_try="$ac_cpp conftest.$ac_ext"
14285 case "(($ac_try" in
14286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14287   *) ac_try_echo=$ac_try;;
14288 esac
14289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14290   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14291   ac_status=$?
14292   grep -v '^ *+' conftest.er1 >conftest.err
14293   rm -f conftest.er1
14294   cat conftest.err >&5
14295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296   (exit $ac_status); } >/dev/null; then
14297   if test -s conftest.err; then
14298     ac_cpp_err=$ac_c_preproc_warn_flag
14299     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14300   else
14301     ac_cpp_err=
14302   fi
14303 else
14304   ac_cpp_err=yes
14305 fi
14306 if test -z "$ac_cpp_err"; then
14307   ac_header_preproc=yes
14308 else
14309   echo "$as_me: failed program was:" >&5
14310 sed 's/^/| /' conftest.$ac_ext >&5
14311
14312   ac_header_preproc=no
14313 fi
14314
14315 rm -f conftest.err conftest.$ac_ext
14316 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14317 echo "${ECHO_T}$ac_header_preproc" >&6; }
14318
14319 # So?  What about this header?
14320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14321   yes:no: )
14322     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14324     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14325 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14326     ac_header_preproc=yes
14327     ;;
14328   no:yes:* )
14329     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14330 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14331     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14332 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14333     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14334 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14335     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14336 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14337     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14339     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14340 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14341     ( cat <<\_ASBOX
14342 ## ------------------------------ ##
14343 ## Report this to bugs@yourdomain ##
14344 ## ------------------------------ ##
14345 _ASBOX
14346      ) | sed "s/^/$as_me: WARNING:     /" >&2
14347     ;;
14348 esac
14349 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14352   echo $ECHO_N "(cached) $ECHO_C" >&6
14353 else
14354   eval "$as_ac_Header=\$ac_header_preproc"
14355 fi
14356 ac_res=`eval echo '${'$as_ac_Header'}'`
14357                { echo "$as_me:$LINENO: result: $ac_res" >&5
14358 echo "${ECHO_T}$ac_res" >&6; }
14359
14360 fi
14361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14362   cat >>confdefs.h <<_ACEOF
14363 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14364 _ACEOF
14365
14366 fi
14367
14368 done
14369
14370
14371
14372
14373
14374
14375
14376 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14377 do
14378 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14380   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14383   echo $ECHO_N "(cached) $ECHO_C" >&6
14384 fi
14385 ac_res=`eval echo '${'$as_ac_Header'}'`
14386                { echo "$as_me:$LINENO: result: $ac_res" >&5
14387 echo "${ECHO_T}$ac_res" >&6; }
14388 else
14389   # Is the header compilable?
14390 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14391 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14392 cat >conftest.$ac_ext <<_ACEOF
14393 /* confdefs.h.  */
14394 _ACEOF
14395 cat confdefs.h >>conftest.$ac_ext
14396 cat >>conftest.$ac_ext <<_ACEOF
14397 /* end confdefs.h.  */
14398 $ac_includes_default
14399 #include <$ac_header>
14400 _ACEOF
14401 rm -f conftest.$ac_objext
14402 if { (ac_try="$ac_compile"
14403 case "(($ac_try" in
14404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14405   *) ac_try_echo=$ac_try;;
14406 esac
14407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14408   (eval "$ac_compile") 2>conftest.er1
14409   ac_status=$?
14410   grep -v '^ *+' conftest.er1 >conftest.err
14411   rm -f conftest.er1
14412   cat conftest.err >&5
14413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414   (exit $ac_status); } &&
14415          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14416   { (case "(($ac_try" in
14417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14418   *) ac_try_echo=$ac_try;;
14419 esac
14420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14421   (eval "$ac_try") 2>&5
14422   ac_status=$?
14423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424   (exit $ac_status); }; } &&
14425          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14435   ac_header_compiler=yes
14436 else
14437   echo "$as_me: failed program was:" >&5
14438 sed 's/^/| /' conftest.$ac_ext >&5
14439
14440         ac_header_compiler=no
14441 fi
14442
14443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14444 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14445 echo "${ECHO_T}$ac_header_compiler" >&6; }
14446
14447 # Is the header present?
14448 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14450 cat >conftest.$ac_ext <<_ACEOF
14451 /* confdefs.h.  */
14452 _ACEOF
14453 cat confdefs.h >>conftest.$ac_ext
14454 cat >>conftest.$ac_ext <<_ACEOF
14455 /* end confdefs.h.  */
14456 #include <$ac_header>
14457 _ACEOF
14458 if { (ac_try="$ac_cpp conftest.$ac_ext"
14459 case "(($ac_try" in
14460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14461   *) ac_try_echo=$ac_try;;
14462 esac
14463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14464   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14465   ac_status=$?
14466   grep -v '^ *+' conftest.er1 >conftest.err
14467   rm -f conftest.er1
14468   cat conftest.err >&5
14469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470   (exit $ac_status); } >/dev/null; then
14471   if test -s conftest.err; then
14472     ac_cpp_err=$ac_c_preproc_warn_flag
14473     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14474   else
14475     ac_cpp_err=
14476   fi
14477 else
14478   ac_cpp_err=yes
14479 fi
14480 if test -z "$ac_cpp_err"; then
14481   ac_header_preproc=yes
14482 else
14483   echo "$as_me: failed program was:" >&5
14484 sed 's/^/| /' conftest.$ac_ext >&5
14485
14486   ac_header_preproc=no
14487 fi
14488
14489 rm -f conftest.err conftest.$ac_ext
14490 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14491 echo "${ECHO_T}$ac_header_preproc" >&6; }
14492
14493 # So?  What about this header?
14494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14495   yes:no: )
14496     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14497 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14498     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14499 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14500     ac_header_preproc=yes
14501     ;;
14502   no:yes:* )
14503     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14504 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14505     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14506 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14507     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14508 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14509     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14510 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14511     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14512 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14513     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14514 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14515     ( cat <<\_ASBOX
14516 ## ------------------------------ ##
14517 ## Report this to bugs@yourdomain ##
14518 ## ------------------------------ ##
14519 _ASBOX
14520      ) | sed "s/^/$as_me: WARNING:     /" >&2
14521     ;;
14522 esac
14523 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14526   echo $ECHO_N "(cached) $ECHO_C" >&6
14527 else
14528   eval "$as_ac_Header=\$ac_header_preproc"
14529 fi
14530 ac_res=`eval echo '${'$as_ac_Header'}'`
14531                { echo "$as_me:$LINENO: result: $ac_res" >&5
14532 echo "${ECHO_T}$ac_res" >&6; }
14533
14534 fi
14535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14536   cat >>confdefs.h <<_ACEOF
14537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14538 _ACEOF
14539
14540 fi
14541
14542 done
14543
14544
14545
14546 for ac_header in utime.h windows.h
14547 do
14548 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14550   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14553   echo $ECHO_N "(cached) $ECHO_C" >&6
14554 fi
14555 ac_res=`eval echo '${'$as_ac_Header'}'`
14556                { echo "$as_me:$LINENO: result: $ac_res" >&5
14557 echo "${ECHO_T}$ac_res" >&6; }
14558 else
14559   # Is the header compilable?
14560 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14561 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14562 cat >conftest.$ac_ext <<_ACEOF
14563 /* confdefs.h.  */
14564 _ACEOF
14565 cat confdefs.h >>conftest.$ac_ext
14566 cat >>conftest.$ac_ext <<_ACEOF
14567 /* end confdefs.h.  */
14568 $ac_includes_default
14569 #include <$ac_header>
14570 _ACEOF
14571 rm -f conftest.$ac_objext
14572 if { (ac_try="$ac_compile"
14573 case "(($ac_try" in
14574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14575   *) ac_try_echo=$ac_try;;
14576 esac
14577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14578   (eval "$ac_compile") 2>conftest.er1
14579   ac_status=$?
14580   grep -v '^ *+' conftest.er1 >conftest.err
14581   rm -f conftest.er1
14582   cat conftest.err >&5
14583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584   (exit $ac_status); } &&
14585          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14586   { (case "(($ac_try" in
14587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14588   *) ac_try_echo=$ac_try;;
14589 esac
14590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14591   (eval "$ac_try") 2>&5
14592   ac_status=$?
14593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594   (exit $ac_status); }; } &&
14595          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14605   ac_header_compiler=yes
14606 else
14607   echo "$as_me: failed program was:" >&5
14608 sed 's/^/| /' conftest.$ac_ext >&5
14609
14610         ac_header_compiler=no
14611 fi
14612
14613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14614 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14615 echo "${ECHO_T}$ac_header_compiler" >&6; }
14616
14617 # Is the header present?
14618 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14619 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14620 cat >conftest.$ac_ext <<_ACEOF
14621 /* confdefs.h.  */
14622 _ACEOF
14623 cat confdefs.h >>conftest.$ac_ext
14624 cat >>conftest.$ac_ext <<_ACEOF
14625 /* end confdefs.h.  */
14626 #include <$ac_header>
14627 _ACEOF
14628 if { (ac_try="$ac_cpp conftest.$ac_ext"
14629 case "(($ac_try" in
14630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14631   *) ac_try_echo=$ac_try;;
14632 esac
14633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14634   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14635   ac_status=$?
14636   grep -v '^ *+' conftest.er1 >conftest.err
14637   rm -f conftest.er1
14638   cat conftest.err >&5
14639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640   (exit $ac_status); } >/dev/null; then
14641   if test -s conftest.err; then
14642     ac_cpp_err=$ac_c_preproc_warn_flag
14643     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14644   else
14645     ac_cpp_err=
14646   fi
14647 else
14648   ac_cpp_err=yes
14649 fi
14650 if test -z "$ac_cpp_err"; then
14651   ac_header_preproc=yes
14652 else
14653   echo "$as_me: failed program was:" >&5
14654 sed 's/^/| /' conftest.$ac_ext >&5
14655
14656   ac_header_preproc=no
14657 fi
14658
14659 rm -f conftest.err conftest.$ac_ext
14660 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14661 echo "${ECHO_T}$ac_header_preproc" >&6; }
14662
14663 # So?  What about this header?
14664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14665   yes:no: )
14666     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14667 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14668     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14669 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14670     ac_header_preproc=yes
14671     ;;
14672   no:yes:* )
14673     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14674 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14675     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14676 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14677     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14678 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14679     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14680 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14681     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14683     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14684 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14685     ( cat <<\_ASBOX
14686 ## ------------------------------ ##
14687 ## Report this to bugs@yourdomain ##
14688 ## ------------------------------ ##
14689 _ASBOX
14690      ) | sed "s/^/$as_me: WARNING:     /" >&2
14691     ;;
14692 esac
14693 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14696   echo $ECHO_N "(cached) $ECHO_C" >&6
14697 else
14698   eval "$as_ac_Header=\$ac_header_preproc"
14699 fi
14700 ac_res=`eval echo '${'$as_ac_Header'}'`
14701                { echo "$as_me:$LINENO: result: $ac_res" >&5
14702 echo "${ECHO_T}$ac_res" >&6; }
14703
14704 fi
14705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14706   cat >>confdefs.h <<_ACEOF
14707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14708 _ACEOF
14709
14710 fi
14711
14712 done
14713
14714
14715
14716
14717
14718
14719 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14720 do
14721 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14723   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14726   echo $ECHO_N "(cached) $ECHO_C" >&6
14727 fi
14728 ac_res=`eval echo '${'$as_ac_Header'}'`
14729                { echo "$as_me:$LINENO: result: $ac_res" >&5
14730 echo "${ECHO_T}$ac_res" >&6; }
14731 else
14732   # Is the header compilable?
14733 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14734 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14735 cat >conftest.$ac_ext <<_ACEOF
14736 /* confdefs.h.  */
14737 _ACEOF
14738 cat confdefs.h >>conftest.$ac_ext
14739 cat >>conftest.$ac_ext <<_ACEOF
14740 /* end confdefs.h.  */
14741 $ac_includes_default
14742 #include <$ac_header>
14743 _ACEOF
14744 rm -f conftest.$ac_objext
14745 if { (ac_try="$ac_compile"
14746 case "(($ac_try" in
14747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14748   *) ac_try_echo=$ac_try;;
14749 esac
14750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14751   (eval "$ac_compile") 2>conftest.er1
14752   ac_status=$?
14753   grep -v '^ *+' conftest.er1 >conftest.err
14754   rm -f conftest.er1
14755   cat conftest.err >&5
14756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757   (exit $ac_status); } &&
14758          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14759   { (case "(($ac_try" in
14760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14761   *) ac_try_echo=$ac_try;;
14762 esac
14763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14764   (eval "$ac_try") 2>&5
14765   ac_status=$?
14766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767   (exit $ac_status); }; } &&
14768          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14778   ac_header_compiler=yes
14779 else
14780   echo "$as_me: failed program was:" >&5
14781 sed 's/^/| /' conftest.$ac_ext >&5
14782
14783         ac_header_compiler=no
14784 fi
14785
14786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14787 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14788 echo "${ECHO_T}$ac_header_compiler" >&6; }
14789
14790 # Is the header present?
14791 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14792 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14793 cat >conftest.$ac_ext <<_ACEOF
14794 /* confdefs.h.  */
14795 _ACEOF
14796 cat confdefs.h >>conftest.$ac_ext
14797 cat >>conftest.$ac_ext <<_ACEOF
14798 /* end confdefs.h.  */
14799 #include <$ac_header>
14800 _ACEOF
14801 if { (ac_try="$ac_cpp conftest.$ac_ext"
14802 case "(($ac_try" in
14803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14804   *) ac_try_echo=$ac_try;;
14805 esac
14806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14807   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14808   ac_status=$?
14809   grep -v '^ *+' conftest.er1 >conftest.err
14810   rm -f conftest.er1
14811   cat conftest.err >&5
14812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813   (exit $ac_status); } >/dev/null; then
14814   if test -s conftest.err; then
14815     ac_cpp_err=$ac_c_preproc_warn_flag
14816     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14817   else
14818     ac_cpp_err=
14819   fi
14820 else
14821   ac_cpp_err=yes
14822 fi
14823 if test -z "$ac_cpp_err"; then
14824   ac_header_preproc=yes
14825 else
14826   echo "$as_me: failed program was:" >&5
14827 sed 's/^/| /' conftest.$ac_ext >&5
14828
14829   ac_header_preproc=no
14830 fi
14831
14832 rm -f conftest.err conftest.$ac_ext
14833 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14834 echo "${ECHO_T}$ac_header_preproc" >&6; }
14835
14836 # So?  What about this header?
14837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14838   yes:no: )
14839     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14840 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14841     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14842 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14843     ac_header_preproc=yes
14844     ;;
14845   no:yes:* )
14846     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14847 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14848     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14849 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14850     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14851 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14852     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14853 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14854     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14855 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14856     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14857 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14858     ( cat <<\_ASBOX
14859 ## ------------------------------ ##
14860 ## Report this to bugs@yourdomain ##
14861 ## ------------------------------ ##
14862 _ASBOX
14863      ) | sed "s/^/$as_me: WARNING:     /" >&2
14864     ;;
14865 esac
14866 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14869   echo $ECHO_N "(cached) $ECHO_C" >&6
14870 else
14871   eval "$as_ac_Header=\$ac_header_preproc"
14872 fi
14873 ac_res=`eval echo '${'$as_ac_Header'}'`
14874                { echo "$as_me:$LINENO: result: $ac_res" >&5
14875 echo "${ECHO_T}$ac_res" >&6; }
14876
14877 fi
14878 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14879   cat >>confdefs.h <<_ACEOF
14880 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14881 _ACEOF
14882
14883 fi
14884
14885 done
14886
14887
14888
14889
14890
14891 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14892 do
14893 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14895   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14898   echo $ECHO_N "(cached) $ECHO_C" >&6
14899 fi
14900 ac_res=`eval echo '${'$as_ac_Header'}'`
14901                { echo "$as_me:$LINENO: result: $ac_res" >&5
14902 echo "${ECHO_T}$ac_res" >&6; }
14903 else
14904   # Is the header compilable?
14905 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14906 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14907 cat >conftest.$ac_ext <<_ACEOF
14908 /* confdefs.h.  */
14909 _ACEOF
14910 cat confdefs.h >>conftest.$ac_ext
14911 cat >>conftest.$ac_ext <<_ACEOF
14912 /* end confdefs.h.  */
14913 $ac_includes_default
14914 #include <$ac_header>
14915 _ACEOF
14916 rm -f conftest.$ac_objext
14917 if { (ac_try="$ac_compile"
14918 case "(($ac_try" in
14919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14920   *) ac_try_echo=$ac_try;;
14921 esac
14922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14923   (eval "$ac_compile") 2>conftest.er1
14924   ac_status=$?
14925   grep -v '^ *+' conftest.er1 >conftest.err
14926   rm -f conftest.er1
14927   cat conftest.err >&5
14928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929   (exit $ac_status); } &&
14930          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14931   { (case "(($ac_try" in
14932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14933   *) ac_try_echo=$ac_try;;
14934 esac
14935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14936   (eval "$ac_try") 2>&5
14937   ac_status=$?
14938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939   (exit $ac_status); }; } &&
14940          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14950   ac_header_compiler=yes
14951 else
14952   echo "$as_me: failed program was:" >&5
14953 sed 's/^/| /' conftest.$ac_ext >&5
14954
14955         ac_header_compiler=no
14956 fi
14957
14958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14959 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14960 echo "${ECHO_T}$ac_header_compiler" >&6; }
14961
14962 # Is the header present?
14963 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14964 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14965 cat >conftest.$ac_ext <<_ACEOF
14966 /* confdefs.h.  */
14967 _ACEOF
14968 cat confdefs.h >>conftest.$ac_ext
14969 cat >>conftest.$ac_ext <<_ACEOF
14970 /* end confdefs.h.  */
14971 #include <$ac_header>
14972 _ACEOF
14973 if { (ac_try="$ac_cpp conftest.$ac_ext"
14974 case "(($ac_try" in
14975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14976   *) ac_try_echo=$ac_try;;
14977 esac
14978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14979   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14980   ac_status=$?
14981   grep -v '^ *+' conftest.er1 >conftest.err
14982   rm -f conftest.er1
14983   cat conftest.err >&5
14984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985   (exit $ac_status); } >/dev/null; then
14986   if test -s conftest.err; then
14987     ac_cpp_err=$ac_c_preproc_warn_flag
14988     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14989   else
14990     ac_cpp_err=
14991   fi
14992 else
14993   ac_cpp_err=yes
14994 fi
14995 if test -z "$ac_cpp_err"; then
14996   ac_header_preproc=yes
14997 else
14998   echo "$as_me: failed program was:" >&5
14999 sed 's/^/| /' conftest.$ac_ext >&5
15000
15001   ac_header_preproc=no
15002 fi
15003
15004 rm -f conftest.err conftest.$ac_ext
15005 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15006 echo "${ECHO_T}$ac_header_preproc" >&6; }
15007
15008 # So?  What about this header?
15009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15010   yes:no: )
15011     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15013     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15014 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15015     ac_header_preproc=yes
15016     ;;
15017   no:yes:* )
15018     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15019 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15020     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15021 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15022     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15023 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15024     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15025 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15026     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15028     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15029 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15030     ( cat <<\_ASBOX
15031 ## ------------------------------ ##
15032 ## Report this to bugs@yourdomain ##
15033 ## ------------------------------ ##
15034 _ASBOX
15035      ) | sed "s/^/$as_me: WARNING:     /" >&2
15036     ;;
15037 esac
15038 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15041   echo $ECHO_N "(cached) $ECHO_C" >&6
15042 else
15043   eval "$as_ac_Header=\$ac_header_preproc"
15044 fi
15045 ac_res=`eval echo '${'$as_ac_Header'}'`
15046                { echo "$as_me:$LINENO: result: $ac_res" >&5
15047 echo "${ECHO_T}$ac_res" >&6; }
15048
15049 fi
15050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15051   cat >>confdefs.h <<_ACEOF
15052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15053 _ACEOF
15054
15055 fi
15056
15057 done
15058
15059
15060 for ac_header in valgrind/valgrind.h
15061 do
15062 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15064   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15067   echo $ECHO_N "(cached) $ECHO_C" >&6
15068 fi
15069 ac_res=`eval echo '${'$as_ac_Header'}'`
15070                { echo "$as_me:$LINENO: result: $ac_res" >&5
15071 echo "${ECHO_T}$ac_res" >&6; }
15072 else
15073   # Is the header compilable?
15074 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15075 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15076 cat >conftest.$ac_ext <<_ACEOF
15077 /* confdefs.h.  */
15078 _ACEOF
15079 cat confdefs.h >>conftest.$ac_ext
15080 cat >>conftest.$ac_ext <<_ACEOF
15081 /* end confdefs.h.  */
15082 $ac_includes_default
15083 #include <$ac_header>
15084 _ACEOF
15085 rm -f conftest.$ac_objext
15086 if { (ac_try="$ac_compile"
15087 case "(($ac_try" in
15088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15089   *) ac_try_echo=$ac_try;;
15090 esac
15091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15092   (eval "$ac_compile") 2>conftest.er1
15093   ac_status=$?
15094   grep -v '^ *+' conftest.er1 >conftest.err
15095   rm -f conftest.er1
15096   cat conftest.err >&5
15097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098   (exit $ac_status); } &&
15099          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15100   { (case "(($ac_try" in
15101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15102   *) ac_try_echo=$ac_try;;
15103 esac
15104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15105   (eval "$ac_try") 2>&5
15106   ac_status=$?
15107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108   (exit $ac_status); }; } &&
15109          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15119   ac_header_compiler=yes
15120 else
15121   echo "$as_me: failed program was:" >&5
15122 sed 's/^/| /' conftest.$ac_ext >&5
15123
15124         ac_header_compiler=no
15125 fi
15126
15127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15128 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15129 echo "${ECHO_T}$ac_header_compiler" >&6; }
15130
15131 # Is the header present?
15132 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15133 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15134 cat >conftest.$ac_ext <<_ACEOF
15135 /* confdefs.h.  */
15136 _ACEOF
15137 cat confdefs.h >>conftest.$ac_ext
15138 cat >>conftest.$ac_ext <<_ACEOF
15139 /* end confdefs.h.  */
15140 #include <$ac_header>
15141 _ACEOF
15142 if { (ac_try="$ac_cpp conftest.$ac_ext"
15143 case "(($ac_try" in
15144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15145   *) ac_try_echo=$ac_try;;
15146 esac
15147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15148   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15149   ac_status=$?
15150   grep -v '^ *+' conftest.er1 >conftest.err
15151   rm -f conftest.er1
15152   cat conftest.err >&5
15153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154   (exit $ac_status); } >/dev/null; then
15155   if test -s conftest.err; then
15156     ac_cpp_err=$ac_c_preproc_warn_flag
15157     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15158   else
15159     ac_cpp_err=
15160   fi
15161 else
15162   ac_cpp_err=yes
15163 fi
15164 if test -z "$ac_cpp_err"; then
15165   ac_header_preproc=yes
15166 else
15167   echo "$as_me: failed program was:" >&5
15168 sed 's/^/| /' conftest.$ac_ext >&5
15169
15170   ac_header_preproc=no
15171 fi
15172
15173 rm -f conftest.err conftest.$ac_ext
15174 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15175 echo "${ECHO_T}$ac_header_preproc" >&6; }
15176
15177 # So?  What about this header?
15178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15179   yes:no: )
15180     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15182     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15183 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15184     ac_header_preproc=yes
15185     ;;
15186   no:yes:* )
15187     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15189     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15190 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15191     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15192 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15193     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15194 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15195     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15197     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15198 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15199     ( cat <<\_ASBOX
15200 ## ------------------------------ ##
15201 ## Report this to bugs@yourdomain ##
15202 ## ------------------------------ ##
15203 _ASBOX
15204      ) | sed "s/^/$as_me: WARNING:     /" >&2
15205     ;;
15206 esac
15207 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15210   echo $ECHO_N "(cached) $ECHO_C" >&6
15211 else
15212   eval "$as_ac_Header=\$ac_header_preproc"
15213 fi
15214 ac_res=`eval echo '${'$as_ac_Header'}'`
15215                { echo "$as_me:$LINENO: result: $ac_res" >&5
15216 echo "${ECHO_T}$ac_res" >&6; }
15217
15218 fi
15219 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15220   cat >>confdefs.h <<_ACEOF
15221 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15222 _ACEOF
15223
15224 fi
15225
15226 done
15227
15228
15229 for ac_header in fenv.h
15230 do
15231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15233   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15236   echo $ECHO_N "(cached) $ECHO_C" >&6
15237 fi
15238 ac_res=`eval echo '${'$as_ac_Header'}'`
15239                { echo "$as_me:$LINENO: result: $ac_res" >&5
15240 echo "${ECHO_T}$ac_res" >&6; }
15241 else
15242   # Is the header compilable?
15243 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15245 cat >conftest.$ac_ext <<_ACEOF
15246 /* confdefs.h.  */
15247 _ACEOF
15248 cat confdefs.h >>conftest.$ac_ext
15249 cat >>conftest.$ac_ext <<_ACEOF
15250 /* end confdefs.h.  */
15251 $ac_includes_default
15252 #include <$ac_header>
15253 _ACEOF
15254 rm -f conftest.$ac_objext
15255 if { (ac_try="$ac_compile"
15256 case "(($ac_try" in
15257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15258   *) ac_try_echo=$ac_try;;
15259 esac
15260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15261   (eval "$ac_compile") 2>conftest.er1
15262   ac_status=$?
15263   grep -v '^ *+' conftest.er1 >conftest.err
15264   rm -f conftest.er1
15265   cat conftest.err >&5
15266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267   (exit $ac_status); } &&
15268          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15269   { (case "(($ac_try" in
15270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15271   *) ac_try_echo=$ac_try;;
15272 esac
15273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15274   (eval "$ac_try") 2>&5
15275   ac_status=$?
15276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277   (exit $ac_status); }; } &&
15278          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15288   ac_header_compiler=yes
15289 else
15290   echo "$as_me: failed program was:" >&5
15291 sed 's/^/| /' conftest.$ac_ext >&5
15292
15293         ac_header_compiler=no
15294 fi
15295
15296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15297 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15298 echo "${ECHO_T}$ac_header_compiler" >&6; }
15299
15300 # Is the header present?
15301 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15303 cat >conftest.$ac_ext <<_ACEOF
15304 /* confdefs.h.  */
15305 _ACEOF
15306 cat confdefs.h >>conftest.$ac_ext
15307 cat >>conftest.$ac_ext <<_ACEOF
15308 /* end confdefs.h.  */
15309 #include <$ac_header>
15310 _ACEOF
15311 if { (ac_try="$ac_cpp conftest.$ac_ext"
15312 case "(($ac_try" in
15313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15314   *) ac_try_echo=$ac_try;;
15315 esac
15316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15317   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15318   ac_status=$?
15319   grep -v '^ *+' conftest.er1 >conftest.err
15320   rm -f conftest.er1
15321   cat conftest.err >&5
15322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323   (exit $ac_status); } >/dev/null; then
15324   if test -s conftest.err; then
15325     ac_cpp_err=$ac_c_preproc_warn_flag
15326     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15327   else
15328     ac_cpp_err=
15329   fi
15330 else
15331   ac_cpp_err=yes
15332 fi
15333 if test -z "$ac_cpp_err"; then
15334   ac_header_preproc=yes
15335 else
15336   echo "$as_me: failed program was:" >&5
15337 sed 's/^/| /' conftest.$ac_ext >&5
15338
15339   ac_header_preproc=no
15340 fi
15341
15342 rm -f conftest.err conftest.$ac_ext
15343 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15344 echo "${ECHO_T}$ac_header_preproc" >&6; }
15345
15346 # So?  What about this header?
15347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15348   yes:no: )
15349     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15351     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15353     ac_header_preproc=yes
15354     ;;
15355   no:yes:* )
15356     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15358     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15359 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15360     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15362     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15363 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15364     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15366     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15368     ( cat <<\_ASBOX
15369 ## ------------------------------ ##
15370 ## Report this to bugs@yourdomain ##
15371 ## ------------------------------ ##
15372 _ASBOX
15373      ) | sed "s/^/$as_me: WARNING:     /" >&2
15374     ;;
15375 esac
15376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15379   echo $ECHO_N "(cached) $ECHO_C" >&6
15380 else
15381   eval "$as_ac_Header=\$ac_header_preproc"
15382 fi
15383 ac_res=`eval echo '${'$as_ac_Header'}'`
15384                { echo "$as_me:$LINENO: result: $ac_res" >&5
15385 echo "${ECHO_T}$ac_res" >&6; }
15386
15387 fi
15388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15389   cat >>confdefs.h <<_ACEOF
15390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15391 _ACEOF
15392
15393 fi
15394
15395 done
15396
15397 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15398
15399 for ac_header in pthread.h
15400 do
15401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15403   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15406   echo $ECHO_N "(cached) $ECHO_C" >&6
15407 fi
15408 ac_res=`eval echo '${'$as_ac_Header'}'`
15409                { echo "$as_me:$LINENO: result: $ac_res" >&5
15410 echo "${ECHO_T}$ac_res" >&6; }
15411 else
15412   # Is the header compilable?
15413 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15415 cat >conftest.$ac_ext <<_ACEOF
15416 /* confdefs.h.  */
15417 _ACEOF
15418 cat confdefs.h >>conftest.$ac_ext
15419 cat >>conftest.$ac_ext <<_ACEOF
15420 /* end confdefs.h.  */
15421 $ac_includes_default
15422 #include <$ac_header>
15423 _ACEOF
15424 rm -f conftest.$ac_objext
15425 if { (ac_try="$ac_compile"
15426 case "(($ac_try" in
15427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15428   *) ac_try_echo=$ac_try;;
15429 esac
15430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15431   (eval "$ac_compile") 2>conftest.er1
15432   ac_status=$?
15433   grep -v '^ *+' conftest.er1 >conftest.err
15434   rm -f conftest.er1
15435   cat conftest.err >&5
15436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437   (exit $ac_status); } &&
15438          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15439   { (case "(($ac_try" in
15440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15441   *) ac_try_echo=$ac_try;;
15442 esac
15443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15444   (eval "$ac_try") 2>&5
15445   ac_status=$?
15446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447   (exit $ac_status); }; } &&
15448          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15458   ac_header_compiler=yes
15459 else
15460   echo "$as_me: failed program was:" >&5
15461 sed 's/^/| /' conftest.$ac_ext >&5
15462
15463         ac_header_compiler=no
15464 fi
15465
15466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15467 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15468 echo "${ECHO_T}$ac_header_compiler" >&6; }
15469
15470 # Is the header present?
15471 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15473 cat >conftest.$ac_ext <<_ACEOF
15474 /* confdefs.h.  */
15475 _ACEOF
15476 cat confdefs.h >>conftest.$ac_ext
15477 cat >>conftest.$ac_ext <<_ACEOF
15478 /* end confdefs.h.  */
15479 #include <$ac_header>
15480 _ACEOF
15481 if { (ac_try="$ac_cpp conftest.$ac_ext"
15482 case "(($ac_try" in
15483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15484   *) ac_try_echo=$ac_try;;
15485 esac
15486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15487   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15488   ac_status=$?
15489   grep -v '^ *+' conftest.er1 >conftest.err
15490   rm -f conftest.er1
15491   cat conftest.err >&5
15492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493   (exit $ac_status); } >/dev/null; then
15494   if test -s conftest.err; then
15495     ac_cpp_err=$ac_c_preproc_warn_flag
15496     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15497   else
15498     ac_cpp_err=
15499   fi
15500 else
15501   ac_cpp_err=yes
15502 fi
15503 if test -z "$ac_cpp_err"; then
15504   ac_header_preproc=yes
15505 else
15506   echo "$as_me: failed program was:" >&5
15507 sed 's/^/| /' conftest.$ac_ext >&5
15508
15509   ac_header_preproc=no
15510 fi
15511
15512 rm -f conftest.err conftest.$ac_ext
15513 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15514 echo "${ECHO_T}$ac_header_preproc" >&6; }
15515
15516 # So?  What about this header?
15517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15518   yes:no: )
15519     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15521     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15522 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15523     ac_header_preproc=yes
15524     ;;
15525   no:yes:* )
15526     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15527 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15528     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15529 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15530     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15531 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15532     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15533 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15534     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15536     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15537 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15538     ( cat <<\_ASBOX
15539 ## ------------------------------ ##
15540 ## Report this to bugs@yourdomain ##
15541 ## ------------------------------ ##
15542 _ASBOX
15543      ) | sed "s/^/$as_me: WARNING:     /" >&2
15544     ;;
15545 esac
15546 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15549   echo $ECHO_N "(cached) $ECHO_C" >&6
15550 else
15551   eval "$as_ac_Header=\$ac_header_preproc"
15552 fi
15553 ac_res=`eval echo '${'$as_ac_Header'}'`
15554                { echo "$as_me:$LINENO: result: $ac_res" >&5
15555 echo "${ECHO_T}$ac_res" >&6; }
15556
15557 fi
15558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15559   cat >>confdefs.h <<_ACEOF
15560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15561 _ACEOF
15562  HAVE_PTHREAD=1
15563
15564 else
15565   HAVE_PTHREAD=0
15566
15567 fi
15568
15569 done
15570
15571 else
15572   HAVE_PTHREAD=0
15573
15574 fi
15575
15576 if test "$llvm_cv_enable_libffi" = "yes" ; then
15577
15578
15579 for ac_header in ffi.h ffi/ffi.h
15580 do
15581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15583   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15586   echo $ECHO_N "(cached) $ECHO_C" >&6
15587 fi
15588 ac_res=`eval echo '${'$as_ac_Header'}'`
15589                { echo "$as_me:$LINENO: result: $ac_res" >&5
15590 echo "${ECHO_T}$ac_res" >&6; }
15591 else
15592   # Is the header compilable?
15593 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15594 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15595 cat >conftest.$ac_ext <<_ACEOF
15596 /* confdefs.h.  */
15597 _ACEOF
15598 cat confdefs.h >>conftest.$ac_ext
15599 cat >>conftest.$ac_ext <<_ACEOF
15600 /* end confdefs.h.  */
15601 $ac_includes_default
15602 #include <$ac_header>
15603 _ACEOF
15604 rm -f conftest.$ac_objext
15605 if { (ac_try="$ac_compile"
15606 case "(($ac_try" in
15607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15608   *) ac_try_echo=$ac_try;;
15609 esac
15610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15611   (eval "$ac_compile") 2>conftest.er1
15612   ac_status=$?
15613   grep -v '^ *+' conftest.er1 >conftest.err
15614   rm -f conftest.er1
15615   cat conftest.err >&5
15616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617   (exit $ac_status); } &&
15618          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15619   { (case "(($ac_try" in
15620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15621   *) ac_try_echo=$ac_try;;
15622 esac
15623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15624   (eval "$ac_try") 2>&5
15625   ac_status=$?
15626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627   (exit $ac_status); }; } &&
15628          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15638   ac_header_compiler=yes
15639 else
15640   echo "$as_me: failed program was:" >&5
15641 sed 's/^/| /' conftest.$ac_ext >&5
15642
15643         ac_header_compiler=no
15644 fi
15645
15646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15647 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15648 echo "${ECHO_T}$ac_header_compiler" >&6; }
15649
15650 # Is the header present?
15651 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15653 cat >conftest.$ac_ext <<_ACEOF
15654 /* confdefs.h.  */
15655 _ACEOF
15656 cat confdefs.h >>conftest.$ac_ext
15657 cat >>conftest.$ac_ext <<_ACEOF
15658 /* end confdefs.h.  */
15659 #include <$ac_header>
15660 _ACEOF
15661 if { (ac_try="$ac_cpp conftest.$ac_ext"
15662 case "(($ac_try" in
15663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15664   *) ac_try_echo=$ac_try;;
15665 esac
15666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15667   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15668   ac_status=$?
15669   grep -v '^ *+' conftest.er1 >conftest.err
15670   rm -f conftest.er1
15671   cat conftest.err >&5
15672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673   (exit $ac_status); } >/dev/null; then
15674   if test -s conftest.err; then
15675     ac_cpp_err=$ac_c_preproc_warn_flag
15676     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15677   else
15678     ac_cpp_err=
15679   fi
15680 else
15681   ac_cpp_err=yes
15682 fi
15683 if test -z "$ac_cpp_err"; then
15684   ac_header_preproc=yes
15685 else
15686   echo "$as_me: failed program was:" >&5
15687 sed 's/^/| /' conftest.$ac_ext >&5
15688
15689   ac_header_preproc=no
15690 fi
15691
15692 rm -f conftest.err conftest.$ac_ext
15693 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15694 echo "${ECHO_T}$ac_header_preproc" >&6; }
15695
15696 # So?  What about this header?
15697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15698   yes:no: )
15699     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15700 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15701     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15702 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15703     ac_header_preproc=yes
15704     ;;
15705   no:yes:* )
15706     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15707 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15708     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15709 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15710     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15711 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15712     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15713 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15714     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15715 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15716     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15717 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15718     ( cat <<\_ASBOX
15719 ## ------------------------------ ##
15720 ## Report this to bugs@yourdomain ##
15721 ## ------------------------------ ##
15722 _ASBOX
15723      ) | sed "s/^/$as_me: WARNING:     /" >&2
15724     ;;
15725 esac
15726 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15729   echo $ECHO_N "(cached) $ECHO_C" >&6
15730 else
15731   eval "$as_ac_Header=\$ac_header_preproc"
15732 fi
15733 ac_res=`eval echo '${'$as_ac_Header'}'`
15734                { echo "$as_me:$LINENO: result: $ac_res" >&5
15735 echo "${ECHO_T}$ac_res" >&6; }
15736
15737 fi
15738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15739   cat >>confdefs.h <<_ACEOF
15740 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15741 _ACEOF
15742
15743 fi
15744
15745 done
15746
15747 fi
15748
15749
15750 for ac_header in CrashReporterClient.h
15751 do
15752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15754   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15757   echo $ECHO_N "(cached) $ECHO_C" >&6
15758 fi
15759 ac_res=`eval echo '${'$as_ac_Header'}'`
15760                { echo "$as_me:$LINENO: result: $ac_res" >&5
15761 echo "${ECHO_T}$ac_res" >&6; }
15762 else
15763   # Is the header compilable?
15764 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15765 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15766 cat >conftest.$ac_ext <<_ACEOF
15767 /* confdefs.h.  */
15768 _ACEOF
15769 cat confdefs.h >>conftest.$ac_ext
15770 cat >>conftest.$ac_ext <<_ACEOF
15771 /* end confdefs.h.  */
15772 $ac_includes_default
15773 #include <$ac_header>
15774 _ACEOF
15775 rm -f conftest.$ac_objext
15776 if { (ac_try="$ac_compile"
15777 case "(($ac_try" in
15778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15779   *) ac_try_echo=$ac_try;;
15780 esac
15781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15782   (eval "$ac_compile") 2>conftest.er1
15783   ac_status=$?
15784   grep -v '^ *+' conftest.er1 >conftest.err
15785   rm -f conftest.er1
15786   cat conftest.err >&5
15787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788   (exit $ac_status); } &&
15789          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15790   { (case "(($ac_try" in
15791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15792   *) ac_try_echo=$ac_try;;
15793 esac
15794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15795   (eval "$ac_try") 2>&5
15796   ac_status=$?
15797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798   (exit $ac_status); }; } &&
15799          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15809   ac_header_compiler=yes
15810 else
15811   echo "$as_me: failed program was:" >&5
15812 sed 's/^/| /' conftest.$ac_ext >&5
15813
15814         ac_header_compiler=no
15815 fi
15816
15817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15818 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15819 echo "${ECHO_T}$ac_header_compiler" >&6; }
15820
15821 # Is the header present?
15822 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15823 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15824 cat >conftest.$ac_ext <<_ACEOF
15825 /* confdefs.h.  */
15826 _ACEOF
15827 cat confdefs.h >>conftest.$ac_ext
15828 cat >>conftest.$ac_ext <<_ACEOF
15829 /* end confdefs.h.  */
15830 #include <$ac_header>
15831 _ACEOF
15832 if { (ac_try="$ac_cpp conftest.$ac_ext"
15833 case "(($ac_try" in
15834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15835   *) ac_try_echo=$ac_try;;
15836 esac
15837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15838   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15839   ac_status=$?
15840   grep -v '^ *+' conftest.er1 >conftest.err
15841   rm -f conftest.er1
15842   cat conftest.err >&5
15843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844   (exit $ac_status); } >/dev/null; then
15845   if test -s conftest.err; then
15846     ac_cpp_err=$ac_c_preproc_warn_flag
15847     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15848   else
15849     ac_cpp_err=
15850   fi
15851 else
15852   ac_cpp_err=yes
15853 fi
15854 if test -z "$ac_cpp_err"; then
15855   ac_header_preproc=yes
15856 else
15857   echo "$as_me: failed program was:" >&5
15858 sed 's/^/| /' conftest.$ac_ext >&5
15859
15860   ac_header_preproc=no
15861 fi
15862
15863 rm -f conftest.err conftest.$ac_ext
15864 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15865 echo "${ECHO_T}$ac_header_preproc" >&6; }
15866
15867 # So?  What about this header?
15868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15869   yes:no: )
15870     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15871 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15872     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15873 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15874     ac_header_preproc=yes
15875     ;;
15876   no:yes:* )
15877     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15878 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15879     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15880 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15881     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15882 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15883     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15884 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15885     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15887     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15888 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15889     ( cat <<\_ASBOX
15890 ## ------------------------------ ##
15891 ## Report this to bugs@yourdomain ##
15892 ## ------------------------------ ##
15893 _ASBOX
15894      ) | sed "s/^/$as_me: WARNING:     /" >&2
15895     ;;
15896 esac
15897 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15900   echo $ECHO_N "(cached) $ECHO_C" >&6
15901 else
15902   eval "$as_ac_Header=\$ac_header_preproc"
15903 fi
15904 ac_res=`eval echo '${'$as_ac_Header'}'`
15905                { echo "$as_me:$LINENO: result: $ac_res" >&5
15906 echo "${ECHO_T}$ac_res" >&6; }
15907
15908 fi
15909 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15910   cat >>confdefs.h <<_ACEOF
15911 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15912 _ACEOF
15913
15914 fi
15915
15916 done
15917
15918
15919 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15920 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15921 cat >conftest.$ac_ext <<_ACEOF
15922 /* confdefs.h.  */
15923 _ACEOF
15924 cat confdefs.h >>conftest.$ac_ext
15925 cat >>conftest.$ac_ext <<_ACEOF
15926 /* end confdefs.h.  */
15927 extern const char *__crashreporter_info__;
15928       int main() {
15929         __crashreporter_info__ = "test";
15930         return 0;
15931       }
15932
15933 _ACEOF
15934 rm -f conftest.$ac_objext conftest$ac_exeext
15935 if { (ac_try="$ac_link"
15936 case "(($ac_try" in
15937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15938   *) ac_try_echo=$ac_try;;
15939 esac
15940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15941   (eval "$ac_link") 2>conftest.er1
15942   ac_status=$?
15943   grep -v '^ *+' conftest.er1 >conftest.err
15944   rm -f conftest.er1
15945   cat conftest.err >&5
15946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947   (exit $ac_status); } &&
15948          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15949   { (case "(($ac_try" in
15950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15951   *) ac_try_echo=$ac_try;;
15952 esac
15953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15954   (eval "$ac_try") 2>&5
15955   ac_status=$?
15956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957   (exit $ac_status); }; } &&
15958          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15968   { echo "$as_me:$LINENO: result: yes" >&5
15969 echo "${ECHO_T}yes" >&6; }
15970
15971 cat >>confdefs.h <<\_ACEOF
15972 #define HAVE_CRASHREPORTER_INFO 1
15973 _ACEOF
15974
15975 else
15976   echo "$as_me: failed program was:" >&5
15977 sed 's/^/| /' conftest.$ac_ext >&5
15978
15979         { echo "$as_me:$LINENO: result: no" >&5
15980 echo "${ECHO_T}no" >&6; }
15981
15982 cat >>confdefs.h <<\_ACEOF
15983 #define HAVE_CRASHREPORTER_INFO 0
15984 _ACEOF
15985
15986 fi
15987
15988 rm -f core conftest.err conftest.$ac_objext \
15989       conftest$ac_exeext conftest.$ac_ext
15990
15991
15992
15993
15994   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
15995 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
15996 if test "${ac_cv_huge_val_sanity+set}" = set; then
15997   echo $ECHO_N "(cached) $ECHO_C" >&6
15998 else
15999
16000     ac_ext=cpp
16001 ac_cpp='$CXXCPP $CPPFLAGS'
16002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16005
16006     ac_save_CXXFLAGS=$CXXFLAGS
16007     CXXFLAGS="$CXXFLAGS -pedantic"
16008     if test "$cross_compiling" = yes; then
16009   ac_cv_huge_val_sanity=yes
16010 else
16011   cat >conftest.$ac_ext <<_ACEOF
16012 /* confdefs.h.  */
16013 _ACEOF
16014 cat confdefs.h >>conftest.$ac_ext
16015 cat >>conftest.$ac_ext <<_ACEOF
16016 /* end confdefs.h.  */
16017 #include <math.h>
16018 int
16019 main ()
16020 {
16021 double x = HUGE_VAL; return x != x;
16022   ;
16023   return 0;
16024 }
16025 _ACEOF
16026 rm -f conftest$ac_exeext
16027 if { (ac_try="$ac_link"
16028 case "(($ac_try" in
16029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16030   *) ac_try_echo=$ac_try;;
16031 esac
16032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16033   (eval "$ac_link") 2>&5
16034   ac_status=$?
16035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16037   { (case "(($ac_try" in
16038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16039   *) ac_try_echo=$ac_try;;
16040 esac
16041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16042   (eval "$ac_try") 2>&5
16043   ac_status=$?
16044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045   (exit $ac_status); }; }; then
16046   ac_cv_huge_val_sanity=yes
16047 else
16048   echo "$as_me: program exited with status $ac_status" >&5
16049 echo "$as_me: failed program was:" >&5
16050 sed 's/^/| /' conftest.$ac_ext >&5
16051
16052 ( exit $ac_status )
16053 ac_cv_huge_val_sanity=no
16054 fi
16055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16056 fi
16057
16058
16059     CXXFLAGS=$ac_save_CXXFLAGS
16060     ac_ext=c
16061 ac_cpp='$CPP $CPPFLAGS'
16062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16065
16066
16067 fi
16068 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16069 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16070   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16071
16072
16073 { echo "$as_me:$LINENO: checking for pid_t" >&5
16074 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16075 if test "${ac_cv_type_pid_t+set}" = set; then
16076   echo $ECHO_N "(cached) $ECHO_C" >&6
16077 else
16078   cat >conftest.$ac_ext <<_ACEOF
16079 /* confdefs.h.  */
16080 _ACEOF
16081 cat confdefs.h >>conftest.$ac_ext
16082 cat >>conftest.$ac_ext <<_ACEOF
16083 /* end confdefs.h.  */
16084 $ac_includes_default
16085 typedef pid_t ac__type_new_;
16086 int
16087 main ()
16088 {
16089 if ((ac__type_new_ *) 0)
16090   return 0;
16091 if (sizeof (ac__type_new_))
16092   return 0;
16093   ;
16094   return 0;
16095 }
16096 _ACEOF
16097 rm -f conftest.$ac_objext
16098 if { (ac_try="$ac_compile"
16099 case "(($ac_try" in
16100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16101   *) ac_try_echo=$ac_try;;
16102 esac
16103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16104   (eval "$ac_compile") 2>conftest.er1
16105   ac_status=$?
16106   grep -v '^ *+' conftest.er1 >conftest.err
16107   rm -f conftest.er1
16108   cat conftest.err >&5
16109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110   (exit $ac_status); } &&
16111          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16112   { (case "(($ac_try" in
16113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16114   *) ac_try_echo=$ac_try;;
16115 esac
16116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16117   (eval "$ac_try") 2>&5
16118   ac_status=$?
16119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120   (exit $ac_status); }; } &&
16121          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16131   ac_cv_type_pid_t=yes
16132 else
16133   echo "$as_me: failed program was:" >&5
16134 sed 's/^/| /' conftest.$ac_ext >&5
16135
16136         ac_cv_type_pid_t=no
16137 fi
16138
16139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16140 fi
16141 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16142 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16143 if test $ac_cv_type_pid_t = yes; then
16144   :
16145 else
16146
16147 cat >>confdefs.h <<_ACEOF
16148 #define pid_t int
16149 _ACEOF
16150
16151 fi
16152
16153 { echo "$as_me:$LINENO: checking for size_t" >&5
16154 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16155 if test "${ac_cv_type_size_t+set}" = set; then
16156   echo $ECHO_N "(cached) $ECHO_C" >&6
16157 else
16158   cat >conftest.$ac_ext <<_ACEOF
16159 /* confdefs.h.  */
16160 _ACEOF
16161 cat confdefs.h >>conftest.$ac_ext
16162 cat >>conftest.$ac_ext <<_ACEOF
16163 /* end confdefs.h.  */
16164 $ac_includes_default
16165 typedef size_t ac__type_new_;
16166 int
16167 main ()
16168 {
16169 if ((ac__type_new_ *) 0)
16170   return 0;
16171 if (sizeof (ac__type_new_))
16172   return 0;
16173   ;
16174   return 0;
16175 }
16176 _ACEOF
16177 rm -f conftest.$ac_objext
16178 if { (ac_try="$ac_compile"
16179 case "(($ac_try" in
16180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16181   *) ac_try_echo=$ac_try;;
16182 esac
16183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16184   (eval "$ac_compile") 2>conftest.er1
16185   ac_status=$?
16186   grep -v '^ *+' conftest.er1 >conftest.err
16187   rm -f conftest.er1
16188   cat conftest.err >&5
16189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190   (exit $ac_status); } &&
16191          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16192   { (case "(($ac_try" in
16193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16194   *) ac_try_echo=$ac_try;;
16195 esac
16196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16197   (eval "$ac_try") 2>&5
16198   ac_status=$?
16199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200   (exit $ac_status); }; } &&
16201          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16211   ac_cv_type_size_t=yes
16212 else
16213   echo "$as_me: failed program was:" >&5
16214 sed 's/^/| /' conftest.$ac_ext >&5
16215
16216         ac_cv_type_size_t=no
16217 fi
16218
16219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16220 fi
16221 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16222 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16223 if test $ac_cv_type_size_t = yes; then
16224   :
16225 else
16226
16227 cat >>confdefs.h <<_ACEOF
16228 #define size_t unsigned int
16229 _ACEOF
16230
16231 fi
16232
16233
16234 cat >>confdefs.h <<_ACEOF
16235 #define RETSIGTYPE void
16236 _ACEOF
16237
16238 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16239 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16240 if test "${ac_cv_struct_tm+set}" = set; then
16241   echo $ECHO_N "(cached) $ECHO_C" >&6
16242 else
16243   cat >conftest.$ac_ext <<_ACEOF
16244 /* confdefs.h.  */
16245 _ACEOF
16246 cat confdefs.h >>conftest.$ac_ext
16247 cat >>conftest.$ac_ext <<_ACEOF
16248 /* end confdefs.h.  */
16249 #include <sys/types.h>
16250 #include <time.h>
16251
16252 int
16253 main ()
16254 {
16255 struct tm *tp; tp->tm_sec;
16256   ;
16257   return 0;
16258 }
16259 _ACEOF
16260 rm -f conftest.$ac_objext
16261 if { (ac_try="$ac_compile"
16262 case "(($ac_try" in
16263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264   *) ac_try_echo=$ac_try;;
16265 esac
16266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16267   (eval "$ac_compile") 2>conftest.er1
16268   ac_status=$?
16269   grep -v '^ *+' conftest.er1 >conftest.err
16270   rm -f conftest.er1
16271   cat conftest.err >&5
16272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273   (exit $ac_status); } &&
16274          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16275   { (case "(($ac_try" in
16276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16277   *) ac_try_echo=$ac_try;;
16278 esac
16279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16280   (eval "$ac_try") 2>&5
16281   ac_status=$?
16282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283   (exit $ac_status); }; } &&
16284          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16294   ac_cv_struct_tm=time.h
16295 else
16296   echo "$as_me: failed program was:" >&5
16297 sed 's/^/| /' conftest.$ac_ext >&5
16298
16299         ac_cv_struct_tm=sys/time.h
16300 fi
16301
16302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16303 fi
16304 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16305 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16306 if test $ac_cv_struct_tm = sys/time.h; then
16307
16308 cat >>confdefs.h <<\_ACEOF
16309 #define TM_IN_SYS_TIME 1
16310 _ACEOF
16311
16312 fi
16313
16314 { echo "$as_me:$LINENO: checking for int64_t" >&5
16315 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16316 if test "${ac_cv_type_int64_t+set}" = set; then
16317   echo $ECHO_N "(cached) $ECHO_C" >&6
16318 else
16319   cat >conftest.$ac_ext <<_ACEOF
16320 /* confdefs.h.  */
16321 _ACEOF
16322 cat confdefs.h >>conftest.$ac_ext
16323 cat >>conftest.$ac_ext <<_ACEOF
16324 /* end confdefs.h.  */
16325 $ac_includes_default
16326 typedef int64_t ac__type_new_;
16327 int
16328 main ()
16329 {
16330 if ((ac__type_new_ *) 0)
16331   return 0;
16332 if (sizeof (ac__type_new_))
16333   return 0;
16334   ;
16335   return 0;
16336 }
16337 _ACEOF
16338 rm -f conftest.$ac_objext
16339 if { (ac_try="$ac_compile"
16340 case "(($ac_try" in
16341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16342   *) ac_try_echo=$ac_try;;
16343 esac
16344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16345   (eval "$ac_compile") 2>conftest.er1
16346   ac_status=$?
16347   grep -v '^ *+' conftest.er1 >conftest.err
16348   rm -f conftest.er1
16349   cat conftest.err >&5
16350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351   (exit $ac_status); } &&
16352          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16353   { (case "(($ac_try" in
16354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16355   *) ac_try_echo=$ac_try;;
16356 esac
16357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16358   (eval "$ac_try") 2>&5
16359   ac_status=$?
16360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361   (exit $ac_status); }; } &&
16362          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16372   ac_cv_type_int64_t=yes
16373 else
16374   echo "$as_me: failed program was:" >&5
16375 sed 's/^/| /' conftest.$ac_ext >&5
16376
16377         ac_cv_type_int64_t=no
16378 fi
16379
16380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16381 fi
16382 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16383 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16384 if test $ac_cv_type_int64_t = yes; then
16385
16386 cat >>confdefs.h <<_ACEOF
16387 #define HAVE_INT64_T 1
16388 _ACEOF
16389
16390
16391 else
16392   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16393 echo "$as_me: error: Type int64_t required but not found" >&2;}
16394    { (exit 1); exit 1; }; }
16395 fi
16396
16397 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16398 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16399 if test "${ac_cv_type_uint64_t+set}" = set; then
16400   echo $ECHO_N "(cached) $ECHO_C" >&6
16401 else
16402   cat >conftest.$ac_ext <<_ACEOF
16403 /* confdefs.h.  */
16404 _ACEOF
16405 cat confdefs.h >>conftest.$ac_ext
16406 cat >>conftest.$ac_ext <<_ACEOF
16407 /* end confdefs.h.  */
16408 $ac_includes_default
16409 typedef uint64_t ac__type_new_;
16410 int
16411 main ()
16412 {
16413 if ((ac__type_new_ *) 0)
16414   return 0;
16415 if (sizeof (ac__type_new_))
16416   return 0;
16417   ;
16418   return 0;
16419 }
16420 _ACEOF
16421 rm -f conftest.$ac_objext
16422 if { (ac_try="$ac_compile"
16423 case "(($ac_try" in
16424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16425   *) ac_try_echo=$ac_try;;
16426 esac
16427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16428   (eval "$ac_compile") 2>conftest.er1
16429   ac_status=$?
16430   grep -v '^ *+' conftest.er1 >conftest.err
16431   rm -f conftest.er1
16432   cat conftest.err >&5
16433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434   (exit $ac_status); } &&
16435          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16436   { (case "(($ac_try" in
16437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16438   *) ac_try_echo=$ac_try;;
16439 esac
16440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16441   (eval "$ac_try") 2>&5
16442   ac_status=$?
16443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444   (exit $ac_status); }; } &&
16445          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16455   ac_cv_type_uint64_t=yes
16456 else
16457   echo "$as_me: failed program was:" >&5
16458 sed 's/^/| /' conftest.$ac_ext >&5
16459
16460         ac_cv_type_uint64_t=no
16461 fi
16462
16463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16464 fi
16465 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16466 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16467 if test $ac_cv_type_uint64_t = yes; then
16468
16469 cat >>confdefs.h <<_ACEOF
16470 #define HAVE_UINT64_T 1
16471 _ACEOF
16472
16473
16474 else
16475   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16476 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16477 if test "${ac_cv_type_u_int64_t+set}" = set; then
16478   echo $ECHO_N "(cached) $ECHO_C" >&6
16479 else
16480   cat >conftest.$ac_ext <<_ACEOF
16481 /* confdefs.h.  */
16482 _ACEOF
16483 cat confdefs.h >>conftest.$ac_ext
16484 cat >>conftest.$ac_ext <<_ACEOF
16485 /* end confdefs.h.  */
16486 $ac_includes_default
16487 typedef u_int64_t ac__type_new_;
16488 int
16489 main ()
16490 {
16491 if ((ac__type_new_ *) 0)
16492   return 0;
16493 if (sizeof (ac__type_new_))
16494   return 0;
16495   ;
16496   return 0;
16497 }
16498 _ACEOF
16499 rm -f conftest.$ac_objext
16500 if { (ac_try="$ac_compile"
16501 case "(($ac_try" in
16502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16503   *) ac_try_echo=$ac_try;;
16504 esac
16505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16506   (eval "$ac_compile") 2>conftest.er1
16507   ac_status=$?
16508   grep -v '^ *+' conftest.er1 >conftest.err
16509   rm -f conftest.er1
16510   cat conftest.err >&5
16511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512   (exit $ac_status); } &&
16513          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16514   { (case "(($ac_try" in
16515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16516   *) ac_try_echo=$ac_try;;
16517 esac
16518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16519   (eval "$ac_try") 2>&5
16520   ac_status=$?
16521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522   (exit $ac_status); }; } &&
16523          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16533   ac_cv_type_u_int64_t=yes
16534 else
16535   echo "$as_me: failed program was:" >&5
16536 sed 's/^/| /' conftest.$ac_ext >&5
16537
16538         ac_cv_type_u_int64_t=no
16539 fi
16540
16541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16542 fi
16543 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16544 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16545 if test $ac_cv_type_u_int64_t = yes; then
16546
16547 cat >>confdefs.h <<_ACEOF
16548 #define HAVE_U_INT64_T 1
16549 _ACEOF
16550
16551
16552 else
16553   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16554 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16555    { (exit 1); exit 1; }; }
16556 fi
16557
16558 fi
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16570 do
16571 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16572 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16574 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16575   echo $ECHO_N "(cached) $ECHO_C" >&6
16576 else
16577   cat >conftest.$ac_ext <<_ACEOF
16578 /* confdefs.h.  */
16579 _ACEOF
16580 cat confdefs.h >>conftest.$ac_ext
16581 cat >>conftest.$ac_ext <<_ACEOF
16582 /* end confdefs.h.  */
16583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16584    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16585 #define $ac_func innocuous_$ac_func
16586
16587 /* System header to define __stub macros and hopefully few prototypes,
16588     which can conflict with char $ac_func (); below.
16589     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16590     <limits.h> exists even on freestanding compilers.  */
16591
16592 #ifdef __STDC__
16593 # include <limits.h>
16594 #else
16595 # include <assert.h>
16596 #endif
16597
16598 #undef $ac_func
16599
16600 /* Override any GCC internal prototype to avoid an error.
16601    Use char because int might match the return type of a GCC
16602    builtin and then its argument prototype would still apply.  */
16603 #ifdef __cplusplus
16604 extern "C"
16605 #endif
16606 char $ac_func ();
16607 /* The GNU C library defines this for functions which it implements
16608     to always fail with ENOSYS.  Some functions are actually named
16609     something starting with __ and the normal name is an alias.  */
16610 #if defined __stub_$ac_func || defined __stub___$ac_func
16611 choke me
16612 #endif
16613
16614 int
16615 main ()
16616 {
16617 return $ac_func ();
16618   ;
16619   return 0;
16620 }
16621 _ACEOF
16622 rm -f conftest.$ac_objext conftest$ac_exeext
16623 if { (ac_try="$ac_link"
16624 case "(($ac_try" in
16625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16626   *) ac_try_echo=$ac_try;;
16627 esac
16628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16629   (eval "$ac_link") 2>conftest.er1
16630   ac_status=$?
16631   grep -v '^ *+' conftest.er1 >conftest.err
16632   rm -f conftest.er1
16633   cat conftest.err >&5
16634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635   (exit $ac_status); } &&
16636          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16637   { (case "(($ac_try" in
16638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16639   *) ac_try_echo=$ac_try;;
16640 esac
16641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16642   (eval "$ac_try") 2>&5
16643   ac_status=$?
16644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645   (exit $ac_status); }; } &&
16646          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16656   eval "$as_ac_var=yes"
16657 else
16658   echo "$as_me: failed program was:" >&5
16659 sed 's/^/| /' conftest.$ac_ext >&5
16660
16661         eval "$as_ac_var=no"
16662 fi
16663
16664 rm -f core conftest.err conftest.$ac_objext \
16665       conftest$ac_exeext conftest.$ac_ext
16666 fi
16667 ac_res=`eval echo '${'$as_ac_var'}'`
16668                { echo "$as_me:$LINENO: result: $ac_res" >&5
16669 echo "${ECHO_T}$ac_res" >&6; }
16670 if test `eval echo '${'$as_ac_var'}'` = yes; then
16671   cat >>confdefs.h <<_ACEOF
16672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16673 _ACEOF
16674
16675 fi
16676 done
16677
16678
16679
16680
16681
16682 for ac_func in powf fmodf strtof round
16683 do
16684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16685 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16687 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16688   echo $ECHO_N "(cached) $ECHO_C" >&6
16689 else
16690   cat >conftest.$ac_ext <<_ACEOF
16691 /* confdefs.h.  */
16692 _ACEOF
16693 cat confdefs.h >>conftest.$ac_ext
16694 cat >>conftest.$ac_ext <<_ACEOF
16695 /* end confdefs.h.  */
16696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16697    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16698 #define $ac_func innocuous_$ac_func
16699
16700 /* System header to define __stub macros and hopefully few prototypes,
16701     which can conflict with char $ac_func (); below.
16702     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16703     <limits.h> exists even on freestanding compilers.  */
16704
16705 #ifdef __STDC__
16706 # include <limits.h>
16707 #else
16708 # include <assert.h>
16709 #endif
16710
16711 #undef $ac_func
16712
16713 /* Override any GCC internal prototype to avoid an error.
16714    Use char because int might match the return type of a GCC
16715    builtin and then its argument prototype would still apply.  */
16716 #ifdef __cplusplus
16717 extern "C"
16718 #endif
16719 char $ac_func ();
16720 /* The GNU C library defines this for functions which it implements
16721     to always fail with ENOSYS.  Some functions are actually named
16722     something starting with __ and the normal name is an alias.  */
16723 #if defined __stub_$ac_func || defined __stub___$ac_func
16724 choke me
16725 #endif
16726
16727 int
16728 main ()
16729 {
16730 return $ac_func ();
16731   ;
16732   return 0;
16733 }
16734 _ACEOF
16735 rm -f conftest.$ac_objext conftest$ac_exeext
16736 if { (ac_try="$ac_link"
16737 case "(($ac_try" in
16738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16739   *) ac_try_echo=$ac_try;;
16740 esac
16741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16742   (eval "$ac_link") 2>conftest.er1
16743   ac_status=$?
16744   grep -v '^ *+' conftest.er1 >conftest.err
16745   rm -f conftest.er1
16746   cat conftest.err >&5
16747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748   (exit $ac_status); } &&
16749          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16750   { (case "(($ac_try" in
16751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16752   *) ac_try_echo=$ac_try;;
16753 esac
16754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16755   (eval "$ac_try") 2>&5
16756   ac_status=$?
16757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758   (exit $ac_status); }; } &&
16759          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16769   eval "$as_ac_var=yes"
16770 else
16771   echo "$as_me: failed program was:" >&5
16772 sed 's/^/| /' conftest.$ac_ext >&5
16773
16774         eval "$as_ac_var=no"
16775 fi
16776
16777 rm -f core conftest.err conftest.$ac_objext \
16778       conftest$ac_exeext conftest.$ac_ext
16779 fi
16780 ac_res=`eval echo '${'$as_ac_var'}'`
16781                { echo "$as_me:$LINENO: result: $ac_res" >&5
16782 echo "${ECHO_T}$ac_res" >&6; }
16783 if test `eval echo '${'$as_ac_var'}'` = yes; then
16784   cat >>confdefs.h <<_ACEOF
16785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16786 _ACEOF
16787
16788 fi
16789 done
16790
16791
16792
16793
16794
16795
16796 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16797 do
16798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16799 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16801 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16802   echo $ECHO_N "(cached) $ECHO_C" >&6
16803 else
16804   cat >conftest.$ac_ext <<_ACEOF
16805 /* confdefs.h.  */
16806 _ACEOF
16807 cat confdefs.h >>conftest.$ac_ext
16808 cat >>conftest.$ac_ext <<_ACEOF
16809 /* end confdefs.h.  */
16810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16811    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16812 #define $ac_func innocuous_$ac_func
16813
16814 /* System header to define __stub macros and hopefully few prototypes,
16815     which can conflict with char $ac_func (); below.
16816     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16817     <limits.h> exists even on freestanding compilers.  */
16818
16819 #ifdef __STDC__
16820 # include <limits.h>
16821 #else
16822 # include <assert.h>
16823 #endif
16824
16825 #undef $ac_func
16826
16827 /* Override any GCC internal prototype to avoid an error.
16828    Use char because int might match the return type of a GCC
16829    builtin and then its argument prototype would still apply.  */
16830 #ifdef __cplusplus
16831 extern "C"
16832 #endif
16833 char $ac_func ();
16834 /* The GNU C library defines this for functions which it implements
16835     to always fail with ENOSYS.  Some functions are actually named
16836     something starting with __ and the normal name is an alias.  */
16837 #if defined __stub_$ac_func || defined __stub___$ac_func
16838 choke me
16839 #endif
16840
16841 int
16842 main ()
16843 {
16844 return $ac_func ();
16845   ;
16846   return 0;
16847 }
16848 _ACEOF
16849 rm -f conftest.$ac_objext conftest$ac_exeext
16850 if { (ac_try="$ac_link"
16851 case "(($ac_try" in
16852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16853   *) ac_try_echo=$ac_try;;
16854 esac
16855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16856   (eval "$ac_link") 2>conftest.er1
16857   ac_status=$?
16858   grep -v '^ *+' conftest.er1 >conftest.err
16859   rm -f conftest.er1
16860   cat conftest.err >&5
16861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862   (exit $ac_status); } &&
16863          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16864   { (case "(($ac_try" in
16865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16866   *) ac_try_echo=$ac_try;;
16867 esac
16868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16869   (eval "$ac_try") 2>&5
16870   ac_status=$?
16871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872   (exit $ac_status); }; } &&
16873          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16883   eval "$as_ac_var=yes"
16884 else
16885   echo "$as_me: failed program was:" >&5
16886 sed 's/^/| /' conftest.$ac_ext >&5
16887
16888         eval "$as_ac_var=no"
16889 fi
16890
16891 rm -f core conftest.err conftest.$ac_objext \
16892       conftest$ac_exeext conftest.$ac_ext
16893 fi
16894 ac_res=`eval echo '${'$as_ac_var'}'`
16895                { echo "$as_me:$LINENO: result: $ac_res" >&5
16896 echo "${ECHO_T}$ac_res" >&6; }
16897 if test `eval echo '${'$as_ac_var'}'` = yes; then
16898   cat >>confdefs.h <<_ACEOF
16899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16900 _ACEOF
16901
16902 fi
16903 done
16904
16905
16906
16907
16908 for ac_func in isatty mkdtemp mkstemp
16909 do
16910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16911 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16913 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16914   echo $ECHO_N "(cached) $ECHO_C" >&6
16915 else
16916   cat >conftest.$ac_ext <<_ACEOF
16917 /* confdefs.h.  */
16918 _ACEOF
16919 cat confdefs.h >>conftest.$ac_ext
16920 cat >>conftest.$ac_ext <<_ACEOF
16921 /* end confdefs.h.  */
16922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16923    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16924 #define $ac_func innocuous_$ac_func
16925
16926 /* System header to define __stub macros and hopefully few prototypes,
16927     which can conflict with char $ac_func (); below.
16928     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16929     <limits.h> exists even on freestanding compilers.  */
16930
16931 #ifdef __STDC__
16932 # include <limits.h>
16933 #else
16934 # include <assert.h>
16935 #endif
16936
16937 #undef $ac_func
16938
16939 /* Override any GCC internal prototype to avoid an error.
16940    Use char because int might match the return type of a GCC
16941    builtin and then its argument prototype would still apply.  */
16942 #ifdef __cplusplus
16943 extern "C"
16944 #endif
16945 char $ac_func ();
16946 /* The GNU C library defines this for functions which it implements
16947     to always fail with ENOSYS.  Some functions are actually named
16948     something starting with __ and the normal name is an alias.  */
16949 #if defined __stub_$ac_func || defined __stub___$ac_func
16950 choke me
16951 #endif
16952
16953 int
16954 main ()
16955 {
16956 return $ac_func ();
16957   ;
16958   return 0;
16959 }
16960 _ACEOF
16961 rm -f conftest.$ac_objext conftest$ac_exeext
16962 if { (ac_try="$ac_link"
16963 case "(($ac_try" in
16964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16965   *) ac_try_echo=$ac_try;;
16966 esac
16967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16968   (eval "$ac_link") 2>conftest.er1
16969   ac_status=$?
16970   grep -v '^ *+' conftest.er1 >conftest.err
16971   rm -f conftest.er1
16972   cat conftest.err >&5
16973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974   (exit $ac_status); } &&
16975          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16976   { (case "(($ac_try" in
16977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16978   *) ac_try_echo=$ac_try;;
16979 esac
16980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16981   (eval "$ac_try") 2>&5
16982   ac_status=$?
16983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984   (exit $ac_status); }; } &&
16985          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16995   eval "$as_ac_var=yes"
16996 else
16997   echo "$as_me: failed program was:" >&5
16998 sed 's/^/| /' conftest.$ac_ext >&5
16999
17000         eval "$as_ac_var=no"
17001 fi
17002
17003 rm -f core conftest.err conftest.$ac_objext \
17004       conftest$ac_exeext conftest.$ac_ext
17005 fi
17006 ac_res=`eval echo '${'$as_ac_var'}'`
17007                { echo "$as_me:$LINENO: result: $ac_res" >&5
17008 echo "${ECHO_T}$ac_res" >&6; }
17009 if test `eval echo '${'$as_ac_var'}'` = yes; then
17010   cat >>confdefs.h <<_ACEOF
17011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17012 _ACEOF
17013
17014 fi
17015 done
17016
17017
17018
17019
17020
17021
17022
17023 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17024 do
17025 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17026 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17028 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17029   echo $ECHO_N "(cached) $ECHO_C" >&6
17030 else
17031   cat >conftest.$ac_ext <<_ACEOF
17032 /* confdefs.h.  */
17033 _ACEOF
17034 cat confdefs.h >>conftest.$ac_ext
17035 cat >>conftest.$ac_ext <<_ACEOF
17036 /* end confdefs.h.  */
17037 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17038    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17039 #define $ac_func innocuous_$ac_func
17040
17041 /* System header to define __stub macros and hopefully few prototypes,
17042     which can conflict with char $ac_func (); below.
17043     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17044     <limits.h> exists even on freestanding compilers.  */
17045
17046 #ifdef __STDC__
17047 # include <limits.h>
17048 #else
17049 # include <assert.h>
17050 #endif
17051
17052 #undef $ac_func
17053
17054 /* Override any GCC internal prototype to avoid an error.
17055    Use char because int might match the return type of a GCC
17056    builtin and then its argument prototype would still apply.  */
17057 #ifdef __cplusplus
17058 extern "C"
17059 #endif
17060 char $ac_func ();
17061 /* The GNU C library defines this for functions which it implements
17062     to always fail with ENOSYS.  Some functions are actually named
17063     something starting with __ and the normal name is an alias.  */
17064 #if defined __stub_$ac_func || defined __stub___$ac_func
17065 choke me
17066 #endif
17067
17068 int
17069 main ()
17070 {
17071 return $ac_func ();
17072   ;
17073   return 0;
17074 }
17075 _ACEOF
17076 rm -f conftest.$ac_objext conftest$ac_exeext
17077 if { (ac_try="$ac_link"
17078 case "(($ac_try" in
17079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17080   *) ac_try_echo=$ac_try;;
17081 esac
17082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17083   (eval "$ac_link") 2>conftest.er1
17084   ac_status=$?
17085   grep -v '^ *+' conftest.er1 >conftest.err
17086   rm -f conftest.er1
17087   cat conftest.err >&5
17088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089   (exit $ac_status); } &&
17090          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17091   { (case "(($ac_try" in
17092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17093   *) ac_try_echo=$ac_try;;
17094 esac
17095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17096   (eval "$ac_try") 2>&5
17097   ac_status=$?
17098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099   (exit $ac_status); }; } &&
17100          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17110   eval "$as_ac_var=yes"
17111 else
17112   echo "$as_me: failed program was:" >&5
17113 sed 's/^/| /' conftest.$ac_ext >&5
17114
17115         eval "$as_ac_var=no"
17116 fi
17117
17118 rm -f core conftest.err conftest.$ac_objext \
17119       conftest$ac_exeext conftest.$ac_ext
17120 fi
17121 ac_res=`eval echo '${'$as_ac_var'}'`
17122                { echo "$as_me:$LINENO: result: $ac_res" >&5
17123 echo "${ECHO_T}$ac_res" >&6; }
17124 if test `eval echo '${'$as_ac_var'}'` = yes; then
17125   cat >>confdefs.h <<_ACEOF
17126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17127 _ACEOF
17128
17129 fi
17130 done
17131
17132
17133
17134
17135 for ac_func in strerror strerror_r setenv
17136 do
17137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17138 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17140 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17141   echo $ECHO_N "(cached) $ECHO_C" >&6
17142 else
17143   cat >conftest.$ac_ext <<_ACEOF
17144 /* confdefs.h.  */
17145 _ACEOF
17146 cat confdefs.h >>conftest.$ac_ext
17147 cat >>conftest.$ac_ext <<_ACEOF
17148 /* end confdefs.h.  */
17149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17150    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17151 #define $ac_func innocuous_$ac_func
17152
17153 /* System header to define __stub macros and hopefully few prototypes,
17154     which can conflict with char $ac_func (); below.
17155     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17156     <limits.h> exists even on freestanding compilers.  */
17157
17158 #ifdef __STDC__
17159 # include <limits.h>
17160 #else
17161 # include <assert.h>
17162 #endif
17163
17164 #undef $ac_func
17165
17166 /* Override any GCC internal prototype to avoid an error.
17167    Use char because int might match the return type of a GCC
17168    builtin and then its argument prototype would still apply.  */
17169 #ifdef __cplusplus
17170 extern "C"
17171 #endif
17172 char $ac_func ();
17173 /* The GNU C library defines this for functions which it implements
17174     to always fail with ENOSYS.  Some functions are actually named
17175     something starting with __ and the normal name is an alias.  */
17176 #if defined __stub_$ac_func || defined __stub___$ac_func
17177 choke me
17178 #endif
17179
17180 int
17181 main ()
17182 {
17183 return $ac_func ();
17184   ;
17185   return 0;
17186 }
17187 _ACEOF
17188 rm -f conftest.$ac_objext conftest$ac_exeext
17189 if { (ac_try="$ac_link"
17190 case "(($ac_try" in
17191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192   *) ac_try_echo=$ac_try;;
17193 esac
17194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17195   (eval "$ac_link") 2>conftest.er1
17196   ac_status=$?
17197   grep -v '^ *+' conftest.er1 >conftest.err
17198   rm -f conftest.er1
17199   cat conftest.err >&5
17200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201   (exit $ac_status); } &&
17202          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17203   { (case "(($ac_try" in
17204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17205   *) ac_try_echo=$ac_try;;
17206 esac
17207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17208   (eval "$ac_try") 2>&5
17209   ac_status=$?
17210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211   (exit $ac_status); }; } &&
17212          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17222   eval "$as_ac_var=yes"
17223 else
17224   echo "$as_me: failed program was:" >&5
17225 sed 's/^/| /' conftest.$ac_ext >&5
17226
17227         eval "$as_ac_var=no"
17228 fi
17229
17230 rm -f core conftest.err conftest.$ac_objext \
17231       conftest$ac_exeext conftest.$ac_ext
17232 fi
17233 ac_res=`eval echo '${'$as_ac_var'}'`
17234                { echo "$as_me:$LINENO: result: $ac_res" >&5
17235 echo "${ECHO_T}$ac_res" >&6; }
17236 if test `eval echo '${'$as_ac_var'}'` = yes; then
17237   cat >>confdefs.h <<_ACEOF
17238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17239 _ACEOF
17240
17241 fi
17242 done
17243
17244
17245
17246
17247
17248 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17249 do
17250 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17251 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17252 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17253 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17254   echo $ECHO_N "(cached) $ECHO_C" >&6
17255 else
17256   cat >conftest.$ac_ext <<_ACEOF
17257 /* confdefs.h.  */
17258 _ACEOF
17259 cat confdefs.h >>conftest.$ac_ext
17260 cat >>conftest.$ac_ext <<_ACEOF
17261 /* end confdefs.h.  */
17262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17263    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17264 #define $ac_func innocuous_$ac_func
17265
17266 /* System header to define __stub macros and hopefully few prototypes,
17267     which can conflict with char $ac_func (); below.
17268     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17269     <limits.h> exists even on freestanding compilers.  */
17270
17271 #ifdef __STDC__
17272 # include <limits.h>
17273 #else
17274 # include <assert.h>
17275 #endif
17276
17277 #undef $ac_func
17278
17279 /* Override any GCC internal prototype to avoid an error.
17280    Use char because int might match the return type of a GCC
17281    builtin and then its argument prototype would still apply.  */
17282 #ifdef __cplusplus
17283 extern "C"
17284 #endif
17285 char $ac_func ();
17286 /* The GNU C library defines this for functions which it implements
17287     to always fail with ENOSYS.  Some functions are actually named
17288     something starting with __ and the normal name is an alias.  */
17289 #if defined __stub_$ac_func || defined __stub___$ac_func
17290 choke me
17291 #endif
17292
17293 int
17294 main ()
17295 {
17296 return $ac_func ();
17297   ;
17298   return 0;
17299 }
17300 _ACEOF
17301 rm -f conftest.$ac_objext conftest$ac_exeext
17302 if { (ac_try="$ac_link"
17303 case "(($ac_try" in
17304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17305   *) ac_try_echo=$ac_try;;
17306 esac
17307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17308   (eval "$ac_link") 2>conftest.er1
17309   ac_status=$?
17310   grep -v '^ *+' conftest.er1 >conftest.err
17311   rm -f conftest.er1
17312   cat conftest.err >&5
17313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314   (exit $ac_status); } &&
17315          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17316   { (case "(($ac_try" in
17317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17318   *) ac_try_echo=$ac_try;;
17319 esac
17320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17321   (eval "$ac_try") 2>&5
17322   ac_status=$?
17323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324   (exit $ac_status); }; } &&
17325          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17335   eval "$as_ac_var=yes"
17336 else
17337   echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.$ac_ext >&5
17339
17340         eval "$as_ac_var=no"
17341 fi
17342
17343 rm -f core conftest.err conftest.$ac_objext \
17344       conftest$ac_exeext conftest.$ac_ext
17345 fi
17346 ac_res=`eval echo '${'$as_ac_var'}'`
17347                { echo "$as_me:$LINENO: result: $ac_res" >&5
17348 echo "${ECHO_T}$ac_res" >&6; }
17349 if test `eval echo '${'$as_ac_var'}'` = yes; then
17350   cat >>confdefs.h <<_ACEOF
17351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17352 _ACEOF
17353
17354 fi
17355 done
17356
17357
17358
17359
17360
17361
17362 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17363 do
17364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17365 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17367 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17368   echo $ECHO_N "(cached) $ECHO_C" >&6
17369 else
17370   cat >conftest.$ac_ext <<_ACEOF
17371 /* confdefs.h.  */
17372 _ACEOF
17373 cat confdefs.h >>conftest.$ac_ext
17374 cat >>conftest.$ac_ext <<_ACEOF
17375 /* end confdefs.h.  */
17376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17377    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17378 #define $ac_func innocuous_$ac_func
17379
17380 /* System header to define __stub macros and hopefully few prototypes,
17381     which can conflict with char $ac_func (); below.
17382     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17383     <limits.h> exists even on freestanding compilers.  */
17384
17385 #ifdef __STDC__
17386 # include <limits.h>
17387 #else
17388 # include <assert.h>
17389 #endif
17390
17391 #undef $ac_func
17392
17393 /* Override any GCC internal prototype to avoid an error.
17394    Use char because int might match the return type of a GCC
17395    builtin and then its argument prototype would still apply.  */
17396 #ifdef __cplusplus
17397 extern "C"
17398 #endif
17399 char $ac_func ();
17400 /* The GNU C library defines this for functions which it implements
17401     to always fail with ENOSYS.  Some functions are actually named
17402     something starting with __ and the normal name is an alias.  */
17403 #if defined __stub_$ac_func || defined __stub___$ac_func
17404 choke me
17405 #endif
17406
17407 int
17408 main ()
17409 {
17410 return $ac_func ();
17411   ;
17412   return 0;
17413 }
17414 _ACEOF
17415 rm -f conftest.$ac_objext conftest$ac_exeext
17416 if { (ac_try="$ac_link"
17417 case "(($ac_try" in
17418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17419   *) ac_try_echo=$ac_try;;
17420 esac
17421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17422   (eval "$ac_link") 2>conftest.er1
17423   ac_status=$?
17424   grep -v '^ *+' conftest.er1 >conftest.err
17425   rm -f conftest.er1
17426   cat conftest.err >&5
17427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428   (exit $ac_status); } &&
17429          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17430   { (case "(($ac_try" in
17431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17432   *) ac_try_echo=$ac_try;;
17433 esac
17434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17435   (eval "$ac_try") 2>&5
17436   ac_status=$?
17437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438   (exit $ac_status); }; } &&
17439          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17449   eval "$as_ac_var=yes"
17450 else
17451   echo "$as_me: failed program was:" >&5
17452 sed 's/^/| /' conftest.$ac_ext >&5
17453
17454         eval "$as_ac_var=no"
17455 fi
17456
17457 rm -f core conftest.err conftest.$ac_objext \
17458       conftest$ac_exeext conftest.$ac_ext
17459 fi
17460 ac_res=`eval echo '${'$as_ac_var'}'`
17461                { echo "$as_me:$LINENO: result: $ac_res" >&5
17462 echo "${ECHO_T}$ac_res" >&6; }
17463 if test `eval echo '${'$as_ac_var'}'` = yes; then
17464   cat >>confdefs.h <<_ACEOF
17465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17466 _ACEOF
17467
17468 fi
17469 done
17470
17471 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17472 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17473 if test "${llvm_cv_c_printf_a+set}" = set; then
17474   echo $ECHO_N "(cached) $ECHO_C" >&6
17475 else
17476   ac_ext=c
17477 ac_cpp='$CPP $CPPFLAGS'
17478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17481
17482  if test "$cross_compiling" = yes; then
17483   llvmac_cv_c_printf_a=no
17484 else
17485   cat >conftest.$ac_ext <<_ACEOF
17486
17487   /* confdefs.h.  */
17488 _ACEOF
17489 cat confdefs.h >>conftest.$ac_ext
17490 cat >>conftest.$ac_ext <<_ACEOF
17491 /* end confdefs.h.  */
17492
17493 #include <stdio.h>
17494 #include <stdlib.h>
17495
17496 int
17497 main ()
17498 {
17499
17500 volatile double A, B;
17501 char Buffer[100];
17502 A = 1;
17503 A /= 10.0;
17504 sprintf(Buffer, "%a", A);
17505 B = atof(Buffer);
17506 if (A != B)
17507   return (1);
17508 if (A != 0x1.999999999999ap-4)
17509   return (1);
17510 return (0);
17511   ;
17512   return 0;
17513 }
17514 _ACEOF
17515 rm -f conftest$ac_exeext
17516 if { (ac_try="$ac_link"
17517 case "(($ac_try" in
17518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17519   *) ac_try_echo=$ac_try;;
17520 esac
17521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17522   (eval "$ac_link") 2>&5
17523   ac_status=$?
17524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17526   { (case "(($ac_try" in
17527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17528   *) ac_try_echo=$ac_try;;
17529 esac
17530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17531   (eval "$ac_try") 2>&5
17532   ac_status=$?
17533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534   (exit $ac_status); }; }; then
17535   llvm_cv_c_printf_a=yes
17536 else
17537   echo "$as_me: program exited with status $ac_status" >&5
17538 echo "$as_me: failed program was:" >&5
17539 sed 's/^/| /' conftest.$ac_ext >&5
17540
17541 ( exit $ac_status )
17542 llvmac_cv_c_printf_a=no
17543 fi
17544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17545 fi
17546
17547
17548  ac_ext=c
17549 ac_cpp='$CPP $CPPFLAGS'
17550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17553
17554 fi
17555 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17556 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17557  if test "$llvm_cv_c_printf_a" = "yes"; then
17558
17559 cat >>confdefs.h <<\_ACEOF
17560 #define HAVE_PRINTF_A 1
17561 _ACEOF
17562
17563  fi
17564
17565
17566 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17567 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17568 if test "${ac_cv_func_rand48+set}" = set; then
17569   echo $ECHO_N "(cached) $ECHO_C" >&6
17570 else
17571   ac_ext=cpp
17572 ac_cpp='$CXXCPP $CPPFLAGS'
17573 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17574 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17575 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17576
17577    cat >conftest.$ac_ext <<_ACEOF
17578 /* confdefs.h.  */
17579 _ACEOF
17580 cat confdefs.h >>conftest.$ac_ext
17581 cat >>conftest.$ac_ext <<_ACEOF
17582 /* end confdefs.h.  */
17583 #include <stdlib.h>
17584 int
17585 main ()
17586 {
17587 srand48(0);lrand48();drand48();
17588   ;
17589   return 0;
17590 }
17591 _ACEOF
17592 rm -f conftest.$ac_objext
17593 if { (ac_try="$ac_compile"
17594 case "(($ac_try" in
17595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17596   *) ac_try_echo=$ac_try;;
17597 esac
17598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17599   (eval "$ac_compile") 2>conftest.er1
17600   ac_status=$?
17601   grep -v '^ *+' conftest.er1 >conftest.err
17602   rm -f conftest.er1
17603   cat conftest.err >&5
17604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605   (exit $ac_status); } &&
17606          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17607   { (case "(($ac_try" in
17608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17609   *) ac_try_echo=$ac_try;;
17610 esac
17611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17612   (eval "$ac_try") 2>&5
17613   ac_status=$?
17614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615   (exit $ac_status); }; } &&
17616          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17626   ac_cv_func_rand48=yes
17627 else
17628   echo "$as_me: failed program was:" >&5
17629 sed 's/^/| /' conftest.$ac_ext >&5
17630
17631         ac_cv_func_rand48=no
17632 fi
17633
17634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17635   ac_ext=c
17636 ac_cpp='$CPP $CPPFLAGS'
17637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17640
17641 fi
17642 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17643 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17644
17645 if test "$ac_cv_func_rand48" = "yes" ; then
17646
17647 cat >>confdefs.h <<\_ACEOF
17648 #define HAVE_RAND48 1
17649 _ACEOF
17650
17651 fi
17652
17653
17654 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17655 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17656 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17657   echo $ECHO_N "(cached) $ECHO_C" >&6
17658 else
17659   cat >conftest.$ac_ext <<_ACEOF
17660 /* confdefs.h.  */
17661 _ACEOF
17662 cat confdefs.h >>conftest.$ac_ext
17663 cat >>conftest.$ac_ext <<_ACEOF
17664 /* end confdefs.h.  */
17665 $ac_includes_default
17666 int
17667 main ()
17668 {
17669 #ifndef strerror_s
17670   char *p = (char *) strerror_s;
17671   return !p;
17672 #endif
17673
17674   ;
17675   return 0;
17676 }
17677 _ACEOF
17678 rm -f conftest.$ac_objext
17679 if { (ac_try="$ac_compile"
17680 case "(($ac_try" in
17681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17682   *) ac_try_echo=$ac_try;;
17683 esac
17684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17685   (eval "$ac_compile") 2>conftest.er1
17686   ac_status=$?
17687   grep -v '^ *+' conftest.er1 >conftest.err
17688   rm -f conftest.er1
17689   cat conftest.err >&5
17690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691   (exit $ac_status); } &&
17692          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17693   { (case "(($ac_try" in
17694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17695   *) ac_try_echo=$ac_try;;
17696 esac
17697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17698   (eval "$ac_try") 2>&5
17699   ac_status=$?
17700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701   (exit $ac_status); }; } &&
17702          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17712   ac_cv_have_decl_strerror_s=yes
17713 else
17714   echo "$as_me: failed program was:" >&5
17715 sed 's/^/| /' conftest.$ac_ext >&5
17716
17717         ac_cv_have_decl_strerror_s=no
17718 fi
17719
17720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17721 fi
17722 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17723 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17724 if test $ac_cv_have_decl_strerror_s = yes; then
17725
17726 cat >>confdefs.h <<_ACEOF
17727 #define HAVE_DECL_STRERROR_S 1
17728 _ACEOF
17729
17730
17731 else
17732   cat >>confdefs.h <<_ACEOF
17733 #define HAVE_DECL_STRERROR_S 0
17734 _ACEOF
17735
17736
17737 fi
17738
17739
17740
17741 if test "$llvm_cv_os_type" = "MingW" ; then
17742   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17743 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17744 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17745   echo $ECHO_N "(cached) $ECHO_C" >&6
17746 else
17747   ac_check_lib_save_LIBS=$LIBS
17748 LIBS="-lgcc  $LIBS"
17749 cat >conftest.$ac_ext <<_ACEOF
17750 /* confdefs.h.  */
17751 _ACEOF
17752 cat confdefs.h >>conftest.$ac_ext
17753 cat >>conftest.$ac_ext <<_ACEOF
17754 /* end confdefs.h.  */
17755
17756 /* Override any GCC internal prototype to avoid an error.
17757    Use char because int might match the return type of a GCC
17758    builtin and then its argument prototype would still apply.  */
17759 #ifdef __cplusplus
17760 extern "C"
17761 #endif
17762 char _alloca ();
17763 int
17764 main ()
17765 {
17766 return _alloca ();
17767   ;
17768   return 0;
17769 }
17770 _ACEOF
17771 rm -f conftest.$ac_objext conftest$ac_exeext
17772 if { (ac_try="$ac_link"
17773 case "(($ac_try" in
17774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17775   *) ac_try_echo=$ac_try;;
17776 esac
17777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17778   (eval "$ac_link") 2>conftest.er1
17779   ac_status=$?
17780   grep -v '^ *+' conftest.er1 >conftest.err
17781   rm -f conftest.er1
17782   cat conftest.err >&5
17783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784   (exit $ac_status); } &&
17785          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17786   { (case "(($ac_try" in
17787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17788   *) ac_try_echo=$ac_try;;
17789 esac
17790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17791   (eval "$ac_try") 2>&5
17792   ac_status=$?
17793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794   (exit $ac_status); }; } &&
17795          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17805   ac_cv_lib_gcc__alloca=yes
17806 else
17807   echo "$as_me: failed program was:" >&5
17808 sed 's/^/| /' conftest.$ac_ext >&5
17809
17810         ac_cv_lib_gcc__alloca=no
17811 fi
17812
17813 rm -f core conftest.err conftest.$ac_objext \
17814       conftest$ac_exeext conftest.$ac_ext
17815 LIBS=$ac_check_lib_save_LIBS
17816 fi
17817 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17818 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17819 if test $ac_cv_lib_gcc__alloca = yes; then
17820
17821 cat >>confdefs.h <<\_ACEOF
17822 #define HAVE__ALLOCA 1
17823 _ACEOF
17824
17825 fi
17826
17827   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17828 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17829 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17830   echo $ECHO_N "(cached) $ECHO_C" >&6
17831 else
17832   ac_check_lib_save_LIBS=$LIBS
17833 LIBS="-lgcc  $LIBS"
17834 cat >conftest.$ac_ext <<_ACEOF
17835 /* confdefs.h.  */
17836 _ACEOF
17837 cat confdefs.h >>conftest.$ac_ext
17838 cat >>conftest.$ac_ext <<_ACEOF
17839 /* end confdefs.h.  */
17840
17841 /* Override any GCC internal prototype to avoid an error.
17842    Use char because int might match the return type of a GCC
17843    builtin and then its argument prototype would still apply.  */
17844 #ifdef __cplusplus
17845 extern "C"
17846 #endif
17847 char __alloca ();
17848 int
17849 main ()
17850 {
17851 return __alloca ();
17852   ;
17853   return 0;
17854 }
17855 _ACEOF
17856 rm -f conftest.$ac_objext conftest$ac_exeext
17857 if { (ac_try="$ac_link"
17858 case "(($ac_try" in
17859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17860   *) ac_try_echo=$ac_try;;
17861 esac
17862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17863   (eval "$ac_link") 2>conftest.er1
17864   ac_status=$?
17865   grep -v '^ *+' conftest.er1 >conftest.err
17866   rm -f conftest.er1
17867   cat conftest.err >&5
17868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869   (exit $ac_status); } &&
17870          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17871   { (case "(($ac_try" in
17872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17873   *) ac_try_echo=$ac_try;;
17874 esac
17875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17876   (eval "$ac_try") 2>&5
17877   ac_status=$?
17878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879   (exit $ac_status); }; } &&
17880          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17890   ac_cv_lib_gcc___alloca=yes
17891 else
17892   echo "$as_me: failed program was:" >&5
17893 sed 's/^/| /' conftest.$ac_ext >&5
17894
17895         ac_cv_lib_gcc___alloca=no
17896 fi
17897
17898 rm -f core conftest.err conftest.$ac_objext \
17899       conftest$ac_exeext conftest.$ac_ext
17900 LIBS=$ac_check_lib_save_LIBS
17901 fi
17902 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17903 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17904 if test $ac_cv_lib_gcc___alloca = yes; then
17905
17906 cat >>confdefs.h <<\_ACEOF
17907 #define HAVE___ALLOCA 1
17908 _ACEOF
17909
17910 fi
17911
17912   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17913 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17914 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17915   echo $ECHO_N "(cached) $ECHO_C" >&6
17916 else
17917   ac_check_lib_save_LIBS=$LIBS
17918 LIBS="-lgcc  $LIBS"
17919 cat >conftest.$ac_ext <<_ACEOF
17920 /* confdefs.h.  */
17921 _ACEOF
17922 cat confdefs.h >>conftest.$ac_ext
17923 cat >>conftest.$ac_ext <<_ACEOF
17924 /* end confdefs.h.  */
17925
17926 /* Override any GCC internal prototype to avoid an error.
17927    Use char because int might match the return type of a GCC
17928    builtin and then its argument prototype would still apply.  */
17929 #ifdef __cplusplus
17930 extern "C"
17931 #endif
17932 char __chkstk ();
17933 int
17934 main ()
17935 {
17936 return __chkstk ();
17937   ;
17938   return 0;
17939 }
17940 _ACEOF
17941 rm -f conftest.$ac_objext conftest$ac_exeext
17942 if { (ac_try="$ac_link"
17943 case "(($ac_try" in
17944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17945   *) ac_try_echo=$ac_try;;
17946 esac
17947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17948   (eval "$ac_link") 2>conftest.er1
17949   ac_status=$?
17950   grep -v '^ *+' conftest.er1 >conftest.err
17951   rm -f conftest.er1
17952   cat conftest.err >&5
17953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954   (exit $ac_status); } &&
17955          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17956   { (case "(($ac_try" in
17957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17958   *) ac_try_echo=$ac_try;;
17959 esac
17960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17961   (eval "$ac_try") 2>&5
17962   ac_status=$?
17963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964   (exit $ac_status); }; } &&
17965          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17975   ac_cv_lib_gcc___chkstk=yes
17976 else
17977   echo "$as_me: failed program was:" >&5
17978 sed 's/^/| /' conftest.$ac_ext >&5
17979
17980         ac_cv_lib_gcc___chkstk=no
17981 fi
17982
17983 rm -f core conftest.err conftest.$ac_objext \
17984       conftest$ac_exeext conftest.$ac_ext
17985 LIBS=$ac_check_lib_save_LIBS
17986 fi
17987 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
17988 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
17989 if test $ac_cv_lib_gcc___chkstk = yes; then
17990
17991 cat >>confdefs.h <<\_ACEOF
17992 #define HAVE___CHKSTK 1
17993 _ACEOF
17994
17995 fi
17996
17997   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
17998 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
17999 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18000   echo $ECHO_N "(cached) $ECHO_C" >&6
18001 else
18002   ac_check_lib_save_LIBS=$LIBS
18003 LIBS="-lgcc  $LIBS"
18004 cat >conftest.$ac_ext <<_ACEOF
18005 /* confdefs.h.  */
18006 _ACEOF
18007 cat confdefs.h >>conftest.$ac_ext
18008 cat >>conftest.$ac_ext <<_ACEOF
18009 /* end confdefs.h.  */
18010
18011 /* Override any GCC internal prototype to avoid an error.
18012    Use char because int might match the return type of a GCC
18013    builtin and then its argument prototype would still apply.  */
18014 #ifdef __cplusplus
18015 extern "C"
18016 #endif
18017 char ___chkstk ();
18018 int
18019 main ()
18020 {
18021 return ___chkstk ();
18022   ;
18023   return 0;
18024 }
18025 _ACEOF
18026 rm -f conftest.$ac_objext conftest$ac_exeext
18027 if { (ac_try="$ac_link"
18028 case "(($ac_try" in
18029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18030   *) ac_try_echo=$ac_try;;
18031 esac
18032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18033   (eval "$ac_link") 2>conftest.er1
18034   ac_status=$?
18035   grep -v '^ *+' conftest.er1 >conftest.err
18036   rm -f conftest.er1
18037   cat conftest.err >&5
18038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039   (exit $ac_status); } &&
18040          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18041   { (case "(($ac_try" in
18042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18043   *) ac_try_echo=$ac_try;;
18044 esac
18045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18046   (eval "$ac_try") 2>&5
18047   ac_status=$?
18048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049   (exit $ac_status); }; } &&
18050          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18060   ac_cv_lib_gcc____chkstk=yes
18061 else
18062   echo "$as_me: failed program was:" >&5
18063 sed 's/^/| /' conftest.$ac_ext >&5
18064
18065         ac_cv_lib_gcc____chkstk=no
18066 fi
18067
18068 rm -f core conftest.err conftest.$ac_objext \
18069       conftest$ac_exeext conftest.$ac_ext
18070 LIBS=$ac_check_lib_save_LIBS
18071 fi
18072 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18073 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18074 if test $ac_cv_lib_gcc____chkstk = yes; then
18075
18076 cat >>confdefs.h <<\_ACEOF
18077 #define HAVE____CHKSTK 1
18078 _ACEOF
18079
18080 fi
18081
18082
18083   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18084 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18085 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18086   echo $ECHO_N "(cached) $ECHO_C" >&6
18087 else
18088   ac_check_lib_save_LIBS=$LIBS
18089 LIBS="-lgcc  $LIBS"
18090 cat >conftest.$ac_ext <<_ACEOF
18091 /* confdefs.h.  */
18092 _ACEOF
18093 cat confdefs.h >>conftest.$ac_ext
18094 cat >>conftest.$ac_ext <<_ACEOF
18095 /* end confdefs.h.  */
18096
18097 /* Override any GCC internal prototype to avoid an error.
18098    Use char because int might match the return type of a GCC
18099    builtin and then its argument prototype would still apply.  */
18100 #ifdef __cplusplus
18101 extern "C"
18102 #endif
18103 char __ashldi3 ();
18104 int
18105 main ()
18106 {
18107 return __ashldi3 ();
18108   ;
18109   return 0;
18110 }
18111 _ACEOF
18112 rm -f conftest.$ac_objext conftest$ac_exeext
18113 if { (ac_try="$ac_link"
18114 case "(($ac_try" in
18115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18116   *) ac_try_echo=$ac_try;;
18117 esac
18118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18119   (eval "$ac_link") 2>conftest.er1
18120   ac_status=$?
18121   grep -v '^ *+' conftest.er1 >conftest.err
18122   rm -f conftest.er1
18123   cat conftest.err >&5
18124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125   (exit $ac_status); } &&
18126          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18127   { (case "(($ac_try" in
18128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18129   *) ac_try_echo=$ac_try;;
18130 esac
18131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18132   (eval "$ac_try") 2>&5
18133   ac_status=$?
18134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135   (exit $ac_status); }; } &&
18136          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18146   ac_cv_lib_gcc___ashldi3=yes
18147 else
18148   echo "$as_me: failed program was:" >&5
18149 sed 's/^/| /' conftest.$ac_ext >&5
18150
18151         ac_cv_lib_gcc___ashldi3=no
18152 fi
18153
18154 rm -f core conftest.err conftest.$ac_objext \
18155       conftest$ac_exeext conftest.$ac_ext
18156 LIBS=$ac_check_lib_save_LIBS
18157 fi
18158 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18159 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18160 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18161
18162 cat >>confdefs.h <<\_ACEOF
18163 #define HAVE___ASHLDI3 1
18164 _ACEOF
18165
18166 fi
18167
18168   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18169 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18170 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18171   echo $ECHO_N "(cached) $ECHO_C" >&6
18172 else
18173   ac_check_lib_save_LIBS=$LIBS
18174 LIBS="-lgcc  $LIBS"
18175 cat >conftest.$ac_ext <<_ACEOF
18176 /* confdefs.h.  */
18177 _ACEOF
18178 cat confdefs.h >>conftest.$ac_ext
18179 cat >>conftest.$ac_ext <<_ACEOF
18180 /* end confdefs.h.  */
18181
18182 /* Override any GCC internal prototype to avoid an error.
18183    Use char because int might match the return type of a GCC
18184    builtin and then its argument prototype would still apply.  */
18185 #ifdef __cplusplus
18186 extern "C"
18187 #endif
18188 char __ashrdi3 ();
18189 int
18190 main ()
18191 {
18192 return __ashrdi3 ();
18193   ;
18194   return 0;
18195 }
18196 _ACEOF
18197 rm -f conftest.$ac_objext conftest$ac_exeext
18198 if { (ac_try="$ac_link"
18199 case "(($ac_try" in
18200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18201   *) ac_try_echo=$ac_try;;
18202 esac
18203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18204   (eval "$ac_link") 2>conftest.er1
18205   ac_status=$?
18206   grep -v '^ *+' conftest.er1 >conftest.err
18207   rm -f conftest.er1
18208   cat conftest.err >&5
18209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210   (exit $ac_status); } &&
18211          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18212   { (case "(($ac_try" in
18213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18214   *) ac_try_echo=$ac_try;;
18215 esac
18216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18217   (eval "$ac_try") 2>&5
18218   ac_status=$?
18219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220   (exit $ac_status); }; } &&
18221          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18231   ac_cv_lib_gcc___ashrdi3=yes
18232 else
18233   echo "$as_me: failed program was:" >&5
18234 sed 's/^/| /' conftest.$ac_ext >&5
18235
18236         ac_cv_lib_gcc___ashrdi3=no
18237 fi
18238
18239 rm -f core conftest.err conftest.$ac_objext \
18240       conftest$ac_exeext conftest.$ac_ext
18241 LIBS=$ac_check_lib_save_LIBS
18242 fi
18243 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18244 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18245 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18246
18247 cat >>confdefs.h <<\_ACEOF
18248 #define HAVE___ASHRDI3 1
18249 _ACEOF
18250
18251 fi
18252
18253   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18254 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18255 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18256   echo $ECHO_N "(cached) $ECHO_C" >&6
18257 else
18258   ac_check_lib_save_LIBS=$LIBS
18259 LIBS="-lgcc  $LIBS"
18260 cat >conftest.$ac_ext <<_ACEOF
18261 /* confdefs.h.  */
18262 _ACEOF
18263 cat confdefs.h >>conftest.$ac_ext
18264 cat >>conftest.$ac_ext <<_ACEOF
18265 /* end confdefs.h.  */
18266
18267 /* Override any GCC internal prototype to avoid an error.
18268    Use char because int might match the return type of a GCC
18269    builtin and then its argument prototype would still apply.  */
18270 #ifdef __cplusplus
18271 extern "C"
18272 #endif
18273 char __divdi3 ();
18274 int
18275 main ()
18276 {
18277 return __divdi3 ();
18278   ;
18279   return 0;
18280 }
18281 _ACEOF
18282 rm -f conftest.$ac_objext conftest$ac_exeext
18283 if { (ac_try="$ac_link"
18284 case "(($ac_try" in
18285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18286   *) ac_try_echo=$ac_try;;
18287 esac
18288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18289   (eval "$ac_link") 2>conftest.er1
18290   ac_status=$?
18291   grep -v '^ *+' conftest.er1 >conftest.err
18292   rm -f conftest.er1
18293   cat conftest.err >&5
18294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295   (exit $ac_status); } &&
18296          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18297   { (case "(($ac_try" in
18298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18299   *) ac_try_echo=$ac_try;;
18300 esac
18301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18302   (eval "$ac_try") 2>&5
18303   ac_status=$?
18304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305   (exit $ac_status); }; } &&
18306          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18316   ac_cv_lib_gcc___divdi3=yes
18317 else
18318   echo "$as_me: failed program was:" >&5
18319 sed 's/^/| /' conftest.$ac_ext >&5
18320
18321         ac_cv_lib_gcc___divdi3=no
18322 fi
18323
18324 rm -f core conftest.err conftest.$ac_objext \
18325       conftest$ac_exeext conftest.$ac_ext
18326 LIBS=$ac_check_lib_save_LIBS
18327 fi
18328 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18329 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18330 if test $ac_cv_lib_gcc___divdi3 = yes; then
18331
18332 cat >>confdefs.h <<\_ACEOF
18333 #define HAVE___DIVDI3 1
18334 _ACEOF
18335
18336 fi
18337
18338   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18339 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18340 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18341   echo $ECHO_N "(cached) $ECHO_C" >&6
18342 else
18343   ac_check_lib_save_LIBS=$LIBS
18344 LIBS="-lgcc  $LIBS"
18345 cat >conftest.$ac_ext <<_ACEOF
18346 /* confdefs.h.  */
18347 _ACEOF
18348 cat confdefs.h >>conftest.$ac_ext
18349 cat >>conftest.$ac_ext <<_ACEOF
18350 /* end confdefs.h.  */
18351
18352 /* Override any GCC internal prototype to avoid an error.
18353    Use char because int might match the return type of a GCC
18354    builtin and then its argument prototype would still apply.  */
18355 #ifdef __cplusplus
18356 extern "C"
18357 #endif
18358 char __fixdfdi ();
18359 int
18360 main ()
18361 {
18362 return __fixdfdi ();
18363   ;
18364   return 0;
18365 }
18366 _ACEOF
18367 rm -f conftest.$ac_objext conftest$ac_exeext
18368 if { (ac_try="$ac_link"
18369 case "(($ac_try" in
18370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18371   *) ac_try_echo=$ac_try;;
18372 esac
18373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18374   (eval "$ac_link") 2>conftest.er1
18375   ac_status=$?
18376   grep -v '^ *+' conftest.er1 >conftest.err
18377   rm -f conftest.er1
18378   cat conftest.err >&5
18379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380   (exit $ac_status); } &&
18381          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18382   { (case "(($ac_try" in
18383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18384   *) ac_try_echo=$ac_try;;
18385 esac
18386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18387   (eval "$ac_try") 2>&5
18388   ac_status=$?
18389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390   (exit $ac_status); }; } &&
18391          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18401   ac_cv_lib_gcc___fixdfdi=yes
18402 else
18403   echo "$as_me: failed program was:" >&5
18404 sed 's/^/| /' conftest.$ac_ext >&5
18405
18406         ac_cv_lib_gcc___fixdfdi=no
18407 fi
18408
18409 rm -f core conftest.err conftest.$ac_objext \
18410       conftest$ac_exeext conftest.$ac_ext
18411 LIBS=$ac_check_lib_save_LIBS
18412 fi
18413 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18414 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18415 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18416
18417 cat >>confdefs.h <<\_ACEOF
18418 #define HAVE___FIXDFDI 1
18419 _ACEOF
18420
18421 fi
18422
18423   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18424 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18425 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18426   echo $ECHO_N "(cached) $ECHO_C" >&6
18427 else
18428   ac_check_lib_save_LIBS=$LIBS
18429 LIBS="-lgcc  $LIBS"
18430 cat >conftest.$ac_ext <<_ACEOF
18431 /* confdefs.h.  */
18432 _ACEOF
18433 cat confdefs.h >>conftest.$ac_ext
18434 cat >>conftest.$ac_ext <<_ACEOF
18435 /* end confdefs.h.  */
18436
18437 /* Override any GCC internal prototype to avoid an error.
18438    Use char because int might match the return type of a GCC
18439    builtin and then its argument prototype would still apply.  */
18440 #ifdef __cplusplus
18441 extern "C"
18442 #endif
18443 char __fixsfdi ();
18444 int
18445 main ()
18446 {
18447 return __fixsfdi ();
18448   ;
18449   return 0;
18450 }
18451 _ACEOF
18452 rm -f conftest.$ac_objext conftest$ac_exeext
18453 if { (ac_try="$ac_link"
18454 case "(($ac_try" in
18455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18456   *) ac_try_echo=$ac_try;;
18457 esac
18458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18459   (eval "$ac_link") 2>conftest.er1
18460   ac_status=$?
18461   grep -v '^ *+' conftest.er1 >conftest.err
18462   rm -f conftest.er1
18463   cat conftest.err >&5
18464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465   (exit $ac_status); } &&
18466          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18467   { (case "(($ac_try" in
18468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18469   *) ac_try_echo=$ac_try;;
18470 esac
18471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18472   (eval "$ac_try") 2>&5
18473   ac_status=$?
18474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475   (exit $ac_status); }; } &&
18476          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18486   ac_cv_lib_gcc___fixsfdi=yes
18487 else
18488   echo "$as_me: failed program was:" >&5
18489 sed 's/^/| /' conftest.$ac_ext >&5
18490
18491         ac_cv_lib_gcc___fixsfdi=no
18492 fi
18493
18494 rm -f core conftest.err conftest.$ac_objext \
18495       conftest$ac_exeext conftest.$ac_ext
18496 LIBS=$ac_check_lib_save_LIBS
18497 fi
18498 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18499 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18500 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18501
18502 cat >>confdefs.h <<\_ACEOF
18503 #define HAVE___FIXSFDI 1
18504 _ACEOF
18505
18506 fi
18507
18508   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18509 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18510 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18511   echo $ECHO_N "(cached) $ECHO_C" >&6
18512 else
18513   ac_check_lib_save_LIBS=$LIBS
18514 LIBS="-lgcc  $LIBS"
18515 cat >conftest.$ac_ext <<_ACEOF
18516 /* confdefs.h.  */
18517 _ACEOF
18518 cat confdefs.h >>conftest.$ac_ext
18519 cat >>conftest.$ac_ext <<_ACEOF
18520 /* end confdefs.h.  */
18521
18522 /* Override any GCC internal prototype to avoid an error.
18523    Use char because int might match the return type of a GCC
18524    builtin and then its argument prototype would still apply.  */
18525 #ifdef __cplusplus
18526 extern "C"
18527 #endif
18528 char __floatdidf ();
18529 int
18530 main ()
18531 {
18532 return __floatdidf ();
18533   ;
18534   return 0;
18535 }
18536 _ACEOF
18537 rm -f conftest.$ac_objext conftest$ac_exeext
18538 if { (ac_try="$ac_link"
18539 case "(($ac_try" in
18540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18541   *) ac_try_echo=$ac_try;;
18542 esac
18543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18544   (eval "$ac_link") 2>conftest.er1
18545   ac_status=$?
18546   grep -v '^ *+' conftest.er1 >conftest.err
18547   rm -f conftest.er1
18548   cat conftest.err >&5
18549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550   (exit $ac_status); } &&
18551          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18552   { (case "(($ac_try" in
18553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18554   *) ac_try_echo=$ac_try;;
18555 esac
18556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18557   (eval "$ac_try") 2>&5
18558   ac_status=$?
18559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560   (exit $ac_status); }; } &&
18561          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18571   ac_cv_lib_gcc___floatdidf=yes
18572 else
18573   echo "$as_me: failed program was:" >&5
18574 sed 's/^/| /' conftest.$ac_ext >&5
18575
18576         ac_cv_lib_gcc___floatdidf=no
18577 fi
18578
18579 rm -f core conftest.err conftest.$ac_objext \
18580       conftest$ac_exeext conftest.$ac_ext
18581 LIBS=$ac_check_lib_save_LIBS
18582 fi
18583 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18584 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18585 if test $ac_cv_lib_gcc___floatdidf = yes; then
18586
18587 cat >>confdefs.h <<\_ACEOF
18588 #define HAVE___FLOATDIDF 1
18589 _ACEOF
18590
18591 fi
18592
18593   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18594 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18595 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18596   echo $ECHO_N "(cached) $ECHO_C" >&6
18597 else
18598   ac_check_lib_save_LIBS=$LIBS
18599 LIBS="-lgcc  $LIBS"
18600 cat >conftest.$ac_ext <<_ACEOF
18601 /* confdefs.h.  */
18602 _ACEOF
18603 cat confdefs.h >>conftest.$ac_ext
18604 cat >>conftest.$ac_ext <<_ACEOF
18605 /* end confdefs.h.  */
18606
18607 /* Override any GCC internal prototype to avoid an error.
18608    Use char because int might match the return type of a GCC
18609    builtin and then its argument prototype would still apply.  */
18610 #ifdef __cplusplus
18611 extern "C"
18612 #endif
18613 char __lshrdi3 ();
18614 int
18615 main ()
18616 {
18617 return __lshrdi3 ();
18618   ;
18619   return 0;
18620 }
18621 _ACEOF
18622 rm -f conftest.$ac_objext conftest$ac_exeext
18623 if { (ac_try="$ac_link"
18624 case "(($ac_try" in
18625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18626   *) ac_try_echo=$ac_try;;
18627 esac
18628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18629   (eval "$ac_link") 2>conftest.er1
18630   ac_status=$?
18631   grep -v '^ *+' conftest.er1 >conftest.err
18632   rm -f conftest.er1
18633   cat conftest.err >&5
18634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635   (exit $ac_status); } &&
18636          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18637   { (case "(($ac_try" in
18638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18639   *) ac_try_echo=$ac_try;;
18640 esac
18641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18642   (eval "$ac_try") 2>&5
18643   ac_status=$?
18644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645   (exit $ac_status); }; } &&
18646          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18656   ac_cv_lib_gcc___lshrdi3=yes
18657 else
18658   echo "$as_me: failed program was:" >&5
18659 sed 's/^/| /' conftest.$ac_ext >&5
18660
18661         ac_cv_lib_gcc___lshrdi3=no
18662 fi
18663
18664 rm -f core conftest.err conftest.$ac_objext \
18665       conftest$ac_exeext conftest.$ac_ext
18666 LIBS=$ac_check_lib_save_LIBS
18667 fi
18668 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18669 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18670 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18671
18672 cat >>confdefs.h <<\_ACEOF
18673 #define HAVE___LSHRDI3 1
18674 _ACEOF
18675
18676 fi
18677
18678   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18679 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18680 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18681   echo $ECHO_N "(cached) $ECHO_C" >&6
18682 else
18683   ac_check_lib_save_LIBS=$LIBS
18684 LIBS="-lgcc  $LIBS"
18685 cat >conftest.$ac_ext <<_ACEOF
18686 /* confdefs.h.  */
18687 _ACEOF
18688 cat confdefs.h >>conftest.$ac_ext
18689 cat >>conftest.$ac_ext <<_ACEOF
18690 /* end confdefs.h.  */
18691
18692 /* Override any GCC internal prototype to avoid an error.
18693    Use char because int might match the return type of a GCC
18694    builtin and then its argument prototype would still apply.  */
18695 #ifdef __cplusplus
18696 extern "C"
18697 #endif
18698 char __moddi3 ();
18699 int
18700 main ()
18701 {
18702 return __moddi3 ();
18703   ;
18704   return 0;
18705 }
18706 _ACEOF
18707 rm -f conftest.$ac_objext conftest$ac_exeext
18708 if { (ac_try="$ac_link"
18709 case "(($ac_try" in
18710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18711   *) ac_try_echo=$ac_try;;
18712 esac
18713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18714   (eval "$ac_link") 2>conftest.er1
18715   ac_status=$?
18716   grep -v '^ *+' conftest.er1 >conftest.err
18717   rm -f conftest.er1
18718   cat conftest.err >&5
18719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720   (exit $ac_status); } &&
18721          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18722   { (case "(($ac_try" in
18723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18724   *) ac_try_echo=$ac_try;;
18725 esac
18726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18727   (eval "$ac_try") 2>&5
18728   ac_status=$?
18729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730   (exit $ac_status); }; } &&
18731          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18741   ac_cv_lib_gcc___moddi3=yes
18742 else
18743   echo "$as_me: failed program was:" >&5
18744 sed 's/^/| /' conftest.$ac_ext >&5
18745
18746         ac_cv_lib_gcc___moddi3=no
18747 fi
18748
18749 rm -f core conftest.err conftest.$ac_objext \
18750       conftest$ac_exeext conftest.$ac_ext
18751 LIBS=$ac_check_lib_save_LIBS
18752 fi
18753 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18754 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18755 if test $ac_cv_lib_gcc___moddi3 = yes; then
18756
18757 cat >>confdefs.h <<\_ACEOF
18758 #define HAVE___MODDI3 1
18759 _ACEOF
18760
18761 fi
18762
18763   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18764 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18765 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18766   echo $ECHO_N "(cached) $ECHO_C" >&6
18767 else
18768   ac_check_lib_save_LIBS=$LIBS
18769 LIBS="-lgcc  $LIBS"
18770 cat >conftest.$ac_ext <<_ACEOF
18771 /* confdefs.h.  */
18772 _ACEOF
18773 cat confdefs.h >>conftest.$ac_ext
18774 cat >>conftest.$ac_ext <<_ACEOF
18775 /* end confdefs.h.  */
18776
18777 /* Override any GCC internal prototype to avoid an error.
18778    Use char because int might match the return type of a GCC
18779    builtin and then its argument prototype would still apply.  */
18780 #ifdef __cplusplus
18781 extern "C"
18782 #endif
18783 char __udivdi3 ();
18784 int
18785 main ()
18786 {
18787 return __udivdi3 ();
18788   ;
18789   return 0;
18790 }
18791 _ACEOF
18792 rm -f conftest.$ac_objext conftest$ac_exeext
18793 if { (ac_try="$ac_link"
18794 case "(($ac_try" in
18795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18796   *) ac_try_echo=$ac_try;;
18797 esac
18798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18799   (eval "$ac_link") 2>conftest.er1
18800   ac_status=$?
18801   grep -v '^ *+' conftest.er1 >conftest.err
18802   rm -f conftest.er1
18803   cat conftest.err >&5
18804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805   (exit $ac_status); } &&
18806          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18807   { (case "(($ac_try" in
18808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18809   *) ac_try_echo=$ac_try;;
18810 esac
18811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18812   (eval "$ac_try") 2>&5
18813   ac_status=$?
18814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815   (exit $ac_status); }; } &&
18816          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18826   ac_cv_lib_gcc___udivdi3=yes
18827 else
18828   echo "$as_me: failed program was:" >&5
18829 sed 's/^/| /' conftest.$ac_ext >&5
18830
18831         ac_cv_lib_gcc___udivdi3=no
18832 fi
18833
18834 rm -f core conftest.err conftest.$ac_objext \
18835       conftest$ac_exeext conftest.$ac_ext
18836 LIBS=$ac_check_lib_save_LIBS
18837 fi
18838 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18839 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18840 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18841
18842 cat >>confdefs.h <<\_ACEOF
18843 #define HAVE___UDIVDI3 1
18844 _ACEOF
18845
18846 fi
18847
18848   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18849 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18850 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18851   echo $ECHO_N "(cached) $ECHO_C" >&6
18852 else
18853   ac_check_lib_save_LIBS=$LIBS
18854 LIBS="-lgcc  $LIBS"
18855 cat >conftest.$ac_ext <<_ACEOF
18856 /* confdefs.h.  */
18857 _ACEOF
18858 cat confdefs.h >>conftest.$ac_ext
18859 cat >>conftest.$ac_ext <<_ACEOF
18860 /* end confdefs.h.  */
18861
18862 /* Override any GCC internal prototype to avoid an error.
18863    Use char because int might match the return type of a GCC
18864    builtin and then its argument prototype would still apply.  */
18865 #ifdef __cplusplus
18866 extern "C"
18867 #endif
18868 char __umoddi3 ();
18869 int
18870 main ()
18871 {
18872 return __umoddi3 ();
18873   ;
18874   return 0;
18875 }
18876 _ACEOF
18877 rm -f conftest.$ac_objext conftest$ac_exeext
18878 if { (ac_try="$ac_link"
18879 case "(($ac_try" in
18880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18881   *) ac_try_echo=$ac_try;;
18882 esac
18883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18884   (eval "$ac_link") 2>conftest.er1
18885   ac_status=$?
18886   grep -v '^ *+' conftest.er1 >conftest.err
18887   rm -f conftest.er1
18888   cat conftest.err >&5
18889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890   (exit $ac_status); } &&
18891          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18892   { (case "(($ac_try" in
18893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18894   *) ac_try_echo=$ac_try;;
18895 esac
18896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18897   (eval "$ac_try") 2>&5
18898   ac_status=$?
18899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900   (exit $ac_status); }; } &&
18901          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18911   ac_cv_lib_gcc___umoddi3=yes
18912 else
18913   echo "$as_me: failed program was:" >&5
18914 sed 's/^/| /' conftest.$ac_ext >&5
18915
18916         ac_cv_lib_gcc___umoddi3=no
18917 fi
18918
18919 rm -f core conftest.err conftest.$ac_objext \
18920       conftest$ac_exeext conftest.$ac_ext
18921 LIBS=$ac_check_lib_save_LIBS
18922 fi
18923 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18924 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18925 if test $ac_cv_lib_gcc___umoddi3 = yes; then
18926
18927 cat >>confdefs.h <<\_ACEOF
18928 #define HAVE___UMODDI3 1
18929 _ACEOF
18930
18931 fi
18932
18933
18934   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18935 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18936 if test "${ac_cv_lib_gcc___main+set}" = set; then
18937   echo $ECHO_N "(cached) $ECHO_C" >&6
18938 else
18939   ac_check_lib_save_LIBS=$LIBS
18940 LIBS="-lgcc  $LIBS"
18941 cat >conftest.$ac_ext <<_ACEOF
18942 /* confdefs.h.  */
18943 _ACEOF
18944 cat confdefs.h >>conftest.$ac_ext
18945 cat >>conftest.$ac_ext <<_ACEOF
18946 /* end confdefs.h.  */
18947
18948 /* Override any GCC internal prototype to avoid an error.
18949    Use char because int might match the return type of a GCC
18950    builtin and then its argument prototype would still apply.  */
18951 #ifdef __cplusplus
18952 extern "C"
18953 #endif
18954 char __main ();
18955 int
18956 main ()
18957 {
18958 return __main ();
18959   ;
18960   return 0;
18961 }
18962 _ACEOF
18963 rm -f conftest.$ac_objext conftest$ac_exeext
18964 if { (ac_try="$ac_link"
18965 case "(($ac_try" in
18966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18967   *) ac_try_echo=$ac_try;;
18968 esac
18969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18970   (eval "$ac_link") 2>conftest.er1
18971   ac_status=$?
18972   grep -v '^ *+' conftest.er1 >conftest.err
18973   rm -f conftest.er1
18974   cat conftest.err >&5
18975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976   (exit $ac_status); } &&
18977          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18978   { (case "(($ac_try" in
18979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18980   *) ac_try_echo=$ac_try;;
18981 esac
18982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18983   (eval "$ac_try") 2>&5
18984   ac_status=$?
18985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986   (exit $ac_status); }; } &&
18987          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18997   ac_cv_lib_gcc___main=yes
18998 else
18999   echo "$as_me: failed program was:" >&5
19000 sed 's/^/| /' conftest.$ac_ext >&5
19001
19002         ac_cv_lib_gcc___main=no
19003 fi
19004
19005 rm -f core conftest.err conftest.$ac_objext \
19006       conftest$ac_exeext conftest.$ac_ext
19007 LIBS=$ac_check_lib_save_LIBS
19008 fi
19009 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19010 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19011 if test $ac_cv_lib_gcc___main = yes; then
19012
19013 cat >>confdefs.h <<\_ACEOF
19014 #define HAVE___MAIN 1
19015 _ACEOF
19016
19017 fi
19018
19019   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19020 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19021 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19022   echo $ECHO_N "(cached) $ECHO_C" >&6
19023 else
19024   ac_check_lib_save_LIBS=$LIBS
19025 LIBS="-lgcc  $LIBS"
19026 cat >conftest.$ac_ext <<_ACEOF
19027 /* confdefs.h.  */
19028 _ACEOF
19029 cat confdefs.h >>conftest.$ac_ext
19030 cat >>conftest.$ac_ext <<_ACEOF
19031 /* end confdefs.h.  */
19032
19033 /* Override any GCC internal prototype to avoid an error.
19034    Use char because int might match the return type of a GCC
19035    builtin and then its argument prototype would still apply.  */
19036 #ifdef __cplusplus
19037 extern "C"
19038 #endif
19039 char __cmpdi2 ();
19040 int
19041 main ()
19042 {
19043 return __cmpdi2 ();
19044   ;
19045   return 0;
19046 }
19047 _ACEOF
19048 rm -f conftest.$ac_objext conftest$ac_exeext
19049 if { (ac_try="$ac_link"
19050 case "(($ac_try" in
19051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19052   *) ac_try_echo=$ac_try;;
19053 esac
19054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19055   (eval "$ac_link") 2>conftest.er1
19056   ac_status=$?
19057   grep -v '^ *+' conftest.er1 >conftest.err
19058   rm -f conftest.er1
19059   cat conftest.err >&5
19060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061   (exit $ac_status); } &&
19062          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19063   { (case "(($ac_try" in
19064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19065   *) ac_try_echo=$ac_try;;
19066 esac
19067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19068   (eval "$ac_try") 2>&5
19069   ac_status=$?
19070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071   (exit $ac_status); }; } &&
19072          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19082   ac_cv_lib_gcc___cmpdi2=yes
19083 else
19084   echo "$as_me: failed program was:" >&5
19085 sed 's/^/| /' conftest.$ac_ext >&5
19086
19087         ac_cv_lib_gcc___cmpdi2=no
19088 fi
19089
19090 rm -f core conftest.err conftest.$ac_objext \
19091       conftest$ac_exeext conftest.$ac_ext
19092 LIBS=$ac_check_lib_save_LIBS
19093 fi
19094 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19095 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19096 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19097
19098 cat >>confdefs.h <<\_ACEOF
19099 #define HAVE___CMPDI2 1
19100 _ACEOF
19101
19102 fi
19103
19104 fi
19105
19106 if test "$llvm_cv_os_type" = "MingW" ; then
19107   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19108 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19109   cat >conftest.$ac_ext <<_ACEOF
19110 #include <windows.h>
19111 #include <imagehlp.h>
19112 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19113 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19114 _ACEOF
19115 rm -f conftest.$ac_objext
19116 if { (ac_try="$ac_compile"
19117 case "(($ac_try" in
19118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19119   *) ac_try_echo=$ac_try;;
19120 esac
19121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19122   (eval "$ac_compile") 2>conftest.er1
19123   ac_status=$?
19124   grep -v '^ *+' conftest.er1 >conftest.err
19125   rm -f conftest.er1
19126   cat conftest.err >&5
19127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128   (exit $ac_status); } &&
19129          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19130   { (case "(($ac_try" in
19131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19132   *) ac_try_echo=$ac_try;;
19133 esac
19134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19135   (eval "$ac_try") 2>&5
19136   ac_status=$?
19137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138   (exit $ac_status); }; } &&
19139          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19149
19150   { echo "$as_me:$LINENO: result: yes" >&5
19151 echo "${ECHO_T}yes" >&6; }
19152   llvm_cv_win32_elmcb_pcstr="PCSTR"
19153
19154 else
19155   echo "$as_me: failed program was:" >&5
19156 sed 's/^/| /' conftest.$ac_ext >&5
19157
19158
19159   { echo "$as_me:$LINENO: result: no" >&5
19160 echo "${ECHO_T}no" >&6; }
19161   llvm_cv_win32_elmcb_pcstr="PSTR"
19162
19163 fi
19164
19165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19166
19167 cat >>confdefs.h <<_ACEOF
19168 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19169 _ACEOF
19170
19171 fi
19172
19173
19174 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19175 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19176 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19177   echo $ECHO_N "(cached) $ECHO_C" >&6
19178 else
19179   ac_ext=cpp
19180 ac_cpp='$CXXCPP $CPPFLAGS'
19181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19184
19185    cat >conftest.$ac_ext <<_ACEOF
19186 /* confdefs.h.  */
19187 _ACEOF
19188 cat confdefs.h >>conftest.$ac_ext
19189 cat >>conftest.$ac_ext <<_ACEOF
19190 /* end confdefs.h.  */
19191 #include <math.h>
19192 int
19193 main ()
19194 {
19195 float f; isnan(f);
19196   ;
19197   return 0;
19198 }
19199 _ACEOF
19200 rm -f conftest.$ac_objext
19201 if { (ac_try="$ac_compile"
19202 case "(($ac_try" in
19203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19204   *) ac_try_echo=$ac_try;;
19205 esac
19206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19207   (eval "$ac_compile") 2>conftest.er1
19208   ac_status=$?
19209   grep -v '^ *+' conftest.er1 >conftest.err
19210   rm -f conftest.er1
19211   cat conftest.err >&5
19212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213   (exit $ac_status); } &&
19214          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19215   { (case "(($ac_try" in
19216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19217   *) ac_try_echo=$ac_try;;
19218 esac
19219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19220   (eval "$ac_try") 2>&5
19221   ac_status=$?
19222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223   (exit $ac_status); }; } &&
19224          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19234   ac_cv_func_isnan_in_math_h=yes
19235 else
19236   echo "$as_me: failed program was:" >&5
19237 sed 's/^/| /' conftest.$ac_ext >&5
19238
19239         ac_cv_func_isnan_in_math_h=no
19240 fi
19241
19242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19243   ac_ext=c
19244 ac_cpp='$CPP $CPPFLAGS'
19245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19248
19249 fi
19250 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19251 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19252
19253
19254 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19255
19256 cat >>confdefs.h <<\_ACEOF
19257 #define HAVE_ISNAN_IN_MATH_H 1
19258 _ACEOF
19259
19260 fi
19261
19262 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19263 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19264 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19265   echo $ECHO_N "(cached) $ECHO_C" >&6
19266 else
19267   ac_ext=cpp
19268 ac_cpp='$CXXCPP $CPPFLAGS'
19269 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19270 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19271 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19272
19273    cat >conftest.$ac_ext <<_ACEOF
19274 /* confdefs.h.  */
19275 _ACEOF
19276 cat confdefs.h >>conftest.$ac_ext
19277 cat >>conftest.$ac_ext <<_ACEOF
19278 /* end confdefs.h.  */
19279 #include <cmath>
19280 int
19281 main ()
19282 {
19283 float f; isnan(f);
19284   ;
19285   return 0;
19286 }
19287 _ACEOF
19288 rm -f conftest.$ac_objext
19289 if { (ac_try="$ac_compile"
19290 case "(($ac_try" in
19291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19292   *) ac_try_echo=$ac_try;;
19293 esac
19294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19295   (eval "$ac_compile") 2>conftest.er1
19296   ac_status=$?
19297   grep -v '^ *+' conftest.er1 >conftest.err
19298   rm -f conftest.er1
19299   cat conftest.err >&5
19300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301   (exit $ac_status); } &&
19302          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19303   { (case "(($ac_try" in
19304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305   *) ac_try_echo=$ac_try;;
19306 esac
19307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19308   (eval "$ac_try") 2>&5
19309   ac_status=$?
19310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311   (exit $ac_status); }; } &&
19312          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19322   ac_cv_func_isnan_in_cmath=yes
19323 else
19324   echo "$as_me: failed program was:" >&5
19325 sed 's/^/| /' conftest.$ac_ext >&5
19326
19327         ac_cv_func_isnan_in_cmath=no
19328 fi
19329
19330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19331   ac_ext=c
19332 ac_cpp='$CPP $CPPFLAGS'
19333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19336
19337 fi
19338 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19339 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19340
19341 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19342
19343 cat >>confdefs.h <<\_ACEOF
19344 #define HAVE_ISNAN_IN_CMATH 1
19345 _ACEOF
19346
19347 fi
19348
19349 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19350 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19351 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19352   echo $ECHO_N "(cached) $ECHO_C" >&6
19353 else
19354   ac_ext=cpp
19355 ac_cpp='$CXXCPP $CPPFLAGS'
19356 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19357 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19358 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19359
19360    cat >conftest.$ac_ext <<_ACEOF
19361 /* confdefs.h.  */
19362 _ACEOF
19363 cat confdefs.h >>conftest.$ac_ext
19364 cat >>conftest.$ac_ext <<_ACEOF
19365 /* end confdefs.h.  */
19366 #include <cmath>
19367 int
19368 main ()
19369 {
19370 float f; std::isnan(f);
19371   ;
19372   return 0;
19373 }
19374 _ACEOF
19375 rm -f conftest.$ac_objext
19376 if { (ac_try="$ac_compile"
19377 case "(($ac_try" in
19378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19379   *) ac_try_echo=$ac_try;;
19380 esac
19381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19382   (eval "$ac_compile") 2>conftest.er1
19383   ac_status=$?
19384   grep -v '^ *+' conftest.er1 >conftest.err
19385   rm -f conftest.er1
19386   cat conftest.err >&5
19387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388   (exit $ac_status); } &&
19389          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19390   { (case "(($ac_try" in
19391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19392   *) ac_try_echo=$ac_try;;
19393 esac
19394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19395   (eval "$ac_try") 2>&5
19396   ac_status=$?
19397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398   (exit $ac_status); }; } &&
19399          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19409   ac_cv_func_std_isnan_in_cmath=yes
19410 else
19411   echo "$as_me: failed program was:" >&5
19412 sed 's/^/| /' conftest.$ac_ext >&5
19413
19414         ac_cv_func_std_isnan_in_cmath=no
19415 fi
19416
19417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19418   ac_ext=c
19419 ac_cpp='$CPP $CPPFLAGS'
19420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19423
19424 fi
19425 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19426 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19427
19428 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19429
19430 cat >>confdefs.h <<\_ACEOF
19431 #define HAVE_STD_ISNAN_IN_CMATH 1
19432 _ACEOF
19433
19434 fi
19435
19436
19437 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19438 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19439 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19440   echo $ECHO_N "(cached) $ECHO_C" >&6
19441 else
19442   ac_ext=cpp
19443 ac_cpp='$CXXCPP $CPPFLAGS'
19444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19447
19448    cat >conftest.$ac_ext <<_ACEOF
19449 /* confdefs.h.  */
19450 _ACEOF
19451 cat confdefs.h >>conftest.$ac_ext
19452 cat >>conftest.$ac_ext <<_ACEOF
19453 /* end confdefs.h.  */
19454 #include <math.h>
19455 int
19456 main ()
19457 {
19458 float f; isinf(f);
19459   ;
19460   return 0;
19461 }
19462 _ACEOF
19463 rm -f conftest.$ac_objext
19464 if { (ac_try="$ac_compile"
19465 case "(($ac_try" in
19466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19467   *) ac_try_echo=$ac_try;;
19468 esac
19469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19470   (eval "$ac_compile") 2>conftest.er1
19471   ac_status=$?
19472   grep -v '^ *+' conftest.er1 >conftest.err
19473   rm -f conftest.er1
19474   cat conftest.err >&5
19475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476   (exit $ac_status); } &&
19477          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19478   { (case "(($ac_try" in
19479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19480   *) ac_try_echo=$ac_try;;
19481 esac
19482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19483   (eval "$ac_try") 2>&5
19484   ac_status=$?
19485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486   (exit $ac_status); }; } &&
19487          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19497   ac_cv_func_isinf_in_math_h=yes
19498 else
19499   echo "$as_me: failed program was:" >&5
19500 sed 's/^/| /' conftest.$ac_ext >&5
19501
19502         ac_cv_func_isinf_in_math_h=no
19503 fi
19504
19505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19506   ac_ext=c
19507 ac_cpp='$CPP $CPPFLAGS'
19508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19511
19512 fi
19513 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19514 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19515
19516 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19517
19518 cat >>confdefs.h <<\_ACEOF
19519 #define HAVE_ISINF_IN_MATH_H 1
19520 _ACEOF
19521
19522 fi
19523
19524 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19525 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19526 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19527   echo $ECHO_N "(cached) $ECHO_C" >&6
19528 else
19529   ac_ext=cpp
19530 ac_cpp='$CXXCPP $CPPFLAGS'
19531 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19532 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19533 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19534
19535    cat >conftest.$ac_ext <<_ACEOF
19536 /* confdefs.h.  */
19537 _ACEOF
19538 cat confdefs.h >>conftest.$ac_ext
19539 cat >>conftest.$ac_ext <<_ACEOF
19540 /* end confdefs.h.  */
19541 #include <cmath>
19542 int
19543 main ()
19544 {
19545 float f; isinf(f);
19546   ;
19547   return 0;
19548 }
19549 _ACEOF
19550 rm -f conftest.$ac_objext
19551 if { (ac_try="$ac_compile"
19552 case "(($ac_try" in
19553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19554   *) ac_try_echo=$ac_try;;
19555 esac
19556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19557   (eval "$ac_compile") 2>conftest.er1
19558   ac_status=$?
19559   grep -v '^ *+' conftest.er1 >conftest.err
19560   rm -f conftest.er1
19561   cat conftest.err >&5
19562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563   (exit $ac_status); } &&
19564          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19565   { (case "(($ac_try" in
19566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19567   *) ac_try_echo=$ac_try;;
19568 esac
19569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19570   (eval "$ac_try") 2>&5
19571   ac_status=$?
19572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573   (exit $ac_status); }; } &&
19574          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19584   ac_cv_func_isinf_in_cmath=yes
19585 else
19586   echo "$as_me: failed program was:" >&5
19587 sed 's/^/| /' conftest.$ac_ext >&5
19588
19589         ac_cv_func_isinf_in_cmath=no
19590 fi
19591
19592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19593   ac_ext=c
19594 ac_cpp='$CPP $CPPFLAGS'
19595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19598
19599 fi
19600 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19601 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19602
19603 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19604
19605 cat >>confdefs.h <<\_ACEOF
19606 #define HAVE_ISINF_IN_CMATH 1
19607 _ACEOF
19608
19609 fi
19610
19611 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19612 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19613 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19614   echo $ECHO_N "(cached) $ECHO_C" >&6
19615 else
19616   ac_ext=cpp
19617 ac_cpp='$CXXCPP $CPPFLAGS'
19618 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19619 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19620 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19621
19622    cat >conftest.$ac_ext <<_ACEOF
19623 /* confdefs.h.  */
19624 _ACEOF
19625 cat confdefs.h >>conftest.$ac_ext
19626 cat >>conftest.$ac_ext <<_ACEOF
19627 /* end confdefs.h.  */
19628 #include <cmath>
19629 int
19630 main ()
19631 {
19632 float f; std::isinf(f);
19633   ;
19634   return 0;
19635 }
19636 _ACEOF
19637 rm -f conftest.$ac_objext
19638 if { (ac_try="$ac_compile"
19639 case "(($ac_try" in
19640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19641   *) ac_try_echo=$ac_try;;
19642 esac
19643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19644   (eval "$ac_compile") 2>conftest.er1
19645   ac_status=$?
19646   grep -v '^ *+' conftest.er1 >conftest.err
19647   rm -f conftest.er1
19648   cat conftest.err >&5
19649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650   (exit $ac_status); } &&
19651          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19652   { (case "(($ac_try" in
19653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19654   *) ac_try_echo=$ac_try;;
19655 esac
19656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19657   (eval "$ac_try") 2>&5
19658   ac_status=$?
19659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660   (exit $ac_status); }; } &&
19661          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19671   ac_cv_func_std_isinf_in_cmath=yes
19672 else
19673   echo "$as_me: failed program was:" >&5
19674 sed 's/^/| /' conftest.$ac_ext >&5
19675
19676         ac_cv_func_std_isinf_in_cmath=no
19677 fi
19678
19679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19680   ac_ext=c
19681 ac_cpp='$CPP $CPPFLAGS'
19682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19685
19686 fi
19687 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19688 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19689
19690 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19691
19692 cat >>confdefs.h <<\_ACEOF
19693 #define HAVE_STD_ISINF_IN_CMATH 1
19694 _ACEOF
19695
19696 fi
19697
19698 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19699 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19700 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19701   echo $ECHO_N "(cached) $ECHO_C" >&6
19702 else
19703   ac_ext=cpp
19704 ac_cpp='$CXXCPP $CPPFLAGS'
19705 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19706 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19707 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19708
19709    cat >conftest.$ac_ext <<_ACEOF
19710 /* confdefs.h.  */
19711 _ACEOF
19712 cat confdefs.h >>conftest.$ac_ext
19713 cat >>conftest.$ac_ext <<_ACEOF
19714 /* end confdefs.h.  */
19715 #include <ieeefp.h>
19716 int
19717 main ()
19718 {
19719 float f; finite(f);
19720   ;
19721   return 0;
19722 }
19723 _ACEOF
19724 rm -f conftest.$ac_objext
19725 if { (ac_try="$ac_compile"
19726 case "(($ac_try" in
19727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19728   *) ac_try_echo=$ac_try;;
19729 esac
19730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19731   (eval "$ac_compile") 2>conftest.er1
19732   ac_status=$?
19733   grep -v '^ *+' conftest.er1 >conftest.err
19734   rm -f conftest.er1
19735   cat conftest.err >&5
19736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737   (exit $ac_status); } &&
19738          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19739   { (case "(($ac_try" in
19740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19741   *) ac_try_echo=$ac_try;;
19742 esac
19743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19744   (eval "$ac_try") 2>&5
19745   ac_status=$?
19746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747   (exit $ac_status); }; } &&
19748          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19758   ac_cv_func_finite_in_ieeefp_h=yes
19759 else
19760   echo "$as_me: failed program was:" >&5
19761 sed 's/^/| /' conftest.$ac_ext >&5
19762
19763         ac_cv_func_finite_in_ieeefp_h=no
19764 fi
19765
19766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19767   ac_ext=c
19768 ac_cpp='$CPP $CPPFLAGS'
19769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19772
19773 fi
19774 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19775 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19776
19777 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19778
19779 cat >>confdefs.h <<\_ACEOF
19780 #define HAVE_FINITE_IN_IEEEFP_H 1
19781 _ACEOF
19782
19783 fi
19784
19785
19786
19787 if test "$llvm_cv_platform_type" = "Unix" ; then
19788
19789
19790 for ac_header in stdlib.h unistd.h
19791 do
19792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19794   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19797   echo $ECHO_N "(cached) $ECHO_C" >&6
19798 fi
19799 ac_res=`eval echo '${'$as_ac_Header'}'`
19800                { echo "$as_me:$LINENO: result: $ac_res" >&5
19801 echo "${ECHO_T}$ac_res" >&6; }
19802 else
19803   # Is the header compilable?
19804 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19805 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19806 cat >conftest.$ac_ext <<_ACEOF
19807 /* confdefs.h.  */
19808 _ACEOF
19809 cat confdefs.h >>conftest.$ac_ext
19810 cat >>conftest.$ac_ext <<_ACEOF
19811 /* end confdefs.h.  */
19812 $ac_includes_default
19813 #include <$ac_header>
19814 _ACEOF
19815 rm -f conftest.$ac_objext
19816 if { (ac_try="$ac_compile"
19817 case "(($ac_try" in
19818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19819   *) ac_try_echo=$ac_try;;
19820 esac
19821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19822   (eval "$ac_compile") 2>conftest.er1
19823   ac_status=$?
19824   grep -v '^ *+' conftest.er1 >conftest.err
19825   rm -f conftest.er1
19826   cat conftest.err >&5
19827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828   (exit $ac_status); } &&
19829          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19830   { (case "(($ac_try" in
19831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19832   *) ac_try_echo=$ac_try;;
19833 esac
19834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19835   (eval "$ac_try") 2>&5
19836   ac_status=$?
19837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838   (exit $ac_status); }; } &&
19839          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19849   ac_header_compiler=yes
19850 else
19851   echo "$as_me: failed program was:" >&5
19852 sed 's/^/| /' conftest.$ac_ext >&5
19853
19854         ac_header_compiler=no
19855 fi
19856
19857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19858 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19859 echo "${ECHO_T}$ac_header_compiler" >&6; }
19860
19861 # Is the header present?
19862 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19863 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19864 cat >conftest.$ac_ext <<_ACEOF
19865 /* confdefs.h.  */
19866 _ACEOF
19867 cat confdefs.h >>conftest.$ac_ext
19868 cat >>conftest.$ac_ext <<_ACEOF
19869 /* end confdefs.h.  */
19870 #include <$ac_header>
19871 _ACEOF
19872 if { (ac_try="$ac_cpp conftest.$ac_ext"
19873 case "(($ac_try" in
19874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19875   *) ac_try_echo=$ac_try;;
19876 esac
19877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19878   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19879   ac_status=$?
19880   grep -v '^ *+' conftest.er1 >conftest.err
19881   rm -f conftest.er1
19882   cat conftest.err >&5
19883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884   (exit $ac_status); } >/dev/null; then
19885   if test -s conftest.err; then
19886     ac_cpp_err=$ac_c_preproc_warn_flag
19887     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19888   else
19889     ac_cpp_err=
19890   fi
19891 else
19892   ac_cpp_err=yes
19893 fi
19894 if test -z "$ac_cpp_err"; then
19895   ac_header_preproc=yes
19896 else
19897   echo "$as_me: failed program was:" >&5
19898 sed 's/^/| /' conftest.$ac_ext >&5
19899
19900   ac_header_preproc=no
19901 fi
19902
19903 rm -f conftest.err conftest.$ac_ext
19904 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19905 echo "${ECHO_T}$ac_header_preproc" >&6; }
19906
19907 # So?  What about this header?
19908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19909   yes:no: )
19910     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19912     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19913 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19914     ac_header_preproc=yes
19915     ;;
19916   no:yes:* )
19917     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19918 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19919     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19920 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19921     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19922 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19923     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19924 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19925     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19927     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19928 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19929     ( cat <<\_ASBOX
19930 ## ------------------------------ ##
19931 ## Report this to bugs@yourdomain ##
19932 ## ------------------------------ ##
19933 _ASBOX
19934      ) | sed "s/^/$as_me: WARNING:     /" >&2
19935     ;;
19936 esac
19937 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19940   echo $ECHO_N "(cached) $ECHO_C" >&6
19941 else
19942   eval "$as_ac_Header=\$ac_header_preproc"
19943 fi
19944 ac_res=`eval echo '${'$as_ac_Header'}'`
19945                { echo "$as_me:$LINENO: result: $ac_res" >&5
19946 echo "${ECHO_T}$ac_res" >&6; }
19947
19948 fi
19949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19950   cat >>confdefs.h <<_ACEOF
19951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19952 _ACEOF
19953
19954 fi
19955
19956 done
19957
19958
19959 for ac_func in getpagesize
19960 do
19961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19962 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19964 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19965   echo $ECHO_N "(cached) $ECHO_C" >&6
19966 else
19967   cat >conftest.$ac_ext <<_ACEOF
19968 /* confdefs.h.  */
19969 _ACEOF
19970 cat confdefs.h >>conftest.$ac_ext
19971 cat >>conftest.$ac_ext <<_ACEOF
19972 /* end confdefs.h.  */
19973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19974    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19975 #define $ac_func innocuous_$ac_func
19976
19977 /* System header to define __stub macros and hopefully few prototypes,
19978     which can conflict with char $ac_func (); below.
19979     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19980     <limits.h> exists even on freestanding compilers.  */
19981
19982 #ifdef __STDC__
19983 # include <limits.h>
19984 #else
19985 # include <assert.h>
19986 #endif
19987
19988 #undef $ac_func
19989
19990 /* Override any GCC internal prototype to avoid an error.
19991    Use char because int might match the return type of a GCC
19992    builtin and then its argument prototype would still apply.  */
19993 #ifdef __cplusplus
19994 extern "C"
19995 #endif
19996 char $ac_func ();
19997 /* The GNU C library defines this for functions which it implements
19998     to always fail with ENOSYS.  Some functions are actually named
19999     something starting with __ and the normal name is an alias.  */
20000 #if defined __stub_$ac_func || defined __stub___$ac_func
20001 choke me
20002 #endif
20003
20004 int
20005 main ()
20006 {
20007 return $ac_func ();
20008   ;
20009   return 0;
20010 }
20011 _ACEOF
20012 rm -f conftest.$ac_objext conftest$ac_exeext
20013 if { (ac_try="$ac_link"
20014 case "(($ac_try" in
20015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20016   *) ac_try_echo=$ac_try;;
20017 esac
20018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20019   (eval "$ac_link") 2>conftest.er1
20020   ac_status=$?
20021   grep -v '^ *+' conftest.er1 >conftest.err
20022   rm -f conftest.er1
20023   cat conftest.err >&5
20024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025   (exit $ac_status); } &&
20026          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20027   { (case "(($ac_try" in
20028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20029   *) ac_try_echo=$ac_try;;
20030 esac
20031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20032   (eval "$ac_try") 2>&5
20033   ac_status=$?
20034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035   (exit $ac_status); }; } &&
20036          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
20046   eval "$as_ac_var=yes"
20047 else
20048   echo "$as_me: failed program was:" >&5
20049 sed 's/^/| /' conftest.$ac_ext >&5
20050
20051         eval "$as_ac_var=no"
20052 fi
20053
20054 rm -f core conftest.err conftest.$ac_objext \
20055       conftest$ac_exeext conftest.$ac_ext
20056 fi
20057 ac_res=`eval echo '${'$as_ac_var'}'`
20058                { echo "$as_me:$LINENO: result: $ac_res" >&5
20059 echo "${ECHO_T}$ac_res" >&6; }
20060 if test `eval echo '${'$as_ac_var'}'` = yes; then
20061   cat >>confdefs.h <<_ACEOF
20062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20063 _ACEOF
20064
20065 fi
20066 done
20067
20068 { echo "$as_me:$LINENO: checking for working mmap" >&5
20069 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20070 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20071   echo $ECHO_N "(cached) $ECHO_C" >&6
20072 else
20073   if test "$cross_compiling" = yes; then
20074   ac_cv_func_mmap_fixed_mapped=no
20075 else
20076   cat >conftest.$ac_ext <<_ACEOF
20077 /* confdefs.h.  */
20078 _ACEOF
20079 cat confdefs.h >>conftest.$ac_ext
20080 cat >>conftest.$ac_ext <<_ACEOF
20081 /* end confdefs.h.  */
20082 $ac_includes_default
20083 /* malloc might have been renamed as rpl_malloc. */
20084 #undef malloc
20085
20086 /* Thanks to Mike Haertel and Jim Avera for this test.
20087    Here is a matrix of mmap possibilities:
20088         mmap private not fixed
20089         mmap private fixed at somewhere currently unmapped
20090         mmap private fixed at somewhere already mapped
20091         mmap shared not fixed
20092         mmap shared fixed at somewhere currently unmapped
20093         mmap shared fixed at somewhere already mapped
20094    For private mappings, we should verify that changes cannot be read()
20095    back from the file, nor mmap's back from the file at a different
20096    address.  (There have been systems where private was not correctly
20097    implemented like the infamous i386 svr4.0, and systems where the
20098    VM page cache was not coherent with the file system buffer cache
20099    like early versions of FreeBSD and possibly contemporary NetBSD.)
20100    For shared mappings, we should conversely verify that changes get
20101    propagated back to all the places they're supposed to be.
20102
20103    Grep wants private fixed already mapped.
20104    The main things grep needs to know about mmap are:
20105    * does it exist and is it safe to write into the mmap'd area
20106    * how to use it (BSD variants)  */
20107
20108 #include <fcntl.h>
20109 #include <sys/mman.h>
20110
20111 #if !STDC_HEADERS && !HAVE_STDLIB_H
20112 char *malloc ();
20113 #endif
20114
20115 /* This mess was copied from the GNU getpagesize.h.  */
20116 #if !HAVE_GETPAGESIZE
20117 /* Assume that all systems that can run configure have sys/param.h.  */
20118 # if !HAVE_SYS_PARAM_H
20119 #  define HAVE_SYS_PARAM_H 1
20120 # endif
20121
20122 # ifdef _SC_PAGESIZE
20123 #  define getpagesize() sysconf(_SC_PAGESIZE)
20124 # else /* no _SC_PAGESIZE */
20125 #  if HAVE_SYS_PARAM_H
20126 #   include <sys/param.h>
20127 #   ifdef EXEC_PAGESIZE
20128 #    define getpagesize() EXEC_PAGESIZE
20129 #   else /* no EXEC_PAGESIZE */
20130 #    ifdef NBPG
20131 #     define getpagesize() NBPG * CLSIZE
20132 #     ifndef CLSIZE
20133 #      define CLSIZE 1
20134 #     endif /* no CLSIZE */
20135 #    else /* no NBPG */
20136 #     ifdef NBPC
20137 #      define getpagesize() NBPC
20138 #     else /* no NBPC */
20139 #      ifdef PAGESIZE
20140 #       define getpagesize() PAGESIZE
20141 #      endif /* PAGESIZE */
20142 #     endif /* no NBPC */
20143 #    endif /* no NBPG */
20144 #   endif /* no EXEC_PAGESIZE */
20145 #  else /* no HAVE_SYS_PARAM_H */
20146 #   define getpagesize() 8192   /* punt totally */
20147 #  endif /* no HAVE_SYS_PARAM_H */
20148 # endif /* no _SC_PAGESIZE */
20149
20150 #endif /* no HAVE_GETPAGESIZE */
20151
20152 int
20153 main ()
20154 {
20155   char *data, *data2, *data3;
20156   int i, pagesize;
20157   int fd;
20158
20159   pagesize = getpagesize ();
20160
20161   /* First, make a file with some known garbage in it. */
20162   data = (char *) malloc (pagesize);
20163   if (!data)
20164     return 1;
20165   for (i = 0; i < pagesize; ++i)
20166     *(data + i) = rand ();
20167   umask (0);
20168   fd = creat ("conftest.mmap", 0600);
20169   if (fd < 0)
20170     return 1;
20171   if (write (fd, data, pagesize) != pagesize)
20172     return 1;
20173   close (fd);
20174
20175   /* Next, try to mmap the file at a fixed address which already has
20176      something else allocated at it.  If we can, also make sure that
20177      we see the same garbage.  */
20178   fd = open ("conftest.mmap", O_RDWR);
20179   if (fd < 0)
20180     return 1;
20181   data2 = (char *) malloc (2 * pagesize);
20182   if (!data2)
20183     return 1;
20184   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20185   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20186                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20187     return 1;
20188   for (i = 0; i < pagesize; ++i)
20189     if (*(data + i) != *(data2 + i))
20190       return 1;
20191
20192   /* Finally, make sure that changes to the mapped area do not
20193      percolate back to the file as seen by read().  (This is a bug on
20194      some variants of i386 svr4.0.)  */
20195   for (i = 0; i < pagesize; ++i)
20196     *(data2 + i) = *(data2 + i) + 1;
20197   data3 = (char *) malloc (pagesize);
20198   if (!data3)
20199     return 1;
20200   if (read (fd, data3, pagesize) != pagesize)
20201     return 1;
20202   for (i = 0; i < pagesize; ++i)
20203     if (*(data + i) != *(data3 + i))
20204       return 1;
20205   close (fd);
20206   return 0;
20207 }
20208 _ACEOF
20209 rm -f conftest$ac_exeext
20210 if { (ac_try="$ac_link"
20211 case "(($ac_try" in
20212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20213   *) ac_try_echo=$ac_try;;
20214 esac
20215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20216   (eval "$ac_link") 2>&5
20217   ac_status=$?
20218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20220   { (case "(($ac_try" in
20221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222   *) ac_try_echo=$ac_try;;
20223 esac
20224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20225   (eval "$ac_try") 2>&5
20226   ac_status=$?
20227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228   (exit $ac_status); }; }; then
20229   ac_cv_func_mmap_fixed_mapped=yes
20230 else
20231   echo "$as_me: program exited with status $ac_status" >&5
20232 echo "$as_me: failed program was:" >&5
20233 sed 's/^/| /' conftest.$ac_ext >&5
20234
20235 ( exit $ac_status )
20236 ac_cv_func_mmap_fixed_mapped=no
20237 fi
20238 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20239 fi
20240
20241
20242 fi
20243 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20244 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20245 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20246
20247 cat >>confdefs.h <<\_ACEOF
20248 #define HAVE_MMAP 1
20249 _ACEOF
20250
20251 fi
20252 rm -f conftest.mmap
20253
20254   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20255 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20256 if test "${ac_cv_func_mmap_file+set}" = set; then
20257   echo $ECHO_N "(cached) $ECHO_C" >&6
20258 else
20259    ac_ext=c
20260 ac_cpp='$CPP $CPPFLAGS'
20261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20264
20265   if test "$cross_compiling" = yes; then
20266   ac_cv_func_mmap_file=no
20267 else
20268   cat >conftest.$ac_ext <<_ACEOF
20269
20270     /* confdefs.h.  */
20271 _ACEOF
20272 cat confdefs.h >>conftest.$ac_ext
20273 cat >>conftest.$ac_ext <<_ACEOF
20274 /* end confdefs.h.  */
20275
20276 #include <sys/types.h>
20277 #include <sys/mman.h>
20278 #include <fcntl.h>
20279
20280 int
20281 main ()
20282 {
20283
20284   int fd;
20285   fd = creat ("foo",0777);
20286   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20287   unlink ("foo");
20288   return (fd != (int) MAP_FAILED);
20289   ;
20290   return 0;
20291 }
20292 _ACEOF
20293 rm -f conftest$ac_exeext
20294 if { (ac_try="$ac_link"
20295 case "(($ac_try" in
20296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20297   *) ac_try_echo=$ac_try;;
20298 esac
20299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20300   (eval "$ac_link") 2>&5
20301   ac_status=$?
20302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20304   { (case "(($ac_try" in
20305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20306   *) ac_try_echo=$ac_try;;
20307 esac
20308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20309   (eval "$ac_try") 2>&5
20310   ac_status=$?
20311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312   (exit $ac_status); }; }; then
20313   ac_cv_func_mmap_file=yes
20314 else
20315   echo "$as_me: program exited with status $ac_status" >&5
20316 echo "$as_me: failed program was:" >&5
20317 sed 's/^/| /' conftest.$ac_ext >&5
20318
20319 ( exit $ac_status )
20320 ac_cv_func_mmap_file=no
20321 fi
20322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20323 fi
20324
20325
20326   ac_ext=c
20327 ac_cpp='$CPP $CPPFLAGS'
20328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20331
20332
20333 fi
20334 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20335 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20336 if test "$ac_cv_func_mmap_file" = yes; then
20337
20338 cat >>confdefs.h <<\_ACEOF
20339 #define HAVE_MMAP_FILE
20340 _ACEOF
20341
20342    MMAP_FILE=yes
20343
20344 fi
20345
20346   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20347 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20348 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20349   echo $ECHO_N "(cached) $ECHO_C" >&6
20350 else
20351   if test "$llvm_cv_os_type" = "Interix" ; then
20352    ac_cv_need_dev_zero_for_mmap=yes
20353  else
20354    ac_cv_need_dev_zero_for_mmap=no
20355  fi
20356
20357 fi
20358 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20359 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20360 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20361
20362 cat >>confdefs.h <<\_ACEOF
20363 #define NEED_DEV_ZERO_FOR_MMAP 1
20364 _ACEOF
20365
20366 fi
20367
20368   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20369   then
20370     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20371 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20372   fi
20373   if test "$ac_cv_func_mmap_file" = "no"
20374   then
20375     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20376 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20377   fi
20378 fi
20379
20380 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20381 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20382 ac_ext=cpp
20383 ac_cpp='$CXXCPP $CPPFLAGS'
20384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20387
20388 cat >conftest.$ac_ext <<_ACEOF
20389 /* confdefs.h.  */
20390 _ACEOF
20391 cat confdefs.h >>conftest.$ac_ext
20392 cat >>conftest.$ac_ext <<_ACEOF
20393 /* end confdefs.h.  */
20394 int main() {
20395         volatile unsigned long val = 1;
20396         __sync_synchronize();
20397         __sync_val_compare_and_swap(&val, 1, 0);
20398         __sync_add_and_fetch(&val, 1);
20399         __sync_sub_and_fetch(&val, 1);
20400         return 0;
20401       }
20402
20403 _ACEOF
20404 rm -f conftest.$ac_objext conftest$ac_exeext
20405 if { (ac_try="$ac_link"
20406 case "(($ac_try" in
20407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20408   *) ac_try_echo=$ac_try;;
20409 esac
20410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20411   (eval "$ac_link") 2>conftest.er1
20412   ac_status=$?
20413   grep -v '^ *+' conftest.er1 >conftest.err
20414   rm -f conftest.er1
20415   cat conftest.err >&5
20416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417   (exit $ac_status); } &&
20418          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20419   { (case "(($ac_try" in
20420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20421   *) ac_try_echo=$ac_try;;
20422 esac
20423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20424   (eval "$ac_try") 2>&5
20425   ac_status=$?
20426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427   (exit $ac_status); }; } &&
20428          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
20438   ac_ext=c
20439 ac_cpp='$CPP $CPPFLAGS'
20440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20443
20444   { echo "$as_me:$LINENO: result: yes" >&5
20445 echo "${ECHO_T}yes" >&6; }
20446
20447 cat >>confdefs.h <<\_ACEOF
20448 #define LLVM_HAS_ATOMICS 1
20449 _ACEOF
20450
20451 else
20452   echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.$ac_ext >&5
20454
20455         { echo "$as_me:$LINENO: result: no" >&5
20456 echo "${ECHO_T}no" >&6; }
20457
20458 cat >>confdefs.h <<\_ACEOF
20459 #define LLVM_HAS_ATOMICS 0
20460 _ACEOF
20461
20462   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20463 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20464 fi
20465
20466 rm -f core conftest.err conftest.$ac_objext \
20467       conftest$ac_exeext conftest.$ac_ext
20468
20469
20470 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20471   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20472 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20473 if test "${llvm_cv_linux_mixed+set}" = set; then
20474   echo $ECHO_N "(cached) $ECHO_C" >&6
20475 else
20476    ac_ext=c
20477 ac_cpp='$CPP $CPPFLAGS'
20478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20481
20482   cat >conftest.$ac_ext <<_ACEOF
20483 /* confdefs.h.  */
20484 _ACEOF
20485 cat confdefs.h >>conftest.$ac_ext
20486 cat >>conftest.$ac_ext <<_ACEOF
20487 /* end confdefs.h.  */
20488 #ifndef __x86_64__
20489        error: Not x86-64 even if uname says so!
20490       #endif
20491
20492 int
20493 main ()
20494 {
20495
20496   ;
20497   return 0;
20498 }
20499 _ACEOF
20500 rm -f conftest.$ac_objext
20501 if { (ac_try="$ac_compile"
20502 case "(($ac_try" in
20503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20504   *) ac_try_echo=$ac_try;;
20505 esac
20506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20507   (eval "$ac_compile") 2>conftest.er1
20508   ac_status=$?
20509   grep -v '^ *+' conftest.er1 >conftest.err
20510   rm -f conftest.er1
20511   cat conftest.err >&5
20512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513   (exit $ac_status); } &&
20514          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20515   { (case "(($ac_try" in
20516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20517   *) ac_try_echo=$ac_try;;
20518 esac
20519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20520   (eval "$ac_try") 2>&5
20521   ac_status=$?
20522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523   (exit $ac_status); }; } &&
20524          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20534   llvm_cv_linux_mixed=no
20535 else
20536   echo "$as_me: failed program was:" >&5
20537 sed 's/^/| /' conftest.$ac_ext >&5
20538
20539         llvm_cv_linux_mixed=yes
20540 fi
20541
20542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20543   ac_ext=c
20544 ac_cpp='$CPP $CPPFLAGS'
20545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20548
20549
20550 fi
20551 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20552 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20553
20554   if test "$llvm_cv_linux_mixed" = "yes"; then
20555     llvm_cv_target_arch="x86"
20556     ARCH="x86"
20557   fi
20558 fi
20559
20560
20561 for ac_func in __dso_handle
20562 do
20563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20564 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20566 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20567   echo $ECHO_N "(cached) $ECHO_C" >&6
20568 else
20569   cat >conftest.$ac_ext <<_ACEOF
20570 /* confdefs.h.  */
20571 _ACEOF
20572 cat confdefs.h >>conftest.$ac_ext
20573 cat >>conftest.$ac_ext <<_ACEOF
20574 /* end confdefs.h.  */
20575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20576    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20577 #define $ac_func innocuous_$ac_func
20578
20579 /* System header to define __stub macros and hopefully few prototypes,
20580     which can conflict with char $ac_func (); below.
20581     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20582     <limits.h> exists even on freestanding compilers.  */
20583
20584 #ifdef __STDC__
20585 # include <limits.h>
20586 #else
20587 # include <assert.h>
20588 #endif
20589
20590 #undef $ac_func
20591
20592 /* Override any GCC internal prototype to avoid an error.
20593    Use char because int might match the return type of a GCC
20594    builtin and then its argument prototype would still apply.  */
20595 #ifdef __cplusplus
20596 extern "C"
20597 #endif
20598 char $ac_func ();
20599 /* The GNU C library defines this for functions which it implements
20600     to always fail with ENOSYS.  Some functions are actually named
20601     something starting with __ and the normal name is an alias.  */
20602 #if defined __stub_$ac_func || defined __stub___$ac_func
20603 choke me
20604 #endif
20605
20606 int
20607 main ()
20608 {
20609 return $ac_func ();
20610   ;
20611   return 0;
20612 }
20613 _ACEOF
20614 rm -f conftest.$ac_objext conftest$ac_exeext
20615 if { (ac_try="$ac_link"
20616 case "(($ac_try" in
20617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20618   *) ac_try_echo=$ac_try;;
20619 esac
20620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20621   (eval "$ac_link") 2>conftest.er1
20622   ac_status=$?
20623   grep -v '^ *+' conftest.er1 >conftest.err
20624   rm -f conftest.er1
20625   cat conftest.err >&5
20626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627   (exit $ac_status); } &&
20628          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20629   { (case "(($ac_try" in
20630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20631   *) ac_try_echo=$ac_try;;
20632 esac
20633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20634   (eval "$ac_try") 2>&5
20635   ac_status=$?
20636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637   (exit $ac_status); }; } &&
20638          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
20648   eval "$as_ac_var=yes"
20649 else
20650   echo "$as_me: failed program was:" >&5
20651 sed 's/^/| /' conftest.$ac_ext >&5
20652
20653         eval "$as_ac_var=no"
20654 fi
20655
20656 rm -f core conftest.err conftest.$ac_objext \
20657       conftest$ac_exeext conftest.$ac_ext
20658 fi
20659 ac_res=`eval echo '${'$as_ac_var'}'`
20660                { echo "$as_me:$LINENO: result: $ac_res" >&5
20661 echo "${ECHO_T}$ac_res" >&6; }
20662 if test `eval echo '${'$as_ac_var'}'` = yes; then
20663   cat >>confdefs.h <<_ACEOF
20664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20665 _ACEOF
20666
20667 fi
20668 done
20669
20670
20671 SHLIBEXT=$libltdl_cv_shlibext
20672
20673
20674 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20675
20676
20677 # Translate the various configuration directories and other basic
20678 # information into substitutions that will end up in Makefile.config.in
20679 # that these configured values can be used by the makefiles
20680 if test "${prefix}" = "NONE" ; then
20681   prefix="/usr/local"
20682 fi
20683 eval LLVM_PREFIX="${prefix}";
20684 eval LLVM_BINDIR="${prefix}/bin";
20685 eval LLVM_DATADIR="${prefix}/share/llvm";
20686 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20687 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20688 eval LLVM_INCLUDEDIR="${prefix}/include";
20689 eval LLVM_INFODIR="${prefix}/info";
20690 eval LLVM_MANDIR="${prefix}/man";
20691 LLVM_CONFIGTIME=`date`
20692
20693
20694
20695
20696
20697
20698
20699
20700
20701
20702 # Place the various directores into the config.h file as #defines so that we
20703 # can know about the installation paths within LLVM.
20704
20705 cat >>confdefs.h <<_ACEOF
20706 #define LLVM_PREFIX "$LLVM_PREFIX"
20707 _ACEOF
20708
20709
20710 cat >>confdefs.h <<_ACEOF
20711 #define LLVM_BINDIR "$LLVM_BINDIR"
20712 _ACEOF
20713
20714
20715 cat >>confdefs.h <<_ACEOF
20716 #define LLVM_DATADIR "$LLVM_DATADIR"
20717 _ACEOF
20718
20719
20720 cat >>confdefs.h <<_ACEOF
20721 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20722 _ACEOF
20723
20724
20725 cat >>confdefs.h <<_ACEOF
20726 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20727 _ACEOF
20728
20729
20730 cat >>confdefs.h <<_ACEOF
20731 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20732 _ACEOF
20733
20734
20735 cat >>confdefs.h <<_ACEOF
20736 #define LLVM_INFODIR "$LLVM_INFODIR"
20737 _ACEOF
20738
20739
20740 cat >>confdefs.h <<_ACEOF
20741 #define LLVM_MANDIR "$LLVM_MANDIR"
20742 _ACEOF
20743
20744
20745 cat >>confdefs.h <<_ACEOF
20746 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20747 _ACEOF
20748
20749
20750 cat >>confdefs.h <<_ACEOF
20751 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20752 _ACEOF
20753
20754
20755 # Determine which bindings to build.
20756 if test "$BINDINGS_TO_BUILD" = auto ; then
20757   BINDINGS_TO_BUILD=""
20758   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20759     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20760   fi
20761 fi
20762 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20763
20764
20765 # This isn't really configurey, but it avoids having to repeat the list in
20766 # other files.
20767 ALL_BINDINGS=ocaml
20768
20769
20770 # Do any work necessary to ensure that bindings have what they need.
20771 binding_prereqs_failed=0
20772 for a_binding in $BINDINGS_TO_BUILD ; do
20773   case "$a_binding" in
20774   ocaml)
20775     if test "x$OCAMLC" = x ; then
20776       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20777 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20778       binding_prereqs_failed=1
20779     fi
20780     if test "x$OCAMLDEP" = x ; then
20781       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20782 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20783       binding_prereqs_failed=1
20784     fi
20785     if test "x$OCAMLOPT" = x ; then
20786       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20787 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20788           fi
20789     if test "x$with_ocaml_libdir" != xauto ; then
20790       OCAML_LIBDIR=$with_ocaml_libdir
20791
20792     else
20793       ocaml_stdlib="`"$OCAMLC" -where`"
20794       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20795       then
20796         # ocaml stdlib is beneath our prefix; use stdlib
20797         OCAML_LIBDIR=$ocaml_stdlib
20798
20799       else
20800         # ocaml stdlib is outside our prefix; use libdir/ocaml
20801         OCAML_LIBDIR=${prefix}/lib/ocaml
20802
20803       fi
20804     fi
20805     ;;
20806   esac
20807 done
20808 if test "$binding_prereqs_failed" = 1 ; then
20809   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20810 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20811    { (exit 1); exit 1; }; }
20812 fi
20813
20814 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20815 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20816 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20817   echo $ECHO_N "(cached) $ECHO_C" >&6
20818 else
20819    ac_ext=cpp
20820 ac_cpp='$CXXCPP $CPPFLAGS'
20821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20824
20825   oldcxxflags="$CXXFLAGS"
20826   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
20827   cat >conftest.$ac_ext <<_ACEOF
20828 /* confdefs.h.  */
20829 _ACEOF
20830 cat confdefs.h >>conftest.$ac_ext
20831 cat >>conftest.$ac_ext <<_ACEOF
20832 /* end confdefs.h.  */
20833 template <typename T> struct X { void __attribute__((noinline)) f() {} };
20834 int
20835 main ()
20836 {
20837 X<int>().f();
20838   ;
20839   return 0;
20840 }
20841 _ACEOF
20842 rm -f conftest.$ac_objext
20843 if { (ac_try="$ac_compile"
20844 case "(($ac_try" in
20845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20846   *) ac_try_echo=$ac_try;;
20847 esac
20848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20849   (eval "$ac_compile") 2>conftest.er1
20850   ac_status=$?
20851   grep -v '^ *+' conftest.er1 >conftest.err
20852   rm -f conftest.er1
20853   cat conftest.err >&5
20854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855   (exit $ac_status); } &&
20856          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20857   { (case "(($ac_try" in
20858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20859   *) ac_try_echo=$ac_try;;
20860 esac
20861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20862   (eval "$ac_try") 2>&5
20863   ac_status=$?
20864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865   (exit $ac_status); }; } &&
20866          { ac_try='test -s conftest.$ac_objext'
20867   { (case "(($ac_try" in
20868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20869   *) ac_try_echo=$ac_try;;
20870 esac
20871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20872   (eval "$ac_try") 2>&5
20873   ac_status=$?
20874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875   (exit $ac_status); }; }; then
20876   llvm_cv_cxx_visibility_inlines_hidden=yes
20877 else
20878   echo "$as_me: failed program was:" >&5
20879 sed 's/^/| /' conftest.$ac_ext >&5
20880
20881         llvm_cv_cxx_visibility_inlines_hidden=no
20882 fi
20883
20884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20885   CXXFLAGS="$oldcxxflags"
20886   ac_ext=c
20887 ac_cpp='$CPP $CPPFLAGS'
20888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20891
20892
20893 fi
20894 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20895 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20896 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20897   ENABLE_VISIBILITY_INLINES_HIDDEN=1
20898
20899 else
20900   ENABLE_VISIBILITY_INLINES_HIDDEN=0
20901
20902 fi
20903
20904
20905 if test "$llvm_cv_link_use_r" = "yes" ; then
20906   RPATH="-Wl,-R"
20907 else
20908   RPATH="-Wl,-rpath"
20909 fi
20910
20911
20912 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20913   RDYNAMIC="-Wl,-export-dynamic"
20914 else
20915   RDYNAMIC=""
20916 fi
20917
20918
20919
20920
20921 ac_config_files="$ac_config_files Makefile.common"
20922
20923 ac_config_files="$ac_config_files Makefile.llvm.config"
20924
20925
20926 ac_config_commands="$ac_config_commands Makefile"
20927
20928
20929 ac_config_commands="$ac_config_commands lib/Makefile"
20930
20931
20932 ac_config_commands="$ac_config_commands lib/sample/Makefile"
20933
20934
20935 ac_config_commands="$ac_config_commands tools/Makefile"
20936
20937
20938 ac_config_commands="$ac_config_commands tools/sample/Makefile"
20939
20940
20941
20942 cat >confcache <<\_ACEOF
20943 # This file is a shell script that caches the results of configure
20944 # tests run on this system so they can be shared between configure
20945 # scripts and configure runs, see configure's option --config-cache.
20946 # It is not useful on other systems.  If it contains results you don't
20947 # want to keep, you may remove or edit it.
20948 #
20949 # config.status only pays attention to the cache file if you give it
20950 # the --recheck option to rerun configure.
20951 #
20952 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20953 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20954 # following values.
20955
20956 _ACEOF
20957
20958 # The following way of writing the cache mishandles newlines in values,
20959 # but we know of no workaround that is simple, portable, and efficient.
20960 # So, we kill variables containing newlines.
20961 # Ultrix sh set writes to stderr and can't be redirected directly,
20962 # and sets the high bit in the cache file unless we assign to the vars.
20963 (
20964   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20965     eval ac_val=\$$ac_var
20966     case $ac_val in #(
20967     *${as_nl}*)
20968       case $ac_var in #(
20969       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20970 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20971       esac
20972       case $ac_var in #(
20973       _ | IFS | as_nl) ;; #(
20974       *) $as_unset $ac_var ;;
20975       esac ;;
20976     esac
20977   done
20978
20979   (set) 2>&1 |
20980     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20981     *${as_nl}ac_space=\ *)
20982       # `set' does not quote correctly, so add quotes (double-quote
20983       # substitution turns \\\\ into \\, and sed turns \\ into \).
20984       sed -n \
20985         "s/'/'\\\\''/g;
20986           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20987       ;; #(
20988     *)
20989       # `set' quotes correctly as required by POSIX, so do not add quotes.
20990       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20991       ;;
20992     esac |
20993     sort
20994 ) |
20995   sed '
20996      /^ac_cv_env_/b end
20997      t clear
20998      :clear
20999      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21000      t end
21001      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21002      :end' >>confcache
21003 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21004   if test -w "$cache_file"; then
21005     test "x$cache_file" != "x/dev/null" &&
21006       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21007 echo "$as_me: updating cache $cache_file" >&6;}
21008     cat confcache >$cache_file
21009   else
21010     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21011 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21012   fi
21013 fi
21014 rm -f confcache
21015
21016 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21017 # Let make expand exec_prefix.
21018 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21019
21020 # Transform confdefs.h into DEFS.
21021 # Protect against shell expansion while executing Makefile rules.
21022 # Protect against Makefile macro expansion.
21023 #
21024 # If the first sed substitution is executed (which looks for macros that
21025 # take arguments), then branch to the quote section.  Otherwise,
21026 # look for a macro that doesn't take arguments.
21027 ac_script='
21028 t clear
21029 :clear
21030 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
21031 t quote
21032 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
21033 t quote
21034 b any
21035 :quote
21036 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21037 s/\[/\\&/g
21038 s/\]/\\&/g
21039 s/\$/$$/g
21040 H
21041 :any
21042 ${
21043         g
21044         s/^\n//
21045         s/\n/ /g
21046         p
21047 }
21048 '
21049 DEFS=`sed -n "$ac_script" confdefs.h`
21050
21051
21052 ac_libobjs=
21053 ac_ltlibobjs=
21054 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21055   # 1. Remove the extension, and $U if already installed.
21056   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21057   ac_i=`echo "$ac_i" | sed "$ac_script"`
21058   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21059   #    will be set to the directory where LIBOBJS objects are built.
21060   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21061   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21062 done
21063 LIBOBJS=$ac_libobjs
21064
21065 LTLIBOBJS=$ac_ltlibobjs
21066
21067
21068 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21069   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21070 Usually this means the macro was only invoked conditionally." >&5
21071 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21072 Usually this means the macro was only invoked conditionally." >&2;}
21073    { (exit 1); exit 1; }; }
21074 fi
21075 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21076   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21077 Usually this means the macro was only invoked conditionally." >&5
21078 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21079 Usually this means the macro was only invoked conditionally." >&2;}
21080    { (exit 1); exit 1; }; }
21081 fi
21082
21083 : ${CONFIG_STATUS=./config.status}
21084 ac_clean_files_save=$ac_clean_files
21085 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21086 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21087 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21088 cat >$CONFIG_STATUS <<_ACEOF
21089 #! $SHELL
21090 # Generated by $as_me.
21091 # Run this file to recreate the current configuration.
21092 # Compiler output produced by configure, useful for debugging
21093 # configure, is in config.log if it exists.
21094
21095 debug=false
21096 ac_cs_recheck=false
21097 ac_cs_silent=false
21098 SHELL=\${CONFIG_SHELL-$SHELL}
21099 _ACEOF
21100
21101 cat >>$CONFIG_STATUS <<\_ACEOF
21102 ## --------------------- ##
21103 ## M4sh Initialization.  ##
21104 ## --------------------- ##
21105
21106 # Be Bourne compatible
21107 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21108   emulate sh
21109   NULLCMD=:
21110   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21111   # is contrary to our usage.  Disable this feature.
21112   alias -g '${1+"$@"}'='"$@"'
21113   setopt NO_GLOB_SUBST
21114 else
21115   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21116 fi
21117 BIN_SH=xpg4; export BIN_SH # for Tru64
21118 DUALCASE=1; export DUALCASE # for MKS sh
21119
21120
21121 # PATH needs CR
21122 # Avoid depending upon Character Ranges.
21123 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21124 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21125 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21126 as_cr_digits='0123456789'
21127 as_cr_alnum=$as_cr_Letters$as_cr_digits
21128
21129 # The user is always right.
21130 if test "${PATH_SEPARATOR+set}" != set; then
21131   echo "#! /bin/sh" >conf$$.sh
21132   echo  "exit 0"   >>conf$$.sh
21133   chmod +x conf$$.sh
21134   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21135     PATH_SEPARATOR=';'
21136   else
21137     PATH_SEPARATOR=:
21138   fi
21139   rm -f conf$$.sh
21140 fi
21141
21142 # Support unset when possible.
21143 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21144   as_unset=unset
21145 else
21146   as_unset=false
21147 fi
21148
21149
21150 # IFS
21151 # We need space, tab and new line, in precisely that order.  Quoting is
21152 # there to prevent editors from complaining about space-tab.
21153 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21154 # splitting by setting IFS to empty value.)
21155 as_nl='
21156 '
21157 IFS=" ""        $as_nl"
21158
21159 # Find who we are.  Look in the path if we contain no directory separator.
21160 case $0 in
21161   *[\\/]* ) as_myself=$0 ;;
21162   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21163 for as_dir in $PATH
21164 do
21165   IFS=$as_save_IFS
21166   test -z "$as_dir" && as_dir=.
21167   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21168 done
21169 IFS=$as_save_IFS
21170
21171      ;;
21172 esac
21173 # We did not find ourselves, most probably we were run as `sh COMMAND'
21174 # in which case we are not to be found in the path.
21175 if test "x$as_myself" = x; then
21176   as_myself=$0
21177 fi
21178 if test ! -f "$as_myself"; then
21179   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21180   { (exit 1); exit 1; }
21181 fi
21182
21183 # Work around bugs in pre-3.0 UWIN ksh.
21184 for as_var in ENV MAIL MAILPATH
21185 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21186 done
21187 PS1='$ '
21188 PS2='> '
21189 PS4='+ '
21190
21191 # NLS nuisances.
21192 for as_var in \
21193   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21194   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21195   LC_TELEPHONE LC_TIME
21196 do
21197   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21198     eval $as_var=C; export $as_var
21199   else
21200     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21201   fi
21202 done
21203
21204 # Required to use basename.
21205 if expr a : '\(a\)' >/dev/null 2>&1 &&
21206    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21207   as_expr=expr
21208 else
21209   as_expr=false
21210 fi
21211
21212 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21213   as_basename=basename
21214 else
21215   as_basename=false
21216 fi
21217
21218
21219 # Name of the executable.
21220 as_me=`$as_basename -- "$0" ||
21221 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21222          X"$0" : 'X\(//\)$' \| \
21223          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21224 echo X/"$0" |
21225     sed '/^.*\/\([^/][^/]*\)\/*$/{
21226             s//\1/
21227             q
21228           }
21229           /^X\/\(\/\/\)$/{
21230             s//\1/
21231             q
21232           }
21233           /^X\/\(\/\).*/{
21234             s//\1/
21235             q
21236           }
21237           s/.*/./; q'`
21238
21239 # CDPATH.
21240 $as_unset CDPATH
21241
21242
21243
21244   as_lineno_1=$LINENO
21245   as_lineno_2=$LINENO
21246   test "x$as_lineno_1" != "x$as_lineno_2" &&
21247   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21248
21249   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21250   # uniformly replaced by the line number.  The first 'sed' inserts a
21251   # line-number line after each line using $LINENO; the second 'sed'
21252   # does the real work.  The second script uses 'N' to pair each
21253   # line-number line with the line containing $LINENO, and appends
21254   # trailing '-' during substitution so that $LINENO is not a special
21255   # case at line end.
21256   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21257   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21258   # E. McMahon (1931-1989) for sed's syntax.  :-)
21259   sed -n '
21260     p
21261     /[$]LINENO/=
21262   ' <$as_myself |
21263     sed '
21264       s/[$]LINENO.*/&-/
21265       t lineno
21266       b
21267       :lineno
21268       N
21269       :loop
21270       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21271       t loop
21272       s/-\n.*//
21273     ' >$as_me.lineno &&
21274   chmod +x "$as_me.lineno" ||
21275     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21276    { (exit 1); exit 1; }; }
21277
21278   # Don't try to exec as it changes $[0], causing all sort of problems
21279   # (the dirname of $[0] is not the place where we might find the
21280   # original and so on.  Autoconf is especially sensitive to this).
21281   . "./$as_me.lineno"
21282   # Exit status is that of the last command.
21283   exit
21284 }
21285
21286
21287 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21288   as_dirname=dirname
21289 else
21290   as_dirname=false
21291 fi
21292
21293 ECHO_C= ECHO_N= ECHO_T=
21294 case `echo -n x` in
21295 -n*)
21296   case `echo 'x\c'` in
21297   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21298   *)   ECHO_C='\c';;
21299   esac;;
21300 *)
21301   ECHO_N='-n';;
21302 esac
21303
21304 if expr a : '\(a\)' >/dev/null 2>&1 &&
21305    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21306   as_expr=expr
21307 else
21308   as_expr=false
21309 fi
21310
21311 rm -f conf$$ conf$$.exe conf$$.file
21312 if test -d conf$$.dir; then
21313   rm -f conf$$.dir/conf$$.file
21314 else
21315   rm -f conf$$.dir
21316   mkdir conf$$.dir
21317 fi
21318 echo >conf$$.file
21319 if ln -s conf$$.file conf$$ 2>/dev/null; then
21320   as_ln_s='ln -s'
21321   # ... but there are two gotchas:
21322   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21323   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21324   # In both cases, we have to default to `cp -p'.
21325   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21326     as_ln_s='cp -p'
21327 elif ln conf$$.file conf$$ 2>/dev/null; then
21328   as_ln_s=ln
21329 else
21330   as_ln_s='cp -p'
21331 fi
21332 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21333 rmdir conf$$.dir 2>/dev/null
21334
21335 if mkdir -p . 2>/dev/null; then
21336   as_mkdir_p=:
21337 else
21338   test -d ./-p && rmdir ./-p
21339   as_mkdir_p=false
21340 fi
21341
21342 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21343 # systems may use methods other than mode bits to determine executability.
21344 cat >conf$$.file <<_ASEOF
21345 #! /bin/sh
21346 exit 0
21347 _ASEOF
21348 chmod +x conf$$.file
21349 if test -x conf$$.file >/dev/null 2>&1; then
21350   as_executable_p="test -x"
21351 else
21352   as_executable_p=:
21353 fi
21354 rm -f conf$$.file
21355
21356 # Sed expression to map a string onto a valid CPP name.
21357 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21358
21359 # Sed expression to map a string onto a valid variable name.
21360 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21361
21362
21363 exec 6>&1
21364
21365 # Save the log message, to keep $[0] and so on meaningful, and to
21366 # report actual input values of CONFIG_FILES etc. instead of their
21367 # values after options handling.
21368 ac_log="
21369 This file was extended by [SAMPLE] $as_me [x.xx], which was
21370 generated by GNU Autoconf 2.60.  Invocation command line was
21371
21372   CONFIG_FILES    = $CONFIG_FILES
21373   CONFIG_HEADERS  = $CONFIG_HEADERS
21374   CONFIG_LINKS    = $CONFIG_LINKS
21375   CONFIG_COMMANDS = $CONFIG_COMMANDS
21376   $ $0 $@
21377
21378 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21379 "
21380
21381 _ACEOF
21382
21383 cat >>$CONFIG_STATUS <<_ACEOF
21384 # Files that config.status was made for.
21385 config_files="$ac_config_files"
21386 config_commands="$ac_config_commands"
21387
21388 _ACEOF
21389
21390 cat >>$CONFIG_STATUS <<\_ACEOF
21391 ac_cs_usage="\
21392 \`$as_me' instantiates files from templates according to the
21393 current configuration.
21394
21395 Usage: $0 [OPTIONS] [FILE]...
21396
21397   -h, --help       print this help, then exit
21398   -V, --version    print version number, then exit
21399   -q, --quiet      do not print progress messages
21400   -d, --debug      don't remove temporary files
21401       --recheck    update $as_me by reconfiguring in the same conditions
21402   --file=FILE[:TEMPLATE]
21403                    instantiate the configuration file FILE
21404
21405 Configuration files:
21406 $config_files
21407
21408 Configuration commands:
21409 $config_commands
21410
21411 Report bugs to <bug-autoconf@gnu.org>."
21412
21413 _ACEOF
21414 cat >>$CONFIG_STATUS <<_ACEOF
21415 ac_cs_version="\\
21416 [SAMPLE] config.status [x.xx]
21417 configured by $0, generated by GNU Autoconf 2.60,
21418   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21419
21420 Copyright (C) 2006 Free Software Foundation, Inc.
21421 This config.status script is free software; the Free Software Foundation
21422 gives unlimited permission to copy, distribute and modify it."
21423
21424 ac_pwd='$ac_pwd'
21425 srcdir='$srcdir'
21426 INSTALL='$INSTALL'
21427 _ACEOF
21428
21429 cat >>$CONFIG_STATUS <<\_ACEOF
21430 # If no file are specified by the user, then we need to provide default
21431 # value.  By we need to know if files were specified by the user.
21432 ac_need_defaults=:
21433 while test $# != 0
21434 do
21435   case $1 in
21436   --*=*)
21437     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21438     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21439     ac_shift=:
21440     ;;
21441   *)
21442     ac_option=$1
21443     ac_optarg=$2
21444     ac_shift=shift
21445     ;;
21446   esac
21447
21448   case $ac_option in
21449   # Handling of the options.
21450   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21451     ac_cs_recheck=: ;;
21452   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21453     echo "$ac_cs_version"; exit ;;
21454   --debug | --debu | --deb | --de | --d | -d )
21455     debug=: ;;
21456   --file | --fil | --fi | --f )
21457     $ac_shift
21458     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21459     ac_need_defaults=false;;
21460   --he | --h |  --help | --hel | -h )
21461     echo "$ac_cs_usage"; exit ;;
21462   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21463   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21464     ac_cs_silent=: ;;
21465
21466   # This is an error.
21467   -*) { echo "$as_me: error: unrecognized option: $1
21468 Try \`$0 --help' for more information." >&2
21469    { (exit 1); exit 1; }; } ;;
21470
21471   *) ac_config_targets="$ac_config_targets $1"
21472      ac_need_defaults=false ;;
21473
21474   esac
21475   shift
21476 done
21477
21478 ac_configure_extra_args=
21479
21480 if $ac_cs_silent; then
21481   exec 6>/dev/null
21482   ac_configure_extra_args="$ac_configure_extra_args --silent"
21483 fi
21484
21485 _ACEOF
21486 cat >>$CONFIG_STATUS <<_ACEOF
21487 if \$ac_cs_recheck; then
21488   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21489   CONFIG_SHELL=$SHELL
21490   export CONFIG_SHELL
21491   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21492 fi
21493
21494 _ACEOF
21495 cat >>$CONFIG_STATUS <<\_ACEOF
21496 exec 5>>config.log
21497 {
21498   echo
21499   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21500 ## Running $as_me. ##
21501 _ASBOX
21502   echo "$ac_log"
21503 } >&5
21504
21505 _ACEOF
21506 cat >>$CONFIG_STATUS <<_ACEOF
21507 #
21508 # INIT-COMMANDS
21509 #
21510 llvm_src="${LLVM_SRC}"
21511
21512 _ACEOF
21513
21514 cat >>$CONFIG_STATUS <<\_ACEOF
21515
21516 # Handling of arguments.
21517 for ac_config_target in $ac_config_targets
21518 do
21519   case $ac_config_target in
21520     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21521     "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
21522     "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
21523     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21524     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21525     "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21526     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21527     "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21528
21529   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21530 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21531    { (exit 1); exit 1; }; };;
21532   esac
21533 done
21534
21535
21536 # If the user did not use the arguments to specify the items to instantiate,
21537 # then the envvar interface is used.  Set only those that are not.
21538 # We use the long form for the default assignment because of an extremely
21539 # bizarre bug on SunOS 4.1.3.
21540 if $ac_need_defaults; then
21541   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21542   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21543 fi
21544
21545 # Have a temporary directory for convenience.  Make it in the build tree
21546 # simply because there is no reason against having it here, and in addition,
21547 # creating and moving files from /tmp can sometimes cause problems.
21548 # Hook for its removal unless debugging.
21549 # Note that there is a small window in which the directory will not be cleaned:
21550 # after its creation but before its name has been assigned to `$tmp'.
21551 $debug ||
21552 {
21553   tmp=
21554   trap 'exit_status=$?
21555   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21556 ' 0
21557   trap '{ (exit 1); exit 1; }' 1 2 13 15
21558 }
21559 # Create a (secure) tmp directory for tmp files.
21560
21561 {
21562   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21563   test -n "$tmp" && test -d "$tmp"
21564 }  ||
21565 {
21566   tmp=./conf$$-$RANDOM
21567   (umask 077 && mkdir "$tmp")
21568 } ||
21569 {
21570    echo "$me: cannot create a temporary directory in ." >&2
21571    { (exit 1); exit 1; }
21572 }
21573
21574 #
21575 # Set up the sed scripts for CONFIG_FILES section.
21576 #
21577
21578 # No need to generate the scripts if there are no CONFIG_FILES.
21579 # This happens for instance when ./config.status config.h
21580 if test -n "$CONFIG_FILES"; then
21581
21582 _ACEOF
21583
21584
21585
21586 ac_delim='%!_!# '
21587 for ac_last_try in false false false false false :; do
21588   cat >conf$$subs.sed <<_ACEOF
21589 SHELL!$SHELL$ac_delim
21590 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21591 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21592 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21593 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21594 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21595 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21596 exec_prefix!$exec_prefix$ac_delim
21597 prefix!$prefix$ac_delim
21598 program_transform_name!$program_transform_name$ac_delim
21599 bindir!$bindir$ac_delim
21600 sbindir!$sbindir$ac_delim
21601 libexecdir!$libexecdir$ac_delim
21602 datarootdir!$datarootdir$ac_delim
21603 datadir!$datadir$ac_delim
21604 sysconfdir!$sysconfdir$ac_delim
21605 sharedstatedir!$sharedstatedir$ac_delim
21606 localstatedir!$localstatedir$ac_delim
21607 includedir!$includedir$ac_delim
21608 oldincludedir!$oldincludedir$ac_delim
21609 docdir!$docdir$ac_delim
21610 infodir!$infodir$ac_delim
21611 htmldir!$htmldir$ac_delim
21612 dvidir!$dvidir$ac_delim
21613 pdfdir!$pdfdir$ac_delim
21614 psdir!$psdir$ac_delim
21615 libdir!$libdir$ac_delim
21616 localedir!$localedir$ac_delim
21617 mandir!$mandir$ac_delim
21618 DEFS!$DEFS$ac_delim
21619 ECHO_C!$ECHO_C$ac_delim
21620 ECHO_N!$ECHO_N$ac_delim
21621 ECHO_T!$ECHO_T$ac_delim
21622 LIBS!$LIBS$ac_delim
21623 build_alias!$build_alias$ac_delim
21624 host_alias!$host_alias$ac_delim
21625 target_alias!$target_alias$ac_delim
21626 LLVM_SRC!$LLVM_SRC$ac_delim
21627 LLVM_OBJ!$LLVM_OBJ$ac_delim
21628 LLVM_VERSION!$LLVM_VERSION$ac_delim
21629 CC!$CC$ac_delim
21630 CFLAGS!$CFLAGS$ac_delim
21631 LDFLAGS!$LDFLAGS$ac_delim
21632 CPPFLAGS!$CPPFLAGS$ac_delim
21633 ac_ct_CC!$ac_ct_CC$ac_delim
21634 EXEEXT!$EXEEXT$ac_delim
21635 OBJEXT!$OBJEXT$ac_delim
21636 CXX!$CXX$ac_delim
21637 CXXFLAGS!$CXXFLAGS$ac_delim
21638 ac_ct_CXX!$ac_ct_CXX$ac_delim
21639 CPP!$CPP$ac_delim
21640 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21641 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21642 subdirs!$subdirs$ac_delim
21643 build!$build$ac_delim
21644 build_cpu!$build_cpu$ac_delim
21645 build_vendor!$build_vendor$ac_delim
21646 build_os!$build_os$ac_delim
21647 host!$host$ac_delim
21648 host_cpu!$host_cpu$ac_delim
21649 host_vendor!$host_vendor$ac_delim
21650 host_os!$host_os$ac_delim
21651 target!$target$ac_delim
21652 target_cpu!$target_cpu$ac_delim
21653 target_vendor!$target_vendor$ac_delim
21654 target_os!$target_os$ac_delim
21655 OS!$OS$ac_delim
21656 HOST_OS!$HOST_OS$ac_delim
21657 TARGET_OS!$TARGET_OS$ac_delim
21658 LINKALL!$LINKALL$ac_delim
21659 NOLINKALL!$NOLINKALL$ac_delim
21660 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21661 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21662 ARCH!$ARCH$ac_delim
21663 ENDIAN!$ENDIAN$ac_delim
21664 GREP!$GREP$ac_delim
21665 EGREP!$EGREP$ac_delim
21666 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21667 BUILD_CC!$BUILD_CC$ac_delim
21668 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21669 BUILD_CXX!$BUILD_CXX$ac_delim
21670 CVSBUILD!$CVSBUILD$ac_delim
21671 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21672 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
21673 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21674 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21675 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21676 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
21677 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21678 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21679 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21680 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21681 JIT!$JIT$ac_delim
21682 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21683 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21684 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21685 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21686 _ACEOF
21687
21688   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21689     break
21690   elif $ac_last_try; then
21691     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21692 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21693    { (exit 1); exit 1; }; }
21694   else
21695     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21696   fi
21697 done
21698
21699 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21700 if test -n "$ac_eof"; then
21701   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21702   ac_eof=`expr $ac_eof + 1`
21703 fi
21704
21705 cat >>$CONFIG_STATUS <<_ACEOF
21706 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21707 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21708 _ACEOF
21709 sed '
21710 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21711 s/^/s,@/; s/!/@,|#_!!_#|/
21712 :n
21713 t n
21714 s/'"$ac_delim"'$/,g/; t
21715 s/$/\\/; p
21716 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21717 ' >>$CONFIG_STATUS <conf$$subs.sed
21718 rm -f conf$$subs.sed
21719 cat >>$CONFIG_STATUS <<_ACEOF
21720 CEOF$ac_eof
21721 _ACEOF
21722
21723
21724 ac_delim='%!_!# '
21725 for ac_last_try in false false false false false :; do
21726   cat >conf$$subs.sed <<_ACEOF
21727 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21728 ENABLE_PIC!$ENABLE_PIC$ac_delim
21729 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21730 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21731 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21732 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21733 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21734 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21735 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21736 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21737 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21738 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21739 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21740 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21741 NM!$NM$ac_delim
21742 ifGNUmake!$ifGNUmake$ac_delim
21743 LN_S!$LN_S$ac_delim
21744 CMP!$CMP$ac_delim
21745 CP!$CP$ac_delim
21746 DATE!$DATE$ac_delim
21747 FIND!$FIND$ac_delim
21748 MKDIR!$MKDIR$ac_delim
21749 MV!$MV$ac_delim
21750 RANLIB!$RANLIB$ac_delim
21751 AR!$AR$ac_delim
21752 RM!$RM$ac_delim
21753 SED!$SED$ac_delim
21754 TAR!$TAR$ac_delim
21755 BINPWD!$BINPWD$ac_delim
21756 GRAPHVIZ!$GRAPHVIZ$ac_delim
21757 DOT!$DOT$ac_delim
21758 FDP!$FDP$ac_delim
21759 NEATO!$NEATO$ac_delim
21760 TWOPI!$TWOPI$ac_delim
21761 CIRCO!$CIRCO$ac_delim
21762 GV!$GV$ac_delim
21763 DOTTY!$DOTTY$ac_delim
21764 XDOT_PY!$XDOT_PY$ac_delim
21765 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21766 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21767 INSTALL_DATA!$INSTALL_DATA$ac_delim
21768 BZIP2!$BZIP2$ac_delim
21769 CAT!$CAT$ac_delim
21770 DOXYGEN!$DOXYGEN$ac_delim
21771 GROFF!$GROFF$ac_delim
21772 GZIPBIN!$GZIPBIN$ac_delim
21773 POD2HTML!$POD2HTML$ac_delim
21774 POD2MAN!$POD2MAN$ac_delim
21775 PDFROFF!$PDFROFF$ac_delim
21776 RUNTEST!$RUNTEST$ac_delim
21777 TCLSH!$TCLSH$ac_delim
21778 ZIP!$ZIP$ac_delim
21779 OCAMLC!$OCAMLC$ac_delim
21780 OCAMLOPT!$OCAMLOPT$ac_delim
21781 OCAMLDEP!$OCAMLDEP$ac_delim
21782 OCAMLDOC!$OCAMLDOC$ac_delim
21783 GAS!$GAS$ac_delim
21784 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21785 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21786 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21787 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21788 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21789 LIBADD_DL!$LIBADD_DL$ac_delim
21790 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21791 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21792 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
21793 USE_UDIS86!$USE_UDIS86$ac_delim
21794 USE_OPROFILE!$USE_OPROFILE$ac_delim
21795 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21796 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21797 MMAP_FILE!$MMAP_FILE$ac_delim
21798 SHLIBEXT!$SHLIBEXT$ac_delim
21799 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21800 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21801 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21802 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21803 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21804 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21805 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21806 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21807 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21808 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21809 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21810 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21811 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21812 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21813 RPATH!$RPATH$ac_delim
21814 RDYNAMIC!$RDYNAMIC$ac_delim
21815 LIBOBJS!$LIBOBJS$ac_delim
21816 LTLIBOBJS!$LTLIBOBJS$ac_delim
21817 _ACEOF
21818
21819   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
21820     break
21821   elif $ac_last_try; then
21822     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21823 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21824    { (exit 1); exit 1; }; }
21825   else
21826     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21827   fi
21828 done
21829
21830 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21831 if test -n "$ac_eof"; then
21832   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21833   ac_eof=`expr $ac_eof + 1`
21834 fi
21835
21836 cat >>$CONFIG_STATUS <<_ACEOF
21837 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21838 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21839 _ACEOF
21840 sed '
21841 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21842 s/^/s,@/; s/!/@,|#_!!_#|/
21843 :n
21844 t n
21845 s/'"$ac_delim"'$/,g/; t
21846 s/$/\\/; p
21847 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21848 ' >>$CONFIG_STATUS <conf$$subs.sed
21849 rm -f conf$$subs.sed
21850 cat >>$CONFIG_STATUS <<_ACEOF
21851 :end
21852 s/|#_!!_#|//g
21853 CEOF$ac_eof
21854 _ACEOF
21855
21856
21857 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21858 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21859 # trailing colons and then remove the whole line if VPATH becomes empty
21860 # (actually we leave an empty line to preserve line numbers).
21861 if test "x$srcdir" = x.; then
21862   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21863 s/:*\$(srcdir):*/:/
21864 s/:*\${srcdir}:*/:/
21865 s/:*@srcdir@:*/:/
21866 s/^\([^=]*=[     ]*\):*/\1/
21867 s/:*$//
21868 s/^[^=]*=[       ]*$//
21869 }'
21870 fi
21871
21872 cat >>$CONFIG_STATUS <<\_ACEOF
21873 fi # test -n "$CONFIG_FILES"
21874
21875
21876 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
21877 do
21878   case $ac_tag in
21879   :[FHLC]) ac_mode=$ac_tag; continue;;
21880   esac
21881   case $ac_mode$ac_tag in
21882   :[FHL]*:*);;
21883   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21884 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21885    { (exit 1); exit 1; }; };;
21886   :[FH]-) ac_tag=-:-;;
21887   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21888   esac
21889   ac_save_IFS=$IFS
21890   IFS=:
21891   set x $ac_tag
21892   IFS=$ac_save_IFS
21893   shift
21894   ac_file=$1
21895   shift
21896
21897   case $ac_mode in
21898   :L) ac_source=$1;;
21899   :[FH])
21900     ac_file_inputs=
21901     for ac_f
21902     do
21903       case $ac_f in
21904       -) ac_f="$tmp/stdin";;
21905       *) # Look for the file first in the build tree, then in the source tree
21906          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21907          # because $ac_f cannot contain `:'.
21908          test -f "$ac_f" ||
21909            case $ac_f in
21910            [\\/$]*) false;;
21911            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21912            esac ||
21913            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21914 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21915    { (exit 1); exit 1; }; };;
21916       esac
21917       ac_file_inputs="$ac_file_inputs $ac_f"
21918     done
21919
21920     # Let's still pretend it is `configure' which instantiates (i.e., don't
21921     # use $as_me), people would be surprised to read:
21922     #    /* config.h.  Generated by config.status.  */
21923     configure_input="Generated from "`IFS=:
21924           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21925     if test x"$ac_file" != x-; then
21926       configure_input="$ac_file.  $configure_input"
21927       { echo "$as_me:$LINENO: creating $ac_file" >&5
21928 echo "$as_me: creating $ac_file" >&6;}
21929     fi
21930
21931     case $ac_tag in
21932     *:-:* | *:-) cat >"$tmp/stdin";;
21933     esac
21934     ;;
21935   esac
21936
21937   ac_dir=`$as_dirname -- "$ac_file" ||
21938 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21939          X"$ac_file" : 'X\(//\)[^/]' \| \
21940          X"$ac_file" : 'X\(//\)$' \| \
21941          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21942 echo X"$ac_file" |
21943     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21944             s//\1/
21945             q
21946           }
21947           /^X\(\/\/\)[^/].*/{
21948             s//\1/
21949             q
21950           }
21951           /^X\(\/\/\)$/{
21952             s//\1/
21953             q
21954           }
21955           /^X\(\/\).*/{
21956             s//\1/
21957             q
21958           }
21959           s/.*/./; q'`
21960   { as_dir="$ac_dir"
21961   case $as_dir in #(
21962   -*) as_dir=./$as_dir;;
21963   esac
21964   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21965     as_dirs=
21966     while :; do
21967       case $as_dir in #(
21968       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21969       *) as_qdir=$as_dir;;
21970       esac
21971       as_dirs="'$as_qdir' $as_dirs"
21972       as_dir=`$as_dirname -- "$as_dir" ||
21973 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21974          X"$as_dir" : 'X\(//\)[^/]' \| \
21975          X"$as_dir" : 'X\(//\)$' \| \
21976          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21977 echo X"$as_dir" |
21978     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21979             s//\1/
21980             q
21981           }
21982           /^X\(\/\/\)[^/].*/{
21983             s//\1/
21984             q
21985           }
21986           /^X\(\/\/\)$/{
21987             s//\1/
21988             q
21989           }
21990           /^X\(\/\).*/{
21991             s//\1/
21992             q
21993           }
21994           s/.*/./; q'`
21995       test -d "$as_dir" && break
21996     done
21997     test -z "$as_dirs" || eval "mkdir $as_dirs"
21998   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21999 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22000    { (exit 1); exit 1; }; }; }
22001   ac_builddir=.
22002
22003 case "$ac_dir" in
22004 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22005 *)
22006   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22007   # A ".." for each directory in $ac_dir_suffix.
22008   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22009   case $ac_top_builddir_sub in
22010   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22011   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22012   esac ;;
22013 esac
22014 ac_abs_top_builddir=$ac_pwd
22015 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22016 # for backward compatibility:
22017 ac_top_builddir=$ac_top_build_prefix
22018
22019 case $srcdir in
22020   .)  # We are building in place.
22021     ac_srcdir=.
22022     ac_top_srcdir=$ac_top_builddir_sub
22023     ac_abs_top_srcdir=$ac_pwd ;;
22024   [\\/]* | ?:[\\/]* )  # Absolute name.
22025     ac_srcdir=$srcdir$ac_dir_suffix;
22026     ac_top_srcdir=$srcdir
22027     ac_abs_top_srcdir=$srcdir ;;
22028   *) # Relative name.
22029     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22030     ac_top_srcdir=$ac_top_build_prefix$srcdir
22031     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22032 esac
22033 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22034
22035
22036   case $ac_mode in
22037   :F)
22038   #
22039   # CONFIG_FILE
22040   #
22041
22042   case $INSTALL in
22043   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22044   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22045   esac
22046 _ACEOF
22047
22048 cat >>$CONFIG_STATUS <<\_ACEOF
22049 # If the template does not know about datarootdir, expand it.
22050 # FIXME: This hack should be removed a few years after 2.60.
22051 ac_datarootdir_hack=; ac_datarootdir_seen=
22052
22053 case `sed -n '/datarootdir/ {
22054   p
22055   q
22056 }
22057 /@datadir@/p
22058 /@docdir@/p
22059 /@infodir@/p
22060 /@localedir@/p
22061 /@mandir@/p
22062 ' $ac_file_inputs` in
22063 *datarootdir*) ac_datarootdir_seen=yes;;
22064 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22065   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22066 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22067 _ACEOF
22068 cat >>$CONFIG_STATUS <<_ACEOF
22069   ac_datarootdir_hack='
22070   s&@datadir@&$datadir&g
22071   s&@docdir@&$docdir&g
22072   s&@infodir@&$infodir&g
22073   s&@localedir@&$localedir&g
22074   s&@mandir@&$mandir&g
22075     s&\\\${datarootdir}&$datarootdir&g' ;;
22076 esac
22077 _ACEOF
22078
22079 # Neutralize VPATH when `$srcdir' = `.'.
22080 # Shell code in configure.ac might set extrasub.
22081 # FIXME: do we really want to maintain this feature?
22082 cat >>$CONFIG_STATUS <<_ACEOF
22083   sed "$ac_vpsub
22084 $extrasub
22085 _ACEOF
22086 cat >>$CONFIG_STATUS <<\_ACEOF
22087 :t
22088 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22089 s&@configure_input@&$configure_input&;t t
22090 s&@top_builddir@&$ac_top_builddir_sub&;t t
22091 s&@srcdir@&$ac_srcdir&;t t
22092 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22093 s&@top_srcdir@&$ac_top_srcdir&;t t
22094 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22095 s&@builddir@&$ac_builddir&;t t
22096 s&@abs_builddir@&$ac_abs_builddir&;t t
22097 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22098 s&@INSTALL@&$ac_INSTALL&;t t
22099 $ac_datarootdir_hack
22100 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22101
22102 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22103   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22104   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22105   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22106 which seems to be undefined.  Please make sure it is defined." >&5
22107 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22108 which seems to be undefined.  Please make sure it is defined." >&2;}
22109
22110   rm -f "$tmp/stdin"
22111   case $ac_file in
22112   -) cat "$tmp/out"; rm -f "$tmp/out";;
22113   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22114   esac
22115  ;;
22116
22117
22118   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22119 echo "$as_me: executing $ac_file commands" >&6;}
22120  ;;
22121   esac
22122
22123
22124   case $ac_file$ac_mode in
22125     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22126    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22127     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22128    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22129     "lib/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22130    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22131     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22132    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22133     "tools/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22134    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22135
22136   esac
22137 done # for ac_tag
22138
22139
22140 { (exit 0); exit 0; }
22141 _ACEOF
22142 chmod +x $CONFIG_STATUS
22143 ac_clean_files=$ac_clean_files_save
22144
22145
22146 # configure is writing to config.log, and then calls config.status.
22147 # config.status does its own redirection, appending to config.log.
22148 # Unfortunately, on DOS this fails, as config.log is still kept open
22149 # by configure, so config.status won't be able to write to it; its
22150 # output is simply discarded.  So we exec the FD to /dev/null,
22151 # effectively closing config.log, so it can be properly (re)opened and
22152 # appended to by config.status.  When coming back to configure, we
22153 # need to make the FD available again.
22154 if test "$no_create" != yes; then
22155   ac_cs_success=:
22156   ac_config_status_args=
22157   test "$silent" = yes &&
22158     ac_config_status_args="$ac_config_status_args --quiet"
22159   exec 5>/dev/null
22160   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22161   exec 5>>config.log
22162   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22163   # would make configure fail if this is the last instruction.
22164   $ac_cs_success || { (exit 1); exit 1; }
22165 fi
22166
22167 #
22168 # CONFIG_SUBDIRS section.
22169 #
22170 if test "$no_recursion" != yes; then
22171
22172   # Remove --cache-file and --srcdir arguments so they do not pile up.
22173   ac_sub_configure_args=
22174   ac_prev=
22175   eval "set x $ac_configure_args"
22176   shift
22177   for ac_arg
22178   do
22179     if test -n "$ac_prev"; then
22180       ac_prev=
22181       continue
22182     fi
22183     case $ac_arg in
22184     -cache-file | --cache-file | --cache-fil | --cache-fi \
22185     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22186       ac_prev=cache_file ;;
22187     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22188     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22189     | --c=*)
22190       ;;
22191     --config-cache | -C)
22192       ;;
22193     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22194       ac_prev=srcdir ;;
22195     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22196       ;;
22197     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22198       ac_prev=prefix ;;
22199     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22200       ;;
22201     *)
22202       case $ac_arg in
22203       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22204       esac
22205       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22206     esac
22207   done
22208
22209   # Always prepend --prefix to ensure using the same prefix
22210   # in subdir configurations.
22211   ac_arg="--prefix=$prefix"
22212   case $ac_arg in
22213   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22214   esac
22215   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22216
22217   ac_popdir=`pwd`
22218   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22219
22220     # Do not complain, so a configure script can configure whichever
22221     # parts of a large source tree are present.
22222     test -d "$srcdir/$ac_dir" || continue
22223
22224     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22225     echo "$as_me:$LINENO: $ac_msg" >&5
22226     echo "$ac_msg" >&6
22227     { as_dir="$ac_dir"
22228   case $as_dir in #(
22229   -*) as_dir=./$as_dir;;
22230   esac
22231   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22232     as_dirs=
22233     while :; do
22234       case $as_dir in #(
22235       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22236       *) as_qdir=$as_dir;;
22237       esac
22238       as_dirs="'$as_qdir' $as_dirs"
22239       as_dir=`$as_dirname -- "$as_dir" ||
22240 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22241          X"$as_dir" : 'X\(//\)[^/]' \| \
22242          X"$as_dir" : 'X\(//\)$' \| \
22243          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22244 echo X"$as_dir" |
22245     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22246             s//\1/
22247             q
22248           }
22249           /^X\(\/\/\)[^/].*/{
22250             s//\1/
22251             q
22252           }
22253           /^X\(\/\/\)$/{
22254             s//\1/
22255             q
22256           }
22257           /^X\(\/\).*/{
22258             s//\1/
22259             q
22260           }
22261           s/.*/./; q'`
22262       test -d "$as_dir" && break
22263     done
22264     test -z "$as_dirs" || eval "mkdir $as_dirs"
22265   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22266 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22267    { (exit 1); exit 1; }; }; }
22268     ac_builddir=.
22269
22270 case "$ac_dir" in
22271 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22272 *)
22273   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22274   # A ".." for each directory in $ac_dir_suffix.
22275   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22276   case $ac_top_builddir_sub in
22277   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22278   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22279   esac ;;
22280 esac
22281 ac_abs_top_builddir=$ac_pwd
22282 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22283 # for backward compatibility:
22284 ac_top_builddir=$ac_top_build_prefix
22285
22286 case $srcdir in
22287   .)  # We are building in place.
22288     ac_srcdir=.
22289     ac_top_srcdir=$ac_top_builddir_sub
22290     ac_abs_top_srcdir=$ac_pwd ;;
22291   [\\/]* | ?:[\\/]* )  # Absolute name.
22292     ac_srcdir=$srcdir$ac_dir_suffix;
22293     ac_top_srcdir=$srcdir
22294     ac_abs_top_srcdir=$srcdir ;;
22295   *) # Relative name.
22296     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22297     ac_top_srcdir=$ac_top_build_prefix$srcdir
22298     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22299 esac
22300 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22301
22302
22303     cd "$ac_dir"
22304
22305     # Check for guested configure; otherwise get Cygnus style configure.
22306     if test -f "$ac_srcdir/configure.gnu"; then
22307       ac_sub_configure=$ac_srcdir/configure.gnu
22308     elif test -f "$ac_srcdir/configure"; then
22309       ac_sub_configure=$ac_srcdir/configure
22310     elif test -f "$ac_srcdir/configure.in"; then
22311       # This should be Cygnus configure.
22312       ac_sub_configure=$ac_aux_dir/configure
22313     else
22314       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22315 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22316       ac_sub_configure=
22317     fi
22318
22319     # The recursion is here.
22320     if test -n "$ac_sub_configure"; then
22321       # Make the cache file name correct relative to the subdirectory.
22322       case $cache_file in
22323       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22324       *) # Relative name.
22325         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22326       esac
22327
22328       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22329 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22330       # The eval makes quoting arguments work.
22331       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22332            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22333         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22334 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22335    { (exit 1); exit 1; }; }
22336     fi
22337
22338     cd "$ac_popdir"
22339   done
22340 fi
22341