Remove the Blackfin backend.
[oota-llvm.git] / projects / sample / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx].
4 #
5 # Report bugs to <bugs@yourdomain>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22   setopt NO_GLOB_SUBST
23 else
24   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25 fi
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
28
29
30 # PATH needs CR
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40   echo "#! /bin/sh" >conf$$.sh
41   echo  "exit 0"   >>conf$$.sh
42   chmod +x conf$$.sh
43   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44     PATH_SEPARATOR=';'
45   else
46     PATH_SEPARATOR=:
47   fi
48   rm -f conf$$.sh
49 fi
50
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53   as_unset=unset
54 else
55   as_unset=false
56 fi
57
58
59 # IFS
60 # We need space, tab and new line, in precisely that order.  Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
64 as_nl='
65 '
66 IFS=" ""        $as_nl"
67
68 # Find who we are.  Look in the path if we contain no directory separator.
69 case $0 in
70   *[\\/]* ) as_myself=$0 ;;
71   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72 for as_dir in $PATH
73 do
74   IFS=$as_save_IFS
75   test -z "$as_dir" && as_dir=.
76   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77 done
78 IFS=$as_save_IFS
79
80      ;;
81 esac
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
85   as_myself=$0
86 fi
87 if test ! -f "$as_myself"; then
88   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89   { (exit 1); exit 1; }
90 fi
91
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95 done
96 PS1='$ '
97 PS2='> '
98 PS4='+ '
99
100 # NLS nuisances.
101 for as_var in \
102   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104   LC_TELEPHONE LC_TIME
105 do
106   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107     eval $as_var=C; export $as_var
108   else
109     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
110   fi
111 done
112
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115    test "X`expr 00001 : '.*\(...\)'`" = X001; then
116   as_expr=expr
117 else
118   as_expr=false
119 fi
120
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122   as_basename=basename
123 else
124   as_basename=false
125 fi
126
127
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131          X"$0" : 'X\(//\)$' \| \
132          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133 echo X/"$0" |
134     sed '/^.*\/\([^/][^/]*\)\/*$/{
135             s//\1/
136             q
137           }
138           /^X\/\(\/\/\)$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\).*/{
143             s//\1/
144             q
145           }
146           s/.*/./; q'`
147
148 # CDPATH.
149 $as_unset CDPATH
150
151
152 if test "x$CONFIG_SHELL" = x; then
153   if (eval ":") 2>/dev/null; then
154   as_have_required=yes
155 else
156   as_have_required=no
157 fi
158
159   if test $as_have_required = yes &&     (eval ":
160 (as_func_return () {
161   (exit \$1)
162 }
163 as_func_success () {
164   as_func_return 0
165 }
166 as_func_failure () {
167   as_func_return 1
168 }
169 as_func_ret_success () {
170   return 0
171 }
172 as_func_ret_failure () {
173   return 1
174 }
175
176 exitcode=0
177 if as_func_success; then
178   :
179 else
180   exitcode=1
181   echo as_func_success failed.
182 fi
183
184 if as_func_failure; then
185   exitcode=1
186   echo as_func_failure succeeded.
187 fi
188
189 if as_func_ret_success; then
190   :
191 else
192   exitcode=1
193   echo as_func_ret_success failed.
194 fi
195
196 if as_func_ret_failure; then
197   exitcode=1
198   echo as_func_ret_failure succeeded.
199 fi
200
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202   :
203 else
204   exitcode=1
205   echo positional parameters were not saved.
206 fi
207
208 test \$exitcode = 0) || { (exit 1); exit 1; }
209
210 (
211   as_lineno_1=\$LINENO
212   as_lineno_2=\$LINENO
213   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
216   :
217 else
218   as_candidate_shells=
219     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   case $as_dir in
225          /*)
226            for as_base in sh bash ksh sh5; do
227              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228            done;;
229        esac
230 done
231 IFS=$as_save_IFS
232
233
234       for as_shell in $as_candidate_shells $SHELL; do
235          # Try only shells that exist, to save several forks.
236          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237                 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240   emulate sh
241   NULLCMD=:
242   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243   # is contrary to our usage.  Disable this feature.
244   alias -g '${1+"$@"}'='"$@"'
245   setopt NO_GLOB_SUBST
246 else
247   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248 fi
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
251
252 :
253 _ASEOF
254 }; then
255   CONFIG_SHELL=$as_shell
256                as_have_required=yes
257                if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268 fi
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
271
272 :
273 (as_func_return () {
274   (exit $1)
275 }
276 as_func_success () {
277   as_func_return 0
278 }
279 as_func_failure () {
280   as_func_return 1
281 }
282 as_func_ret_success () {
283   return 0
284 }
285 as_func_ret_failure () {
286   return 1
287 }
288
289 exitcode=0
290 if as_func_success; then
291   :
292 else
293   exitcode=1
294   echo as_func_success failed.
295 fi
296
297 if as_func_failure; then
298   exitcode=1
299   echo as_func_failure succeeded.
300 fi
301
302 if as_func_ret_success; then
303   :
304 else
305   exitcode=1
306   echo as_func_ret_success failed.
307 fi
308
309 if as_func_ret_failure; then
310   exitcode=1
311   echo as_func_ret_failure succeeded.
312 fi
313
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
315   :
316 else
317   exitcode=1
318   echo positional parameters were not saved.
319 fi
320
321 test $exitcode = 0) || { (exit 1); exit 1; }
322
323 (
324   as_lineno_1=$LINENO
325   as_lineno_2=$LINENO
326   test "x$as_lineno_1" != "x$as_lineno_2" &&
327   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329 _ASEOF
330 }; then
331   break
332 fi
333
334 fi
335
336       done
337
338       if test "x$CONFIG_SHELL" != x; then
339   for as_var in BASH_ENV ENV
340         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341         done
342         export CONFIG_SHELL
343         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344 fi
345
346
347     if test $as_have_required = no; then
348   echo This script requires a shell more modern than all the
349       echo shells that I found on your system.  Please install a
350       echo modern shell, or manually run the script under such a
351       echo shell if you do have one.
352       { (exit 1); exit 1; }
353 fi
354
355
356 fi
357
358 fi
359
360
361
362 (eval "as_func_return () {
363   (exit \$1)
364 }
365 as_func_success () {
366   as_func_return 0
367 }
368 as_func_failure () {
369   as_func_return 1
370 }
371 as_func_ret_success () {
372   return 0
373 }
374 as_func_ret_failure () {
375   return 1
376 }
377
378 exitcode=0
379 if as_func_success; then
380   :
381 else
382   exitcode=1
383   echo as_func_success failed.
384 fi
385
386 if as_func_failure; then
387   exitcode=1
388   echo as_func_failure succeeded.
389 fi
390
391 if as_func_ret_success; then
392   :
393 else
394   exitcode=1
395   echo as_func_ret_success failed.
396 fi
397
398 if as_func_ret_failure; then
399   exitcode=1
400   echo as_func_ret_failure succeeded.
401 fi
402
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404   :
405 else
406   exitcode=1
407   echo positional parameters were not saved.
408 fi
409
410 test \$exitcode = 0") || {
411   echo No shell found that supports shell functions.
412   echo Please tell autoconf@gnu.org about your system,
413   echo including any error possibly output before this
414   echo message
415 }
416
417
418
419   as_lineno_1=$LINENO
420   as_lineno_2=$LINENO
421   test "x$as_lineno_1" != "x$as_lineno_2" &&
422   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
423
424   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425   # uniformly replaced by the line number.  The first 'sed' inserts a
426   # line-number line after each line using $LINENO; the second 'sed'
427   # does the real work.  The second script uses 'N' to pair each
428   # line-number line with the line containing $LINENO, and appends
429   # trailing '-' during substitution so that $LINENO is not a special
430   # case at line end.
431   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432   # scripts with optimization help from Paolo Bonzini.  Blame Lee
433   # E. McMahon (1931-1989) for sed's syntax.  :-)
434   sed -n '
435     p
436     /[$]LINENO/=
437   ' <$as_myself |
438     sed '
439       s/[$]LINENO.*/&-/
440       t lineno
441       b
442       :lineno
443       N
444       :loop
445       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446       t loop
447       s/-\n.*//
448     ' >$as_me.lineno &&
449   chmod +x "$as_me.lineno" ||
450     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451    { (exit 1); exit 1; }; }
452
453   # Don't try to exec as it changes $[0], causing all sort of problems
454   # (the dirname of $[0] is not the place where we might find the
455   # original and so on.  Autoconf is especially sensitive to this).
456   . "./$as_me.lineno"
457   # Exit status is that of the last command.
458   exit
459 }
460
461
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463   as_dirname=dirname
464 else
465   as_dirname=false
466 fi
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in
470 -n*)
471   case `echo 'x\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   *)   ECHO_C='\c';;
474   esac;;
475 *)
476   ECHO_N='-n';;
477 esac
478
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480    test "X`expr 00001 : '.*\(...\)'`" = X001; then
481   as_expr=expr
482 else
483   as_expr=false
484 fi
485
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488   rm -f conf$$.dir/conf$$.file
489 else
490   rm -f conf$$.dir
491   mkdir conf$$.dir
492 fi
493 echo >conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
495   as_ln_s='ln -s'
496   # ... but there are two gotchas:
497   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499   # In both cases, we have to default to `cp -p'.
500   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501     as_ln_s='cp -p'
502 elif ln conf$$.file conf$$ 2>/dev/null; then
503   as_ln_s=ln
504 else
505   as_ln_s='cp -p'
506 fi
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
509
510 if mkdir -p . 2>/dev/null; then
511   as_mkdir_p=:
512 else
513   test -d ./-p && rmdir ./-p
514   as_mkdir_p=false
515 fi
516
517 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
520 #! /bin/sh
521 exit 0
522 _ASEOF
523 chmod +x conf$$.file
524 if test -x conf$$.file >/dev/null 2>&1; then
525   as_executable_p="test -x"
526 else
527   as_executable_p=:
528 fi
529 rm -f conf$$.file
530
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537
538
539 exec 7<&0 </dev/null 6>&1
540
541 # Name of the host.
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
546 #
547 # Initializations.
548 #
549 ac_default_prefix=/usr/local
550 ac_clean_files=
551 ac_config_libobj_dir=.
552 LIBOBJS=
553 cross_compiling=no
554 subdirs=
555 MFLAGS=
556 MAKEFLAGS=
557 SHELL=${CONFIG_SHELL-/bin/sh}
558
559 # Identity of this package.
560 PACKAGE_NAME='[SAMPLE]'
561 PACKAGE_TARNAME='--sample--'
562 PACKAGE_VERSION='[x.xx]'
563 PACKAGE_STRING='[SAMPLE] [x.xx]'
564 PACKAGE_BUGREPORT='bugs@yourdomain'
565
566 ac_unique_file=""Makefile.common.in""
567 # Factoring default headers for most tests.
568 ac_includes_default="\
569 #include <stdio.h>
570 #if HAVE_SYS_TYPES_H
571 # include <sys/types.h>
572 #endif
573 #if HAVE_SYS_STAT_H
574 # include <sys/stat.h>
575 #endif
576 #if STDC_HEADERS
577 # include <stdlib.h>
578 # include <stddef.h>
579 #else
580 # if HAVE_STDLIB_H
581 #  include <stdlib.h>
582 # endif
583 #endif
584 #if HAVE_STRING_H
585 # if !STDC_HEADERS && HAVE_MEMORY_H
586 #  include <memory.h>
587 # endif
588 # include <string.h>
589 #endif
590 #if HAVE_STRINGS_H
591 # include <strings.h>
592 #endif
593 #if HAVE_INTTYPES_H
594 # include <inttypes.h>
595 #endif
596 #if HAVE_STDINT_H
597 # include <stdint.h>
598 #endif
599 #if HAVE_UNISTD_H
600 # include <unistd.h>
601 #endif"
602
603 ac_subst_vars='SHELL
604 PATH_SEPARATOR
605 PACKAGE_NAME
606 PACKAGE_TARNAME
607 PACKAGE_VERSION
608 PACKAGE_STRING
609 PACKAGE_BUGREPORT
610 exec_prefix
611 prefix
612 program_transform_name
613 bindir
614 sbindir
615 libexecdir
616 datarootdir
617 datadir
618 sysconfdir
619 sharedstatedir
620 localstatedir
621 includedir
622 oldincludedir
623 docdir
624 infodir
625 htmldir
626 dvidir
627 pdfdir
628 psdir
629 libdir
630 localedir
631 mandir
632 DEFS
633 ECHO_C
634 ECHO_N
635 ECHO_T
636 LIBS
637 build_alias
638 host_alias
639 target_alias
640 LLVM_SRC
641 LLVM_OBJ
642 LLVM_VERSION
643 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 ENABLE_POLLY
655 LLVM_HAS_POLLY
656 subdirs
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 ENDIAN
678 GREP
679 EGREP
680 LLVM_CROSS_COMPILING
681 BUILD_CC
682 BUILD_EXEEXT
683 BUILD_CXX
684 CVSBUILD
685 ENABLE_OPTIMIZED
686 ENABLE_PROFILING
687 DISABLE_ASSERTIONS
688 ENABLE_EXPENSIVE_CHECKS
689 EXPENSIVE_CHECKS
690 DEBUG_RUNTIME
691 DEBUG_SYMBOLS
692 JIT
693 TARGET_HAS_JIT
694 ENABLE_DOCS
695 ENABLE_DOXYGEN
696 ENABLE_THREADS
697 ENABLE_PTHREADS
698 ENABLE_PIC
699 ENABLE_SHARED
700 ENABLE_EMBED_STDCXX
701 ENABLE_TIMESTAMPS
702 TARGETS_TO_BUILD
703 LLVM_ENUM_TARGETS
704 LLVM_ENUM_ASM_PRINTERS
705 LLVM_ENUM_ASM_PARSERS
706 LLVM_ENUM_DISASSEMBLERS
707 ENABLE_CBE_PRINTF_A
708 OPTIMIZE_OPTION
709 EXTRA_OPTIONS
710 EXTRA_LD_OPTIONS
711 BINUTILS_INCDIR
712 NM
713 ifGNUmake
714 LN_S
715 CMP
716 CP
717 DATE
718 FIND
719 MKDIR
720 MV
721 RANLIB
722 AR
723 RM
724 SED
725 TAR
726 BINPWD
727 GRAPHVIZ
728 DOT
729 FDP
730 NEATO
731 TWOPI
732 CIRCO
733 GV
734 DOTTY
735 XDOT_PY
736 PERL
737 HAVE_PERL
738 INSTALL_PROGRAM
739 INSTALL_SCRIPT
740 INSTALL_DATA
741 BZIP2
742 CAT
743 DOXYGEN
744 GROFF
745 GZIPBIN
746 POD2HTML
747 POD2MAN
748 PDFROFF
749 RUNTEST
750 TCLSH
751 ZIP
752 OCAMLC
753 OCAMLOPT
754 OCAMLDEP
755 OCAMLDOC
756 GAS
757 HAVE_LINK_VERSION_SCRIPT
758 INSTALL_LTDL_TRUE
759 INSTALL_LTDL_FALSE
760 CONVENIENCE_LTDL_TRUE
761 CONVENIENCE_LTDL_FALSE
762 LIBADD_DL
763 NO_VARIADIC_MACROS
764 NO_MISSING_FIELD_INITIALIZERS
765 USE_UDIS86
766 USE_OPROFILE
767 HAVE_PTHREAD
768 HUGE_VAL_SANITY
769 MMAP_FILE
770 SHLIBEXT
771 SHLIBPATH_VAR
772 LLVM_PREFIX
773 LLVM_BINDIR
774 LLVM_LIBDIR
775 LLVM_DATADIR
776 LLVM_DOCSDIR
777 LLVM_ETCDIR
778 LLVM_INCLUDEDIR
779 LLVM_INFODIR
780 LLVM_MANDIR
781 LLVM_CONFIGTIME
782 BINDINGS_TO_BUILD
783 ALL_BINDINGS
784 OCAML_LIBDIR
785 ENABLE_VISIBILITY_INLINES_HIDDEN
786 RPATH
787 RDYNAMIC
788 LIBOBJS
789 LTLIBOBJS'
790 ac_subst_files=''
791       ac_precious_vars='build_alias
792 host_alias
793 target_alias
794 CC
795 CFLAGS
796 LDFLAGS
797 CPPFLAGS
798 CXX
799 CXXFLAGS
800 CCC
801 CPP'
802 ac_subdirs_all='tools/polly'
803
804 # Initialize some variables set by options.
805 ac_init_help=
806 ac_init_version=false
807 # The variables have the same names as the options, with
808 # dashes changed to underlines.
809 cache_file=/dev/null
810 exec_prefix=NONE
811 no_create=
812 no_recursion=
813 prefix=NONE
814 program_prefix=NONE
815 program_suffix=NONE
816 program_transform_name=s,x,x,
817 silent=
818 site=
819 srcdir=
820 verbose=
821 x_includes=NONE
822 x_libraries=NONE
823
824 # Installation directory options.
825 # These are left unexpanded so users can "make install exec_prefix=/foo"
826 # and all the variables that are supposed to be based on exec_prefix
827 # by default will actually change.
828 # Use braces instead of parens because sh, perl, etc. also accept them.
829 # (The list follows the same order as the GNU Coding Standards.)
830 bindir='${exec_prefix}/bin'
831 sbindir='${exec_prefix}/sbin'
832 libexecdir='${exec_prefix}/libexec'
833 datarootdir='${prefix}/share'
834 datadir='${datarootdir}'
835 sysconfdir='${prefix}/etc'
836 sharedstatedir='${prefix}/com'
837 localstatedir='${prefix}/var'
838 includedir='${prefix}/include'
839 oldincludedir='/usr/include'
840 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
841 infodir='${datarootdir}/info'
842 htmldir='${docdir}'
843 dvidir='${docdir}'
844 pdfdir='${docdir}'
845 psdir='${docdir}'
846 libdir='${exec_prefix}/lib'
847 localedir='${datarootdir}/locale'
848 mandir='${datarootdir}/man'
849
850 ac_prev=
851 ac_dashdash=
852 for ac_option
853 do
854   # If the previous option needs an argument, assign it.
855   if test -n "$ac_prev"; then
856     eval $ac_prev=\$ac_option
857     ac_prev=
858     continue
859   fi
860
861   case $ac_option in
862   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
863   *)    ac_optarg=yes ;;
864   esac
865
866   # Accept the important Cygnus configure options, so we can diagnose typos.
867
868   case $ac_dashdash$ac_option in
869   --)
870     ac_dashdash=yes ;;
871
872   -bindir | --bindir | --bindi | --bind | --bin | --bi)
873     ac_prev=bindir ;;
874   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
875     bindir=$ac_optarg ;;
876
877   -build | --build | --buil | --bui | --bu)
878     ac_prev=build_alias ;;
879   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
880     build_alias=$ac_optarg ;;
881
882   -cache-file | --cache-file | --cache-fil | --cache-fi \
883   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
884     ac_prev=cache_file ;;
885   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
886   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
887     cache_file=$ac_optarg ;;
888
889   --config-cache | -C)
890     cache_file=config.cache ;;
891
892   -datadir | --datadir | --datadi | --datad)
893     ac_prev=datadir ;;
894   -datadir=* | --datadir=* | --datadi=* | --datad=*)
895     datadir=$ac_optarg ;;
896
897   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
898   | --dataroo | --dataro | --datar)
899     ac_prev=datarootdir ;;
900   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
901   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
902     datarootdir=$ac_optarg ;;
903
904   -disable-* | --disable-*)
905     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
906     # Reject names that are not valid shell variable names.
907     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
908       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
909    { (exit 1); exit 1; }; }
910     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
911     eval enable_$ac_feature=no ;;
912
913   -docdir | --docdir | --docdi | --doc | --do)
914     ac_prev=docdir ;;
915   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
916     docdir=$ac_optarg ;;
917
918   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
919     ac_prev=dvidir ;;
920   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
921     dvidir=$ac_optarg ;;
922
923   -enable-* | --enable-*)
924     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
925     # Reject names that are not valid shell variable names.
926     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
927       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
928    { (exit 1); exit 1; }; }
929     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
930     eval enable_$ac_feature=\$ac_optarg ;;
931
932   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934   | --exec | --exe | --ex)
935     ac_prev=exec_prefix ;;
936   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938   | --exec=* | --exe=* | --ex=*)
939     exec_prefix=$ac_optarg ;;
940
941   -gas | --gas | --ga | --g)
942     # Obsolete; use --with-gas.
943     with_gas=yes ;;
944
945   -help | --help | --hel | --he | -h)
946     ac_init_help=long ;;
947   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948     ac_init_help=recursive ;;
949   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950     ac_init_help=short ;;
951
952   -host | --host | --hos | --ho)
953     ac_prev=host_alias ;;
954   -host=* | --host=* | --hos=* | --ho=*)
955     host_alias=$ac_optarg ;;
956
957   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
958     ac_prev=htmldir ;;
959   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
960   | --ht=*)
961     htmldir=$ac_optarg ;;
962
963   -includedir | --includedir | --includedi | --included | --include \
964   | --includ | --inclu | --incl | --inc)
965     ac_prev=includedir ;;
966   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967   | --includ=* | --inclu=* | --incl=* | --inc=*)
968     includedir=$ac_optarg ;;
969
970   -infodir | --infodir | --infodi | --infod | --info | --inf)
971     ac_prev=infodir ;;
972   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973     infodir=$ac_optarg ;;
974
975   -libdir | --libdir | --libdi | --libd)
976     ac_prev=libdir ;;
977   -libdir=* | --libdir=* | --libdi=* | --libd=*)
978     libdir=$ac_optarg ;;
979
980   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981   | --libexe | --libex | --libe)
982     ac_prev=libexecdir ;;
983   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984   | --libexe=* | --libex=* | --libe=*)
985     libexecdir=$ac_optarg ;;
986
987   -localedir | --localedir | --localedi | --localed | --locale)
988     ac_prev=localedir ;;
989   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990     localedir=$ac_optarg ;;
991
992   -localstatedir | --localstatedir | --localstatedi | --localstated \
993   | --localstate | --localstat | --localsta | --localst | --locals)
994     ac_prev=localstatedir ;;
995   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
996   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
997     localstatedir=$ac_optarg ;;
998
999   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000     ac_prev=mandir ;;
1001   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002     mandir=$ac_optarg ;;
1003
1004   -nfp | --nfp | --nf)
1005     # Obsolete; use --without-fp.
1006     with_fp=no ;;
1007
1008   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009   | --no-cr | --no-c | -n)
1010     no_create=yes ;;
1011
1012   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014     no_recursion=yes ;;
1015
1016   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018   | --oldin | --oldi | --old | --ol | --o)
1019     ac_prev=oldincludedir ;;
1020   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1023     oldincludedir=$ac_optarg ;;
1024
1025   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026     ac_prev=prefix ;;
1027   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028     prefix=$ac_optarg ;;
1029
1030   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031   | --program-pre | --program-pr | --program-p)
1032     ac_prev=program_prefix ;;
1033   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1035     program_prefix=$ac_optarg ;;
1036
1037   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038   | --program-suf | --program-su | --program-s)
1039     ac_prev=program_suffix ;;
1040   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1042     program_suffix=$ac_optarg ;;
1043
1044   -program-transform-name | --program-transform-name \
1045   | --program-transform-nam | --program-transform-na \
1046   | --program-transform-n | --program-transform- \
1047   | --program-transform | --program-transfor \
1048   | --program-transfo | --program-transf \
1049   | --program-trans | --program-tran \
1050   | --progr-tra | --program-tr | --program-t)
1051     ac_prev=program_transform_name ;;
1052   -program-transform-name=* | --program-transform-name=* \
1053   | --program-transform-nam=* | --program-transform-na=* \
1054   | --program-transform-n=* | --program-transform-=* \
1055   | --program-transform=* | --program-transfor=* \
1056   | --program-transfo=* | --program-transf=* \
1057   | --program-trans=* | --program-tran=* \
1058   | --progr-tra=* | --program-tr=* | --program-t=*)
1059     program_transform_name=$ac_optarg ;;
1060
1061   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1062     ac_prev=pdfdir ;;
1063   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064     pdfdir=$ac_optarg ;;
1065
1066   -psdir | --psdir | --psdi | --psd | --ps)
1067     ac_prev=psdir ;;
1068   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1069     psdir=$ac_optarg ;;
1070
1071   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072   | -silent | --silent | --silen | --sile | --sil)
1073     silent=yes ;;
1074
1075   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1076     ac_prev=sbindir ;;
1077   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1078   | --sbi=* | --sb=*)
1079     sbindir=$ac_optarg ;;
1080
1081   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1082   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1083   | --sharedst | --shareds | --shared | --share | --shar \
1084   | --sha | --sh)
1085     ac_prev=sharedstatedir ;;
1086   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1087   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1088   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1089   | --sha=* | --sh=*)
1090     sharedstatedir=$ac_optarg ;;
1091
1092   -site | --site | --sit)
1093     ac_prev=site ;;
1094   -site=* | --site=* | --sit=*)
1095     site=$ac_optarg ;;
1096
1097   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1098     ac_prev=srcdir ;;
1099   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1100     srcdir=$ac_optarg ;;
1101
1102   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1103   | --syscon | --sysco | --sysc | --sys | --sy)
1104     ac_prev=sysconfdir ;;
1105   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1106   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1107     sysconfdir=$ac_optarg ;;
1108
1109   -target | --target | --targe | --targ | --tar | --ta | --t)
1110     ac_prev=target_alias ;;
1111   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1112     target_alias=$ac_optarg ;;
1113
1114   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1115     verbose=yes ;;
1116
1117   -version | --version | --versio | --versi | --vers | -V)
1118     ac_init_version=: ;;
1119
1120   -with-* | --with-*)
1121     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1122     # Reject names that are not valid shell variable names.
1123     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1124       { echo "$as_me: error: invalid package name: $ac_package" >&2
1125    { (exit 1); exit 1; }; }
1126     ac_package=`echo $ac_package| sed 's/-/_/g'`
1127     eval with_$ac_package=\$ac_optarg ;;
1128
1129   -without-* | --without-*)
1130     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131     # Reject names that are not valid shell variable names.
1132     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1133       { echo "$as_me: error: invalid package name: $ac_package" >&2
1134    { (exit 1); exit 1; }; }
1135     ac_package=`echo $ac_package | sed 's/-/_/g'`
1136     eval with_$ac_package=no ;;
1137
1138   --x)
1139     # Obsolete; use --with-x.
1140     with_x=yes ;;
1141
1142   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1143   | --x-incl | --x-inc | --x-in | --x-i)
1144     ac_prev=x_includes ;;
1145   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1146   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1147     x_includes=$ac_optarg ;;
1148
1149   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1150   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1151     ac_prev=x_libraries ;;
1152   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1153   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1154     x_libraries=$ac_optarg ;;
1155
1156   -*) { echo "$as_me: error: unrecognized option: $ac_option
1157 Try \`$0 --help' for more information." >&2
1158    { (exit 1); exit 1; }; }
1159     ;;
1160
1161   *=*)
1162     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1163     # Reject names that are not valid shell variable names.
1164     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1165       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1166    { (exit 1); exit 1; }; }
1167     eval $ac_envvar=\$ac_optarg
1168     export $ac_envvar ;;
1169
1170   *)
1171     # FIXME: should be removed in autoconf 3.0.
1172     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1173     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1174       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1175     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1176     ;;
1177
1178   esac
1179 done
1180
1181 if test -n "$ac_prev"; then
1182   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1183   { echo "$as_me: error: missing argument to $ac_option" >&2
1184    { (exit 1); exit 1; }; }
1185 fi
1186
1187 # Be sure to have absolute directory names.
1188 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1189                 datadir sysconfdir sharedstatedir localstatedir includedir \
1190                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1191                 libdir localedir mandir
1192 do
1193   eval ac_val=\$$ac_var
1194   case $ac_val in
1195     [\\/$]* | ?:[\\/]* )  continue;;
1196     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1197   esac
1198   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1199    { (exit 1); exit 1; }; }
1200 done
1201
1202 # There might be people who depend on the old broken behavior: `$host'
1203 # used to hold the argument of --host etc.
1204 # FIXME: To remove some day.
1205 build=$build_alias
1206 host=$host_alias
1207 target=$target_alias
1208
1209 # FIXME: To remove some day.
1210 if test "x$host_alias" != x; then
1211   if test "x$build_alias" = x; then
1212     cross_compiling=maybe
1213     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1214     If a cross compiler is detected then cross compile mode will be used." >&2
1215   elif test "x$build_alias" != "x$host_alias"; then
1216     cross_compiling=yes
1217   fi
1218 fi
1219
1220 ac_tool_prefix=
1221 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1222
1223 test "$silent" = yes && exec 6>/dev/null
1224
1225
1226 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1227 ac_ls_di=`ls -di .` &&
1228 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1229   { echo "$as_me: error: Working directory cannot be determined" >&2
1230    { (exit 1); exit 1; }; }
1231 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1232   { echo "$as_me: error: pwd does not report name of working directory" >&2
1233    { (exit 1); exit 1; }; }
1234
1235
1236 # Find the source files, if location was not specified.
1237 if test -z "$srcdir"; then
1238   ac_srcdir_defaulted=yes
1239   # Try the directory containing this script, then the parent directory.
1240   ac_confdir=`$as_dirname -- "$0" ||
1241 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1242          X"$0" : 'X\(//\)[^/]' \| \
1243          X"$0" : 'X\(//\)$' \| \
1244          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1245 echo X"$0" |
1246     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1247             s//\1/
1248             q
1249           }
1250           /^X\(\/\/\)[^/].*/{
1251             s//\1/
1252             q
1253           }
1254           /^X\(\/\/\)$/{
1255             s//\1/
1256             q
1257           }
1258           /^X\(\/\).*/{
1259             s//\1/
1260             q
1261           }
1262           s/.*/./; q'`
1263   srcdir=$ac_confdir
1264   if test ! -r "$srcdir/$ac_unique_file"; then
1265     srcdir=..
1266   fi
1267 else
1268   ac_srcdir_defaulted=no
1269 fi
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1271   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1272   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1273    { (exit 1); exit 1; }; }
1274 fi
1275 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1276 ac_abs_confdir=`(
1277         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1278    { (exit 1); exit 1; }; }
1279         pwd)`
1280 # When building in place, set srcdir=.
1281 if test "$ac_abs_confdir" = "$ac_pwd"; then
1282   srcdir=.
1283 fi
1284 # Remove unnecessary trailing slashes from srcdir.
1285 # Double slashes in file names in object file debugging info
1286 # mess up M-x gdb in Emacs.
1287 case $srcdir in
1288 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1289 esac
1290 for ac_var in $ac_precious_vars; do
1291   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1292   eval ac_env_${ac_var}_value=\$${ac_var}
1293   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1294   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1295 done
1296
1297 #
1298 # Report the --help message.
1299 #
1300 if test "$ac_init_help" = "long"; then
1301   # Omit some internal or obsolete options to make the list less imposing.
1302   # This message is too long to be a string in the A/UX 3.1 sh.
1303   cat <<_ACEOF
1304 \`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1305
1306 Usage: $0 [OPTION]... [VAR=VALUE]...
1307
1308 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309 VAR=VALUE.  See below for descriptions of some of the useful variables.
1310
1311 Defaults for the options are specified in brackets.
1312
1313 Configuration:
1314   -h, --help              display this help and exit
1315       --help=short        display options specific to this package
1316       --help=recursive    display the short help of all the included packages
1317   -V, --version           display version information and exit
1318   -q, --quiet, --silent   do not print \`checking...' messages
1319       --cache-file=FILE   cache test results in FILE [disabled]
1320   -C, --config-cache      alias for \`--cache-file=config.cache'
1321   -n, --no-create         do not create output files
1322       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1323
1324 Installation directories:
1325   --prefix=PREFIX         install architecture-independent files in PREFIX
1326                           [$ac_default_prefix]
1327   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1328                           [PREFIX]
1329
1330 By default, \`make install' will install all the files in
1331 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1332 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1333 for instance \`--prefix=\$HOME'.
1334
1335 For better control, use the options below.
1336
1337 Fine tuning of the installation directories:
1338   --bindir=DIR           user executables [EPREFIX/bin]
1339   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1340   --libexecdir=DIR       program executables [EPREFIX/libexec]
1341   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1342   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1343   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1344   --libdir=DIR           object code libraries [EPREFIX/lib]
1345   --includedir=DIR       C header files [PREFIX/include]
1346   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1347   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1348   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1349   --infodir=DIR          info documentation [DATAROOTDIR/info]
1350   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1351   --mandir=DIR           man documentation [DATAROOTDIR/man]
1352   --docdir=DIR           documentation root [DATAROOTDIR/doc/--sample--]
1353   --htmldir=DIR          html documentation [DOCDIR]
1354   --dvidir=DIR           dvi documentation [DOCDIR]
1355   --pdfdir=DIR           pdf documentation [DOCDIR]
1356   --psdir=DIR            ps documentation [DOCDIR]
1357 _ACEOF
1358
1359   cat <<\_ACEOF
1360
1361 System types:
1362   --build=BUILD     configure for building on BUILD [guessed]
1363   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1364   --target=TARGET   configure for building compilers for TARGET [HOST]
1365 _ACEOF
1366 fi
1367
1368 if test -n "$ac_init_help"; then
1369   case $ac_init_help in
1370      short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1371    esac
1372   cat <<\_ACEOF
1373
1374 Optional Features:
1375   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1376   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1377   --enable-polly          Use polly if available (default is YES)
1378   --enable-optimized      Compile with optimizations enabled (default is NO)
1379   --enable-profiling      Compile with profiling enabled (default is NO)
1380   --enable-assertions     Compile with assertion checks enabled (default is
1381                           YES)
1382   --enable-expensive-checks
1383                           Compile with expensive debug checks enabled (default
1384                           is NO)
1385   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1386                           NO)
1387   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1388                           optimization is on and YES if it's off)
1389   --enable-jit            Enable Just In Time Compiling (default is YES)
1390   --enable-docs           Build documents (default is YES)
1391   --enable-doxygen        Build doxygen documentation (default is NO)
1392   --enable-threads        Use threads if available (default is YES)
1393   --enable-pthreads       Use pthreads if available (default is YES)
1394   --enable-pic            Build LLVM with Position Independent Code (default
1395                           is YES)
1396   --enable-shared         Build a shared library and link tools against it
1397                           (default is NO)
1398   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1399                           Win32 DLL (default is YES)
1400   --enable-timestamps     Enable embedding timestamp information in build
1401                           (default is YES)
1402   --enable-targets        Build specific host targets: all or
1403                           target1,target2,... Valid targets are: host, x86,
1404                           x86_64, sparc, powerpc, alpha, arm, mips, spu,
1405                           xcore, msp430, ptx, cbe, and cpp
1406                           (default=all)
1407   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1408                           %a (default is YES)
1409   --enable-bindings       Build specific language bindings:
1410                           all,auto,none,{binding-name} (default=auto)
1411   --enable-libffi         Check for the presence of libffi (default is NO)
1412   --enable-ltdl-install   install libltdl
1413
1414 Optional Packages:
1415   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1416   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1417   --with-llvmsrc          Location of LLVM Source Code
1418   --with-llvmobj          Location of LLVM Object Code
1419   --with-optimize-option  Select the compiler options to use for optimized
1420                           builds
1421   --with-extra-options    Specify additional options to compile LLVM with
1422   --with-extra-ld-options Specify additional options to link LLVM with
1423   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1424                           is stdlib)
1425   --with-clang-resource-dir
1426                           Relative directory from the Clang binary for
1427                           resource files
1428   --with-c-include-dirs   Colon separated list of directories clang will
1429                           search for headers
1430   --with-cxx-include-root Directory with the libstdc++ headers.
1431   --with-cxx-include-arch Architecture of the libstdc++ headers.
1432   --with-cxx-include-32bit-dir
1433                           32 bit multilib dir.
1434   --with-cxx-include-64bit-dir
1435                           64 bit multilib directory.
1436   --with-binutils-include Specify path to binutils/include/ containing
1437                           plugin-api.h file for gold plugin.
1438   --with-bug-report-url   Specify the URL where bug reports should be
1439                           submitted (default=http://llvm.org/bugs/)
1440   --with-tclinclude       directory where tcl headers are
1441   --with-udis86=<path>    Use udis86 external x86 disassembler library
1442   --with-oprofile=<prefix>
1443                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1444
1445 Some influential environment variables:
1446   CC          C compiler command
1447   CFLAGS      C compiler flags
1448   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1449               nonstandard directory <lib dir>
1450   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1451               you have headers in a nonstandard directory <include dir>
1452   CXX         C++ compiler command
1453   CXXFLAGS    C++ compiler flags
1454   CPP         C preprocessor
1455
1456 Use these variables to override the choices made by `configure' or to help
1457 it to find libraries and programs with nonstandard names/locations.
1458
1459 Report bugs to <bugs@yourdomain>.
1460 _ACEOF
1461 ac_status=$?
1462 fi
1463
1464 if test "$ac_init_help" = "recursive"; then
1465   # If there are subdirs, report their specific --help.
1466   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1467     test -d "$ac_dir" || continue
1468     ac_builddir=.
1469
1470 case "$ac_dir" in
1471 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472 *)
1473   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1474   # A ".." for each directory in $ac_dir_suffix.
1475   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1476   case $ac_top_builddir_sub in
1477   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1479   esac ;;
1480 esac
1481 ac_abs_top_builddir=$ac_pwd
1482 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1483 # for backward compatibility:
1484 ac_top_builddir=$ac_top_build_prefix
1485
1486 case $srcdir in
1487   .)  # We are building in place.
1488     ac_srcdir=.
1489     ac_top_srcdir=$ac_top_builddir_sub
1490     ac_abs_top_srcdir=$ac_pwd ;;
1491   [\\/]* | ?:[\\/]* )  # Absolute name.
1492     ac_srcdir=$srcdir$ac_dir_suffix;
1493     ac_top_srcdir=$srcdir
1494     ac_abs_top_srcdir=$srcdir ;;
1495   *) # Relative name.
1496     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1497     ac_top_srcdir=$ac_top_build_prefix$srcdir
1498     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1499 esac
1500 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1501
1502     cd "$ac_dir" || { ac_status=$?; continue; }
1503     # Check for guested configure.
1504     if test -f "$ac_srcdir/configure.gnu"; then
1505       echo &&
1506       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1507     elif test -f "$ac_srcdir/configure"; then
1508       echo &&
1509       $SHELL "$ac_srcdir/configure" --help=recursive
1510     else
1511       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1512     fi || ac_status=$?
1513     cd "$ac_pwd" || { ac_status=$?; break; }
1514   done
1515 fi
1516
1517 test -n "$ac_init_help" && exit $ac_status
1518 if $ac_init_version; then
1519   cat <<\_ACEOF
1520 [SAMPLE] configure [x.xx]
1521 generated by GNU Autoconf 2.60
1522
1523 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1524 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1525 This configure script is free software; the Free Software Foundation
1526 gives unlimited permission to copy, distribute and modify it.
1527 _ACEOF
1528   exit
1529 fi
1530 cat >config.log <<_ACEOF
1531 This file contains any messages produced by compilers while
1532 running configure, to aid debugging if configure makes a mistake.
1533
1534 It was created by [SAMPLE] $as_me [x.xx], which was
1535 generated by GNU Autoconf 2.60.  Invocation command line was
1536
1537   $ $0 $@
1538
1539 _ACEOF
1540 exec 5>>config.log
1541 {
1542 cat <<_ASUNAME
1543 ## --------- ##
1544 ## Platform. ##
1545 ## --------- ##
1546
1547 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1548 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1549 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1550 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1551 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1552
1553 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1554 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1555
1556 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1557 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1558 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1559 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1560 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1561 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1562 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1563
1564 _ASUNAME
1565
1566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567 for as_dir in $PATH
1568 do
1569   IFS=$as_save_IFS
1570   test -z "$as_dir" && as_dir=.
1571   echo "PATH: $as_dir"
1572 done
1573 IFS=$as_save_IFS
1574
1575 } >&5
1576
1577 cat >&5 <<_ACEOF
1578
1579
1580 ## ----------- ##
1581 ## Core tests. ##
1582 ## ----------- ##
1583
1584 _ACEOF
1585
1586
1587 # Keep a trace of the command line.
1588 # Strip out --no-create and --no-recursion so they do not pile up.
1589 # Strip out --silent because we don't want to record it for future runs.
1590 # Also quote any args containing shell meta-characters.
1591 # Make two passes to allow for proper duplicate-argument suppression.
1592 ac_configure_args=
1593 ac_configure_args0=
1594 ac_configure_args1=
1595 ac_must_keep_next=false
1596 for ac_pass in 1 2
1597 do
1598   for ac_arg
1599   do
1600     case $ac_arg in
1601     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1602     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1603     | -silent | --silent | --silen | --sile | --sil)
1604       continue ;;
1605     *\'*)
1606       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1607     esac
1608     case $ac_pass in
1609     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1610     2)
1611       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1612       if test $ac_must_keep_next = true; then
1613         ac_must_keep_next=false # Got value, back to normal.
1614       else
1615         case $ac_arg in
1616           *=* | --config-cache | -C | -disable-* | --disable-* \
1617           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1618           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1619           | -with-* | --with-* | -without-* | --without-* | --x)
1620             case "$ac_configure_args0 " in
1621               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1622             esac
1623             ;;
1624           -* ) ac_must_keep_next=true ;;
1625         esac
1626       fi
1627       ac_configure_args="$ac_configure_args '$ac_arg'"
1628       ;;
1629     esac
1630   done
1631 done
1632 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1633 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1634
1635 # When interrupted or exit'd, cleanup temporary files, and complete
1636 # config.log.  We remove comments because anyway the quotes in there
1637 # would cause problems or look ugly.
1638 # WARNING: Use '\'' to represent an apostrophe within the trap.
1639 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1640 trap 'exit_status=$?
1641   # Save into config.log some information that might help in debugging.
1642   {
1643     echo
1644
1645     cat <<\_ASBOX
1646 ## ---------------- ##
1647 ## Cache variables. ##
1648 ## ---------------- ##
1649 _ASBOX
1650     echo
1651     # The following way of writing the cache mishandles newlines in values,
1652 (
1653   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1654     eval ac_val=\$$ac_var
1655     case $ac_val in #(
1656     *${as_nl}*)
1657       case $ac_var in #(
1658       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1659 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1660       esac
1661       case $ac_var in #(
1662       _ | IFS | as_nl) ;; #(
1663       *) $as_unset $ac_var ;;
1664       esac ;;
1665     esac
1666   done
1667   (set) 2>&1 |
1668     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1669     *${as_nl}ac_space=\ *)
1670       sed -n \
1671         "s/'\''/'\''\\\\'\'''\''/g;
1672           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1673       ;; #(
1674     *)
1675       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1676       ;;
1677     esac |
1678     sort
1679 )
1680     echo
1681
1682     cat <<\_ASBOX
1683 ## ----------------- ##
1684 ## Output variables. ##
1685 ## ----------------- ##
1686 _ASBOX
1687     echo
1688     for ac_var in $ac_subst_vars
1689     do
1690       eval ac_val=\$$ac_var
1691       case $ac_val in
1692       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1693       esac
1694       echo "$ac_var='\''$ac_val'\''"
1695     done | sort
1696     echo
1697
1698     if test -n "$ac_subst_files"; then
1699       cat <<\_ASBOX
1700 ## ------------------- ##
1701 ## File substitutions. ##
1702 ## ------------------- ##
1703 _ASBOX
1704       echo
1705       for ac_var in $ac_subst_files
1706       do
1707         eval ac_val=\$$ac_var
1708         case $ac_val in
1709         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1710         esac
1711         echo "$ac_var='\''$ac_val'\''"
1712       done | sort
1713       echo
1714     fi
1715
1716     if test -s confdefs.h; then
1717       cat <<\_ASBOX
1718 ## ----------- ##
1719 ## confdefs.h. ##
1720 ## ----------- ##
1721 _ASBOX
1722       echo
1723       cat confdefs.h
1724       echo
1725     fi
1726     test "$ac_signal" != 0 &&
1727       echo "$as_me: caught signal $ac_signal"
1728     echo "$as_me: exit $exit_status"
1729   } >&5
1730   rm -f core *.core core.conftest.* &&
1731     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1732     exit $exit_status
1733 ' 0
1734 for ac_signal in 1 2 13 15; do
1735   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1736 done
1737 ac_signal=0
1738
1739 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1740 rm -f -r conftest* confdefs.h
1741
1742 # Predefined preprocessor variables.
1743
1744 cat >>confdefs.h <<_ACEOF
1745 #define PACKAGE_NAME "$PACKAGE_NAME"
1746 _ACEOF
1747
1748
1749 cat >>confdefs.h <<_ACEOF
1750 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1751 _ACEOF
1752
1753
1754 cat >>confdefs.h <<_ACEOF
1755 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1756 _ACEOF
1757
1758
1759 cat >>confdefs.h <<_ACEOF
1760 #define PACKAGE_STRING "$PACKAGE_STRING"
1761 _ACEOF
1762
1763
1764 cat >>confdefs.h <<_ACEOF
1765 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1766 _ACEOF
1767
1768
1769 # Let the site file select an alternate cache file if it wants to.
1770 # Prefer explicitly selected file to automatically selected ones.
1771 if test -n "$CONFIG_SITE"; then
1772   set x "$CONFIG_SITE"
1773 elif test "x$prefix" != xNONE; then
1774   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1775 else
1776   set x "$ac_default_prefix/share/config.site" \
1777         "$ac_default_prefix/etc/config.site"
1778 fi
1779 shift
1780 for ac_site_file
1781 do
1782   if test -r "$ac_site_file"; then
1783     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1784 echo "$as_me: loading site script $ac_site_file" >&6;}
1785     sed 's/^/| /' "$ac_site_file" >&5
1786     . "$ac_site_file"
1787   fi
1788 done
1789
1790 if test -r "$cache_file"; then
1791   # Some versions of bash will fail to source /dev/null (special
1792   # files actually), so we avoid doing that.
1793   if test -f "$cache_file"; then
1794     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1795 echo "$as_me: loading cache $cache_file" >&6;}
1796     case $cache_file in
1797       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1798       *)                      . "./$cache_file";;
1799     esac
1800   fi
1801 else
1802   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1803 echo "$as_me: creating cache $cache_file" >&6;}
1804   >$cache_file
1805 fi
1806
1807 # Check that the precious variables saved in the cache have kept the same
1808 # value.
1809 ac_cache_corrupted=false
1810 for ac_var in $ac_precious_vars; do
1811   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1812   eval ac_new_set=\$ac_env_${ac_var}_set
1813   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1814   eval ac_new_val=\$ac_env_${ac_var}_value
1815   case $ac_old_set,$ac_new_set in
1816     set,)
1817       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1818 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1819       ac_cache_corrupted=: ;;
1820     ,set)
1821       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1822 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1823       ac_cache_corrupted=: ;;
1824     ,);;
1825     *)
1826       if test "x$ac_old_val" != "x$ac_new_val"; then
1827         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1828 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1829         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1830 echo "$as_me:   former value:  $ac_old_val" >&2;}
1831         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1832 echo "$as_me:   current value: $ac_new_val" >&2;}
1833         ac_cache_corrupted=:
1834       fi;;
1835   esac
1836   # Pass precious variables to config.status.
1837   if test "$ac_new_set" = set; then
1838     case $ac_new_val in
1839     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1840     *) ac_arg=$ac_var=$ac_new_val ;;
1841     esac
1842     case " $ac_configure_args " in
1843       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1844       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1845     esac
1846   fi
1847 done
1848 if $ac_cache_corrupted; then
1849   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1850 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1851   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1852 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1853    { (exit 1); exit 1; }; }
1854 fi
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880 ac_ext=c
1881 ac_cpp='$CPP $CPPFLAGS'
1882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1885
1886
1887
1888 LLVM_SRC_ROOT="../.."
1889 LLVM_OBJ_ROOT="../.."
1890
1891 LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1892 LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
1893
1894
1895 # Check whether --with-llvmsrc was given.
1896 if test "${with_llvmsrc+set}" = set; then
1897   withval=$with_llvmsrc; llvm_src="$withval"
1898 else
1899   llvm_src="$LLVM_ABS_SRC_ROOT"
1900 fi
1901
1902   LLVM_SRC=$llvm_src
1903
1904
1905 # Check whether --with-llvmobj was given.
1906 if test "${with_llvmobj+set}" = set; then
1907   withval=$with_llvmobj; llvm_obj="$withval"
1908 else
1909   llvm_obj="$LLVM_ABS_OBJ_ROOT"
1910 fi
1911
1912   LLVM_OBJ=$llvm_obj
1913
1914   ac_config_commands="$ac_config_commands setup"
1915
1916
1917
1918 { echo "$as_me:$LINENO: checking llvm-config" >&5
1919 echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1920 llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1921 if ! test -f "$llvm_config_path" ; then
1922    llvm_config_path="no"
1923 fi
1924 { echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1925 echo "${ECHO_T}$llvm_config_path" >&6; }
1926
1927 { echo "$as_me:$LINENO: checking LLVM package version" >&5
1928 echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1929 if test "$llvm_config_path" != no ; then
1930   llvm_package_version=`$llvm_config_path --version`
1931 else
1932   llvm_package_version="unknown";
1933 fi
1934 { echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1935 echo "${ECHO_T}$llvm_package_version" >&6; }
1936 LLVM_VERSION=$llvm_package_version
1937
1938
1939
1940
1941 ac_aux_dir=
1942 for ac_dir in autoconf "$srcdir"/autoconf; do
1943   if 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/install.sh"; then
1948     ac_aux_dir=$ac_dir
1949     ac_install_sh="$ac_aux_dir/install.sh -c"
1950     break
1951   elif test -f "$ac_dir/shtool"; then
1952     ac_aux_dir=$ac_dir
1953     ac_install_sh="$ac_aux_dir/shtool install -c"
1954     break
1955   fi
1956 done
1957 if test -z "$ac_aux_dir"; then
1958   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1959 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1960    { (exit 1); exit 1; }; }
1961 fi
1962
1963 # These three variables are undocumented and unsupported,
1964 # and are intended to be withdrawn in a future Autoconf release.
1965 # They can cause serious problems if a builder's source tree is in a directory
1966 # whose full name contains unusual characters.
1967 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1968 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1969 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1970
1971
1972
1973
1974 ac_ext=c
1975 ac_cpp='$CPP $CPPFLAGS'
1976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1979 if test -n "$ac_tool_prefix"; then
1980   for ac_prog in clang llvm-gcc gcc
1981   do
1982     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1983 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1986 if test "${ac_cv_prog_CC+set}" = set; then
1987   echo $ECHO_N "(cached) $ECHO_C" >&6
1988 else
1989   if test -n "$CC"; then
1990   ac_cv_prog_CC="$CC" # Let the user override the test.
1991 else
1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993 for as_dir in $PATH
1994 do
1995   IFS=$as_save_IFS
1996   test -z "$as_dir" && as_dir=.
1997   for ac_exec_ext in '' $ac_executable_extensions; do
1998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1999     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2001     break 2
2002   fi
2003 done
2004 done
2005 IFS=$as_save_IFS
2006
2007 fi
2008 fi
2009 CC=$ac_cv_prog_CC
2010 if test -n "$CC"; then
2011   { echo "$as_me:$LINENO: result: $CC" >&5
2012 echo "${ECHO_T}$CC" >&6; }
2013 else
2014   { echo "$as_me:$LINENO: result: no" >&5
2015 echo "${ECHO_T}no" >&6; }
2016 fi
2017
2018
2019     test -n "$CC" && break
2020   done
2021 fi
2022 if test -z "$CC"; then
2023   ac_ct_CC=$CC
2024   for ac_prog in clang llvm-gcc gcc
2025 do
2026   # Extract the first word of "$ac_prog", so it can be a program name with args.
2027 set dummy $ac_prog; ac_word=$2
2028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2030 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2031   echo $ECHO_N "(cached) $ECHO_C" >&6
2032 else
2033   if test -n "$ac_ct_CC"; then
2034   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2035 else
2036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037 for as_dir in $PATH
2038 do
2039   IFS=$as_save_IFS
2040   test -z "$as_dir" && as_dir=.
2041   for ac_exec_ext in '' $ac_executable_extensions; do
2042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2043     ac_cv_prog_ac_ct_CC="$ac_prog"
2044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045     break 2
2046   fi
2047 done
2048 done
2049 IFS=$as_save_IFS
2050
2051 fi
2052 fi
2053 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2054 if test -n "$ac_ct_CC"; then
2055   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2056 echo "${ECHO_T}$ac_ct_CC" >&6; }
2057 else
2058   { echo "$as_me:$LINENO: result: no" >&5
2059 echo "${ECHO_T}no" >&6; }
2060 fi
2061
2062
2063   test -n "$ac_ct_CC" && break
2064 done
2065
2066   if test "x$ac_ct_CC" = x; then
2067     CC=""
2068   else
2069     case $cross_compiling:$ac_tool_warned in
2070 yes:)
2071 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2072 whose name does not start with the host triplet.  If you think this
2073 configuration is useful to you, please write to autoconf@gnu.org." >&5
2074 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2075 whose name does not start with the host triplet.  If you think this
2076 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2077 ac_tool_warned=yes ;;
2078 esac
2079     CC=$ac_ct_CC
2080   fi
2081 fi
2082
2083
2084 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2085 See \`config.log' for more details." >&5
2086 echo "$as_me: error: no acceptable C compiler found in \$PATH
2087 See \`config.log' for more details." >&2;}
2088    { (exit 1); exit 1; }; }
2089
2090 # Provide some information about the compiler.
2091 echo "$as_me:$LINENO: checking for C compiler version" >&5
2092 ac_compiler=`set X $ac_compile; echo $2`
2093 { (ac_try="$ac_compiler --version >&5"
2094 case "(($ac_try" in
2095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2096   *) ac_try_echo=$ac_try;;
2097 esac
2098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2099   (eval "$ac_compiler --version >&5") 2>&5
2100   ac_status=$?
2101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102   (exit $ac_status); }
2103 { (ac_try="$ac_compiler -v >&5"
2104 case "(($ac_try" in
2105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106   *) ac_try_echo=$ac_try;;
2107 esac
2108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2109   (eval "$ac_compiler -v >&5") 2>&5
2110   ac_status=$?
2111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112   (exit $ac_status); }
2113 { (ac_try="$ac_compiler -V >&5"
2114 case "(($ac_try" in
2115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116   *) ac_try_echo=$ac_try;;
2117 esac
2118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2119   (eval "$ac_compiler -V >&5") 2>&5
2120   ac_status=$?
2121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122   (exit $ac_status); }
2123
2124 cat >conftest.$ac_ext <<_ACEOF
2125 /* confdefs.h.  */
2126 _ACEOF
2127 cat confdefs.h >>conftest.$ac_ext
2128 cat >>conftest.$ac_ext <<_ACEOF
2129 /* end confdefs.h.  */
2130
2131 int
2132 main ()
2133 {
2134
2135   ;
2136   return 0;
2137 }
2138 _ACEOF
2139 ac_clean_files_save=$ac_clean_files
2140 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2141 # Try to create an executable without -o first, disregard a.out.
2142 # It will help us diagnose broken compilers, and finding out an intuition
2143 # of exeext.
2144 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2145 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2146 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2147 #
2148 # List of possible output files, starting from the most likely.
2149 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2150 # only as a last resort.  b.out is created by i960 compilers.
2151 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2152 #
2153 # The IRIX 6 linker writes into existing files which may not be
2154 # executable, retaining their permissions.  Remove them first so a
2155 # subsequent execution test works.
2156 ac_rmfiles=
2157 for ac_file in $ac_files
2158 do
2159   case $ac_file in
2160     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2161     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2162   esac
2163 done
2164 rm -f $ac_rmfiles
2165
2166 if { (ac_try="$ac_link_default"
2167 case "(($ac_try" in
2168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2169   *) ac_try_echo=$ac_try;;
2170 esac
2171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2172   (eval "$ac_link_default") 2>&5
2173   ac_status=$?
2174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175   (exit $ac_status); }; then
2176   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2177 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2178 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2179 # so that the user can short-circuit this test for compilers unknown to
2180 # Autoconf.
2181 for ac_file in $ac_files
2182 do
2183   test -f "$ac_file" || continue
2184   case $ac_file in
2185     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2186         ;;
2187     [ab].out )
2188         # We found the default executable, but exeext='' is most
2189         # certainly right.
2190         break;;
2191     *.* )
2192         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2193         then :; else
2194            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2195         fi
2196         # We set ac_cv_exeext here because the later test for it is not
2197         # safe: cross compilers may not add the suffix if given an `-o'
2198         # argument, so we may need to know it at that point already.
2199         # Even if this section looks crufty: it has the advantage of
2200         # actually working.
2201         break;;
2202     * )
2203         break;;
2204   esac
2205 done
2206 test "$ac_cv_exeext" = no && ac_cv_exeext=
2207
2208 else
2209   echo "$as_me: failed program was:" >&5
2210 sed 's/^/| /' conftest.$ac_ext >&5
2211
2212 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2213 See \`config.log' for more details." >&5
2214 echo "$as_me: error: C compiler cannot create executables
2215 See \`config.log' for more details." >&2;}
2216    { (exit 77); exit 77; }; }
2217 fi
2218
2219 ac_exeext=$ac_cv_exeext
2220 { echo "$as_me:$LINENO: result: $ac_file" >&5
2221 echo "${ECHO_T}$ac_file" >&6; }
2222
2223 # Check that the compiler produces executables we can run.  If not, either
2224 # the compiler is broken, or we cross compile.
2225 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2226 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2227 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2228 # If not cross compiling, check that we can run a simple program.
2229 if test "$cross_compiling" != yes; then
2230   if { ac_try='./$ac_file'
2231   { (case "(($ac_try" in
2232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2233   *) ac_try_echo=$ac_try;;
2234 esac
2235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2236   (eval "$ac_try") 2>&5
2237   ac_status=$?
2238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239   (exit $ac_status); }; }; then
2240     cross_compiling=no
2241   else
2242     if test "$cross_compiling" = maybe; then
2243         cross_compiling=yes
2244     else
2245         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2246 If you meant to cross compile, use \`--host'.
2247 See \`config.log' for more details." >&5
2248 echo "$as_me: error: cannot run C compiled programs.
2249 If you meant to cross compile, use \`--host'.
2250 See \`config.log' for more details." >&2;}
2251    { (exit 1); exit 1; }; }
2252     fi
2253   fi
2254 fi
2255 { echo "$as_me:$LINENO: result: yes" >&5
2256 echo "${ECHO_T}yes" >&6; }
2257
2258 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2259 ac_clean_files=$ac_clean_files_save
2260 # Check that the compiler produces executables we can run.  If not, either
2261 # the compiler is broken, or we cross compile.
2262 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2263 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2264 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2265 echo "${ECHO_T}$cross_compiling" >&6; }
2266
2267 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2268 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2269 if { (ac_try="$ac_link"
2270 case "(($ac_try" in
2271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2272   *) ac_try_echo=$ac_try;;
2273 esac
2274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2275   (eval "$ac_link") 2>&5
2276   ac_status=$?
2277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278   (exit $ac_status); }; then
2279   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2280 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2281 # work properly (i.e., refer to `conftest.exe'), while it won't with
2282 # `rm'.
2283 for ac_file in conftest.exe conftest conftest.*; do
2284   test -f "$ac_file" || continue
2285   case $ac_file in
2286     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2287     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2288           break;;
2289     * ) break;;
2290   esac
2291 done
2292 else
2293   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2294 See \`config.log' for more details." >&5
2295 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2296 See \`config.log' for more details." >&2;}
2297    { (exit 1); exit 1; }; }
2298 fi
2299
2300 rm -f conftest$ac_cv_exeext
2301 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2302 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2303
2304 rm -f conftest.$ac_ext
2305 EXEEXT=$ac_cv_exeext
2306 ac_exeext=$EXEEXT
2307 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2308 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2309 if test "${ac_cv_objext+set}" = set; then
2310   echo $ECHO_N "(cached) $ECHO_C" >&6
2311 else
2312   cat >conftest.$ac_ext <<_ACEOF
2313 /* confdefs.h.  */
2314 _ACEOF
2315 cat confdefs.h >>conftest.$ac_ext
2316 cat >>conftest.$ac_ext <<_ACEOF
2317 /* end confdefs.h.  */
2318
2319 int
2320 main ()
2321 {
2322
2323   ;
2324   return 0;
2325 }
2326 _ACEOF
2327 rm -f conftest.o conftest.obj
2328 if { (ac_try="$ac_compile"
2329 case "(($ac_try" in
2330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2331   *) ac_try_echo=$ac_try;;
2332 esac
2333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2334   (eval "$ac_compile") 2>&5
2335   ac_status=$?
2336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337   (exit $ac_status); }; then
2338   for ac_file in conftest.o conftest.obj conftest.*; do
2339   test -f "$ac_file" || continue;
2340   case $ac_file in
2341     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2342     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2343        break;;
2344   esac
2345 done
2346 else
2347   echo "$as_me: failed program was:" >&5
2348 sed 's/^/| /' conftest.$ac_ext >&5
2349
2350 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2351 See \`config.log' for more details." >&5
2352 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2353 See \`config.log' for more details." >&2;}
2354    { (exit 1); exit 1; }; }
2355 fi
2356
2357 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2358 fi
2359 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2360 echo "${ECHO_T}$ac_cv_objext" >&6; }
2361 OBJEXT=$ac_cv_objext
2362 ac_objext=$OBJEXT
2363 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2364 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2365 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2366   echo $ECHO_N "(cached) $ECHO_C" >&6
2367 else
2368   cat >conftest.$ac_ext <<_ACEOF
2369 /* confdefs.h.  */
2370 _ACEOF
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h.  */
2374
2375 int
2376 main ()
2377 {
2378 #ifndef __GNUC__
2379        choke me
2380 #endif
2381
2382   ;
2383   return 0;
2384 }
2385 _ACEOF
2386 rm -f conftest.$ac_objext
2387 if { (ac_try="$ac_compile"
2388 case "(($ac_try" in
2389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390   *) ac_try_echo=$ac_try;;
2391 esac
2392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2393   (eval "$ac_compile") 2>conftest.er1
2394   ac_status=$?
2395   grep -v '^ *+' conftest.er1 >conftest.err
2396   rm -f conftest.er1
2397   cat conftest.err >&5
2398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399   (exit $ac_status); } &&
2400          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2401   { (case "(($ac_try" in
2402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403   *) ac_try_echo=$ac_try;;
2404 esac
2405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2406   (eval "$ac_try") 2>&5
2407   ac_status=$?
2408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409   (exit $ac_status); }; } &&
2410          { ac_try='test -s conftest.$ac_objext'
2411   { (case "(($ac_try" in
2412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413   *) ac_try_echo=$ac_try;;
2414 esac
2415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2416   (eval "$ac_try") 2>&5
2417   ac_status=$?
2418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419   (exit $ac_status); }; }; then
2420   ac_compiler_gnu=yes
2421 else
2422   echo "$as_me: failed program was:" >&5
2423 sed 's/^/| /' conftest.$ac_ext >&5
2424
2425         ac_compiler_gnu=no
2426 fi
2427
2428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2429 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2430
2431 fi
2432 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2433 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2434 GCC=`test $ac_compiler_gnu = yes && echo yes`
2435 ac_test_CFLAGS=${CFLAGS+set}
2436 ac_save_CFLAGS=$CFLAGS
2437 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2438 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2439 if test "${ac_cv_prog_cc_g+set}" = set; then
2440   echo $ECHO_N "(cached) $ECHO_C" >&6
2441 else
2442   ac_save_c_werror_flag=$ac_c_werror_flag
2443    ac_c_werror_flag=yes
2444    ac_cv_prog_cc_g=no
2445    CFLAGS="-g"
2446    cat >conftest.$ac_ext <<_ACEOF
2447 /* confdefs.h.  */
2448 _ACEOF
2449 cat confdefs.h >>conftest.$ac_ext
2450 cat >>conftest.$ac_ext <<_ACEOF
2451 /* end confdefs.h.  */
2452
2453 int
2454 main ()
2455 {
2456
2457   ;
2458   return 0;
2459 }
2460 _ACEOF
2461 rm -f conftest.$ac_objext
2462 if { (ac_try="$ac_compile"
2463 case "(($ac_try" in
2464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465   *) ac_try_echo=$ac_try;;
2466 esac
2467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468   (eval "$ac_compile") 2>conftest.er1
2469   ac_status=$?
2470   grep -v '^ *+' conftest.er1 >conftest.err
2471   rm -f conftest.er1
2472   cat conftest.err >&5
2473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474   (exit $ac_status); } &&
2475          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2476   { (case "(($ac_try" in
2477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478   *) ac_try_echo=$ac_try;;
2479 esac
2480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2481   (eval "$ac_try") 2>&5
2482   ac_status=$?
2483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484   (exit $ac_status); }; } &&
2485          { ac_try='test -s conftest.$ac_objext'
2486   { (case "(($ac_try" in
2487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488   *) ac_try_echo=$ac_try;;
2489 esac
2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491   (eval "$ac_try") 2>&5
2492   ac_status=$?
2493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494   (exit $ac_status); }; }; then
2495   ac_cv_prog_cc_g=yes
2496 else
2497   echo "$as_me: failed program was:" >&5
2498 sed 's/^/| /' conftest.$ac_ext >&5
2499
2500         CFLAGS=""
2501       cat >conftest.$ac_ext <<_ACEOF
2502 /* confdefs.h.  */
2503 _ACEOF
2504 cat confdefs.h >>conftest.$ac_ext
2505 cat >>conftest.$ac_ext <<_ACEOF
2506 /* end confdefs.h.  */
2507
2508 int
2509 main ()
2510 {
2511
2512   ;
2513   return 0;
2514 }
2515 _ACEOF
2516 rm -f conftest.$ac_objext
2517 if { (ac_try="$ac_compile"
2518 case "(($ac_try" in
2519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520   *) ac_try_echo=$ac_try;;
2521 esac
2522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523   (eval "$ac_compile") 2>conftest.er1
2524   ac_status=$?
2525   grep -v '^ *+' conftest.er1 >conftest.err
2526   rm -f conftest.er1
2527   cat conftest.err >&5
2528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529   (exit $ac_status); } &&
2530          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2531   { (case "(($ac_try" in
2532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533   *) ac_try_echo=$ac_try;;
2534 esac
2535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2536   (eval "$ac_try") 2>&5
2537   ac_status=$?
2538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539   (exit $ac_status); }; } &&
2540          { ac_try='test -s conftest.$ac_objext'
2541   { (case "(($ac_try" in
2542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543   *) ac_try_echo=$ac_try;;
2544 esac
2545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2546   (eval "$ac_try") 2>&5
2547   ac_status=$?
2548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549   (exit $ac_status); }; }; then
2550   :
2551 else
2552   echo "$as_me: failed program was:" >&5
2553 sed 's/^/| /' conftest.$ac_ext >&5
2554
2555         ac_c_werror_flag=$ac_save_c_werror_flag
2556          CFLAGS="-g"
2557          cat >conftest.$ac_ext <<_ACEOF
2558 /* confdefs.h.  */
2559 _ACEOF
2560 cat confdefs.h >>conftest.$ac_ext
2561 cat >>conftest.$ac_ext <<_ACEOF
2562 /* end confdefs.h.  */
2563
2564 int
2565 main ()
2566 {
2567
2568   ;
2569   return 0;
2570 }
2571 _ACEOF
2572 rm -f conftest.$ac_objext
2573 if { (ac_try="$ac_compile"
2574 case "(($ac_try" in
2575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576   *) ac_try_echo=$ac_try;;
2577 esac
2578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579   (eval "$ac_compile") 2>conftest.er1
2580   ac_status=$?
2581   grep -v '^ *+' conftest.er1 >conftest.err
2582   rm -f conftest.er1
2583   cat conftest.err >&5
2584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585   (exit $ac_status); } &&
2586          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2587   { (case "(($ac_try" in
2588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589   *) ac_try_echo=$ac_try;;
2590 esac
2591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2592   (eval "$ac_try") 2>&5
2593   ac_status=$?
2594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595   (exit $ac_status); }; } &&
2596          { ac_try='test -s conftest.$ac_objext'
2597   { (case "(($ac_try" in
2598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599   *) ac_try_echo=$ac_try;;
2600 esac
2601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602   (eval "$ac_try") 2>&5
2603   ac_status=$?
2604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605   (exit $ac_status); }; }; then
2606   ac_cv_prog_cc_g=yes
2607 else
2608   echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.$ac_ext >&5
2610
2611
2612 fi
2613
2614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2615 fi
2616
2617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2618 fi
2619
2620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2621    ac_c_werror_flag=$ac_save_c_werror_flag
2622 fi
2623 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2624 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2625 if test "$ac_test_CFLAGS" = set; then
2626   CFLAGS=$ac_save_CFLAGS
2627 elif test $ac_cv_prog_cc_g = yes; then
2628   if test "$GCC" = yes; then
2629     CFLAGS="-g -O2"
2630   else
2631     CFLAGS="-g"
2632   fi
2633 else
2634   if test "$GCC" = yes; then
2635     CFLAGS="-O2"
2636   else
2637     CFLAGS=
2638   fi
2639 fi
2640 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2641 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2642 if test "${ac_cv_prog_cc_c89+set}" = set; then
2643   echo $ECHO_N "(cached) $ECHO_C" >&6
2644 else
2645   ac_cv_prog_cc_c89=no
2646 ac_save_CC=$CC
2647 cat >conftest.$ac_ext <<_ACEOF
2648 /* confdefs.h.  */
2649 _ACEOF
2650 cat confdefs.h >>conftest.$ac_ext
2651 cat >>conftest.$ac_ext <<_ACEOF
2652 /* end confdefs.h.  */
2653 #include <stdarg.h>
2654 #include <stdio.h>
2655 #include <sys/types.h>
2656 #include <sys/stat.h>
2657 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2658 struct buf { int x; };
2659 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2660 static char *e (p, i)
2661      char **p;
2662      int i;
2663 {
2664   return p[i];
2665 }
2666 static char *f (char * (*g) (char **, int), char **p, ...)
2667 {
2668   char *s;
2669   va_list v;
2670   va_start (v,p);
2671   s = g (p, va_arg (v,int));
2672   va_end (v);
2673   return s;
2674 }
2675
2676 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2677    function prototypes and stuff, but not '\xHH' hex character constants.
2678    These don't provoke an error unfortunately, instead are silently treated
2679    as 'x'.  The following induces an error, until -std is added to get
2680    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2681    array size at least.  It's necessary to write '\x00'==0 to get something
2682    that's true only with -std.  */
2683 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2684
2685 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2686    inside strings and character constants.  */
2687 #define FOO(x) 'x'
2688 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2689
2690 int test (int i, double x);
2691 struct s1 {int (*f) (int a);};
2692 struct s2 {int (*f) (double a);};
2693 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2694 int argc;
2695 char **argv;
2696 int
2697 main ()
2698 {
2699 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2700   ;
2701   return 0;
2702 }
2703 _ACEOF
2704 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2705         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2706 do
2707   CC="$ac_save_CC $ac_arg"
2708   rm -f conftest.$ac_objext
2709 if { (ac_try="$ac_compile"
2710 case "(($ac_try" in
2711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712   *) ac_try_echo=$ac_try;;
2713 esac
2714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715   (eval "$ac_compile") 2>conftest.er1
2716   ac_status=$?
2717   grep -v '^ *+' conftest.er1 >conftest.err
2718   rm -f conftest.er1
2719   cat conftest.err >&5
2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); } &&
2722          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2723   { (case "(($ac_try" in
2724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725   *) ac_try_echo=$ac_try;;
2726 esac
2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728   (eval "$ac_try") 2>&5
2729   ac_status=$?
2730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731   (exit $ac_status); }; } &&
2732          { ac_try='test -s conftest.$ac_objext'
2733   { (case "(($ac_try" in
2734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735   *) ac_try_echo=$ac_try;;
2736 esac
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738   (eval "$ac_try") 2>&5
2739   ac_status=$?
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); }; }; then
2742   ac_cv_prog_cc_c89=$ac_arg
2743 else
2744   echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2746
2747
2748 fi
2749
2750 rm -f core conftest.err conftest.$ac_objext
2751   test "x$ac_cv_prog_cc_c89" != "xno" && break
2752 done
2753 rm -f conftest.$ac_ext
2754 CC=$ac_save_CC
2755
2756 fi
2757 # AC_CACHE_VAL
2758 case "x$ac_cv_prog_cc_c89" in
2759   x)
2760     { echo "$as_me:$LINENO: result: none needed" >&5
2761 echo "${ECHO_T}none needed" >&6; } ;;
2762   xno)
2763     { echo "$as_me:$LINENO: result: unsupported" >&5
2764 echo "${ECHO_T}unsupported" >&6; } ;;
2765   *)
2766     CC="$CC $ac_cv_prog_cc_c89"
2767     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2768 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2769 esac
2770
2771
2772 ac_ext=c
2773 ac_cpp='$CPP $CPPFLAGS'
2774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2777
2778 ac_ext=cpp
2779 ac_cpp='$CXXCPP $CPPFLAGS'
2780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2783 if test -z "$CXX"; then
2784   if test -n "$CCC"; then
2785     CXX=$CCC
2786   else
2787     if test -n "$ac_tool_prefix"; then
2788   for ac_prog in clang++ llvm-g++ g++
2789   do
2790     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2791 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2794 if test "${ac_cv_prog_CXX+set}" = set; then
2795   echo $ECHO_N "(cached) $ECHO_C" >&6
2796 else
2797   if test -n "$CXX"; then
2798   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2799 else
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 for as_dir in $PATH
2802 do
2803   IFS=$as_save_IFS
2804   test -z "$as_dir" && as_dir=.
2805   for ac_exec_ext in '' $ac_executable_extensions; do
2806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2807     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2808     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2809     break 2
2810   fi
2811 done
2812 done
2813 IFS=$as_save_IFS
2814
2815 fi
2816 fi
2817 CXX=$ac_cv_prog_CXX
2818 if test -n "$CXX"; then
2819   { echo "$as_me:$LINENO: result: $CXX" >&5
2820 echo "${ECHO_T}$CXX" >&6; }
2821 else
2822   { echo "$as_me:$LINENO: result: no" >&5
2823 echo "${ECHO_T}no" >&6; }
2824 fi
2825
2826
2827     test -n "$CXX" && break
2828   done
2829 fi
2830 if test -z "$CXX"; then
2831   ac_ct_CXX=$CXX
2832   for ac_prog in clang++ llvm-g++ g++
2833 do
2834   # Extract the first word of "$ac_prog", so it can be a program name with args.
2835 set dummy $ac_prog; ac_word=$2
2836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2838 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2839   echo $ECHO_N "(cached) $ECHO_C" >&6
2840 else
2841   if test -n "$ac_ct_CXX"; then
2842   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2843 else
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845 for as_dir in $PATH
2846 do
2847   IFS=$as_save_IFS
2848   test -z "$as_dir" && as_dir=.
2849   for ac_exec_ext in '' $ac_executable_extensions; do
2850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2851     ac_cv_prog_ac_ct_CXX="$ac_prog"
2852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2853     break 2
2854   fi
2855 done
2856 done
2857 IFS=$as_save_IFS
2858
2859 fi
2860 fi
2861 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2862 if test -n "$ac_ct_CXX"; then
2863   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2864 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2865 else
2866   { echo "$as_me:$LINENO: result: no" >&5
2867 echo "${ECHO_T}no" >&6; }
2868 fi
2869
2870
2871   test -n "$ac_ct_CXX" && break
2872 done
2873
2874   if test "x$ac_ct_CXX" = x; then
2875     CXX="g++"
2876   else
2877     case $cross_compiling:$ac_tool_warned in
2878 yes:)
2879 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2880 whose name does not start with the host triplet.  If you think this
2881 configuration is useful to you, please write to autoconf@gnu.org." >&5
2882 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2883 whose name does not start with the host triplet.  If you think this
2884 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2885 ac_tool_warned=yes ;;
2886 esac
2887     CXX=$ac_ct_CXX
2888   fi
2889 fi
2890
2891   fi
2892 fi
2893 # Provide some information about the compiler.
2894 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2895 ac_compiler=`set X $ac_compile; echo $2`
2896 { (ac_try="$ac_compiler --version >&5"
2897 case "(($ac_try" in
2898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899   *) ac_try_echo=$ac_try;;
2900 esac
2901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902   (eval "$ac_compiler --version >&5") 2>&5
2903   ac_status=$?
2904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905   (exit $ac_status); }
2906 { (ac_try="$ac_compiler -v >&5"
2907 case "(($ac_try" in
2908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909   *) ac_try_echo=$ac_try;;
2910 esac
2911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912   (eval "$ac_compiler -v >&5") 2>&5
2913   ac_status=$?
2914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915   (exit $ac_status); }
2916 { (ac_try="$ac_compiler -V >&5"
2917 case "(($ac_try" in
2918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919   *) ac_try_echo=$ac_try;;
2920 esac
2921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922   (eval "$ac_compiler -V >&5") 2>&5
2923   ac_status=$?
2924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925   (exit $ac_status); }
2926
2927 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2928 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2929 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2930   echo $ECHO_N "(cached) $ECHO_C" >&6
2931 else
2932   cat >conftest.$ac_ext <<_ACEOF
2933 /* confdefs.h.  */
2934 _ACEOF
2935 cat confdefs.h >>conftest.$ac_ext
2936 cat >>conftest.$ac_ext <<_ACEOF
2937 /* end confdefs.h.  */
2938
2939 int
2940 main ()
2941 {
2942 #ifndef __GNUC__
2943        choke me
2944 #endif
2945
2946   ;
2947   return 0;
2948 }
2949 _ACEOF
2950 rm -f conftest.$ac_objext
2951 if { (ac_try="$ac_compile"
2952 case "(($ac_try" in
2953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954   *) ac_try_echo=$ac_try;;
2955 esac
2956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957   (eval "$ac_compile") 2>conftest.er1
2958   ac_status=$?
2959   grep -v '^ *+' conftest.er1 >conftest.err
2960   rm -f conftest.er1
2961   cat conftest.err >&5
2962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963   (exit $ac_status); } &&
2964          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2965   { (case "(($ac_try" in
2966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967   *) ac_try_echo=$ac_try;;
2968 esac
2969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970   (eval "$ac_try") 2>&5
2971   ac_status=$?
2972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973   (exit $ac_status); }; } &&
2974          { ac_try='test -s conftest.$ac_objext'
2975   { (case "(($ac_try" in
2976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977   *) ac_try_echo=$ac_try;;
2978 esac
2979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980   (eval "$ac_try") 2>&5
2981   ac_status=$?
2982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983   (exit $ac_status); }; }; then
2984   ac_compiler_gnu=yes
2985 else
2986   echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.$ac_ext >&5
2988
2989         ac_compiler_gnu=no
2990 fi
2991
2992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2993 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2994
2995 fi
2996 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2997 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2998 GXX=`test $ac_compiler_gnu = yes && echo yes`
2999 ac_test_CXXFLAGS=${CXXFLAGS+set}
3000 ac_save_CXXFLAGS=$CXXFLAGS
3001 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3002 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3003 if test "${ac_cv_prog_cxx_g+set}" = set; then
3004   echo $ECHO_N "(cached) $ECHO_C" >&6
3005 else
3006   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3007    ac_cxx_werror_flag=yes
3008    ac_cv_prog_cxx_g=no
3009    CXXFLAGS="-g"
3010    cat >conftest.$ac_ext <<_ACEOF
3011 /* confdefs.h.  */
3012 _ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h.  */
3016
3017 int
3018 main ()
3019 {
3020
3021   ;
3022   return 0;
3023 }
3024 _ACEOF
3025 rm -f conftest.$ac_objext
3026 if { (ac_try="$ac_compile"
3027 case "(($ac_try" in
3028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029   *) ac_try_echo=$ac_try;;
3030 esac
3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032   (eval "$ac_compile") 2>conftest.er1
3033   ac_status=$?
3034   grep -v '^ *+' conftest.er1 >conftest.err
3035   rm -f conftest.er1
3036   cat conftest.err >&5
3037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038   (exit $ac_status); } &&
3039          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3040   { (case "(($ac_try" in
3041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042   *) ac_try_echo=$ac_try;;
3043 esac
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045   (eval "$ac_try") 2>&5
3046   ac_status=$?
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); }; } &&
3049          { ac_try='test -s conftest.$ac_objext'
3050   { (case "(($ac_try" in
3051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052   *) ac_try_echo=$ac_try;;
3053 esac
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055   (eval "$ac_try") 2>&5
3056   ac_status=$?
3057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058   (exit $ac_status); }; }; then
3059   ac_cv_prog_cxx_g=yes
3060 else
3061   echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3063
3064         CXXFLAGS=""
3065       cat >conftest.$ac_ext <<_ACEOF
3066 /* confdefs.h.  */
3067 _ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h.  */
3071
3072 int
3073 main ()
3074 {
3075
3076   ;
3077   return 0;
3078 }
3079 _ACEOF
3080 rm -f conftest.$ac_objext
3081 if { (ac_try="$ac_compile"
3082 case "(($ac_try" in
3083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084   *) ac_try_echo=$ac_try;;
3085 esac
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087   (eval "$ac_compile") 2>conftest.er1
3088   ac_status=$?
3089   grep -v '^ *+' conftest.er1 >conftest.err
3090   rm -f conftest.er1
3091   cat conftest.err >&5
3092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); } &&
3094          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3095   { (case "(($ac_try" in
3096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097   *) ac_try_echo=$ac_try;;
3098 esac
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100   (eval "$ac_try") 2>&5
3101   ac_status=$?
3102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103   (exit $ac_status); }; } &&
3104          { ac_try='test -s conftest.$ac_objext'
3105   { (case "(($ac_try" in
3106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107   *) ac_try_echo=$ac_try;;
3108 esac
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110   (eval "$ac_try") 2>&5
3111   ac_status=$?
3112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113   (exit $ac_status); }; }; then
3114   :
3115 else
3116   echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3118
3119         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3120          CXXFLAGS="-g"
3121          cat >conftest.$ac_ext <<_ACEOF
3122 /* confdefs.h.  */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h.  */
3127
3128 int
3129 main ()
3130 {
3131
3132   ;
3133   return 0;
3134 }
3135 _ACEOF
3136 rm -f conftest.$ac_objext
3137 if { (ac_try="$ac_compile"
3138 case "(($ac_try" in
3139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140   *) ac_try_echo=$ac_try;;
3141 esac
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143   (eval "$ac_compile") 2>conftest.er1
3144   ac_status=$?
3145   grep -v '^ *+' conftest.er1 >conftest.err
3146   rm -f conftest.er1
3147   cat conftest.err >&5
3148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149   (exit $ac_status); } &&
3150          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3151   { (case "(($ac_try" in
3152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153   *) ac_try_echo=$ac_try;;
3154 esac
3155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156   (eval "$ac_try") 2>&5
3157   ac_status=$?
3158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159   (exit $ac_status); }; } &&
3160          { ac_try='test -s conftest.$ac_objext'
3161   { (case "(($ac_try" in
3162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163   *) ac_try_echo=$ac_try;;
3164 esac
3165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166   (eval "$ac_try") 2>&5
3167   ac_status=$?
3168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169   (exit $ac_status); }; }; then
3170   ac_cv_prog_cxx_g=yes
3171 else
3172   echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3174
3175
3176 fi
3177
3178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3179 fi
3180
3181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3182 fi
3183
3184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3185    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3186 fi
3187 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3188 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3189 if test "$ac_test_CXXFLAGS" = set; then
3190   CXXFLAGS=$ac_save_CXXFLAGS
3191 elif test $ac_cv_prog_cxx_g = yes; then
3192   if test "$GXX" = yes; then
3193     CXXFLAGS="-g -O2"
3194   else
3195     CXXFLAGS="-g"
3196   fi
3197 else
3198   if test "$GXX" = yes; then
3199     CXXFLAGS="-O2"
3200   else
3201     CXXFLAGS=
3202   fi
3203 fi
3204 ac_ext=c
3205 ac_cpp='$CPP $CPPFLAGS'
3206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3209
3210 ac_ext=c
3211 ac_cpp='$CPP $CPPFLAGS'
3212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3216 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3217 # On Suns, sometimes $CPP names a directory.
3218 if test -n "$CPP" && test -d "$CPP"; then
3219   CPP=
3220 fi
3221 if test -z "$CPP"; then
3222   if test "${ac_cv_prog_CPP+set}" = set; then
3223   echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225       # Double quotes because CPP needs to be expanded
3226     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3227     do
3228       ac_preproc_ok=false
3229 for ac_c_preproc_warn_flag in '' yes
3230 do
3231   # Use a header file that comes with gcc, so configuring glibc
3232   # with a fresh cross-compiler works.
3233   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3234   # <limits.h> exists even on freestanding compilers.
3235   # On the NeXT, cc -E runs the code through the compiler's parser,
3236   # not just through cpp. "Syntax error" is here to catch this case.
3237   cat >conftest.$ac_ext <<_ACEOF
3238 /* confdefs.h.  */
3239 _ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h.  */
3243 #ifdef __STDC__
3244 # include <limits.h>
3245 #else
3246 # include <assert.h>
3247 #endif
3248                      Syntax error
3249 _ACEOF
3250 if { (ac_try="$ac_cpp conftest.$ac_ext"
3251 case "(($ac_try" in
3252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253   *) ac_try_echo=$ac_try;;
3254 esac
3255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3256   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3257   ac_status=$?
3258   grep -v '^ *+' conftest.er1 >conftest.err
3259   rm -f conftest.er1
3260   cat conftest.err >&5
3261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262   (exit $ac_status); } >/dev/null; then
3263   if test -s conftest.err; then
3264     ac_cpp_err=$ac_c_preproc_warn_flag
3265     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3266   else
3267     ac_cpp_err=
3268   fi
3269 else
3270   ac_cpp_err=yes
3271 fi
3272 if test -z "$ac_cpp_err"; then
3273   :
3274 else
3275   echo "$as_me: failed program was:" >&5
3276 sed 's/^/| /' conftest.$ac_ext >&5
3277
3278   # Broken: fails on valid input.
3279 continue
3280 fi
3281
3282 rm -f conftest.err conftest.$ac_ext
3283
3284   # OK, works on sane cases.  Now check whether nonexistent headers
3285   # can be detected and how.
3286   cat >conftest.$ac_ext <<_ACEOF
3287 /* confdefs.h.  */
3288 _ACEOF
3289 cat confdefs.h >>conftest.$ac_ext
3290 cat >>conftest.$ac_ext <<_ACEOF
3291 /* end confdefs.h.  */
3292 #include <ac_nonexistent.h>
3293 _ACEOF
3294 if { (ac_try="$ac_cpp conftest.$ac_ext"
3295 case "(($ac_try" in
3296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297   *) ac_try_echo=$ac_try;;
3298 esac
3299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3301   ac_status=$?
3302   grep -v '^ *+' conftest.er1 >conftest.err
3303   rm -f conftest.er1
3304   cat conftest.err >&5
3305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306   (exit $ac_status); } >/dev/null; then
3307   if test -s conftest.err; then
3308     ac_cpp_err=$ac_c_preproc_warn_flag
3309     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3310   else
3311     ac_cpp_err=
3312   fi
3313 else
3314   ac_cpp_err=yes
3315 fi
3316 if test -z "$ac_cpp_err"; then
3317   # Broken: success on invalid input.
3318 continue
3319 else
3320   echo "$as_me: failed program was:" >&5
3321 sed 's/^/| /' conftest.$ac_ext >&5
3322
3323   # Passes both tests.
3324 ac_preproc_ok=:
3325 break
3326 fi
3327
3328 rm -f conftest.err conftest.$ac_ext
3329
3330 done
3331 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3332 rm -f conftest.err conftest.$ac_ext
3333 if $ac_preproc_ok; then
3334   break
3335 fi
3336
3337     done
3338     ac_cv_prog_CPP=$CPP
3339
3340 fi
3341   CPP=$ac_cv_prog_CPP
3342 else
3343   ac_cv_prog_CPP=$CPP
3344 fi
3345 { echo "$as_me:$LINENO: result: $CPP" >&5
3346 echo "${ECHO_T}$CPP" >&6; }
3347 ac_preproc_ok=false
3348 for ac_c_preproc_warn_flag in '' yes
3349 do
3350   # Use a header file that comes with gcc, so configuring glibc
3351   # with a fresh cross-compiler works.
3352   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3353   # <limits.h> exists even on freestanding compilers.
3354   # On the NeXT, cc -E runs the code through the compiler's parser,
3355   # not just through cpp. "Syntax error" is here to catch this case.
3356   cat >conftest.$ac_ext <<_ACEOF
3357 /* confdefs.h.  */
3358 _ACEOF
3359 cat confdefs.h >>conftest.$ac_ext
3360 cat >>conftest.$ac_ext <<_ACEOF
3361 /* end confdefs.h.  */
3362 #ifdef __STDC__
3363 # include <limits.h>
3364 #else
3365 # include <assert.h>
3366 #endif
3367                      Syntax error
3368 _ACEOF
3369 if { (ac_try="$ac_cpp conftest.$ac_ext"
3370 case "(($ac_try" in
3371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372   *) ac_try_echo=$ac_try;;
3373 esac
3374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3376   ac_status=$?
3377   grep -v '^ *+' conftest.er1 >conftest.err
3378   rm -f conftest.er1
3379   cat conftest.err >&5
3380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381   (exit $ac_status); } >/dev/null; then
3382   if test -s conftest.err; then
3383     ac_cpp_err=$ac_c_preproc_warn_flag
3384     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3385   else
3386     ac_cpp_err=
3387   fi
3388 else
3389   ac_cpp_err=yes
3390 fi
3391 if test -z "$ac_cpp_err"; then
3392   :
3393 else
3394   echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3396
3397   # Broken: fails on valid input.
3398 continue
3399 fi
3400
3401 rm -f conftest.err conftest.$ac_ext
3402
3403   # OK, works on sane cases.  Now check whether nonexistent headers
3404   # can be detected and how.
3405   cat >conftest.$ac_ext <<_ACEOF
3406 /* confdefs.h.  */
3407 _ACEOF
3408 cat confdefs.h >>conftest.$ac_ext
3409 cat >>conftest.$ac_ext <<_ACEOF
3410 /* end confdefs.h.  */
3411 #include <ac_nonexistent.h>
3412 _ACEOF
3413 if { (ac_try="$ac_cpp conftest.$ac_ext"
3414 case "(($ac_try" in
3415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416   *) ac_try_echo=$ac_try;;
3417 esac
3418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3419   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3420   ac_status=$?
3421   grep -v '^ *+' conftest.er1 >conftest.err
3422   rm -f conftest.er1
3423   cat conftest.err >&5
3424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425   (exit $ac_status); } >/dev/null; then
3426   if test -s conftest.err; then
3427     ac_cpp_err=$ac_c_preproc_warn_flag
3428     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3429   else
3430     ac_cpp_err=
3431   fi
3432 else
3433   ac_cpp_err=yes
3434 fi
3435 if test -z "$ac_cpp_err"; then
3436   # Broken: success on invalid input.
3437 continue
3438 else
3439   echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3441
3442   # Passes both tests.
3443 ac_preproc_ok=:
3444 break
3445 fi
3446
3447 rm -f conftest.err conftest.$ac_ext
3448
3449 done
3450 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3451 rm -f conftest.err conftest.$ac_ext
3452 if $ac_preproc_ok; then
3453   :
3454 else
3455   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3456 See \`config.log' for more details." >&5
3457 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3458 See \`config.log' for more details." >&2;}
3459    { (exit 1); exit 1; }; }
3460 fi
3461
3462 ac_ext=c
3463 ac_cpp='$CPP $CPPFLAGS'
3464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467
3468
3469
3470
3471 # Check whether --enable-polly was given.
3472 if test "${enable_polly+set}" = set; then
3473   enableval=$enable_polly;
3474 else
3475   enableval=default
3476 fi
3477
3478 case "$enableval" in
3479   yes) ENABLE_POLLY=1
3480  ;;
3481   no)  ENABLE_POLLY=0
3482  ;;
3483   default) ENABLE_POLLY=1
3484  ;;
3485   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3486 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3487    { (exit 1); exit 1; }; } ;;
3488 esac
3489
3490
3491 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3492   LLVM_HAS_POLLY=1
3493
3494   subdirs="$subdirs tools/polly"
3495
3496 fi
3497
3498
3499 # Make sure we can run config.sub.
3500 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3501   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3502 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3503    { (exit 1); exit 1; }; }
3504
3505 { echo "$as_me:$LINENO: checking build system type" >&5
3506 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3507 if test "${ac_cv_build+set}" = set; then
3508   echo $ECHO_N "(cached) $ECHO_C" >&6
3509 else
3510   ac_build_alias=$build_alias
3511 test "x$ac_build_alias" = x &&
3512   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3513 test "x$ac_build_alias" = x &&
3514   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3515 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3516    { (exit 1); exit 1; }; }
3517 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3518   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3519 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3520    { (exit 1); exit 1; }; }
3521
3522 fi
3523 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3524 echo "${ECHO_T}$ac_cv_build" >&6; }
3525 case $ac_cv_build in
3526 *-*-*) ;;
3527 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3528 echo "$as_me: error: invalid value of canonical build" >&2;}
3529    { (exit 1); exit 1; }; };;
3530 esac
3531 build=$ac_cv_build
3532 ac_save_IFS=$IFS; IFS='-'
3533 set x $ac_cv_build
3534 shift
3535 build_cpu=$1
3536 build_vendor=$2
3537 shift; shift
3538 # Remember, the first character of IFS is used to create $*,
3539 # except with old shells:
3540 build_os=$*
3541 IFS=$ac_save_IFS
3542 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3543
3544
3545 { echo "$as_me:$LINENO: checking host system type" >&5
3546 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3547 if test "${ac_cv_host+set}" = set; then
3548   echo $ECHO_N "(cached) $ECHO_C" >&6
3549 else
3550   if test "x$host_alias" = x; then
3551   ac_cv_host=$ac_cv_build
3552 else
3553   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3554     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3555 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3556    { (exit 1); exit 1; }; }
3557 fi
3558
3559 fi
3560 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3561 echo "${ECHO_T}$ac_cv_host" >&6; }
3562 case $ac_cv_host in
3563 *-*-*) ;;
3564 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3565 echo "$as_me: error: invalid value of canonical host" >&2;}
3566    { (exit 1); exit 1; }; };;
3567 esac
3568 host=$ac_cv_host
3569 ac_save_IFS=$IFS; IFS='-'
3570 set x $ac_cv_host
3571 shift
3572 host_cpu=$1
3573 host_vendor=$2
3574 shift; shift
3575 # Remember, the first character of IFS is used to create $*,
3576 # except with old shells:
3577 host_os=$*
3578 IFS=$ac_save_IFS
3579 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3580
3581
3582 { echo "$as_me:$LINENO: checking target system type" >&5
3583 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3584 if test "${ac_cv_target+set}" = set; then
3585   echo $ECHO_N "(cached) $ECHO_C" >&6
3586 else
3587   if test "x$target_alias" = x; then
3588   ac_cv_target=$ac_cv_host
3589 else
3590   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3591     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3592 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3593    { (exit 1); exit 1; }; }
3594 fi
3595
3596 fi
3597 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3598 echo "${ECHO_T}$ac_cv_target" >&6; }
3599 case $ac_cv_target in
3600 *-*-*) ;;
3601 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3602 echo "$as_me: error: invalid value of canonical target" >&2;}
3603    { (exit 1); exit 1; }; };;
3604 esac
3605 target=$ac_cv_target
3606 ac_save_IFS=$IFS; IFS='-'
3607 set x $ac_cv_target
3608 shift
3609 target_cpu=$1
3610 target_vendor=$2
3611 shift; shift
3612 # Remember, the first character of IFS is used to create $*,
3613 # except with old shells:
3614 target_os=$*
3615 IFS=$ac_save_IFS
3616 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3617
3618
3619 # The aliases save the names the user supplied, while $host etc.
3620 # will get canonicalized.
3621 test -n "$target_alias" &&
3622   test "$program_prefix$program_suffix$program_transform_name" = \
3623     NONENONEs,x,x, &&
3624   program_prefix=${target_alias}-
3625
3626 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3627 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3628 if test "${llvm_cv_os_type+set}" = set; then
3629   echo $ECHO_N "(cached) $ECHO_C" >&6
3630 else
3631   case $host in
3632   *-*-aix*)
3633     llvm_cv_link_all_option="-Wl,--whole-archive"
3634     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3635     llvm_cv_os_type="AIX"
3636     llvm_cv_platform_type="Unix" ;;
3637   *-*-irix*)
3638     llvm_cv_link_all_option="-Wl,--whole-archive"
3639     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3640     llvm_cv_os_type="IRIX"
3641     llvm_cv_platform_type="Unix" ;;
3642   *-*-cygwin*)
3643     llvm_cv_link_all_option="-Wl,--whole-archive"
3644     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3645     llvm_cv_os_type="Cygwin"
3646     llvm_cv_platform_type="Unix" ;;
3647   *-*-darwin*)
3648     llvm_cv_link_all_option="-Wl,-all_load"
3649     llvm_cv_no_link_all_option="-Wl,-noall_load"
3650     llvm_cv_os_type="Darwin"
3651     llvm_cv_platform_type="Unix" ;;
3652   *-*-minix*)
3653     llvm_cv_link_all_option="-Wl,-all_load"
3654     llvm_cv_no_link_all_option="-Wl,-noall_load"
3655     llvm_cv_os_type="Minix"
3656     llvm_cv_platform_type="Unix" ;;
3657   *-*-freebsd*)
3658     llvm_cv_link_all_option="-Wl,--whole-archive"
3659     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3660     llvm_cv_os_type="FreeBSD"
3661     llvm_cv_platform_type="Unix" ;;
3662   *-*-openbsd*)
3663     llvm_cv_link_all_option="-Wl,--whole-archive"
3664     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3665     llvm_cv_os_type="OpenBSD"
3666     llvm_cv_platform_type="Unix" ;;
3667   *-*-netbsd*)
3668     llvm_cv_link_all_option="-Wl,--whole-archive"
3669     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3670     llvm_cv_os_type="NetBSD"
3671     llvm_cv_platform_type="Unix" ;;
3672   *-*-dragonfly*)
3673     llvm_cv_link_all_option="-Wl,--whole-archive"
3674     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3675     llvm_cv_os_type="DragonFly"
3676     llvm_cv_platform_type="Unix" ;;
3677   *-*-hpux*)
3678     llvm_cv_link_all_option="-Wl,--whole-archive"
3679     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3680     llvm_cv_os_type="HP-UX"
3681     llvm_cv_platform_type="Unix" ;;
3682   *-*-interix*)
3683     llvm_cv_link_all_option="-Wl,--whole-archive"
3684     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3685     llvm_cv_os_type="Interix"
3686     llvm_cv_platform_type="Unix" ;;
3687   *-*-linux*)
3688     llvm_cv_link_all_option="-Wl,--whole-archive"
3689     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3690     llvm_cv_os_type="Linux"
3691     llvm_cv_platform_type="Unix" ;;
3692   *-*-solaris*)
3693     llvm_cv_link_all_option="-Wl,-z,allextract"
3694     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3695     llvm_cv_os_type="SunOS"
3696     llvm_cv_platform_type="Unix" ;;
3697   *-*-auroraux*)
3698     llvm_cv_link_all_option="-Wl,-z,allextract"
3699     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3700     llvm_cv_os_type="AuroraUX"
3701     llvm_cv_platform_type="Unix" ;;
3702   *-*-win32*)
3703     llvm_cv_link_all_option="-Wl,--whole-archive"
3704     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3705     llvm_cv_os_type="Win32"
3706     llvm_cv_platform_type="Win32" ;;
3707   *-*-mingw*)
3708     llvm_cv_link_all_option="-Wl,--whole-archive"
3709     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3710     llvm_cv_os_type="MingW"
3711     llvm_cv_platform_type="Win32" ;;
3712   *-*-haiku*)
3713     llvm_cv_link_all_option="-Wl,--whole-archive"
3714     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3715     llvm_cv_os_type="Haiku"
3716     llvm_cv_platform_type="Unix" ;;
3717   *-unknown-eabi*)
3718     llvm_cv_link_all_option="-Wl,--whole-archive"
3719     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720     llvm_cv_os_type="Freestanding"
3721     llvm_cv_platform_type="Unix" ;;
3722   *-unknown-elf*)
3723     llvm_cv_link_all_option="-Wl,--whole-archive"
3724     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3725     llvm_cv_os_type="Freestanding"
3726     llvm_cv_platform_type="Unix" ;;
3727   *)
3728     llvm_cv_link_all_option=""
3729     llvm_cv_no_link_all_option=""
3730     llvm_cv_os_type="Unknown"
3731     llvm_cv_platform_type="Unknown" ;;
3732 esac
3733 fi
3734 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3735 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3736
3737 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3738 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3739 if test "${llvm_cv_target_os_type+set}" = set; then
3740   echo $ECHO_N "(cached) $ECHO_C" >&6
3741 else
3742   case $target in
3743   *-*-aix*)
3744     llvm_cv_target_os_type="AIX" ;;
3745   *-*-irix*)
3746     llvm_cv_target_os_type="IRIX" ;;
3747   *-*-cygwin*)
3748     llvm_cv_target_os_type="Cygwin" ;;
3749   *-*-darwin*)
3750     llvm_cv_target_os_type="Darwin" ;;
3751   *-*-minix*)
3752     llvm_cv_target_os_type="Minix" ;;
3753   *-*-freebsd*)
3754     llvm_cv_target_os_type="FreeBSD" ;;
3755   *-*-openbsd*)
3756     llvm_cv_target_os_type="OpenBSD" ;;
3757   *-*-netbsd*)
3758     llvm_cv_target_os_type="NetBSD" ;;
3759   *-*-dragonfly*)
3760     llvm_cv_target_os_type="DragonFly" ;;
3761   *-*-hpux*)
3762     llvm_cv_target_os_type="HP-UX" ;;
3763   *-*-interix*)
3764     llvm_cv_target_os_type="Interix" ;;
3765   *-*-linux*)
3766     llvm_cv_target_os_type="Linux" ;;
3767   *-*-solaris*)
3768     llvm_cv_target_os_type="SunOS" ;;
3769   *-*-auroraux*)
3770     llvm_cv_target_os_type="AuroraUX" ;;
3771   *-*-win32*)
3772     llvm_cv_target_os_type="Win32" ;;
3773   *-*-mingw*)
3774     llvm_cv_target_os_type="MingW" ;;
3775   *-*-haiku*)
3776     llvm_cv_target_os_type="Haiku" ;;
3777   *-*-rtems*)
3778     llvm_cv_target_os_type="RTEMS" ;;
3779   *-*-nacl*)
3780     llvm_cv_target_os_type="NativeClient" ;;
3781   *-unknown-eabi*)
3782     llvm_cv_target_os_type="Freestanding" ;;
3783   *)
3784     llvm_cv_target_os_type="Unknown" ;;
3785 esac
3786 fi
3787 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3788 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3789
3790 if test "$llvm_cv_os_type" = "Unknown" ; then
3791   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3792 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3793    { (exit 1); exit 1; }; }
3794 fi
3795
3796 OS=$llvm_cv_os_type
3797
3798 HOST_OS=$llvm_cv_os_type
3799
3800 TARGET_OS=$llvm_cv_target_os_type
3801
3802
3803 LINKALL=$llvm_cv_link_all_option
3804
3805 NOLINKALL=$llvm_cv_no_link_all_option
3806
3807
3808 case $llvm_cv_platform_type in
3809   Unix)
3810
3811 cat >>confdefs.h <<\_ACEOF
3812 #define LLVM_ON_UNIX 1
3813 _ACEOF
3814
3815     LLVM_ON_UNIX=1
3816
3817     LLVM_ON_WIN32=0
3818
3819     ;;
3820   Win32)
3821
3822 cat >>confdefs.h <<\_ACEOF
3823 #define LLVM_ON_WIN32 1
3824 _ACEOF
3825
3826     LLVM_ON_UNIX=0
3827
3828     LLVM_ON_WIN32=1
3829
3830     ;;
3831 esac
3832
3833 { echo "$as_me:$LINENO: checking target architecture" >&5
3834 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3835 if test "${llvm_cv_target_arch+set}" = set; then
3836   echo $ECHO_N "(cached) $ECHO_C" >&6
3837 else
3838   case $target in
3839   i?86-*)                 llvm_cv_target_arch="x86" ;;
3840   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3841   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3842   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3843   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
3844   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3845   mips-*)                 llvm_cv_target_arch="Mips" ;;
3846   xcore-*)                llvm_cv_target_arch="XCore" ;;
3847   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3848   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3849   ptx-*)                  llvm_cv_target_arch="PTX" ;;
3850   *)                      llvm_cv_target_arch="Unknown" ;;
3851 esac
3852 fi
3853 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3854 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3855
3856 if test "$llvm_cv_target_arch" = "Unknown" ; then
3857   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3858 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3859 fi
3860
3861 # Determine the LLVM native architecture for the target
3862 case "$llvm_cv_target_arch" in
3863     x86)     LLVM_NATIVE_ARCH="X86" ;;
3864     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3865     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3866 esac
3867
3868 ARCH=$llvm_cv_target_arch
3869
3870
3871
3872
3873 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3874 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3875 if test "${ac_cv_path_GREP+set}" = set; then
3876   echo $ECHO_N "(cached) $ECHO_C" >&6
3877 else
3878   # Extract the first word of "grep ggrep" to use in msg output
3879 if test -z "$GREP"; then
3880 set dummy grep ggrep; ac_prog_name=$2
3881 if test "${ac_cv_path_GREP+set}" = set; then
3882   echo $ECHO_N "(cached) $ECHO_C" >&6
3883 else
3884   ac_path_GREP_found=false
3885 # Loop through the user's path and test for each of PROGNAME-LIST
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3888 do
3889   IFS=$as_save_IFS
3890   test -z "$as_dir" && as_dir=.
3891   for ac_prog in grep ggrep; do
3892   for ac_exec_ext in '' $ac_executable_extensions; do
3893     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3894     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3895     # Check for GNU ac_path_GREP and select it if it is found.
3896   # Check for GNU $ac_path_GREP
3897 case `"$ac_path_GREP" --version 2>&1` in
3898 *GNU*)
3899   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3900 *)
3901   ac_count=0
3902   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3903   while :
3904   do
3905     cat "conftest.in" "conftest.in" >"conftest.tmp"
3906     mv "conftest.tmp" "conftest.in"
3907     cp "conftest.in" "conftest.nl"
3908     echo 'GREP' >> "conftest.nl"
3909     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3910     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3911     ac_count=`expr $ac_count + 1`
3912     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3913       # Best one so far, save it but keep looking for a better one
3914       ac_cv_path_GREP="$ac_path_GREP"
3915       ac_path_GREP_max=$ac_count
3916     fi
3917     # 10*(2^10) chars as input seems more than enough
3918     test $ac_count -gt 10 && break
3919   done
3920   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3921 esac
3922
3923
3924     $ac_path_GREP_found && break 3
3925   done
3926 done
3927
3928 done
3929 IFS=$as_save_IFS
3930
3931
3932 fi
3933
3934 GREP="$ac_cv_path_GREP"
3935 if test -z "$GREP"; then
3936   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3937 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3938    { (exit 1); exit 1; }; }
3939 fi
3940
3941 else
3942   ac_cv_path_GREP=$GREP
3943 fi
3944
3945
3946 fi
3947 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3948 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3949  GREP="$ac_cv_path_GREP"
3950
3951
3952 { echo "$as_me:$LINENO: checking for egrep" >&5
3953 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3954 if test "${ac_cv_path_EGREP+set}" = set; then
3955   echo $ECHO_N "(cached) $ECHO_C" >&6
3956 else
3957   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3958    then ac_cv_path_EGREP="$GREP -E"
3959    else
3960      # Extract the first word of "egrep" to use in msg output
3961 if test -z "$EGREP"; then
3962 set dummy egrep; ac_prog_name=$2
3963 if test "${ac_cv_path_EGREP+set}" = set; then
3964   echo $ECHO_N "(cached) $ECHO_C" >&6
3965 else
3966   ac_path_EGREP_found=false
3967 # Loop through the user's path and test for each of PROGNAME-LIST
3968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3970 do
3971   IFS=$as_save_IFS
3972   test -z "$as_dir" && as_dir=.
3973   for ac_prog in egrep; do
3974   for ac_exec_ext in '' $ac_executable_extensions; do
3975     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3976     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3977     # Check for GNU ac_path_EGREP and select it if it is found.
3978   # Check for GNU $ac_path_EGREP
3979 case `"$ac_path_EGREP" --version 2>&1` in
3980 *GNU*)
3981   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3982 *)
3983   ac_count=0
3984   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3985   while :
3986   do
3987     cat "conftest.in" "conftest.in" >"conftest.tmp"
3988     mv "conftest.tmp" "conftest.in"
3989     cp "conftest.in" "conftest.nl"
3990     echo 'EGREP' >> "conftest.nl"
3991     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3992     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3993     ac_count=`expr $ac_count + 1`
3994     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3995       # Best one so far, save it but keep looking for a better one
3996       ac_cv_path_EGREP="$ac_path_EGREP"
3997       ac_path_EGREP_max=$ac_count
3998     fi
3999     # 10*(2^10) chars as input seems more than enough
4000     test $ac_count -gt 10 && break
4001   done
4002   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4003 esac
4004
4005
4006     $ac_path_EGREP_found && break 3
4007   done
4008 done
4009
4010 done
4011 IFS=$as_save_IFS
4012
4013
4014 fi
4015
4016 EGREP="$ac_cv_path_EGREP"
4017 if test -z "$EGREP"; then
4018   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4019 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4020    { (exit 1); exit 1; }; }
4021 fi
4022
4023 else
4024   ac_cv_path_EGREP=$EGREP
4025 fi
4026
4027
4028    fi
4029 fi
4030 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4031 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4032  EGREP="$ac_cv_path_EGREP"
4033
4034
4035 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4036 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4037 if test "${ac_cv_header_stdc+set}" = set; then
4038   echo $ECHO_N "(cached) $ECHO_C" >&6
4039 else
4040   cat >conftest.$ac_ext <<_ACEOF
4041 /* confdefs.h.  */
4042 _ACEOF
4043 cat confdefs.h >>conftest.$ac_ext
4044 cat >>conftest.$ac_ext <<_ACEOF
4045 /* end confdefs.h.  */
4046 #include <stdlib.h>
4047 #include <stdarg.h>
4048 #include <string.h>
4049 #include <float.h>
4050
4051 int
4052 main ()
4053 {
4054
4055   ;
4056   return 0;
4057 }
4058 _ACEOF
4059 rm -f conftest.$ac_objext
4060 if { (ac_try="$ac_compile"
4061 case "(($ac_try" in
4062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4063   *) ac_try_echo=$ac_try;;
4064 esac
4065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4066   (eval "$ac_compile") 2>conftest.er1
4067   ac_status=$?
4068   grep -v '^ *+' conftest.er1 >conftest.err
4069   rm -f conftest.er1
4070   cat conftest.err >&5
4071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072   (exit $ac_status); } &&
4073          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4074   { (case "(($ac_try" in
4075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076   *) ac_try_echo=$ac_try;;
4077 esac
4078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079   (eval "$ac_try") 2>&5
4080   ac_status=$?
4081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082   (exit $ac_status); }; } &&
4083          { ac_try='test -s conftest.$ac_objext'
4084   { (case "(($ac_try" in
4085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086   *) ac_try_echo=$ac_try;;
4087 esac
4088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4089   (eval "$ac_try") 2>&5
4090   ac_status=$?
4091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092   (exit $ac_status); }; }; then
4093   ac_cv_header_stdc=yes
4094 else
4095   echo "$as_me: failed program was:" >&5
4096 sed 's/^/| /' conftest.$ac_ext >&5
4097
4098         ac_cv_header_stdc=no
4099 fi
4100
4101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4102
4103 if test $ac_cv_header_stdc = yes; then
4104   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4105   cat >conftest.$ac_ext <<_ACEOF
4106 /* confdefs.h.  */
4107 _ACEOF
4108 cat confdefs.h >>conftest.$ac_ext
4109 cat >>conftest.$ac_ext <<_ACEOF
4110 /* end confdefs.h.  */
4111 #include <string.h>
4112
4113 _ACEOF
4114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4115   $EGREP "memchr" >/dev/null 2>&1; then
4116   :
4117 else
4118   ac_cv_header_stdc=no
4119 fi
4120 rm -f conftest*
4121
4122 fi
4123
4124 if test $ac_cv_header_stdc = yes; then
4125   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4126   cat >conftest.$ac_ext <<_ACEOF
4127 /* confdefs.h.  */
4128 _ACEOF
4129 cat confdefs.h >>conftest.$ac_ext
4130 cat >>conftest.$ac_ext <<_ACEOF
4131 /* end confdefs.h.  */
4132 #include <stdlib.h>
4133
4134 _ACEOF
4135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4136   $EGREP "free" >/dev/null 2>&1; then
4137   :
4138 else
4139   ac_cv_header_stdc=no
4140 fi
4141 rm -f conftest*
4142
4143 fi
4144
4145 if test $ac_cv_header_stdc = yes; then
4146   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4147   if test "$cross_compiling" = yes; then
4148   :
4149 else
4150   cat >conftest.$ac_ext <<_ACEOF
4151 /* confdefs.h.  */
4152 _ACEOF
4153 cat confdefs.h >>conftest.$ac_ext
4154 cat >>conftest.$ac_ext <<_ACEOF
4155 /* end confdefs.h.  */
4156 #include <ctype.h>
4157 #include <stdlib.h>
4158 #if ((' ' & 0x0FF) == 0x020)
4159 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4160 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4161 #else
4162 # define ISLOWER(c) \
4163                    (('a' <= (c) && (c) <= 'i') \
4164                      || ('j' <= (c) && (c) <= 'r') \
4165                      || ('s' <= (c) && (c) <= 'z'))
4166 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4167 #endif
4168
4169 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4170 int
4171 main ()
4172 {
4173   int i;
4174   for (i = 0; i < 256; i++)
4175     if (XOR (islower (i), ISLOWER (i))
4176         || toupper (i) != TOUPPER (i))
4177       return 2;
4178   return 0;
4179 }
4180 _ACEOF
4181 rm -f conftest$ac_exeext
4182 if { (ac_try="$ac_link"
4183 case "(($ac_try" in
4184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4185   *) ac_try_echo=$ac_try;;
4186 esac
4187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4188   (eval "$ac_link") 2>&5
4189   ac_status=$?
4190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4192   { (case "(($ac_try" in
4193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194   *) ac_try_echo=$ac_try;;
4195 esac
4196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197   (eval "$ac_try") 2>&5
4198   ac_status=$?
4199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200   (exit $ac_status); }; }; then
4201   :
4202 else
4203   echo "$as_me: program exited with status $ac_status" >&5
4204 echo "$as_me: failed program was:" >&5
4205 sed 's/^/| /' conftest.$ac_ext >&5
4206
4207 ( exit $ac_status )
4208 ac_cv_header_stdc=no
4209 fi
4210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4211 fi
4212
4213
4214 fi
4215 fi
4216 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4217 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4218 if test $ac_cv_header_stdc = yes; then
4219
4220 cat >>confdefs.h <<\_ACEOF
4221 #define STDC_HEADERS 1
4222 _ACEOF
4223
4224 fi
4225
4226 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4237                   inttypes.h stdint.h unistd.h
4238 do
4239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4240 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4243   echo $ECHO_N "(cached) $ECHO_C" >&6
4244 else
4245   cat >conftest.$ac_ext <<_ACEOF
4246 /* confdefs.h.  */
4247 _ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h.  */
4251 $ac_includes_default
4252
4253 #include <$ac_header>
4254 _ACEOF
4255 rm -f conftest.$ac_objext
4256 if { (ac_try="$ac_compile"
4257 case "(($ac_try" in
4258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259   *) ac_try_echo=$ac_try;;
4260 esac
4261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262   (eval "$ac_compile") 2>conftest.er1
4263   ac_status=$?
4264   grep -v '^ *+' conftest.er1 >conftest.err
4265   rm -f conftest.er1
4266   cat conftest.err >&5
4267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268   (exit $ac_status); } &&
4269          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4270   { (case "(($ac_try" in
4271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272   *) ac_try_echo=$ac_try;;
4273 esac
4274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4275   (eval "$ac_try") 2>&5
4276   ac_status=$?
4277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278   (exit $ac_status); }; } &&
4279          { ac_try='test -s conftest.$ac_objext'
4280   { (case "(($ac_try" in
4281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282   *) ac_try_echo=$ac_try;;
4283 esac
4284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4285   (eval "$ac_try") 2>&5
4286   ac_status=$?
4287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288   (exit $ac_status); }; }; then
4289   eval "$as_ac_Header=yes"
4290 else
4291   echo "$as_me: failed program was:" >&5
4292 sed 's/^/| /' conftest.$ac_ext >&5
4293
4294         eval "$as_ac_Header=no"
4295 fi
4296
4297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4298 fi
4299 ac_res=`eval echo '${'$as_ac_Header'}'`
4300                { echo "$as_me:$LINENO: result: $ac_res" >&5
4301 echo "${ECHO_T}$ac_res" >&6; }
4302 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4303   cat >>confdefs.h <<_ACEOF
4304 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4305 _ACEOF
4306
4307 fi
4308
4309 done
4310
4311
4312 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4313 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4314 if test "${ac_cv_c_bigendian+set}" = set; then
4315   echo $ECHO_N "(cached) $ECHO_C" >&6
4316 else
4317   # See if sys/param.h defines the BYTE_ORDER macro.
4318 cat >conftest.$ac_ext <<_ACEOF
4319 /* confdefs.h.  */
4320 _ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h.  */
4324 #include <sys/types.h>
4325 #include <sys/param.h>
4326
4327 int
4328 main ()
4329 {
4330 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4331  bogus endian macros
4332 #endif
4333
4334   ;
4335   return 0;
4336 }
4337 _ACEOF
4338 rm -f conftest.$ac_objext
4339 if { (ac_try="$ac_compile"
4340 case "(($ac_try" in
4341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4342   *) ac_try_echo=$ac_try;;
4343 esac
4344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4345   (eval "$ac_compile") 2>conftest.er1
4346   ac_status=$?
4347   grep -v '^ *+' conftest.er1 >conftest.err
4348   rm -f conftest.er1
4349   cat conftest.err >&5
4350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351   (exit $ac_status); } &&
4352          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4353   { (case "(($ac_try" in
4354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4355   *) ac_try_echo=$ac_try;;
4356 esac
4357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4358   (eval "$ac_try") 2>&5
4359   ac_status=$?
4360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361   (exit $ac_status); }; } &&
4362          { ac_try='test -s conftest.$ac_objext'
4363   { (case "(($ac_try" in
4364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365   *) ac_try_echo=$ac_try;;
4366 esac
4367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4368   (eval "$ac_try") 2>&5
4369   ac_status=$?
4370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371   (exit $ac_status); }; }; then
4372   # It does; now see whether it defined to BIG_ENDIAN or not.
4373 cat >conftest.$ac_ext <<_ACEOF
4374 /* confdefs.h.  */
4375 _ACEOF
4376 cat confdefs.h >>conftest.$ac_ext
4377 cat >>conftest.$ac_ext <<_ACEOF
4378 /* end confdefs.h.  */
4379 #include <sys/types.h>
4380 #include <sys/param.h>
4381
4382 int
4383 main ()
4384 {
4385 #if BYTE_ORDER != BIG_ENDIAN
4386  not big endian
4387 #endif
4388
4389   ;
4390   return 0;
4391 }
4392 _ACEOF
4393 rm -f conftest.$ac_objext
4394 if { (ac_try="$ac_compile"
4395 case "(($ac_try" in
4396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4397   *) ac_try_echo=$ac_try;;
4398 esac
4399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4400   (eval "$ac_compile") 2>conftest.er1
4401   ac_status=$?
4402   grep -v '^ *+' conftest.er1 >conftest.err
4403   rm -f conftest.er1
4404   cat conftest.err >&5
4405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406   (exit $ac_status); } &&
4407          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4408   { (case "(($ac_try" in
4409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410   *) ac_try_echo=$ac_try;;
4411 esac
4412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4413   (eval "$ac_try") 2>&5
4414   ac_status=$?
4415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416   (exit $ac_status); }; } &&
4417          { ac_try='test -s conftest.$ac_objext'
4418   { (case "(($ac_try" in
4419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420   *) ac_try_echo=$ac_try;;
4421 esac
4422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4423   (eval "$ac_try") 2>&5
4424   ac_status=$?
4425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426   (exit $ac_status); }; }; then
4427   ac_cv_c_bigendian=yes
4428 else
4429   echo "$as_me: failed program was:" >&5
4430 sed 's/^/| /' conftest.$ac_ext >&5
4431
4432         ac_cv_c_bigendian=no
4433 fi
4434
4435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4436 else
4437   echo "$as_me: failed program was:" >&5
4438 sed 's/^/| /' conftest.$ac_ext >&5
4439
4440         # It does not; compile a test program.
4441 if test "$cross_compiling" = yes; then
4442   # try to guess the endianness by grepping values into an object file
4443   ac_cv_c_bigendian=unknown
4444   cat >conftest.$ac_ext <<_ACEOF
4445 /* confdefs.h.  */
4446 _ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h.  */
4450 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4451 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4452 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4453 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4454 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4455 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4456 int
4457 main ()
4458 {
4459  _ascii (); _ebcdic ();
4460   ;
4461   return 0;
4462 }
4463 _ACEOF
4464 rm -f conftest.$ac_objext
4465 if { (ac_try="$ac_compile"
4466 case "(($ac_try" in
4467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4468   *) ac_try_echo=$ac_try;;
4469 esac
4470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4471   (eval "$ac_compile") 2>conftest.er1
4472   ac_status=$?
4473   grep -v '^ *+' conftest.er1 >conftest.err
4474   rm -f conftest.er1
4475   cat conftest.err >&5
4476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477   (exit $ac_status); } &&
4478          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4479   { (case "(($ac_try" in
4480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481   *) ac_try_echo=$ac_try;;
4482 esac
4483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4484   (eval "$ac_try") 2>&5
4485   ac_status=$?
4486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487   (exit $ac_status); }; } &&
4488          { ac_try='test -s conftest.$ac_objext'
4489   { (case "(($ac_try" in
4490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491   *) ac_try_echo=$ac_try;;
4492 esac
4493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4494   (eval "$ac_try") 2>&5
4495   ac_status=$?
4496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497   (exit $ac_status); }; }; then
4498   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4499   ac_cv_c_bigendian=yes
4500 fi
4501 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4502   if test "$ac_cv_c_bigendian" = unknown; then
4503     ac_cv_c_bigendian=no
4504   else
4505     # finding both strings is unlikely to happen, but who knows?
4506     ac_cv_c_bigendian=unknown
4507   fi
4508 fi
4509 else
4510   echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.$ac_ext >&5
4512
4513
4514 fi
4515
4516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4517 else
4518   cat >conftest.$ac_ext <<_ACEOF
4519 /* confdefs.h.  */
4520 _ACEOF
4521 cat confdefs.h >>conftest.$ac_ext
4522 cat >>conftest.$ac_ext <<_ACEOF
4523 /* end confdefs.h.  */
4524 $ac_includes_default
4525 int
4526 main ()
4527 {
4528
4529   /* Are we little or big endian?  From Harbison&Steele.  */
4530   union
4531   {
4532     long int l;
4533     char c[sizeof (long int)];
4534   } u;
4535   u.l = 1;
4536   return u.c[sizeof (long int) - 1] == 1;
4537
4538   ;
4539   return 0;
4540 }
4541 _ACEOF
4542 rm -f conftest$ac_exeext
4543 if { (ac_try="$ac_link"
4544 case "(($ac_try" in
4545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4546   *) ac_try_echo=$ac_try;;
4547 esac
4548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4549   (eval "$ac_link") 2>&5
4550   ac_status=$?
4551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4553   { (case "(($ac_try" in
4554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555   *) ac_try_echo=$ac_try;;
4556 esac
4557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4558   (eval "$ac_try") 2>&5
4559   ac_status=$?
4560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561   (exit $ac_status); }; }; then
4562   ac_cv_c_bigendian=no
4563 else
4564   echo "$as_me: program exited with status $ac_status" >&5
4565 echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.$ac_ext >&5
4567
4568 ( exit $ac_status )
4569 ac_cv_c_bigendian=yes
4570 fi
4571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4572 fi
4573
4574
4575 fi
4576
4577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4578 fi
4579 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4580 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4581 case $ac_cv_c_bigendian in
4582   yes)
4583     ENDIAN=big
4584  ;;
4585   no)
4586     ENDIAN=little
4587  ;;
4588   *)
4589     { { echo "$as_me:$LINENO: error: unknown endianness
4590 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4591 echo "$as_me: error: unknown endianness
4592 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4593    { (exit 1); exit 1; }; } ;;
4594 esac
4595
4596
4597 if test "$cross_compiling" = yes; then
4598   LLVM_CROSS_COMPILING=1
4599
4600
4601 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4602 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4603 if test "${ac_cv_build_exeext+set}" = set; then
4604   echo $ECHO_N "(cached) $ECHO_C" >&6
4605 else
4606   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4607   ac_cv_build_exeext=.exe
4608 else
4609   ac_build_prefix=${build_alias}-
4610
4611   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4612 set dummy ${ac_build_prefix}gcc; ac_word=$2
4613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4615 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4616   echo $ECHO_N "(cached) $ECHO_C" >&6
4617 else
4618   if test -n "$BUILD_CC"; then
4619   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4620 else
4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 for as_dir in $PATH
4623 do
4624   IFS=$as_save_IFS
4625   test -z "$as_dir" && as_dir=.
4626   for ac_exec_ext in '' $ac_executable_extensions; do
4627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4628     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4630     break 2
4631   fi
4632 done
4633 done
4634 IFS=$as_save_IFS
4635
4636 fi
4637 fi
4638 BUILD_CC=$ac_cv_prog_BUILD_CC
4639 if test -n "$BUILD_CC"; then
4640   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4641 echo "${ECHO_T}$BUILD_CC" >&6; }
4642 else
4643   { echo "$as_me:$LINENO: result: no" >&5
4644 echo "${ECHO_T}no" >&6; }
4645 fi
4646
4647
4648   if test -z "$BUILD_CC"; then
4649      # Extract the first word of "gcc", so it can be a program name with args.
4650 set dummy gcc; ac_word=$2
4651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4653 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4654   echo $ECHO_N "(cached) $ECHO_C" >&6
4655 else
4656   if test -n "$BUILD_CC"; then
4657   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4658 else
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 for as_dir in $PATH
4661 do
4662   IFS=$as_save_IFS
4663   test -z "$as_dir" && as_dir=.
4664   for ac_exec_ext in '' $ac_executable_extensions; do
4665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4666     ac_cv_prog_BUILD_CC="gcc"
4667     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4668     break 2
4669   fi
4670 done
4671 done
4672 IFS=$as_save_IFS
4673
4674 fi
4675 fi
4676 BUILD_CC=$ac_cv_prog_BUILD_CC
4677 if test -n "$BUILD_CC"; then
4678   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4679 echo "${ECHO_T}$BUILD_CC" >&6; }
4680 else
4681   { echo "$as_me:$LINENO: result: no" >&5
4682 echo "${ECHO_T}no" >&6; }
4683 fi
4684
4685
4686      if test -z "$BUILD_CC"; then
4687        # Extract the first word of "cc", so it can be a program name with args.
4688 set dummy cc; ac_word=$2
4689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4691 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4692   echo $ECHO_N "(cached) $ECHO_C" >&6
4693 else
4694   if test -n "$BUILD_CC"; then
4695   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4696 else
4697   ac_prog_rejected=no
4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 for as_dir in $PATH
4700 do
4701   IFS=$as_save_IFS
4702   test -z "$as_dir" && as_dir=.
4703   for ac_exec_ext in '' $ac_executable_extensions; do
4704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4705     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4706        ac_prog_rejected=yes
4707        continue
4708      fi
4709     ac_cv_prog_BUILD_CC="cc"
4710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4711     break 2
4712   fi
4713 done
4714 done
4715 IFS=$as_save_IFS
4716
4717 if test $ac_prog_rejected = yes; then
4718   # We found a bogon in the path, so make sure we never use it.
4719   set dummy $ac_cv_prog_BUILD_CC
4720   shift
4721   if test $# != 0; then
4722     # We chose a different compiler from the bogus one.
4723     # However, it has the same basename, so the bogon will be chosen
4724     # first if we set BUILD_CC to just the basename; use the full file name.
4725     shift
4726     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4727   fi
4728 fi
4729 fi
4730 fi
4731 BUILD_CC=$ac_cv_prog_BUILD_CC
4732 if test -n "$BUILD_CC"; then
4733   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4734 echo "${ECHO_T}$BUILD_CC" >&6; }
4735 else
4736   { echo "$as_me:$LINENO: result: no" >&5
4737 echo "${ECHO_T}no" >&6; }
4738 fi
4739
4740
4741      fi
4742   fi
4743   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4744 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4745    { (exit 1); exit 1; }; }
4746   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4747   rm -f conftest*
4748   echo 'int main () { return 0; }' > conftest.$ac_ext
4749   ac_cv_build_exeext=
4750   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4751   (eval $ac_build_link) 2>&5
4752   ac_status=$?
4753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754   (exit $ac_status); }; then
4755     for file in conftest.*; do
4756       case $file in
4757       *.c | *.o | *.obj | *.dSYM) ;;
4758       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4759       esac
4760     done
4761   else
4762     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4763 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4764    { (exit 1); exit 1; }; }
4765   fi
4766   rm -f conftest*
4767   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4768 fi
4769 fi
4770
4771 BUILD_EXEEXT=""
4772 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4773 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4774 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4775 ac_build_exeext=$BUILD_EXEEXT
4776
4777   ac_build_prefix=${build_alias}-
4778   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4779 set dummy ${ac_build_prefix}g++; ac_word=$2
4780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4782 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4783   echo $ECHO_N "(cached) $ECHO_C" >&6
4784 else
4785   if test -n "$BUILD_CXX"; then
4786   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4787 else
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 for as_dir in $PATH
4790 do
4791   IFS=$as_save_IFS
4792   test -z "$as_dir" && as_dir=.
4793   for ac_exec_ext in '' $ac_executable_extensions; do
4794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4795     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4797     break 2
4798   fi
4799 done
4800 done
4801 IFS=$as_save_IFS
4802
4803 fi
4804 fi
4805 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4806 if test -n "$BUILD_CXX"; then
4807   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4808 echo "${ECHO_T}$BUILD_CXX" >&6; }
4809 else
4810   { echo "$as_me:$LINENO: result: no" >&5
4811 echo "${ECHO_T}no" >&6; }
4812 fi
4813
4814
4815   if test -z "$BUILD_CXX"; then
4816      # Extract the first word of "g++", so it can be a program name with args.
4817 set dummy g++; ac_word=$2
4818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4820 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4821   echo $ECHO_N "(cached) $ECHO_C" >&6
4822 else
4823   if test -n "$BUILD_CXX"; then
4824   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4825 else
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 for as_dir in $PATH
4828 do
4829   IFS=$as_save_IFS
4830   test -z "$as_dir" && as_dir=.
4831   for ac_exec_ext in '' $ac_executable_extensions; do
4832   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4833     ac_cv_prog_BUILD_CXX="g++"
4834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4835     break 2
4836   fi
4837 done
4838 done
4839 IFS=$as_save_IFS
4840
4841 fi
4842 fi
4843 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4844 if test -n "$BUILD_CXX"; then
4845   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4846 echo "${ECHO_T}$BUILD_CXX" >&6; }
4847 else
4848   { echo "$as_me:$LINENO: result: no" >&5
4849 echo "${ECHO_T}no" >&6; }
4850 fi
4851
4852
4853      if test -z "$BUILD_CXX"; then
4854        # Extract the first word of "c++", so it can be a program name with args.
4855 set dummy c++; ac_word=$2
4856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4858 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4859   echo $ECHO_N "(cached) $ECHO_C" >&6
4860 else
4861   if test -n "$BUILD_CXX"; then
4862   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4863 else
4864   ac_prog_rejected=no
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 for as_dir in $PATH
4867 do
4868   IFS=$as_save_IFS
4869   test -z "$as_dir" && as_dir=.
4870   for ac_exec_ext in '' $ac_executable_extensions; do
4871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4872     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4873        ac_prog_rejected=yes
4874        continue
4875      fi
4876     ac_cv_prog_BUILD_CXX="c++"
4877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4878     break 2
4879   fi
4880 done
4881 done
4882 IFS=$as_save_IFS
4883
4884 if test $ac_prog_rejected = yes; then
4885   # We found a bogon in the path, so make sure we never use it.
4886   set dummy $ac_cv_prog_BUILD_CXX
4887   shift
4888   if test $# != 0; then
4889     # We chose a different compiler from the bogus one.
4890     # However, it has the same basename, so the bogon will be chosen
4891     # first if we set BUILD_CXX to just the basename; use the full file name.
4892     shift
4893     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4894   fi
4895 fi
4896 fi
4897 fi
4898 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4899 if test -n "$BUILD_CXX"; then
4900   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4901 echo "${ECHO_T}$BUILD_CXX" >&6; }
4902 else
4903   { echo "$as_me:$LINENO: result: no" >&5
4904 echo "${ECHO_T}no" >&6; }
4905 fi
4906
4907
4908      fi
4909   fi
4910 else
4911   LLVM_CROSS_COMPILING=0
4912
4913 fi
4914
4915 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4916   cvsbuild="yes"
4917   optimize="no"
4918   CVSBUILD=CVSBUILD=1
4919
4920 else
4921   cvsbuild="no"
4922   optimize="yes"
4923 fi
4924
4925
4926 # Check whether --enable-optimized was given.
4927 if test "${enable_optimized+set}" = set; then
4928   enableval=$enable_optimized;
4929 else
4930   enableval=$optimize
4931 fi
4932
4933 if test ${enableval} = "no" ; then
4934   ENABLE_OPTIMIZED=
4935
4936 else
4937   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4938
4939 fi
4940
4941 # Check whether --enable-profiling was given.
4942 if test "${enable_profiling+set}" = set; then
4943   enableval=$enable_profiling;
4944 else
4945   enableval="no"
4946 fi
4947
4948 if test ${enableval} = "no" ; then
4949   ENABLE_PROFILING=
4950
4951 else
4952   ENABLE_PROFILING=ENABLE_PROFILING=1
4953
4954 fi
4955
4956 # Check whether --enable-assertions was given.
4957 if test "${enable_assertions+set}" = set; then
4958   enableval=$enable_assertions;
4959 else
4960   enableval="yes"
4961 fi
4962
4963 if test ${enableval} = "yes" ; then
4964   DISABLE_ASSERTIONS=
4965
4966 else
4967   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4968
4969 fi
4970
4971 # Check whether --enable-expensive-checks was given.
4972 if test "${enable_expensive_checks+set}" = set; then
4973   enableval=$enable_expensive_checks;
4974 else
4975   enableval="no"
4976 fi
4977
4978 if test ${enableval} = "yes" ; then
4979   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4980
4981   EXPENSIVE_CHECKS=yes
4982
4983 else
4984   ENABLE_EXPENSIVE_CHECKS=
4985
4986   EXPENSIVE_CHECKS=no
4987
4988 fi
4989
4990 # Check whether --enable-debug-runtime was given.
4991 if test "${enable_debug_runtime+set}" = set; then
4992   enableval=$enable_debug_runtime;
4993 else
4994   enableval=no
4995 fi
4996
4997 if test ${enableval} = "no" ; then
4998   DEBUG_RUNTIME=
4999
5000 else
5001   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5002
5003 fi
5004
5005 # Check whether --enable-debug-symbols was given.
5006 if test "${enable_debug_symbols+set}" = set; then
5007   enableval=$enable_debug_symbols;
5008 else
5009   enableval=no
5010 fi
5011
5012 if test ${enableval} = "no" ; then
5013   DEBUG_SYMBOLS=
5014
5015 else
5016   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5017
5018 fi
5019
5020 # Check whether --enable-jit was given.
5021 if test "${enable_jit+set}" = set; then
5022   enableval=$enable_jit;
5023 else
5024   enableval=default
5025 fi
5026
5027 if test ${enableval} = "no"
5028 then
5029   JIT=
5030
5031 else
5032   case "$llvm_cv_target_arch" in
5033     x86)         TARGET_HAS_JIT=1
5034  ;;
5035     Sparc)       TARGET_HAS_JIT=0
5036  ;;
5037     PowerPC)     TARGET_HAS_JIT=1
5038  ;;
5039     x86_64)      TARGET_HAS_JIT=1
5040  ;;
5041     Alpha)       TARGET_HAS_JIT=0
5042  ;;
5043     ARM)         TARGET_HAS_JIT=1
5044  ;;
5045     Mips)        TARGET_HAS_JIT=1
5046  ;;
5047     XCore)       TARGET_HAS_JIT=0
5048  ;;
5049     MSP430)      TARGET_HAS_JIT=0
5050  ;;
5051     MBlaze)      TARGET_HAS_JIT=0
5052  ;;
5053     PTX)         TARGET_HAS_JIT=0
5054  ;;
5055     *)           TARGET_HAS_JIT=0
5056  ;;
5057   esac
5058 fi
5059
5060 # Check whether --enable-docs was given.
5061 if test "${enable_docs+set}" = set; then
5062   enableval=$enable_docs;
5063 else
5064   enableval=default
5065 fi
5066
5067 case "$enableval" in
5068   yes) ENABLE_DOCS=1
5069  ;;
5070   no)  ENABLE_DOCS=0
5071  ;;
5072   default) ENABLE_DOCS=1
5073  ;;
5074   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5075 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5076    { (exit 1); exit 1; }; } ;;
5077 esac
5078
5079 # Check whether --enable-doxygen was given.
5080 if test "${enable_doxygen+set}" = set; then
5081   enableval=$enable_doxygen;
5082 else
5083   enableval=default
5084 fi
5085
5086 case "$enableval" in
5087   yes) ENABLE_DOXYGEN=1
5088  ;;
5089   no)  ENABLE_DOXYGEN=0
5090  ;;
5091   default) ENABLE_DOXYGEN=0
5092  ;;
5093   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5094 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5095    { (exit 1); exit 1; }; } ;;
5096 esac
5097
5098 # Check whether --enable-threads was given.
5099 if test "${enable_threads+set}" = set; then
5100   enableval=$enable_threads;
5101 else
5102   enableval=default
5103 fi
5104
5105 case "$enableval" in
5106   yes) ENABLE_THREADS=1
5107  ;;
5108   no)  ENABLE_THREADS=0
5109  ;;
5110   default) ENABLE_THREADS=1
5111  ;;
5112   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5113 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5114    { (exit 1); exit 1; }; } ;;
5115 esac
5116
5117 cat >>confdefs.h <<_ACEOF
5118 #define ENABLE_THREADS $ENABLE_THREADS
5119 _ACEOF
5120
5121
5122 # Check whether --enable-pthreads was given.
5123 if test "${enable_pthreads+set}" = set; then
5124   enableval=$enable_pthreads;
5125 else
5126   enableval=default
5127 fi
5128
5129 case "$enableval" in
5130   yes) ENABLE_PTHREADS=1
5131  ;;
5132   no)  ENABLE_PTHREADS=0
5133  ;;
5134   default) ENABLE_PTHREADS=1
5135  ;;
5136   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5137 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5138    { (exit 1); exit 1; }; } ;;
5139 esac
5140
5141 # Check whether --enable-pic was given.
5142 if test "${enable_pic+set}" = set; then
5143   enableval=$enable_pic;
5144 else
5145   enableval=default
5146 fi
5147
5148 case "$enableval" in
5149   yes) ENABLE_PIC=1
5150  ;;
5151   no)  ENABLE_PIC=0
5152  ;;
5153   default) ENABLE_PIC=1
5154  ;;
5155   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5156 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5157    { (exit 1); exit 1; }; } ;;
5158 esac
5159
5160 cat >>confdefs.h <<_ACEOF
5161 #define ENABLE_PIC $ENABLE_PIC
5162 _ACEOF
5163
5164
5165 # Check whether --enable-shared was given.
5166 if test "${enable_shared+set}" = set; then
5167   enableval=$enable_shared;
5168 else
5169   enableval=default
5170 fi
5171
5172 case "$enableval" in
5173   yes) ENABLE_SHARED=1
5174  ;;
5175   no)  ENABLE_SHARED=0
5176  ;;
5177   default) ENABLE_SHARED=0
5178  ;;
5179   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5180 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5181    { (exit 1); exit 1; }; } ;;
5182 esac
5183
5184 # Check whether --enable-embed-stdcxx was given.
5185 if test "${enable_embed_stdcxx+set}" = set; then
5186   enableval=$enable_embed_stdcxx;
5187 else
5188   enableval=default
5189 fi
5190
5191 case "$enableval" in
5192   yes) ENABLE_EMBED_STDCXX=1
5193  ;;
5194   no)  ENABLE_EMBED_STDCXX=0
5195  ;;
5196   default) ENABLE_EMBED_STDCXX=1
5197  ;;
5198   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5199 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5200    { (exit 1); exit 1; }; } ;;
5201 esac
5202
5203 # Check whether --enable-timestamps was given.
5204 if test "${enable_timestamps+set}" = set; then
5205   enableval=$enable_timestamps;
5206 else
5207   enableval=default
5208 fi
5209
5210 case "$enableval" in
5211   yes) ENABLE_TIMESTAMPS=1
5212  ;;
5213   no)  ENABLE_TIMESTAMPS=0
5214  ;;
5215   default) ENABLE_TIMESTAMPS=1
5216  ;;
5217   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5218 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5219    { (exit 1); exit 1; }; } ;;
5220 esac
5221
5222 cat >>confdefs.h <<_ACEOF
5223 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5224 _ACEOF
5225
5226
5227 TARGETS_TO_BUILD=""
5228 # Check whether --enable-targets was given.
5229 if test "${enable_targets+set}" = set; then
5230   enableval=$enable_targets;
5231 else
5232   enableval=all
5233 fi
5234
5235 if test "$enableval" = host-only ; then
5236   enableval=host
5237 fi
5238 case "$enableval" in
5239   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX" ;;
5240   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5241       case "$a_target" in
5242         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5243         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5244         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5245         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5246         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5247         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5248         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5249         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5250         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5251         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5252         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5253         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5254         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5255         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5256         host) case "$llvm_cv_target_arch" in
5257             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5258             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5259             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5260             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5261             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5262             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5263             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5264             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5265             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5266             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5267             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5268             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5269             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5270 echo "$as_me: error: Can not set target to build" >&2;}
5271    { (exit 1); exit 1; }; } ;;
5272           esac ;;
5273         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5274 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5275    { (exit 1); exit 1; }; } ;;
5276       esac
5277   done
5278   ;;
5279 esac
5280 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5281
5282
5283 # Determine whether we are building LLVM support for the native architecture.
5284 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5285 for a_target in $TARGETS_TO_BUILD; do
5286   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5287
5288 cat >>confdefs.h <<_ACEOF
5289 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5290 _ACEOF
5291
5292     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5293     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5294     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5295     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5296     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5297       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5298     fi
5299
5300 cat >>confdefs.h <<_ACEOF
5301 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5302 _ACEOF
5303
5304
5305 cat >>confdefs.h <<_ACEOF
5306 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5307 _ACEOF
5308
5309
5310 cat >>confdefs.h <<_ACEOF
5311 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5312 _ACEOF
5313
5314
5315 cat >>confdefs.h <<_ACEOF
5316 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5317 _ACEOF
5318
5319     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5320
5321 cat >>confdefs.h <<_ACEOF
5322 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5323 _ACEOF
5324
5325     fi
5326   fi
5327 done
5328
5329 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5330 # target feature def files.
5331 LLVM_ENUM_TARGETS=""
5332 LLVM_ENUM_ASM_PRINTERS=""
5333 LLVM_ENUM_ASM_PARSERS=""
5334 LLVM_ENUM_DISASSEMBLERS=""
5335 for target_to_build in $TARGETS_TO_BUILD; do
5336   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5337   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5338     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5339   fi
5340   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5341     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5342   fi
5343   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5344     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5345   fi
5346 done
5347
5348
5349
5350
5351
5352 # Check whether --enable-cbe-printf-a was given.
5353 if test "${enable_cbe_printf_a+set}" = set; then
5354   enableval=$enable_cbe_printf_a;
5355 else
5356   enableval=default
5357 fi
5358
5359 case "$enableval" in
5360   yes) ENABLE_CBE_PRINTF_A=1
5361  ;;
5362   no)  ENABLE_CBE_PRINTF_A=0
5363  ;;
5364   default)  ENABLE_CBE_PRINTF_A=1
5365  ;;
5366   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5367 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5368    { (exit 1); exit 1; }; } ;;
5369 esac
5370
5371 cat >>confdefs.h <<_ACEOF
5372 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5373 _ACEOF
5374
5375
5376
5377 # Check whether --with-optimize-option was given.
5378 if test "${with_optimize_option+set}" = set; then
5379   withval=$with_optimize_option;
5380 else
5381   withval=default
5382 fi
5383
5384 { echo "$as_me:$LINENO: checking optimization flags" >&5
5385 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5386 case "$withval" in
5387   default)
5388     case "$llvm_cv_os_type" in
5389     FreeBSD) optimize_option=-O2 ;;
5390     MingW) optimize_option=-O2 ;;
5391     *)     optimize_option=-O3 ;;
5392     esac ;;
5393   *) optimize_option="$withval" ;;
5394 esac
5395 OPTIMIZE_OPTION=$optimize_option
5396
5397 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5398 echo "${ECHO_T}$optimize_option" >&6; }
5399
5400
5401 # Check whether --with-extra-options was given.
5402 if test "${with_extra_options+set}" = set; then
5403   withval=$with_extra_options;
5404 else
5405   withval=default
5406 fi
5407
5408 case "$withval" in
5409   default) EXTRA_OPTIONS= ;;
5410   *) EXTRA_OPTIONS=$withval ;;
5411 esac
5412 EXTRA_OPTIONS=$EXTRA_OPTIONS
5413
5414
5415
5416 # Check whether --with-extra-ld-options was given.
5417 if test "${with_extra_ld_options+set}" = set; then
5418   withval=$with_extra_ld_options;
5419 else
5420   withval=default
5421 fi
5422
5423 case "$withval" in
5424   default) EXTRA_LD_OPTIONS= ;;
5425   *) EXTRA_LD_OPTIONS=$withval ;;
5426 esac
5427 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5428
5429
5430 # Check whether --enable-bindings was given.
5431 if test "${enable_bindings+set}" = set; then
5432   enableval=$enable_bindings;
5433 else
5434   enableval=default
5435 fi
5436
5437 BINDINGS_TO_BUILD=""
5438 case "$enableval" in
5439   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5440   all ) BINDINGS_TO_BUILD="ocaml" ;;
5441   none | no) BINDINGS_TO_BUILD="" ;;
5442   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5443       case "$a_binding" in
5444         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5445         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5446 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5447    { (exit 1); exit 1; }; } ;;
5448       esac
5449   done
5450   ;;
5451 esac
5452
5453
5454 # Check whether --with-ocaml-libdir was given.
5455 if test "${with_ocaml_libdir+set}" = set; then
5456   withval=$with_ocaml_libdir;
5457 else
5458   withval=auto
5459 fi
5460
5461 case "$withval" in
5462   auto) with_ocaml_libdir="$withval" ;;
5463   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5464   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5465 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5466    { (exit 1); exit 1; }; } ;;
5467 esac
5468
5469
5470 # Check whether --with-clang-resource-dir was given.
5471 if test "${with_clang_resource_dir+set}" = set; then
5472   withval=$with_clang_resource_dir;
5473 else
5474   withval=""
5475 fi
5476
5477
5478 cat >>confdefs.h <<_ACEOF
5479 #define CLANG_RESOURCE_DIR "$withval"
5480 _ACEOF
5481
5482
5483
5484 # Check whether --with-c-include-dirs was given.
5485 if test "${with_c_include_dirs+set}" = set; then
5486   withval=$with_c_include_dirs;
5487 else
5488   withval=""
5489 fi
5490
5491
5492 cat >>confdefs.h <<_ACEOF
5493 #define C_INCLUDE_DIRS "$withval"
5494 _ACEOF
5495
5496
5497
5498 # Check whether --with-cxx-include-root was given.
5499 if test "${with_cxx_include_root+set}" = set; then
5500   withval=$with_cxx_include_root;
5501 else
5502   withval=""
5503 fi
5504
5505
5506 cat >>confdefs.h <<_ACEOF
5507 #define CXX_INCLUDE_ROOT "$withval"
5508 _ACEOF
5509
5510
5511
5512 # Check whether --with-cxx-include-arch was given.
5513 if test "${with_cxx_include_arch+set}" = set; then
5514   withval=$with_cxx_include_arch;
5515 else
5516   withval=""
5517 fi
5518
5519
5520 cat >>confdefs.h <<_ACEOF
5521 #define CXX_INCLUDE_ARCH "$withval"
5522 _ACEOF
5523
5524
5525
5526 # Check whether --with-cxx-include-32bit-dir was given.
5527 if test "${with_cxx_include_32bit_dir+set}" = set; then
5528   withval=$with_cxx_include_32bit_dir;
5529 else
5530   withval=""
5531 fi
5532
5533
5534 cat >>confdefs.h <<_ACEOF
5535 #define CXX_INCLUDE_32BIT_DIR "$withval"
5536 _ACEOF
5537
5538
5539
5540 # Check whether --with-cxx-include-64bit-dir was given.
5541 if test "${with_cxx_include_64bit_dir+set}" = set; then
5542   withval=$with_cxx_include_64bit_dir;
5543 else
5544   withval=""
5545 fi
5546
5547
5548 cat >>confdefs.h <<_ACEOF
5549 #define CXX_INCLUDE_64BIT_DIR "$withval"
5550 _ACEOF
5551
5552
5553
5554 # Check whether --with-binutils-include was given.
5555 if test "${with_binutils_include+set}" = set; then
5556   withval=$with_binutils_include;
5557 else
5558   withval=default
5559 fi
5560
5561 case "$withval" in
5562   default) WITH_BINUTILS_INCDIR=default ;;
5563   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5564   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5565 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5566    { (exit 1); exit 1; }; } ;;
5567 esac
5568 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5569   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5570
5571   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5572      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5573      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5574 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5575    { (exit 1); exit 1; }; };
5576   fi
5577 fi
5578
5579
5580 # Check whether --with-bug-report-url was given.
5581 if test "${with_bug_report_url+set}" = set; then
5582   withval=$with_bug_report_url;
5583 else
5584   withval="http://llvm.org/bugs/"
5585 fi
5586
5587
5588 cat >>confdefs.h <<_ACEOF
5589 #define BUG_REPORT_URL "$withval"
5590 _ACEOF
5591
5592
5593 # Check whether --enable-libffi was given.
5594 if test "${enable_libffi+set}" = set; then
5595   enableval=$enable_libffi; case "$enableval" in
5596     yes) llvm_cv_enable_libffi="yes" ;;
5597     no)  llvm_cv_enable_libffi="no"  ;;
5598     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5599 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5600    { (exit 1); exit 1; }; } ;;
5601   esac
5602 else
5603   llvm_cv_enable_libffi=no
5604 fi
5605
5606
5607
5608 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5609 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5610 if test "${lt_cv_path_NM+set}" = set; then
5611   echo $ECHO_N "(cached) $ECHO_C" >&6
5612 else
5613   if test -n "$NM"; then
5614   # Let the user override the test.
5615   lt_cv_path_NM="$NM"
5616 else
5617   lt_nm_to_check="${ac_tool_prefix}nm"
5618   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5619     lt_nm_to_check="$lt_nm_to_check nm"
5620   fi
5621   for lt_tmp_nm in $lt_nm_to_check; do
5622     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5623     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5624       IFS="$lt_save_ifs"
5625       test -z "$ac_dir" && ac_dir=.
5626       tmp_nm="$ac_dir/$lt_tmp_nm"
5627       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5628         # Check to see if the nm accepts a BSD-compat flag.
5629         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5630         #   nm: unknown option "B" ignored
5631         # Tru64's nm complains that /dev/null is an invalid object file
5632         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5633         */dev/null* | *'Invalid file or object type'*)
5634           lt_cv_path_NM="$tmp_nm -B"
5635           break
5636           ;;
5637         *)
5638           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5639           */dev/null*)
5640             lt_cv_path_NM="$tmp_nm -p"
5641             break
5642             ;;
5643           *)
5644             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5645             continue # so that we can try to find one that supports BSD flags
5646             ;;
5647           esac
5648           ;;
5649         esac
5650       fi
5651     done
5652     IFS="$lt_save_ifs"
5653   done
5654   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5655 fi
5656 fi
5657 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5658 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5659 NM="$lt_cv_path_NM"
5660
5661
5662
5663 { echo "$as_me:$LINENO: checking for GNU make" >&5
5664 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5665 if test "${llvm_cv_gnu_make_command+set}" = set; then
5666   echo $ECHO_N "(cached) $ECHO_C" >&6
5667 else
5668   llvm_cv_gnu_make_command=''
5669  for a in "$MAKE" make gmake gnumake ; do
5670   if test -z "$a" ; then continue ; fi ;
5671   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5672   then
5673    llvm_cv_gnu_make_command=$a ;
5674    break;
5675   fi
5676  done
5677 fi
5678 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5679 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5680  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5681    ifGNUmake='' ;
5682  else
5683    ifGNUmake='#' ;
5684    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5685 echo "${ECHO_T}\"Not found\"" >&6; };
5686  fi
5687
5688
5689 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5690 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5691 LN_S=$as_ln_s
5692 if test "$LN_S" = "ln -s"; then
5693   { echo "$as_me:$LINENO: result: yes" >&5
5694 echo "${ECHO_T}yes" >&6; }
5695 else
5696   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5697 echo "${ECHO_T}no, using $LN_S" >&6; }
5698 fi
5699
5700 # Extract the first word of "cmp", so it can be a program name with args.
5701 set dummy cmp; ac_word=$2
5702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5704 if test "${ac_cv_path_CMP+set}" = set; then
5705   echo $ECHO_N "(cached) $ECHO_C" >&6
5706 else
5707   case $CMP in
5708   [\\/]* | ?:[\\/]*)
5709   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5710   ;;
5711   *)
5712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713 for as_dir in $PATH
5714 do
5715   IFS=$as_save_IFS
5716   test -z "$as_dir" && as_dir=.
5717   for ac_exec_ext in '' $ac_executable_extensions; do
5718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5719     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5720     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5721     break 2
5722   fi
5723 done
5724 done
5725 IFS=$as_save_IFS
5726
5727   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5728   ;;
5729 esac
5730 fi
5731 CMP=$ac_cv_path_CMP
5732 if test -n "$CMP"; then
5733   { echo "$as_me:$LINENO: result: $CMP" >&5
5734 echo "${ECHO_T}$CMP" >&6; }
5735 else
5736   { echo "$as_me:$LINENO: result: no" >&5
5737 echo "${ECHO_T}no" >&6; }
5738 fi
5739
5740
5741 # Extract the first word of "cp", so it can be a program name with args.
5742 set dummy cp; ac_word=$2
5743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5745 if test "${ac_cv_path_CP+set}" = set; then
5746   echo $ECHO_N "(cached) $ECHO_C" >&6
5747 else
5748   case $CP in
5749   [\\/]* | ?:[\\/]*)
5750   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5751   ;;
5752   *)
5753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754 for as_dir in $PATH
5755 do
5756   IFS=$as_save_IFS
5757   test -z "$as_dir" && as_dir=.
5758   for ac_exec_ext in '' $ac_executable_extensions; do
5759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5760     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5762     break 2
5763   fi
5764 done
5765 done
5766 IFS=$as_save_IFS
5767
5768   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5769   ;;
5770 esac
5771 fi
5772 CP=$ac_cv_path_CP
5773 if test -n "$CP"; then
5774   { echo "$as_me:$LINENO: result: $CP" >&5
5775 echo "${ECHO_T}$CP" >&6; }
5776 else
5777   { echo "$as_me:$LINENO: result: no" >&5
5778 echo "${ECHO_T}no" >&6; }
5779 fi
5780
5781
5782 # Extract the first word of "date", so it can be a program name with args.
5783 set dummy date; ac_word=$2
5784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5786 if test "${ac_cv_path_DATE+set}" = set; then
5787   echo $ECHO_N "(cached) $ECHO_C" >&6
5788 else
5789   case $DATE in
5790   [\\/]* | ?:[\\/]*)
5791   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5792   ;;
5793   *)
5794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795 for as_dir in $PATH
5796 do
5797   IFS=$as_save_IFS
5798   test -z "$as_dir" && as_dir=.
5799   for ac_exec_ext in '' $ac_executable_extensions; do
5800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5801     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5803     break 2
5804   fi
5805 done
5806 done
5807 IFS=$as_save_IFS
5808
5809   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5810   ;;
5811 esac
5812 fi
5813 DATE=$ac_cv_path_DATE
5814 if test -n "$DATE"; then
5815   { echo "$as_me:$LINENO: result: $DATE" >&5
5816 echo "${ECHO_T}$DATE" >&6; }
5817 else
5818   { echo "$as_me:$LINENO: result: no" >&5
5819 echo "${ECHO_T}no" >&6; }
5820 fi
5821
5822
5823 # Extract the first word of "find", so it can be a program name with args.
5824 set dummy find; ac_word=$2
5825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5827 if test "${ac_cv_path_FIND+set}" = set; then
5828   echo $ECHO_N "(cached) $ECHO_C" >&6
5829 else
5830   case $FIND in
5831   [\\/]* | ?:[\\/]*)
5832   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5833   ;;
5834   *)
5835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836 for as_dir in $PATH
5837 do
5838   IFS=$as_save_IFS
5839   test -z "$as_dir" && as_dir=.
5840   for ac_exec_ext in '' $ac_executable_extensions; do
5841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5842     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5844     break 2
5845   fi
5846 done
5847 done
5848 IFS=$as_save_IFS
5849
5850   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5851   ;;
5852 esac
5853 fi
5854 FIND=$ac_cv_path_FIND
5855 if test -n "$FIND"; then
5856   { echo "$as_me:$LINENO: result: $FIND" >&5
5857 echo "${ECHO_T}$FIND" >&6; }
5858 else
5859   { echo "$as_me:$LINENO: result: no" >&5
5860 echo "${ECHO_T}no" >&6; }
5861 fi
5862
5863
5864 # Extract the first word of "grep", so it can be a program name with args.
5865 set dummy grep; ac_word=$2
5866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5868 if test "${ac_cv_path_GREP+set}" = set; then
5869   echo $ECHO_N "(cached) $ECHO_C" >&6
5870 else
5871   case $GREP in
5872   [\\/]* | ?:[\\/]*)
5873   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5874   ;;
5875   *)
5876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 for as_dir in $PATH
5878 do
5879   IFS=$as_save_IFS
5880   test -z "$as_dir" && as_dir=.
5881   for ac_exec_ext in '' $ac_executable_extensions; do
5882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5883     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5885     break 2
5886   fi
5887 done
5888 done
5889 IFS=$as_save_IFS
5890
5891   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5892   ;;
5893 esac
5894 fi
5895 GREP=$ac_cv_path_GREP
5896 if test -n "$GREP"; then
5897   { echo "$as_me:$LINENO: result: $GREP" >&5
5898 echo "${ECHO_T}$GREP" >&6; }
5899 else
5900   { echo "$as_me:$LINENO: result: no" >&5
5901 echo "${ECHO_T}no" >&6; }
5902 fi
5903
5904
5905 # Extract the first word of "mkdir", so it can be a program name with args.
5906 set dummy mkdir; ac_word=$2
5907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5909 if test "${ac_cv_path_MKDIR+set}" = set; then
5910   echo $ECHO_N "(cached) $ECHO_C" >&6
5911 else
5912   case $MKDIR in
5913   [\\/]* | ?:[\\/]*)
5914   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5915   ;;
5916   *)
5917   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918 for as_dir in $PATH
5919 do
5920   IFS=$as_save_IFS
5921   test -z "$as_dir" && as_dir=.
5922   for ac_exec_ext in '' $ac_executable_extensions; do
5923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5924     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5926     break 2
5927   fi
5928 done
5929 done
5930 IFS=$as_save_IFS
5931
5932   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5933   ;;
5934 esac
5935 fi
5936 MKDIR=$ac_cv_path_MKDIR
5937 if test -n "$MKDIR"; then
5938   { echo "$as_me:$LINENO: result: $MKDIR" >&5
5939 echo "${ECHO_T}$MKDIR" >&6; }
5940 else
5941   { echo "$as_me:$LINENO: result: no" >&5
5942 echo "${ECHO_T}no" >&6; }
5943 fi
5944
5945
5946 # Extract the first word of "mv", so it can be a program name with args.
5947 set dummy mv; ac_word=$2
5948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5950 if test "${ac_cv_path_MV+set}" = set; then
5951   echo $ECHO_N "(cached) $ECHO_C" >&6
5952 else
5953   case $MV in
5954   [\\/]* | ?:[\\/]*)
5955   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5956   ;;
5957   *)
5958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959 for as_dir in $PATH
5960 do
5961   IFS=$as_save_IFS
5962   test -z "$as_dir" && as_dir=.
5963   for ac_exec_ext in '' $ac_executable_extensions; do
5964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5965     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5966     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5967     break 2
5968   fi
5969 done
5970 done
5971 IFS=$as_save_IFS
5972
5973   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5974   ;;
5975 esac
5976 fi
5977 MV=$ac_cv_path_MV
5978 if test -n "$MV"; then
5979   { echo "$as_me:$LINENO: result: $MV" >&5
5980 echo "${ECHO_T}$MV" >&6; }
5981 else
5982   { echo "$as_me:$LINENO: result: no" >&5
5983 echo "${ECHO_T}no" >&6; }
5984 fi
5985
5986
5987 if test -n "$ac_tool_prefix"; then
5988   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5989 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5992 if test "${ac_cv_prog_RANLIB+set}" = set; then
5993   echo $ECHO_N "(cached) $ECHO_C" >&6
5994 else
5995   if test -n "$RANLIB"; then
5996   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5997 else
5998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999 for as_dir in $PATH
6000 do
6001   IFS=$as_save_IFS
6002   test -z "$as_dir" && as_dir=.
6003   for ac_exec_ext in '' $ac_executable_extensions; do
6004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6005     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6007     break 2
6008   fi
6009 done
6010 done
6011 IFS=$as_save_IFS
6012
6013 fi
6014 fi
6015 RANLIB=$ac_cv_prog_RANLIB
6016 if test -n "$RANLIB"; then
6017   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6018 echo "${ECHO_T}$RANLIB" >&6; }
6019 else
6020   { echo "$as_me:$LINENO: result: no" >&5
6021 echo "${ECHO_T}no" >&6; }
6022 fi
6023
6024
6025 fi
6026 if test -z "$ac_cv_prog_RANLIB"; then
6027   ac_ct_RANLIB=$RANLIB
6028   # Extract the first word of "ranlib", so it can be a program name with args.
6029 set dummy ranlib; ac_word=$2
6030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6032 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6033   echo $ECHO_N "(cached) $ECHO_C" >&6
6034 else
6035   if test -n "$ac_ct_RANLIB"; then
6036   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6037 else
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039 for as_dir in $PATH
6040 do
6041   IFS=$as_save_IFS
6042   test -z "$as_dir" && as_dir=.
6043   for ac_exec_ext in '' $ac_executable_extensions; do
6044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6045     ac_cv_prog_ac_ct_RANLIB="ranlib"
6046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6047     break 2
6048   fi
6049 done
6050 done
6051 IFS=$as_save_IFS
6052
6053 fi
6054 fi
6055 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6056 if test -n "$ac_ct_RANLIB"; then
6057   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6058 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6059 else
6060   { echo "$as_me:$LINENO: result: no" >&5
6061 echo "${ECHO_T}no" >&6; }
6062 fi
6063
6064   if test "x$ac_ct_RANLIB" = x; then
6065     RANLIB=":"
6066   else
6067     case $cross_compiling:$ac_tool_warned in
6068 yes:)
6069 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6070 whose name does not start with the host triplet.  If you think this
6071 configuration is useful to you, please write to autoconf@gnu.org." >&5
6072 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6073 whose name does not start with the host triplet.  If you think this
6074 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6075 ac_tool_warned=yes ;;
6076 esac
6077     RANLIB=$ac_ct_RANLIB
6078   fi
6079 else
6080   RANLIB="$ac_cv_prog_RANLIB"
6081 fi
6082
6083 if test -n "$ac_tool_prefix"; then
6084   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6085 set dummy ${ac_tool_prefix}ar; ac_word=$2
6086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6088 if test "${ac_cv_prog_AR+set}" = set; then
6089   echo $ECHO_N "(cached) $ECHO_C" >&6
6090 else
6091   if test -n "$AR"; then
6092   ac_cv_prog_AR="$AR" # Let the user override the test.
6093 else
6094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095 for as_dir in $PATH
6096 do
6097   IFS=$as_save_IFS
6098   test -z "$as_dir" && as_dir=.
6099   for ac_exec_ext in '' $ac_executable_extensions; do
6100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6101     ac_cv_prog_AR="${ac_tool_prefix}ar"
6102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6103     break 2
6104   fi
6105 done
6106 done
6107 IFS=$as_save_IFS
6108
6109 fi
6110 fi
6111 AR=$ac_cv_prog_AR
6112 if test -n "$AR"; then
6113   { echo "$as_me:$LINENO: result: $AR" >&5
6114 echo "${ECHO_T}$AR" >&6; }
6115 else
6116   { echo "$as_me:$LINENO: result: no" >&5
6117 echo "${ECHO_T}no" >&6; }
6118 fi
6119
6120
6121 fi
6122 if test -z "$ac_cv_prog_AR"; then
6123   ac_ct_AR=$AR
6124   # Extract the first word of "ar", so it can be a program name with args.
6125 set dummy ar; ac_word=$2
6126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6128 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6129   echo $ECHO_N "(cached) $ECHO_C" >&6
6130 else
6131   if test -n "$ac_ct_AR"; then
6132   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6133 else
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135 for as_dir in $PATH
6136 do
6137   IFS=$as_save_IFS
6138   test -z "$as_dir" && as_dir=.
6139   for ac_exec_ext in '' $ac_executable_extensions; do
6140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6141     ac_cv_prog_ac_ct_AR="ar"
6142     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6143     break 2
6144   fi
6145 done
6146 done
6147 IFS=$as_save_IFS
6148
6149 fi
6150 fi
6151 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6152 if test -n "$ac_ct_AR"; then
6153   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6154 echo "${ECHO_T}$ac_ct_AR" >&6; }
6155 else
6156   { echo "$as_me:$LINENO: result: no" >&5
6157 echo "${ECHO_T}no" >&6; }
6158 fi
6159
6160   if test "x$ac_ct_AR" = x; then
6161     AR="false"
6162   else
6163     case $cross_compiling:$ac_tool_warned in
6164 yes:)
6165 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6166 whose name does not start with the host triplet.  If you think this
6167 configuration is useful to you, please write to autoconf@gnu.org." >&5
6168 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6169 whose name does not start with the host triplet.  If you think this
6170 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6171 ac_tool_warned=yes ;;
6172 esac
6173     AR=$ac_ct_AR
6174   fi
6175 else
6176   AR="$ac_cv_prog_AR"
6177 fi
6178
6179 # Extract the first word of "rm", so it can be a program name with args.
6180 set dummy rm; ac_word=$2
6181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6183 if test "${ac_cv_path_RM+set}" = set; then
6184   echo $ECHO_N "(cached) $ECHO_C" >&6
6185 else
6186   case $RM in
6187   [\\/]* | ?:[\\/]*)
6188   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6189   ;;
6190   *)
6191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 for as_dir in $PATH
6193 do
6194   IFS=$as_save_IFS
6195   test -z "$as_dir" && as_dir=.
6196   for ac_exec_ext in '' $ac_executable_extensions; do
6197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6198     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6200     break 2
6201   fi
6202 done
6203 done
6204 IFS=$as_save_IFS
6205
6206   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6207   ;;
6208 esac
6209 fi
6210 RM=$ac_cv_path_RM
6211 if test -n "$RM"; then
6212   { echo "$as_me:$LINENO: result: $RM" >&5
6213 echo "${ECHO_T}$RM" >&6; }
6214 else
6215   { echo "$as_me:$LINENO: result: no" >&5
6216 echo "${ECHO_T}no" >&6; }
6217 fi
6218
6219
6220 # Extract the first word of "sed", so it can be a program name with args.
6221 set dummy sed; ac_word=$2
6222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6224 if test "${ac_cv_path_SED+set}" = set; then
6225   echo $ECHO_N "(cached) $ECHO_C" >&6
6226 else
6227   case $SED in
6228   [\\/]* | ?:[\\/]*)
6229   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6230   ;;
6231   *)
6232   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 for as_dir in $PATH
6234 do
6235   IFS=$as_save_IFS
6236   test -z "$as_dir" && as_dir=.
6237   for ac_exec_ext in '' $ac_executable_extensions; do
6238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6239     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6240     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6241     break 2
6242   fi
6243 done
6244 done
6245 IFS=$as_save_IFS
6246
6247   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6248   ;;
6249 esac
6250 fi
6251 SED=$ac_cv_path_SED
6252 if test -n "$SED"; then
6253   { echo "$as_me:$LINENO: result: $SED" >&5
6254 echo "${ECHO_T}$SED" >&6; }
6255 else
6256   { echo "$as_me:$LINENO: result: no" >&5
6257 echo "${ECHO_T}no" >&6; }
6258 fi
6259
6260
6261 # Extract the first word of "tar", so it can be a program name with args.
6262 set dummy tar; ac_word=$2
6263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6265 if test "${ac_cv_path_TAR+set}" = set; then
6266   echo $ECHO_N "(cached) $ECHO_C" >&6
6267 else
6268   case $TAR in
6269   [\\/]* | ?:[\\/]*)
6270   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6271   ;;
6272   *)
6273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 for as_dir in $PATH
6275 do
6276   IFS=$as_save_IFS
6277   test -z "$as_dir" && as_dir=.
6278   for ac_exec_ext in '' $ac_executable_extensions; do
6279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6280     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6281     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6282     break 2
6283   fi
6284 done
6285 done
6286 IFS=$as_save_IFS
6287
6288   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6289   ;;
6290 esac
6291 fi
6292 TAR=$ac_cv_path_TAR
6293 if test -n "$TAR"; then
6294   { echo "$as_me:$LINENO: result: $TAR" >&5
6295 echo "${ECHO_T}$TAR" >&6; }
6296 else
6297   { echo "$as_me:$LINENO: result: no" >&5
6298 echo "${ECHO_T}no" >&6; }
6299 fi
6300
6301
6302 # Extract the first word of "pwd", so it can be a program name with args.
6303 set dummy pwd; ac_word=$2
6304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6306 if test "${ac_cv_path_BINPWD+set}" = set; then
6307   echo $ECHO_N "(cached) $ECHO_C" >&6
6308 else
6309   case $BINPWD in
6310   [\\/]* | ?:[\\/]*)
6311   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6312   ;;
6313   *)
6314   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 for as_dir in $PATH
6316 do
6317   IFS=$as_save_IFS
6318   test -z "$as_dir" && as_dir=.
6319   for ac_exec_ext in '' $ac_executable_extensions; do
6320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6321     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6322     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6323     break 2
6324   fi
6325 done
6326 done
6327 IFS=$as_save_IFS
6328
6329   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6330   ;;
6331 esac
6332 fi
6333 BINPWD=$ac_cv_path_BINPWD
6334 if test -n "$BINPWD"; then
6335   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6336 echo "${ECHO_T}$BINPWD" >&6; }
6337 else
6338   { echo "$as_me:$LINENO: result: no" >&5
6339 echo "${ECHO_T}no" >&6; }
6340 fi
6341
6342
6343
6344 # Extract the first word of "Graphviz", so it can be a program name with args.
6345 set dummy Graphviz; ac_word=$2
6346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6348 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6349   echo $ECHO_N "(cached) $ECHO_C" >&6
6350 else
6351   case $GRAPHVIZ in
6352   [\\/]* | ?:[\\/]*)
6353   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6354   ;;
6355   *)
6356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357 for as_dir in $PATH
6358 do
6359   IFS=$as_save_IFS
6360   test -z "$as_dir" && as_dir=.
6361   for ac_exec_ext in '' $ac_executable_extensions; do
6362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6363     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6364     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6365     break 2
6366   fi
6367 done
6368 done
6369 IFS=$as_save_IFS
6370
6371   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6372   ;;
6373 esac
6374 fi
6375 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6376 if test -n "$GRAPHVIZ"; then
6377   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6378 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6379 else
6380   { echo "$as_me:$LINENO: result: no" >&5
6381 echo "${ECHO_T}no" >&6; }
6382 fi
6383
6384
6385 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6386
6387 cat >>confdefs.h <<\_ACEOF
6388 #define HAVE_GRAPHVIZ 1
6389 _ACEOF
6390
6391     if test "$llvm_cv_os_type" = "MingW" ; then
6392     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6393   fi
6394
6395 cat >>confdefs.h <<_ACEOF
6396 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6397 _ACEOF
6398
6399 fi
6400 # Extract the first word of "dot", so it can be a program name with args.
6401 set dummy dot; ac_word=$2
6402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6404 if test "${ac_cv_path_DOT+set}" = set; then
6405   echo $ECHO_N "(cached) $ECHO_C" >&6
6406 else
6407   case $DOT in
6408   [\\/]* | ?:[\\/]*)
6409   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6410   ;;
6411   *)
6412   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413 for as_dir in $PATH
6414 do
6415   IFS=$as_save_IFS
6416   test -z "$as_dir" && as_dir=.
6417   for ac_exec_ext in '' $ac_executable_extensions; do
6418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6419     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6420     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6421     break 2
6422   fi
6423 done
6424 done
6425 IFS=$as_save_IFS
6426
6427   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6428   ;;
6429 esac
6430 fi
6431 DOT=$ac_cv_path_DOT
6432 if test -n "$DOT"; then
6433   { echo "$as_me:$LINENO: result: $DOT" >&5
6434 echo "${ECHO_T}$DOT" >&6; }
6435 else
6436   { echo "$as_me:$LINENO: result: no" >&5
6437 echo "${ECHO_T}no" >&6; }
6438 fi
6439
6440
6441 if test "$DOT" != "echo dot" ; then
6442
6443 cat >>confdefs.h <<\_ACEOF
6444 #define HAVE_DOT 1
6445 _ACEOF
6446
6447     if test "$llvm_cv_os_type" = "MingW" ; then
6448     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6449   fi
6450
6451 cat >>confdefs.h <<_ACEOF
6452 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6453 _ACEOF
6454
6455 fi
6456 # Extract the first word of "fdp", so it can be a program name with args.
6457 set dummy fdp; ac_word=$2
6458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6460 if test "${ac_cv_path_FDP+set}" = set; then
6461   echo $ECHO_N "(cached) $ECHO_C" >&6
6462 else
6463   case $FDP in
6464   [\\/]* | ?:[\\/]*)
6465   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6466   ;;
6467   *)
6468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469 for as_dir in $PATH
6470 do
6471   IFS=$as_save_IFS
6472   test -z "$as_dir" && as_dir=.
6473   for ac_exec_ext in '' $ac_executable_extensions; do
6474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6475     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6477     break 2
6478   fi
6479 done
6480 done
6481 IFS=$as_save_IFS
6482
6483   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6484   ;;
6485 esac
6486 fi
6487 FDP=$ac_cv_path_FDP
6488 if test -n "$FDP"; then
6489   { echo "$as_me:$LINENO: result: $FDP" >&5
6490 echo "${ECHO_T}$FDP" >&6; }
6491 else
6492   { echo "$as_me:$LINENO: result: no" >&5
6493 echo "${ECHO_T}no" >&6; }
6494 fi
6495
6496
6497 if test "$FDP" != "echo fdp" ; then
6498
6499 cat >>confdefs.h <<\_ACEOF
6500 #define HAVE_FDP 1
6501 _ACEOF
6502
6503     if test "$llvm_cv_os_type" = "MingW" ; then
6504     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6505   fi
6506
6507 cat >>confdefs.h <<_ACEOF
6508 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6509 _ACEOF
6510
6511 fi
6512 # Extract the first word of "neato", so it can be a program name with args.
6513 set dummy neato; ac_word=$2
6514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6516 if test "${ac_cv_path_NEATO+set}" = set; then
6517   echo $ECHO_N "(cached) $ECHO_C" >&6
6518 else
6519   case $NEATO in
6520   [\\/]* | ?:[\\/]*)
6521   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6522   ;;
6523   *)
6524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 for as_dir in $PATH
6526 do
6527   IFS=$as_save_IFS
6528   test -z "$as_dir" && as_dir=.
6529   for ac_exec_ext in '' $ac_executable_extensions; do
6530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6531     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6533     break 2
6534   fi
6535 done
6536 done
6537 IFS=$as_save_IFS
6538
6539   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6540   ;;
6541 esac
6542 fi
6543 NEATO=$ac_cv_path_NEATO
6544 if test -n "$NEATO"; then
6545   { echo "$as_me:$LINENO: result: $NEATO" >&5
6546 echo "${ECHO_T}$NEATO" >&6; }
6547 else
6548   { echo "$as_me:$LINENO: result: no" >&5
6549 echo "${ECHO_T}no" >&6; }
6550 fi
6551
6552
6553 if test "$NEATO" != "echo neato" ; then
6554
6555 cat >>confdefs.h <<\_ACEOF
6556 #define HAVE_NEATO 1
6557 _ACEOF
6558
6559     if test "$llvm_cv_os_type" = "MingW" ; then
6560     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6561   fi
6562
6563 cat >>confdefs.h <<_ACEOF
6564 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6565 _ACEOF
6566
6567 fi
6568 # Extract the first word of "twopi", so it can be a program name with args.
6569 set dummy twopi; ac_word=$2
6570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6572 if test "${ac_cv_path_TWOPI+set}" = set; then
6573   echo $ECHO_N "(cached) $ECHO_C" >&6
6574 else
6575   case $TWOPI in
6576   [\\/]* | ?:[\\/]*)
6577   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6578   ;;
6579   *)
6580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 for as_dir in $PATH
6582 do
6583   IFS=$as_save_IFS
6584   test -z "$as_dir" && as_dir=.
6585   for ac_exec_ext in '' $ac_executable_extensions; do
6586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6587     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6589     break 2
6590   fi
6591 done
6592 done
6593 IFS=$as_save_IFS
6594
6595   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6596   ;;
6597 esac
6598 fi
6599 TWOPI=$ac_cv_path_TWOPI
6600 if test -n "$TWOPI"; then
6601   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6602 echo "${ECHO_T}$TWOPI" >&6; }
6603 else
6604   { echo "$as_me:$LINENO: result: no" >&5
6605 echo "${ECHO_T}no" >&6; }
6606 fi
6607
6608
6609 if test "$TWOPI" != "echo twopi" ; then
6610
6611 cat >>confdefs.h <<\_ACEOF
6612 #define HAVE_TWOPI 1
6613 _ACEOF
6614
6615     if test "$llvm_cv_os_type" = "MingW" ; then
6616     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6617   fi
6618
6619 cat >>confdefs.h <<_ACEOF
6620 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6621 _ACEOF
6622
6623 fi
6624 # Extract the first word of "circo", so it can be a program name with args.
6625 set dummy circo; ac_word=$2
6626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6628 if test "${ac_cv_path_CIRCO+set}" = set; then
6629   echo $ECHO_N "(cached) $ECHO_C" >&6
6630 else
6631   case $CIRCO in
6632   [\\/]* | ?:[\\/]*)
6633   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6634   ;;
6635   *)
6636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637 for as_dir in $PATH
6638 do
6639   IFS=$as_save_IFS
6640   test -z "$as_dir" && as_dir=.
6641   for ac_exec_ext in '' $ac_executable_extensions; do
6642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6643     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6645     break 2
6646   fi
6647 done
6648 done
6649 IFS=$as_save_IFS
6650
6651   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6652   ;;
6653 esac
6654 fi
6655 CIRCO=$ac_cv_path_CIRCO
6656 if test -n "$CIRCO"; then
6657   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6658 echo "${ECHO_T}$CIRCO" >&6; }
6659 else
6660   { echo "$as_me:$LINENO: result: no" >&5
6661 echo "${ECHO_T}no" >&6; }
6662 fi
6663
6664
6665 if test "$CIRCO" != "echo circo" ; then
6666
6667 cat >>confdefs.h <<\_ACEOF
6668 #define HAVE_CIRCO 1
6669 _ACEOF
6670
6671     if test "$llvm_cv_os_type" = "MingW" ; then
6672     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6673   fi
6674
6675 cat >>confdefs.h <<_ACEOF
6676 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6677 _ACEOF
6678
6679 fi
6680 for ac_prog in gv gsview32
6681 do
6682   # Extract the first word of "$ac_prog", so it can be a program name with args.
6683 set dummy $ac_prog; ac_word=$2
6684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6686 if test "${ac_cv_path_GV+set}" = set; then
6687   echo $ECHO_N "(cached) $ECHO_C" >&6
6688 else
6689   case $GV in
6690   [\\/]* | ?:[\\/]*)
6691   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6692   ;;
6693   *)
6694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695 for as_dir in $PATH
6696 do
6697   IFS=$as_save_IFS
6698   test -z "$as_dir" && as_dir=.
6699   for ac_exec_ext in '' $ac_executable_extensions; do
6700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6701     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6703     break 2
6704   fi
6705 done
6706 done
6707 IFS=$as_save_IFS
6708
6709   ;;
6710 esac
6711 fi
6712 GV=$ac_cv_path_GV
6713 if test -n "$GV"; then
6714   { echo "$as_me:$LINENO: result: $GV" >&5
6715 echo "${ECHO_T}$GV" >&6; }
6716 else
6717   { echo "$as_me:$LINENO: result: no" >&5
6718 echo "${ECHO_T}no" >&6; }
6719 fi
6720
6721
6722   test -n "$GV" && break
6723 done
6724 test -n "$GV" || GV="echo gv"
6725
6726 if test "$GV" != "echo gv" ; then
6727
6728 cat >>confdefs.h <<\_ACEOF
6729 #define HAVE_GV 1
6730 _ACEOF
6731
6732     if test "$llvm_cv_os_type" = "MingW" ; then
6733     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6734   fi
6735
6736 cat >>confdefs.h <<_ACEOF
6737 #define LLVM_PATH_GV "$GV${EXEEXT}"
6738 _ACEOF
6739
6740 fi
6741 # Extract the first word of "dotty", so it can be a program name with args.
6742 set dummy dotty; ac_word=$2
6743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6745 if test "${ac_cv_path_DOTTY+set}" = set; then
6746   echo $ECHO_N "(cached) $ECHO_C" >&6
6747 else
6748   case $DOTTY in
6749   [\\/]* | ?:[\\/]*)
6750   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6751   ;;
6752   *)
6753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754 for as_dir in $PATH
6755 do
6756   IFS=$as_save_IFS
6757   test -z "$as_dir" && as_dir=.
6758   for ac_exec_ext in '' $ac_executable_extensions; do
6759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6760     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6762     break 2
6763   fi
6764 done
6765 done
6766 IFS=$as_save_IFS
6767
6768   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6769   ;;
6770 esac
6771 fi
6772 DOTTY=$ac_cv_path_DOTTY
6773 if test -n "$DOTTY"; then
6774   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6775 echo "${ECHO_T}$DOTTY" >&6; }
6776 else
6777   { echo "$as_me:$LINENO: result: no" >&5
6778 echo "${ECHO_T}no" >&6; }
6779 fi
6780
6781
6782 if test "$DOTTY" != "echo dotty" ; then
6783
6784 cat >>confdefs.h <<\_ACEOF
6785 #define HAVE_DOTTY 1
6786 _ACEOF
6787
6788     if test "$llvm_cv_os_type" = "MingW" ; then
6789     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6790   fi
6791
6792 cat >>confdefs.h <<_ACEOF
6793 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6794 _ACEOF
6795
6796 fi
6797 # Extract the first word of "xdot.py", so it can be a program name with args.
6798 set dummy xdot.py; ac_word=$2
6799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6801 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6802   echo $ECHO_N "(cached) $ECHO_C" >&6
6803 else
6804   case $XDOT_PY in
6805   [\\/]* | ?:[\\/]*)
6806   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6807   ;;
6808   *)
6809   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810 for as_dir in $PATH
6811 do
6812   IFS=$as_save_IFS
6813   test -z "$as_dir" && as_dir=.
6814   for ac_exec_ext in '' $ac_executable_extensions; do
6815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6816     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6818     break 2
6819   fi
6820 done
6821 done
6822 IFS=$as_save_IFS
6823
6824   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6825   ;;
6826 esac
6827 fi
6828 XDOT_PY=$ac_cv_path_XDOT_PY
6829 if test -n "$XDOT_PY"; then
6830   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6831 echo "${ECHO_T}$XDOT_PY" >&6; }
6832 else
6833   { echo "$as_me:$LINENO: result: no" >&5
6834 echo "${ECHO_T}no" >&6; }
6835 fi
6836
6837
6838 if test "$XDOT_PY" != "echo xdot.py" ; then
6839
6840 cat >>confdefs.h <<\_ACEOF
6841 #define HAVE_XDOT_PY 1
6842 _ACEOF
6843
6844     if test "$llvm_cv_os_type" = "MingW" ; then
6845     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6846   fi
6847
6848 cat >>confdefs.h <<_ACEOF
6849 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6850 _ACEOF
6851
6852 fi
6853
6854
6855 # Extract the first word of "perl", so it can be a program name with args.
6856 set dummy perl; ac_word=$2
6857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6859 if test "${ac_cv_path_PERL+set}" = set; then
6860   echo $ECHO_N "(cached) $ECHO_C" >&6
6861 else
6862   case $PERL in
6863   [\\/]* | ?:[\\/]*)
6864   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6865   ;;
6866   *)
6867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 for as_dir in $PATH
6869 do
6870   IFS=$as_save_IFS
6871   test -z "$as_dir" && as_dir=.
6872   for ac_exec_ext in '' $ac_executable_extensions; do
6873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6874     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6876     break 2
6877   fi
6878 done
6879 done
6880 IFS=$as_save_IFS
6881
6882   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6883   ;;
6884 esac
6885 fi
6886 PERL=$ac_cv_path_PERL
6887 if test -n "$PERL"; then
6888   { echo "$as_me:$LINENO: result: $PERL" >&5
6889 echo "${ECHO_T}$PERL" >&6; }
6890 else
6891   { echo "$as_me:$LINENO: result: no" >&5
6892 echo "${ECHO_T}no" >&6; }
6893 fi
6894
6895
6896 if test "$PERL" != "none"; then
6897   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6898 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6899   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6900     { echo "$as_me:$LINENO: result: yes" >&5
6901 echo "${ECHO_T}yes" >&6; }
6902   else
6903     PERL=none
6904     { echo "$as_me:$LINENO: result: not found" >&5
6905 echo "${ECHO_T}not found" >&6; }
6906   fi
6907 fi
6908
6909
6910 if test x"$PERL" = xnone; then
6911    HAVE_PERL=0
6912
6913    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6914 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6915    { (exit 1); exit 1; }; }
6916 else
6917    HAVE_PERL=1
6918
6919 fi
6920
6921 # Find a good install program.  We prefer a C program (faster),
6922 # so one script is as good as another.  But avoid the broken or
6923 # incompatible versions:
6924 # SysV /etc/install, /usr/sbin/install
6925 # SunOS /usr/etc/install
6926 # IRIX /sbin/install
6927 # AIX /bin/install
6928 # AmigaOS /C/install, which installs bootblocks on floppy discs
6929 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6930 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6931 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6932 # OS/2's system install, which has a completely different semantic
6933 # ./install, which can be erroneously created by make from ./install.sh.
6934 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6935 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6936 if test -z "$INSTALL"; then
6937 if test "${ac_cv_path_install+set}" = set; then
6938   echo $ECHO_N "(cached) $ECHO_C" >&6
6939 else
6940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941 for as_dir in $PATH
6942 do
6943   IFS=$as_save_IFS
6944   test -z "$as_dir" && as_dir=.
6945   # Account for people who put trailing slashes in PATH elements.
6946 case $as_dir/ in
6947   ./ | .// | /cC/* | \
6948   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6949   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6950   /usr/ucb/* ) ;;
6951   *)
6952     # OSF1 and SCO ODT 3.0 have their own names for install.
6953     # Don't use installbsd from OSF since it installs stuff as root
6954     # by default.
6955     for ac_prog in ginstall scoinst install; do
6956       for ac_exec_ext in '' $ac_executable_extensions; do
6957         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6958           if test $ac_prog = install &&
6959             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6960             # AIX install.  It has an incompatible calling convention.
6961             :
6962           elif test $ac_prog = install &&
6963             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6964             # program-specific install script used by HP pwplus--don't use.
6965             :
6966           else
6967             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6968             break 3
6969           fi
6970         fi
6971       done
6972     done
6973     ;;
6974 esac
6975 done
6976 IFS=$as_save_IFS
6977
6978
6979 fi
6980   if test "${ac_cv_path_install+set}" = set; then
6981     INSTALL=$ac_cv_path_install
6982   else
6983     # As a last resort, use the slow shell script.  Don't cache a
6984     # value for INSTALL within a source directory, because that will
6985     # break other packages using the cache if that directory is
6986     # removed, or if the value is a relative name.
6987     INSTALL=$ac_install_sh
6988   fi
6989 fi
6990 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6991 echo "${ECHO_T}$INSTALL" >&6; }
6992
6993 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6994 # It thinks the first close brace ends the variable substitution.
6995 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6996
6997 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6998
6999 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7000
7001 case "$INSTALL" in
7002  [\\/$]* | ?:[\\/]* ) ;;
7003  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7004 esac
7005
7006 # Extract the first word of "bzip2", so it can be a program name with args.
7007 set dummy bzip2; ac_word=$2
7008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7010 if test "${ac_cv_path_BZIP2+set}" = set; then
7011   echo $ECHO_N "(cached) $ECHO_C" >&6
7012 else
7013   case $BZIP2 in
7014   [\\/]* | ?:[\\/]*)
7015   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7016   ;;
7017   *)
7018   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019 for as_dir in $PATH
7020 do
7021   IFS=$as_save_IFS
7022   test -z "$as_dir" && as_dir=.
7023   for ac_exec_ext in '' $ac_executable_extensions; do
7024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7025     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7027     break 2
7028   fi
7029 done
7030 done
7031 IFS=$as_save_IFS
7032
7033   ;;
7034 esac
7035 fi
7036 BZIP2=$ac_cv_path_BZIP2
7037 if test -n "$BZIP2"; then
7038   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7039 echo "${ECHO_T}$BZIP2" >&6; }
7040 else
7041   { echo "$as_me:$LINENO: result: no" >&5
7042 echo "${ECHO_T}no" >&6; }
7043 fi
7044
7045
7046 # Extract the first word of "cat", so it can be a program name with args.
7047 set dummy cat; ac_word=$2
7048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7050 if test "${ac_cv_path_CAT+set}" = set; then
7051   echo $ECHO_N "(cached) $ECHO_C" >&6
7052 else
7053   case $CAT in
7054   [\\/]* | ?:[\\/]*)
7055   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7056   ;;
7057   *)
7058   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 for as_dir in $PATH
7060 do
7061   IFS=$as_save_IFS
7062   test -z "$as_dir" && as_dir=.
7063   for ac_exec_ext in '' $ac_executable_extensions; do
7064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7065     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7067     break 2
7068   fi
7069 done
7070 done
7071 IFS=$as_save_IFS
7072
7073   ;;
7074 esac
7075 fi
7076 CAT=$ac_cv_path_CAT
7077 if test -n "$CAT"; then
7078   { echo "$as_me:$LINENO: result: $CAT" >&5
7079 echo "${ECHO_T}$CAT" >&6; }
7080 else
7081   { echo "$as_me:$LINENO: result: no" >&5
7082 echo "${ECHO_T}no" >&6; }
7083 fi
7084
7085
7086 # Extract the first word of "doxygen", so it can be a program name with args.
7087 set dummy doxygen; ac_word=$2
7088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7090 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7091   echo $ECHO_N "(cached) $ECHO_C" >&6
7092 else
7093   case $DOXYGEN in
7094   [\\/]* | ?:[\\/]*)
7095   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7096   ;;
7097   *)
7098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099 for as_dir in $PATH
7100 do
7101   IFS=$as_save_IFS
7102   test -z "$as_dir" && as_dir=.
7103   for ac_exec_ext in '' $ac_executable_extensions; do
7104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7105     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7107     break 2
7108   fi
7109 done
7110 done
7111 IFS=$as_save_IFS
7112
7113   ;;
7114 esac
7115 fi
7116 DOXYGEN=$ac_cv_path_DOXYGEN
7117 if test -n "$DOXYGEN"; then
7118   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7119 echo "${ECHO_T}$DOXYGEN" >&6; }
7120 else
7121   { echo "$as_me:$LINENO: result: no" >&5
7122 echo "${ECHO_T}no" >&6; }
7123 fi
7124
7125
7126 # Extract the first word of "groff", so it can be a program name with args.
7127 set dummy groff; ac_word=$2
7128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7130 if test "${ac_cv_path_GROFF+set}" = set; then
7131   echo $ECHO_N "(cached) $ECHO_C" >&6
7132 else
7133   case $GROFF in
7134   [\\/]* | ?:[\\/]*)
7135   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7136   ;;
7137   *)
7138   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 for as_dir in $PATH
7140 do
7141   IFS=$as_save_IFS
7142   test -z "$as_dir" && as_dir=.
7143   for ac_exec_ext in '' $ac_executable_extensions; do
7144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7145     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7146     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7147     break 2
7148   fi
7149 done
7150 done
7151 IFS=$as_save_IFS
7152
7153   ;;
7154 esac
7155 fi
7156 GROFF=$ac_cv_path_GROFF
7157 if test -n "$GROFF"; then
7158   { echo "$as_me:$LINENO: result: $GROFF" >&5
7159 echo "${ECHO_T}$GROFF" >&6; }
7160 else
7161   { echo "$as_me:$LINENO: result: no" >&5
7162 echo "${ECHO_T}no" >&6; }
7163 fi
7164
7165
7166 # Extract the first word of "gzip", so it can be a program name with args.
7167 set dummy gzip; ac_word=$2
7168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7170 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7171   echo $ECHO_N "(cached) $ECHO_C" >&6
7172 else
7173   case $GZIPBIN in
7174   [\\/]* | ?:[\\/]*)
7175   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7176   ;;
7177   *)
7178   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179 for as_dir in $PATH
7180 do
7181   IFS=$as_save_IFS
7182   test -z "$as_dir" && as_dir=.
7183   for ac_exec_ext in '' $ac_executable_extensions; do
7184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7185     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7187     break 2
7188   fi
7189 done
7190 done
7191 IFS=$as_save_IFS
7192
7193   ;;
7194 esac
7195 fi
7196 GZIPBIN=$ac_cv_path_GZIPBIN
7197 if test -n "$GZIPBIN"; then
7198   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7199 echo "${ECHO_T}$GZIPBIN" >&6; }
7200 else
7201   { echo "$as_me:$LINENO: result: no" >&5
7202 echo "${ECHO_T}no" >&6; }
7203 fi
7204
7205
7206 # Extract the first word of "pod2html", so it can be a program name with args.
7207 set dummy pod2html; ac_word=$2
7208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7210 if test "${ac_cv_path_POD2HTML+set}" = set; then
7211   echo $ECHO_N "(cached) $ECHO_C" >&6
7212 else
7213   case $POD2HTML in
7214   [\\/]* | ?:[\\/]*)
7215   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7216   ;;
7217   *)
7218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 for as_dir in $PATH
7220 do
7221   IFS=$as_save_IFS
7222   test -z "$as_dir" && as_dir=.
7223   for ac_exec_ext in '' $ac_executable_extensions; do
7224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7225     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7227     break 2
7228   fi
7229 done
7230 done
7231 IFS=$as_save_IFS
7232
7233   ;;
7234 esac
7235 fi
7236 POD2HTML=$ac_cv_path_POD2HTML
7237 if test -n "$POD2HTML"; then
7238   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7239 echo "${ECHO_T}$POD2HTML" >&6; }
7240 else
7241   { echo "$as_me:$LINENO: result: no" >&5
7242 echo "${ECHO_T}no" >&6; }
7243 fi
7244
7245
7246 # Extract the first word of "pod2man", so it can be a program name with args.
7247 set dummy pod2man; ac_word=$2
7248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7250 if test "${ac_cv_path_POD2MAN+set}" = set; then
7251   echo $ECHO_N "(cached) $ECHO_C" >&6
7252 else
7253   case $POD2MAN in
7254   [\\/]* | ?:[\\/]*)
7255   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7256   ;;
7257   *)
7258   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259 for as_dir in $PATH
7260 do
7261   IFS=$as_save_IFS
7262   test -z "$as_dir" && as_dir=.
7263   for ac_exec_ext in '' $ac_executable_extensions; do
7264   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7265     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7266     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7267     break 2
7268   fi
7269 done
7270 done
7271 IFS=$as_save_IFS
7272
7273   ;;
7274 esac
7275 fi
7276 POD2MAN=$ac_cv_path_POD2MAN
7277 if test -n "$POD2MAN"; then
7278   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7279 echo "${ECHO_T}$POD2MAN" >&6; }
7280 else
7281   { echo "$as_me:$LINENO: result: no" >&5
7282 echo "${ECHO_T}no" >&6; }
7283 fi
7284
7285
7286 # Extract the first word of "pdfroff", so it can be a program name with args.
7287 set dummy pdfroff; ac_word=$2
7288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7290 if test "${ac_cv_path_PDFROFF+set}" = set; then
7291   echo $ECHO_N "(cached) $ECHO_C" >&6
7292 else
7293   case $PDFROFF in
7294   [\\/]* | ?:[\\/]*)
7295   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7296   ;;
7297   *)
7298   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299 for as_dir in $PATH
7300 do
7301   IFS=$as_save_IFS
7302   test -z "$as_dir" && as_dir=.
7303   for ac_exec_ext in '' $ac_executable_extensions; do
7304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7305     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7307     break 2
7308   fi
7309 done
7310 done
7311 IFS=$as_save_IFS
7312
7313   ;;
7314 esac
7315 fi
7316 PDFROFF=$ac_cv_path_PDFROFF
7317 if test -n "$PDFROFF"; then
7318   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7319 echo "${ECHO_T}$PDFROFF" >&6; }
7320 else
7321   { echo "$as_me:$LINENO: result: no" >&5
7322 echo "${ECHO_T}no" >&6; }
7323 fi
7324
7325
7326 # Extract the first word of "runtest", so it can be a program name with args.
7327 set dummy runtest; ac_word=$2
7328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7330 if test "${ac_cv_path_RUNTEST+set}" = set; then
7331   echo $ECHO_N "(cached) $ECHO_C" >&6
7332 else
7333   case $RUNTEST in
7334   [\\/]* | ?:[\\/]*)
7335   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7336   ;;
7337   *)
7338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339 for as_dir in $PATH
7340 do
7341   IFS=$as_save_IFS
7342   test -z "$as_dir" && as_dir=.
7343   for ac_exec_ext in '' $ac_executable_extensions; do
7344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7345     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7347     break 2
7348   fi
7349 done
7350 done
7351 IFS=$as_save_IFS
7352
7353   ;;
7354 esac
7355 fi
7356 RUNTEST=$ac_cv_path_RUNTEST
7357 if test -n "$RUNTEST"; then
7358   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7359 echo "${ECHO_T}$RUNTEST" >&6; }
7360 else
7361   { echo "$as_me:$LINENO: result: no" >&5
7362 echo "${ECHO_T}no" >&6; }
7363 fi
7364
7365
7366
7367 no_itcl=true
7368 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7369 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7370
7371 # Check whether --with-tclinclude was given.
7372 if test "${with_tclinclude+set}" = set; then
7373   withval=$with_tclinclude; with_tclinclude=${withval}
7374 else
7375   with_tclinclude=''
7376 fi
7377
7378 if test "${ac_cv_path_tclsh+set}" = set; then
7379   echo $ECHO_N "(cached) $ECHO_C" >&6
7380 else
7381
7382 if test x"${with_tclinclude}" != x ; then
7383   if test -f ${with_tclinclude}/tclsh ; then
7384     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7385   elif test -f ${with_tclinclude}/src/tclsh ; then
7386     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7387   else
7388     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7389 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7390    { (exit 1); exit 1; }; }
7391   fi
7392 fi
7393 fi
7394
7395
7396 if test x"${ac_cv_path_tclsh}" = x ; then
7397   { echo "$as_me:$LINENO: result: none" >&5
7398 echo "${ECHO_T}none" >&6; }
7399   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
7400 do
7401   # Extract the first word of "$ac_prog", so it can be a program name with args.
7402 set dummy $ac_prog; ac_word=$2
7403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7405 if test "${ac_cv_path_TCLSH+set}" = set; then
7406   echo $ECHO_N "(cached) $ECHO_C" >&6
7407 else
7408   case $TCLSH in
7409   [\\/]* | ?:[\\/]*)
7410   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7411   ;;
7412   *)
7413   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414 for as_dir in $PATH
7415 do
7416   IFS=$as_save_IFS
7417   test -z "$as_dir" && as_dir=.
7418   for ac_exec_ext in '' $ac_executable_extensions; do
7419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7420     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7422     break 2
7423   fi
7424 done
7425 done
7426 IFS=$as_save_IFS
7427
7428   ;;
7429 esac
7430 fi
7431 TCLSH=$ac_cv_path_TCLSH
7432 if test -n "$TCLSH"; then
7433   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7434 echo "${ECHO_T}$TCLSH" >&6; }
7435 else
7436   { echo "$as_me:$LINENO: result: no" >&5
7437 echo "${ECHO_T}no" >&6; }
7438 fi
7439
7440
7441   test -n "$TCLSH" && break
7442 done
7443
7444   if test x"${TCLSH}" = x ; then
7445     ac_cv_path_tclsh='';
7446   else
7447     ac_cv_path_tclsh="${TCLSH}";
7448   fi
7449 else
7450   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7451 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7452   TCLSH="${ac_cv_path_tclsh}"
7453
7454 fi
7455
7456 # Extract the first word of "zip", so it can be a program name with args.
7457 set dummy zip; ac_word=$2
7458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7460 if test "${ac_cv_path_ZIP+set}" = set; then
7461   echo $ECHO_N "(cached) $ECHO_C" >&6
7462 else
7463   case $ZIP in
7464   [\\/]* | ?:[\\/]*)
7465   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7466   ;;
7467   *)
7468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7469 for as_dir in $PATH
7470 do
7471   IFS=$as_save_IFS
7472   test -z "$as_dir" && as_dir=.
7473   for ac_exec_ext in '' $ac_executable_extensions; do
7474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7475     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7477     break 2
7478   fi
7479 done
7480 done
7481 IFS=$as_save_IFS
7482
7483   ;;
7484 esac
7485 fi
7486 ZIP=$ac_cv_path_ZIP
7487 if test -n "$ZIP"; then
7488   { echo "$as_me:$LINENO: result: $ZIP" >&5
7489 echo "${ECHO_T}$ZIP" >&6; }
7490 else
7491   { echo "$as_me:$LINENO: result: no" >&5
7492 echo "${ECHO_T}no" >&6; }
7493 fi
7494
7495
7496 for ac_prog in ocamlc
7497 do
7498   # Extract the first word of "$ac_prog", so it can be a program name with args.
7499 set dummy $ac_prog; ac_word=$2
7500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7502 if test "${ac_cv_path_OCAMLC+set}" = set; then
7503   echo $ECHO_N "(cached) $ECHO_C" >&6
7504 else
7505   case $OCAMLC in
7506   [\\/]* | ?:[\\/]*)
7507   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7508   ;;
7509   *)
7510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 for as_dir in $PATH
7512 do
7513   IFS=$as_save_IFS
7514   test -z "$as_dir" && as_dir=.
7515   for ac_exec_ext in '' $ac_executable_extensions; do
7516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7517     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7519     break 2
7520   fi
7521 done
7522 done
7523 IFS=$as_save_IFS
7524
7525   ;;
7526 esac
7527 fi
7528 OCAMLC=$ac_cv_path_OCAMLC
7529 if test -n "$OCAMLC"; then
7530   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7531 echo "${ECHO_T}$OCAMLC" >&6; }
7532 else
7533   { echo "$as_me:$LINENO: result: no" >&5
7534 echo "${ECHO_T}no" >&6; }
7535 fi
7536
7537
7538   test -n "$OCAMLC" && break
7539 done
7540
7541 for ac_prog in ocamlopt
7542 do
7543   # Extract the first word of "$ac_prog", so it can be a program name with args.
7544 set dummy $ac_prog; ac_word=$2
7545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7547 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7548   echo $ECHO_N "(cached) $ECHO_C" >&6
7549 else
7550   case $OCAMLOPT in
7551   [\\/]* | ?:[\\/]*)
7552   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7553   ;;
7554   *)
7555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 for as_dir in $PATH
7557 do
7558   IFS=$as_save_IFS
7559   test -z "$as_dir" && as_dir=.
7560   for ac_exec_ext in '' $ac_executable_extensions; do
7561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7562     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7564     break 2
7565   fi
7566 done
7567 done
7568 IFS=$as_save_IFS
7569
7570   ;;
7571 esac
7572 fi
7573 OCAMLOPT=$ac_cv_path_OCAMLOPT
7574 if test -n "$OCAMLOPT"; then
7575   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7576 echo "${ECHO_T}$OCAMLOPT" >&6; }
7577 else
7578   { echo "$as_me:$LINENO: result: no" >&5
7579 echo "${ECHO_T}no" >&6; }
7580 fi
7581
7582
7583   test -n "$OCAMLOPT" && break
7584 done
7585
7586 for ac_prog in ocamldep
7587 do
7588   # Extract the first word of "$ac_prog", so it can be a program name with args.
7589 set dummy $ac_prog; ac_word=$2
7590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7592 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7593   echo $ECHO_N "(cached) $ECHO_C" >&6
7594 else
7595   case $OCAMLDEP in
7596   [\\/]* | ?:[\\/]*)
7597   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7598   ;;
7599   *)
7600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 for as_dir in $PATH
7602 do
7603   IFS=$as_save_IFS
7604   test -z "$as_dir" && as_dir=.
7605   for ac_exec_ext in '' $ac_executable_extensions; do
7606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7607     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7608     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7609     break 2
7610   fi
7611 done
7612 done
7613 IFS=$as_save_IFS
7614
7615   ;;
7616 esac
7617 fi
7618 OCAMLDEP=$ac_cv_path_OCAMLDEP
7619 if test -n "$OCAMLDEP"; then
7620   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7621 echo "${ECHO_T}$OCAMLDEP" >&6; }
7622 else
7623   { echo "$as_me:$LINENO: result: no" >&5
7624 echo "${ECHO_T}no" >&6; }
7625 fi
7626
7627
7628   test -n "$OCAMLDEP" && break
7629 done
7630
7631 for ac_prog in ocamldoc
7632 do
7633   # Extract the first word of "$ac_prog", so it can be a program name with args.
7634 set dummy $ac_prog; ac_word=$2
7635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7637 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7638   echo $ECHO_N "(cached) $ECHO_C" >&6
7639 else
7640   case $OCAMLDOC in
7641   [\\/]* | ?:[\\/]*)
7642   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7643   ;;
7644   *)
7645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646 for as_dir in $PATH
7647 do
7648   IFS=$as_save_IFS
7649   test -z "$as_dir" && as_dir=.
7650   for ac_exec_ext in '' $ac_executable_extensions; do
7651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7652     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7654     break 2
7655   fi
7656 done
7657 done
7658 IFS=$as_save_IFS
7659
7660   ;;
7661 esac
7662 fi
7663 OCAMLDOC=$ac_cv_path_OCAMLDOC
7664 if test -n "$OCAMLDOC"; then
7665   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7666 echo "${ECHO_T}$OCAMLDOC" >&6; }
7667 else
7668   { echo "$as_me:$LINENO: result: no" >&5
7669 echo "${ECHO_T}no" >&6; }
7670 fi
7671
7672
7673   test -n "$OCAMLDOC" && break
7674 done
7675
7676 for ac_prog in gas as
7677 do
7678   # Extract the first word of "$ac_prog", so it can be a program name with args.
7679 set dummy $ac_prog; ac_word=$2
7680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7682 if test "${ac_cv_path_GAS+set}" = set; then
7683   echo $ECHO_N "(cached) $ECHO_C" >&6
7684 else
7685   case $GAS in
7686   [\\/]* | ?:[\\/]*)
7687   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7688   ;;
7689   *)
7690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691 for as_dir in $PATH
7692 do
7693   IFS=$as_save_IFS
7694   test -z "$as_dir" && as_dir=.
7695   for ac_exec_ext in '' $ac_executable_extensions; do
7696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7697     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7699     break 2
7700   fi
7701 done
7702 done
7703 IFS=$as_save_IFS
7704
7705   ;;
7706 esac
7707 fi
7708 GAS=$ac_cv_path_GAS
7709 if test -n "$GAS"; then
7710   { echo "$as_me:$LINENO: result: $GAS" >&5
7711 echo "${ECHO_T}$GAS" >&6; }
7712 else
7713   { echo "$as_me:$LINENO: result: no" >&5
7714 echo "${ECHO_T}no" >&6; }
7715 fi
7716
7717
7718   test -n "$GAS" && break
7719 done
7720
7721
7722 { echo "$as_me:$LINENO: checking for linker version" >&5
7723 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7724 if test "${llvm_cv_link_version+set}" = set; then
7725   echo $ECHO_N "(cached) $ECHO_C" >&6
7726 else
7727
7728    version_string="$(ld -v 2>&1 | head -1)"
7729
7730    # Check for ld64.
7731    if (echo "$version_string" | grep -q "ld64"); then
7732      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7733    else
7734      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7735    fi
7736
7737 fi
7738 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7739 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7740
7741 cat >>confdefs.h <<_ACEOF
7742 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7743 _ACEOF
7744
7745
7746
7747 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7748 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7749 if test "${llvm_cv_link_use_r+set}" = set; then
7750   echo $ECHO_N "(cached) $ECHO_C" >&6
7751 else
7752    ac_ext=c
7753 ac_cpp='$CPP $CPPFLAGS'
7754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7757
7758   oldcflags="$CFLAGS"
7759   CFLAGS="$CFLAGS -Wl,-R."
7760   cat >conftest.$ac_ext <<_ACEOF
7761 /* confdefs.h.  */
7762 _ACEOF
7763 cat confdefs.h >>conftest.$ac_ext
7764 cat >>conftest.$ac_ext <<_ACEOF
7765 /* end confdefs.h.  */
7766
7767 int
7768 main ()
7769 {
7770
7771   ;
7772   return 0;
7773 }
7774 _ACEOF
7775 rm -f conftest.$ac_objext conftest$ac_exeext
7776 if { (ac_try="$ac_link"
7777 case "(($ac_try" in
7778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7779   *) ac_try_echo=$ac_try;;
7780 esac
7781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7782   (eval "$ac_link") 2>conftest.er1
7783   ac_status=$?
7784   grep -v '^ *+' conftest.er1 >conftest.err
7785   rm -f conftest.er1
7786   cat conftest.err >&5
7787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788   (exit $ac_status); } &&
7789          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7790   { (case "(($ac_try" in
7791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7792   *) ac_try_echo=$ac_try;;
7793 esac
7794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7795   (eval "$ac_try") 2>&5
7796   ac_status=$?
7797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798   (exit $ac_status); }; } &&
7799          { ac_try='test -s conftest$ac_exeext'
7800   { (case "(($ac_try" in
7801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7802   *) ac_try_echo=$ac_try;;
7803 esac
7804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7805   (eval "$ac_try") 2>&5
7806   ac_status=$?
7807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808   (exit $ac_status); }; }; then
7809   llvm_cv_link_use_r=yes
7810 else
7811   echo "$as_me: failed program was:" >&5
7812 sed 's/^/| /' conftest.$ac_ext >&5
7813
7814         llvm_cv_link_use_r=no
7815 fi
7816
7817 rm -f core conftest.err conftest.$ac_objext \
7818       conftest$ac_exeext conftest.$ac_ext
7819   CFLAGS="$oldcflags"
7820   ac_ext=c
7821 ac_cpp='$CPP $CPPFLAGS'
7822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7825
7826
7827 fi
7828 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7829 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7830 if test "$llvm_cv_link_use_r" = yes ; then
7831
7832 cat >>confdefs.h <<\_ACEOF
7833 #define HAVE_LINK_R 1
7834 _ACEOF
7835
7836   fi
7837
7838
7839 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7840 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7841 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7842   echo $ECHO_N "(cached) $ECHO_C" >&6
7843 else
7844    ac_ext=c
7845 ac_cpp='$CPP $CPPFLAGS'
7846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7849
7850   oldcflags="$CFLAGS"
7851   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7852   cat >conftest.$ac_ext <<_ACEOF
7853 /* confdefs.h.  */
7854 _ACEOF
7855 cat confdefs.h >>conftest.$ac_ext
7856 cat >>conftest.$ac_ext <<_ACEOF
7857 /* end confdefs.h.  */
7858
7859 int
7860 main ()
7861 {
7862
7863   ;
7864   return 0;
7865 }
7866 _ACEOF
7867 rm -f conftest.$ac_objext conftest$ac_exeext
7868 if { (ac_try="$ac_link"
7869 case "(($ac_try" in
7870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7871   *) ac_try_echo=$ac_try;;
7872 esac
7873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7874   (eval "$ac_link") 2>conftest.er1
7875   ac_status=$?
7876   grep -v '^ *+' conftest.er1 >conftest.err
7877   rm -f conftest.er1
7878   cat conftest.err >&5
7879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880   (exit $ac_status); } &&
7881          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7882   { (case "(($ac_try" in
7883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7884   *) ac_try_echo=$ac_try;;
7885 esac
7886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7887   (eval "$ac_try") 2>&5
7888   ac_status=$?
7889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890   (exit $ac_status); }; } &&
7891          { ac_try='test -s conftest$ac_exeext'
7892   { (case "(($ac_try" in
7893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7894   *) ac_try_echo=$ac_try;;
7895 esac
7896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7897   (eval "$ac_try") 2>&5
7898   ac_status=$?
7899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900   (exit $ac_status); }; }; then
7901   llvm_cv_link_use_export_dynamic=yes
7902 else
7903   echo "$as_me: failed program was:" >&5
7904 sed 's/^/| /' conftest.$ac_ext >&5
7905
7906         llvm_cv_link_use_export_dynamic=no
7907 fi
7908
7909 rm -f core conftest.err conftest.$ac_objext \
7910       conftest$ac_exeext conftest.$ac_ext
7911   CFLAGS="$oldcflags"
7912   ac_ext=c
7913 ac_cpp='$CPP $CPPFLAGS'
7914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7917
7918
7919 fi
7920 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7921 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7922 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7923
7924 cat >>confdefs.h <<\_ACEOF
7925 #define HAVE_LINK_EXPORT_DYNAMIC 1
7926 _ACEOF
7927
7928   fi
7929
7930
7931 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7932 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7933 if test "${llvm_cv_link_use_version_script+set}" = set; then
7934   echo $ECHO_N "(cached) $ECHO_C" >&6
7935 else
7936    ac_ext=c
7937 ac_cpp='$CPP $CPPFLAGS'
7938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7941
7942   oldcflags="$CFLAGS"
7943
7944   # The following code is from the autoconf manual,
7945   # "11.13: Limitations of Usual Tools".
7946   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7947   # Use mktemp if possible; otherwise fall back on mkdir,
7948   # with $RANDOM to make collisions less likely.
7949   : ${TMPDIR=/tmp}
7950   {
7951     tmp=`
7952       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7953     ` &&
7954     test -n "$tmp" && test -d "$tmp"
7955   } || {
7956     tmp=$TMPDIR/foo$$-$RANDOM
7957     (umask 077 && mkdir "$tmp")
7958   } || exit $?
7959
7960   echo "{" > "$tmp/export.map"
7961   echo "  global: main;" >> "$tmp/export.map"
7962   echo "  local: *;" >> "$tmp/export.map"
7963   echo "};" >> "$tmp/export.map"
7964
7965   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7966   cat >conftest.$ac_ext <<_ACEOF
7967 /* confdefs.h.  */
7968 _ACEOF
7969 cat confdefs.h >>conftest.$ac_ext
7970 cat >>conftest.$ac_ext <<_ACEOF
7971 /* end confdefs.h.  */
7972
7973 int
7974 main ()
7975 {
7976
7977   ;
7978   return 0;
7979 }
7980 _ACEOF
7981 rm -f conftest.$ac_objext conftest$ac_exeext
7982 if { (ac_try="$ac_link"
7983 case "(($ac_try" in
7984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7985   *) ac_try_echo=$ac_try;;
7986 esac
7987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7988   (eval "$ac_link") 2>conftest.er1
7989   ac_status=$?
7990   grep -v '^ *+' conftest.er1 >conftest.err
7991   rm -f conftest.er1
7992   cat conftest.err >&5
7993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994   (exit $ac_status); } &&
7995          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7996   { (case "(($ac_try" in
7997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7998   *) ac_try_echo=$ac_try;;
7999 esac
8000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8001   (eval "$ac_try") 2>&5
8002   ac_status=$?
8003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004   (exit $ac_status); }; } &&
8005          { ac_try='test -s conftest$ac_exeext'
8006   { (case "(($ac_try" in
8007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8008   *) ac_try_echo=$ac_try;;
8009 esac
8010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8011   (eval "$ac_try") 2>&5
8012   ac_status=$?
8013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014   (exit $ac_status); }; }; then
8015   llvm_cv_link_use_version_script=yes
8016 else
8017   echo "$as_me: failed program was:" >&5
8018 sed 's/^/| /' conftest.$ac_ext >&5
8019
8020         llvm_cv_link_use_version_script=no
8021 fi
8022
8023 rm -f core conftest.err conftest.$ac_objext \
8024       conftest$ac_exeext conftest.$ac_ext
8025   rm "$tmp/export.map"
8026   rmdir "$tmp"
8027   CFLAGS="$oldcflags"
8028   ac_ext=c
8029 ac_cpp='$CPP $CPPFLAGS'
8030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8033
8034
8035 fi
8036 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8037 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8038 if test "$llvm_cv_link_use_version_script" = yes ; then
8039   HAVE_LINK_VERSION_SCRIPT=1
8040
8041   fi
8042
8043
8044
8045
8046 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8047 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8048 if test "${ac_cv_c_const+set}" = set; then
8049   echo $ECHO_N "(cached) $ECHO_C" >&6
8050 else
8051   cat >conftest.$ac_ext <<_ACEOF
8052 /* confdefs.h.  */
8053 _ACEOF
8054 cat confdefs.h >>conftest.$ac_ext
8055 cat >>conftest.$ac_ext <<_ACEOF
8056 /* end confdefs.h.  */
8057
8058 int
8059 main ()
8060 {
8061 /* FIXME: Include the comments suggested by Paul. */
8062 #ifndef __cplusplus
8063   /* Ultrix mips cc rejects this.  */
8064   typedef int charset[2];
8065   const charset x;
8066   /* SunOS 4.1.1 cc rejects this.  */
8067   char const *const *ccp;
8068   char **p;
8069   /* NEC SVR4.0.2 mips cc rejects this.  */
8070   struct point {int x, y;};
8071   static struct point const zero = {0,0};
8072   /* AIX XL C 1.02.0.0 rejects this.
8073      It does not let you subtract one const X* pointer from another in
8074      an arm of an if-expression whose if-part is not a constant
8075      expression */
8076   const char *g = "string";
8077   ccp = &g + (g ? g-g : 0);
8078   /* HPUX 7.0 cc rejects these. */
8079   ++ccp;
8080   p = (char**) ccp;
8081   ccp = (char const *const *) p;
8082   { /* SCO 3.2v4 cc rejects this.  */
8083     char *t;
8084     char const *s = 0 ? (char *) 0 : (char const *) 0;
8085
8086     *t++ = 0;
8087     if (s) return 0;
8088   }
8089   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8090     int x[] = {25, 17};
8091     const int *foo = &x[0];
8092     ++foo;
8093   }
8094   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8095     typedef const int *iptr;
8096     iptr p = 0;
8097     ++p;
8098   }
8099   { /* AIX XL C 1.02.0.0 rejects this saying
8100        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8101     struct s { int j; const int *ap[3]; };
8102     struct s *b; b->j = 5;
8103   }
8104   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8105     const int foo = 10;
8106     if (!foo) return 0;
8107   }
8108   return !x[0] && !zero.x;
8109 #endif
8110
8111   ;
8112   return 0;
8113 }
8114 _ACEOF
8115 rm -f conftest.$ac_objext
8116 if { (ac_try="$ac_compile"
8117 case "(($ac_try" in
8118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119   *) ac_try_echo=$ac_try;;
8120 esac
8121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8122   (eval "$ac_compile") 2>conftest.er1
8123   ac_status=$?
8124   grep -v '^ *+' conftest.er1 >conftest.err
8125   rm -f conftest.er1
8126   cat conftest.err >&5
8127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128   (exit $ac_status); } &&
8129          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8130   { (case "(($ac_try" in
8131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8132   *) ac_try_echo=$ac_try;;
8133 esac
8134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8135   (eval "$ac_try") 2>&5
8136   ac_status=$?
8137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138   (exit $ac_status); }; } &&
8139          { ac_try='test -s conftest.$ac_objext'
8140   { (case "(($ac_try" in
8141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8142   *) ac_try_echo=$ac_try;;
8143 esac
8144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8145   (eval "$ac_try") 2>&5
8146   ac_status=$?
8147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148   (exit $ac_status); }; }; then
8149   ac_cv_c_const=yes
8150 else
8151   echo "$as_me: failed program was:" >&5
8152 sed 's/^/| /' conftest.$ac_ext >&5
8153
8154         ac_cv_c_const=no
8155 fi
8156
8157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8158 fi
8159 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8160 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8161 if test $ac_cv_c_const = no; then
8162
8163 cat >>confdefs.h <<\_ACEOF
8164 #define const
8165 _ACEOF
8166
8167 fi
8168
8169
8170
8171
8172
8173
8174 ac_header_dirent=no
8175 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8176   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8177 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8178 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8180   echo $ECHO_N "(cached) $ECHO_C" >&6
8181 else
8182   cat >conftest.$ac_ext <<_ACEOF
8183 /* confdefs.h.  */
8184 _ACEOF
8185 cat confdefs.h >>conftest.$ac_ext
8186 cat >>conftest.$ac_ext <<_ACEOF
8187 /* end confdefs.h.  */
8188 #include <sys/types.h>
8189 #include <$ac_hdr>
8190
8191 int
8192 main ()
8193 {
8194 if ((DIR *) 0)
8195 return 0;
8196   ;
8197   return 0;
8198 }
8199 _ACEOF
8200 rm -f conftest.$ac_objext
8201 if { (ac_try="$ac_compile"
8202 case "(($ac_try" in
8203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8204   *) ac_try_echo=$ac_try;;
8205 esac
8206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8207   (eval "$ac_compile") 2>conftest.er1
8208   ac_status=$?
8209   grep -v '^ *+' conftest.er1 >conftest.err
8210   rm -f conftest.er1
8211   cat conftest.err >&5
8212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213   (exit $ac_status); } &&
8214          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8215   { (case "(($ac_try" in
8216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8217   *) ac_try_echo=$ac_try;;
8218 esac
8219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8220   (eval "$ac_try") 2>&5
8221   ac_status=$?
8222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223   (exit $ac_status); }; } &&
8224          { ac_try='test -s conftest.$ac_objext'
8225   { (case "(($ac_try" in
8226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227   *) ac_try_echo=$ac_try;;
8228 esac
8229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230   (eval "$ac_try") 2>&5
8231   ac_status=$?
8232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233   (exit $ac_status); }; }; then
8234   eval "$as_ac_Header=yes"
8235 else
8236   echo "$as_me: failed program was:" >&5
8237 sed 's/^/| /' conftest.$ac_ext >&5
8238
8239         eval "$as_ac_Header=no"
8240 fi
8241
8242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8243 fi
8244 ac_res=`eval echo '${'$as_ac_Header'}'`
8245                { echo "$as_me:$LINENO: result: $ac_res" >&5
8246 echo "${ECHO_T}$ac_res" >&6; }
8247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8248   cat >>confdefs.h <<_ACEOF
8249 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8250 _ACEOF
8251
8252 ac_header_dirent=$ac_hdr; break
8253 fi
8254
8255 done
8256 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8257 if test $ac_header_dirent = dirent.h; then
8258   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8259 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8260 if test "${ac_cv_search_opendir+set}" = set; then
8261   echo $ECHO_N "(cached) $ECHO_C" >&6
8262 else
8263   ac_func_search_save_LIBS=$LIBS
8264 cat >conftest.$ac_ext <<_ACEOF
8265 /* confdefs.h.  */
8266 _ACEOF
8267 cat confdefs.h >>conftest.$ac_ext
8268 cat >>conftest.$ac_ext <<_ACEOF
8269 /* end confdefs.h.  */
8270
8271 /* Override any GCC internal prototype to avoid an error.
8272    Use char because int might match the return type of a GCC
8273    builtin and then its argument prototype would still apply.  */
8274 #ifdef __cplusplus
8275 extern "C"
8276 #endif
8277 char opendir ();
8278 int
8279 main ()
8280 {
8281 return opendir ();
8282   ;
8283   return 0;
8284 }
8285 _ACEOF
8286 for ac_lib in '' dir; do
8287   if test -z "$ac_lib"; then
8288     ac_res="none required"
8289   else
8290     ac_res=-l$ac_lib
8291     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8292   fi
8293   rm -f conftest.$ac_objext conftest$ac_exeext
8294 if { (ac_try="$ac_link"
8295 case "(($ac_try" in
8296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8297   *) ac_try_echo=$ac_try;;
8298 esac
8299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8300   (eval "$ac_link") 2>conftest.er1
8301   ac_status=$?
8302   grep -v '^ *+' conftest.er1 >conftest.err
8303   rm -f conftest.er1
8304   cat conftest.err >&5
8305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306   (exit $ac_status); } &&
8307          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8308   { (case "(($ac_try" in
8309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8310   *) ac_try_echo=$ac_try;;
8311 esac
8312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8313   (eval "$ac_try") 2>&5
8314   ac_status=$?
8315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316   (exit $ac_status); }; } &&
8317          { ac_try='test -s conftest$ac_exeext'
8318   { (case "(($ac_try" in
8319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320   *) ac_try_echo=$ac_try;;
8321 esac
8322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323   (eval "$ac_try") 2>&5
8324   ac_status=$?
8325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326   (exit $ac_status); }; }; then
8327   ac_cv_search_opendir=$ac_res
8328 else
8329   echo "$as_me: failed program was:" >&5
8330 sed 's/^/| /' conftest.$ac_ext >&5
8331
8332
8333 fi
8334
8335 rm -f core conftest.err conftest.$ac_objext \
8336       conftest$ac_exeext
8337   if test "${ac_cv_search_opendir+set}" = set; then
8338   break
8339 fi
8340 done
8341 if test "${ac_cv_search_opendir+set}" = set; then
8342   :
8343 else
8344   ac_cv_search_opendir=no
8345 fi
8346 rm conftest.$ac_ext
8347 LIBS=$ac_func_search_save_LIBS
8348 fi
8349 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8350 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8351 ac_res=$ac_cv_search_opendir
8352 if test "$ac_res" != no; then
8353   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8354
8355 fi
8356
8357 else
8358   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8359 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8360 if test "${ac_cv_search_opendir+set}" = set; then
8361   echo $ECHO_N "(cached) $ECHO_C" >&6
8362 else
8363   ac_func_search_save_LIBS=$LIBS
8364 cat >conftest.$ac_ext <<_ACEOF
8365 /* confdefs.h.  */
8366 _ACEOF
8367 cat confdefs.h >>conftest.$ac_ext
8368 cat >>conftest.$ac_ext <<_ACEOF
8369 /* end confdefs.h.  */
8370
8371 /* Override any GCC internal prototype to avoid an error.
8372    Use char because int might match the return type of a GCC
8373    builtin and then its argument prototype would still apply.  */
8374 #ifdef __cplusplus
8375 extern "C"
8376 #endif
8377 char opendir ();
8378 int
8379 main ()
8380 {
8381 return opendir ();
8382   ;
8383   return 0;
8384 }
8385 _ACEOF
8386 for ac_lib in '' x; do
8387   if test -z "$ac_lib"; then
8388     ac_res="none required"
8389   else
8390     ac_res=-l$ac_lib
8391     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8392   fi
8393   rm -f conftest.$ac_objext conftest$ac_exeext
8394 if { (ac_try="$ac_link"
8395 case "(($ac_try" in
8396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397   *) ac_try_echo=$ac_try;;
8398 esac
8399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400   (eval "$ac_link") 2>conftest.er1
8401   ac_status=$?
8402   grep -v '^ *+' conftest.er1 >conftest.err
8403   rm -f conftest.er1
8404   cat conftest.err >&5
8405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406   (exit $ac_status); } &&
8407          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8408   { (case "(($ac_try" in
8409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8410   *) ac_try_echo=$ac_try;;
8411 esac
8412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8413   (eval "$ac_try") 2>&5
8414   ac_status=$?
8415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416   (exit $ac_status); }; } &&
8417          { ac_try='test -s conftest$ac_exeext'
8418   { (case "(($ac_try" in
8419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8420   *) ac_try_echo=$ac_try;;
8421 esac
8422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8423   (eval "$ac_try") 2>&5
8424   ac_status=$?
8425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426   (exit $ac_status); }; }; then
8427   ac_cv_search_opendir=$ac_res
8428 else
8429   echo "$as_me: failed program was:" >&5
8430 sed 's/^/| /' conftest.$ac_ext >&5
8431
8432
8433 fi
8434
8435 rm -f core conftest.err conftest.$ac_objext \
8436       conftest$ac_exeext
8437   if test "${ac_cv_search_opendir+set}" = set; then
8438   break
8439 fi
8440 done
8441 if test "${ac_cv_search_opendir+set}" = set; then
8442   :
8443 else
8444   ac_cv_search_opendir=no
8445 fi
8446 rm conftest.$ac_ext
8447 LIBS=$ac_func_search_save_LIBS
8448 fi
8449 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8450 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8451 ac_res=$ac_cv_search_opendir
8452 if test "$ac_res" != no; then
8453   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8454
8455 fi
8456
8457 fi
8458
8459
8460 for ac_header in dlfcn.h
8461 do
8462 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8464   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8467   echo $ECHO_N "(cached) $ECHO_C" >&6
8468 fi
8469 ac_res=`eval echo '${'$as_ac_Header'}'`
8470                { echo "$as_me:$LINENO: result: $ac_res" >&5
8471 echo "${ECHO_T}$ac_res" >&6; }
8472 else
8473   # Is the header compilable?
8474 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8475 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8476 cat >conftest.$ac_ext <<_ACEOF
8477 /* confdefs.h.  */
8478 _ACEOF
8479 cat confdefs.h >>conftest.$ac_ext
8480 cat >>conftest.$ac_ext <<_ACEOF
8481 /* end confdefs.h.  */
8482 $ac_includes_default
8483 #include <$ac_header>
8484 _ACEOF
8485 rm -f conftest.$ac_objext
8486 if { (ac_try="$ac_compile"
8487 case "(($ac_try" in
8488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489   *) ac_try_echo=$ac_try;;
8490 esac
8491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8492   (eval "$ac_compile") 2>conftest.er1
8493   ac_status=$?
8494   grep -v '^ *+' conftest.er1 >conftest.err
8495   rm -f conftest.er1
8496   cat conftest.err >&5
8497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498   (exit $ac_status); } &&
8499          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8500   { (case "(($ac_try" in
8501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8502   *) ac_try_echo=$ac_try;;
8503 esac
8504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8505   (eval "$ac_try") 2>&5
8506   ac_status=$?
8507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508   (exit $ac_status); }; } &&
8509          { ac_try='test -s conftest.$ac_objext'
8510   { (case "(($ac_try" in
8511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8512   *) ac_try_echo=$ac_try;;
8513 esac
8514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8515   (eval "$ac_try") 2>&5
8516   ac_status=$?
8517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518   (exit $ac_status); }; }; then
8519   ac_header_compiler=yes
8520 else
8521   echo "$as_me: failed program was:" >&5
8522 sed 's/^/| /' conftest.$ac_ext >&5
8523
8524         ac_header_compiler=no
8525 fi
8526
8527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8528 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8529 echo "${ECHO_T}$ac_header_compiler" >&6; }
8530
8531 # Is the header present?
8532 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8533 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8534 cat >conftest.$ac_ext <<_ACEOF
8535 /* confdefs.h.  */
8536 _ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h.  */
8540 #include <$ac_header>
8541 _ACEOF
8542 if { (ac_try="$ac_cpp conftest.$ac_ext"
8543 case "(($ac_try" in
8544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8545   *) ac_try_echo=$ac_try;;
8546 esac
8547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8548   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8549   ac_status=$?
8550   grep -v '^ *+' conftest.er1 >conftest.err
8551   rm -f conftest.er1
8552   cat conftest.err >&5
8553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554   (exit $ac_status); } >/dev/null; then
8555   if test -s conftest.err; then
8556     ac_cpp_err=$ac_c_preproc_warn_flag
8557     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8558   else
8559     ac_cpp_err=
8560   fi
8561 else
8562   ac_cpp_err=yes
8563 fi
8564 if test -z "$ac_cpp_err"; then
8565   ac_header_preproc=yes
8566 else
8567   echo "$as_me: failed program was:" >&5
8568 sed 's/^/| /' conftest.$ac_ext >&5
8569
8570   ac_header_preproc=no
8571 fi
8572
8573 rm -f conftest.err conftest.$ac_ext
8574 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8575 echo "${ECHO_T}$ac_header_preproc" >&6; }
8576
8577 # So?  What about this header?
8578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8579   yes:no: )
8580     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8581 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8582     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8583 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8584     ac_header_preproc=yes
8585     ;;
8586   no:yes:* )
8587     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8588 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8589     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8590 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8591     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8592 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8593     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8594 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8595     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8596 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8597     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8598 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8599     ( cat <<\_ASBOX
8600 ## ------------------------------ ##
8601 ## Report this to bugs@yourdomain ##
8602 ## ------------------------------ ##
8603 _ASBOX
8604      ) | sed "s/^/$as_me: WARNING:     /" >&2
8605     ;;
8606 esac
8607 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8610   echo $ECHO_N "(cached) $ECHO_C" >&6
8611 else
8612   eval "$as_ac_Header=\$ac_header_preproc"
8613 fi
8614 ac_res=`eval echo '${'$as_ac_Header'}'`
8615                { echo "$as_me:$LINENO: result: $ac_res" >&5
8616 echo "${ECHO_T}$ac_res" >&6; }
8617
8618 fi
8619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8620   cat >>confdefs.h <<_ACEOF
8621 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8622 _ACEOF
8623
8624 fi
8625
8626 done
8627
8628 # Check whether --enable-ltdl-install was given.
8629 if test "${enable_ltdl_install+set}" = set; then
8630   enableval=$enable_ltdl_install;
8631 fi
8632
8633
8634
8635
8636 if test x"${enable_ltdl_install-no}" != xno; then
8637   INSTALL_LTDL_TRUE=
8638   INSTALL_LTDL_FALSE='#'
8639 else
8640   INSTALL_LTDL_TRUE='#'
8641   INSTALL_LTDL_FALSE=
8642 fi
8643
8644
8645
8646 if test x"${enable_ltdl_convenience-no}" != xno; then
8647   CONVENIENCE_LTDL_TRUE=
8648   CONVENIENCE_LTDL_FALSE='#'
8649 else
8650   CONVENIENCE_LTDL_TRUE='#'
8651   CONVENIENCE_LTDL_FALSE=
8652 fi
8653
8654
8655 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8656 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8657 library_names_spec=
8658 libname_spec='lib$name'
8659 soname_spec=
8660 shrext_cmds=".so"
8661 postinstall_cmds=
8662 postuninstall_cmds=
8663 finish_cmds=
8664 finish_eval=
8665 shlibpath_var=
8666 shlibpath_overrides_runpath=unknown
8667 version_type=none
8668 dynamic_linker="$host_os ld.so"
8669 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8670 if test "$GCC" = yes; then
8671   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8672   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8673     # if the path contains ";" then we assume it to be the separator
8674     # otherwise default to the standard path separator (i.e. ":") - it is
8675     # assumed that no part of a normal pathname contains ";" but that should
8676     # okay in the real world where ";" in dirpaths is itself problematic.
8677     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8678   else
8679     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8680   fi
8681 else
8682   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8683 fi
8684 need_lib_prefix=unknown
8685 hardcode_into_libs=no
8686
8687 # when you set need_version to no, make sure it does not cause -set_version
8688 # flags to be left without arguments
8689 need_version=unknown
8690
8691 case $host_os in
8692 aix3*)
8693   version_type=linux
8694   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8695   shlibpath_var=LIBPATH
8696
8697   # AIX 3 has no versioning support, so we append a major version to the name.
8698   soname_spec='${libname}${release}${shared_ext}$major'
8699   ;;
8700
8701 aix4* | aix5*)
8702   version_type=linux
8703   need_lib_prefix=no
8704   need_version=no
8705   hardcode_into_libs=yes
8706   if test "$host_cpu" = ia64; then
8707     # AIX 5 supports IA64
8708     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8709     shlibpath_var=LD_LIBRARY_PATH
8710   else
8711     # With GCC up to 2.95.x, collect2 would create an import file
8712     # for dependence libraries.  The import file would start with
8713     # the line `#! .'.  This would cause the generated library to
8714     # depend on `.', always an invalid library.  This was fixed in
8715     # development snapshots of GCC prior to 3.0.
8716     case $host_os in
8717       aix4 | aix4.[01] | aix4.[01].*)
8718       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8719            echo ' yes '
8720            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8721         :
8722       else
8723         can_build_shared=no
8724       fi
8725       ;;
8726     esac
8727     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8728     # soname into executable. Probably we can add versioning support to
8729     # collect2, so additional links can be useful in future.
8730     if test "$aix_use_runtimelinking" = yes; then
8731       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8732       # instead of lib<name>.a to let people know that these are not
8733       # typical AIX shared libraries.
8734       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8735     else
8736       # We preserve .a as extension for shared libraries through AIX4.2
8737       # and later when we are not doing run time linking.
8738       library_names_spec='${libname}${release}.a $libname.a'
8739       soname_spec='${libname}${release}${shared_ext}$major'
8740     fi
8741     shlibpath_var=LIBPATH
8742   fi
8743   ;;
8744
8745 amigaos*)
8746   library_names_spec='$libname.ixlibrary $libname.a'
8747   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8748   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'
8749   ;;
8750
8751 beos*)
8752   library_names_spec='${libname}${shared_ext}'
8753   dynamic_linker="$host_os ld.so"
8754   shlibpath_var=LIBRARY_PATH
8755   ;;
8756
8757 bsdi[45]*)
8758   version_type=linux
8759   need_version=no
8760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8761   soname_spec='${libname}${release}${shared_ext}$major'
8762   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8763   shlibpath_var=LD_LIBRARY_PATH
8764   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8765   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8766   # the default ld.so.conf also contains /usr/contrib/lib and
8767   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8768   # libtool to hard-code these into programs
8769   ;;
8770
8771 cygwin* | mingw* | pw32*)
8772   version_type=windows
8773   shrext_cmds=".dll"
8774   need_version=no
8775   need_lib_prefix=no
8776
8777   case $GCC,$host_os in
8778   yes,cygwin* | yes,mingw* | yes,pw32*)
8779     library_names_spec='$libname.dll.a'
8780     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8781     postinstall_cmds='base_file=`basename \${file}`~
8782       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8783       dldir=$destdir/`dirname \$dlpath`~
8784       test -d \$dldir || mkdir -p \$dldir~
8785       $install_prog $dir/$dlname \$dldir/$dlname~
8786       chmod a+x \$dldir/$dlname'
8787     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8788       dlpath=$dir/\$dldll~
8789        $rm \$dlpath'
8790     shlibpath_overrides_runpath=yes
8791
8792     case $host_os in
8793     cygwin*)
8794       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8795       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8796       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8797       ;;
8798     mingw*)
8799       # MinGW DLLs use traditional 'lib' prefix
8800       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8801       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8802       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8803         # It is most probably a Windows format PATH printed by
8804         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8805         # path with ; separators, and with drive letters. We can handle the
8806         # drive letters (cygwin fileutils understands them), so leave them,
8807         # especially as we might pass files found there to a mingw objdump,
8808         # which wouldn't understand a cygwinified path. Ahh.
8809         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8810       else
8811         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8812       fi
8813       ;;
8814     pw32*)
8815       # pw32 DLLs use 'pw' prefix rather than 'lib'
8816       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8817       ;;
8818     esac
8819     ;;
8820
8821   *)
8822     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8823     ;;
8824   esac
8825   dynamic_linker='Win32 ld.exe'
8826   # FIXME: first we should search . and the directory the executable is in
8827   shlibpath_var=PATH
8828   ;;
8829
8830 darwin* | rhapsody*)
8831   dynamic_linker="$host_os dyld"
8832   version_type=darwin
8833   need_lib_prefix=no
8834   need_version=no
8835   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8836   soname_spec='${libname}${release}${major}$shared_ext'
8837   shlibpath_overrides_runpath=yes
8838   shlibpath_var=DYLD_LIBRARY_PATH
8839   shrext_cmds='.dylib'
8840   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8841   if test "$GCC" = yes; then
8842     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"`
8843   else
8844     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8845   fi
8846   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8847   ;;
8848
8849 dgux*)
8850   version_type=linux
8851   need_lib_prefix=no
8852   need_version=no
8853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8854   soname_spec='${libname}${release}${shared_ext}$major'
8855   shlibpath_var=LD_LIBRARY_PATH
8856   ;;
8857
8858 freebsd1*)
8859   dynamic_linker=no
8860   ;;
8861
8862 kfreebsd*-gnu)
8863   version_type=linux
8864   need_lib_prefix=no
8865   need_version=no
8866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8867   soname_spec='${libname}${release}${shared_ext}$major'
8868   shlibpath_var=LD_LIBRARY_PATH
8869   shlibpath_overrides_runpath=no
8870   hardcode_into_libs=yes
8871   dynamic_linker='GNU ld.so'
8872   ;;
8873
8874 freebsd* | dragonfly*)
8875   # DragonFly does not have aout.  When/if they implement a new
8876   # versioning mechanism, adjust this.
8877   if test -x /usr/bin/objformat; then
8878     objformat=`/usr/bin/objformat`
8879   else
8880     case $host_os in
8881     freebsd[123]*) objformat=aout ;;
8882     *) objformat=elf ;;
8883     esac
8884   fi
8885   version_type=freebsd-$objformat
8886   case $version_type in
8887     freebsd-elf*)
8888       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8889       need_version=no
8890       need_lib_prefix=no
8891       ;;
8892     freebsd-*)
8893       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8894       need_version=yes
8895       ;;
8896   esac
8897   shlibpath_var=LD_LIBRARY_PATH
8898   case $host_os in
8899   freebsd2*)
8900     shlibpath_overrides_runpath=yes
8901     ;;
8902   freebsd3.[01]* | freebsdelf3.[01]*)
8903     shlibpath_overrides_runpath=yes
8904     hardcode_into_libs=yes
8905     ;;
8906   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8907   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8908     shlibpath_overrides_runpath=no
8909     hardcode_into_libs=yes
8910     ;;
8911   freebsd*) # from 4.6 on
8912     shlibpath_overrides_runpath=yes
8913     hardcode_into_libs=yes
8914     ;;
8915   esac
8916   ;;
8917
8918 gnu*)
8919   version_type=linux
8920   need_lib_prefix=no
8921   need_version=no
8922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8923   soname_spec='${libname}${release}${shared_ext}$major'
8924   shlibpath_var=LD_LIBRARY_PATH
8925   hardcode_into_libs=yes
8926   ;;
8927
8928 hpux9* | hpux10* | hpux11*)
8929   # Give a soname corresponding to the major version so that dld.sl refuses to
8930   # link against other versions.
8931   version_type=sunos
8932   need_lib_prefix=no
8933   need_version=no
8934   case $host_cpu in
8935   ia64*)
8936     shrext_cmds='.so'
8937     hardcode_into_libs=yes
8938     dynamic_linker="$host_os dld.so"
8939     shlibpath_var=LD_LIBRARY_PATH
8940     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8941     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8942     soname_spec='${libname}${release}${shared_ext}$major'
8943     if test "X$HPUX_IA64_MODE" = X32; then
8944       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8945     else
8946       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8947     fi
8948     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8949     ;;
8950    hppa*64*)
8951      shrext_cmds='.sl'
8952      hardcode_into_libs=yes
8953      dynamic_linker="$host_os dld.sl"
8954      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8955      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8956      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8957      soname_spec='${libname}${release}${shared_ext}$major'
8958      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8959      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8960      ;;
8961    *)
8962     shrext_cmds='.sl'
8963     dynamic_linker="$host_os dld.sl"
8964     shlibpath_var=SHLIB_PATH
8965     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8966     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8967     soname_spec='${libname}${release}${shared_ext}$major'
8968     ;;
8969   esac
8970   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8971   postinstall_cmds='chmod 555 $lib'
8972   ;;
8973
8974 interix3*)
8975   version_type=linux
8976   need_lib_prefix=no
8977   need_version=no
8978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8979   soname_spec='${libname}${release}${shared_ext}$major'
8980   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8981   shlibpath_var=LD_LIBRARY_PATH
8982   shlibpath_overrides_runpath=no
8983   hardcode_into_libs=yes
8984   ;;
8985
8986 irix5* | irix6* | nonstopux*)
8987   case $host_os in
8988     nonstopux*) version_type=nonstopux ;;
8989     *)
8990         if test "$lt_cv_prog_gnu_ld" = yes; then
8991                 version_type=linux
8992         else
8993                 version_type=irix
8994         fi ;;
8995   esac
8996   need_lib_prefix=no
8997   need_version=no
8998   soname_spec='${libname}${release}${shared_ext}$major'
8999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9000   case $host_os in
9001   irix5* | nonstopux*)
9002     libsuff= shlibsuff=
9003     ;;
9004   *)
9005     case $LD in # libtool.m4 will add one of these switches to LD
9006     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9007       libsuff= shlibsuff= libmagic=32-bit;;
9008     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9009       libsuff=32 shlibsuff=N32 libmagic=N32;;
9010     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9011       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9012     *) libsuff= shlibsuff= libmagic=never-match;;
9013     esac
9014     ;;
9015   esac
9016   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9017   shlibpath_overrides_runpath=no
9018   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9019   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9020   hardcode_into_libs=yes
9021   ;;
9022
9023 # No shared lib support for Linux oldld, aout, or coff.
9024 linux*oldld* | linux*aout* | linux*coff*)
9025   dynamic_linker=no
9026   ;;
9027
9028 # This must be Linux ELF.
9029 linux*)
9030   version_type=linux
9031   need_lib_prefix=no
9032   need_version=no
9033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9034   soname_spec='${libname}${release}${shared_ext}$major'
9035   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9036   shlibpath_var=LD_LIBRARY_PATH
9037   shlibpath_overrides_runpath=no
9038   # This implies no fast_install, which is unacceptable.
9039   # Some rework will be needed to allow for fast_install
9040   # before this can be enabled.
9041   hardcode_into_libs=yes
9042
9043   # Append ld.so.conf contents to the search path
9044   if test -f /etc/ld.so.conf; then
9045     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' ' '`
9046     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9047   fi
9048
9049   # We used to test for /lib/ld.so.1 and disable shared libraries on
9050   # powerpc, because MkLinux only supported shared libraries with the
9051   # GNU dynamic linker.  Since this was broken with cross compilers,
9052   # most powerpc-linux boxes support dynamic linking these days and
9053   # people can always --disable-shared, the test was removed, and we
9054   # assume the GNU/Linux dynamic linker is in use.
9055   dynamic_linker='GNU/Linux ld.so'
9056   ;;
9057
9058 knetbsd*-gnu)
9059   version_type=linux
9060   need_lib_prefix=no
9061   need_version=no
9062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9063   soname_spec='${libname}${release}${shared_ext}$major'
9064   shlibpath_var=LD_LIBRARY_PATH
9065   shlibpath_overrides_runpath=no
9066   hardcode_into_libs=yes
9067   dynamic_linker='GNU ld.so'
9068   ;;
9069
9070 netbsd*)
9071   version_type=sunos
9072   need_lib_prefix=no
9073   need_version=no
9074   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9075     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9076     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9077     dynamic_linker='NetBSD (a.out) ld.so'
9078   else
9079     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9080     soname_spec='${libname}${release}${shared_ext}$major'
9081     dynamic_linker='NetBSD ld.elf_so'
9082   fi
9083   shlibpath_var=LD_LIBRARY_PATH
9084   shlibpath_overrides_runpath=yes
9085   hardcode_into_libs=yes
9086   ;;
9087
9088 newsos6)
9089   version_type=linux
9090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9091   shlibpath_var=LD_LIBRARY_PATH
9092   shlibpath_overrides_runpath=yes
9093   ;;
9094
9095 nto-qnx*)
9096   version_type=linux
9097   need_lib_prefix=no
9098   need_version=no
9099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9100   soname_spec='${libname}${release}${shared_ext}$major'
9101   shlibpath_var=LD_LIBRARY_PATH
9102   shlibpath_overrides_runpath=yes
9103   ;;
9104
9105 openbsd*)
9106   version_type=sunos
9107   sys_lib_dlsearch_path_spec="/usr/lib"
9108   need_lib_prefix=no
9109   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9110   case $host_os in
9111     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9112     *)                         need_version=no  ;;
9113   esac
9114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9115   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9116   shlibpath_var=LD_LIBRARY_PATH
9117   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9118     case $host_os in
9119       openbsd2.[89] | openbsd2.[89].*)
9120         shlibpath_overrides_runpath=no
9121         ;;
9122       *)
9123         shlibpath_overrides_runpath=yes
9124         ;;
9125       esac
9126   else
9127     shlibpath_overrides_runpath=yes
9128   fi
9129   ;;
9130
9131 os2*)
9132   libname_spec='$name'
9133   shrext_cmds=".dll"
9134   need_lib_prefix=no
9135   library_names_spec='$libname${shared_ext} $libname.a'
9136   dynamic_linker='OS/2 ld.exe'
9137   shlibpath_var=LIBPATH
9138   ;;
9139
9140 osf3* | osf4* | osf5*)
9141   version_type=osf
9142   need_lib_prefix=no
9143   need_version=no
9144   soname_spec='${libname}${release}${shared_ext}$major'
9145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9146   shlibpath_var=LD_LIBRARY_PATH
9147   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9148   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9149   ;;
9150
9151 solaris*)
9152   version_type=linux
9153   need_lib_prefix=no
9154   need_version=no
9155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9156   soname_spec='${libname}${release}${shared_ext}$major'
9157   shlibpath_var=LD_LIBRARY_PATH
9158   shlibpath_overrides_runpath=yes
9159   hardcode_into_libs=yes
9160   # ldd complains unless libraries are executable
9161   postinstall_cmds='chmod +x $lib'
9162   ;;
9163
9164 sunos4*)
9165   version_type=sunos
9166   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9167   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9168   shlibpath_var=LD_LIBRARY_PATH
9169   shlibpath_overrides_runpath=yes
9170   if test "$with_gnu_ld" = yes; then
9171     need_lib_prefix=no
9172   fi
9173   need_version=yes
9174   ;;
9175
9176 sysv4 | sysv4.3*)
9177   version_type=linux
9178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9179   soname_spec='${libname}${release}${shared_ext}$major'
9180   shlibpath_var=LD_LIBRARY_PATH
9181   case $host_vendor in
9182     sni)
9183       shlibpath_overrides_runpath=no
9184       need_lib_prefix=no
9185       export_dynamic_flag_spec='${wl}-Blargedynsym'
9186       runpath_var=LD_RUN_PATH
9187       ;;
9188     siemens)
9189       need_lib_prefix=no
9190       ;;
9191     motorola)
9192       need_lib_prefix=no
9193       need_version=no
9194       shlibpath_overrides_runpath=no
9195       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9196       ;;
9197   esac
9198   ;;
9199
9200 sysv4*MP*)
9201   if test -d /usr/nec ;then
9202     version_type=linux
9203     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9204     soname_spec='$libname${shared_ext}.$major'
9205     shlibpath_var=LD_LIBRARY_PATH
9206   fi
9207   ;;
9208
9209 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9210   version_type=freebsd-elf
9211   need_lib_prefix=no
9212   need_version=no
9213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9214   soname_spec='${libname}${release}${shared_ext}$major'
9215   shlibpath_var=LD_LIBRARY_PATH
9216   hardcode_into_libs=yes
9217   if test "$with_gnu_ld" = yes; then
9218     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9219     shlibpath_overrides_runpath=no
9220   else
9221     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9222     shlibpath_overrides_runpath=yes
9223     case $host_os in
9224       sco3.2v5*)
9225         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9226         ;;
9227     esac
9228   fi
9229   sys_lib_dlsearch_path_spec='/usr/lib'
9230   ;;
9231
9232 uts4*)
9233   version_type=linux
9234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9235   soname_spec='${libname}${release}${shared_ext}$major'
9236   shlibpath_var=LD_LIBRARY_PATH
9237   ;;
9238
9239 *)
9240   dynamic_linker=no
9241   ;;
9242 esac
9243 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9244 echo "${ECHO_T}$dynamic_linker" >&6; }
9245 test "$dynamic_linker" = no && can_build_shared=no
9246
9247 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9248 if test "$GCC" = yes; then
9249   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9250 fi
9251
9252
9253 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9254 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9255 if test "${libltdl_cv_shlibext+set}" = set; then
9256   echo $ECHO_N "(cached) $ECHO_C" >&6
9257 else
9258
9259 module=yes
9260 eval libltdl_cv_shlibext=$shrext_cmds
9261
9262 fi
9263 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9264 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9265 if test -n "$libltdl_cv_shlibext"; then
9266
9267 cat >>confdefs.h <<_ACEOF
9268 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9269 _ACEOF
9270
9271 fi
9272
9273
9274 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9275 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9276 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9277   echo $ECHO_N "(cached) $ECHO_C" >&6
9278 else
9279   libltdl_cv_shlibpath_var="$shlibpath_var"
9280 fi
9281 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9282 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9283 if test -n "$libltdl_cv_shlibpath_var"; then
9284
9285 cat >>confdefs.h <<_ACEOF
9286 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9287 _ACEOF
9288
9289 fi
9290
9291
9292 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9293 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9294 if test "${libltdl_cv_sys_search_path+set}" = set; then
9295   echo $ECHO_N "(cached) $ECHO_C" >&6
9296 else
9297   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9298 fi
9299 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9300 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9301 if test -n "$libltdl_cv_sys_search_path"; then
9302   sys_search_path=
9303   for dir in $libltdl_cv_sys_search_path; do
9304     if test -z "$sys_search_path"; then
9305       sys_search_path="$dir"
9306     else
9307       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9308     fi
9309   done
9310
9311 cat >>confdefs.h <<_ACEOF
9312 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9313 _ACEOF
9314
9315 fi
9316
9317 { echo "$as_me:$LINENO: checking for objdir" >&5
9318 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9319 if test "${libltdl_cv_objdir+set}" = set; then
9320   echo $ECHO_N "(cached) $ECHO_C" >&6
9321 else
9322   libltdl_cv_objdir="$objdir"
9323   if test -n "$objdir"; then
9324     :
9325   else
9326     rm -f .libs 2>/dev/null
9327     mkdir .libs 2>/dev/null
9328     if test -d .libs; then
9329       libltdl_cv_objdir=.libs
9330     else
9331       # MS-DOS does not allow filenames that begin with a dot.
9332       libltdl_cv_objdir=_libs
9333     fi
9334   rmdir .libs 2>/dev/null
9335   fi
9336
9337 fi
9338 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9339 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9340
9341 cat >>confdefs.h <<_ACEOF
9342 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9343 _ACEOF
9344
9345
9346
9347
9348
9349
9350 # Check for command to grab the raw symbol name followed by C symbol from nm.
9351 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9352 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9353 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9354   echo $ECHO_N "(cached) $ECHO_C" >&6
9355 else
9356
9357 # These are sane defaults that work on at least a few old systems.
9358 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9359
9360 # Character class describing NM global symbol codes.
9361 symcode='[BCDEGRST]'
9362
9363 # Regexp to match symbols that can be accessed directly from C.
9364 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9365
9366 # Transform an extracted symbol line into a proper C declaration
9367 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9368
9369 # Transform an extracted symbol line into symbol name and symbol address
9370 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'"
9371
9372 # Define system-specific variables.
9373 case $host_os in
9374 aix*)
9375   symcode='[BCDT]'
9376   ;;
9377 cygwin* | mingw* | pw32*)
9378   symcode='[ABCDGISTW]'
9379   ;;
9380 hpux*) # Its linker distinguishes data from code symbols
9381   if test "$host_cpu" = ia64; then
9382     symcode='[ABCDEGRST]'
9383   fi
9384   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9385   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'"
9386   ;;
9387 linux*)
9388   if test "$host_cpu" = ia64; then
9389     symcode='[ABCDGIRSTW]'
9390     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9391     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'"
9392   fi
9393   ;;
9394 irix* | nonstopux*)
9395   symcode='[BCDEGRST]'
9396   ;;
9397 osf*)
9398   symcode='[BCDEGQRST]'
9399   ;;
9400 solaris*)
9401   symcode='[BDRT]'
9402   ;;
9403 sco3.2v5*)
9404   symcode='[DT]'
9405   ;;
9406 sysv4.2uw2*)
9407   symcode='[DT]'
9408   ;;
9409 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9410   symcode='[ABDT]'
9411   ;;
9412 sysv4)
9413   symcode='[DFNSTU]'
9414   ;;
9415 esac
9416
9417 # Handle CRLF in mingw tool chain
9418 opt_cr=
9419 case $build_os in
9420 mingw*)
9421   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9422   ;;
9423 esac
9424
9425 # If we're using GNU nm, then use its standard symbol codes.
9426 case `$NM -V 2>&1` in
9427 *GNU* | *'with BFD'*)
9428   symcode='[ABCDGIRSTW]' ;;
9429 esac
9430
9431 # Try without a prefix undercore, then with it.
9432 for ac_symprfx in "" "_"; do
9433
9434   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9435   symxfrm="\\1 $ac_symprfx\\2 \\2"
9436
9437   # Write the raw and C identifiers.
9438   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9439
9440   # Check to see that the pipe works correctly.
9441   pipe_works=no
9442
9443   rm -f conftest*
9444   cat > conftest.$ac_ext <<EOF
9445 #ifdef __cplusplus
9446 extern "C" {
9447 #endif
9448 char nm_test_var;
9449 void nm_test_func(){}
9450 #ifdef __cplusplus
9451 }
9452 #endif
9453 int main(){nm_test_var='a';nm_test_func();return(0);}
9454 EOF
9455
9456   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9457   (eval $ac_compile) 2>&5
9458   ac_status=$?
9459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460   (exit $ac_status); }; then
9461     # Now try to grab the symbols.
9462     nlist=conftest.nm
9463     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9464   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9465   ac_status=$?
9466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467   (exit $ac_status); } && test -s "$nlist"; then
9468       # Try sorting and uniquifying the output.
9469       if sort "$nlist" | uniq > "$nlist"T; then
9470         mv -f "$nlist"T "$nlist"
9471       else
9472         rm -f "$nlist"T
9473       fi
9474
9475       # Make sure that we snagged all the symbols we need.
9476       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9477         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9478           cat <<EOF > conftest.$ac_ext
9479 #ifdef __cplusplus
9480 extern "C" {
9481 #endif
9482
9483 EOF
9484           # Now generate the symbol file.
9485           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9486
9487           cat <<EOF >> conftest.$ac_ext
9488 #if defined (__STDC__) && __STDC__
9489 # define lt_ptr_t void *
9490 #else
9491 # define lt_ptr_t char *
9492 # define const
9493 #endif
9494
9495 /* The mapping between symbol names and symbols. */
9496 const struct {
9497   const char *name;
9498   lt_ptr_t address;
9499 }
9500 lt_preloaded_symbols[] =
9501 {
9502 EOF
9503           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9504           cat <<\EOF >> conftest.$ac_ext
9505   {0, (lt_ptr_t) 0}
9506 };
9507
9508 #ifdef __cplusplus
9509 }
9510 #endif
9511 EOF
9512           # Now try linking the two files.
9513           mv conftest.$ac_objext conftstm.$ac_objext
9514           lt_save_LIBS="$LIBS"
9515           lt_save_CFLAGS="$CFLAGS"
9516           LIBS="conftstm.$ac_objext"
9517           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9518           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9519   (eval $ac_link) 2>&5
9520   ac_status=$?
9521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9523             pipe_works=yes
9524           fi
9525           LIBS="$lt_save_LIBS"
9526           CFLAGS="$lt_save_CFLAGS"
9527         else
9528           echo "cannot find nm_test_func in $nlist" >&5
9529         fi
9530       else
9531         echo "cannot find nm_test_var in $nlist" >&5
9532       fi
9533     else
9534       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9535     fi
9536   else
9537     echo "$progname: failed program was:" >&5
9538     cat conftest.$ac_ext >&5
9539   fi
9540   rm -f conftest* conftst*
9541
9542   # Do not use the global_symbol_pipe unless it works.
9543   if test "$pipe_works" = yes; then
9544     break
9545   else
9546     lt_cv_sys_global_symbol_pipe=
9547   fi
9548 done
9549
9550 fi
9551
9552 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9553   lt_cv_sys_global_symbol_to_cdecl=
9554 fi
9555 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9556   { echo "$as_me:$LINENO: result: failed" >&5
9557 echo "${ECHO_T}failed" >&6; }
9558 else
9559   { echo "$as_me:$LINENO: result: ok" >&5
9560 echo "${ECHO_T}ok" >&6; }
9561 fi
9562
9563
9564 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9565 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9566 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9567   echo $ECHO_N "(cached) $ECHO_C" >&6
9568 else
9569   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9570     libltdl_cv_preloaded_symbols=yes
9571   else
9572     libltdl_cv_preloaded_symbols=no
9573   fi
9574
9575 fi
9576 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9577 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9578 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9579
9580 cat >>confdefs.h <<\_ACEOF
9581 #define HAVE_PRELOADED_SYMBOLS 1
9582 _ACEOF
9583
9584 fi
9585
9586 LIBADD_DL=
9587
9588 ac_ext=c
9589 ac_cpp='$CPP $CPPFLAGS'
9590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9593
9594
9595 { echo "$as_me:$LINENO: checking for shl_load" >&5
9596 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9597 if test "${ac_cv_func_shl_load+set}" = set; then
9598   echo $ECHO_N "(cached) $ECHO_C" >&6
9599 else
9600   cat >conftest.$ac_ext <<_ACEOF
9601 /* confdefs.h.  */
9602 _ACEOF
9603 cat confdefs.h >>conftest.$ac_ext
9604 cat >>conftest.$ac_ext <<_ACEOF
9605 /* end confdefs.h.  */
9606 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9607    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9608 #define shl_load innocuous_shl_load
9609
9610 /* System header to define __stub macros and hopefully few prototypes,
9611     which can conflict with char shl_load (); below.
9612     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9613     <limits.h> exists even on freestanding compilers.  */
9614
9615 #ifdef __STDC__
9616 # include <limits.h>
9617 #else
9618 # include <assert.h>
9619 #endif
9620
9621 #undef shl_load
9622
9623 /* Override any GCC internal prototype to avoid an error.
9624    Use char because int might match the return type of a GCC
9625    builtin and then its argument prototype would still apply.  */
9626 #ifdef __cplusplus
9627 extern "C"
9628 #endif
9629 char shl_load ();
9630 /* The GNU C library defines this for functions which it implements
9631     to always fail with ENOSYS.  Some functions are actually named
9632     something starting with __ and the normal name is an alias.  */
9633 #if defined __stub_shl_load || defined __stub___shl_load
9634 choke me
9635 #endif
9636
9637 int
9638 main ()
9639 {
9640 return shl_load ();
9641   ;
9642   return 0;
9643 }
9644 _ACEOF
9645 rm -f conftest.$ac_objext conftest$ac_exeext
9646 if { (ac_try="$ac_link"
9647 case "(($ac_try" in
9648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9649   *) ac_try_echo=$ac_try;;
9650 esac
9651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9652   (eval "$ac_link") 2>conftest.er1
9653   ac_status=$?
9654   grep -v '^ *+' conftest.er1 >conftest.err
9655   rm -f conftest.er1
9656   cat conftest.err >&5
9657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658   (exit $ac_status); } &&
9659          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9660   { (case "(($ac_try" in
9661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662   *) ac_try_echo=$ac_try;;
9663 esac
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665   (eval "$ac_try") 2>&5
9666   ac_status=$?
9667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668   (exit $ac_status); }; } &&
9669          { ac_try='test -s conftest$ac_exeext'
9670   { (case "(($ac_try" in
9671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9672   *) ac_try_echo=$ac_try;;
9673 esac
9674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9675   (eval "$ac_try") 2>&5
9676   ac_status=$?
9677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678   (exit $ac_status); }; }; then
9679   ac_cv_func_shl_load=yes
9680 else
9681   echo "$as_me: failed program was:" >&5
9682 sed 's/^/| /' conftest.$ac_ext >&5
9683
9684         ac_cv_func_shl_load=no
9685 fi
9686
9687 rm -f core conftest.err conftest.$ac_objext \
9688       conftest$ac_exeext conftest.$ac_ext
9689 fi
9690 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9691 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9692 if test $ac_cv_func_shl_load = yes; then
9693
9694 cat >>confdefs.h <<\_ACEOF
9695 #define HAVE_SHL_LOAD 1
9696 _ACEOF
9697
9698 else
9699   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9700 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9701 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9702   echo $ECHO_N "(cached) $ECHO_C" >&6
9703 else
9704   ac_check_lib_save_LIBS=$LIBS
9705 LIBS="-ldld  $LIBS"
9706 cat >conftest.$ac_ext <<_ACEOF
9707 /* confdefs.h.  */
9708 _ACEOF
9709 cat confdefs.h >>conftest.$ac_ext
9710 cat >>conftest.$ac_ext <<_ACEOF
9711 /* end confdefs.h.  */
9712
9713 /* Override any GCC internal prototype to avoid an error.
9714    Use char because int might match the return type of a GCC
9715    builtin and then its argument prototype would still apply.  */
9716 #ifdef __cplusplus
9717 extern "C"
9718 #endif
9719 char shl_load ();
9720 int
9721 main ()
9722 {
9723 return shl_load ();
9724   ;
9725   return 0;
9726 }
9727 _ACEOF
9728 rm -f conftest.$ac_objext conftest$ac_exeext
9729 if { (ac_try="$ac_link"
9730 case "(($ac_try" in
9731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9732   *) ac_try_echo=$ac_try;;
9733 esac
9734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9735   (eval "$ac_link") 2>conftest.er1
9736   ac_status=$?
9737   grep -v '^ *+' conftest.er1 >conftest.err
9738   rm -f conftest.er1
9739   cat conftest.err >&5
9740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741   (exit $ac_status); } &&
9742          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9743   { (case "(($ac_try" in
9744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9745   *) ac_try_echo=$ac_try;;
9746 esac
9747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9748   (eval "$ac_try") 2>&5
9749   ac_status=$?
9750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751   (exit $ac_status); }; } &&
9752          { ac_try='test -s conftest$ac_exeext'
9753   { (case "(($ac_try" in
9754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9755   *) ac_try_echo=$ac_try;;
9756 esac
9757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9758   (eval "$ac_try") 2>&5
9759   ac_status=$?
9760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761   (exit $ac_status); }; }; then
9762   ac_cv_lib_dld_shl_load=yes
9763 else
9764   echo "$as_me: failed program was:" >&5
9765 sed 's/^/| /' conftest.$ac_ext >&5
9766
9767         ac_cv_lib_dld_shl_load=no
9768 fi
9769
9770 rm -f core conftest.err conftest.$ac_objext \
9771       conftest$ac_exeext conftest.$ac_ext
9772 LIBS=$ac_check_lib_save_LIBS
9773 fi
9774 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9775 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9776 if test $ac_cv_lib_dld_shl_load = yes; then
9777
9778 cat >>confdefs.h <<\_ACEOF
9779 #define HAVE_SHL_LOAD 1
9780 _ACEOF
9781
9782         LIBADD_DL="$LIBADD_DL -ldld"
9783 else
9784   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9785 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9786 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9787   echo $ECHO_N "(cached) $ECHO_C" >&6
9788 else
9789   ac_check_lib_save_LIBS=$LIBS
9790 LIBS="-ldl  $LIBS"
9791 cat >conftest.$ac_ext <<_ACEOF
9792 /* confdefs.h.  */
9793 _ACEOF
9794 cat confdefs.h >>conftest.$ac_ext
9795 cat >>conftest.$ac_ext <<_ACEOF
9796 /* end confdefs.h.  */
9797
9798 /* Override any GCC internal prototype to avoid an error.
9799    Use char because int might match the return type of a GCC
9800    builtin and then its argument prototype would still apply.  */
9801 #ifdef __cplusplus
9802 extern "C"
9803 #endif
9804 char dlopen ();
9805 int
9806 main ()
9807 {
9808 return dlopen ();
9809   ;
9810   return 0;
9811 }
9812 _ACEOF
9813 rm -f conftest.$ac_objext conftest$ac_exeext
9814 if { (ac_try="$ac_link"
9815 case "(($ac_try" in
9816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9817   *) ac_try_echo=$ac_try;;
9818 esac
9819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9820   (eval "$ac_link") 2>conftest.er1
9821   ac_status=$?
9822   grep -v '^ *+' conftest.er1 >conftest.err
9823   rm -f conftest.er1
9824   cat conftest.err >&5
9825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826   (exit $ac_status); } &&
9827          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9828   { (case "(($ac_try" in
9829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830   *) ac_try_echo=$ac_try;;
9831 esac
9832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833   (eval "$ac_try") 2>&5
9834   ac_status=$?
9835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836   (exit $ac_status); }; } &&
9837          { ac_try='test -s conftest$ac_exeext'
9838   { (case "(($ac_try" in
9839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9840   *) ac_try_echo=$ac_try;;
9841 esac
9842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9843   (eval "$ac_try") 2>&5
9844   ac_status=$?
9845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846   (exit $ac_status); }; }; then
9847   ac_cv_lib_dl_dlopen=yes
9848 else
9849   echo "$as_me: failed program was:" >&5
9850 sed 's/^/| /' conftest.$ac_ext >&5
9851
9852         ac_cv_lib_dl_dlopen=no
9853 fi
9854
9855 rm -f core conftest.err conftest.$ac_objext \
9856       conftest$ac_exeext conftest.$ac_ext
9857 LIBS=$ac_check_lib_save_LIBS
9858 fi
9859 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9860 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9861 if test $ac_cv_lib_dl_dlopen = yes; then
9862
9863 cat >>confdefs.h <<\_ACEOF
9864 #define HAVE_LIBDL 1
9865 _ACEOF
9866
9867                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9868 else
9869   cat >conftest.$ac_ext <<_ACEOF
9870 /* confdefs.h.  */
9871 _ACEOF
9872 cat confdefs.h >>conftest.$ac_ext
9873 cat >>conftest.$ac_ext <<_ACEOF
9874 /* end confdefs.h.  */
9875 #if HAVE_DLFCN_H
9876 #  include <dlfcn.h>
9877 #endif
9878
9879 int
9880 main ()
9881 {
9882 dlopen(0, 0);
9883   ;
9884   return 0;
9885 }
9886 _ACEOF
9887 rm -f conftest.$ac_objext conftest$ac_exeext
9888 if { (ac_try="$ac_link"
9889 case "(($ac_try" in
9890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891   *) ac_try_echo=$ac_try;;
9892 esac
9893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894   (eval "$ac_link") 2>conftest.er1
9895   ac_status=$?
9896   grep -v '^ *+' conftest.er1 >conftest.err
9897   rm -f conftest.er1
9898   cat conftest.err >&5
9899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900   (exit $ac_status); } &&
9901          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9902   { (case "(($ac_try" in
9903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9904   *) ac_try_echo=$ac_try;;
9905 esac
9906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9907   (eval "$ac_try") 2>&5
9908   ac_status=$?
9909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910   (exit $ac_status); }; } &&
9911          { ac_try='test -s conftest$ac_exeext'
9912   { (case "(($ac_try" in
9913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9914   *) ac_try_echo=$ac_try;;
9915 esac
9916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9917   (eval "$ac_try") 2>&5
9918   ac_status=$?
9919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920   (exit $ac_status); }; }; then
9921
9922 cat >>confdefs.h <<\_ACEOF
9923 #define HAVE_LIBDL 1
9924 _ACEOF
9925  libltdl_cv_func_dlopen="yes"
9926 else
9927   echo "$as_me: failed program was:" >&5
9928 sed 's/^/| /' conftest.$ac_ext >&5
9929
9930         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9931 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9932 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9933   echo $ECHO_N "(cached) $ECHO_C" >&6
9934 else
9935   ac_check_lib_save_LIBS=$LIBS
9936 LIBS="-lsvld  $LIBS"
9937 cat >conftest.$ac_ext <<_ACEOF
9938 /* confdefs.h.  */
9939 _ACEOF
9940 cat confdefs.h >>conftest.$ac_ext
9941 cat >>conftest.$ac_ext <<_ACEOF
9942 /* end confdefs.h.  */
9943
9944 /* Override any GCC internal prototype to avoid an error.
9945    Use char because int might match the return type of a GCC
9946    builtin and then its argument prototype would still apply.  */
9947 #ifdef __cplusplus
9948 extern "C"
9949 #endif
9950 char dlopen ();
9951 int
9952 main ()
9953 {
9954 return dlopen ();
9955   ;
9956   return 0;
9957 }
9958 _ACEOF
9959 rm -f conftest.$ac_objext conftest$ac_exeext
9960 if { (ac_try="$ac_link"
9961 case "(($ac_try" in
9962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9963   *) ac_try_echo=$ac_try;;
9964 esac
9965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9966   (eval "$ac_link") 2>conftest.er1
9967   ac_status=$?
9968   grep -v '^ *+' conftest.er1 >conftest.err
9969   rm -f conftest.er1
9970   cat conftest.err >&5
9971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972   (exit $ac_status); } &&
9973          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9974   { (case "(($ac_try" in
9975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9976   *) ac_try_echo=$ac_try;;
9977 esac
9978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9979   (eval "$ac_try") 2>&5
9980   ac_status=$?
9981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982   (exit $ac_status); }; } &&
9983          { ac_try='test -s conftest$ac_exeext'
9984   { (case "(($ac_try" in
9985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9986   *) ac_try_echo=$ac_try;;
9987 esac
9988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9989   (eval "$ac_try") 2>&5
9990   ac_status=$?
9991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992   (exit $ac_status); }; }; then
9993   ac_cv_lib_svld_dlopen=yes
9994 else
9995   echo "$as_me: failed program was:" >&5
9996 sed 's/^/| /' conftest.$ac_ext >&5
9997
9998         ac_cv_lib_svld_dlopen=no
9999 fi
10000
10001 rm -f core conftest.err conftest.$ac_objext \
10002       conftest$ac_exeext conftest.$ac_ext
10003 LIBS=$ac_check_lib_save_LIBS
10004 fi
10005 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10006 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10007 if test $ac_cv_lib_svld_dlopen = yes; then
10008
10009 cat >>confdefs.h <<\_ACEOF
10010 #define HAVE_LIBDL 1
10011 _ACEOF
10012
10013                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10014 else
10015   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10016 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10017 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10018   echo $ECHO_N "(cached) $ECHO_C" >&6
10019 else
10020   ac_check_lib_save_LIBS=$LIBS
10021 LIBS="-ldld  $LIBS"
10022 cat >conftest.$ac_ext <<_ACEOF
10023 /* confdefs.h.  */
10024 _ACEOF
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h.  */
10028
10029 /* Override any GCC internal prototype to avoid an error.
10030    Use char because int might match the return type of a GCC
10031    builtin and then its argument prototype would still apply.  */
10032 #ifdef __cplusplus
10033 extern "C"
10034 #endif
10035 char dld_link ();
10036 int
10037 main ()
10038 {
10039 return dld_link ();
10040   ;
10041   return 0;
10042 }
10043 _ACEOF
10044 rm -f conftest.$ac_objext conftest$ac_exeext
10045 if { (ac_try="$ac_link"
10046 case "(($ac_try" in
10047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10048   *) ac_try_echo=$ac_try;;
10049 esac
10050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10051   (eval "$ac_link") 2>conftest.er1
10052   ac_status=$?
10053   grep -v '^ *+' conftest.er1 >conftest.err
10054   rm -f conftest.er1
10055   cat conftest.err >&5
10056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057   (exit $ac_status); } &&
10058          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10059   { (case "(($ac_try" in
10060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061   *) ac_try_echo=$ac_try;;
10062 esac
10063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10064   (eval "$ac_try") 2>&5
10065   ac_status=$?
10066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067   (exit $ac_status); }; } &&
10068          { ac_try='test -s conftest$ac_exeext'
10069   { (case "(($ac_try" in
10070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10071   *) ac_try_echo=$ac_try;;
10072 esac
10073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10074   (eval "$ac_try") 2>&5
10075   ac_status=$?
10076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077   (exit $ac_status); }; }; then
10078   ac_cv_lib_dld_dld_link=yes
10079 else
10080   echo "$as_me: failed program was:" >&5
10081 sed 's/^/| /' conftest.$ac_ext >&5
10082
10083         ac_cv_lib_dld_dld_link=no
10084 fi
10085
10086 rm -f core conftest.err conftest.$ac_objext \
10087       conftest$ac_exeext conftest.$ac_ext
10088 LIBS=$ac_check_lib_save_LIBS
10089 fi
10090 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10091 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10092 if test $ac_cv_lib_dld_dld_link = yes; then
10093
10094 cat >>confdefs.h <<\_ACEOF
10095 #define HAVE_DLD 1
10096 _ACEOF
10097
10098                 LIBADD_DL="$LIBADD_DL -ldld"
10099 else
10100   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10101 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10102 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10103   echo $ECHO_N "(cached) $ECHO_C" >&6
10104 else
10105   cat >conftest.$ac_ext <<_ACEOF
10106 /* confdefs.h.  */
10107 _ACEOF
10108 cat confdefs.h >>conftest.$ac_ext
10109 cat >>conftest.$ac_ext <<_ACEOF
10110 /* end confdefs.h.  */
10111 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10112    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10113 #define _dyld_func_lookup innocuous__dyld_func_lookup
10114
10115 /* System header to define __stub macros and hopefully few prototypes,
10116     which can conflict with char _dyld_func_lookup (); below.
10117     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10118     <limits.h> exists even on freestanding compilers.  */
10119
10120 #ifdef __STDC__
10121 # include <limits.h>
10122 #else
10123 # include <assert.h>
10124 #endif
10125
10126 #undef _dyld_func_lookup
10127
10128 /* Override any GCC internal prototype to avoid an error.
10129    Use char because int might match the return type of a GCC
10130    builtin and then its argument prototype would still apply.  */
10131 #ifdef __cplusplus
10132 extern "C"
10133 #endif
10134 char _dyld_func_lookup ();
10135 /* The GNU C library defines this for functions which it implements
10136     to always fail with ENOSYS.  Some functions are actually named
10137     something starting with __ and the normal name is an alias.  */
10138 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10139 choke me
10140 #endif
10141
10142 int
10143 main ()
10144 {
10145 return _dyld_func_lookup ();
10146   ;
10147   return 0;
10148 }
10149 _ACEOF
10150 rm -f conftest.$ac_objext conftest$ac_exeext
10151 if { (ac_try="$ac_link"
10152 case "(($ac_try" in
10153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10154   *) ac_try_echo=$ac_try;;
10155 esac
10156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10157   (eval "$ac_link") 2>conftest.er1
10158   ac_status=$?
10159   grep -v '^ *+' conftest.er1 >conftest.err
10160   rm -f conftest.er1
10161   cat conftest.err >&5
10162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163   (exit $ac_status); } &&
10164          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10165   { (case "(($ac_try" in
10166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10167   *) ac_try_echo=$ac_try;;
10168 esac
10169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10170   (eval "$ac_try") 2>&5
10171   ac_status=$?
10172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173   (exit $ac_status); }; } &&
10174          { ac_try='test -s conftest$ac_exeext'
10175   { (case "(($ac_try" in
10176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10177   *) ac_try_echo=$ac_try;;
10178 esac
10179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10180   (eval "$ac_try") 2>&5
10181   ac_status=$?
10182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183   (exit $ac_status); }; }; then
10184   ac_cv_func__dyld_func_lookup=yes
10185 else
10186   echo "$as_me: failed program was:" >&5
10187 sed 's/^/| /' conftest.$ac_ext >&5
10188
10189         ac_cv_func__dyld_func_lookup=no
10190 fi
10191
10192 rm -f core conftest.err conftest.$ac_objext \
10193       conftest$ac_exeext conftest.$ac_ext
10194 fi
10195 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10196 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10197 if test $ac_cv_func__dyld_func_lookup = yes; then
10198
10199 cat >>confdefs.h <<\_ACEOF
10200 #define HAVE_DYLD 1
10201 _ACEOF
10202
10203 fi
10204
10205
10206 fi
10207
10208
10209 fi
10210
10211
10212 fi
10213
10214 rm -f core conftest.err conftest.$ac_objext \
10215       conftest$ac_exeext conftest.$ac_ext
10216
10217 fi
10218
10219
10220 fi
10221
10222
10223 fi
10224
10225
10226 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10227 then
10228   lt_save_LIBS="$LIBS"
10229   LIBS="$LIBS $LIBADD_DL"
10230
10231 for ac_func in dlerror
10232 do
10233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10234 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10236 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10237   echo $ECHO_N "(cached) $ECHO_C" >&6
10238 else
10239   cat >conftest.$ac_ext <<_ACEOF
10240 /* confdefs.h.  */
10241 _ACEOF
10242 cat confdefs.h >>conftest.$ac_ext
10243 cat >>conftest.$ac_ext <<_ACEOF
10244 /* end confdefs.h.  */
10245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10246    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10247 #define $ac_func innocuous_$ac_func
10248
10249 /* System header to define __stub macros and hopefully few prototypes,
10250     which can conflict with char $ac_func (); below.
10251     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10252     <limits.h> exists even on freestanding compilers.  */
10253
10254 #ifdef __STDC__
10255 # include <limits.h>
10256 #else
10257 # include <assert.h>
10258 #endif
10259
10260 #undef $ac_func
10261
10262 /* Override any GCC internal prototype to avoid an error.
10263    Use char because int might match the return type of a GCC
10264    builtin and then its argument prototype would still apply.  */
10265 #ifdef __cplusplus
10266 extern "C"
10267 #endif
10268 char $ac_func ();
10269 /* The GNU C library defines this for functions which it implements
10270     to always fail with ENOSYS.  Some functions are actually named
10271     something starting with __ and the normal name is an alias.  */
10272 #if defined __stub_$ac_func || defined __stub___$ac_func
10273 choke me
10274 #endif
10275
10276 int
10277 main ()
10278 {
10279 return $ac_func ();
10280   ;
10281   return 0;
10282 }
10283 _ACEOF
10284 rm -f conftest.$ac_objext conftest$ac_exeext
10285 if { (ac_try="$ac_link"
10286 case "(($ac_try" in
10287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10288   *) ac_try_echo=$ac_try;;
10289 esac
10290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10291   (eval "$ac_link") 2>conftest.er1
10292   ac_status=$?
10293   grep -v '^ *+' conftest.er1 >conftest.err
10294   rm -f conftest.er1
10295   cat conftest.err >&5
10296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297   (exit $ac_status); } &&
10298          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10299   { (case "(($ac_try" in
10300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10301   *) ac_try_echo=$ac_try;;
10302 esac
10303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10304   (eval "$ac_try") 2>&5
10305   ac_status=$?
10306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307   (exit $ac_status); }; } &&
10308          { ac_try='test -s conftest$ac_exeext'
10309   { (case "(($ac_try" in
10310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10311   *) ac_try_echo=$ac_try;;
10312 esac
10313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10314   (eval "$ac_try") 2>&5
10315   ac_status=$?
10316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317   (exit $ac_status); }; }; then
10318   eval "$as_ac_var=yes"
10319 else
10320   echo "$as_me: failed program was:" >&5
10321 sed 's/^/| /' conftest.$ac_ext >&5
10322
10323         eval "$as_ac_var=no"
10324 fi
10325
10326 rm -f core conftest.err conftest.$ac_objext \
10327       conftest$ac_exeext conftest.$ac_ext
10328 fi
10329 ac_res=`eval echo '${'$as_ac_var'}'`
10330                { echo "$as_me:$LINENO: result: $ac_res" >&5
10331 echo "${ECHO_T}$ac_res" >&6; }
10332 if test `eval echo '${'$as_ac_var'}'` = yes; then
10333   cat >>confdefs.h <<_ACEOF
10334 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10335 _ACEOF
10336
10337 fi
10338 done
10339
10340   LIBS="$lt_save_LIBS"
10341 fi
10342 ac_ext=c
10343 ac_cpp='$CPP $CPPFLAGS'
10344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10347
10348
10349
10350 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10351 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10352 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10353   echo $ECHO_N "(cached) $ECHO_C" >&6
10354 else
10355   ac_cv_sys_symbol_underscore=no
10356   cat > conftest.$ac_ext <<EOF
10357 void nm_test_func(){}
10358 int main(){nm_test_func;return 0;}
10359 EOF
10360   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10361   (eval $ac_compile) 2>&5
10362   ac_status=$?
10363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364   (exit $ac_status); }; then
10365     # Now try to grab the symbols.
10366     ac_nlist=conftest.nm
10367     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10368   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10369   ac_status=$?
10370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371   (exit $ac_status); } && test -s "$ac_nlist"; then
10372       # See whether the symbols have a leading underscore.
10373       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10374         ac_cv_sys_symbol_underscore=yes
10375       else
10376         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10377           :
10378         else
10379           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10380         fi
10381       fi
10382     else
10383       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10384     fi
10385   else
10386     echo "configure: failed program was:" >&5
10387     cat conftest.c >&5
10388   fi
10389   rm -rf conftest*
10390
10391 fi
10392 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10393 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10394
10395
10396 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10397   if test x"$libltdl_cv_func_dlopen" = xyes ||
10398      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10399         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10400 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10401 if test "${libltdl_cv_need_uscore+set}" = set; then
10402   echo $ECHO_N "(cached) $ECHO_C" >&6
10403 else
10404   libltdl_cv_need_uscore=unknown
10405           save_LIBS="$LIBS"
10406           LIBS="$LIBS $LIBADD_DL"
10407           if test "$cross_compiling" = yes; then :
10408   libltdl_cv_need_uscore=cross
10409 else
10410   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10411   lt_status=$lt_dlunknown
10412   cat > conftest.$ac_ext <<EOF
10413 #line 10423 "configure"
10414 #include "confdefs.h"
10415
10416 #if HAVE_DLFCN_H
10417 #include <dlfcn.h>
10418 #endif
10419
10420 #include <stdio.h>
10421
10422 #ifdef RTLD_GLOBAL
10423 #  define LT_DLGLOBAL           RTLD_GLOBAL
10424 #else
10425 #  ifdef DL_GLOBAL
10426 #    define LT_DLGLOBAL         DL_GLOBAL
10427 #  else
10428 #    define LT_DLGLOBAL         0
10429 #  endif
10430 #endif
10431
10432 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10433    find out it does not work in some platform. */
10434 #ifndef LT_DLLAZY_OR_NOW
10435 #  ifdef RTLD_LAZY
10436 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10437 #  else
10438 #    ifdef DL_LAZY
10439 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10440 #    else
10441 #      ifdef RTLD_NOW
10442 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10443 #      else
10444 #        ifdef DL_NOW
10445 #          define LT_DLLAZY_OR_NOW      DL_NOW
10446 #        else
10447 #          define LT_DLLAZY_OR_NOW      0
10448 #        endif
10449 #      endif
10450 #    endif
10451 #  endif
10452 #endif
10453
10454 #ifdef __cplusplus
10455 extern "C" void exit (int);
10456 #endif
10457
10458 void fnord() { int i=42;}
10459 int main ()
10460 {
10461   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10462   int status = $lt_dlunknown;
10463
10464   if (self)
10465     {
10466       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10467       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10468       /* dlclose (self); */
10469     }
10470   else
10471     puts (dlerror ());
10472
10473     exit (status);
10474 }
10475 EOF
10476   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10477   (eval $ac_link) 2>&5
10478   ac_status=$?
10479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10481     (./conftest; exit; ) >&5 2>/dev/null
10482     lt_status=$?
10483     case x$lt_status in
10484       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10485       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10486       x$lt_dlunknown|x*)  ;;
10487     esac
10488   else :
10489     # compilation failed
10490
10491   fi
10492 fi
10493 rm -fr conftest*
10494
10495           LIBS="$save_LIBS"
10496
10497 fi
10498 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10499 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10500   fi
10501 fi
10502
10503 if test x"$libltdl_cv_need_uscore" = xyes; then
10504
10505 cat >>confdefs.h <<\_ACEOF
10506 #define NEED_USCORE 1
10507 _ACEOF
10508
10509 fi
10510
10511
10512 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10513 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10514 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10515   echo $ECHO_N "(cached) $ECHO_C" >&6
10516 else
10517   # PORTME does your system automatically load deplibs for dlopen?
10518   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10519   # For now, we just catch OSes we know something about -- in the
10520   # future, we'll try test this programmatically.
10521   libltdl_cv_sys_dlopen_deplibs=unknown
10522   case "$host_os" in
10523   aix3*|aix4.1.*|aix4.2.*)
10524     # Unknown whether this is true for these versions of AIX, but
10525     # we want this `case' here to explicitly catch those versions.
10526     libltdl_cv_sys_dlopen_deplibs=unknown
10527     ;;
10528   aix[45]*)
10529     libltdl_cv_sys_dlopen_deplibs=yes
10530     ;;
10531   darwin*)
10532     # Assuming the user has installed a libdl from somewhere, this is true
10533     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10534     libltdl_cv_sys_dlopen_deplibs=yes
10535     ;;
10536   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10537     # GNU and its variants, using gnu ld.so (Glibc)
10538     libltdl_cv_sys_dlopen_deplibs=yes
10539     ;;
10540   hpux10*|hpux11*)
10541     libltdl_cv_sys_dlopen_deplibs=yes
10542     ;;
10543   interix*)
10544     libltdl_cv_sys_dlopen_deplibs=yes
10545     ;;
10546   irix[12345]*|irix6.[01]*)
10547     # Catch all versions of IRIX before 6.2, and indicate that we don't
10548     # know how it worked for any of those versions.
10549     libltdl_cv_sys_dlopen_deplibs=unknown
10550     ;;
10551   irix*)
10552     # The case above catches anything before 6.2, and it's known that
10553     # at 6.2 and later dlopen does load deplibs.
10554     libltdl_cv_sys_dlopen_deplibs=yes
10555     ;;
10556   netbsd*)
10557     libltdl_cv_sys_dlopen_deplibs=yes
10558     ;;
10559   openbsd*)
10560     libltdl_cv_sys_dlopen_deplibs=yes
10561     ;;
10562   osf[1234]*)
10563     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10564     # it did *not* use an RPATH in a shared library to find objects the
10565     # library depends on, so we explicitly say `no'.
10566     libltdl_cv_sys_dlopen_deplibs=no
10567     ;;
10568   osf5.0|osf5.0a|osf5.1)
10569     # dlopen *does* load deplibs and with the right loader patch applied
10570     # it even uses RPATH in a shared library to search for shared objects
10571     # that the library depends on, but there's no easy way to know if that
10572     # patch is installed.  Since this is the case, all we can really
10573     # say is unknown -- it depends on the patch being installed.  If
10574     # it is, this changes to `yes'.  Without it, it would be `no'.
10575     libltdl_cv_sys_dlopen_deplibs=unknown
10576     ;;
10577   osf*)
10578     # the two cases above should catch all versions of osf <= 5.1.  Read
10579     # the comments above for what we know about them.
10580     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10581     # is used to find them so we can finally say `yes'.
10582     libltdl_cv_sys_dlopen_deplibs=yes
10583     ;;
10584   solaris*)
10585     libltdl_cv_sys_dlopen_deplibs=yes
10586     ;;
10587   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10588     libltdl_cv_sys_dlopen_deplibs=yes
10589     ;;
10590   esac
10591
10592 fi
10593 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10594 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10595 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10596
10597 cat >>confdefs.h <<\_ACEOF
10598 #define LTDL_DLOPEN_DEPLIBS 1
10599 _ACEOF
10600
10601 fi
10602
10603
10604 for ac_header in argz.h
10605 do
10606 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10608   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10611   echo $ECHO_N "(cached) $ECHO_C" >&6
10612 fi
10613 ac_res=`eval echo '${'$as_ac_Header'}'`
10614                { echo "$as_me:$LINENO: result: $ac_res" >&5
10615 echo "${ECHO_T}$ac_res" >&6; }
10616 else
10617   # Is the header compilable?
10618 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10619 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10620 cat >conftest.$ac_ext <<_ACEOF
10621 /* confdefs.h.  */
10622 _ACEOF
10623 cat confdefs.h >>conftest.$ac_ext
10624 cat >>conftest.$ac_ext <<_ACEOF
10625 /* end confdefs.h.  */
10626 $ac_includes_default
10627 #include <$ac_header>
10628 _ACEOF
10629 rm -f conftest.$ac_objext
10630 if { (ac_try="$ac_compile"
10631 case "(($ac_try" in
10632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10633   *) ac_try_echo=$ac_try;;
10634 esac
10635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10636   (eval "$ac_compile") 2>conftest.er1
10637   ac_status=$?
10638   grep -v '^ *+' conftest.er1 >conftest.err
10639   rm -f conftest.er1
10640   cat conftest.err >&5
10641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642   (exit $ac_status); } &&
10643          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10644   { (case "(($ac_try" in
10645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10646   *) ac_try_echo=$ac_try;;
10647 esac
10648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10649   (eval "$ac_try") 2>&5
10650   ac_status=$?
10651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652   (exit $ac_status); }; } &&
10653          { ac_try='test -s conftest.$ac_objext'
10654   { (case "(($ac_try" in
10655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10656   *) ac_try_echo=$ac_try;;
10657 esac
10658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10659   (eval "$ac_try") 2>&5
10660   ac_status=$?
10661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662   (exit $ac_status); }; }; then
10663   ac_header_compiler=yes
10664 else
10665   echo "$as_me: failed program was:" >&5
10666 sed 's/^/| /' conftest.$ac_ext >&5
10667
10668         ac_header_compiler=no
10669 fi
10670
10671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10672 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10673 echo "${ECHO_T}$ac_header_compiler" >&6; }
10674
10675 # Is the header present?
10676 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10677 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10678 cat >conftest.$ac_ext <<_ACEOF
10679 /* confdefs.h.  */
10680 _ACEOF
10681 cat confdefs.h >>conftest.$ac_ext
10682 cat >>conftest.$ac_ext <<_ACEOF
10683 /* end confdefs.h.  */
10684 #include <$ac_header>
10685 _ACEOF
10686 if { (ac_try="$ac_cpp conftest.$ac_ext"
10687 case "(($ac_try" in
10688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10689   *) ac_try_echo=$ac_try;;
10690 esac
10691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10692   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10693   ac_status=$?
10694   grep -v '^ *+' conftest.er1 >conftest.err
10695   rm -f conftest.er1
10696   cat conftest.err >&5
10697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698   (exit $ac_status); } >/dev/null; then
10699   if test -s conftest.err; then
10700     ac_cpp_err=$ac_c_preproc_warn_flag
10701     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10702   else
10703     ac_cpp_err=
10704   fi
10705 else
10706   ac_cpp_err=yes
10707 fi
10708 if test -z "$ac_cpp_err"; then
10709   ac_header_preproc=yes
10710 else
10711   echo "$as_me: failed program was:" >&5
10712 sed 's/^/| /' conftest.$ac_ext >&5
10713
10714   ac_header_preproc=no
10715 fi
10716
10717 rm -f conftest.err conftest.$ac_ext
10718 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10719 echo "${ECHO_T}$ac_header_preproc" >&6; }
10720
10721 # So?  What about this header?
10722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10723   yes:no: )
10724     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10725 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10726     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10727 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10728     ac_header_preproc=yes
10729     ;;
10730   no:yes:* )
10731     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10732 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10733     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10734 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10735     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10736 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10737     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10738 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10739     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10740 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10741     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10742 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10743     ( cat <<\_ASBOX
10744 ## ------------------------------ ##
10745 ## Report this to bugs@yourdomain ##
10746 ## ------------------------------ ##
10747 _ASBOX
10748      ) | sed "s/^/$as_me: WARNING:     /" >&2
10749     ;;
10750 esac
10751 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10754   echo $ECHO_N "(cached) $ECHO_C" >&6
10755 else
10756   eval "$as_ac_Header=\$ac_header_preproc"
10757 fi
10758 ac_res=`eval echo '${'$as_ac_Header'}'`
10759                { echo "$as_me:$LINENO: result: $ac_res" >&5
10760 echo "${ECHO_T}$ac_res" >&6; }
10761
10762 fi
10763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10764   cat >>confdefs.h <<_ACEOF
10765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10766 _ACEOF
10767
10768 fi
10769
10770 done
10771
10772
10773 { echo "$as_me:$LINENO: checking for error_t" >&5
10774 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10775 if test "${ac_cv_type_error_t+set}" = set; then
10776   echo $ECHO_N "(cached) $ECHO_C" >&6
10777 else
10778   cat >conftest.$ac_ext <<_ACEOF
10779 /* confdefs.h.  */
10780 _ACEOF
10781 cat confdefs.h >>conftest.$ac_ext
10782 cat >>conftest.$ac_ext <<_ACEOF
10783 /* end confdefs.h.  */
10784 #if HAVE_ARGZ_H
10785 #  include <argz.h>
10786 #endif
10787
10788 typedef error_t ac__type_new_;
10789 int
10790 main ()
10791 {
10792 if ((ac__type_new_ *) 0)
10793   return 0;
10794 if (sizeof (ac__type_new_))
10795   return 0;
10796   ;
10797   return 0;
10798 }
10799 _ACEOF
10800 rm -f conftest.$ac_objext
10801 if { (ac_try="$ac_compile"
10802 case "(($ac_try" in
10803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10804   *) ac_try_echo=$ac_try;;
10805 esac
10806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10807   (eval "$ac_compile") 2>conftest.er1
10808   ac_status=$?
10809   grep -v '^ *+' conftest.er1 >conftest.err
10810   rm -f conftest.er1
10811   cat conftest.err >&5
10812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813   (exit $ac_status); } &&
10814          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10815   { (case "(($ac_try" in
10816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10817   *) ac_try_echo=$ac_try;;
10818 esac
10819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10820   (eval "$ac_try") 2>&5
10821   ac_status=$?
10822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823   (exit $ac_status); }; } &&
10824          { ac_try='test -s conftest.$ac_objext'
10825   { (case "(($ac_try" in
10826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10827   *) ac_try_echo=$ac_try;;
10828 esac
10829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10830   (eval "$ac_try") 2>&5
10831   ac_status=$?
10832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833   (exit $ac_status); }; }; then
10834   ac_cv_type_error_t=yes
10835 else
10836   echo "$as_me: failed program was:" >&5
10837 sed 's/^/| /' conftest.$ac_ext >&5
10838
10839         ac_cv_type_error_t=no
10840 fi
10841
10842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10843 fi
10844 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10845 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10846 if test $ac_cv_type_error_t = yes; then
10847
10848 cat >>confdefs.h <<_ACEOF
10849 #define HAVE_ERROR_T 1
10850 _ACEOF
10851
10852
10853 else
10854
10855 cat >>confdefs.h <<\_ACEOF
10856 #define error_t int
10857 _ACEOF
10858
10859 fi
10860
10861
10862
10863
10864
10865
10866
10867 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10868 do
10869 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10870 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10872 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10873   echo $ECHO_N "(cached) $ECHO_C" >&6
10874 else
10875   cat >conftest.$ac_ext <<_ACEOF
10876 /* confdefs.h.  */
10877 _ACEOF
10878 cat confdefs.h >>conftest.$ac_ext
10879 cat >>conftest.$ac_ext <<_ACEOF
10880 /* end confdefs.h.  */
10881 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10882    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10883 #define $ac_func innocuous_$ac_func
10884
10885 /* System header to define __stub macros and hopefully few prototypes,
10886     which can conflict with char $ac_func (); below.
10887     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10888     <limits.h> exists even on freestanding compilers.  */
10889
10890 #ifdef __STDC__
10891 # include <limits.h>
10892 #else
10893 # include <assert.h>
10894 #endif
10895
10896 #undef $ac_func
10897
10898 /* Override any GCC internal prototype to avoid an error.
10899    Use char because int might match the return type of a GCC
10900    builtin and then its argument prototype would still apply.  */
10901 #ifdef __cplusplus
10902 extern "C"
10903 #endif
10904 char $ac_func ();
10905 /* The GNU C library defines this for functions which it implements
10906     to always fail with ENOSYS.  Some functions are actually named
10907     something starting with __ and the normal name is an alias.  */
10908 #if defined __stub_$ac_func || defined __stub___$ac_func
10909 choke me
10910 #endif
10911
10912 int
10913 main ()
10914 {
10915 return $ac_func ();
10916   ;
10917   return 0;
10918 }
10919 _ACEOF
10920 rm -f conftest.$ac_objext conftest$ac_exeext
10921 if { (ac_try="$ac_link"
10922 case "(($ac_try" in
10923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10924   *) ac_try_echo=$ac_try;;
10925 esac
10926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10927   (eval "$ac_link") 2>conftest.er1
10928   ac_status=$?
10929   grep -v '^ *+' conftest.er1 >conftest.err
10930   rm -f conftest.er1
10931   cat conftest.err >&5
10932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933   (exit $ac_status); } &&
10934          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10935   { (case "(($ac_try" in
10936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10937   *) ac_try_echo=$ac_try;;
10938 esac
10939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10940   (eval "$ac_try") 2>&5
10941   ac_status=$?
10942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943   (exit $ac_status); }; } &&
10944          { ac_try='test -s conftest$ac_exeext'
10945   { (case "(($ac_try" in
10946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10947   *) ac_try_echo=$ac_try;;
10948 esac
10949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10950   (eval "$ac_try") 2>&5
10951   ac_status=$?
10952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953   (exit $ac_status); }; }; then
10954   eval "$as_ac_var=yes"
10955 else
10956   echo "$as_me: failed program was:" >&5
10957 sed 's/^/| /' conftest.$ac_ext >&5
10958
10959         eval "$as_ac_var=no"
10960 fi
10961
10962 rm -f core conftest.err conftest.$ac_objext \
10963       conftest$ac_exeext conftest.$ac_ext
10964 fi
10965 ac_res=`eval echo '${'$as_ac_var'}'`
10966                { echo "$as_me:$LINENO: result: $ac_res" >&5
10967 echo "${ECHO_T}$ac_res" >&6; }
10968 if test `eval echo '${'$as_ac_var'}'` = yes; then
10969   cat >>confdefs.h <<_ACEOF
10970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10971 _ACEOF
10972
10973 fi
10974 done
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11004                   stdio.h unistd.h
11005 do
11006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11008   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11011   echo $ECHO_N "(cached) $ECHO_C" >&6
11012 fi
11013 ac_res=`eval echo '${'$as_ac_Header'}'`
11014                { echo "$as_me:$LINENO: result: $ac_res" >&5
11015 echo "${ECHO_T}$ac_res" >&6; }
11016 else
11017   # Is the header compilable?
11018 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11019 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11020 cat >conftest.$ac_ext <<_ACEOF
11021 /* confdefs.h.  */
11022 _ACEOF
11023 cat confdefs.h >>conftest.$ac_ext
11024 cat >>conftest.$ac_ext <<_ACEOF
11025 /* end confdefs.h.  */
11026 $ac_includes_default
11027 #include <$ac_header>
11028 _ACEOF
11029 rm -f conftest.$ac_objext
11030 if { (ac_try="$ac_compile"
11031 case "(($ac_try" in
11032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11033   *) ac_try_echo=$ac_try;;
11034 esac
11035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11036   (eval "$ac_compile") 2>conftest.er1
11037   ac_status=$?
11038   grep -v '^ *+' conftest.er1 >conftest.err
11039   rm -f conftest.er1
11040   cat conftest.err >&5
11041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042   (exit $ac_status); } &&
11043          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11044   { (case "(($ac_try" in
11045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11046   *) ac_try_echo=$ac_try;;
11047 esac
11048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11049   (eval "$ac_try") 2>&5
11050   ac_status=$?
11051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052   (exit $ac_status); }; } &&
11053          { ac_try='test -s conftest.$ac_objext'
11054   { (case "(($ac_try" in
11055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11056   *) ac_try_echo=$ac_try;;
11057 esac
11058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11059   (eval "$ac_try") 2>&5
11060   ac_status=$?
11061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062   (exit $ac_status); }; }; then
11063   ac_header_compiler=yes
11064 else
11065   echo "$as_me: failed program was:" >&5
11066 sed 's/^/| /' conftest.$ac_ext >&5
11067
11068         ac_header_compiler=no
11069 fi
11070
11071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11072 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11073 echo "${ECHO_T}$ac_header_compiler" >&6; }
11074
11075 # Is the header present?
11076 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11077 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11078 cat >conftest.$ac_ext <<_ACEOF
11079 /* confdefs.h.  */
11080 _ACEOF
11081 cat confdefs.h >>conftest.$ac_ext
11082 cat >>conftest.$ac_ext <<_ACEOF
11083 /* end confdefs.h.  */
11084 #include <$ac_header>
11085 _ACEOF
11086 if { (ac_try="$ac_cpp conftest.$ac_ext"
11087 case "(($ac_try" in
11088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11089   *) ac_try_echo=$ac_try;;
11090 esac
11091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11092   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11093   ac_status=$?
11094   grep -v '^ *+' conftest.er1 >conftest.err
11095   rm -f conftest.er1
11096   cat conftest.err >&5
11097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098   (exit $ac_status); } >/dev/null; then
11099   if test -s conftest.err; then
11100     ac_cpp_err=$ac_c_preproc_warn_flag
11101     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11102   else
11103     ac_cpp_err=
11104   fi
11105 else
11106   ac_cpp_err=yes
11107 fi
11108 if test -z "$ac_cpp_err"; then
11109   ac_header_preproc=yes
11110 else
11111   echo "$as_me: failed program was:" >&5
11112 sed 's/^/| /' conftest.$ac_ext >&5
11113
11114   ac_header_preproc=no
11115 fi
11116
11117 rm -f conftest.err conftest.$ac_ext
11118 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11119 echo "${ECHO_T}$ac_header_preproc" >&6; }
11120
11121 # So?  What about this header?
11122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11123   yes:no: )
11124     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11125 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11126     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11127 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11128     ac_header_preproc=yes
11129     ;;
11130   no:yes:* )
11131     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11132 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11133     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11134 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11135     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11136 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11137     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11138 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11139     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11140 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11141     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11142 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11143     ( cat <<\_ASBOX
11144 ## ------------------------------ ##
11145 ## Report this to bugs@yourdomain ##
11146 ## ------------------------------ ##
11147 _ASBOX
11148      ) | sed "s/^/$as_me: WARNING:     /" >&2
11149     ;;
11150 esac
11151 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11154   echo $ECHO_N "(cached) $ECHO_C" >&6
11155 else
11156   eval "$as_ac_Header=\$ac_header_preproc"
11157 fi
11158 ac_res=`eval echo '${'$as_ac_Header'}'`
11159                { echo "$as_me:$LINENO: result: $ac_res" >&5
11160 echo "${ECHO_T}$ac_res" >&6; }
11161
11162 fi
11163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11164   cat >>confdefs.h <<_ACEOF
11165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11166 _ACEOF
11167
11168 fi
11169
11170 done
11171
11172
11173
11174
11175
11176 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11177 do
11178 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11180   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11183   echo $ECHO_N "(cached) $ECHO_C" >&6
11184 fi
11185 ac_res=`eval echo '${'$as_ac_Header'}'`
11186                { echo "$as_me:$LINENO: result: $ac_res" >&5
11187 echo "${ECHO_T}$ac_res" >&6; }
11188 else
11189   # Is the header compilable?
11190 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11191 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11192 cat >conftest.$ac_ext <<_ACEOF
11193 /* confdefs.h.  */
11194 _ACEOF
11195 cat confdefs.h >>conftest.$ac_ext
11196 cat >>conftest.$ac_ext <<_ACEOF
11197 /* end confdefs.h.  */
11198 $ac_includes_default
11199 #include <$ac_header>
11200 _ACEOF
11201 rm -f conftest.$ac_objext
11202 if { (ac_try="$ac_compile"
11203 case "(($ac_try" in
11204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11205   *) ac_try_echo=$ac_try;;
11206 esac
11207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11208   (eval "$ac_compile") 2>conftest.er1
11209   ac_status=$?
11210   grep -v '^ *+' conftest.er1 >conftest.err
11211   rm -f conftest.er1
11212   cat conftest.err >&5
11213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214   (exit $ac_status); } &&
11215          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11216   { (case "(($ac_try" in
11217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11218   *) ac_try_echo=$ac_try;;
11219 esac
11220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11221   (eval "$ac_try") 2>&5
11222   ac_status=$?
11223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224   (exit $ac_status); }; } &&
11225          { ac_try='test -s conftest.$ac_objext'
11226   { (case "(($ac_try" in
11227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11228   *) ac_try_echo=$ac_try;;
11229 esac
11230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11231   (eval "$ac_try") 2>&5
11232   ac_status=$?
11233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234   (exit $ac_status); }; }; then
11235   ac_header_compiler=yes
11236 else
11237   echo "$as_me: failed program was:" >&5
11238 sed 's/^/| /' conftest.$ac_ext >&5
11239
11240         ac_header_compiler=no
11241 fi
11242
11243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11244 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11245 echo "${ECHO_T}$ac_header_compiler" >&6; }
11246
11247 # Is the header present?
11248 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11249 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11250 cat >conftest.$ac_ext <<_ACEOF
11251 /* confdefs.h.  */
11252 _ACEOF
11253 cat confdefs.h >>conftest.$ac_ext
11254 cat >>conftest.$ac_ext <<_ACEOF
11255 /* end confdefs.h.  */
11256 #include <$ac_header>
11257 _ACEOF
11258 if { (ac_try="$ac_cpp conftest.$ac_ext"
11259 case "(($ac_try" in
11260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11261   *) ac_try_echo=$ac_try;;
11262 esac
11263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11264   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11265   ac_status=$?
11266   grep -v '^ *+' conftest.er1 >conftest.err
11267   rm -f conftest.er1
11268   cat conftest.err >&5
11269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270   (exit $ac_status); } >/dev/null; then
11271   if test -s conftest.err; then
11272     ac_cpp_err=$ac_c_preproc_warn_flag
11273     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11274   else
11275     ac_cpp_err=
11276   fi
11277 else
11278   ac_cpp_err=yes
11279 fi
11280 if test -z "$ac_cpp_err"; then
11281   ac_header_preproc=yes
11282 else
11283   echo "$as_me: failed program was:" >&5
11284 sed 's/^/| /' conftest.$ac_ext >&5
11285
11286   ac_header_preproc=no
11287 fi
11288
11289 rm -f conftest.err conftest.$ac_ext
11290 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11291 echo "${ECHO_T}$ac_header_preproc" >&6; }
11292
11293 # So?  What about this header?
11294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11295   yes:no: )
11296     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11297 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11298     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11299 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11300     ac_header_preproc=yes
11301     ;;
11302   no:yes:* )
11303     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11304 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11305     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11306 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11307     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11308 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11309     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11310 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11311     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11312 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11313     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11314 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11315     ( cat <<\_ASBOX
11316 ## ------------------------------ ##
11317 ## Report this to bugs@yourdomain ##
11318 ## ------------------------------ ##
11319 _ASBOX
11320      ) | sed "s/^/$as_me: WARNING:     /" >&2
11321     ;;
11322 esac
11323 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11326   echo $ECHO_N "(cached) $ECHO_C" >&6
11327 else
11328   eval "$as_ac_Header=\$ac_header_preproc"
11329 fi
11330 ac_res=`eval echo '${'$as_ac_Header'}'`
11331                { echo "$as_me:$LINENO: result: $ac_res" >&5
11332 echo "${ECHO_T}$ac_res" >&6; }
11333
11334 fi
11335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11336   cat >>confdefs.h <<_ACEOF
11337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11338 _ACEOF
11339
11340 fi
11341
11342 done
11343
11344
11345
11346 for ac_header in string.h strings.h
11347 do
11348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11350   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11353   echo $ECHO_N "(cached) $ECHO_C" >&6
11354 fi
11355 ac_res=`eval echo '${'$as_ac_Header'}'`
11356                { echo "$as_me:$LINENO: result: $ac_res" >&5
11357 echo "${ECHO_T}$ac_res" >&6; }
11358 else
11359   # Is the header compilable?
11360 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11362 cat >conftest.$ac_ext <<_ACEOF
11363 /* confdefs.h.  */
11364 _ACEOF
11365 cat confdefs.h >>conftest.$ac_ext
11366 cat >>conftest.$ac_ext <<_ACEOF
11367 /* end confdefs.h.  */
11368 $ac_includes_default
11369 #include <$ac_header>
11370 _ACEOF
11371 rm -f conftest.$ac_objext
11372 if { (ac_try="$ac_compile"
11373 case "(($ac_try" in
11374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11375   *) ac_try_echo=$ac_try;;
11376 esac
11377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11378   (eval "$ac_compile") 2>conftest.er1
11379   ac_status=$?
11380   grep -v '^ *+' conftest.er1 >conftest.err
11381   rm -f conftest.er1
11382   cat conftest.err >&5
11383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384   (exit $ac_status); } &&
11385          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11386   { (case "(($ac_try" in
11387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11388   *) ac_try_echo=$ac_try;;
11389 esac
11390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11391   (eval "$ac_try") 2>&5
11392   ac_status=$?
11393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394   (exit $ac_status); }; } &&
11395          { ac_try='test -s conftest.$ac_objext'
11396   { (case "(($ac_try" in
11397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11398   *) ac_try_echo=$ac_try;;
11399 esac
11400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11401   (eval "$ac_try") 2>&5
11402   ac_status=$?
11403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404   (exit $ac_status); }; }; then
11405   ac_header_compiler=yes
11406 else
11407   echo "$as_me: failed program was:" >&5
11408 sed 's/^/| /' conftest.$ac_ext >&5
11409
11410         ac_header_compiler=no
11411 fi
11412
11413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11414 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11415 echo "${ECHO_T}$ac_header_compiler" >&6; }
11416
11417 # Is the header present?
11418 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11420 cat >conftest.$ac_ext <<_ACEOF
11421 /* confdefs.h.  */
11422 _ACEOF
11423 cat confdefs.h >>conftest.$ac_ext
11424 cat >>conftest.$ac_ext <<_ACEOF
11425 /* end confdefs.h.  */
11426 #include <$ac_header>
11427 _ACEOF
11428 if { (ac_try="$ac_cpp conftest.$ac_ext"
11429 case "(($ac_try" in
11430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11431   *) ac_try_echo=$ac_try;;
11432 esac
11433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11434   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11435   ac_status=$?
11436   grep -v '^ *+' conftest.er1 >conftest.err
11437   rm -f conftest.er1
11438   cat conftest.err >&5
11439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440   (exit $ac_status); } >/dev/null; then
11441   if test -s conftest.err; then
11442     ac_cpp_err=$ac_c_preproc_warn_flag
11443     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11444   else
11445     ac_cpp_err=
11446   fi
11447 else
11448   ac_cpp_err=yes
11449 fi
11450 if test -z "$ac_cpp_err"; then
11451   ac_header_preproc=yes
11452 else
11453   echo "$as_me: failed program was:" >&5
11454 sed 's/^/| /' conftest.$ac_ext >&5
11455
11456   ac_header_preproc=no
11457 fi
11458
11459 rm -f conftest.err conftest.$ac_ext
11460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11461 echo "${ECHO_T}$ac_header_preproc" >&6; }
11462
11463 # So?  What about this header?
11464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11465   yes:no: )
11466     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11468     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11470     ac_header_preproc=yes
11471     ;;
11472   no:yes:* )
11473     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11475     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11476 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11477     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11479     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11480 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11481     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11483     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11485     ( cat <<\_ASBOX
11486 ## ------------------------------ ##
11487 ## Report this to bugs@yourdomain ##
11488 ## ------------------------------ ##
11489 _ASBOX
11490      ) | sed "s/^/$as_me: WARNING:     /" >&2
11491     ;;
11492 esac
11493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11496   echo $ECHO_N "(cached) $ECHO_C" >&6
11497 else
11498   eval "$as_ac_Header=\$ac_header_preproc"
11499 fi
11500 ac_res=`eval echo '${'$as_ac_Header'}'`
11501                { echo "$as_me:$LINENO: result: $ac_res" >&5
11502 echo "${ECHO_T}$ac_res" >&6; }
11503
11504 fi
11505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11506   cat >>confdefs.h <<_ACEOF
11507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11508 _ACEOF
11509  break
11510 fi
11511
11512 done
11513
11514
11515
11516
11517 for ac_func in strchr index
11518 do
11519 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11520 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11522 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11523   echo $ECHO_N "(cached) $ECHO_C" >&6
11524 else
11525   cat >conftest.$ac_ext <<_ACEOF
11526 /* confdefs.h.  */
11527 _ACEOF
11528 cat confdefs.h >>conftest.$ac_ext
11529 cat >>conftest.$ac_ext <<_ACEOF
11530 /* end confdefs.h.  */
11531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11532    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11533 #define $ac_func innocuous_$ac_func
11534
11535 /* System header to define __stub macros and hopefully few prototypes,
11536     which can conflict with char $ac_func (); below.
11537     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11538     <limits.h> exists even on freestanding compilers.  */
11539
11540 #ifdef __STDC__
11541 # include <limits.h>
11542 #else
11543 # include <assert.h>
11544 #endif
11545
11546 #undef $ac_func
11547
11548 /* Override any GCC internal prototype to avoid an error.
11549    Use char because int might match the return type of a GCC
11550    builtin and then its argument prototype would still apply.  */
11551 #ifdef __cplusplus
11552 extern "C"
11553 #endif
11554 char $ac_func ();
11555 /* The GNU C library defines this for functions which it implements
11556     to always fail with ENOSYS.  Some functions are actually named
11557     something starting with __ and the normal name is an alias.  */
11558 #if defined __stub_$ac_func || defined __stub___$ac_func
11559 choke me
11560 #endif
11561
11562 int
11563 main ()
11564 {
11565 return $ac_func ();
11566   ;
11567   return 0;
11568 }
11569 _ACEOF
11570 rm -f conftest.$ac_objext conftest$ac_exeext
11571 if { (ac_try="$ac_link"
11572 case "(($ac_try" in
11573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11574   *) ac_try_echo=$ac_try;;
11575 esac
11576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11577   (eval "$ac_link") 2>conftest.er1
11578   ac_status=$?
11579   grep -v '^ *+' conftest.er1 >conftest.err
11580   rm -f conftest.er1
11581   cat conftest.err >&5
11582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583   (exit $ac_status); } &&
11584          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11585   { (case "(($ac_try" in
11586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11587   *) ac_try_echo=$ac_try;;
11588 esac
11589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11590   (eval "$ac_try") 2>&5
11591   ac_status=$?
11592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593   (exit $ac_status); }; } &&
11594          { ac_try='test -s conftest$ac_exeext'
11595   { (case "(($ac_try" in
11596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11597   *) ac_try_echo=$ac_try;;
11598 esac
11599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11600   (eval "$ac_try") 2>&5
11601   ac_status=$?
11602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603   (exit $ac_status); }; }; then
11604   eval "$as_ac_var=yes"
11605 else
11606   echo "$as_me: failed program was:" >&5
11607 sed 's/^/| /' conftest.$ac_ext >&5
11608
11609         eval "$as_ac_var=no"
11610 fi
11611
11612 rm -f core conftest.err conftest.$ac_objext \
11613       conftest$ac_exeext conftest.$ac_ext
11614 fi
11615 ac_res=`eval echo '${'$as_ac_var'}'`
11616                { echo "$as_me:$LINENO: result: $ac_res" >&5
11617 echo "${ECHO_T}$ac_res" >&6; }
11618 if test `eval echo '${'$as_ac_var'}'` = yes; then
11619   cat >>confdefs.h <<_ACEOF
11620 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11621 _ACEOF
11622  break
11623 fi
11624 done
11625
11626
11627
11628 for ac_func in strrchr rindex
11629 do
11630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11631 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11633 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11634   echo $ECHO_N "(cached) $ECHO_C" >&6
11635 else
11636   cat >conftest.$ac_ext <<_ACEOF
11637 /* confdefs.h.  */
11638 _ACEOF
11639 cat confdefs.h >>conftest.$ac_ext
11640 cat >>conftest.$ac_ext <<_ACEOF
11641 /* end confdefs.h.  */
11642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11643    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11644 #define $ac_func innocuous_$ac_func
11645
11646 /* System header to define __stub macros and hopefully few prototypes,
11647     which can conflict with char $ac_func (); below.
11648     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11649     <limits.h> exists even on freestanding compilers.  */
11650
11651 #ifdef __STDC__
11652 # include <limits.h>
11653 #else
11654 # include <assert.h>
11655 #endif
11656
11657 #undef $ac_func
11658
11659 /* Override any GCC internal prototype to avoid an error.
11660    Use char because int might match the return type of a GCC
11661    builtin and then its argument prototype would still apply.  */
11662 #ifdef __cplusplus
11663 extern "C"
11664 #endif
11665 char $ac_func ();
11666 /* The GNU C library defines this for functions which it implements
11667     to always fail with ENOSYS.  Some functions are actually named
11668     something starting with __ and the normal name is an alias.  */
11669 #if defined __stub_$ac_func || defined __stub___$ac_func
11670 choke me
11671 #endif
11672
11673 int
11674 main ()
11675 {
11676 return $ac_func ();
11677   ;
11678   return 0;
11679 }
11680 _ACEOF
11681 rm -f conftest.$ac_objext conftest$ac_exeext
11682 if { (ac_try="$ac_link"
11683 case "(($ac_try" in
11684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11685   *) ac_try_echo=$ac_try;;
11686 esac
11687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11688   (eval "$ac_link") 2>conftest.er1
11689   ac_status=$?
11690   grep -v '^ *+' conftest.er1 >conftest.err
11691   rm -f conftest.er1
11692   cat conftest.err >&5
11693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694   (exit $ac_status); } &&
11695          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11696   { (case "(($ac_try" in
11697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11698   *) ac_try_echo=$ac_try;;
11699 esac
11700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11701   (eval "$ac_try") 2>&5
11702   ac_status=$?
11703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704   (exit $ac_status); }; } &&
11705          { ac_try='test -s conftest$ac_exeext'
11706   { (case "(($ac_try" in
11707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708   *) ac_try_echo=$ac_try;;
11709 esac
11710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11711   (eval "$ac_try") 2>&5
11712   ac_status=$?
11713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714   (exit $ac_status); }; }; then
11715   eval "$as_ac_var=yes"
11716 else
11717   echo "$as_me: failed program was:" >&5
11718 sed 's/^/| /' conftest.$ac_ext >&5
11719
11720         eval "$as_ac_var=no"
11721 fi
11722
11723 rm -f core conftest.err conftest.$ac_objext \
11724       conftest$ac_exeext conftest.$ac_ext
11725 fi
11726 ac_res=`eval echo '${'$as_ac_var'}'`
11727                { echo "$as_me:$LINENO: result: $ac_res" >&5
11728 echo "${ECHO_T}$ac_res" >&6; }
11729 if test `eval echo '${'$as_ac_var'}'` = yes; then
11730   cat >>confdefs.h <<_ACEOF
11731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11732 _ACEOF
11733  break
11734 fi
11735 done
11736
11737
11738
11739 for ac_func in memcpy bcopy
11740 do
11741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11742 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11744 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11745   echo $ECHO_N "(cached) $ECHO_C" >&6
11746 else
11747   cat >conftest.$ac_ext <<_ACEOF
11748 /* confdefs.h.  */
11749 _ACEOF
11750 cat confdefs.h >>conftest.$ac_ext
11751 cat >>conftest.$ac_ext <<_ACEOF
11752 /* end confdefs.h.  */
11753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11754    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11755 #define $ac_func innocuous_$ac_func
11756
11757 /* System header to define __stub macros and hopefully few prototypes,
11758     which can conflict with char $ac_func (); below.
11759     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11760     <limits.h> exists even on freestanding compilers.  */
11761
11762 #ifdef __STDC__
11763 # include <limits.h>
11764 #else
11765 # include <assert.h>
11766 #endif
11767
11768 #undef $ac_func
11769
11770 /* Override any GCC internal prototype to avoid an error.
11771    Use char because int might match the return type of a GCC
11772    builtin and then its argument prototype would still apply.  */
11773 #ifdef __cplusplus
11774 extern "C"
11775 #endif
11776 char $ac_func ();
11777 /* The GNU C library defines this for functions which it implements
11778     to always fail with ENOSYS.  Some functions are actually named
11779     something starting with __ and the normal name is an alias.  */
11780 #if defined __stub_$ac_func || defined __stub___$ac_func
11781 choke me
11782 #endif
11783
11784 int
11785 main ()
11786 {
11787 return $ac_func ();
11788   ;
11789   return 0;
11790 }
11791 _ACEOF
11792 rm -f conftest.$ac_objext conftest$ac_exeext
11793 if { (ac_try="$ac_link"
11794 case "(($ac_try" in
11795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11796   *) ac_try_echo=$ac_try;;
11797 esac
11798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11799   (eval "$ac_link") 2>conftest.er1
11800   ac_status=$?
11801   grep -v '^ *+' conftest.er1 >conftest.err
11802   rm -f conftest.er1
11803   cat conftest.err >&5
11804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805   (exit $ac_status); } &&
11806          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11807   { (case "(($ac_try" in
11808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11809   *) ac_try_echo=$ac_try;;
11810 esac
11811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11812   (eval "$ac_try") 2>&5
11813   ac_status=$?
11814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815   (exit $ac_status); }; } &&
11816          { ac_try='test -s conftest$ac_exeext'
11817   { (case "(($ac_try" in
11818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11819   *) ac_try_echo=$ac_try;;
11820 esac
11821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11822   (eval "$ac_try") 2>&5
11823   ac_status=$?
11824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825   (exit $ac_status); }; }; then
11826   eval "$as_ac_var=yes"
11827 else
11828   echo "$as_me: failed program was:" >&5
11829 sed 's/^/| /' conftest.$ac_ext >&5
11830
11831         eval "$as_ac_var=no"
11832 fi
11833
11834 rm -f core conftest.err conftest.$ac_objext \
11835       conftest$ac_exeext conftest.$ac_ext
11836 fi
11837 ac_res=`eval echo '${'$as_ac_var'}'`
11838                { echo "$as_me:$LINENO: result: $ac_res" >&5
11839 echo "${ECHO_T}$ac_res" >&6; }
11840 if test `eval echo '${'$as_ac_var'}'` = yes; then
11841   cat >>confdefs.h <<_ACEOF
11842 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11843 _ACEOF
11844  break
11845 fi
11846 done
11847
11848
11849
11850 for ac_func in memmove strcmp
11851 do
11852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11853 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11855 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11856   echo $ECHO_N "(cached) $ECHO_C" >&6
11857 else
11858   cat >conftest.$ac_ext <<_ACEOF
11859 /* confdefs.h.  */
11860 _ACEOF
11861 cat confdefs.h >>conftest.$ac_ext
11862 cat >>conftest.$ac_ext <<_ACEOF
11863 /* end confdefs.h.  */
11864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11865    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11866 #define $ac_func innocuous_$ac_func
11867
11868 /* System header to define __stub macros and hopefully few prototypes,
11869     which can conflict with char $ac_func (); below.
11870     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11871     <limits.h> exists even on freestanding compilers.  */
11872
11873 #ifdef __STDC__
11874 # include <limits.h>
11875 #else
11876 # include <assert.h>
11877 #endif
11878
11879 #undef $ac_func
11880
11881 /* Override any GCC internal prototype to avoid an error.
11882    Use char because int might match the return type of a GCC
11883    builtin and then its argument prototype would still apply.  */
11884 #ifdef __cplusplus
11885 extern "C"
11886 #endif
11887 char $ac_func ();
11888 /* The GNU C library defines this for functions which it implements
11889     to always fail with ENOSYS.  Some functions are actually named
11890     something starting with __ and the normal name is an alias.  */
11891 #if defined __stub_$ac_func || defined __stub___$ac_func
11892 choke me
11893 #endif
11894
11895 int
11896 main ()
11897 {
11898 return $ac_func ();
11899   ;
11900   return 0;
11901 }
11902 _ACEOF
11903 rm -f conftest.$ac_objext conftest$ac_exeext
11904 if { (ac_try="$ac_link"
11905 case "(($ac_try" in
11906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11907   *) ac_try_echo=$ac_try;;
11908 esac
11909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11910   (eval "$ac_link") 2>conftest.er1
11911   ac_status=$?
11912   grep -v '^ *+' conftest.er1 >conftest.err
11913   rm -f conftest.er1
11914   cat conftest.err >&5
11915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916   (exit $ac_status); } &&
11917          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11918   { (case "(($ac_try" in
11919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920   *) ac_try_echo=$ac_try;;
11921 esac
11922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11923   (eval "$ac_try") 2>&5
11924   ac_status=$?
11925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926   (exit $ac_status); }; } &&
11927          { ac_try='test -s conftest$ac_exeext'
11928   { (case "(($ac_try" in
11929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11930   *) ac_try_echo=$ac_try;;
11931 esac
11932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11933   (eval "$ac_try") 2>&5
11934   ac_status=$?
11935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936   (exit $ac_status); }; }; then
11937   eval "$as_ac_var=yes"
11938 else
11939   echo "$as_me: failed program was:" >&5
11940 sed 's/^/| /' conftest.$ac_ext >&5
11941
11942         eval "$as_ac_var=no"
11943 fi
11944
11945 rm -f core conftest.err conftest.$ac_objext \
11946       conftest$ac_exeext conftest.$ac_ext
11947 fi
11948 ac_res=`eval echo '${'$as_ac_var'}'`
11949                { echo "$as_me:$LINENO: result: $ac_res" >&5
11950 echo "${ECHO_T}$ac_res" >&6; }
11951 if test `eval echo '${'$as_ac_var'}'` = yes; then
11952   cat >>confdefs.h <<_ACEOF
11953 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11954 _ACEOF
11955
11956 fi
11957 done
11958
11959
11960
11961
11962 for ac_func in closedir opendir readdir
11963 do
11964 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11965 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11967 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11968   echo $ECHO_N "(cached) $ECHO_C" >&6
11969 else
11970   cat >conftest.$ac_ext <<_ACEOF
11971 /* confdefs.h.  */
11972 _ACEOF
11973 cat confdefs.h >>conftest.$ac_ext
11974 cat >>conftest.$ac_ext <<_ACEOF
11975 /* end confdefs.h.  */
11976 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11977    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11978 #define $ac_func innocuous_$ac_func
11979
11980 /* System header to define __stub macros and hopefully few prototypes,
11981     which can conflict with char $ac_func (); below.
11982     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11983     <limits.h> exists even on freestanding compilers.  */
11984
11985 #ifdef __STDC__
11986 # include <limits.h>
11987 #else
11988 # include <assert.h>
11989 #endif
11990
11991 #undef $ac_func
11992
11993 /* Override any GCC internal prototype to avoid an error.
11994    Use char because int might match the return type of a GCC
11995    builtin and then its argument prototype would still apply.  */
11996 #ifdef __cplusplus
11997 extern "C"
11998 #endif
11999 char $ac_func ();
12000 /* The GNU C library defines this for functions which it implements
12001     to always fail with ENOSYS.  Some functions are actually named
12002     something starting with __ and the normal name is an alias.  */
12003 #if defined __stub_$ac_func || defined __stub___$ac_func
12004 choke me
12005 #endif
12006
12007 int
12008 main ()
12009 {
12010 return $ac_func ();
12011   ;
12012   return 0;
12013 }
12014 _ACEOF
12015 rm -f conftest.$ac_objext conftest$ac_exeext
12016 if { (ac_try="$ac_link"
12017 case "(($ac_try" in
12018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12019   *) ac_try_echo=$ac_try;;
12020 esac
12021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12022   (eval "$ac_link") 2>conftest.er1
12023   ac_status=$?
12024   grep -v '^ *+' conftest.er1 >conftest.err
12025   rm -f conftest.er1
12026   cat conftest.err >&5
12027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028   (exit $ac_status); } &&
12029          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12030   { (case "(($ac_try" in
12031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12032   *) ac_try_echo=$ac_try;;
12033 esac
12034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12035   (eval "$ac_try") 2>&5
12036   ac_status=$?
12037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038   (exit $ac_status); }; } &&
12039          { ac_try='test -s conftest$ac_exeext'
12040   { (case "(($ac_try" in
12041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12042   *) ac_try_echo=$ac_try;;
12043 esac
12044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12045   (eval "$ac_try") 2>&5
12046   ac_status=$?
12047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048   (exit $ac_status); }; }; then
12049   eval "$as_ac_var=yes"
12050 else
12051   echo "$as_me: failed program was:" >&5
12052 sed 's/^/| /' conftest.$ac_ext >&5
12053
12054         eval "$as_ac_var=no"
12055 fi
12056
12057 rm -f core conftest.err conftest.$ac_objext \
12058       conftest$ac_exeext conftest.$ac_ext
12059 fi
12060 ac_res=`eval echo '${'$as_ac_var'}'`
12061                { echo "$as_me:$LINENO: result: $ac_res" >&5
12062 echo "${ECHO_T}$ac_res" >&6; }
12063 if test `eval echo '${'$as_ac_var'}'` = yes; then
12064   cat >>confdefs.h <<_ACEOF
12065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12066 _ACEOF
12067
12068 fi
12069 done
12070
12071
12072
12073 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12074 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12075
12076 ICC=no
12077 IXX=no
12078 case $CC in
12079   icc*|icpc*)
12080     ICC=yes
12081     IXX=yes
12082     ;;
12083    *)
12084     ;;
12085 esac
12086
12087 if test "$GCC" != "yes" && test "$ICC" != "yes"
12088 then
12089   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12090 echo "$as_me: error: gcc|icc required but not found" >&2;}
12091    { (exit 1); exit 1; }; }
12092 fi
12093
12094 if test "$GXX" != "yes" && test "$IXX" != "yes"
12095 then
12096   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12097 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12098    { (exit 1); exit 1; }; }
12099 fi
12100
12101 if test "$GCC" = "yes"
12102 then
12103   cat >conftest.$ac_ext <<_ACEOF
12104 #if !defined(__GNUC__) || __GNUC__ < 3
12105 #error Unsupported GCC version
12106 #endif
12107
12108 _ACEOF
12109 rm -f conftest.$ac_objext
12110 if { (ac_try="$ac_compile"
12111 case "(($ac_try" in
12112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12113   *) ac_try_echo=$ac_try;;
12114 esac
12115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12116   (eval "$ac_compile") 2>conftest.er1
12117   ac_status=$?
12118   grep -v '^ *+' conftest.er1 >conftest.err
12119   rm -f conftest.er1
12120   cat conftest.err >&5
12121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122   (exit $ac_status); } &&
12123          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12124   { (case "(($ac_try" in
12125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12126   *) ac_try_echo=$ac_try;;
12127 esac
12128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12129   (eval "$ac_try") 2>&5
12130   ac_status=$?
12131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132   (exit $ac_status); }; } &&
12133          { ac_try='test -s conftest.$ac_objext'
12134   { (case "(($ac_try" in
12135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12136   *) ac_try_echo=$ac_try;;
12137 esac
12138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12139   (eval "$ac_try") 2>&5
12140   ac_status=$?
12141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142   (exit $ac_status); }; }; then
12143   :
12144 else
12145   echo "$as_me: failed program was:" >&5
12146 sed 's/^/| /' conftest.$ac_ext >&5
12147
12148         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12149 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12150    { (exit 1); exit 1; }; }
12151 fi
12152
12153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12154 fi
12155
12156 if test -z "$llvm_cv_gnu_make_command"
12157 then
12158   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12159 echo "$as_me: error: GNU Make required but not found" >&2;}
12160    { (exit 1); exit 1; }; }
12161 fi
12162
12163 { echo "$as_me:$LINENO: result: ok" >&5
12164 echo "${ECHO_T}ok" >&6; }
12165
12166 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12167 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12168 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12169
12170 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12171
12172 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12173 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12174
12175
12176
12177 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12178 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12179 if test "${ac_cv_lib_m_sin+set}" = set; then
12180   echo $ECHO_N "(cached) $ECHO_C" >&6
12181 else
12182   ac_check_lib_save_LIBS=$LIBS
12183 LIBS="-lm  $LIBS"
12184 cat >conftest.$ac_ext <<_ACEOF
12185 /* confdefs.h.  */
12186 _ACEOF
12187 cat confdefs.h >>conftest.$ac_ext
12188 cat >>conftest.$ac_ext <<_ACEOF
12189 /* end confdefs.h.  */
12190
12191 /* Override any GCC internal prototype to avoid an error.
12192    Use char because int might match the return type of a GCC
12193    builtin and then its argument prototype would still apply.  */
12194 #ifdef __cplusplus
12195 extern "C"
12196 #endif
12197 char sin ();
12198 int
12199 main ()
12200 {
12201 return sin ();
12202   ;
12203   return 0;
12204 }
12205 _ACEOF
12206 rm -f conftest.$ac_objext conftest$ac_exeext
12207 if { (ac_try="$ac_link"
12208 case "(($ac_try" in
12209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12210   *) ac_try_echo=$ac_try;;
12211 esac
12212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12213   (eval "$ac_link") 2>conftest.er1
12214   ac_status=$?
12215   grep -v '^ *+' conftest.er1 >conftest.err
12216   rm -f conftest.er1
12217   cat conftest.err >&5
12218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219   (exit $ac_status); } &&
12220          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12221   { (case "(($ac_try" in
12222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12223   *) ac_try_echo=$ac_try;;
12224 esac
12225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12226   (eval "$ac_try") 2>&5
12227   ac_status=$?
12228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229   (exit $ac_status); }; } &&
12230          { ac_try='test -s conftest$ac_exeext'
12231   { (case "(($ac_try" in
12232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12233   *) ac_try_echo=$ac_try;;
12234 esac
12235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12236   (eval "$ac_try") 2>&5
12237   ac_status=$?
12238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239   (exit $ac_status); }; }; then
12240   ac_cv_lib_m_sin=yes
12241 else
12242   echo "$as_me: failed program was:" >&5
12243 sed 's/^/| /' conftest.$ac_ext >&5
12244
12245         ac_cv_lib_m_sin=no
12246 fi
12247
12248 rm -f core conftest.err conftest.$ac_objext \
12249       conftest$ac_exeext conftest.$ac_ext
12250 LIBS=$ac_check_lib_save_LIBS
12251 fi
12252 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12253 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12254 if test $ac_cv_lib_m_sin = yes; then
12255   cat >>confdefs.h <<_ACEOF
12256 #define HAVE_LIBM 1
12257 _ACEOF
12258
12259   LIBS="-lm $LIBS"
12260
12261 fi
12262
12263 if test "$llvm_cv_os_type" = "MingW" ; then
12264
12265 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12266 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12267 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12268   echo $ECHO_N "(cached) $ECHO_C" >&6
12269 else
12270   ac_check_lib_save_LIBS=$LIBS
12271 LIBS="-limagehlp  $LIBS"
12272 cat >conftest.$ac_ext <<_ACEOF
12273 /* confdefs.h.  */
12274 _ACEOF
12275 cat confdefs.h >>conftest.$ac_ext
12276 cat >>conftest.$ac_ext <<_ACEOF
12277 /* end confdefs.h.  */
12278
12279
12280 int
12281 main ()
12282 {
12283 return main ();
12284   ;
12285   return 0;
12286 }
12287 _ACEOF
12288 rm -f conftest.$ac_objext conftest$ac_exeext
12289 if { (ac_try="$ac_link"
12290 case "(($ac_try" in
12291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12292   *) ac_try_echo=$ac_try;;
12293 esac
12294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12295   (eval "$ac_link") 2>conftest.er1
12296   ac_status=$?
12297   grep -v '^ *+' conftest.er1 >conftest.err
12298   rm -f conftest.er1
12299   cat conftest.err >&5
12300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301   (exit $ac_status); } &&
12302          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12303   { (case "(($ac_try" in
12304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12305   *) ac_try_echo=$ac_try;;
12306 esac
12307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12308   (eval "$ac_try") 2>&5
12309   ac_status=$?
12310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311   (exit $ac_status); }; } &&
12312          { ac_try='test -s conftest$ac_exeext'
12313   { (case "(($ac_try" in
12314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12315   *) ac_try_echo=$ac_try;;
12316 esac
12317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12318   (eval "$ac_try") 2>&5
12319   ac_status=$?
12320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321   (exit $ac_status); }; }; then
12322   ac_cv_lib_imagehlp_main=yes
12323 else
12324   echo "$as_me: failed program was:" >&5
12325 sed 's/^/| /' conftest.$ac_ext >&5
12326
12327         ac_cv_lib_imagehlp_main=no
12328 fi
12329
12330 rm -f core conftest.err conftest.$ac_objext \
12331       conftest$ac_exeext conftest.$ac_ext
12332 LIBS=$ac_check_lib_save_LIBS
12333 fi
12334 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12335 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12336 if test $ac_cv_lib_imagehlp_main = yes; then
12337   cat >>confdefs.h <<_ACEOF
12338 #define HAVE_LIBIMAGEHLP 1
12339 _ACEOF
12340
12341   LIBS="-limagehlp $LIBS"
12342
12343 fi
12344
12345
12346 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12347 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12348 if test "${ac_cv_lib_psapi_main+set}" = set; then
12349   echo $ECHO_N "(cached) $ECHO_C" >&6
12350 else
12351   ac_check_lib_save_LIBS=$LIBS
12352 LIBS="-lpsapi  $LIBS"
12353 cat >conftest.$ac_ext <<_ACEOF
12354 /* confdefs.h.  */
12355 _ACEOF
12356 cat confdefs.h >>conftest.$ac_ext
12357 cat >>conftest.$ac_ext <<_ACEOF
12358 /* end confdefs.h.  */
12359
12360
12361 int
12362 main ()
12363 {
12364 return main ();
12365   ;
12366   return 0;
12367 }
12368 _ACEOF
12369 rm -f conftest.$ac_objext conftest$ac_exeext
12370 if { (ac_try="$ac_link"
12371 case "(($ac_try" in
12372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12373   *) ac_try_echo=$ac_try;;
12374 esac
12375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12376   (eval "$ac_link") 2>conftest.er1
12377   ac_status=$?
12378   grep -v '^ *+' conftest.er1 >conftest.err
12379   rm -f conftest.er1
12380   cat conftest.err >&5
12381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382   (exit $ac_status); } &&
12383          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12384   { (case "(($ac_try" in
12385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12386   *) ac_try_echo=$ac_try;;
12387 esac
12388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12389   (eval "$ac_try") 2>&5
12390   ac_status=$?
12391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392   (exit $ac_status); }; } &&
12393          { ac_try='test -s conftest$ac_exeext'
12394   { (case "(($ac_try" in
12395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396   *) ac_try_echo=$ac_try;;
12397 esac
12398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12399   (eval "$ac_try") 2>&5
12400   ac_status=$?
12401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402   (exit $ac_status); }; }; then
12403   ac_cv_lib_psapi_main=yes
12404 else
12405   echo "$as_me: failed program was:" >&5
12406 sed 's/^/| /' conftest.$ac_ext >&5
12407
12408         ac_cv_lib_psapi_main=no
12409 fi
12410
12411 rm -f core conftest.err conftest.$ac_objext \
12412       conftest$ac_exeext conftest.$ac_ext
12413 LIBS=$ac_check_lib_save_LIBS
12414 fi
12415 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12416 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12417 if test $ac_cv_lib_psapi_main = yes; then
12418   cat >>confdefs.h <<_ACEOF
12419 #define HAVE_LIBPSAPI 1
12420 _ACEOF
12421
12422   LIBS="-lpsapi $LIBS"
12423
12424 fi
12425
12426 fi
12427
12428 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12429 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12430 if test "${ac_cv_search_dlopen+set}" = set; then
12431   echo $ECHO_N "(cached) $ECHO_C" >&6
12432 else
12433   ac_func_search_save_LIBS=$LIBS
12434 cat >conftest.$ac_ext <<_ACEOF
12435 /* confdefs.h.  */
12436 _ACEOF
12437 cat confdefs.h >>conftest.$ac_ext
12438 cat >>conftest.$ac_ext <<_ACEOF
12439 /* end confdefs.h.  */
12440
12441 /* Override any GCC internal prototype to avoid an error.
12442    Use char because int might match the return type of a GCC
12443    builtin and then its argument prototype would still apply.  */
12444 #ifdef __cplusplus
12445 extern "C"
12446 #endif
12447 char dlopen ();
12448 int
12449 main ()
12450 {
12451 return dlopen ();
12452   ;
12453   return 0;
12454 }
12455 _ACEOF
12456 for ac_lib in '' dl; do
12457   if test -z "$ac_lib"; then
12458     ac_res="none required"
12459   else
12460     ac_res=-l$ac_lib
12461     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12462   fi
12463   rm -f conftest.$ac_objext conftest$ac_exeext
12464 if { (ac_try="$ac_link"
12465 case "(($ac_try" in
12466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12467   *) ac_try_echo=$ac_try;;
12468 esac
12469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12470   (eval "$ac_link") 2>conftest.er1
12471   ac_status=$?
12472   grep -v '^ *+' conftest.er1 >conftest.err
12473   rm -f conftest.er1
12474   cat conftest.err >&5
12475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476   (exit $ac_status); } &&
12477          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12478   { (case "(($ac_try" in
12479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12480   *) ac_try_echo=$ac_try;;
12481 esac
12482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12483   (eval "$ac_try") 2>&5
12484   ac_status=$?
12485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486   (exit $ac_status); }; } &&
12487          { ac_try='test -s conftest$ac_exeext'
12488   { (case "(($ac_try" in
12489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12490   *) ac_try_echo=$ac_try;;
12491 esac
12492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12493   (eval "$ac_try") 2>&5
12494   ac_status=$?
12495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496   (exit $ac_status); }; }; then
12497   ac_cv_search_dlopen=$ac_res
12498 else
12499   echo "$as_me: failed program was:" >&5
12500 sed 's/^/| /' conftest.$ac_ext >&5
12501
12502
12503 fi
12504
12505 rm -f core conftest.err conftest.$ac_objext \
12506       conftest$ac_exeext
12507   if test "${ac_cv_search_dlopen+set}" = set; then
12508   break
12509 fi
12510 done
12511 if test "${ac_cv_search_dlopen+set}" = set; then
12512   :
12513 else
12514   ac_cv_search_dlopen=no
12515 fi
12516 rm conftest.$ac_ext
12517 LIBS=$ac_func_search_save_LIBS
12518 fi
12519 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12520 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12521 ac_res=$ac_cv_search_dlopen
12522 if test "$ac_res" != no; then
12523   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12524
12525 cat >>confdefs.h <<\_ACEOF
12526 #define HAVE_DLOPEN 1
12527 _ACEOF
12528
12529 else
12530   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12531 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12532 fi
12533
12534
12535 if test "$llvm_cv_enable_libffi" = "yes" ; then
12536   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12537 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12538 if test "${ac_cv_search_ffi_call+set}" = set; then
12539   echo $ECHO_N "(cached) $ECHO_C" >&6
12540 else
12541   ac_func_search_save_LIBS=$LIBS
12542 cat >conftest.$ac_ext <<_ACEOF
12543 /* confdefs.h.  */
12544 _ACEOF
12545 cat confdefs.h >>conftest.$ac_ext
12546 cat >>conftest.$ac_ext <<_ACEOF
12547 /* end confdefs.h.  */
12548
12549 /* Override any GCC internal prototype to avoid an error.
12550    Use char because int might match the return type of a GCC
12551    builtin and then its argument prototype would still apply.  */
12552 #ifdef __cplusplus
12553 extern "C"
12554 #endif
12555 char ffi_call ();
12556 int
12557 main ()
12558 {
12559 return ffi_call ();
12560   ;
12561   return 0;
12562 }
12563 _ACEOF
12564 for ac_lib in '' ffi; do
12565   if test -z "$ac_lib"; then
12566     ac_res="none required"
12567   else
12568     ac_res=-l$ac_lib
12569     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12570   fi
12571   rm -f conftest.$ac_objext conftest$ac_exeext
12572 if { (ac_try="$ac_link"
12573 case "(($ac_try" in
12574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12575   *) ac_try_echo=$ac_try;;
12576 esac
12577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12578   (eval "$ac_link") 2>conftest.er1
12579   ac_status=$?
12580   grep -v '^ *+' conftest.er1 >conftest.err
12581   rm -f conftest.er1
12582   cat conftest.err >&5
12583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584   (exit $ac_status); } &&
12585          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12586   { (case "(($ac_try" in
12587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12588   *) ac_try_echo=$ac_try;;
12589 esac
12590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12591   (eval "$ac_try") 2>&5
12592   ac_status=$?
12593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594   (exit $ac_status); }; } &&
12595          { ac_try='test -s conftest$ac_exeext'
12596   { (case "(($ac_try" in
12597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12598   *) ac_try_echo=$ac_try;;
12599 esac
12600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12601   (eval "$ac_try") 2>&5
12602   ac_status=$?
12603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604   (exit $ac_status); }; }; then
12605   ac_cv_search_ffi_call=$ac_res
12606 else
12607   echo "$as_me: failed program was:" >&5
12608 sed 's/^/| /' conftest.$ac_ext >&5
12609
12610
12611 fi
12612
12613 rm -f core conftest.err conftest.$ac_objext \
12614       conftest$ac_exeext
12615   if test "${ac_cv_search_ffi_call+set}" = set; then
12616   break
12617 fi
12618 done
12619 if test "${ac_cv_search_ffi_call+set}" = set; then
12620   :
12621 else
12622   ac_cv_search_ffi_call=no
12623 fi
12624 rm conftest.$ac_ext
12625 LIBS=$ac_func_search_save_LIBS
12626 fi
12627 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12628 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12629 ac_res=$ac_cv_search_ffi_call
12630 if test "$ac_res" != no; then
12631   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12632
12633 cat >>confdefs.h <<\_ACEOF
12634 #define HAVE_FFI_CALL 1
12635 _ACEOF
12636
12637 else
12638   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12639 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12640    { (exit 1); exit 1; }; }
12641 fi
12642
12643 fi
12644
12645 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12646 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12647 if test "${ac_cv_search_mallinfo+set}" = set; then
12648   echo $ECHO_N "(cached) $ECHO_C" >&6
12649 else
12650   ac_func_search_save_LIBS=$LIBS
12651 cat >conftest.$ac_ext <<_ACEOF
12652 /* confdefs.h.  */
12653 _ACEOF
12654 cat confdefs.h >>conftest.$ac_ext
12655 cat >>conftest.$ac_ext <<_ACEOF
12656 /* end confdefs.h.  */
12657
12658 /* Override any GCC internal prototype to avoid an error.
12659    Use char because int might match the return type of a GCC
12660    builtin and then its argument prototype would still apply.  */
12661 #ifdef __cplusplus
12662 extern "C"
12663 #endif
12664 char mallinfo ();
12665 int
12666 main ()
12667 {
12668 return mallinfo ();
12669   ;
12670   return 0;
12671 }
12672 _ACEOF
12673 for ac_lib in '' malloc; do
12674   if test -z "$ac_lib"; then
12675     ac_res="none required"
12676   else
12677     ac_res=-l$ac_lib
12678     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12679   fi
12680   rm -f conftest.$ac_objext conftest$ac_exeext
12681 if { (ac_try="$ac_link"
12682 case "(($ac_try" in
12683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12684   *) ac_try_echo=$ac_try;;
12685 esac
12686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12687   (eval "$ac_link") 2>conftest.er1
12688   ac_status=$?
12689   grep -v '^ *+' conftest.er1 >conftest.err
12690   rm -f conftest.er1
12691   cat conftest.err >&5
12692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693   (exit $ac_status); } &&
12694          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12695   { (case "(($ac_try" in
12696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12697   *) ac_try_echo=$ac_try;;
12698 esac
12699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12700   (eval "$ac_try") 2>&5
12701   ac_status=$?
12702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703   (exit $ac_status); }; } &&
12704          { ac_try='test -s conftest$ac_exeext'
12705   { (case "(($ac_try" in
12706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12707   *) ac_try_echo=$ac_try;;
12708 esac
12709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12710   (eval "$ac_try") 2>&5
12711   ac_status=$?
12712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713   (exit $ac_status); }; }; then
12714   ac_cv_search_mallinfo=$ac_res
12715 else
12716   echo "$as_me: failed program was:" >&5
12717 sed 's/^/| /' conftest.$ac_ext >&5
12718
12719
12720 fi
12721
12722 rm -f core conftest.err conftest.$ac_objext \
12723       conftest$ac_exeext
12724   if test "${ac_cv_search_mallinfo+set}" = set; then
12725   break
12726 fi
12727 done
12728 if test "${ac_cv_search_mallinfo+set}" = set; then
12729   :
12730 else
12731   ac_cv_search_mallinfo=no
12732 fi
12733 rm conftest.$ac_ext
12734 LIBS=$ac_func_search_save_LIBS
12735 fi
12736 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12737 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12738 ac_res=$ac_cv_search_mallinfo
12739 if test "$ac_res" != no; then
12740   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12741
12742 cat >>confdefs.h <<\_ACEOF
12743 #define HAVE_MALLINFO 1
12744 _ACEOF
12745
12746 fi
12747
12748
12749 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12750
12751 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12752 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12753 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12754   echo $ECHO_N "(cached) $ECHO_C" >&6
12755 else
12756   ac_check_lib_save_LIBS=$LIBS
12757 LIBS="-lpthread  $LIBS"
12758 cat >conftest.$ac_ext <<_ACEOF
12759 /* confdefs.h.  */
12760 _ACEOF
12761 cat confdefs.h >>conftest.$ac_ext
12762 cat >>conftest.$ac_ext <<_ACEOF
12763 /* end confdefs.h.  */
12764
12765 /* Override any GCC internal prototype to avoid an error.
12766    Use char because int might match the return type of a GCC
12767    builtin and then its argument prototype would still apply.  */
12768 #ifdef __cplusplus
12769 extern "C"
12770 #endif
12771 char pthread_mutex_init ();
12772 int
12773 main ()
12774 {
12775 return pthread_mutex_init ();
12776   ;
12777   return 0;
12778 }
12779 _ACEOF
12780 rm -f conftest.$ac_objext conftest$ac_exeext
12781 if { (ac_try="$ac_link"
12782 case "(($ac_try" in
12783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12784   *) ac_try_echo=$ac_try;;
12785 esac
12786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12787   (eval "$ac_link") 2>conftest.er1
12788   ac_status=$?
12789   grep -v '^ *+' conftest.er1 >conftest.err
12790   rm -f conftest.er1
12791   cat conftest.err >&5
12792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793   (exit $ac_status); } &&
12794          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12795   { (case "(($ac_try" in
12796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12797   *) ac_try_echo=$ac_try;;
12798 esac
12799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12800   (eval "$ac_try") 2>&5
12801   ac_status=$?
12802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803   (exit $ac_status); }; } &&
12804          { ac_try='test -s conftest$ac_exeext'
12805   { (case "(($ac_try" in
12806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12807   *) ac_try_echo=$ac_try;;
12808 esac
12809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12810   (eval "$ac_try") 2>&5
12811   ac_status=$?
12812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813   (exit $ac_status); }; }; then
12814   ac_cv_lib_pthread_pthread_mutex_init=yes
12815 else
12816   echo "$as_me: failed program was:" >&5
12817 sed 's/^/| /' conftest.$ac_ext >&5
12818
12819         ac_cv_lib_pthread_pthread_mutex_init=no
12820 fi
12821
12822 rm -f core conftest.err conftest.$ac_objext \
12823       conftest$ac_exeext conftest.$ac_ext
12824 LIBS=$ac_check_lib_save_LIBS
12825 fi
12826 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12827 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12828 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12829   cat >>confdefs.h <<_ACEOF
12830 #define HAVE_LIBPTHREAD 1
12831 _ACEOF
12832
12833   LIBS="-lpthread $LIBS"
12834
12835 fi
12836
12837   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12838 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12839 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12840   echo $ECHO_N "(cached) $ECHO_C" >&6
12841 else
12842   ac_func_search_save_LIBS=$LIBS
12843 cat >conftest.$ac_ext <<_ACEOF
12844 /* confdefs.h.  */
12845 _ACEOF
12846 cat confdefs.h >>conftest.$ac_ext
12847 cat >>conftest.$ac_ext <<_ACEOF
12848 /* end confdefs.h.  */
12849
12850 /* Override any GCC internal prototype to avoid an error.
12851    Use char because int might match the return type of a GCC
12852    builtin and then its argument prototype would still apply.  */
12853 #ifdef __cplusplus
12854 extern "C"
12855 #endif
12856 char pthread_mutex_lock ();
12857 int
12858 main ()
12859 {
12860 return pthread_mutex_lock ();
12861   ;
12862   return 0;
12863 }
12864 _ACEOF
12865 for ac_lib in '' pthread; do
12866   if test -z "$ac_lib"; then
12867     ac_res="none required"
12868   else
12869     ac_res=-l$ac_lib
12870     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12871   fi
12872   rm -f conftest.$ac_objext conftest$ac_exeext
12873 if { (ac_try="$ac_link"
12874 case "(($ac_try" in
12875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12876   *) ac_try_echo=$ac_try;;
12877 esac
12878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12879   (eval "$ac_link") 2>conftest.er1
12880   ac_status=$?
12881   grep -v '^ *+' conftest.er1 >conftest.err
12882   rm -f conftest.er1
12883   cat conftest.err >&5
12884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885   (exit $ac_status); } &&
12886          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12887   { (case "(($ac_try" in
12888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12889   *) ac_try_echo=$ac_try;;
12890 esac
12891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12892   (eval "$ac_try") 2>&5
12893   ac_status=$?
12894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895   (exit $ac_status); }; } &&
12896          { ac_try='test -s conftest$ac_exeext'
12897   { (case "(($ac_try" in
12898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12899   *) ac_try_echo=$ac_try;;
12900 esac
12901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12902   (eval "$ac_try") 2>&5
12903   ac_status=$?
12904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905   (exit $ac_status); }; }; then
12906   ac_cv_search_pthread_mutex_lock=$ac_res
12907 else
12908   echo "$as_me: failed program was:" >&5
12909 sed 's/^/| /' conftest.$ac_ext >&5
12910
12911
12912 fi
12913
12914 rm -f core conftest.err conftest.$ac_objext \
12915       conftest$ac_exeext
12916   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12917   break
12918 fi
12919 done
12920 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12921   :
12922 else
12923   ac_cv_search_pthread_mutex_lock=no
12924 fi
12925 rm conftest.$ac_ext
12926 LIBS=$ac_func_search_save_LIBS
12927 fi
12928 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12929 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12930 ac_res=$ac_cv_search_pthread_mutex_lock
12931 if test "$ac_res" != no; then
12932   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12933
12934 cat >>confdefs.h <<\_ACEOF
12935 #define HAVE_PTHREAD_MUTEX_LOCK 1
12936 _ACEOF
12937
12938 fi
12939
12940   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12941 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12942 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12943   echo $ECHO_N "(cached) $ECHO_C" >&6
12944 else
12945   ac_func_search_save_LIBS=$LIBS
12946 cat >conftest.$ac_ext <<_ACEOF
12947 /* confdefs.h.  */
12948 _ACEOF
12949 cat confdefs.h >>conftest.$ac_ext
12950 cat >>conftest.$ac_ext <<_ACEOF
12951 /* end confdefs.h.  */
12952
12953 /* Override any GCC internal prototype to avoid an error.
12954    Use char because int might match the return type of a GCC
12955    builtin and then its argument prototype would still apply.  */
12956 #ifdef __cplusplus
12957 extern "C"
12958 #endif
12959 char pthread_rwlock_init ();
12960 int
12961 main ()
12962 {
12963 return pthread_rwlock_init ();
12964   ;
12965   return 0;
12966 }
12967 _ACEOF
12968 for ac_lib in '' pthread; do
12969   if test -z "$ac_lib"; then
12970     ac_res="none required"
12971   else
12972     ac_res=-l$ac_lib
12973     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12974   fi
12975   rm -f conftest.$ac_objext conftest$ac_exeext
12976 if { (ac_try="$ac_link"
12977 case "(($ac_try" in
12978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12979   *) ac_try_echo=$ac_try;;
12980 esac
12981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12982   (eval "$ac_link") 2>conftest.er1
12983   ac_status=$?
12984   grep -v '^ *+' conftest.er1 >conftest.err
12985   rm -f conftest.er1
12986   cat conftest.err >&5
12987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988   (exit $ac_status); } &&
12989          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12990   { (case "(($ac_try" in
12991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12992   *) ac_try_echo=$ac_try;;
12993 esac
12994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12995   (eval "$ac_try") 2>&5
12996   ac_status=$?
12997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998   (exit $ac_status); }; } &&
12999          { ac_try='test -s conftest$ac_exeext'
13000   { (case "(($ac_try" in
13001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13002   *) ac_try_echo=$ac_try;;
13003 esac
13004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13005   (eval "$ac_try") 2>&5
13006   ac_status=$?
13007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008   (exit $ac_status); }; }; then
13009   ac_cv_search_pthread_rwlock_init=$ac_res
13010 else
13011   echo "$as_me: failed program was:" >&5
13012 sed 's/^/| /' conftest.$ac_ext >&5
13013
13014
13015 fi
13016
13017 rm -f core conftest.err conftest.$ac_objext \
13018       conftest$ac_exeext
13019   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13020   break
13021 fi
13022 done
13023 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13024   :
13025 else
13026   ac_cv_search_pthread_rwlock_init=no
13027 fi
13028 rm conftest.$ac_ext
13029 LIBS=$ac_func_search_save_LIBS
13030 fi
13031 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13032 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13033 ac_res=$ac_cv_search_pthread_rwlock_init
13034 if test "$ac_res" != no; then
13035   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13036
13037 cat >>confdefs.h <<\_ACEOF
13038 #define HAVE_PTHREAD_RWLOCK_INIT 1
13039 _ACEOF
13040
13041 fi
13042
13043   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13044 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13045 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13046   echo $ECHO_N "(cached) $ECHO_C" >&6
13047 else
13048   ac_func_search_save_LIBS=$LIBS
13049 cat >conftest.$ac_ext <<_ACEOF
13050 /* confdefs.h.  */
13051 _ACEOF
13052 cat confdefs.h >>conftest.$ac_ext
13053 cat >>conftest.$ac_ext <<_ACEOF
13054 /* end confdefs.h.  */
13055
13056 /* Override any GCC internal prototype to avoid an error.
13057    Use char because int might match the return type of a GCC
13058    builtin and then its argument prototype would still apply.  */
13059 #ifdef __cplusplus
13060 extern "C"
13061 #endif
13062 char pthread_getspecific ();
13063 int
13064 main ()
13065 {
13066 return pthread_getspecific ();
13067   ;
13068   return 0;
13069 }
13070 _ACEOF
13071 for ac_lib in '' pthread; do
13072   if test -z "$ac_lib"; then
13073     ac_res="none required"
13074   else
13075     ac_res=-l$ac_lib
13076     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13077   fi
13078   rm -f conftest.$ac_objext conftest$ac_exeext
13079 if { (ac_try="$ac_link"
13080 case "(($ac_try" in
13081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13082   *) ac_try_echo=$ac_try;;
13083 esac
13084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13085   (eval "$ac_link") 2>conftest.er1
13086   ac_status=$?
13087   grep -v '^ *+' conftest.er1 >conftest.err
13088   rm -f conftest.er1
13089   cat conftest.err >&5
13090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091   (exit $ac_status); } &&
13092          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13093   { (case "(($ac_try" in
13094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13095   *) ac_try_echo=$ac_try;;
13096 esac
13097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13098   (eval "$ac_try") 2>&5
13099   ac_status=$?
13100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101   (exit $ac_status); }; } &&
13102          { ac_try='test -s conftest$ac_exeext'
13103   { (case "(($ac_try" in
13104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13105   *) ac_try_echo=$ac_try;;
13106 esac
13107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13108   (eval "$ac_try") 2>&5
13109   ac_status=$?
13110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111   (exit $ac_status); }; }; then
13112   ac_cv_search_pthread_getspecific=$ac_res
13113 else
13114   echo "$as_me: failed program was:" >&5
13115 sed 's/^/| /' conftest.$ac_ext >&5
13116
13117
13118 fi
13119
13120 rm -f core conftest.err conftest.$ac_objext \
13121       conftest$ac_exeext
13122   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13123   break
13124 fi
13125 done
13126 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13127   :
13128 else
13129   ac_cv_search_pthread_getspecific=no
13130 fi
13131 rm conftest.$ac_ext
13132 LIBS=$ac_func_search_save_LIBS
13133 fi
13134 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13135 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13136 ac_res=$ac_cv_search_pthread_getspecific
13137 if test "$ac_res" != no; then
13138   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13139
13140 cat >>confdefs.h <<\_ACEOF
13141 #define HAVE_PTHREAD_GETSPECIFIC 1
13142 _ACEOF
13143
13144 fi
13145
13146 fi
13147
13148
13149 # Check whether --with-udis86 was given.
13150 if test "${with_udis86+set}" = set; then
13151   withval=$with_udis86;
13152       USE_UDIS86=1
13153
13154       case "$withval" in
13155         /usr/lib|yes) ;;
13156         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13157       esac
13158
13159 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13160 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13161 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13162   echo $ECHO_N "(cached) $ECHO_C" >&6
13163 else
13164   ac_check_lib_save_LIBS=$LIBS
13165 LIBS="-ludis86  $LIBS"
13166 cat >conftest.$ac_ext <<_ACEOF
13167 /* confdefs.h.  */
13168 _ACEOF
13169 cat confdefs.h >>conftest.$ac_ext
13170 cat >>conftest.$ac_ext <<_ACEOF
13171 /* end confdefs.h.  */
13172
13173 /* Override any GCC internal prototype to avoid an error.
13174    Use char because int might match the return type of a GCC
13175    builtin and then its argument prototype would still apply.  */
13176 #ifdef __cplusplus
13177 extern "C"
13178 #endif
13179 char ud_init ();
13180 int
13181 main ()
13182 {
13183 return ud_init ();
13184   ;
13185   return 0;
13186 }
13187 _ACEOF
13188 rm -f conftest.$ac_objext conftest$ac_exeext
13189 if { (ac_try="$ac_link"
13190 case "(($ac_try" in
13191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13192   *) ac_try_echo=$ac_try;;
13193 esac
13194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13195   (eval "$ac_link") 2>conftest.er1
13196   ac_status=$?
13197   grep -v '^ *+' conftest.er1 >conftest.err
13198   rm -f conftest.er1
13199   cat conftest.err >&5
13200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201   (exit $ac_status); } &&
13202          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13203   { (case "(($ac_try" in
13204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13205   *) ac_try_echo=$ac_try;;
13206 esac
13207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13208   (eval "$ac_try") 2>&5
13209   ac_status=$?
13210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211   (exit $ac_status); }; } &&
13212          { ac_try='test -s conftest$ac_exeext'
13213   { (case "(($ac_try" in
13214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13215   *) ac_try_echo=$ac_try;;
13216 esac
13217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13218   (eval "$ac_try") 2>&5
13219   ac_status=$?
13220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221   (exit $ac_status); }; }; then
13222   ac_cv_lib_udis86_ud_init=yes
13223 else
13224   echo "$as_me: failed program was:" >&5
13225 sed 's/^/| /' conftest.$ac_ext >&5
13226
13227         ac_cv_lib_udis86_ud_init=no
13228 fi
13229
13230 rm -f core conftest.err conftest.$ac_objext \
13231       conftest$ac_exeext conftest.$ac_ext
13232 LIBS=$ac_check_lib_save_LIBS
13233 fi
13234 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13235 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13236 if test $ac_cv_lib_udis86_ud_init = yes; then
13237   cat >>confdefs.h <<_ACEOF
13238 #define HAVE_LIBUDIS86 1
13239 _ACEOF
13240
13241   LIBS="-ludis86 $LIBS"
13242
13243 else
13244
13245         echo "Error! You need to have libudis86 around."
13246         exit -1
13247
13248 fi
13249
13250
13251 else
13252   USE_UDIS86=0
13253
13254 fi
13255
13256
13257 cat >>confdefs.h <<_ACEOF
13258 #define USE_UDIS86 $USE_UDIS86
13259 _ACEOF
13260
13261
13262
13263 # Check whether --with-oprofile was given.
13264 if test "${with_oprofile+set}" = set; then
13265   withval=$with_oprofile;
13266       USE_OPROFILE=1
13267
13268       case "$withval" in
13269         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13270         no) llvm_cv_oppath=
13271             USE_OPROFILE=0
13272  ;;
13273         *) llvm_cv_oppath="${withval}/lib/oprofile"
13274            CPPFLAGS="-I${withval}/include";;
13275       esac
13276       if test -n "$llvm_cv_oppath" ; then
13277         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13278                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13279 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13280 if test "${ac_cv_search_bfd_init+set}" = set; then
13281   echo $ECHO_N "(cached) $ECHO_C" >&6
13282 else
13283   ac_func_search_save_LIBS=$LIBS
13284 cat >conftest.$ac_ext <<_ACEOF
13285 /* confdefs.h.  */
13286 _ACEOF
13287 cat confdefs.h >>conftest.$ac_ext
13288 cat >>conftest.$ac_ext <<_ACEOF
13289 /* end confdefs.h.  */
13290
13291 /* Override any GCC internal prototype to avoid an error.
13292    Use char because int might match the return type of a GCC
13293    builtin and then its argument prototype would still apply.  */
13294 #ifdef __cplusplus
13295 extern "C"
13296 #endif
13297 char bfd_init ();
13298 int
13299 main ()
13300 {
13301 return bfd_init ();
13302   ;
13303   return 0;
13304 }
13305 _ACEOF
13306 for ac_lib in '' bfd; do
13307   if test -z "$ac_lib"; then
13308     ac_res="none required"
13309   else
13310     ac_res=-l$ac_lib
13311     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13312   fi
13313   rm -f conftest.$ac_objext conftest$ac_exeext
13314 if { (ac_try="$ac_link"
13315 case "(($ac_try" in
13316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13317   *) ac_try_echo=$ac_try;;
13318 esac
13319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13320   (eval "$ac_link") 2>conftest.er1
13321   ac_status=$?
13322   grep -v '^ *+' conftest.er1 >conftest.err
13323   rm -f conftest.er1
13324   cat conftest.err >&5
13325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326   (exit $ac_status); } &&
13327          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13328   { (case "(($ac_try" in
13329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13330   *) ac_try_echo=$ac_try;;
13331 esac
13332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13333   (eval "$ac_try") 2>&5
13334   ac_status=$?
13335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336   (exit $ac_status); }; } &&
13337          { ac_try='test -s conftest$ac_exeext'
13338   { (case "(($ac_try" in
13339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13340   *) ac_try_echo=$ac_try;;
13341 esac
13342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13343   (eval "$ac_try") 2>&5
13344   ac_status=$?
13345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346   (exit $ac_status); }; }; then
13347   ac_cv_search_bfd_init=$ac_res
13348 else
13349   echo "$as_me: failed program was:" >&5
13350 sed 's/^/| /' conftest.$ac_ext >&5
13351
13352
13353 fi
13354
13355 rm -f core conftest.err conftest.$ac_objext \
13356       conftest$ac_exeext
13357   if test "${ac_cv_search_bfd_init+set}" = set; then
13358   break
13359 fi
13360 done
13361 if test "${ac_cv_search_bfd_init+set}" = set; then
13362   :
13363 else
13364   ac_cv_search_bfd_init=no
13365 fi
13366 rm conftest.$ac_ext
13367 LIBS=$ac_func_search_save_LIBS
13368 fi
13369 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13370 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13371 ac_res=$ac_cv_search_bfd_init
13372 if test "$ac_res" != no; then
13373   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13374
13375 fi
13376
13377         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13378 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13379 if test "${ac_cv_search_op_open_agent+set}" = set; then
13380   echo $ECHO_N "(cached) $ECHO_C" >&6
13381 else
13382   ac_func_search_save_LIBS=$LIBS
13383 cat >conftest.$ac_ext <<_ACEOF
13384 /* confdefs.h.  */
13385 _ACEOF
13386 cat confdefs.h >>conftest.$ac_ext
13387 cat >>conftest.$ac_ext <<_ACEOF
13388 /* end confdefs.h.  */
13389
13390 /* Override any GCC internal prototype to avoid an error.
13391    Use char because int might match the return type of a GCC
13392    builtin and then its argument prototype would still apply.  */
13393 #ifdef __cplusplus
13394 extern "C"
13395 #endif
13396 char op_open_agent ();
13397 int
13398 main ()
13399 {
13400 return op_open_agent ();
13401   ;
13402   return 0;
13403 }
13404 _ACEOF
13405 for ac_lib in '' opagent; do
13406   if test -z "$ac_lib"; then
13407     ac_res="none required"
13408   else
13409     ac_res=-l$ac_lib
13410     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13411   fi
13412   rm -f conftest.$ac_objext conftest$ac_exeext
13413 if { (ac_try="$ac_link"
13414 case "(($ac_try" in
13415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416   *) ac_try_echo=$ac_try;;
13417 esac
13418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419   (eval "$ac_link") 2>conftest.er1
13420   ac_status=$?
13421   grep -v '^ *+' conftest.er1 >conftest.err
13422   rm -f conftest.er1
13423   cat conftest.err >&5
13424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425   (exit $ac_status); } &&
13426          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13427   { (case "(($ac_try" in
13428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429   *) ac_try_echo=$ac_try;;
13430 esac
13431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432   (eval "$ac_try") 2>&5
13433   ac_status=$?
13434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435   (exit $ac_status); }; } &&
13436          { ac_try='test -s conftest$ac_exeext'
13437   { (case "(($ac_try" in
13438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439   *) ac_try_echo=$ac_try;;
13440 esac
13441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442   (eval "$ac_try") 2>&5
13443   ac_status=$?
13444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445   (exit $ac_status); }; }; then
13446   ac_cv_search_op_open_agent=$ac_res
13447 else
13448   echo "$as_me: failed program was:" >&5
13449 sed 's/^/| /' conftest.$ac_ext >&5
13450
13451
13452 fi
13453
13454 rm -f core conftest.err conftest.$ac_objext \
13455       conftest$ac_exeext
13456   if test "${ac_cv_search_op_open_agent+set}" = set; then
13457   break
13458 fi
13459 done
13460 if test "${ac_cv_search_op_open_agent+set}" = set; then
13461   :
13462 else
13463   ac_cv_search_op_open_agent=no
13464 fi
13465 rm conftest.$ac_ext
13466 LIBS=$ac_func_search_save_LIBS
13467 fi
13468 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13469 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13470 ac_res=$ac_cv_search_op_open_agent
13471 if test "$ac_res" != no; then
13472   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13473
13474 else
13475
13476           echo "Error! You need to have libopagent around."
13477           exit -1
13478
13479 fi
13480
13481         if test "${ac_cv_header_opagent_h+set}" = set; then
13482   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13483 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13484 if test "${ac_cv_header_opagent_h+set}" = set; then
13485   echo $ECHO_N "(cached) $ECHO_C" >&6
13486 fi
13487 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13488 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13489 else
13490   # Is the header compilable?
13491 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13492 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13493 cat >conftest.$ac_ext <<_ACEOF
13494 /* confdefs.h.  */
13495 _ACEOF
13496 cat confdefs.h >>conftest.$ac_ext
13497 cat >>conftest.$ac_ext <<_ACEOF
13498 /* end confdefs.h.  */
13499 $ac_includes_default
13500 #include <opagent.h>
13501 _ACEOF
13502 rm -f conftest.$ac_objext
13503 if { (ac_try="$ac_compile"
13504 case "(($ac_try" in
13505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13506   *) ac_try_echo=$ac_try;;
13507 esac
13508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13509   (eval "$ac_compile") 2>conftest.er1
13510   ac_status=$?
13511   grep -v '^ *+' conftest.er1 >conftest.err
13512   rm -f conftest.er1
13513   cat conftest.err >&5
13514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515   (exit $ac_status); } &&
13516          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13517   { (case "(($ac_try" in
13518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519   *) ac_try_echo=$ac_try;;
13520 esac
13521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13522   (eval "$ac_try") 2>&5
13523   ac_status=$?
13524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525   (exit $ac_status); }; } &&
13526          { ac_try='test -s conftest.$ac_objext'
13527   { (case "(($ac_try" in
13528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13529   *) ac_try_echo=$ac_try;;
13530 esac
13531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13532   (eval "$ac_try") 2>&5
13533   ac_status=$?
13534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535   (exit $ac_status); }; }; then
13536   ac_header_compiler=yes
13537 else
13538   echo "$as_me: failed program was:" >&5
13539 sed 's/^/| /' conftest.$ac_ext >&5
13540
13541         ac_header_compiler=no
13542 fi
13543
13544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13545 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13546 echo "${ECHO_T}$ac_header_compiler" >&6; }
13547
13548 # Is the header present?
13549 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13550 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13551 cat >conftest.$ac_ext <<_ACEOF
13552 /* confdefs.h.  */
13553 _ACEOF
13554 cat confdefs.h >>conftest.$ac_ext
13555 cat >>conftest.$ac_ext <<_ACEOF
13556 /* end confdefs.h.  */
13557 #include <opagent.h>
13558 _ACEOF
13559 if { (ac_try="$ac_cpp conftest.$ac_ext"
13560 case "(($ac_try" in
13561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13562   *) ac_try_echo=$ac_try;;
13563 esac
13564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13565   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13566   ac_status=$?
13567   grep -v '^ *+' conftest.er1 >conftest.err
13568   rm -f conftest.er1
13569   cat conftest.err >&5
13570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571   (exit $ac_status); } >/dev/null; then
13572   if test -s conftest.err; then
13573     ac_cpp_err=$ac_c_preproc_warn_flag
13574     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13575   else
13576     ac_cpp_err=
13577   fi
13578 else
13579   ac_cpp_err=yes
13580 fi
13581 if test -z "$ac_cpp_err"; then
13582   ac_header_preproc=yes
13583 else
13584   echo "$as_me: failed program was:" >&5
13585 sed 's/^/| /' conftest.$ac_ext >&5
13586
13587   ac_header_preproc=no
13588 fi
13589
13590 rm -f conftest.err conftest.$ac_ext
13591 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13592 echo "${ECHO_T}$ac_header_preproc" >&6; }
13593
13594 # So?  What about this header?
13595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13596   yes:no: )
13597     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13598 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13599     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13600 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13601     ac_header_preproc=yes
13602     ;;
13603   no:yes:* )
13604     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13605 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13606     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13607 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13608     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13609 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13610     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13611 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13612     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13613 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13614     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13615 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13616     ( cat <<\_ASBOX
13617 ## ------------------------------ ##
13618 ## Report this to bugs@yourdomain ##
13619 ## ------------------------------ ##
13620 _ASBOX
13621      ) | sed "s/^/$as_me: WARNING:     /" >&2
13622     ;;
13623 esac
13624 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13625 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13626 if test "${ac_cv_header_opagent_h+set}" = set; then
13627   echo $ECHO_N "(cached) $ECHO_C" >&6
13628 else
13629   ac_cv_header_opagent_h=$ac_header_preproc
13630 fi
13631 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13632 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13633
13634 fi
13635 if test $ac_cv_header_opagent_h = yes; then
13636   :
13637 else
13638
13639           echo "Error! You need to have opagent.h around."
13640           exit -1
13641
13642 fi
13643
13644
13645       fi
13646
13647 else
13648
13649       USE_OPROFILE=0
13650
13651
13652 fi
13653
13654
13655 cat >>confdefs.h <<_ACEOF
13656 #define USE_OPROFILE $USE_OPROFILE
13657 _ACEOF
13658
13659
13660
13661
13662
13663
13664
13665
13666 ac_header_dirent=no
13667 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13668   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13669 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13670 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13672   echo $ECHO_N "(cached) $ECHO_C" >&6
13673 else
13674   cat >conftest.$ac_ext <<_ACEOF
13675 /* confdefs.h.  */
13676 _ACEOF
13677 cat confdefs.h >>conftest.$ac_ext
13678 cat >>conftest.$ac_ext <<_ACEOF
13679 /* end confdefs.h.  */
13680 #include <sys/types.h>
13681 #include <$ac_hdr>
13682
13683 int
13684 main ()
13685 {
13686 if ((DIR *) 0)
13687 return 0;
13688   ;
13689   return 0;
13690 }
13691 _ACEOF
13692 rm -f conftest.$ac_objext
13693 if { (ac_try="$ac_compile"
13694 case "(($ac_try" in
13695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13696   *) ac_try_echo=$ac_try;;
13697 esac
13698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13699   (eval "$ac_compile") 2>conftest.er1
13700   ac_status=$?
13701   grep -v '^ *+' conftest.er1 >conftest.err
13702   rm -f conftest.er1
13703   cat conftest.err >&5
13704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705   (exit $ac_status); } &&
13706          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13707   { (case "(($ac_try" in
13708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13709   *) ac_try_echo=$ac_try;;
13710 esac
13711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13712   (eval "$ac_try") 2>&5
13713   ac_status=$?
13714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715   (exit $ac_status); }; } &&
13716          { ac_try='test -s conftest.$ac_objext'
13717   { (case "(($ac_try" in
13718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719   *) ac_try_echo=$ac_try;;
13720 esac
13721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13722   (eval "$ac_try") 2>&5
13723   ac_status=$?
13724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725   (exit $ac_status); }; }; then
13726   eval "$as_ac_Header=yes"
13727 else
13728   echo "$as_me: failed program was:" >&5
13729 sed 's/^/| /' conftest.$ac_ext >&5
13730
13731         eval "$as_ac_Header=no"
13732 fi
13733
13734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13735 fi
13736 ac_res=`eval echo '${'$as_ac_Header'}'`
13737                { echo "$as_me:$LINENO: result: $ac_res" >&5
13738 echo "${ECHO_T}$ac_res" >&6; }
13739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13740   cat >>confdefs.h <<_ACEOF
13741 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13742 _ACEOF
13743
13744 ac_header_dirent=$ac_hdr; break
13745 fi
13746
13747 done
13748 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13749 if test $ac_header_dirent = dirent.h; then
13750   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13751 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13752 if test "${ac_cv_search_opendir+set}" = set; then
13753   echo $ECHO_N "(cached) $ECHO_C" >&6
13754 else
13755   ac_func_search_save_LIBS=$LIBS
13756 cat >conftest.$ac_ext <<_ACEOF
13757 /* confdefs.h.  */
13758 _ACEOF
13759 cat confdefs.h >>conftest.$ac_ext
13760 cat >>conftest.$ac_ext <<_ACEOF
13761 /* end confdefs.h.  */
13762
13763 /* Override any GCC internal prototype to avoid an error.
13764    Use char because int might match the return type of a GCC
13765    builtin and then its argument prototype would still apply.  */
13766 #ifdef __cplusplus
13767 extern "C"
13768 #endif
13769 char opendir ();
13770 int
13771 main ()
13772 {
13773 return opendir ();
13774   ;
13775   return 0;
13776 }
13777 _ACEOF
13778 for ac_lib in '' dir; do
13779   if test -z "$ac_lib"; then
13780     ac_res="none required"
13781   else
13782     ac_res=-l$ac_lib
13783     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13784   fi
13785   rm -f conftest.$ac_objext conftest$ac_exeext
13786 if { (ac_try="$ac_link"
13787 case "(($ac_try" in
13788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13789   *) ac_try_echo=$ac_try;;
13790 esac
13791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13792   (eval "$ac_link") 2>conftest.er1
13793   ac_status=$?
13794   grep -v '^ *+' conftest.er1 >conftest.err
13795   rm -f conftest.er1
13796   cat conftest.err >&5
13797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798   (exit $ac_status); } &&
13799          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13800   { (case "(($ac_try" in
13801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13802   *) ac_try_echo=$ac_try;;
13803 esac
13804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13805   (eval "$ac_try") 2>&5
13806   ac_status=$?
13807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808   (exit $ac_status); }; } &&
13809          { ac_try='test -s conftest$ac_exeext'
13810   { (case "(($ac_try" in
13811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13812   *) ac_try_echo=$ac_try;;
13813 esac
13814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13815   (eval "$ac_try") 2>&5
13816   ac_status=$?
13817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818   (exit $ac_status); }; }; then
13819   ac_cv_search_opendir=$ac_res
13820 else
13821   echo "$as_me: failed program was:" >&5
13822 sed 's/^/| /' conftest.$ac_ext >&5
13823
13824
13825 fi
13826
13827 rm -f core conftest.err conftest.$ac_objext \
13828       conftest$ac_exeext
13829   if test "${ac_cv_search_opendir+set}" = set; then
13830   break
13831 fi
13832 done
13833 if test "${ac_cv_search_opendir+set}" = set; then
13834   :
13835 else
13836   ac_cv_search_opendir=no
13837 fi
13838 rm conftest.$ac_ext
13839 LIBS=$ac_func_search_save_LIBS
13840 fi
13841 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13842 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13843 ac_res=$ac_cv_search_opendir
13844 if test "$ac_res" != no; then
13845   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13846
13847 fi
13848
13849 else
13850   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13851 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13852 if test "${ac_cv_search_opendir+set}" = set; then
13853   echo $ECHO_N "(cached) $ECHO_C" >&6
13854 else
13855   ac_func_search_save_LIBS=$LIBS
13856 cat >conftest.$ac_ext <<_ACEOF
13857 /* confdefs.h.  */
13858 _ACEOF
13859 cat confdefs.h >>conftest.$ac_ext
13860 cat >>conftest.$ac_ext <<_ACEOF
13861 /* end confdefs.h.  */
13862
13863 /* Override any GCC internal prototype to avoid an error.
13864    Use char because int might match the return type of a GCC
13865    builtin and then its argument prototype would still apply.  */
13866 #ifdef __cplusplus
13867 extern "C"
13868 #endif
13869 char opendir ();
13870 int
13871 main ()
13872 {
13873 return opendir ();
13874   ;
13875   return 0;
13876 }
13877 _ACEOF
13878 for ac_lib in '' x; do
13879   if test -z "$ac_lib"; then
13880     ac_res="none required"
13881   else
13882     ac_res=-l$ac_lib
13883     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13884   fi
13885   rm -f conftest.$ac_objext conftest$ac_exeext
13886 if { (ac_try="$ac_link"
13887 case "(($ac_try" in
13888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13889   *) ac_try_echo=$ac_try;;
13890 esac
13891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13892   (eval "$ac_link") 2>conftest.er1
13893   ac_status=$?
13894   grep -v '^ *+' conftest.er1 >conftest.err
13895   rm -f conftest.er1
13896   cat conftest.err >&5
13897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898   (exit $ac_status); } &&
13899          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13900   { (case "(($ac_try" in
13901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13902   *) ac_try_echo=$ac_try;;
13903 esac
13904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13905   (eval "$ac_try") 2>&5
13906   ac_status=$?
13907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908   (exit $ac_status); }; } &&
13909          { ac_try='test -s conftest$ac_exeext'
13910   { (case "(($ac_try" in
13911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13912   *) ac_try_echo=$ac_try;;
13913 esac
13914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13915   (eval "$ac_try") 2>&5
13916   ac_status=$?
13917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918   (exit $ac_status); }; }; then
13919   ac_cv_search_opendir=$ac_res
13920 else
13921   echo "$as_me: failed program was:" >&5
13922 sed 's/^/| /' conftest.$ac_ext >&5
13923
13924
13925 fi
13926
13927 rm -f core conftest.err conftest.$ac_objext \
13928       conftest$ac_exeext
13929   if test "${ac_cv_search_opendir+set}" = set; then
13930   break
13931 fi
13932 done
13933 if test "${ac_cv_search_opendir+set}" = set; then
13934   :
13935 else
13936   ac_cv_search_opendir=no
13937 fi
13938 rm conftest.$ac_ext
13939 LIBS=$ac_func_search_save_LIBS
13940 fi
13941 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13942 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13943 ac_res=$ac_cv_search_opendir
13944 if test "$ac_res" != no; then
13945   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13946
13947 fi
13948
13949 fi
13950
13951 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13952 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13953 if test "${ac_cv_header_mmap_anon+set}" = set; then
13954   echo $ECHO_N "(cached) $ECHO_C" >&6
13955 else
13956    ac_ext=c
13957 ac_cpp='$CPP $CPPFLAGS'
13958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13961
13962   cat >conftest.$ac_ext <<_ACEOF
13963 /* confdefs.h.  */
13964 _ACEOF
13965 cat confdefs.h >>conftest.$ac_ext
13966 cat >>conftest.$ac_ext <<_ACEOF
13967 /* end confdefs.h.  */
13968 #include <sys/mman.h>
13969 #include <unistd.h>
13970 #include <fcntl.h>
13971 int
13972 main ()
13973 {
13974 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13975   ;
13976   return 0;
13977 }
13978 _ACEOF
13979 rm -f conftest.$ac_objext
13980 if { (ac_try="$ac_compile"
13981 case "(($ac_try" in
13982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13983   *) ac_try_echo=$ac_try;;
13984 esac
13985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13986   (eval "$ac_compile") 2>conftest.er1
13987   ac_status=$?
13988   grep -v '^ *+' conftest.er1 >conftest.err
13989   rm -f conftest.er1
13990   cat conftest.err >&5
13991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992   (exit $ac_status); } &&
13993          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13994   { (case "(($ac_try" in
13995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13996   *) ac_try_echo=$ac_try;;
13997 esac
13998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13999   (eval "$ac_try") 2>&5
14000   ac_status=$?
14001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002   (exit $ac_status); }; } &&
14003          { ac_try='test -s conftest.$ac_objext'
14004   { (case "(($ac_try" in
14005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14006   *) ac_try_echo=$ac_try;;
14007 esac
14008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14009   (eval "$ac_try") 2>&5
14010   ac_status=$?
14011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012   (exit $ac_status); }; }; then
14013   ac_cv_header_mmap_anon=yes
14014 else
14015   echo "$as_me: failed program was:" >&5
14016 sed 's/^/| /' conftest.$ac_ext >&5
14017
14018         ac_cv_header_mmap_anon=no
14019 fi
14020
14021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14022   ac_ext=c
14023 ac_cpp='$CPP $CPPFLAGS'
14024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14027
14028
14029 fi
14030 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14031 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14032 if test "$ac_cv_header_mmap_anon" = yes; then
14033
14034 cat >>confdefs.h <<\_ACEOF
14035 #define HAVE_MMAP_ANONYMOUS 1
14036 _ACEOF
14037
14038 fi
14039
14040 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14041 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14042 if test "${ac_cv_header_stat_broken+set}" = set; then
14043   echo $ECHO_N "(cached) $ECHO_C" >&6
14044 else
14045   cat >conftest.$ac_ext <<_ACEOF
14046 /* confdefs.h.  */
14047 _ACEOF
14048 cat confdefs.h >>conftest.$ac_ext
14049 cat >>conftest.$ac_ext <<_ACEOF
14050 /* end confdefs.h.  */
14051 #include <sys/types.h>
14052 #include <sys/stat.h>
14053
14054 #if defined S_ISBLK && defined S_IFDIR
14055 # if S_ISBLK (S_IFDIR)
14056 You lose.
14057 # endif
14058 #endif
14059
14060 #if defined S_ISBLK && defined S_IFCHR
14061 # if S_ISBLK (S_IFCHR)
14062 You lose.
14063 # endif
14064 #endif
14065
14066 #if defined S_ISLNK && defined S_IFREG
14067 # if S_ISLNK (S_IFREG)
14068 You lose.
14069 # endif
14070 #endif
14071
14072 #if defined S_ISSOCK && defined S_IFREG
14073 # if S_ISSOCK (S_IFREG)
14074 You lose.
14075 # endif
14076 #endif
14077
14078 _ACEOF
14079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14080   $EGREP "You lose" >/dev/null 2>&1; then
14081   ac_cv_header_stat_broken=yes
14082 else
14083   ac_cv_header_stat_broken=no
14084 fi
14085 rm -f conftest*
14086
14087 fi
14088 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14089 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14090 if test $ac_cv_header_stat_broken = yes; then
14091
14092 cat >>confdefs.h <<\_ACEOF
14093 #define STAT_MACROS_BROKEN 1
14094 _ACEOF
14095
14096 fi
14097
14098 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14099 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14100 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14101   echo $ECHO_N "(cached) $ECHO_C" >&6
14102 else
14103   cat >conftest.$ac_ext <<_ACEOF
14104 /* confdefs.h.  */
14105 _ACEOF
14106 cat confdefs.h >>conftest.$ac_ext
14107 cat >>conftest.$ac_ext <<_ACEOF
14108 /* end confdefs.h.  */
14109 #include <sys/types.h>
14110 #include <sys/wait.h>
14111 #ifndef WEXITSTATUS
14112 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14113 #endif
14114 #ifndef WIFEXITED
14115 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14116 #endif
14117
14118 int
14119 main ()
14120 {
14121   int s;
14122   wait (&s);
14123   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14124   ;
14125   return 0;
14126 }
14127 _ACEOF
14128 rm -f conftest.$ac_objext
14129 if { (ac_try="$ac_compile"
14130 case "(($ac_try" in
14131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14132   *) ac_try_echo=$ac_try;;
14133 esac
14134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14135   (eval "$ac_compile") 2>conftest.er1
14136   ac_status=$?
14137   grep -v '^ *+' conftest.er1 >conftest.err
14138   rm -f conftest.er1
14139   cat conftest.err >&5
14140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141   (exit $ac_status); } &&
14142          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
14149   ac_status=$?
14150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151   (exit $ac_status); }; } &&
14152          { ac_try='test -s conftest.$ac_objext'
14153   { (case "(($ac_try" in
14154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14155   *) ac_try_echo=$ac_try;;
14156 esac
14157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14158   (eval "$ac_try") 2>&5
14159   ac_status=$?
14160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161   (exit $ac_status); }; }; then
14162   ac_cv_header_sys_wait_h=yes
14163 else
14164   echo "$as_me: failed program was:" >&5
14165 sed 's/^/| /' conftest.$ac_ext >&5
14166
14167         ac_cv_header_sys_wait_h=no
14168 fi
14169
14170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14171 fi
14172 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14173 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14174 if test $ac_cv_header_sys_wait_h = yes; then
14175
14176 cat >>confdefs.h <<\_ACEOF
14177 #define HAVE_SYS_WAIT_H 1
14178 _ACEOF
14179
14180 fi
14181
14182 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14183 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14184 if test "${ac_cv_header_time+set}" = set; then
14185   echo $ECHO_N "(cached) $ECHO_C" >&6
14186 else
14187   cat >conftest.$ac_ext <<_ACEOF
14188 /* confdefs.h.  */
14189 _ACEOF
14190 cat confdefs.h >>conftest.$ac_ext
14191 cat >>conftest.$ac_ext <<_ACEOF
14192 /* end confdefs.h.  */
14193 #include <sys/types.h>
14194 #include <sys/time.h>
14195 #include <time.h>
14196
14197 int
14198 main ()
14199 {
14200 if ((struct tm *) 0)
14201 return 0;
14202   ;
14203   return 0;
14204 }
14205 _ACEOF
14206 rm -f conftest.$ac_objext
14207 if { (ac_try="$ac_compile"
14208 case "(($ac_try" in
14209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210   *) ac_try_echo=$ac_try;;
14211 esac
14212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14213   (eval "$ac_compile") 2>conftest.er1
14214   ac_status=$?
14215   grep -v '^ *+' conftest.er1 >conftest.err
14216   rm -f conftest.er1
14217   cat conftest.err >&5
14218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219   (exit $ac_status); } &&
14220          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14221   { (case "(($ac_try" in
14222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14223   *) ac_try_echo=$ac_try;;
14224 esac
14225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14226   (eval "$ac_try") 2>&5
14227   ac_status=$?
14228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229   (exit $ac_status); }; } &&
14230          { ac_try='test -s conftest.$ac_objext'
14231   { (case "(($ac_try" in
14232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14233   *) ac_try_echo=$ac_try;;
14234 esac
14235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14236   (eval "$ac_try") 2>&5
14237   ac_status=$?
14238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239   (exit $ac_status); }; }; then
14240   ac_cv_header_time=yes
14241 else
14242   echo "$as_me: failed program was:" >&5
14243 sed 's/^/| /' conftest.$ac_ext >&5
14244
14245         ac_cv_header_time=no
14246 fi
14247
14248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14249 fi
14250 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14251 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14252 if test $ac_cv_header_time = yes; then
14253
14254 cat >>confdefs.h <<\_ACEOF
14255 #define TIME_WITH_SYS_TIME 1
14256 _ACEOF
14257
14258 fi
14259
14260
14261
14262
14263
14264
14265
14266
14267 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14268 do
14269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14271   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14274   echo $ECHO_N "(cached) $ECHO_C" >&6
14275 fi
14276 ac_res=`eval echo '${'$as_ac_Header'}'`
14277                { echo "$as_me:$LINENO: result: $ac_res" >&5
14278 echo "${ECHO_T}$ac_res" >&6; }
14279 else
14280   # Is the header compilable?
14281 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14282 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14283 cat >conftest.$ac_ext <<_ACEOF
14284 /* confdefs.h.  */
14285 _ACEOF
14286 cat confdefs.h >>conftest.$ac_ext
14287 cat >>conftest.$ac_ext <<_ACEOF
14288 /* end confdefs.h.  */
14289 $ac_includes_default
14290 #include <$ac_header>
14291 _ACEOF
14292 rm -f conftest.$ac_objext
14293 if { (ac_try="$ac_compile"
14294 case "(($ac_try" in
14295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14296   *) ac_try_echo=$ac_try;;
14297 esac
14298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14299   (eval "$ac_compile") 2>conftest.er1
14300   ac_status=$?
14301   grep -v '^ *+' conftest.er1 >conftest.err
14302   rm -f conftest.er1
14303   cat conftest.err >&5
14304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305   (exit $ac_status); } &&
14306          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14307   { (case "(($ac_try" in
14308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14309   *) ac_try_echo=$ac_try;;
14310 esac
14311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14312   (eval "$ac_try") 2>&5
14313   ac_status=$?
14314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315   (exit $ac_status); }; } &&
14316          { ac_try='test -s conftest.$ac_objext'
14317   { (case "(($ac_try" in
14318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14319   *) ac_try_echo=$ac_try;;
14320 esac
14321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14322   (eval "$ac_try") 2>&5
14323   ac_status=$?
14324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325   (exit $ac_status); }; }; then
14326   ac_header_compiler=yes
14327 else
14328   echo "$as_me: failed program was:" >&5
14329 sed 's/^/| /' conftest.$ac_ext >&5
14330
14331         ac_header_compiler=no
14332 fi
14333
14334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14335 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14336 echo "${ECHO_T}$ac_header_compiler" >&6; }
14337
14338 # Is the header present?
14339 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14340 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14341 cat >conftest.$ac_ext <<_ACEOF
14342 /* confdefs.h.  */
14343 _ACEOF
14344 cat confdefs.h >>conftest.$ac_ext
14345 cat >>conftest.$ac_ext <<_ACEOF
14346 /* end confdefs.h.  */
14347 #include <$ac_header>
14348 _ACEOF
14349 if { (ac_try="$ac_cpp conftest.$ac_ext"
14350 case "(($ac_try" in
14351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14352   *) ac_try_echo=$ac_try;;
14353 esac
14354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14355   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14356   ac_status=$?
14357   grep -v '^ *+' conftest.er1 >conftest.err
14358   rm -f conftest.er1
14359   cat conftest.err >&5
14360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361   (exit $ac_status); } >/dev/null; then
14362   if test -s conftest.err; then
14363     ac_cpp_err=$ac_c_preproc_warn_flag
14364     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14365   else
14366     ac_cpp_err=
14367   fi
14368 else
14369   ac_cpp_err=yes
14370 fi
14371 if test -z "$ac_cpp_err"; then
14372   ac_header_preproc=yes
14373 else
14374   echo "$as_me: failed program was:" >&5
14375 sed 's/^/| /' conftest.$ac_ext >&5
14376
14377   ac_header_preproc=no
14378 fi
14379
14380 rm -f conftest.err conftest.$ac_ext
14381 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14382 echo "${ECHO_T}$ac_header_preproc" >&6; }
14383
14384 # So?  What about this header?
14385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14386   yes:no: )
14387     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14388 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14389     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14390 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14391     ac_header_preproc=yes
14392     ;;
14393   no:yes:* )
14394     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14395 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14396     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14397 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14398     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14399 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14400     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14401 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14402     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14404     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14405 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14406     ( cat <<\_ASBOX
14407 ## ------------------------------ ##
14408 ## Report this to bugs@yourdomain ##
14409 ## ------------------------------ ##
14410 _ASBOX
14411      ) | sed "s/^/$as_me: WARNING:     /" >&2
14412     ;;
14413 esac
14414 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14417   echo $ECHO_N "(cached) $ECHO_C" >&6
14418 else
14419   eval "$as_ac_Header=\$ac_header_preproc"
14420 fi
14421 ac_res=`eval echo '${'$as_ac_Header'}'`
14422                { echo "$as_me:$LINENO: result: $ac_res" >&5
14423 echo "${ECHO_T}$ac_res" >&6; }
14424
14425 fi
14426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14427   cat >>confdefs.h <<_ACEOF
14428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14429 _ACEOF
14430
14431 fi
14432
14433 done
14434
14435
14436
14437
14438
14439
14440
14441 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14442 do
14443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14445   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14448   echo $ECHO_N "(cached) $ECHO_C" >&6
14449 fi
14450 ac_res=`eval echo '${'$as_ac_Header'}'`
14451                { echo "$as_me:$LINENO: result: $ac_res" >&5
14452 echo "${ECHO_T}$ac_res" >&6; }
14453 else
14454   # Is the header compilable?
14455 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14456 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14457 cat >conftest.$ac_ext <<_ACEOF
14458 /* confdefs.h.  */
14459 _ACEOF
14460 cat confdefs.h >>conftest.$ac_ext
14461 cat >>conftest.$ac_ext <<_ACEOF
14462 /* end confdefs.h.  */
14463 $ac_includes_default
14464 #include <$ac_header>
14465 _ACEOF
14466 rm -f conftest.$ac_objext
14467 if { (ac_try="$ac_compile"
14468 case "(($ac_try" in
14469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14470   *) ac_try_echo=$ac_try;;
14471 esac
14472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14473   (eval "$ac_compile") 2>conftest.er1
14474   ac_status=$?
14475   grep -v '^ *+' conftest.er1 >conftest.err
14476   rm -f conftest.er1
14477   cat conftest.err >&5
14478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479   (exit $ac_status); } &&
14480          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14481   { (case "(($ac_try" in
14482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14483   *) ac_try_echo=$ac_try;;
14484 esac
14485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14486   (eval "$ac_try") 2>&5
14487   ac_status=$?
14488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489   (exit $ac_status); }; } &&
14490          { ac_try='test -s conftest.$ac_objext'
14491   { (case "(($ac_try" in
14492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14493   *) ac_try_echo=$ac_try;;
14494 esac
14495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14496   (eval "$ac_try") 2>&5
14497   ac_status=$?
14498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499   (exit $ac_status); }; }; then
14500   ac_header_compiler=yes
14501 else
14502   echo "$as_me: failed program was:" >&5
14503 sed 's/^/| /' conftest.$ac_ext >&5
14504
14505         ac_header_compiler=no
14506 fi
14507
14508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14509 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14510 echo "${ECHO_T}$ac_header_compiler" >&6; }
14511
14512 # Is the header present?
14513 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14514 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14515 cat >conftest.$ac_ext <<_ACEOF
14516 /* confdefs.h.  */
14517 _ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h.  */
14521 #include <$ac_header>
14522 _ACEOF
14523 if { (ac_try="$ac_cpp conftest.$ac_ext"
14524 case "(($ac_try" in
14525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14526   *) ac_try_echo=$ac_try;;
14527 esac
14528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14529   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14530   ac_status=$?
14531   grep -v '^ *+' conftest.er1 >conftest.err
14532   rm -f conftest.er1
14533   cat conftest.err >&5
14534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535   (exit $ac_status); } >/dev/null; then
14536   if test -s conftest.err; then
14537     ac_cpp_err=$ac_c_preproc_warn_flag
14538     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14539   else
14540     ac_cpp_err=
14541   fi
14542 else
14543   ac_cpp_err=yes
14544 fi
14545 if test -z "$ac_cpp_err"; then
14546   ac_header_preproc=yes
14547 else
14548   echo "$as_me: failed program was:" >&5
14549 sed 's/^/| /' conftest.$ac_ext >&5
14550
14551   ac_header_preproc=no
14552 fi
14553
14554 rm -f conftest.err conftest.$ac_ext
14555 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14556 echo "${ECHO_T}$ac_header_preproc" >&6; }
14557
14558 # So?  What about this header?
14559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14560   yes:no: )
14561     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14562 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14563     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14564 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14565     ac_header_preproc=yes
14566     ;;
14567   no:yes:* )
14568     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14569 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14570     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14571 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14572     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14573 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14574     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14575 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14576     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14578     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14579 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14580     ( cat <<\_ASBOX
14581 ## ------------------------------ ##
14582 ## Report this to bugs@yourdomain ##
14583 ## ------------------------------ ##
14584 _ASBOX
14585      ) | sed "s/^/$as_me: WARNING:     /" >&2
14586     ;;
14587 esac
14588 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14591   echo $ECHO_N "(cached) $ECHO_C" >&6
14592 else
14593   eval "$as_ac_Header=\$ac_header_preproc"
14594 fi
14595 ac_res=`eval echo '${'$as_ac_Header'}'`
14596                { echo "$as_me:$LINENO: result: $ac_res" >&5
14597 echo "${ECHO_T}$ac_res" >&6; }
14598
14599 fi
14600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14601   cat >>confdefs.h <<_ACEOF
14602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14603 _ACEOF
14604
14605 fi
14606
14607 done
14608
14609
14610
14611 for ac_header in utime.h windows.h
14612 do
14613 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14615   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14618   echo $ECHO_N "(cached) $ECHO_C" >&6
14619 fi
14620 ac_res=`eval echo '${'$as_ac_Header'}'`
14621                { echo "$as_me:$LINENO: result: $ac_res" >&5
14622 echo "${ECHO_T}$ac_res" >&6; }
14623 else
14624   # Is the header compilable?
14625 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14626 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14627 cat >conftest.$ac_ext <<_ACEOF
14628 /* confdefs.h.  */
14629 _ACEOF
14630 cat confdefs.h >>conftest.$ac_ext
14631 cat >>conftest.$ac_ext <<_ACEOF
14632 /* end confdefs.h.  */
14633 $ac_includes_default
14634 #include <$ac_header>
14635 _ACEOF
14636 rm -f conftest.$ac_objext
14637 if { (ac_try="$ac_compile"
14638 case "(($ac_try" in
14639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14640   *) ac_try_echo=$ac_try;;
14641 esac
14642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14643   (eval "$ac_compile") 2>conftest.er1
14644   ac_status=$?
14645   grep -v '^ *+' conftest.er1 >conftest.err
14646   rm -f conftest.er1
14647   cat conftest.err >&5
14648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649   (exit $ac_status); } &&
14650          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14651   { (case "(($ac_try" in
14652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14653   *) ac_try_echo=$ac_try;;
14654 esac
14655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14656   (eval "$ac_try") 2>&5
14657   ac_status=$?
14658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659   (exit $ac_status); }; } &&
14660          { ac_try='test -s conftest.$ac_objext'
14661   { (case "(($ac_try" in
14662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14663   *) ac_try_echo=$ac_try;;
14664 esac
14665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14666   (eval "$ac_try") 2>&5
14667   ac_status=$?
14668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669   (exit $ac_status); }; }; then
14670   ac_header_compiler=yes
14671 else
14672   echo "$as_me: failed program was:" >&5
14673 sed 's/^/| /' conftest.$ac_ext >&5
14674
14675         ac_header_compiler=no
14676 fi
14677
14678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14679 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14680 echo "${ECHO_T}$ac_header_compiler" >&6; }
14681
14682 # Is the header present?
14683 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14685 cat >conftest.$ac_ext <<_ACEOF
14686 /* confdefs.h.  */
14687 _ACEOF
14688 cat confdefs.h >>conftest.$ac_ext
14689 cat >>conftest.$ac_ext <<_ACEOF
14690 /* end confdefs.h.  */
14691 #include <$ac_header>
14692 _ACEOF
14693 if { (ac_try="$ac_cpp conftest.$ac_ext"
14694 case "(($ac_try" in
14695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14696   *) ac_try_echo=$ac_try;;
14697 esac
14698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14699   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14700   ac_status=$?
14701   grep -v '^ *+' conftest.er1 >conftest.err
14702   rm -f conftest.er1
14703   cat conftest.err >&5
14704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705   (exit $ac_status); } >/dev/null; then
14706   if test -s conftest.err; then
14707     ac_cpp_err=$ac_c_preproc_warn_flag
14708     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14709   else
14710     ac_cpp_err=
14711   fi
14712 else
14713   ac_cpp_err=yes
14714 fi
14715 if test -z "$ac_cpp_err"; then
14716   ac_header_preproc=yes
14717 else
14718   echo "$as_me: failed program was:" >&5
14719 sed 's/^/| /' conftest.$ac_ext >&5
14720
14721   ac_header_preproc=no
14722 fi
14723
14724 rm -f conftest.err conftest.$ac_ext
14725 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14726 echo "${ECHO_T}$ac_header_preproc" >&6; }
14727
14728 # So?  What about this header?
14729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14730   yes:no: )
14731     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14732 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14733     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14734 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14735     ac_header_preproc=yes
14736     ;;
14737   no:yes:* )
14738     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14739 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14740     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14741 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14742     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14743 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14744     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14745 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14746     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14748     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14749 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14750     ( cat <<\_ASBOX
14751 ## ------------------------------ ##
14752 ## Report this to bugs@yourdomain ##
14753 ## ------------------------------ ##
14754 _ASBOX
14755      ) | sed "s/^/$as_me: WARNING:     /" >&2
14756     ;;
14757 esac
14758 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14761   echo $ECHO_N "(cached) $ECHO_C" >&6
14762 else
14763   eval "$as_ac_Header=\$ac_header_preproc"
14764 fi
14765 ac_res=`eval echo '${'$as_ac_Header'}'`
14766                { echo "$as_me:$LINENO: result: $ac_res" >&5
14767 echo "${ECHO_T}$ac_res" >&6; }
14768
14769 fi
14770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14771   cat >>confdefs.h <<_ACEOF
14772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14773 _ACEOF
14774
14775 fi
14776
14777 done
14778
14779
14780
14781
14782
14783
14784 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14785 do
14786 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14788   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14791   echo $ECHO_N "(cached) $ECHO_C" >&6
14792 fi
14793 ac_res=`eval echo '${'$as_ac_Header'}'`
14794                { echo "$as_me:$LINENO: result: $ac_res" >&5
14795 echo "${ECHO_T}$ac_res" >&6; }
14796 else
14797   # Is the header compilable?
14798 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14800 cat >conftest.$ac_ext <<_ACEOF
14801 /* confdefs.h.  */
14802 _ACEOF
14803 cat confdefs.h >>conftest.$ac_ext
14804 cat >>conftest.$ac_ext <<_ACEOF
14805 /* end confdefs.h.  */
14806 $ac_includes_default
14807 #include <$ac_header>
14808 _ACEOF
14809 rm -f conftest.$ac_objext
14810 if { (ac_try="$ac_compile"
14811 case "(($ac_try" in
14812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14813   *) ac_try_echo=$ac_try;;
14814 esac
14815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14816   (eval "$ac_compile") 2>conftest.er1
14817   ac_status=$?
14818   grep -v '^ *+' conftest.er1 >conftest.err
14819   rm -f conftest.er1
14820   cat conftest.err >&5
14821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822   (exit $ac_status); } &&
14823          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14824   { (case "(($ac_try" in
14825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14826   *) ac_try_echo=$ac_try;;
14827 esac
14828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14829   (eval "$ac_try") 2>&5
14830   ac_status=$?
14831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832   (exit $ac_status); }; } &&
14833          { ac_try='test -s conftest.$ac_objext'
14834   { (case "(($ac_try" in
14835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14836   *) ac_try_echo=$ac_try;;
14837 esac
14838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14839   (eval "$ac_try") 2>&5
14840   ac_status=$?
14841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842   (exit $ac_status); }; }; then
14843   ac_header_compiler=yes
14844 else
14845   echo "$as_me: failed program was:" >&5
14846 sed 's/^/| /' conftest.$ac_ext >&5
14847
14848         ac_header_compiler=no
14849 fi
14850
14851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14852 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14853 echo "${ECHO_T}$ac_header_compiler" >&6; }
14854
14855 # Is the header present?
14856 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14858 cat >conftest.$ac_ext <<_ACEOF
14859 /* confdefs.h.  */
14860 _ACEOF
14861 cat confdefs.h >>conftest.$ac_ext
14862 cat >>conftest.$ac_ext <<_ACEOF
14863 /* end confdefs.h.  */
14864 #include <$ac_header>
14865 _ACEOF
14866 if { (ac_try="$ac_cpp conftest.$ac_ext"
14867 case "(($ac_try" in
14868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869   *) ac_try_echo=$ac_try;;
14870 esac
14871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14872   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14873   ac_status=$?
14874   grep -v '^ *+' conftest.er1 >conftest.err
14875   rm -f conftest.er1
14876   cat conftest.err >&5
14877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878   (exit $ac_status); } >/dev/null; then
14879   if test -s conftest.err; then
14880     ac_cpp_err=$ac_c_preproc_warn_flag
14881     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14882   else
14883     ac_cpp_err=
14884   fi
14885 else
14886   ac_cpp_err=yes
14887 fi
14888 if test -z "$ac_cpp_err"; then
14889   ac_header_preproc=yes
14890 else
14891   echo "$as_me: failed program was:" >&5
14892 sed 's/^/| /' conftest.$ac_ext >&5
14893
14894   ac_header_preproc=no
14895 fi
14896
14897 rm -f conftest.err conftest.$ac_ext
14898 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14899 echo "${ECHO_T}$ac_header_preproc" >&6; }
14900
14901 # So?  What about this header?
14902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14903   yes:no: )
14904     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14905 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14906     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14907 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14908     ac_header_preproc=yes
14909     ;;
14910   no:yes:* )
14911     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14912 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14913     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14914 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14915     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14916 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14917     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14918 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14919     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14921     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14922 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14923     ( cat <<\_ASBOX
14924 ## ------------------------------ ##
14925 ## Report this to bugs@yourdomain ##
14926 ## ------------------------------ ##
14927 _ASBOX
14928      ) | sed "s/^/$as_me: WARNING:     /" >&2
14929     ;;
14930 esac
14931 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14934   echo $ECHO_N "(cached) $ECHO_C" >&6
14935 else
14936   eval "$as_ac_Header=\$ac_header_preproc"
14937 fi
14938 ac_res=`eval echo '${'$as_ac_Header'}'`
14939                { echo "$as_me:$LINENO: result: $ac_res" >&5
14940 echo "${ECHO_T}$ac_res" >&6; }
14941
14942 fi
14943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14944   cat >>confdefs.h <<_ACEOF
14945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14946 _ACEOF
14947
14948 fi
14949
14950 done
14951
14952
14953
14954
14955
14956 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14957 do
14958 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14960   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14963   echo $ECHO_N "(cached) $ECHO_C" >&6
14964 fi
14965 ac_res=`eval echo '${'$as_ac_Header'}'`
14966                { echo "$as_me:$LINENO: result: $ac_res" >&5
14967 echo "${ECHO_T}$ac_res" >&6; }
14968 else
14969   # Is the header compilable?
14970 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14971 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14972 cat >conftest.$ac_ext <<_ACEOF
14973 /* confdefs.h.  */
14974 _ACEOF
14975 cat confdefs.h >>conftest.$ac_ext
14976 cat >>conftest.$ac_ext <<_ACEOF
14977 /* end confdefs.h.  */
14978 $ac_includes_default
14979 #include <$ac_header>
14980 _ACEOF
14981 rm -f conftest.$ac_objext
14982 if { (ac_try="$ac_compile"
14983 case "(($ac_try" in
14984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14985   *) ac_try_echo=$ac_try;;
14986 esac
14987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14988   (eval "$ac_compile") 2>conftest.er1
14989   ac_status=$?
14990   grep -v '^ *+' conftest.er1 >conftest.err
14991   rm -f conftest.er1
14992   cat conftest.err >&5
14993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994   (exit $ac_status); } &&
14995          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14996   { (case "(($ac_try" in
14997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14998   *) ac_try_echo=$ac_try;;
14999 esac
15000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15001   (eval "$ac_try") 2>&5
15002   ac_status=$?
15003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004   (exit $ac_status); }; } &&
15005          { ac_try='test -s conftest.$ac_objext'
15006   { (case "(($ac_try" in
15007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15008   *) ac_try_echo=$ac_try;;
15009 esac
15010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15011   (eval "$ac_try") 2>&5
15012   ac_status=$?
15013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014   (exit $ac_status); }; }; then
15015   ac_header_compiler=yes
15016 else
15017   echo "$as_me: failed program was:" >&5
15018 sed 's/^/| /' conftest.$ac_ext >&5
15019
15020         ac_header_compiler=no
15021 fi
15022
15023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15024 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15025 echo "${ECHO_T}$ac_header_compiler" >&6; }
15026
15027 # Is the header present?
15028 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15029 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15030 cat >conftest.$ac_ext <<_ACEOF
15031 /* confdefs.h.  */
15032 _ACEOF
15033 cat confdefs.h >>conftest.$ac_ext
15034 cat >>conftest.$ac_ext <<_ACEOF
15035 /* end confdefs.h.  */
15036 #include <$ac_header>
15037 _ACEOF
15038 if { (ac_try="$ac_cpp conftest.$ac_ext"
15039 case "(($ac_try" in
15040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15041   *) ac_try_echo=$ac_try;;
15042 esac
15043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15044   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15045   ac_status=$?
15046   grep -v '^ *+' conftest.er1 >conftest.err
15047   rm -f conftest.er1
15048   cat conftest.err >&5
15049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050   (exit $ac_status); } >/dev/null; then
15051   if test -s conftest.err; then
15052     ac_cpp_err=$ac_c_preproc_warn_flag
15053     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15054   else
15055     ac_cpp_err=
15056   fi
15057 else
15058   ac_cpp_err=yes
15059 fi
15060 if test -z "$ac_cpp_err"; then
15061   ac_header_preproc=yes
15062 else
15063   echo "$as_me: failed program was:" >&5
15064 sed 's/^/| /' conftest.$ac_ext >&5
15065
15066   ac_header_preproc=no
15067 fi
15068
15069 rm -f conftest.err conftest.$ac_ext
15070 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15071 echo "${ECHO_T}$ac_header_preproc" >&6; }
15072
15073 # So?  What about this header?
15074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15075   yes:no: )
15076     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15077 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15078     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15079 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15080     ac_header_preproc=yes
15081     ;;
15082   no:yes:* )
15083     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15084 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15085     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15086 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15087     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15088 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15089     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15090 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15091     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15093     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15094 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15095     ( cat <<\_ASBOX
15096 ## ------------------------------ ##
15097 ## Report this to bugs@yourdomain ##
15098 ## ------------------------------ ##
15099 _ASBOX
15100      ) | sed "s/^/$as_me: WARNING:     /" >&2
15101     ;;
15102 esac
15103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15106   echo $ECHO_N "(cached) $ECHO_C" >&6
15107 else
15108   eval "$as_ac_Header=\$ac_header_preproc"
15109 fi
15110 ac_res=`eval echo '${'$as_ac_Header'}'`
15111                { echo "$as_me:$LINENO: result: $ac_res" >&5
15112 echo "${ECHO_T}$ac_res" >&6; }
15113
15114 fi
15115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15116   cat >>confdefs.h <<_ACEOF
15117 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15118 _ACEOF
15119
15120 fi
15121
15122 done
15123
15124
15125 for ac_header in valgrind/valgrind.h
15126 do
15127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15129   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15132   echo $ECHO_N "(cached) $ECHO_C" >&6
15133 fi
15134 ac_res=`eval echo '${'$as_ac_Header'}'`
15135                { echo "$as_me:$LINENO: result: $ac_res" >&5
15136 echo "${ECHO_T}$ac_res" >&6; }
15137 else
15138   # Is the header compilable?
15139 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15140 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15141 cat >conftest.$ac_ext <<_ACEOF
15142 /* confdefs.h.  */
15143 _ACEOF
15144 cat confdefs.h >>conftest.$ac_ext
15145 cat >>conftest.$ac_ext <<_ACEOF
15146 /* end confdefs.h.  */
15147 $ac_includes_default
15148 #include <$ac_header>
15149 _ACEOF
15150 rm -f conftest.$ac_objext
15151 if { (ac_try="$ac_compile"
15152 case "(($ac_try" in
15153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15154   *) ac_try_echo=$ac_try;;
15155 esac
15156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15157   (eval "$ac_compile") 2>conftest.er1
15158   ac_status=$?
15159   grep -v '^ *+' conftest.er1 >conftest.err
15160   rm -f conftest.er1
15161   cat conftest.err >&5
15162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163   (exit $ac_status); } &&
15164          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15165   { (case "(($ac_try" in
15166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15167   *) ac_try_echo=$ac_try;;
15168 esac
15169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15170   (eval "$ac_try") 2>&5
15171   ac_status=$?
15172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173   (exit $ac_status); }; } &&
15174          { ac_try='test -s conftest.$ac_objext'
15175   { (case "(($ac_try" in
15176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15177   *) ac_try_echo=$ac_try;;
15178 esac
15179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15180   (eval "$ac_try") 2>&5
15181   ac_status=$?
15182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183   (exit $ac_status); }; }; then
15184   ac_header_compiler=yes
15185 else
15186   echo "$as_me: failed program was:" >&5
15187 sed 's/^/| /' conftest.$ac_ext >&5
15188
15189         ac_header_compiler=no
15190 fi
15191
15192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15193 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15194 echo "${ECHO_T}$ac_header_compiler" >&6; }
15195
15196 # Is the header present?
15197 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15198 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15199 cat >conftest.$ac_ext <<_ACEOF
15200 /* confdefs.h.  */
15201 _ACEOF
15202 cat confdefs.h >>conftest.$ac_ext
15203 cat >>conftest.$ac_ext <<_ACEOF
15204 /* end confdefs.h.  */
15205 #include <$ac_header>
15206 _ACEOF
15207 if { (ac_try="$ac_cpp conftest.$ac_ext"
15208 case "(($ac_try" in
15209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15210   *) ac_try_echo=$ac_try;;
15211 esac
15212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15213   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15214   ac_status=$?
15215   grep -v '^ *+' conftest.er1 >conftest.err
15216   rm -f conftest.er1
15217   cat conftest.err >&5
15218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219   (exit $ac_status); } >/dev/null; then
15220   if test -s conftest.err; then
15221     ac_cpp_err=$ac_c_preproc_warn_flag
15222     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15223   else
15224     ac_cpp_err=
15225   fi
15226 else
15227   ac_cpp_err=yes
15228 fi
15229 if test -z "$ac_cpp_err"; then
15230   ac_header_preproc=yes
15231 else
15232   echo "$as_me: failed program was:" >&5
15233 sed 's/^/| /' conftest.$ac_ext >&5
15234
15235   ac_header_preproc=no
15236 fi
15237
15238 rm -f conftest.err conftest.$ac_ext
15239 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15240 echo "${ECHO_T}$ac_header_preproc" >&6; }
15241
15242 # So?  What about this header?
15243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15244   yes:no: )
15245     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15247     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15249     ac_header_preproc=yes
15250     ;;
15251   no:yes:* )
15252     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15254     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15255 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15256     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15258     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15259 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15260     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15262     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15264     ( cat <<\_ASBOX
15265 ## ------------------------------ ##
15266 ## Report this to bugs@yourdomain ##
15267 ## ------------------------------ ##
15268 _ASBOX
15269      ) | sed "s/^/$as_me: WARNING:     /" >&2
15270     ;;
15271 esac
15272 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15275   echo $ECHO_N "(cached) $ECHO_C" >&6
15276 else
15277   eval "$as_ac_Header=\$ac_header_preproc"
15278 fi
15279 ac_res=`eval echo '${'$as_ac_Header'}'`
15280                { echo "$as_me:$LINENO: result: $ac_res" >&5
15281 echo "${ECHO_T}$ac_res" >&6; }
15282
15283 fi
15284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15285   cat >>confdefs.h <<_ACEOF
15286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15287 _ACEOF
15288
15289 fi
15290
15291 done
15292
15293
15294 for ac_header in fenv.h
15295 do
15296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15298   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15301   echo $ECHO_N "(cached) $ECHO_C" >&6
15302 fi
15303 ac_res=`eval echo '${'$as_ac_Header'}'`
15304                { echo "$as_me:$LINENO: result: $ac_res" >&5
15305 echo "${ECHO_T}$ac_res" >&6; }
15306 else
15307   # Is the header compilable?
15308 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15309 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15310 cat >conftest.$ac_ext <<_ACEOF
15311 /* confdefs.h.  */
15312 _ACEOF
15313 cat confdefs.h >>conftest.$ac_ext
15314 cat >>conftest.$ac_ext <<_ACEOF
15315 /* end confdefs.h.  */
15316 $ac_includes_default
15317 #include <$ac_header>
15318 _ACEOF
15319 rm -f conftest.$ac_objext
15320 if { (ac_try="$ac_compile"
15321 case "(($ac_try" in
15322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15323   *) ac_try_echo=$ac_try;;
15324 esac
15325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15326   (eval "$ac_compile") 2>conftest.er1
15327   ac_status=$?
15328   grep -v '^ *+' conftest.er1 >conftest.err
15329   rm -f conftest.er1
15330   cat conftest.err >&5
15331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332   (exit $ac_status); } &&
15333          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15334   { (case "(($ac_try" in
15335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15336   *) ac_try_echo=$ac_try;;
15337 esac
15338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15339   (eval "$ac_try") 2>&5
15340   ac_status=$?
15341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342   (exit $ac_status); }; } &&
15343          { ac_try='test -s conftest.$ac_objext'
15344   { (case "(($ac_try" in
15345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15346   *) ac_try_echo=$ac_try;;
15347 esac
15348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15349   (eval "$ac_try") 2>&5
15350   ac_status=$?
15351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352   (exit $ac_status); }; }; then
15353   ac_header_compiler=yes
15354 else
15355   echo "$as_me: failed program was:" >&5
15356 sed 's/^/| /' conftest.$ac_ext >&5
15357
15358         ac_header_compiler=no
15359 fi
15360
15361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15362 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15363 echo "${ECHO_T}$ac_header_compiler" >&6; }
15364
15365 # Is the header present?
15366 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15367 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15368 cat >conftest.$ac_ext <<_ACEOF
15369 /* confdefs.h.  */
15370 _ACEOF
15371 cat confdefs.h >>conftest.$ac_ext
15372 cat >>conftest.$ac_ext <<_ACEOF
15373 /* end confdefs.h.  */
15374 #include <$ac_header>
15375 _ACEOF
15376 if { (ac_try="$ac_cpp conftest.$ac_ext"
15377 case "(($ac_try" in
15378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15379   *) ac_try_echo=$ac_try;;
15380 esac
15381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15382   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15383   ac_status=$?
15384   grep -v '^ *+' conftest.er1 >conftest.err
15385   rm -f conftest.er1
15386   cat conftest.err >&5
15387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388   (exit $ac_status); } >/dev/null; then
15389   if test -s conftest.err; then
15390     ac_cpp_err=$ac_c_preproc_warn_flag
15391     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15392   else
15393     ac_cpp_err=
15394   fi
15395 else
15396   ac_cpp_err=yes
15397 fi
15398 if test -z "$ac_cpp_err"; then
15399   ac_header_preproc=yes
15400 else
15401   echo "$as_me: failed program was:" >&5
15402 sed 's/^/| /' conftest.$ac_ext >&5
15403
15404   ac_header_preproc=no
15405 fi
15406
15407 rm -f conftest.err conftest.$ac_ext
15408 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15409 echo "${ECHO_T}$ac_header_preproc" >&6; }
15410
15411 # So?  What about this header?
15412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15413   yes:no: )
15414     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15415 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15416     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15417 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15418     ac_header_preproc=yes
15419     ;;
15420   no:yes:* )
15421     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15422 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15423     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15424 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15425     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15426 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15427     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15428 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15429     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15431     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15432 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15433     ( cat <<\_ASBOX
15434 ## ------------------------------ ##
15435 ## Report this to bugs@yourdomain ##
15436 ## ------------------------------ ##
15437 _ASBOX
15438      ) | sed "s/^/$as_me: WARNING:     /" >&2
15439     ;;
15440 esac
15441 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15444   echo $ECHO_N "(cached) $ECHO_C" >&6
15445 else
15446   eval "$as_ac_Header=\$ac_header_preproc"
15447 fi
15448 ac_res=`eval echo '${'$as_ac_Header'}'`
15449                { echo "$as_me:$LINENO: result: $ac_res" >&5
15450 echo "${ECHO_T}$ac_res" >&6; }
15451
15452 fi
15453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15454   cat >>confdefs.h <<_ACEOF
15455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15456 _ACEOF
15457
15458 fi
15459
15460 done
15461
15462 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15463
15464 for ac_header in pthread.h
15465 do
15466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15468   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15471   echo $ECHO_N "(cached) $ECHO_C" >&6
15472 fi
15473 ac_res=`eval echo '${'$as_ac_Header'}'`
15474                { echo "$as_me:$LINENO: result: $ac_res" >&5
15475 echo "${ECHO_T}$ac_res" >&6; }
15476 else
15477   # Is the header compilable?
15478 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15479 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15480 cat >conftest.$ac_ext <<_ACEOF
15481 /* confdefs.h.  */
15482 _ACEOF
15483 cat confdefs.h >>conftest.$ac_ext
15484 cat >>conftest.$ac_ext <<_ACEOF
15485 /* end confdefs.h.  */
15486 $ac_includes_default
15487 #include <$ac_header>
15488 _ACEOF
15489 rm -f conftest.$ac_objext
15490 if { (ac_try="$ac_compile"
15491 case "(($ac_try" in
15492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15493   *) ac_try_echo=$ac_try;;
15494 esac
15495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15496   (eval "$ac_compile") 2>conftest.er1
15497   ac_status=$?
15498   grep -v '^ *+' conftest.er1 >conftest.err
15499   rm -f conftest.er1
15500   cat conftest.err >&5
15501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502   (exit $ac_status); } &&
15503          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15504   { (case "(($ac_try" in
15505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15506   *) ac_try_echo=$ac_try;;
15507 esac
15508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15509   (eval "$ac_try") 2>&5
15510   ac_status=$?
15511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512   (exit $ac_status); }; } &&
15513          { ac_try='test -s conftest.$ac_objext'
15514   { (case "(($ac_try" in
15515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15516   *) ac_try_echo=$ac_try;;
15517 esac
15518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15519   (eval "$ac_try") 2>&5
15520   ac_status=$?
15521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522   (exit $ac_status); }; }; then
15523   ac_header_compiler=yes
15524 else
15525   echo "$as_me: failed program was:" >&5
15526 sed 's/^/| /' conftest.$ac_ext >&5
15527
15528         ac_header_compiler=no
15529 fi
15530
15531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15532 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15533 echo "${ECHO_T}$ac_header_compiler" >&6; }
15534
15535 # Is the header present?
15536 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15537 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15538 cat >conftest.$ac_ext <<_ACEOF
15539 /* confdefs.h.  */
15540 _ACEOF
15541 cat confdefs.h >>conftest.$ac_ext
15542 cat >>conftest.$ac_ext <<_ACEOF
15543 /* end confdefs.h.  */
15544 #include <$ac_header>
15545 _ACEOF
15546 if { (ac_try="$ac_cpp conftest.$ac_ext"
15547 case "(($ac_try" in
15548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15549   *) ac_try_echo=$ac_try;;
15550 esac
15551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15552   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15553   ac_status=$?
15554   grep -v '^ *+' conftest.er1 >conftest.err
15555   rm -f conftest.er1
15556   cat conftest.err >&5
15557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558   (exit $ac_status); } >/dev/null; then
15559   if test -s conftest.err; then
15560     ac_cpp_err=$ac_c_preproc_warn_flag
15561     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15562   else
15563     ac_cpp_err=
15564   fi
15565 else
15566   ac_cpp_err=yes
15567 fi
15568 if test -z "$ac_cpp_err"; then
15569   ac_header_preproc=yes
15570 else
15571   echo "$as_me: failed program was:" >&5
15572 sed 's/^/| /' conftest.$ac_ext >&5
15573
15574   ac_header_preproc=no
15575 fi
15576
15577 rm -f conftest.err conftest.$ac_ext
15578 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15579 echo "${ECHO_T}$ac_header_preproc" >&6; }
15580
15581 # So?  What about this header?
15582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15583   yes:no: )
15584     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15586     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15588     ac_header_preproc=yes
15589     ;;
15590   no:yes:* )
15591     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15593     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15594 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15595     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15597     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15598 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15599     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15601     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15603     ( cat <<\_ASBOX
15604 ## ------------------------------ ##
15605 ## Report this to bugs@yourdomain ##
15606 ## ------------------------------ ##
15607 _ASBOX
15608      ) | sed "s/^/$as_me: WARNING:     /" >&2
15609     ;;
15610 esac
15611 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15614   echo $ECHO_N "(cached) $ECHO_C" >&6
15615 else
15616   eval "$as_ac_Header=\$ac_header_preproc"
15617 fi
15618 ac_res=`eval echo '${'$as_ac_Header'}'`
15619                { echo "$as_me:$LINENO: result: $ac_res" >&5
15620 echo "${ECHO_T}$ac_res" >&6; }
15621
15622 fi
15623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15624   cat >>confdefs.h <<_ACEOF
15625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15626 _ACEOF
15627  HAVE_PTHREAD=1
15628
15629 else
15630   HAVE_PTHREAD=0
15631
15632 fi
15633
15634 done
15635
15636 else
15637   HAVE_PTHREAD=0
15638
15639 fi
15640
15641 if test "$llvm_cv_enable_libffi" = "yes" ; then
15642
15643
15644 for ac_header in ffi.h ffi/ffi.h
15645 do
15646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15648   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15651   echo $ECHO_N "(cached) $ECHO_C" >&6
15652 fi
15653 ac_res=`eval echo '${'$as_ac_Header'}'`
15654                { echo "$as_me:$LINENO: result: $ac_res" >&5
15655 echo "${ECHO_T}$ac_res" >&6; }
15656 else
15657   # Is the header compilable?
15658 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15660 cat >conftest.$ac_ext <<_ACEOF
15661 /* confdefs.h.  */
15662 _ACEOF
15663 cat confdefs.h >>conftest.$ac_ext
15664 cat >>conftest.$ac_ext <<_ACEOF
15665 /* end confdefs.h.  */
15666 $ac_includes_default
15667 #include <$ac_header>
15668 _ACEOF
15669 rm -f conftest.$ac_objext
15670 if { (ac_try="$ac_compile"
15671 case "(($ac_try" in
15672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15673   *) ac_try_echo=$ac_try;;
15674 esac
15675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15676   (eval "$ac_compile") 2>conftest.er1
15677   ac_status=$?
15678   grep -v '^ *+' conftest.er1 >conftest.err
15679   rm -f conftest.er1
15680   cat conftest.err >&5
15681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682   (exit $ac_status); } &&
15683          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15684   { (case "(($ac_try" in
15685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15686   *) ac_try_echo=$ac_try;;
15687 esac
15688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15689   (eval "$ac_try") 2>&5
15690   ac_status=$?
15691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692   (exit $ac_status); }; } &&
15693          { ac_try='test -s conftest.$ac_objext'
15694   { (case "(($ac_try" in
15695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15696   *) ac_try_echo=$ac_try;;
15697 esac
15698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15699   (eval "$ac_try") 2>&5
15700   ac_status=$?
15701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702   (exit $ac_status); }; }; then
15703   ac_header_compiler=yes
15704 else
15705   echo "$as_me: failed program was:" >&5
15706 sed 's/^/| /' conftest.$ac_ext >&5
15707
15708         ac_header_compiler=no
15709 fi
15710
15711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15712 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15713 echo "${ECHO_T}$ac_header_compiler" >&6; }
15714
15715 # Is the header present?
15716 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15717 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15718 cat >conftest.$ac_ext <<_ACEOF
15719 /* confdefs.h.  */
15720 _ACEOF
15721 cat confdefs.h >>conftest.$ac_ext
15722 cat >>conftest.$ac_ext <<_ACEOF
15723 /* end confdefs.h.  */
15724 #include <$ac_header>
15725 _ACEOF
15726 if { (ac_try="$ac_cpp conftest.$ac_ext"
15727 case "(($ac_try" in
15728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15729   *) ac_try_echo=$ac_try;;
15730 esac
15731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15732   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15733   ac_status=$?
15734   grep -v '^ *+' conftest.er1 >conftest.err
15735   rm -f conftest.er1
15736   cat conftest.err >&5
15737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738   (exit $ac_status); } >/dev/null; then
15739   if test -s conftest.err; then
15740     ac_cpp_err=$ac_c_preproc_warn_flag
15741     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15742   else
15743     ac_cpp_err=
15744   fi
15745 else
15746   ac_cpp_err=yes
15747 fi
15748 if test -z "$ac_cpp_err"; then
15749   ac_header_preproc=yes
15750 else
15751   echo "$as_me: failed program was:" >&5
15752 sed 's/^/| /' conftest.$ac_ext >&5
15753
15754   ac_header_preproc=no
15755 fi
15756
15757 rm -f conftest.err conftest.$ac_ext
15758 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15759 echo "${ECHO_T}$ac_header_preproc" >&6; }
15760
15761 # So?  What about this header?
15762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15763   yes:no: )
15764     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15765 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15766     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15768     ac_header_preproc=yes
15769     ;;
15770   no:yes:* )
15771     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15773     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15774 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15775     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15776 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15777     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15778 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15779     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15781     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15782 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15783     ( cat <<\_ASBOX
15784 ## ------------------------------ ##
15785 ## Report this to bugs@yourdomain ##
15786 ## ------------------------------ ##
15787 _ASBOX
15788      ) | sed "s/^/$as_me: WARNING:     /" >&2
15789     ;;
15790 esac
15791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15794   echo $ECHO_N "(cached) $ECHO_C" >&6
15795 else
15796   eval "$as_ac_Header=\$ac_header_preproc"
15797 fi
15798 ac_res=`eval echo '${'$as_ac_Header'}'`
15799                { echo "$as_me:$LINENO: result: $ac_res" >&5
15800 echo "${ECHO_T}$ac_res" >&6; }
15801
15802 fi
15803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15804   cat >>confdefs.h <<_ACEOF
15805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15806 _ACEOF
15807
15808 fi
15809
15810 done
15811
15812 fi
15813
15814
15815 for ac_header in CrashReporterClient.h
15816 do
15817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15819   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15822   echo $ECHO_N "(cached) $ECHO_C" >&6
15823 fi
15824 ac_res=`eval echo '${'$as_ac_Header'}'`
15825                { echo "$as_me:$LINENO: result: $ac_res" >&5
15826 echo "${ECHO_T}$ac_res" >&6; }
15827 else
15828   # Is the header compilable?
15829 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15830 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15831 cat >conftest.$ac_ext <<_ACEOF
15832 /* confdefs.h.  */
15833 _ACEOF
15834 cat confdefs.h >>conftest.$ac_ext
15835 cat >>conftest.$ac_ext <<_ACEOF
15836 /* end confdefs.h.  */
15837 $ac_includes_default
15838 #include <$ac_header>
15839 _ACEOF
15840 rm -f conftest.$ac_objext
15841 if { (ac_try="$ac_compile"
15842 case "(($ac_try" in
15843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15844   *) ac_try_echo=$ac_try;;
15845 esac
15846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15847   (eval "$ac_compile") 2>conftest.er1
15848   ac_status=$?
15849   grep -v '^ *+' conftest.er1 >conftest.err
15850   rm -f conftest.er1
15851   cat conftest.err >&5
15852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853   (exit $ac_status); } &&
15854          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15855   { (case "(($ac_try" in
15856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15857   *) ac_try_echo=$ac_try;;
15858 esac
15859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15860   (eval "$ac_try") 2>&5
15861   ac_status=$?
15862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863   (exit $ac_status); }; } &&
15864          { ac_try='test -s conftest.$ac_objext'
15865   { (case "(($ac_try" in
15866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15867   *) ac_try_echo=$ac_try;;
15868 esac
15869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15870   (eval "$ac_try") 2>&5
15871   ac_status=$?
15872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873   (exit $ac_status); }; }; then
15874   ac_header_compiler=yes
15875 else
15876   echo "$as_me: failed program was:" >&5
15877 sed 's/^/| /' conftest.$ac_ext >&5
15878
15879         ac_header_compiler=no
15880 fi
15881
15882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15883 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15884 echo "${ECHO_T}$ac_header_compiler" >&6; }
15885
15886 # Is the header present?
15887 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15888 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15889 cat >conftest.$ac_ext <<_ACEOF
15890 /* confdefs.h.  */
15891 _ACEOF
15892 cat confdefs.h >>conftest.$ac_ext
15893 cat >>conftest.$ac_ext <<_ACEOF
15894 /* end confdefs.h.  */
15895 #include <$ac_header>
15896 _ACEOF
15897 if { (ac_try="$ac_cpp conftest.$ac_ext"
15898 case "(($ac_try" in
15899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15900   *) ac_try_echo=$ac_try;;
15901 esac
15902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15903   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15904   ac_status=$?
15905   grep -v '^ *+' conftest.er1 >conftest.err
15906   rm -f conftest.er1
15907   cat conftest.err >&5
15908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909   (exit $ac_status); } >/dev/null; then
15910   if test -s conftest.err; then
15911     ac_cpp_err=$ac_c_preproc_warn_flag
15912     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15913   else
15914     ac_cpp_err=
15915   fi
15916 else
15917   ac_cpp_err=yes
15918 fi
15919 if test -z "$ac_cpp_err"; then
15920   ac_header_preproc=yes
15921 else
15922   echo "$as_me: failed program was:" >&5
15923 sed 's/^/| /' conftest.$ac_ext >&5
15924
15925   ac_header_preproc=no
15926 fi
15927
15928 rm -f conftest.err conftest.$ac_ext
15929 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15930 echo "${ECHO_T}$ac_header_preproc" >&6; }
15931
15932 # So?  What about this header?
15933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15934   yes:no: )
15935     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15936 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15937     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15938 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15939     ac_header_preproc=yes
15940     ;;
15941   no:yes:* )
15942     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15943 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15944     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15945 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15946     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15947 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15948     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15949 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15950     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15951 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15952     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15953 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15954     ( cat <<\_ASBOX
15955 ## ------------------------------ ##
15956 ## Report this to bugs@yourdomain ##
15957 ## ------------------------------ ##
15958 _ASBOX
15959      ) | sed "s/^/$as_me: WARNING:     /" >&2
15960     ;;
15961 esac
15962 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15965   echo $ECHO_N "(cached) $ECHO_C" >&6
15966 else
15967   eval "$as_ac_Header=\$ac_header_preproc"
15968 fi
15969 ac_res=`eval echo '${'$as_ac_Header'}'`
15970                { echo "$as_me:$LINENO: result: $ac_res" >&5
15971 echo "${ECHO_T}$ac_res" >&6; }
15972
15973 fi
15974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15975   cat >>confdefs.h <<_ACEOF
15976 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15977 _ACEOF
15978
15979 fi
15980
15981 done
15982
15983
15984 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15985 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15986 cat >conftest.$ac_ext <<_ACEOF
15987 /* confdefs.h.  */
15988 _ACEOF
15989 cat confdefs.h >>conftest.$ac_ext
15990 cat >>conftest.$ac_ext <<_ACEOF
15991 /* end confdefs.h.  */
15992 extern const char *__crashreporter_info__;
15993       int main() {
15994         __crashreporter_info__ = "test";
15995         return 0;
15996       }
15997
15998 _ACEOF
15999 rm -f conftest.$ac_objext conftest$ac_exeext
16000 if { (ac_try="$ac_link"
16001 case "(($ac_try" in
16002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16003   *) ac_try_echo=$ac_try;;
16004 esac
16005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16006   (eval "$ac_link") 2>conftest.er1
16007   ac_status=$?
16008   grep -v '^ *+' conftest.er1 >conftest.err
16009   rm -f conftest.er1
16010   cat conftest.err >&5
16011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012   (exit $ac_status); } &&
16013          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16014   { (case "(($ac_try" in
16015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16016   *) ac_try_echo=$ac_try;;
16017 esac
16018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16019   (eval "$ac_try") 2>&5
16020   ac_status=$?
16021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022   (exit $ac_status); }; } &&
16023          { ac_try='test -s conftest$ac_exeext'
16024   { (case "(($ac_try" in
16025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16026   *) ac_try_echo=$ac_try;;
16027 esac
16028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16029   (eval "$ac_try") 2>&5
16030   ac_status=$?
16031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032   (exit $ac_status); }; }; then
16033   { echo "$as_me:$LINENO: result: yes" >&5
16034 echo "${ECHO_T}yes" >&6; }
16035
16036 cat >>confdefs.h <<\_ACEOF
16037 #define HAVE_CRASHREPORTER_INFO 1
16038 _ACEOF
16039
16040 else
16041   echo "$as_me: failed program was:" >&5
16042 sed 's/^/| /' conftest.$ac_ext >&5
16043
16044         { echo "$as_me:$LINENO: result: no" >&5
16045 echo "${ECHO_T}no" >&6; }
16046
16047 cat >>confdefs.h <<\_ACEOF
16048 #define HAVE_CRASHREPORTER_INFO 0
16049 _ACEOF
16050
16051 fi
16052
16053 rm -f core conftest.err conftest.$ac_objext \
16054       conftest$ac_exeext conftest.$ac_ext
16055
16056
16057
16058
16059   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16060 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16061 if test "${ac_cv_huge_val_sanity+set}" = set; then
16062   echo $ECHO_N "(cached) $ECHO_C" >&6
16063 else
16064
16065     ac_ext=cpp
16066 ac_cpp='$CXXCPP $CPPFLAGS'
16067 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16068 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16069 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16070
16071     ac_save_CXXFLAGS=$CXXFLAGS
16072     CXXFLAGS=-pedantic
16073     if test "$cross_compiling" = yes; then
16074   ac_cv_huge_val_sanity=yes
16075 else
16076   cat >conftest.$ac_ext <<_ACEOF
16077 /* confdefs.h.  */
16078 _ACEOF
16079 cat confdefs.h >>conftest.$ac_ext
16080 cat >>conftest.$ac_ext <<_ACEOF
16081 /* end confdefs.h.  */
16082 #include <math.h>
16083 int
16084 main ()
16085 {
16086 double x = HUGE_VAL; return x != x;
16087   ;
16088   return 0;
16089 }
16090 _ACEOF
16091 rm -f conftest$ac_exeext
16092 if { (ac_try="$ac_link"
16093 case "(($ac_try" in
16094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16095   *) ac_try_echo=$ac_try;;
16096 esac
16097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16098   (eval "$ac_link") 2>&5
16099   ac_status=$?
16100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16102   { (case "(($ac_try" in
16103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16104   *) ac_try_echo=$ac_try;;
16105 esac
16106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16107   (eval "$ac_try") 2>&5
16108   ac_status=$?
16109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110   (exit $ac_status); }; }; then
16111   ac_cv_huge_val_sanity=yes
16112 else
16113   echo "$as_me: program exited with status $ac_status" >&5
16114 echo "$as_me: failed program was:" >&5
16115 sed 's/^/| /' conftest.$ac_ext >&5
16116
16117 ( exit $ac_status )
16118 ac_cv_huge_val_sanity=no
16119 fi
16120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16121 fi
16122
16123
16124     CXXFLAGS=$ac_save_CXXFLAGS
16125     ac_ext=c
16126 ac_cpp='$CPP $CPPFLAGS'
16127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16130
16131
16132 fi
16133 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16134 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16135   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16136
16137
16138 { echo "$as_me:$LINENO: checking for pid_t" >&5
16139 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16140 if test "${ac_cv_type_pid_t+set}" = set; then
16141   echo $ECHO_N "(cached) $ECHO_C" >&6
16142 else
16143   cat >conftest.$ac_ext <<_ACEOF
16144 /* confdefs.h.  */
16145 _ACEOF
16146 cat confdefs.h >>conftest.$ac_ext
16147 cat >>conftest.$ac_ext <<_ACEOF
16148 /* end confdefs.h.  */
16149 $ac_includes_default
16150 typedef pid_t ac__type_new_;
16151 int
16152 main ()
16153 {
16154 if ((ac__type_new_ *) 0)
16155   return 0;
16156 if (sizeof (ac__type_new_))
16157   return 0;
16158   ;
16159   return 0;
16160 }
16161 _ACEOF
16162 rm -f conftest.$ac_objext
16163 if { (ac_try="$ac_compile"
16164 case "(($ac_try" in
16165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16166   *) ac_try_echo=$ac_try;;
16167 esac
16168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16169   (eval "$ac_compile") 2>conftest.er1
16170   ac_status=$?
16171   grep -v '^ *+' conftest.er1 >conftest.err
16172   rm -f conftest.er1
16173   cat conftest.err >&5
16174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175   (exit $ac_status); } &&
16176          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16177   { (case "(($ac_try" in
16178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16179   *) ac_try_echo=$ac_try;;
16180 esac
16181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16182   (eval "$ac_try") 2>&5
16183   ac_status=$?
16184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185   (exit $ac_status); }; } &&
16186          { ac_try='test -s conftest.$ac_objext'
16187   { (case "(($ac_try" in
16188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189   *) ac_try_echo=$ac_try;;
16190 esac
16191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16192   (eval "$ac_try") 2>&5
16193   ac_status=$?
16194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195   (exit $ac_status); }; }; then
16196   ac_cv_type_pid_t=yes
16197 else
16198   echo "$as_me: failed program was:" >&5
16199 sed 's/^/| /' conftest.$ac_ext >&5
16200
16201         ac_cv_type_pid_t=no
16202 fi
16203
16204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16205 fi
16206 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16207 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16208 if test $ac_cv_type_pid_t = yes; then
16209   :
16210 else
16211
16212 cat >>confdefs.h <<_ACEOF
16213 #define pid_t int
16214 _ACEOF
16215
16216 fi
16217
16218 { echo "$as_me:$LINENO: checking for size_t" >&5
16219 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16220 if test "${ac_cv_type_size_t+set}" = set; then
16221   echo $ECHO_N "(cached) $ECHO_C" >&6
16222 else
16223   cat >conftest.$ac_ext <<_ACEOF
16224 /* confdefs.h.  */
16225 _ACEOF
16226 cat confdefs.h >>conftest.$ac_ext
16227 cat >>conftest.$ac_ext <<_ACEOF
16228 /* end confdefs.h.  */
16229 $ac_includes_default
16230 typedef size_t ac__type_new_;
16231 int
16232 main ()
16233 {
16234 if ((ac__type_new_ *) 0)
16235   return 0;
16236 if (sizeof (ac__type_new_))
16237   return 0;
16238   ;
16239   return 0;
16240 }
16241 _ACEOF
16242 rm -f conftest.$ac_objext
16243 if { (ac_try="$ac_compile"
16244 case "(($ac_try" in
16245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16246   *) ac_try_echo=$ac_try;;
16247 esac
16248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16249   (eval "$ac_compile") 2>conftest.er1
16250   ac_status=$?
16251   grep -v '^ *+' conftest.er1 >conftest.err
16252   rm -f conftest.er1
16253   cat conftest.err >&5
16254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255   (exit $ac_status); } &&
16256          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16257   { (case "(($ac_try" in
16258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16259   *) ac_try_echo=$ac_try;;
16260 esac
16261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16262   (eval "$ac_try") 2>&5
16263   ac_status=$?
16264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265   (exit $ac_status); }; } &&
16266          { ac_try='test -s conftest.$ac_objext'
16267   { (case "(($ac_try" in
16268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16269   *) ac_try_echo=$ac_try;;
16270 esac
16271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16272   (eval "$ac_try") 2>&5
16273   ac_status=$?
16274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275   (exit $ac_status); }; }; then
16276   ac_cv_type_size_t=yes
16277 else
16278   echo "$as_me: failed program was:" >&5
16279 sed 's/^/| /' conftest.$ac_ext >&5
16280
16281         ac_cv_type_size_t=no
16282 fi
16283
16284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16285 fi
16286 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16287 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16288 if test $ac_cv_type_size_t = yes; then
16289   :
16290 else
16291
16292 cat >>confdefs.h <<_ACEOF
16293 #define size_t unsigned int
16294 _ACEOF
16295
16296 fi
16297
16298
16299 cat >>confdefs.h <<_ACEOF
16300 #define RETSIGTYPE void
16301 _ACEOF
16302
16303 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16304 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16305 if test "${ac_cv_struct_tm+set}" = set; then
16306   echo $ECHO_N "(cached) $ECHO_C" >&6
16307 else
16308   cat >conftest.$ac_ext <<_ACEOF
16309 /* confdefs.h.  */
16310 _ACEOF
16311 cat confdefs.h >>conftest.$ac_ext
16312 cat >>conftest.$ac_ext <<_ACEOF
16313 /* end confdefs.h.  */
16314 #include <sys/types.h>
16315 #include <time.h>
16316
16317 int
16318 main ()
16319 {
16320 struct tm *tp; tp->tm_sec;
16321   ;
16322   return 0;
16323 }
16324 _ACEOF
16325 rm -f conftest.$ac_objext
16326 if { (ac_try="$ac_compile"
16327 case "(($ac_try" in
16328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16329   *) ac_try_echo=$ac_try;;
16330 esac
16331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16332   (eval "$ac_compile") 2>conftest.er1
16333   ac_status=$?
16334   grep -v '^ *+' conftest.er1 >conftest.err
16335   rm -f conftest.er1
16336   cat conftest.err >&5
16337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338   (exit $ac_status); } &&
16339          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16346   ac_status=$?
16347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348   (exit $ac_status); }; } &&
16349          { ac_try='test -s conftest.$ac_objext'
16350   { (case "(($ac_try" in
16351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16352   *) ac_try_echo=$ac_try;;
16353 esac
16354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16355   (eval "$ac_try") 2>&5
16356   ac_status=$?
16357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358   (exit $ac_status); }; }; then
16359   ac_cv_struct_tm=time.h
16360 else
16361   echo "$as_me: failed program was:" >&5
16362 sed 's/^/| /' conftest.$ac_ext >&5
16363
16364         ac_cv_struct_tm=sys/time.h
16365 fi
16366
16367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16368 fi
16369 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16370 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16371 if test $ac_cv_struct_tm = sys/time.h; then
16372
16373 cat >>confdefs.h <<\_ACEOF
16374 #define TM_IN_SYS_TIME 1
16375 _ACEOF
16376
16377 fi
16378
16379 { echo "$as_me:$LINENO: checking for int64_t" >&5
16380 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16381 if test "${ac_cv_type_int64_t+set}" = set; then
16382   echo $ECHO_N "(cached) $ECHO_C" >&6
16383 else
16384   cat >conftest.$ac_ext <<_ACEOF
16385 /* confdefs.h.  */
16386 _ACEOF
16387 cat confdefs.h >>conftest.$ac_ext
16388 cat >>conftest.$ac_ext <<_ACEOF
16389 /* end confdefs.h.  */
16390 $ac_includes_default
16391 typedef int64_t ac__type_new_;
16392 int
16393 main ()
16394 {
16395 if ((ac__type_new_ *) 0)
16396   return 0;
16397 if (sizeof (ac__type_new_))
16398   return 0;
16399   ;
16400   return 0;
16401 }
16402 _ACEOF
16403 rm -f conftest.$ac_objext
16404 if { (ac_try="$ac_compile"
16405 case "(($ac_try" in
16406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16407   *) ac_try_echo=$ac_try;;
16408 esac
16409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16410   (eval "$ac_compile") 2>conftest.er1
16411   ac_status=$?
16412   grep -v '^ *+' conftest.er1 >conftest.err
16413   rm -f conftest.er1
16414   cat conftest.err >&5
16415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416   (exit $ac_status); } &&
16417          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16418   { (case "(($ac_try" in
16419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16420   *) ac_try_echo=$ac_try;;
16421 esac
16422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16423   (eval "$ac_try") 2>&5
16424   ac_status=$?
16425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426   (exit $ac_status); }; } &&
16427          { ac_try='test -s conftest.$ac_objext'
16428   { (case "(($ac_try" in
16429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16430   *) ac_try_echo=$ac_try;;
16431 esac
16432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16433   (eval "$ac_try") 2>&5
16434   ac_status=$?
16435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436   (exit $ac_status); }; }; then
16437   ac_cv_type_int64_t=yes
16438 else
16439   echo "$as_me: failed program was:" >&5
16440 sed 's/^/| /' conftest.$ac_ext >&5
16441
16442         ac_cv_type_int64_t=no
16443 fi
16444
16445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16446 fi
16447 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16448 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16449 if test $ac_cv_type_int64_t = yes; then
16450
16451 cat >>confdefs.h <<_ACEOF
16452 #define HAVE_INT64_T 1
16453 _ACEOF
16454
16455
16456 else
16457   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16458 echo "$as_me: error: Type int64_t required but not found" >&2;}
16459    { (exit 1); exit 1; }; }
16460 fi
16461
16462 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16463 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16464 if test "${ac_cv_type_uint64_t+set}" = set; then
16465   echo $ECHO_N "(cached) $ECHO_C" >&6
16466 else
16467   cat >conftest.$ac_ext <<_ACEOF
16468 /* confdefs.h.  */
16469 _ACEOF
16470 cat confdefs.h >>conftest.$ac_ext
16471 cat >>conftest.$ac_ext <<_ACEOF
16472 /* end confdefs.h.  */
16473 $ac_includes_default
16474 typedef uint64_t ac__type_new_;
16475 int
16476 main ()
16477 {
16478 if ((ac__type_new_ *) 0)
16479   return 0;
16480 if (sizeof (ac__type_new_))
16481   return 0;
16482   ;
16483   return 0;
16484 }
16485 _ACEOF
16486 rm -f conftest.$ac_objext
16487 if { (ac_try="$ac_compile"
16488 case "(($ac_try" in
16489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16490   *) ac_try_echo=$ac_try;;
16491 esac
16492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16493   (eval "$ac_compile") 2>conftest.er1
16494   ac_status=$?
16495   grep -v '^ *+' conftest.er1 >conftest.err
16496   rm -f conftest.er1
16497   cat conftest.err >&5
16498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499   (exit $ac_status); } &&
16500          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16507   ac_status=$?
16508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509   (exit $ac_status); }; } &&
16510          { ac_try='test -s conftest.$ac_objext'
16511   { (case "(($ac_try" in
16512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16513   *) ac_try_echo=$ac_try;;
16514 esac
16515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16516   (eval "$ac_try") 2>&5
16517   ac_status=$?
16518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519   (exit $ac_status); }; }; then
16520   ac_cv_type_uint64_t=yes
16521 else
16522   echo "$as_me: failed program was:" >&5
16523 sed 's/^/| /' conftest.$ac_ext >&5
16524
16525         ac_cv_type_uint64_t=no
16526 fi
16527
16528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16529 fi
16530 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16531 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16532 if test $ac_cv_type_uint64_t = yes; then
16533
16534 cat >>confdefs.h <<_ACEOF
16535 #define HAVE_UINT64_T 1
16536 _ACEOF
16537
16538
16539 else
16540   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16541 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16542 if test "${ac_cv_type_u_int64_t+set}" = set; then
16543   echo $ECHO_N "(cached) $ECHO_C" >&6
16544 else
16545   cat >conftest.$ac_ext <<_ACEOF
16546 /* confdefs.h.  */
16547 _ACEOF
16548 cat confdefs.h >>conftest.$ac_ext
16549 cat >>conftest.$ac_ext <<_ACEOF
16550 /* end confdefs.h.  */
16551 $ac_includes_default
16552 typedef u_int64_t ac__type_new_;
16553 int
16554 main ()
16555 {
16556 if ((ac__type_new_ *) 0)
16557   return 0;
16558 if (sizeof (ac__type_new_))
16559   return 0;
16560   ;
16561   return 0;
16562 }
16563 _ACEOF
16564 rm -f conftest.$ac_objext
16565 if { (ac_try="$ac_compile"
16566 case "(($ac_try" in
16567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16568   *) ac_try_echo=$ac_try;;
16569 esac
16570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16571   (eval "$ac_compile") 2>conftest.er1
16572   ac_status=$?
16573   grep -v '^ *+' conftest.er1 >conftest.err
16574   rm -f conftest.er1
16575   cat conftest.err >&5
16576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577   (exit $ac_status); } &&
16578          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16579   { (case "(($ac_try" in
16580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16581   *) ac_try_echo=$ac_try;;
16582 esac
16583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16584   (eval "$ac_try") 2>&5
16585   ac_status=$?
16586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587   (exit $ac_status); }; } &&
16588          { ac_try='test -s conftest.$ac_objext'
16589   { (case "(($ac_try" in
16590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16591   *) ac_try_echo=$ac_try;;
16592 esac
16593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16594   (eval "$ac_try") 2>&5
16595   ac_status=$?
16596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597   (exit $ac_status); }; }; then
16598   ac_cv_type_u_int64_t=yes
16599 else
16600   echo "$as_me: failed program was:" >&5
16601 sed 's/^/| /' conftest.$ac_ext >&5
16602
16603         ac_cv_type_u_int64_t=no
16604 fi
16605
16606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16607 fi
16608 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16609 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16610 if test $ac_cv_type_u_int64_t = yes; then
16611
16612 cat >>confdefs.h <<_ACEOF
16613 #define HAVE_U_INT64_T 1
16614 _ACEOF
16615
16616
16617 else
16618   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16619 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16620    { (exit 1); exit 1; }; }
16621 fi
16622
16623 fi
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16635 do
16636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16637 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16639 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16640   echo $ECHO_N "(cached) $ECHO_C" >&6
16641 else
16642   cat >conftest.$ac_ext <<_ACEOF
16643 /* confdefs.h.  */
16644 _ACEOF
16645 cat confdefs.h >>conftest.$ac_ext
16646 cat >>conftest.$ac_ext <<_ACEOF
16647 /* end confdefs.h.  */
16648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16649    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16650 #define $ac_func innocuous_$ac_func
16651
16652 /* System header to define __stub macros and hopefully few prototypes,
16653     which can conflict with char $ac_func (); below.
16654     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16655     <limits.h> exists even on freestanding compilers.  */
16656
16657 #ifdef __STDC__
16658 # include <limits.h>
16659 #else
16660 # include <assert.h>
16661 #endif
16662
16663 #undef $ac_func
16664
16665 /* Override any GCC internal prototype to avoid an error.
16666    Use char because int might match the return type of a GCC
16667    builtin and then its argument prototype would still apply.  */
16668 #ifdef __cplusplus
16669 extern "C"
16670 #endif
16671 char $ac_func ();
16672 /* The GNU C library defines this for functions which it implements
16673     to always fail with ENOSYS.  Some functions are actually named
16674     something starting with __ and the normal name is an alias.  */
16675 #if defined __stub_$ac_func || defined __stub___$ac_func
16676 choke me
16677 #endif
16678
16679 int
16680 main ()
16681 {
16682 return $ac_func ();
16683   ;
16684   return 0;
16685 }
16686 _ACEOF
16687 rm -f conftest.$ac_objext conftest$ac_exeext
16688 if { (ac_try="$ac_link"
16689 case "(($ac_try" in
16690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16691   *) ac_try_echo=$ac_try;;
16692 esac
16693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16694   (eval "$ac_link") 2>conftest.er1
16695   ac_status=$?
16696   grep -v '^ *+' conftest.er1 >conftest.err
16697   rm -f conftest.er1
16698   cat conftest.err >&5
16699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700   (exit $ac_status); } &&
16701          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16702   { (case "(($ac_try" in
16703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16704   *) ac_try_echo=$ac_try;;
16705 esac
16706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16707   (eval "$ac_try") 2>&5
16708   ac_status=$?
16709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710   (exit $ac_status); }; } &&
16711          { ac_try='test -s conftest$ac_exeext'
16712   { (case "(($ac_try" in
16713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16714   *) ac_try_echo=$ac_try;;
16715 esac
16716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16717   (eval "$ac_try") 2>&5
16718   ac_status=$?
16719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720   (exit $ac_status); }; }; then
16721   eval "$as_ac_var=yes"
16722 else
16723   echo "$as_me: failed program was:" >&5
16724 sed 's/^/| /' conftest.$ac_ext >&5
16725
16726         eval "$as_ac_var=no"
16727 fi
16728
16729 rm -f core conftest.err conftest.$ac_objext \
16730       conftest$ac_exeext conftest.$ac_ext
16731 fi
16732 ac_res=`eval echo '${'$as_ac_var'}'`
16733                { echo "$as_me:$LINENO: result: $ac_res" >&5
16734 echo "${ECHO_T}$ac_res" >&6; }
16735 if test `eval echo '${'$as_ac_var'}'` = yes; then
16736   cat >>confdefs.h <<_ACEOF
16737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16738 _ACEOF
16739
16740 fi
16741 done
16742
16743
16744
16745
16746
16747 for ac_func in powf fmodf strtof round
16748 do
16749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16750 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16752 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16753   echo $ECHO_N "(cached) $ECHO_C" >&6
16754 else
16755   cat >conftest.$ac_ext <<_ACEOF
16756 /* confdefs.h.  */
16757 _ACEOF
16758 cat confdefs.h >>conftest.$ac_ext
16759 cat >>conftest.$ac_ext <<_ACEOF
16760 /* end confdefs.h.  */
16761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16762    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16763 #define $ac_func innocuous_$ac_func
16764
16765 /* System header to define __stub macros and hopefully few prototypes,
16766     which can conflict with char $ac_func (); below.
16767     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16768     <limits.h> exists even on freestanding compilers.  */
16769
16770 #ifdef __STDC__
16771 # include <limits.h>
16772 #else
16773 # include <assert.h>
16774 #endif
16775
16776 #undef $ac_func
16777
16778 /* Override any GCC internal prototype to avoid an error.
16779    Use char because int might match the return type of a GCC
16780    builtin and then its argument prototype would still apply.  */
16781 #ifdef __cplusplus
16782 extern "C"
16783 #endif
16784 char $ac_func ();
16785 /* The GNU C library defines this for functions which it implements
16786     to always fail with ENOSYS.  Some functions are actually named
16787     something starting with __ and the normal name is an alias.  */
16788 #if defined __stub_$ac_func || defined __stub___$ac_func
16789 choke me
16790 #endif
16791
16792 int
16793 main ()
16794 {
16795 return $ac_func ();
16796   ;
16797   return 0;
16798 }
16799 _ACEOF
16800 rm -f conftest.$ac_objext conftest$ac_exeext
16801 if { (ac_try="$ac_link"
16802 case "(($ac_try" in
16803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16804   *) ac_try_echo=$ac_try;;
16805 esac
16806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16807   (eval "$ac_link") 2>conftest.er1
16808   ac_status=$?
16809   grep -v '^ *+' conftest.er1 >conftest.err
16810   rm -f conftest.er1
16811   cat conftest.err >&5
16812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813   (exit $ac_status); } &&
16814          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16815   { (case "(($ac_try" in
16816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16817   *) ac_try_echo=$ac_try;;
16818 esac
16819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16820   (eval "$ac_try") 2>&5
16821   ac_status=$?
16822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823   (exit $ac_status); }; } &&
16824          { ac_try='test -s conftest$ac_exeext'
16825   { (case "(($ac_try" in
16826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16827   *) ac_try_echo=$ac_try;;
16828 esac
16829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16830   (eval "$ac_try") 2>&5
16831   ac_status=$?
16832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833   (exit $ac_status); }; }; then
16834   eval "$as_ac_var=yes"
16835 else
16836   echo "$as_me: failed program was:" >&5
16837 sed 's/^/| /' conftest.$ac_ext >&5
16838
16839         eval "$as_ac_var=no"
16840 fi
16841
16842 rm -f core conftest.err conftest.$ac_objext \
16843       conftest$ac_exeext conftest.$ac_ext
16844 fi
16845 ac_res=`eval echo '${'$as_ac_var'}'`
16846                { echo "$as_me:$LINENO: result: $ac_res" >&5
16847 echo "${ECHO_T}$ac_res" >&6; }
16848 if test `eval echo '${'$as_ac_var'}'` = yes; then
16849   cat >>confdefs.h <<_ACEOF
16850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16851 _ACEOF
16852
16853 fi
16854 done
16855
16856
16857
16858
16859
16860
16861 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16862 do
16863 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16864 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16866 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16867   echo $ECHO_N "(cached) $ECHO_C" >&6
16868 else
16869   cat >conftest.$ac_ext <<_ACEOF
16870 /* confdefs.h.  */
16871 _ACEOF
16872 cat confdefs.h >>conftest.$ac_ext
16873 cat >>conftest.$ac_ext <<_ACEOF
16874 /* end confdefs.h.  */
16875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16876    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16877 #define $ac_func innocuous_$ac_func
16878
16879 /* System header to define __stub macros and hopefully few prototypes,
16880     which can conflict with char $ac_func (); below.
16881     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16882     <limits.h> exists even on freestanding compilers.  */
16883
16884 #ifdef __STDC__
16885 # include <limits.h>
16886 #else
16887 # include <assert.h>
16888 #endif
16889
16890 #undef $ac_func
16891
16892 /* Override any GCC internal prototype to avoid an error.
16893    Use char because int might match the return type of a GCC
16894    builtin and then its argument prototype would still apply.  */
16895 #ifdef __cplusplus
16896 extern "C"
16897 #endif
16898 char $ac_func ();
16899 /* The GNU C library defines this for functions which it implements
16900     to always fail with ENOSYS.  Some functions are actually named
16901     something starting with __ and the normal name is an alias.  */
16902 #if defined __stub_$ac_func || defined __stub___$ac_func
16903 choke me
16904 #endif
16905
16906 int
16907 main ()
16908 {
16909 return $ac_func ();
16910   ;
16911   return 0;
16912 }
16913 _ACEOF
16914 rm -f conftest.$ac_objext conftest$ac_exeext
16915 if { (ac_try="$ac_link"
16916 case "(($ac_try" in
16917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16918   *) ac_try_echo=$ac_try;;
16919 esac
16920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16921   (eval "$ac_link") 2>conftest.er1
16922   ac_status=$?
16923   grep -v '^ *+' conftest.er1 >conftest.err
16924   rm -f conftest.er1
16925   cat conftest.err >&5
16926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927   (exit $ac_status); } &&
16928          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16929   { (case "(($ac_try" in
16930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16931   *) ac_try_echo=$ac_try;;
16932 esac
16933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16934   (eval "$ac_try") 2>&5
16935   ac_status=$?
16936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937   (exit $ac_status); }; } &&
16938          { ac_try='test -s conftest$ac_exeext'
16939   { (case "(($ac_try" in
16940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16941   *) ac_try_echo=$ac_try;;
16942 esac
16943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16944   (eval "$ac_try") 2>&5
16945   ac_status=$?
16946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947   (exit $ac_status); }; }; then
16948   eval "$as_ac_var=yes"
16949 else
16950   echo "$as_me: failed program was:" >&5
16951 sed 's/^/| /' conftest.$ac_ext >&5
16952
16953         eval "$as_ac_var=no"
16954 fi
16955
16956 rm -f core conftest.err conftest.$ac_objext \
16957       conftest$ac_exeext conftest.$ac_ext
16958 fi
16959 ac_res=`eval echo '${'$as_ac_var'}'`
16960                { echo "$as_me:$LINENO: result: $ac_res" >&5
16961 echo "${ECHO_T}$ac_res" >&6; }
16962 if test `eval echo '${'$as_ac_var'}'` = yes; then
16963   cat >>confdefs.h <<_ACEOF
16964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16965 _ACEOF
16966
16967 fi
16968 done
16969
16970
16971
16972
16973 for ac_func in isatty mkdtemp mkstemp
16974 do
16975 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16976 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16978 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16979   echo $ECHO_N "(cached) $ECHO_C" >&6
16980 else
16981   cat >conftest.$ac_ext <<_ACEOF
16982 /* confdefs.h.  */
16983 _ACEOF
16984 cat confdefs.h >>conftest.$ac_ext
16985 cat >>conftest.$ac_ext <<_ACEOF
16986 /* end confdefs.h.  */
16987 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16988    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16989 #define $ac_func innocuous_$ac_func
16990
16991 /* System header to define __stub macros and hopefully few prototypes,
16992     which can conflict with char $ac_func (); below.
16993     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16994     <limits.h> exists even on freestanding compilers.  */
16995
16996 #ifdef __STDC__
16997 # include <limits.h>
16998 #else
16999 # include <assert.h>
17000 #endif
17001
17002 #undef $ac_func
17003
17004 /* Override any GCC internal prototype to avoid an error.
17005    Use char because int might match the return type of a GCC
17006    builtin and then its argument prototype would still apply.  */
17007 #ifdef __cplusplus
17008 extern "C"
17009 #endif
17010 char $ac_func ();
17011 /* The GNU C library defines this for functions which it implements
17012     to always fail with ENOSYS.  Some functions are actually named
17013     something starting with __ and the normal name is an alias.  */
17014 #if defined __stub_$ac_func || defined __stub___$ac_func
17015 choke me
17016 #endif
17017
17018 int
17019 main ()
17020 {
17021 return $ac_func ();
17022   ;
17023   return 0;
17024 }
17025 _ACEOF
17026 rm -f conftest.$ac_objext conftest$ac_exeext
17027 if { (ac_try="$ac_link"
17028 case "(($ac_try" in
17029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17030   *) ac_try_echo=$ac_try;;
17031 esac
17032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17033   (eval "$ac_link") 2>conftest.er1
17034   ac_status=$?
17035   grep -v '^ *+' conftest.er1 >conftest.err
17036   rm -f conftest.er1
17037   cat conftest.err >&5
17038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039   (exit $ac_status); } &&
17040          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17041   { (case "(($ac_try" in
17042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17043   *) ac_try_echo=$ac_try;;
17044 esac
17045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17046   (eval "$ac_try") 2>&5
17047   ac_status=$?
17048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049   (exit $ac_status); }; } &&
17050          { ac_try='test -s conftest$ac_exeext'
17051   { (case "(($ac_try" in
17052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17053   *) ac_try_echo=$ac_try;;
17054 esac
17055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17056   (eval "$ac_try") 2>&5
17057   ac_status=$?
17058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059   (exit $ac_status); }; }; then
17060   eval "$as_ac_var=yes"
17061 else
17062   echo "$as_me: failed program was:" >&5
17063 sed 's/^/| /' conftest.$ac_ext >&5
17064
17065         eval "$as_ac_var=no"
17066 fi
17067
17068 rm -f core conftest.err conftest.$ac_objext \
17069       conftest$ac_exeext conftest.$ac_ext
17070 fi
17071 ac_res=`eval echo '${'$as_ac_var'}'`
17072                { echo "$as_me:$LINENO: result: $ac_res" >&5
17073 echo "${ECHO_T}$ac_res" >&6; }
17074 if test `eval echo '${'$as_ac_var'}'` = yes; then
17075   cat >>confdefs.h <<_ACEOF
17076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17077 _ACEOF
17078
17079 fi
17080 done
17081
17082
17083
17084
17085
17086
17087
17088 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17089 do
17090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17091 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17093 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17094   echo $ECHO_N "(cached) $ECHO_C" >&6
17095 else
17096   cat >conftest.$ac_ext <<_ACEOF
17097 /* confdefs.h.  */
17098 _ACEOF
17099 cat confdefs.h >>conftest.$ac_ext
17100 cat >>conftest.$ac_ext <<_ACEOF
17101 /* end confdefs.h.  */
17102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17103    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17104 #define $ac_func innocuous_$ac_func
17105
17106 /* System header to define __stub macros and hopefully few prototypes,
17107     which can conflict with char $ac_func (); below.
17108     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17109     <limits.h> exists even on freestanding compilers.  */
17110
17111 #ifdef __STDC__
17112 # include <limits.h>
17113 #else
17114 # include <assert.h>
17115 #endif
17116
17117 #undef $ac_func
17118
17119 /* Override any GCC internal prototype to avoid an error.
17120    Use char because int might match the return type of a GCC
17121    builtin and then its argument prototype would still apply.  */
17122 #ifdef __cplusplus
17123 extern "C"
17124 #endif
17125 char $ac_func ();
17126 /* The GNU C library defines this for functions which it implements
17127     to always fail with ENOSYS.  Some functions are actually named
17128     something starting with __ and the normal name is an alias.  */
17129 #if defined __stub_$ac_func || defined __stub___$ac_func
17130 choke me
17131 #endif
17132
17133 int
17134 main ()
17135 {
17136 return $ac_func ();
17137   ;
17138   return 0;
17139 }
17140 _ACEOF
17141 rm -f conftest.$ac_objext conftest$ac_exeext
17142 if { (ac_try="$ac_link"
17143 case "(($ac_try" in
17144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17145   *) ac_try_echo=$ac_try;;
17146 esac
17147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17148   (eval "$ac_link") 2>conftest.er1
17149   ac_status=$?
17150   grep -v '^ *+' conftest.er1 >conftest.err
17151   rm -f conftest.er1
17152   cat conftest.err >&5
17153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154   (exit $ac_status); } &&
17155          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17156   { (case "(($ac_try" in
17157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17158   *) ac_try_echo=$ac_try;;
17159 esac
17160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17161   (eval "$ac_try") 2>&5
17162   ac_status=$?
17163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164   (exit $ac_status); }; } &&
17165          { ac_try='test -s conftest$ac_exeext'
17166   { (case "(($ac_try" in
17167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17168   *) ac_try_echo=$ac_try;;
17169 esac
17170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17171   (eval "$ac_try") 2>&5
17172   ac_status=$?
17173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174   (exit $ac_status); }; }; then
17175   eval "$as_ac_var=yes"
17176 else
17177   echo "$as_me: failed program was:" >&5
17178 sed 's/^/| /' conftest.$ac_ext >&5
17179
17180         eval "$as_ac_var=no"
17181 fi
17182
17183 rm -f core conftest.err conftest.$ac_objext \
17184       conftest$ac_exeext conftest.$ac_ext
17185 fi
17186 ac_res=`eval echo '${'$as_ac_var'}'`
17187                { echo "$as_me:$LINENO: result: $ac_res" >&5
17188 echo "${ECHO_T}$ac_res" >&6; }
17189 if test `eval echo '${'$as_ac_var'}'` = yes; then
17190   cat >>confdefs.h <<_ACEOF
17191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17192 _ACEOF
17193
17194 fi
17195 done
17196
17197
17198
17199
17200 for ac_func in strerror strerror_r setenv
17201 do
17202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17203 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17205 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17206   echo $ECHO_N "(cached) $ECHO_C" >&6
17207 else
17208   cat >conftest.$ac_ext <<_ACEOF
17209 /* confdefs.h.  */
17210 _ACEOF
17211 cat confdefs.h >>conftest.$ac_ext
17212 cat >>conftest.$ac_ext <<_ACEOF
17213 /* end confdefs.h.  */
17214 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17215    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17216 #define $ac_func innocuous_$ac_func
17217
17218 /* System header to define __stub macros and hopefully few prototypes,
17219     which can conflict with char $ac_func (); below.
17220     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17221     <limits.h> exists even on freestanding compilers.  */
17222
17223 #ifdef __STDC__
17224 # include <limits.h>
17225 #else
17226 # include <assert.h>
17227 #endif
17228
17229 #undef $ac_func
17230
17231 /* Override any GCC internal prototype to avoid an error.
17232    Use char because int might match the return type of a GCC
17233    builtin and then its argument prototype would still apply.  */
17234 #ifdef __cplusplus
17235 extern "C"
17236 #endif
17237 char $ac_func ();
17238 /* The GNU C library defines this for functions which it implements
17239     to always fail with ENOSYS.  Some functions are actually named
17240     something starting with __ and the normal name is an alias.  */
17241 #if defined __stub_$ac_func || defined __stub___$ac_func
17242 choke me
17243 #endif
17244
17245 int
17246 main ()
17247 {
17248 return $ac_func ();
17249   ;
17250   return 0;
17251 }
17252 _ACEOF
17253 rm -f conftest.$ac_objext conftest$ac_exeext
17254 if { (ac_try="$ac_link"
17255 case "(($ac_try" in
17256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17257   *) ac_try_echo=$ac_try;;
17258 esac
17259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17260   (eval "$ac_link") 2>conftest.er1
17261   ac_status=$?
17262   grep -v '^ *+' conftest.er1 >conftest.err
17263   rm -f conftest.er1
17264   cat conftest.err >&5
17265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266   (exit $ac_status); } &&
17267          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17268   { (case "(($ac_try" in
17269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17270   *) ac_try_echo=$ac_try;;
17271 esac
17272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17273   (eval "$ac_try") 2>&5
17274   ac_status=$?
17275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276   (exit $ac_status); }; } &&
17277          { ac_try='test -s conftest$ac_exeext'
17278   { (case "(($ac_try" in
17279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17280   *) ac_try_echo=$ac_try;;
17281 esac
17282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17283   (eval "$ac_try") 2>&5
17284   ac_status=$?
17285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286   (exit $ac_status); }; }; then
17287   eval "$as_ac_var=yes"
17288 else
17289   echo "$as_me: failed program was:" >&5
17290 sed 's/^/| /' conftest.$ac_ext >&5
17291
17292         eval "$as_ac_var=no"
17293 fi
17294
17295 rm -f core conftest.err conftest.$ac_objext \
17296       conftest$ac_exeext conftest.$ac_ext
17297 fi
17298 ac_res=`eval echo '${'$as_ac_var'}'`
17299                { echo "$as_me:$LINENO: result: $ac_res" >&5
17300 echo "${ECHO_T}$ac_res" >&6; }
17301 if test `eval echo '${'$as_ac_var'}'` = yes; then
17302   cat >>confdefs.h <<_ACEOF
17303 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17304 _ACEOF
17305
17306 fi
17307 done
17308
17309
17310
17311
17312
17313 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17314 do
17315 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17316 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17317 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17318 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17319   echo $ECHO_N "(cached) $ECHO_C" >&6
17320 else
17321   cat >conftest.$ac_ext <<_ACEOF
17322 /* confdefs.h.  */
17323 _ACEOF
17324 cat confdefs.h >>conftest.$ac_ext
17325 cat >>conftest.$ac_ext <<_ACEOF
17326 /* end confdefs.h.  */
17327 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17328    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17329 #define $ac_func innocuous_$ac_func
17330
17331 /* System header to define __stub macros and hopefully few prototypes,
17332     which can conflict with char $ac_func (); below.
17333     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17334     <limits.h> exists even on freestanding compilers.  */
17335
17336 #ifdef __STDC__
17337 # include <limits.h>
17338 #else
17339 # include <assert.h>
17340 #endif
17341
17342 #undef $ac_func
17343
17344 /* Override any GCC internal prototype to avoid an error.
17345    Use char because int might match the return type of a GCC
17346    builtin and then its argument prototype would still apply.  */
17347 #ifdef __cplusplus
17348 extern "C"
17349 #endif
17350 char $ac_func ();
17351 /* The GNU C library defines this for functions which it implements
17352     to always fail with ENOSYS.  Some functions are actually named
17353     something starting with __ and the normal name is an alias.  */
17354 #if defined __stub_$ac_func || defined __stub___$ac_func
17355 choke me
17356 #endif
17357
17358 int
17359 main ()
17360 {
17361 return $ac_func ();
17362   ;
17363   return 0;
17364 }
17365 _ACEOF
17366 rm -f conftest.$ac_objext conftest$ac_exeext
17367 if { (ac_try="$ac_link"
17368 case "(($ac_try" in
17369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17370   *) ac_try_echo=$ac_try;;
17371 esac
17372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17373   (eval "$ac_link") 2>conftest.er1
17374   ac_status=$?
17375   grep -v '^ *+' conftest.er1 >conftest.err
17376   rm -f conftest.er1
17377   cat conftest.err >&5
17378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379   (exit $ac_status); } &&
17380          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17381   { (case "(($ac_try" in
17382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17383   *) ac_try_echo=$ac_try;;
17384 esac
17385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17386   (eval "$ac_try") 2>&5
17387   ac_status=$?
17388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389   (exit $ac_status); }; } &&
17390          { ac_try='test -s conftest$ac_exeext'
17391   { (case "(($ac_try" in
17392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17393   *) ac_try_echo=$ac_try;;
17394 esac
17395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17396   (eval "$ac_try") 2>&5
17397   ac_status=$?
17398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399   (exit $ac_status); }; }; then
17400   eval "$as_ac_var=yes"
17401 else
17402   echo "$as_me: failed program was:" >&5
17403 sed 's/^/| /' conftest.$ac_ext >&5
17404
17405         eval "$as_ac_var=no"
17406 fi
17407
17408 rm -f core conftest.err conftest.$ac_objext \
17409       conftest$ac_exeext conftest.$ac_ext
17410 fi
17411 ac_res=`eval echo '${'$as_ac_var'}'`
17412                { echo "$as_me:$LINENO: result: $ac_res" >&5
17413 echo "${ECHO_T}$ac_res" >&6; }
17414 if test `eval echo '${'$as_ac_var'}'` = yes; then
17415   cat >>confdefs.h <<_ACEOF
17416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17417 _ACEOF
17418
17419 fi
17420 done
17421
17422
17423
17424
17425
17426
17427 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17428 do
17429 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17430 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17431 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17432 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17433   echo $ECHO_N "(cached) $ECHO_C" >&6
17434 else
17435   cat >conftest.$ac_ext <<_ACEOF
17436 /* confdefs.h.  */
17437 _ACEOF
17438 cat confdefs.h >>conftest.$ac_ext
17439 cat >>conftest.$ac_ext <<_ACEOF
17440 /* end confdefs.h.  */
17441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17442    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17443 #define $ac_func innocuous_$ac_func
17444
17445 /* System header to define __stub macros and hopefully few prototypes,
17446     which can conflict with char $ac_func (); below.
17447     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17448     <limits.h> exists even on freestanding compilers.  */
17449
17450 #ifdef __STDC__
17451 # include <limits.h>
17452 #else
17453 # include <assert.h>
17454 #endif
17455
17456 #undef $ac_func
17457
17458 /* Override any GCC internal prototype to avoid an error.
17459    Use char because int might match the return type of a GCC
17460    builtin and then its argument prototype would still apply.  */
17461 #ifdef __cplusplus
17462 extern "C"
17463 #endif
17464 char $ac_func ();
17465 /* The GNU C library defines this for functions which it implements
17466     to always fail with ENOSYS.  Some functions are actually named
17467     something starting with __ and the normal name is an alias.  */
17468 #if defined __stub_$ac_func || defined __stub___$ac_func
17469 choke me
17470 #endif
17471
17472 int
17473 main ()
17474 {
17475 return $ac_func ();
17476   ;
17477   return 0;
17478 }
17479 _ACEOF
17480 rm -f conftest.$ac_objext conftest$ac_exeext
17481 if { (ac_try="$ac_link"
17482 case "(($ac_try" in
17483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17484   *) ac_try_echo=$ac_try;;
17485 esac
17486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17487   (eval "$ac_link") 2>conftest.er1
17488   ac_status=$?
17489   grep -v '^ *+' conftest.er1 >conftest.err
17490   rm -f conftest.er1
17491   cat conftest.err >&5
17492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493   (exit $ac_status); } &&
17494          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17495   { (case "(($ac_try" in
17496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17497   *) ac_try_echo=$ac_try;;
17498 esac
17499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17500   (eval "$ac_try") 2>&5
17501   ac_status=$?
17502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503   (exit $ac_status); }; } &&
17504          { ac_try='test -s conftest$ac_exeext'
17505   { (case "(($ac_try" in
17506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17507   *) ac_try_echo=$ac_try;;
17508 esac
17509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17510   (eval "$ac_try") 2>&5
17511   ac_status=$?
17512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513   (exit $ac_status); }; }; then
17514   eval "$as_ac_var=yes"
17515 else
17516   echo "$as_me: failed program was:" >&5
17517 sed 's/^/| /' conftest.$ac_ext >&5
17518
17519         eval "$as_ac_var=no"
17520 fi
17521
17522 rm -f core conftest.err conftest.$ac_objext \
17523       conftest$ac_exeext conftest.$ac_ext
17524 fi
17525 ac_res=`eval echo '${'$as_ac_var'}'`
17526                { echo "$as_me:$LINENO: result: $ac_res" >&5
17527 echo "${ECHO_T}$ac_res" >&6; }
17528 if test `eval echo '${'$as_ac_var'}'` = yes; then
17529   cat >>confdefs.h <<_ACEOF
17530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17531 _ACEOF
17532
17533 fi
17534 done
17535
17536 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17537 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17538 if test "${llvm_cv_c_printf_a+set}" = set; then
17539   echo $ECHO_N "(cached) $ECHO_C" >&6
17540 else
17541   ac_ext=c
17542 ac_cpp='$CPP $CPPFLAGS'
17543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17546
17547  if test "$cross_compiling" = yes; then
17548   llvmac_cv_c_printf_a=no
17549 else
17550   cat >conftest.$ac_ext <<_ACEOF
17551
17552   /* confdefs.h.  */
17553 _ACEOF
17554 cat confdefs.h >>conftest.$ac_ext
17555 cat >>conftest.$ac_ext <<_ACEOF
17556 /* end confdefs.h.  */
17557
17558 #include <stdio.h>
17559 #include <stdlib.h>
17560
17561 int
17562 main ()
17563 {
17564
17565 volatile double A, B;
17566 char Buffer[100];
17567 A = 1;
17568 A /= 10.0;
17569 sprintf(Buffer, "%a", A);
17570 B = atof(Buffer);
17571 if (A != B)
17572   return (1);
17573 if (A != 0x1.999999999999ap-4)
17574   return (1);
17575 return (0);
17576   ;
17577   return 0;
17578 }
17579 _ACEOF
17580 rm -f conftest$ac_exeext
17581 if { (ac_try="$ac_link"
17582 case "(($ac_try" in
17583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17584   *) ac_try_echo=$ac_try;;
17585 esac
17586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17587   (eval "$ac_link") 2>&5
17588   ac_status=$?
17589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17591   { (case "(($ac_try" in
17592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17593   *) ac_try_echo=$ac_try;;
17594 esac
17595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17596   (eval "$ac_try") 2>&5
17597   ac_status=$?
17598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599   (exit $ac_status); }; }; then
17600   llvm_cv_c_printf_a=yes
17601 else
17602   echo "$as_me: program exited with status $ac_status" >&5
17603 echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17605
17606 ( exit $ac_status )
17607 llvmac_cv_c_printf_a=no
17608 fi
17609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17610 fi
17611
17612
17613  ac_ext=c
17614 ac_cpp='$CPP $CPPFLAGS'
17615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17618
17619 fi
17620 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17621 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17622  if test "$llvm_cv_c_printf_a" = "yes"; then
17623
17624 cat >>confdefs.h <<\_ACEOF
17625 #define HAVE_PRINTF_A 1
17626 _ACEOF
17627
17628  fi
17629
17630
17631 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17632 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17633 if test "${ac_cv_func_rand48+set}" = set; then
17634   echo $ECHO_N "(cached) $ECHO_C" >&6
17635 else
17636   ac_ext=cpp
17637 ac_cpp='$CXXCPP $CPPFLAGS'
17638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17641
17642    cat >conftest.$ac_ext <<_ACEOF
17643 /* confdefs.h.  */
17644 _ACEOF
17645 cat confdefs.h >>conftest.$ac_ext
17646 cat >>conftest.$ac_ext <<_ACEOF
17647 /* end confdefs.h.  */
17648 #include <stdlib.h>
17649 int
17650 main ()
17651 {
17652 srand48(0);lrand48();drand48();
17653   ;
17654   return 0;
17655 }
17656 _ACEOF
17657 rm -f conftest.$ac_objext
17658 if { (ac_try="$ac_compile"
17659 case "(($ac_try" in
17660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17661   *) ac_try_echo=$ac_try;;
17662 esac
17663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17664   (eval "$ac_compile") 2>conftest.er1
17665   ac_status=$?
17666   grep -v '^ *+' conftest.er1 >conftest.err
17667   rm -f conftest.er1
17668   cat conftest.err >&5
17669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670   (exit $ac_status); } &&
17671          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17672   { (case "(($ac_try" in
17673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17674   *) ac_try_echo=$ac_try;;
17675 esac
17676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17677   (eval "$ac_try") 2>&5
17678   ac_status=$?
17679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680   (exit $ac_status); }; } &&
17681          { ac_try='test -s conftest.$ac_objext'
17682   { (case "(($ac_try" in
17683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17684   *) ac_try_echo=$ac_try;;
17685 esac
17686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17687   (eval "$ac_try") 2>&5
17688   ac_status=$?
17689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690   (exit $ac_status); }; }; then
17691   ac_cv_func_rand48=yes
17692 else
17693   echo "$as_me: failed program was:" >&5
17694 sed 's/^/| /' conftest.$ac_ext >&5
17695
17696         ac_cv_func_rand48=no
17697 fi
17698
17699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17700   ac_ext=c
17701 ac_cpp='$CPP $CPPFLAGS'
17702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17705
17706 fi
17707 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17708 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17709
17710 if test "$ac_cv_func_rand48" = "yes" ; then
17711
17712 cat >>confdefs.h <<\_ACEOF
17713 #define HAVE_RAND48 1
17714 _ACEOF
17715
17716 fi
17717
17718
17719 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17720 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17721 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17722   echo $ECHO_N "(cached) $ECHO_C" >&6
17723 else
17724   cat >conftest.$ac_ext <<_ACEOF
17725 /* confdefs.h.  */
17726 _ACEOF
17727 cat confdefs.h >>conftest.$ac_ext
17728 cat >>conftest.$ac_ext <<_ACEOF
17729 /* end confdefs.h.  */
17730 $ac_includes_default
17731 int
17732 main ()
17733 {
17734 #ifndef strerror_s
17735   char *p = (char *) strerror_s;
17736   return !p;
17737 #endif
17738
17739   ;
17740   return 0;
17741 }
17742 _ACEOF
17743 rm -f conftest.$ac_objext
17744 if { (ac_try="$ac_compile"
17745 case "(($ac_try" in
17746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17747   *) ac_try_echo=$ac_try;;
17748 esac
17749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17750   (eval "$ac_compile") 2>conftest.er1
17751   ac_status=$?
17752   grep -v '^ *+' conftest.er1 >conftest.err
17753   rm -f conftest.er1
17754   cat conftest.err >&5
17755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756   (exit $ac_status); } &&
17757          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17758   { (case "(($ac_try" in
17759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17760   *) ac_try_echo=$ac_try;;
17761 esac
17762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17763   (eval "$ac_try") 2>&5
17764   ac_status=$?
17765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766   (exit $ac_status); }; } &&
17767          { ac_try='test -s conftest.$ac_objext'
17768   { (case "(($ac_try" in
17769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17770   *) ac_try_echo=$ac_try;;
17771 esac
17772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17773   (eval "$ac_try") 2>&5
17774   ac_status=$?
17775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776   (exit $ac_status); }; }; then
17777   ac_cv_have_decl_strerror_s=yes
17778 else
17779   echo "$as_me: failed program was:" >&5
17780 sed 's/^/| /' conftest.$ac_ext >&5
17781
17782         ac_cv_have_decl_strerror_s=no
17783 fi
17784
17785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17786 fi
17787 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17788 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17789 if test $ac_cv_have_decl_strerror_s = yes; then
17790
17791 cat >>confdefs.h <<_ACEOF
17792 #define HAVE_DECL_STRERROR_S 1
17793 _ACEOF
17794
17795
17796 else
17797   cat >>confdefs.h <<_ACEOF
17798 #define HAVE_DECL_STRERROR_S 0
17799 _ACEOF
17800
17801
17802 fi
17803
17804
17805
17806 if test "$llvm_cv_os_type" = "MingW" ; then
17807   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17808 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17809 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17810   echo $ECHO_N "(cached) $ECHO_C" >&6
17811 else
17812   ac_check_lib_save_LIBS=$LIBS
17813 LIBS="-lgcc  $LIBS"
17814 cat >conftest.$ac_ext <<_ACEOF
17815 /* confdefs.h.  */
17816 _ACEOF
17817 cat confdefs.h >>conftest.$ac_ext
17818 cat >>conftest.$ac_ext <<_ACEOF
17819 /* end confdefs.h.  */
17820
17821 /* Override any GCC internal prototype to avoid an error.
17822    Use char because int might match the return type of a GCC
17823    builtin and then its argument prototype would still apply.  */
17824 #ifdef __cplusplus
17825 extern "C"
17826 #endif
17827 char _alloca ();
17828 int
17829 main ()
17830 {
17831 return _alloca ();
17832   ;
17833   return 0;
17834 }
17835 _ACEOF
17836 rm -f conftest.$ac_objext conftest$ac_exeext
17837 if { (ac_try="$ac_link"
17838 case "(($ac_try" in
17839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17840   *) ac_try_echo=$ac_try;;
17841 esac
17842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17843   (eval "$ac_link") 2>conftest.er1
17844   ac_status=$?
17845   grep -v '^ *+' conftest.er1 >conftest.err
17846   rm -f conftest.er1
17847   cat conftest.err >&5
17848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849   (exit $ac_status); } &&
17850          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17851   { (case "(($ac_try" in
17852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17853   *) ac_try_echo=$ac_try;;
17854 esac
17855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17856   (eval "$ac_try") 2>&5
17857   ac_status=$?
17858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859   (exit $ac_status); }; } &&
17860          { ac_try='test -s conftest$ac_exeext'
17861   { (case "(($ac_try" in
17862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17863   *) ac_try_echo=$ac_try;;
17864 esac
17865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17866   (eval "$ac_try") 2>&5
17867   ac_status=$?
17868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869   (exit $ac_status); }; }; then
17870   ac_cv_lib_gcc__alloca=yes
17871 else
17872   echo "$as_me: failed program was:" >&5
17873 sed 's/^/| /' conftest.$ac_ext >&5
17874
17875         ac_cv_lib_gcc__alloca=no
17876 fi
17877
17878 rm -f core conftest.err conftest.$ac_objext \
17879       conftest$ac_exeext conftest.$ac_ext
17880 LIBS=$ac_check_lib_save_LIBS
17881 fi
17882 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17883 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17884 if test $ac_cv_lib_gcc__alloca = yes; then
17885
17886 cat >>confdefs.h <<\_ACEOF
17887 #define HAVE__ALLOCA 1
17888 _ACEOF
17889
17890 fi
17891
17892   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17893 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17894 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17895   echo $ECHO_N "(cached) $ECHO_C" >&6
17896 else
17897   ac_check_lib_save_LIBS=$LIBS
17898 LIBS="-lgcc  $LIBS"
17899 cat >conftest.$ac_ext <<_ACEOF
17900 /* confdefs.h.  */
17901 _ACEOF
17902 cat confdefs.h >>conftest.$ac_ext
17903 cat >>conftest.$ac_ext <<_ACEOF
17904 /* end confdefs.h.  */
17905
17906 /* Override any GCC internal prototype to avoid an error.
17907    Use char because int might match the return type of a GCC
17908    builtin and then its argument prototype would still apply.  */
17909 #ifdef __cplusplus
17910 extern "C"
17911 #endif
17912 char __alloca ();
17913 int
17914 main ()
17915 {
17916 return __alloca ();
17917   ;
17918   return 0;
17919 }
17920 _ACEOF
17921 rm -f conftest.$ac_objext conftest$ac_exeext
17922 if { (ac_try="$ac_link"
17923 case "(($ac_try" in
17924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17925   *) ac_try_echo=$ac_try;;
17926 esac
17927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17928   (eval "$ac_link") 2>conftest.er1
17929   ac_status=$?
17930   grep -v '^ *+' conftest.er1 >conftest.err
17931   rm -f conftest.er1
17932   cat conftest.err >&5
17933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934   (exit $ac_status); } &&
17935          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17936   { (case "(($ac_try" in
17937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17938   *) ac_try_echo=$ac_try;;
17939 esac
17940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17941   (eval "$ac_try") 2>&5
17942   ac_status=$?
17943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944   (exit $ac_status); }; } &&
17945          { ac_try='test -s conftest$ac_exeext'
17946   { (case "(($ac_try" in
17947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17948   *) ac_try_echo=$ac_try;;
17949 esac
17950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17951   (eval "$ac_try") 2>&5
17952   ac_status=$?
17953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954   (exit $ac_status); }; }; then
17955   ac_cv_lib_gcc___alloca=yes
17956 else
17957   echo "$as_me: failed program was:" >&5
17958 sed 's/^/| /' conftest.$ac_ext >&5
17959
17960         ac_cv_lib_gcc___alloca=no
17961 fi
17962
17963 rm -f core conftest.err conftest.$ac_objext \
17964       conftest$ac_exeext conftest.$ac_ext
17965 LIBS=$ac_check_lib_save_LIBS
17966 fi
17967 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17968 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17969 if test $ac_cv_lib_gcc___alloca = yes; then
17970
17971 cat >>confdefs.h <<\_ACEOF
17972 #define HAVE___ALLOCA 1
17973 _ACEOF
17974
17975 fi
17976
17977   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17978 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17979 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17980   echo $ECHO_N "(cached) $ECHO_C" >&6
17981 else
17982   ac_check_lib_save_LIBS=$LIBS
17983 LIBS="-lgcc  $LIBS"
17984 cat >conftest.$ac_ext <<_ACEOF
17985 /* confdefs.h.  */
17986 _ACEOF
17987 cat confdefs.h >>conftest.$ac_ext
17988 cat >>conftest.$ac_ext <<_ACEOF
17989 /* end confdefs.h.  */
17990
17991 /* Override any GCC internal prototype to avoid an error.
17992    Use char because int might match the return type of a GCC
17993    builtin and then its argument prototype would still apply.  */
17994 #ifdef __cplusplus
17995 extern "C"
17996 #endif
17997 char __chkstk ();
17998 int
17999 main ()
18000 {
18001 return __chkstk ();
18002   ;
18003   return 0;
18004 }
18005 _ACEOF
18006 rm -f conftest.$ac_objext conftest$ac_exeext
18007 if { (ac_try="$ac_link"
18008 case "(($ac_try" in
18009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010   *) ac_try_echo=$ac_try;;
18011 esac
18012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18013   (eval "$ac_link") 2>conftest.er1
18014   ac_status=$?
18015   grep -v '^ *+' conftest.er1 >conftest.err
18016   rm -f conftest.er1
18017   cat conftest.err >&5
18018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019   (exit $ac_status); } &&
18020          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18021   { (case "(($ac_try" in
18022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023   *) ac_try_echo=$ac_try;;
18024 esac
18025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026   (eval "$ac_try") 2>&5
18027   ac_status=$?
18028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029   (exit $ac_status); }; } &&
18030          { ac_try='test -s conftest$ac_exeext'
18031   { (case "(($ac_try" in
18032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18033   *) ac_try_echo=$ac_try;;
18034 esac
18035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18036   (eval "$ac_try") 2>&5
18037   ac_status=$?
18038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039   (exit $ac_status); }; }; then
18040   ac_cv_lib_gcc___chkstk=yes
18041 else
18042   echo "$as_me: failed program was:" >&5
18043 sed 's/^/| /' conftest.$ac_ext >&5
18044
18045         ac_cv_lib_gcc___chkstk=no
18046 fi
18047
18048 rm -f core conftest.err conftest.$ac_objext \
18049       conftest$ac_exeext conftest.$ac_ext
18050 LIBS=$ac_check_lib_save_LIBS
18051 fi
18052 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18053 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18054 if test $ac_cv_lib_gcc___chkstk = yes; then
18055
18056 cat >>confdefs.h <<\_ACEOF
18057 #define HAVE___CHKSTK 1
18058 _ACEOF
18059
18060 fi
18061
18062   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18063 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18064 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18065   echo $ECHO_N "(cached) $ECHO_C" >&6
18066 else
18067   ac_check_lib_save_LIBS=$LIBS
18068 LIBS="-lgcc  $LIBS"
18069 cat >conftest.$ac_ext <<_ACEOF
18070 /* confdefs.h.  */
18071 _ACEOF
18072 cat confdefs.h >>conftest.$ac_ext
18073 cat >>conftest.$ac_ext <<_ACEOF
18074 /* end confdefs.h.  */
18075
18076 /* Override any GCC internal prototype to avoid an error.
18077    Use char because int might match the return type of a GCC
18078    builtin and then its argument prototype would still apply.  */
18079 #ifdef __cplusplus
18080 extern "C"
18081 #endif
18082 char ___chkstk ();
18083 int
18084 main ()
18085 {
18086 return ___chkstk ();
18087   ;
18088   return 0;
18089 }
18090 _ACEOF
18091 rm -f conftest.$ac_objext conftest$ac_exeext
18092 if { (ac_try="$ac_link"
18093 case "(($ac_try" in
18094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18095   *) ac_try_echo=$ac_try;;
18096 esac
18097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18098   (eval "$ac_link") 2>conftest.er1
18099   ac_status=$?
18100   grep -v '^ *+' conftest.er1 >conftest.err
18101   rm -f conftest.er1
18102   cat conftest.err >&5
18103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104   (exit $ac_status); } &&
18105          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18106   { (case "(($ac_try" in
18107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18108   *) ac_try_echo=$ac_try;;
18109 esac
18110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18111   (eval "$ac_try") 2>&5
18112   ac_status=$?
18113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114   (exit $ac_status); }; } &&
18115          { ac_try='test -s conftest$ac_exeext'
18116   { (case "(($ac_try" in
18117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18118   *) ac_try_echo=$ac_try;;
18119 esac
18120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18121   (eval "$ac_try") 2>&5
18122   ac_status=$?
18123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124   (exit $ac_status); }; }; then
18125   ac_cv_lib_gcc____chkstk=yes
18126 else
18127   echo "$as_me: failed program was:" >&5
18128 sed 's/^/| /' conftest.$ac_ext >&5
18129
18130         ac_cv_lib_gcc____chkstk=no
18131 fi
18132
18133 rm -f core conftest.err conftest.$ac_objext \
18134       conftest$ac_exeext conftest.$ac_ext
18135 LIBS=$ac_check_lib_save_LIBS
18136 fi
18137 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18138 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18139 if test $ac_cv_lib_gcc____chkstk = yes; then
18140
18141 cat >>confdefs.h <<\_ACEOF
18142 #define HAVE____CHKSTK 1
18143 _ACEOF
18144
18145 fi
18146
18147
18148   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18149 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18150 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18151   echo $ECHO_N "(cached) $ECHO_C" >&6
18152 else
18153   ac_check_lib_save_LIBS=$LIBS
18154 LIBS="-lgcc  $LIBS"
18155 cat >conftest.$ac_ext <<_ACEOF
18156 /* confdefs.h.  */
18157 _ACEOF
18158 cat confdefs.h >>conftest.$ac_ext
18159 cat >>conftest.$ac_ext <<_ACEOF
18160 /* end confdefs.h.  */
18161
18162 /* Override any GCC internal prototype to avoid an error.
18163    Use char because int might match the return type of a GCC
18164    builtin and then its argument prototype would still apply.  */
18165 #ifdef __cplusplus
18166 extern "C"
18167 #endif
18168 char __ashldi3 ();
18169 int
18170 main ()
18171 {
18172 return __ashldi3 ();
18173   ;
18174   return 0;
18175 }
18176 _ACEOF
18177 rm -f conftest.$ac_objext conftest$ac_exeext
18178 if { (ac_try="$ac_link"
18179 case "(($ac_try" in
18180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18181   *) ac_try_echo=$ac_try;;
18182 esac
18183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18184   (eval "$ac_link") 2>conftest.er1
18185   ac_status=$?
18186   grep -v '^ *+' conftest.er1 >conftest.err
18187   rm -f conftest.er1
18188   cat conftest.err >&5
18189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190   (exit $ac_status); } &&
18191          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18192   { (case "(($ac_try" in
18193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18194   *) ac_try_echo=$ac_try;;
18195 esac
18196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18197   (eval "$ac_try") 2>&5
18198   ac_status=$?
18199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200   (exit $ac_status); }; } &&
18201          { ac_try='test -s conftest$ac_exeext'
18202   { (case "(($ac_try" in
18203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18204   *) ac_try_echo=$ac_try;;
18205 esac
18206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18207   (eval "$ac_try") 2>&5
18208   ac_status=$?
18209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210   (exit $ac_status); }; }; then
18211   ac_cv_lib_gcc___ashldi3=yes
18212 else
18213   echo "$as_me: failed program was:" >&5
18214 sed 's/^/| /' conftest.$ac_ext >&5
18215
18216         ac_cv_lib_gcc___ashldi3=no
18217 fi
18218
18219 rm -f core conftest.err conftest.$ac_objext \
18220       conftest$ac_exeext conftest.$ac_ext
18221 LIBS=$ac_check_lib_save_LIBS
18222 fi
18223 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18224 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18225 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18226
18227 cat >>confdefs.h <<\_ACEOF
18228 #define HAVE___ASHLDI3 1
18229 _ACEOF
18230
18231 fi
18232
18233   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18234 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18235 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18236   echo $ECHO_N "(cached) $ECHO_C" >&6
18237 else
18238   ac_check_lib_save_LIBS=$LIBS
18239 LIBS="-lgcc  $LIBS"
18240 cat >conftest.$ac_ext <<_ACEOF
18241 /* confdefs.h.  */
18242 _ACEOF
18243 cat confdefs.h >>conftest.$ac_ext
18244 cat >>conftest.$ac_ext <<_ACEOF
18245 /* end confdefs.h.  */
18246
18247 /* Override any GCC internal prototype to avoid an error.
18248    Use char because int might match the return type of a GCC
18249    builtin and then its argument prototype would still apply.  */
18250 #ifdef __cplusplus
18251 extern "C"
18252 #endif
18253 char __ashrdi3 ();
18254 int
18255 main ()
18256 {
18257 return __ashrdi3 ();
18258   ;
18259   return 0;
18260 }
18261 _ACEOF
18262 rm -f conftest.$ac_objext conftest$ac_exeext
18263 if { (ac_try="$ac_link"
18264 case "(($ac_try" in
18265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18266   *) ac_try_echo=$ac_try;;
18267 esac
18268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18269   (eval "$ac_link") 2>conftest.er1
18270   ac_status=$?
18271   grep -v '^ *+' conftest.er1 >conftest.err
18272   rm -f conftest.er1
18273   cat conftest.err >&5
18274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275   (exit $ac_status); } &&
18276          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18277   { (case "(($ac_try" in
18278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18279   *) ac_try_echo=$ac_try;;
18280 esac
18281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18282   (eval "$ac_try") 2>&5
18283   ac_status=$?
18284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285   (exit $ac_status); }; } &&
18286          { ac_try='test -s conftest$ac_exeext'
18287   { (case "(($ac_try" in
18288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18289   *) ac_try_echo=$ac_try;;
18290 esac
18291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18292   (eval "$ac_try") 2>&5
18293   ac_status=$?
18294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295   (exit $ac_status); }; }; then
18296   ac_cv_lib_gcc___ashrdi3=yes
18297 else
18298   echo "$as_me: failed program was:" >&5
18299 sed 's/^/| /' conftest.$ac_ext >&5
18300
18301         ac_cv_lib_gcc___ashrdi3=no
18302 fi
18303
18304 rm -f core conftest.err conftest.$ac_objext \
18305       conftest$ac_exeext conftest.$ac_ext
18306 LIBS=$ac_check_lib_save_LIBS
18307 fi
18308 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18309 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18310 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18311
18312 cat >>confdefs.h <<\_ACEOF
18313 #define HAVE___ASHRDI3 1
18314 _ACEOF
18315
18316 fi
18317
18318   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18319 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18320 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18321   echo $ECHO_N "(cached) $ECHO_C" >&6
18322 else
18323   ac_check_lib_save_LIBS=$LIBS
18324 LIBS="-lgcc  $LIBS"
18325 cat >conftest.$ac_ext <<_ACEOF
18326 /* confdefs.h.  */
18327 _ACEOF
18328 cat confdefs.h >>conftest.$ac_ext
18329 cat >>conftest.$ac_ext <<_ACEOF
18330 /* end confdefs.h.  */
18331
18332 /* Override any GCC internal prototype to avoid an error.
18333    Use char because int might match the return type of a GCC
18334    builtin and then its argument prototype would still apply.  */
18335 #ifdef __cplusplus
18336 extern "C"
18337 #endif
18338 char __divdi3 ();
18339 int
18340 main ()
18341 {
18342 return __divdi3 ();
18343   ;
18344   return 0;
18345 }
18346 _ACEOF
18347 rm -f conftest.$ac_objext conftest$ac_exeext
18348 if { (ac_try="$ac_link"
18349 case "(($ac_try" in
18350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18351   *) ac_try_echo=$ac_try;;
18352 esac
18353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18354   (eval "$ac_link") 2>conftest.er1
18355   ac_status=$?
18356   grep -v '^ *+' conftest.er1 >conftest.err
18357   rm -f conftest.er1
18358   cat conftest.err >&5
18359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360   (exit $ac_status); } &&
18361          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18362   { (case "(($ac_try" in
18363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18364   *) ac_try_echo=$ac_try;;
18365 esac
18366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18367   (eval "$ac_try") 2>&5
18368   ac_status=$?
18369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370   (exit $ac_status); }; } &&
18371          { ac_try='test -s conftest$ac_exeext'
18372   { (case "(($ac_try" in
18373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18374   *) ac_try_echo=$ac_try;;
18375 esac
18376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18377   (eval "$ac_try") 2>&5
18378   ac_status=$?
18379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380   (exit $ac_status); }; }; then
18381   ac_cv_lib_gcc___divdi3=yes
18382 else
18383   echo "$as_me: failed program was:" >&5
18384 sed 's/^/| /' conftest.$ac_ext >&5
18385
18386         ac_cv_lib_gcc___divdi3=no
18387 fi
18388
18389 rm -f core conftest.err conftest.$ac_objext \
18390       conftest$ac_exeext conftest.$ac_ext
18391 LIBS=$ac_check_lib_save_LIBS
18392 fi
18393 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18394 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18395 if test $ac_cv_lib_gcc___divdi3 = yes; then
18396
18397 cat >>confdefs.h <<\_ACEOF
18398 #define HAVE___DIVDI3 1
18399 _ACEOF
18400
18401 fi
18402
18403   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18404 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18405 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18406   echo $ECHO_N "(cached) $ECHO_C" >&6
18407 else
18408   ac_check_lib_save_LIBS=$LIBS
18409 LIBS="-lgcc  $LIBS"
18410 cat >conftest.$ac_ext <<_ACEOF
18411 /* confdefs.h.  */
18412 _ACEOF
18413 cat confdefs.h >>conftest.$ac_ext
18414 cat >>conftest.$ac_ext <<_ACEOF
18415 /* end confdefs.h.  */
18416
18417 /* Override any GCC internal prototype to avoid an error.
18418    Use char because int might match the return type of a GCC
18419    builtin and then its argument prototype would still apply.  */
18420 #ifdef __cplusplus
18421 extern "C"
18422 #endif
18423 char __fixdfdi ();
18424 int
18425 main ()
18426 {
18427 return __fixdfdi ();
18428   ;
18429   return 0;
18430 }
18431 _ACEOF
18432 rm -f conftest.$ac_objext conftest$ac_exeext
18433 if { (ac_try="$ac_link"
18434 case "(($ac_try" in
18435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18436   *) ac_try_echo=$ac_try;;
18437 esac
18438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18439   (eval "$ac_link") 2>conftest.er1
18440   ac_status=$?
18441   grep -v '^ *+' conftest.er1 >conftest.err
18442   rm -f conftest.er1
18443   cat conftest.err >&5
18444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445   (exit $ac_status); } &&
18446          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18447   { (case "(($ac_try" in
18448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18449   *) ac_try_echo=$ac_try;;
18450 esac
18451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18452   (eval "$ac_try") 2>&5
18453   ac_status=$?
18454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455   (exit $ac_status); }; } &&
18456          { ac_try='test -s conftest$ac_exeext'
18457   { (case "(($ac_try" in
18458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18459   *) ac_try_echo=$ac_try;;
18460 esac
18461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18462   (eval "$ac_try") 2>&5
18463   ac_status=$?
18464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465   (exit $ac_status); }; }; then
18466   ac_cv_lib_gcc___fixdfdi=yes
18467 else
18468   echo "$as_me: failed program was:" >&5
18469 sed 's/^/| /' conftest.$ac_ext >&5
18470
18471         ac_cv_lib_gcc___fixdfdi=no
18472 fi
18473
18474 rm -f core conftest.err conftest.$ac_objext \
18475       conftest$ac_exeext conftest.$ac_ext
18476 LIBS=$ac_check_lib_save_LIBS
18477 fi
18478 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18479 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18480 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18481
18482 cat >>confdefs.h <<\_ACEOF
18483 #define HAVE___FIXDFDI 1
18484 _ACEOF
18485
18486 fi
18487
18488   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18489 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18490 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18491   echo $ECHO_N "(cached) $ECHO_C" >&6
18492 else
18493   ac_check_lib_save_LIBS=$LIBS
18494 LIBS="-lgcc  $LIBS"
18495 cat >conftest.$ac_ext <<_ACEOF
18496 /* confdefs.h.  */
18497 _ACEOF
18498 cat confdefs.h >>conftest.$ac_ext
18499 cat >>conftest.$ac_ext <<_ACEOF
18500 /* end confdefs.h.  */
18501
18502 /* Override any GCC internal prototype to avoid an error.
18503    Use char because int might match the return type of a GCC
18504    builtin and then its argument prototype would still apply.  */
18505 #ifdef __cplusplus
18506 extern "C"
18507 #endif
18508 char __fixsfdi ();
18509 int
18510 main ()
18511 {
18512 return __fixsfdi ();
18513   ;
18514   return 0;
18515 }
18516 _ACEOF
18517 rm -f conftest.$ac_objext conftest$ac_exeext
18518 if { (ac_try="$ac_link"
18519 case "(($ac_try" in
18520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18521   *) ac_try_echo=$ac_try;;
18522 esac
18523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18524   (eval "$ac_link") 2>conftest.er1
18525   ac_status=$?
18526   grep -v '^ *+' conftest.er1 >conftest.err
18527   rm -f conftest.er1
18528   cat conftest.err >&5
18529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530   (exit $ac_status); } &&
18531          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18532   { (case "(($ac_try" in
18533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18534   *) ac_try_echo=$ac_try;;
18535 esac
18536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18537   (eval "$ac_try") 2>&5
18538   ac_status=$?
18539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540   (exit $ac_status); }; } &&
18541          { ac_try='test -s conftest$ac_exeext'
18542   { (case "(($ac_try" in
18543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18544   *) ac_try_echo=$ac_try;;
18545 esac
18546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18547   (eval "$ac_try") 2>&5
18548   ac_status=$?
18549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550   (exit $ac_status); }; }; then
18551   ac_cv_lib_gcc___fixsfdi=yes
18552 else
18553   echo "$as_me: failed program was:" >&5
18554 sed 's/^/| /' conftest.$ac_ext >&5
18555
18556         ac_cv_lib_gcc___fixsfdi=no
18557 fi
18558
18559 rm -f core conftest.err conftest.$ac_objext \
18560       conftest$ac_exeext conftest.$ac_ext
18561 LIBS=$ac_check_lib_save_LIBS
18562 fi
18563 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18564 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18565 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18566
18567 cat >>confdefs.h <<\_ACEOF
18568 #define HAVE___FIXSFDI 1
18569 _ACEOF
18570
18571 fi
18572
18573   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18574 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18575 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18576   echo $ECHO_N "(cached) $ECHO_C" >&6
18577 else
18578   ac_check_lib_save_LIBS=$LIBS
18579 LIBS="-lgcc  $LIBS"
18580 cat >conftest.$ac_ext <<_ACEOF
18581 /* confdefs.h.  */
18582 _ACEOF
18583 cat confdefs.h >>conftest.$ac_ext
18584 cat >>conftest.$ac_ext <<_ACEOF
18585 /* end confdefs.h.  */
18586
18587 /* Override any GCC internal prototype to avoid an error.
18588    Use char because int might match the return type of a GCC
18589    builtin and then its argument prototype would still apply.  */
18590 #ifdef __cplusplus
18591 extern "C"
18592 #endif
18593 char __floatdidf ();
18594 int
18595 main ()
18596 {
18597 return __floatdidf ();
18598   ;
18599   return 0;
18600 }
18601 _ACEOF
18602 rm -f conftest.$ac_objext conftest$ac_exeext
18603 if { (ac_try="$ac_link"
18604 case "(($ac_try" in
18605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18606   *) ac_try_echo=$ac_try;;
18607 esac
18608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18609   (eval "$ac_link") 2>conftest.er1
18610   ac_status=$?
18611   grep -v '^ *+' conftest.er1 >conftest.err
18612   rm -f conftest.er1
18613   cat conftest.err >&5
18614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615   (exit $ac_status); } &&
18616          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18617   { (case "(($ac_try" in
18618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18619   *) ac_try_echo=$ac_try;;
18620 esac
18621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18622   (eval "$ac_try") 2>&5
18623   ac_status=$?
18624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625   (exit $ac_status); }; } &&
18626          { ac_try='test -s conftest$ac_exeext'
18627   { (case "(($ac_try" in
18628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18629   *) ac_try_echo=$ac_try;;
18630 esac
18631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18632   (eval "$ac_try") 2>&5
18633   ac_status=$?
18634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635   (exit $ac_status); }; }; then
18636   ac_cv_lib_gcc___floatdidf=yes
18637 else
18638   echo "$as_me: failed program was:" >&5
18639 sed 's/^/| /' conftest.$ac_ext >&5
18640
18641         ac_cv_lib_gcc___floatdidf=no
18642 fi
18643
18644 rm -f core conftest.err conftest.$ac_objext \
18645       conftest$ac_exeext conftest.$ac_ext
18646 LIBS=$ac_check_lib_save_LIBS
18647 fi
18648 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18649 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18650 if test $ac_cv_lib_gcc___floatdidf = yes; then
18651
18652 cat >>confdefs.h <<\_ACEOF
18653 #define HAVE___FLOATDIDF 1
18654 _ACEOF
18655
18656 fi
18657
18658   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18659 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18660 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18661   echo $ECHO_N "(cached) $ECHO_C" >&6
18662 else
18663   ac_check_lib_save_LIBS=$LIBS
18664 LIBS="-lgcc  $LIBS"
18665 cat >conftest.$ac_ext <<_ACEOF
18666 /* confdefs.h.  */
18667 _ACEOF
18668 cat confdefs.h >>conftest.$ac_ext
18669 cat >>conftest.$ac_ext <<_ACEOF
18670 /* end confdefs.h.  */
18671
18672 /* Override any GCC internal prototype to avoid an error.
18673    Use char because int might match the return type of a GCC
18674    builtin and then its argument prototype would still apply.  */
18675 #ifdef __cplusplus
18676 extern "C"
18677 #endif
18678 char __lshrdi3 ();
18679 int
18680 main ()
18681 {
18682 return __lshrdi3 ();
18683   ;
18684   return 0;
18685 }
18686 _ACEOF
18687 rm -f conftest.$ac_objext conftest$ac_exeext
18688 if { (ac_try="$ac_link"
18689 case "(($ac_try" in
18690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18691   *) ac_try_echo=$ac_try;;
18692 esac
18693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18694   (eval "$ac_link") 2>conftest.er1
18695   ac_status=$?
18696   grep -v '^ *+' conftest.er1 >conftest.err
18697   rm -f conftest.er1
18698   cat conftest.err >&5
18699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700   (exit $ac_status); } &&
18701          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18702   { (case "(($ac_try" in
18703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18704   *) ac_try_echo=$ac_try;;
18705 esac
18706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18707   (eval "$ac_try") 2>&5
18708   ac_status=$?
18709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710   (exit $ac_status); }; } &&
18711          { ac_try='test -s conftest$ac_exeext'
18712   { (case "(($ac_try" in
18713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18714   *) ac_try_echo=$ac_try;;
18715 esac
18716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18717   (eval "$ac_try") 2>&5
18718   ac_status=$?
18719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720   (exit $ac_status); }; }; then
18721   ac_cv_lib_gcc___lshrdi3=yes
18722 else
18723   echo "$as_me: failed program was:" >&5
18724 sed 's/^/| /' conftest.$ac_ext >&5
18725
18726         ac_cv_lib_gcc___lshrdi3=no
18727 fi
18728
18729 rm -f core conftest.err conftest.$ac_objext \
18730       conftest$ac_exeext conftest.$ac_ext
18731 LIBS=$ac_check_lib_save_LIBS
18732 fi
18733 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18734 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18735 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18736
18737 cat >>confdefs.h <<\_ACEOF
18738 #define HAVE___LSHRDI3 1
18739 _ACEOF
18740
18741 fi
18742
18743   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18744 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18745 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18746   echo $ECHO_N "(cached) $ECHO_C" >&6
18747 else
18748   ac_check_lib_save_LIBS=$LIBS
18749 LIBS="-lgcc  $LIBS"
18750 cat >conftest.$ac_ext <<_ACEOF
18751 /* confdefs.h.  */
18752 _ACEOF
18753 cat confdefs.h >>conftest.$ac_ext
18754 cat >>conftest.$ac_ext <<_ACEOF
18755 /* end confdefs.h.  */
18756
18757 /* Override any GCC internal prototype to avoid an error.
18758    Use char because int might match the return type of a GCC
18759    builtin and then its argument prototype would still apply.  */
18760 #ifdef __cplusplus
18761 extern "C"
18762 #endif
18763 char __moddi3 ();
18764 int
18765 main ()
18766 {
18767 return __moddi3 ();
18768   ;
18769   return 0;
18770 }
18771 _ACEOF
18772 rm -f conftest.$ac_objext conftest$ac_exeext
18773 if { (ac_try="$ac_link"
18774 case "(($ac_try" in
18775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18776   *) ac_try_echo=$ac_try;;
18777 esac
18778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18779   (eval "$ac_link") 2>conftest.er1
18780   ac_status=$?
18781   grep -v '^ *+' conftest.er1 >conftest.err
18782   rm -f conftest.er1
18783   cat conftest.err >&5
18784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785   (exit $ac_status); } &&
18786          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18787   { (case "(($ac_try" in
18788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18789   *) ac_try_echo=$ac_try;;
18790 esac
18791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18792   (eval "$ac_try") 2>&5
18793   ac_status=$?
18794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795   (exit $ac_status); }; } &&
18796          { ac_try='test -s conftest$ac_exeext'
18797   { (case "(($ac_try" in
18798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18799   *) ac_try_echo=$ac_try;;
18800 esac
18801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18802   (eval "$ac_try") 2>&5
18803   ac_status=$?
18804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805   (exit $ac_status); }; }; then
18806   ac_cv_lib_gcc___moddi3=yes
18807 else
18808   echo "$as_me: failed program was:" >&5
18809 sed 's/^/| /' conftest.$ac_ext >&5
18810
18811         ac_cv_lib_gcc___moddi3=no
18812 fi
18813
18814 rm -f core conftest.err conftest.$ac_objext \
18815       conftest$ac_exeext conftest.$ac_ext
18816 LIBS=$ac_check_lib_save_LIBS
18817 fi
18818 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18819 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18820 if test $ac_cv_lib_gcc___moddi3 = yes; then
18821
18822 cat >>confdefs.h <<\_ACEOF
18823 #define HAVE___MODDI3 1
18824 _ACEOF
18825
18826 fi
18827
18828   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18829 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18830 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18831   echo $ECHO_N "(cached) $ECHO_C" >&6
18832 else
18833   ac_check_lib_save_LIBS=$LIBS
18834 LIBS="-lgcc  $LIBS"
18835 cat >conftest.$ac_ext <<_ACEOF
18836 /* confdefs.h.  */
18837 _ACEOF
18838 cat confdefs.h >>conftest.$ac_ext
18839 cat >>conftest.$ac_ext <<_ACEOF
18840 /* end confdefs.h.  */
18841
18842 /* Override any GCC internal prototype to avoid an error.
18843    Use char because int might match the return type of a GCC
18844    builtin and then its argument prototype would still apply.  */
18845 #ifdef __cplusplus
18846 extern "C"
18847 #endif
18848 char __udivdi3 ();
18849 int
18850 main ()
18851 {
18852 return __udivdi3 ();
18853   ;
18854   return 0;
18855 }
18856 _ACEOF
18857 rm -f conftest.$ac_objext conftest$ac_exeext
18858 if { (ac_try="$ac_link"
18859 case "(($ac_try" in
18860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18861   *) ac_try_echo=$ac_try;;
18862 esac
18863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18864   (eval "$ac_link") 2>conftest.er1
18865   ac_status=$?
18866   grep -v '^ *+' conftest.er1 >conftest.err
18867   rm -f conftest.er1
18868   cat conftest.err >&5
18869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870   (exit $ac_status); } &&
18871          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18872   { (case "(($ac_try" in
18873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18874   *) ac_try_echo=$ac_try;;
18875 esac
18876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18877   (eval "$ac_try") 2>&5
18878   ac_status=$?
18879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880   (exit $ac_status); }; } &&
18881          { ac_try='test -s conftest$ac_exeext'
18882   { (case "(($ac_try" in
18883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18884   *) ac_try_echo=$ac_try;;
18885 esac
18886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18887   (eval "$ac_try") 2>&5
18888   ac_status=$?
18889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890   (exit $ac_status); }; }; then
18891   ac_cv_lib_gcc___udivdi3=yes
18892 else
18893   echo "$as_me: failed program was:" >&5
18894 sed 's/^/| /' conftest.$ac_ext >&5
18895
18896         ac_cv_lib_gcc___udivdi3=no
18897 fi
18898
18899 rm -f core conftest.err conftest.$ac_objext \
18900       conftest$ac_exeext conftest.$ac_ext
18901 LIBS=$ac_check_lib_save_LIBS
18902 fi
18903 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18904 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18905 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18906
18907 cat >>confdefs.h <<\_ACEOF
18908 #define HAVE___UDIVDI3 1
18909 _ACEOF
18910
18911 fi
18912
18913   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18914 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18915 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18916   echo $ECHO_N "(cached) $ECHO_C" >&6
18917 else
18918   ac_check_lib_save_LIBS=$LIBS
18919 LIBS="-lgcc  $LIBS"
18920 cat >conftest.$ac_ext <<_ACEOF
18921 /* confdefs.h.  */
18922 _ACEOF
18923 cat confdefs.h >>conftest.$ac_ext
18924 cat >>conftest.$ac_ext <<_ACEOF
18925 /* end confdefs.h.  */
18926
18927 /* Override any GCC internal prototype to avoid an error.
18928    Use char because int might match the return type of a GCC
18929    builtin and then its argument prototype would still apply.  */
18930 #ifdef __cplusplus
18931 extern "C"
18932 #endif
18933 char __umoddi3 ();
18934 int
18935 main ()
18936 {
18937 return __umoddi3 ();
18938   ;
18939   return 0;
18940 }
18941 _ACEOF
18942 rm -f conftest.$ac_objext conftest$ac_exeext
18943 if { (ac_try="$ac_link"
18944 case "(($ac_try" in
18945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18946   *) ac_try_echo=$ac_try;;
18947 esac
18948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18949   (eval "$ac_link") 2>conftest.er1
18950   ac_status=$?
18951   grep -v '^ *+' conftest.er1 >conftest.err
18952   rm -f conftest.er1
18953   cat conftest.err >&5
18954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955   (exit $ac_status); } &&
18956          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18957   { (case "(($ac_try" in
18958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18959   *) ac_try_echo=$ac_try;;
18960 esac
18961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18962   (eval "$ac_try") 2>&5
18963   ac_status=$?
18964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965   (exit $ac_status); }; } &&
18966          { ac_try='test -s conftest$ac_exeext'
18967   { (case "(($ac_try" in
18968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18969   *) ac_try_echo=$ac_try;;
18970 esac
18971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18972   (eval "$ac_try") 2>&5
18973   ac_status=$?
18974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975   (exit $ac_status); }; }; then
18976   ac_cv_lib_gcc___umoddi3=yes
18977 else
18978   echo "$as_me: failed program was:" >&5
18979 sed 's/^/| /' conftest.$ac_ext >&5
18980
18981         ac_cv_lib_gcc___umoddi3=no
18982 fi
18983
18984 rm -f core conftest.err conftest.$ac_objext \
18985       conftest$ac_exeext conftest.$ac_ext
18986 LIBS=$ac_check_lib_save_LIBS
18987 fi
18988 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18989 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18990 if test $ac_cv_lib_gcc___umoddi3 = yes; then
18991
18992 cat >>confdefs.h <<\_ACEOF
18993 #define HAVE___UMODDI3 1
18994 _ACEOF
18995
18996 fi
18997
18998
18999   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19000 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19001 if test "${ac_cv_lib_gcc___main+set}" = set; then
19002   echo $ECHO_N "(cached) $ECHO_C" >&6
19003 else
19004   ac_check_lib_save_LIBS=$LIBS
19005 LIBS="-lgcc  $LIBS"
19006 cat >conftest.$ac_ext <<_ACEOF
19007 /* confdefs.h.  */
19008 _ACEOF
19009 cat confdefs.h >>conftest.$ac_ext
19010 cat >>conftest.$ac_ext <<_ACEOF
19011 /* end confdefs.h.  */
19012
19013 /* Override any GCC internal prototype to avoid an error.
19014    Use char because int might match the return type of a GCC
19015    builtin and then its argument prototype would still apply.  */
19016 #ifdef __cplusplus
19017 extern "C"
19018 #endif
19019 char __main ();
19020 int
19021 main ()
19022 {
19023 return __main ();
19024   ;
19025   return 0;
19026 }
19027 _ACEOF
19028 rm -f conftest.$ac_objext conftest$ac_exeext
19029 if { (ac_try="$ac_link"
19030 case "(($ac_try" in
19031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19032   *) ac_try_echo=$ac_try;;
19033 esac
19034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19035   (eval "$ac_link") 2>conftest.er1
19036   ac_status=$?
19037   grep -v '^ *+' conftest.er1 >conftest.err
19038   rm -f conftest.er1
19039   cat conftest.err >&5
19040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041   (exit $ac_status); } &&
19042          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19043   { (case "(($ac_try" in
19044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19045   *) ac_try_echo=$ac_try;;
19046 esac
19047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19048   (eval "$ac_try") 2>&5
19049   ac_status=$?
19050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051   (exit $ac_status); }; } &&
19052          { ac_try='test -s conftest$ac_exeext'
19053   { (case "(($ac_try" in
19054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19055   *) ac_try_echo=$ac_try;;
19056 esac
19057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19058   (eval "$ac_try") 2>&5
19059   ac_status=$?
19060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061   (exit $ac_status); }; }; then
19062   ac_cv_lib_gcc___main=yes
19063 else
19064   echo "$as_me: failed program was:" >&5
19065 sed 's/^/| /' conftest.$ac_ext >&5
19066
19067         ac_cv_lib_gcc___main=no
19068 fi
19069
19070 rm -f core conftest.err conftest.$ac_objext \
19071       conftest$ac_exeext conftest.$ac_ext
19072 LIBS=$ac_check_lib_save_LIBS
19073 fi
19074 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19075 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19076 if test $ac_cv_lib_gcc___main = yes; then
19077
19078 cat >>confdefs.h <<\_ACEOF
19079 #define HAVE___MAIN 1
19080 _ACEOF
19081
19082 fi
19083
19084   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19085 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19086 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19087   echo $ECHO_N "(cached) $ECHO_C" >&6
19088 else
19089   ac_check_lib_save_LIBS=$LIBS
19090 LIBS="-lgcc  $LIBS"
19091 cat >conftest.$ac_ext <<_ACEOF
19092 /* confdefs.h.  */
19093 _ACEOF
19094 cat confdefs.h >>conftest.$ac_ext
19095 cat >>conftest.$ac_ext <<_ACEOF
19096 /* end confdefs.h.  */
19097
19098 /* Override any GCC internal prototype to avoid an error.
19099    Use char because int might match the return type of a GCC
19100    builtin and then its argument prototype would still apply.  */
19101 #ifdef __cplusplus
19102 extern "C"
19103 #endif
19104 char __cmpdi2 ();
19105 int
19106 main ()
19107 {
19108 return __cmpdi2 ();
19109   ;
19110   return 0;
19111 }
19112 _ACEOF
19113 rm -f conftest.$ac_objext conftest$ac_exeext
19114 if { (ac_try="$ac_link"
19115 case "(($ac_try" in
19116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19117   *) ac_try_echo=$ac_try;;
19118 esac
19119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19120   (eval "$ac_link") 2>conftest.er1
19121   ac_status=$?
19122   grep -v '^ *+' conftest.er1 >conftest.err
19123   rm -f conftest.er1
19124   cat conftest.err >&5
19125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126   (exit $ac_status); } &&
19127          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19128   { (case "(($ac_try" in
19129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19130   *) ac_try_echo=$ac_try;;
19131 esac
19132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19133   (eval "$ac_try") 2>&5
19134   ac_status=$?
19135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136   (exit $ac_status); }; } &&
19137          { ac_try='test -s conftest$ac_exeext'
19138   { (case "(($ac_try" in
19139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19140   *) ac_try_echo=$ac_try;;
19141 esac
19142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19143   (eval "$ac_try") 2>&5
19144   ac_status=$?
19145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146   (exit $ac_status); }; }; then
19147   ac_cv_lib_gcc___cmpdi2=yes
19148 else
19149   echo "$as_me: failed program was:" >&5
19150 sed 's/^/| /' conftest.$ac_ext >&5
19151
19152         ac_cv_lib_gcc___cmpdi2=no
19153 fi
19154
19155 rm -f core conftest.err conftest.$ac_objext \
19156       conftest$ac_exeext conftest.$ac_ext
19157 LIBS=$ac_check_lib_save_LIBS
19158 fi
19159 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19160 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19161 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19162
19163 cat >>confdefs.h <<\_ACEOF
19164 #define HAVE___CMPDI2 1
19165 _ACEOF
19166
19167 fi
19168
19169 fi
19170
19171 if test "$llvm_cv_os_type" = "MingW" ; then
19172   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19173 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19174   cat >conftest.$ac_ext <<_ACEOF
19175 #include <windows.h>
19176 #include <imagehlp.h>
19177 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19178 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19179 _ACEOF
19180 rm -f conftest.$ac_objext
19181 if { (ac_try="$ac_compile"
19182 case "(($ac_try" in
19183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184   *) ac_try_echo=$ac_try;;
19185 esac
19186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19187   (eval "$ac_compile") 2>conftest.er1
19188   ac_status=$?
19189   grep -v '^ *+' conftest.er1 >conftest.err
19190   rm -f conftest.er1
19191   cat conftest.err >&5
19192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193   (exit $ac_status); } &&
19194          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19195   { (case "(($ac_try" in
19196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197   *) ac_try_echo=$ac_try;;
19198 esac
19199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200   (eval "$ac_try") 2>&5
19201   ac_status=$?
19202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203   (exit $ac_status); }; } &&
19204          { ac_try='test -s conftest.$ac_objext'
19205   { (case "(($ac_try" in
19206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19207   *) ac_try_echo=$ac_try;;
19208 esac
19209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19210   (eval "$ac_try") 2>&5
19211   ac_status=$?
19212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213   (exit $ac_status); }; }; then
19214
19215   { echo "$as_me:$LINENO: result: yes" >&5
19216 echo "${ECHO_T}yes" >&6; }
19217   llvm_cv_win32_elmcb_pcstr="PCSTR"
19218
19219 else
19220   echo "$as_me: failed program was:" >&5
19221 sed 's/^/| /' conftest.$ac_ext >&5
19222
19223
19224   { echo "$as_me:$LINENO: result: no" >&5
19225 echo "${ECHO_T}no" >&6; }
19226   llvm_cv_win32_elmcb_pcstr="PSTR"
19227
19228 fi
19229
19230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19231
19232 cat >>confdefs.h <<_ACEOF
19233 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19234 _ACEOF
19235
19236 fi
19237
19238
19239 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19240 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19241 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19242   echo $ECHO_N "(cached) $ECHO_C" >&6
19243 else
19244   ac_ext=cpp
19245 ac_cpp='$CXXCPP $CPPFLAGS'
19246 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19247 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19248 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19249
19250    cat >conftest.$ac_ext <<_ACEOF
19251 /* confdefs.h.  */
19252 _ACEOF
19253 cat confdefs.h >>conftest.$ac_ext
19254 cat >>conftest.$ac_ext <<_ACEOF
19255 /* end confdefs.h.  */
19256 #include <math.h>
19257 int
19258 main ()
19259 {
19260 float f; isnan(f);
19261   ;
19262   return 0;
19263 }
19264 _ACEOF
19265 rm -f conftest.$ac_objext
19266 if { (ac_try="$ac_compile"
19267 case "(($ac_try" in
19268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19269   *) ac_try_echo=$ac_try;;
19270 esac
19271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19272   (eval "$ac_compile") 2>conftest.er1
19273   ac_status=$?
19274   grep -v '^ *+' conftest.er1 >conftest.err
19275   rm -f conftest.er1
19276   cat conftest.err >&5
19277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278   (exit $ac_status); } &&
19279          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19280   { (case "(($ac_try" in
19281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282   *) ac_try_echo=$ac_try;;
19283 esac
19284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19285   (eval "$ac_try") 2>&5
19286   ac_status=$?
19287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288   (exit $ac_status); }; } &&
19289          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
19296   ac_status=$?
19297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298   (exit $ac_status); }; }; then
19299   ac_cv_func_isnan_in_math_h=yes
19300 else
19301   echo "$as_me: failed program was:" >&5
19302 sed 's/^/| /' conftest.$ac_ext >&5
19303
19304         ac_cv_func_isnan_in_math_h=no
19305 fi
19306
19307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19308   ac_ext=c
19309 ac_cpp='$CPP $CPPFLAGS'
19310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19313
19314 fi
19315 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19316 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19317
19318
19319 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19320
19321 cat >>confdefs.h <<\_ACEOF
19322 #define HAVE_ISNAN_IN_MATH_H 1
19323 _ACEOF
19324
19325 fi
19326
19327 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19328 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19329 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19330   echo $ECHO_N "(cached) $ECHO_C" >&6
19331 else
19332   ac_ext=cpp
19333 ac_cpp='$CXXCPP $CPPFLAGS'
19334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19337
19338    cat >conftest.$ac_ext <<_ACEOF
19339 /* confdefs.h.  */
19340 _ACEOF
19341 cat confdefs.h >>conftest.$ac_ext
19342 cat >>conftest.$ac_ext <<_ACEOF
19343 /* end confdefs.h.  */
19344 #include <cmath>
19345 int
19346 main ()
19347 {
19348 float f; isnan(f);
19349   ;
19350   return 0;
19351 }
19352 _ACEOF
19353 rm -f conftest.$ac_objext
19354 if { (ac_try="$ac_compile"
19355 case "(($ac_try" in
19356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19357   *) ac_try_echo=$ac_try;;
19358 esac
19359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19360   (eval "$ac_compile") 2>conftest.er1
19361   ac_status=$?
19362   grep -v '^ *+' conftest.er1 >conftest.err
19363   rm -f conftest.er1
19364   cat conftest.err >&5
19365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366   (exit $ac_status); } &&
19367          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19368   { (case "(($ac_try" in
19369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19370   *) ac_try_echo=$ac_try;;
19371 esac
19372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19373   (eval "$ac_try") 2>&5
19374   ac_status=$?
19375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376   (exit $ac_status); }; } &&
19377          { ac_try='test -s conftest.$ac_objext'
19378   { (case "(($ac_try" in
19379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19380   *) ac_try_echo=$ac_try;;
19381 esac
19382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19383   (eval "$ac_try") 2>&5
19384   ac_status=$?
19385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386   (exit $ac_status); }; }; then
19387   ac_cv_func_isnan_in_cmath=yes
19388 else
19389   echo "$as_me: failed program was:" >&5
19390 sed 's/^/| /' conftest.$ac_ext >&5
19391
19392         ac_cv_func_isnan_in_cmath=no
19393 fi
19394
19395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19396   ac_ext=c
19397 ac_cpp='$CPP $CPPFLAGS'
19398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19401
19402 fi
19403 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19404 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19405
19406 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19407
19408 cat >>confdefs.h <<\_ACEOF
19409 #define HAVE_ISNAN_IN_CMATH 1
19410 _ACEOF
19411
19412 fi
19413
19414 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19415 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19416 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19417   echo $ECHO_N "(cached) $ECHO_C" >&6
19418 else
19419   ac_ext=cpp
19420 ac_cpp='$CXXCPP $CPPFLAGS'
19421 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19422 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19423 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19424
19425    cat >conftest.$ac_ext <<_ACEOF
19426 /* confdefs.h.  */
19427 _ACEOF
19428 cat confdefs.h >>conftest.$ac_ext
19429 cat >>conftest.$ac_ext <<_ACEOF
19430 /* end confdefs.h.  */
19431 #include <cmath>
19432 int
19433 main ()
19434 {
19435 float f; std::isnan(f);
19436   ;
19437   return 0;
19438 }
19439 _ACEOF
19440 rm -f conftest.$ac_objext
19441 if { (ac_try="$ac_compile"
19442 case "(($ac_try" in
19443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19444   *) ac_try_echo=$ac_try;;
19445 esac
19446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19447   (eval "$ac_compile") 2>conftest.er1
19448   ac_status=$?
19449   grep -v '^ *+' conftest.er1 >conftest.err
19450   rm -f conftest.er1
19451   cat conftest.err >&5
19452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453   (exit $ac_status); } &&
19454          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19455   { (case "(($ac_try" in
19456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19457   *) ac_try_echo=$ac_try;;
19458 esac
19459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19460   (eval "$ac_try") 2>&5
19461   ac_status=$?
19462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463   (exit $ac_status); }; } &&
19464          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
19471   ac_status=$?
19472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473   (exit $ac_status); }; }; then
19474   ac_cv_func_std_isnan_in_cmath=yes
19475 else
19476   echo "$as_me: failed program was:" >&5
19477 sed 's/^/| /' conftest.$ac_ext >&5
19478
19479         ac_cv_func_std_isnan_in_cmath=no
19480 fi
19481
19482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19483   ac_ext=c
19484 ac_cpp='$CPP $CPPFLAGS'
19485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19488
19489 fi
19490 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19491 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19492
19493 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19494
19495 cat >>confdefs.h <<\_ACEOF
19496 #define HAVE_STD_ISNAN_IN_CMATH 1
19497 _ACEOF
19498
19499 fi
19500
19501
19502 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19503 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19504 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19505   echo $ECHO_N "(cached) $ECHO_C" >&6
19506 else
19507   ac_ext=cpp
19508 ac_cpp='$CXXCPP $CPPFLAGS'
19509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19512
19513    cat >conftest.$ac_ext <<_ACEOF
19514 /* confdefs.h.  */
19515 _ACEOF
19516 cat confdefs.h >>conftest.$ac_ext
19517 cat >>conftest.$ac_ext <<_ACEOF
19518 /* end confdefs.h.  */
19519 #include <math.h>
19520 int
19521 main ()
19522 {
19523 float f; isinf(f);
19524   ;
19525   return 0;
19526 }
19527 _ACEOF
19528 rm -f conftest.$ac_objext
19529 if { (ac_try="$ac_compile"
19530 case "(($ac_try" in
19531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19532   *) ac_try_echo=$ac_try;;
19533 esac
19534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19535   (eval "$ac_compile") 2>conftest.er1
19536   ac_status=$?
19537   grep -v '^ *+' conftest.er1 >conftest.err
19538   rm -f conftest.er1
19539   cat conftest.err >&5
19540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541   (exit $ac_status); } &&
19542          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19543   { (case "(($ac_try" in
19544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19545   *) ac_try_echo=$ac_try;;
19546 esac
19547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19548   (eval "$ac_try") 2>&5
19549   ac_status=$?
19550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551   (exit $ac_status); }; } &&
19552          { ac_try='test -s conftest.$ac_objext'
19553   { (case "(($ac_try" in
19554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19555   *) ac_try_echo=$ac_try;;
19556 esac
19557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19558   (eval "$ac_try") 2>&5
19559   ac_status=$?
19560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561   (exit $ac_status); }; }; then
19562   ac_cv_func_isinf_in_math_h=yes
19563 else
19564   echo "$as_me: failed program was:" >&5
19565 sed 's/^/| /' conftest.$ac_ext >&5
19566
19567         ac_cv_func_isinf_in_math_h=no
19568 fi
19569
19570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19571   ac_ext=c
19572 ac_cpp='$CPP $CPPFLAGS'
19573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19576
19577 fi
19578 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19579 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19580
19581 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19582
19583 cat >>confdefs.h <<\_ACEOF
19584 #define HAVE_ISINF_IN_MATH_H 1
19585 _ACEOF
19586
19587 fi
19588
19589 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19590 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19591 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19592   echo $ECHO_N "(cached) $ECHO_C" >&6
19593 else
19594   ac_ext=cpp
19595 ac_cpp='$CXXCPP $CPPFLAGS'
19596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19599
19600    cat >conftest.$ac_ext <<_ACEOF
19601 /* confdefs.h.  */
19602 _ACEOF
19603 cat confdefs.h >>conftest.$ac_ext
19604 cat >>conftest.$ac_ext <<_ACEOF
19605 /* end confdefs.h.  */
19606 #include <cmath>
19607 int
19608 main ()
19609 {
19610 float f; isinf(f);
19611   ;
19612   return 0;
19613 }
19614 _ACEOF
19615 rm -f conftest.$ac_objext
19616 if { (ac_try="$ac_compile"
19617 case "(($ac_try" in
19618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19619   *) ac_try_echo=$ac_try;;
19620 esac
19621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19622   (eval "$ac_compile") 2>conftest.er1
19623   ac_status=$?
19624   grep -v '^ *+' conftest.er1 >conftest.err
19625   rm -f conftest.er1
19626   cat conftest.err >&5
19627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628   (exit $ac_status); } &&
19629          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19630   { (case "(($ac_try" in
19631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19632   *) ac_try_echo=$ac_try;;
19633 esac
19634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19635   (eval "$ac_try") 2>&5
19636   ac_status=$?
19637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638   (exit $ac_status); }; } &&
19639          { ac_try='test -s conftest.$ac_objext'
19640   { (case "(($ac_try" in
19641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19642   *) ac_try_echo=$ac_try;;
19643 esac
19644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19645   (eval "$ac_try") 2>&5
19646   ac_status=$?
19647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648   (exit $ac_status); }; }; then
19649   ac_cv_func_isinf_in_cmath=yes
19650 else
19651   echo "$as_me: failed program was:" >&5
19652 sed 's/^/| /' conftest.$ac_ext >&5
19653
19654         ac_cv_func_isinf_in_cmath=no
19655 fi
19656
19657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19658   ac_ext=c
19659 ac_cpp='$CPP $CPPFLAGS'
19660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19663
19664 fi
19665 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19666 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19667
19668 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19669
19670 cat >>confdefs.h <<\_ACEOF
19671 #define HAVE_ISINF_IN_CMATH 1
19672 _ACEOF
19673
19674 fi
19675
19676 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19677 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19678 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19679   echo $ECHO_N "(cached) $ECHO_C" >&6
19680 else
19681   ac_ext=cpp
19682 ac_cpp='$CXXCPP $CPPFLAGS'
19683 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19684 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19685 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19686
19687    cat >conftest.$ac_ext <<_ACEOF
19688 /* confdefs.h.  */
19689 _ACEOF
19690 cat confdefs.h >>conftest.$ac_ext
19691 cat >>conftest.$ac_ext <<_ACEOF
19692 /* end confdefs.h.  */
19693 #include <cmath>
19694 int
19695 main ()
19696 {
19697 float f; std::isinf(f)}
19698   ;
19699   return 0;
19700 }
19701 _ACEOF
19702 rm -f conftest.$ac_objext
19703 if { (ac_try="$ac_compile"
19704 case "(($ac_try" in
19705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19706   *) ac_try_echo=$ac_try;;
19707 esac
19708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19709   (eval "$ac_compile") 2>conftest.er1
19710   ac_status=$?
19711   grep -v '^ *+' conftest.er1 >conftest.err
19712   rm -f conftest.er1
19713   cat conftest.err >&5
19714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715   (exit $ac_status); } &&
19716          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19717   { (case "(($ac_try" in
19718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19719   *) ac_try_echo=$ac_try;;
19720 esac
19721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19722   (eval "$ac_try") 2>&5
19723   ac_status=$?
19724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725   (exit $ac_status); }; } &&
19726          { ac_try='test -s conftest.$ac_objext'
19727   { (case "(($ac_try" in
19728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19729   *) ac_try_echo=$ac_try;;
19730 esac
19731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19732   (eval "$ac_try") 2>&5
19733   ac_status=$?
19734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735   (exit $ac_status); }; }; then
19736   ac_cv_func_std_isinf_in_cmath=yes
19737 else
19738   echo "$as_me: failed program was:" >&5
19739 sed 's/^/| /' conftest.$ac_ext >&5
19740
19741         ac_cv_func_std_isinf_in_cmath=no
19742 fi
19743
19744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19745   ac_ext=c
19746 ac_cpp='$CPP $CPPFLAGS'
19747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19750
19751 fi
19752 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19753 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19754
19755 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19756
19757 cat >>confdefs.h <<\_ACEOF
19758 #define HAVE_STD_ISINF_IN_CMATH 1
19759 _ACEOF
19760
19761 fi
19762
19763 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19764 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19765 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19766   echo $ECHO_N "(cached) $ECHO_C" >&6
19767 else
19768   ac_ext=cpp
19769 ac_cpp='$CXXCPP $CPPFLAGS'
19770 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19771 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19772 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19773
19774    cat >conftest.$ac_ext <<_ACEOF
19775 /* confdefs.h.  */
19776 _ACEOF
19777 cat confdefs.h >>conftest.$ac_ext
19778 cat >>conftest.$ac_ext <<_ACEOF
19779 /* end confdefs.h.  */
19780 #include <ieeefp.h>
19781 int
19782 main ()
19783 {
19784 float f; finite(f);
19785   ;
19786   return 0;
19787 }
19788 _ACEOF
19789 rm -f conftest.$ac_objext
19790 if { (ac_try="$ac_compile"
19791 case "(($ac_try" in
19792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19793   *) ac_try_echo=$ac_try;;
19794 esac
19795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19796   (eval "$ac_compile") 2>conftest.er1
19797   ac_status=$?
19798   grep -v '^ *+' conftest.er1 >conftest.err
19799   rm -f conftest.er1
19800   cat conftest.err >&5
19801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802   (exit $ac_status); } &&
19803          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19804   { (case "(($ac_try" in
19805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19806   *) ac_try_echo=$ac_try;;
19807 esac
19808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19809   (eval "$ac_try") 2>&5
19810   ac_status=$?
19811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812   (exit $ac_status); }; } &&
19813          { ac_try='test -s conftest.$ac_objext'
19814   { (case "(($ac_try" in
19815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19816   *) ac_try_echo=$ac_try;;
19817 esac
19818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19819   (eval "$ac_try") 2>&5
19820   ac_status=$?
19821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822   (exit $ac_status); }; }; then
19823   ac_cv_func_finite_in_ieeefp_h=yes
19824 else
19825   echo "$as_me: failed program was:" >&5
19826 sed 's/^/| /' conftest.$ac_ext >&5
19827
19828         ac_cv_func_finite_in_ieeefp_h=no
19829 fi
19830
19831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19832   ac_ext=c
19833 ac_cpp='$CPP $CPPFLAGS'
19834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19837
19838 fi
19839 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19840 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19841
19842 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19843
19844 cat >>confdefs.h <<\_ACEOF
19845 #define HAVE_FINITE_IN_IEEEFP_H 1
19846 _ACEOF
19847
19848 fi
19849
19850
19851
19852 if test "$llvm_cv_platform_type" = "Unix" ; then
19853
19854
19855 for ac_header in stdlib.h unistd.h
19856 do
19857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19859   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19862   echo $ECHO_N "(cached) $ECHO_C" >&6
19863 fi
19864 ac_res=`eval echo '${'$as_ac_Header'}'`
19865                { echo "$as_me:$LINENO: result: $ac_res" >&5
19866 echo "${ECHO_T}$ac_res" >&6; }
19867 else
19868   # Is the header compilable?
19869 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19870 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19871 cat >conftest.$ac_ext <<_ACEOF
19872 /* confdefs.h.  */
19873 _ACEOF
19874 cat confdefs.h >>conftest.$ac_ext
19875 cat >>conftest.$ac_ext <<_ACEOF
19876 /* end confdefs.h.  */
19877 $ac_includes_default
19878 #include <$ac_header>
19879 _ACEOF
19880 rm -f conftest.$ac_objext
19881 if { (ac_try="$ac_compile"
19882 case "(($ac_try" in
19883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19884   *) ac_try_echo=$ac_try;;
19885 esac
19886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19887   (eval "$ac_compile") 2>conftest.er1
19888   ac_status=$?
19889   grep -v '^ *+' conftest.er1 >conftest.err
19890   rm -f conftest.er1
19891   cat conftest.err >&5
19892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893   (exit $ac_status); } &&
19894          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19895   { (case "(($ac_try" in
19896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19897   *) ac_try_echo=$ac_try;;
19898 esac
19899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19900   (eval "$ac_try") 2>&5
19901   ac_status=$?
19902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903   (exit $ac_status); }; } &&
19904          { ac_try='test -s conftest.$ac_objext'
19905   { (case "(($ac_try" in
19906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19907   *) ac_try_echo=$ac_try;;
19908 esac
19909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19910   (eval "$ac_try") 2>&5
19911   ac_status=$?
19912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913   (exit $ac_status); }; }; then
19914   ac_header_compiler=yes
19915 else
19916   echo "$as_me: failed program was:" >&5
19917 sed 's/^/| /' conftest.$ac_ext >&5
19918
19919         ac_header_compiler=no
19920 fi
19921
19922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19923 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19924 echo "${ECHO_T}$ac_header_compiler" >&6; }
19925
19926 # Is the header present?
19927 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19928 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19929 cat >conftest.$ac_ext <<_ACEOF
19930 /* confdefs.h.  */
19931 _ACEOF
19932 cat confdefs.h >>conftest.$ac_ext
19933 cat >>conftest.$ac_ext <<_ACEOF
19934 /* end confdefs.h.  */
19935 #include <$ac_header>
19936 _ACEOF
19937 if { (ac_try="$ac_cpp conftest.$ac_ext"
19938 case "(($ac_try" in
19939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19940   *) ac_try_echo=$ac_try;;
19941 esac
19942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19943   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19944   ac_status=$?
19945   grep -v '^ *+' conftest.er1 >conftest.err
19946   rm -f conftest.er1
19947   cat conftest.err >&5
19948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949   (exit $ac_status); } >/dev/null; then
19950   if test -s conftest.err; then
19951     ac_cpp_err=$ac_c_preproc_warn_flag
19952     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19953   else
19954     ac_cpp_err=
19955   fi
19956 else
19957   ac_cpp_err=yes
19958 fi
19959 if test -z "$ac_cpp_err"; then
19960   ac_header_preproc=yes
19961 else
19962   echo "$as_me: failed program was:" >&5
19963 sed 's/^/| /' conftest.$ac_ext >&5
19964
19965   ac_header_preproc=no
19966 fi
19967
19968 rm -f conftest.err conftest.$ac_ext
19969 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19970 echo "${ECHO_T}$ac_header_preproc" >&6; }
19971
19972 # So?  What about this header?
19973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19974   yes:no: )
19975     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19976 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19977     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19978 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19979     ac_header_preproc=yes
19980     ;;
19981   no:yes:* )
19982     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19983 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19984     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19985 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19986     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19987 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19988     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19989 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19990     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19992     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19993 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19994     ( cat <<\_ASBOX
19995 ## ------------------------------ ##
19996 ## Report this to bugs@yourdomain ##
19997 ## ------------------------------ ##
19998 _ASBOX
19999      ) | sed "s/^/$as_me: WARNING:     /" >&2
20000     ;;
20001 esac
20002 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20005   echo $ECHO_N "(cached) $ECHO_C" >&6
20006 else
20007   eval "$as_ac_Header=\$ac_header_preproc"
20008 fi
20009 ac_res=`eval echo '${'$as_ac_Header'}'`
20010                { echo "$as_me:$LINENO: result: $ac_res" >&5
20011 echo "${ECHO_T}$ac_res" >&6; }
20012
20013 fi
20014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20015   cat >>confdefs.h <<_ACEOF
20016 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20017 _ACEOF
20018
20019 fi
20020
20021 done
20022
20023
20024 for ac_func in getpagesize
20025 do
20026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20027 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20029 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20030   echo $ECHO_N "(cached) $ECHO_C" >&6
20031 else
20032   cat >conftest.$ac_ext <<_ACEOF
20033 /* confdefs.h.  */
20034 _ACEOF
20035 cat confdefs.h >>conftest.$ac_ext
20036 cat >>conftest.$ac_ext <<_ACEOF
20037 /* end confdefs.h.  */
20038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20039    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20040 #define $ac_func innocuous_$ac_func
20041
20042 /* System header to define __stub macros and hopefully few prototypes,
20043     which can conflict with char $ac_func (); below.
20044     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20045     <limits.h> exists even on freestanding compilers.  */
20046
20047 #ifdef __STDC__
20048 # include <limits.h>
20049 #else
20050 # include <assert.h>
20051 #endif
20052
20053 #undef $ac_func
20054
20055 /* Override any GCC internal prototype to avoid an error.
20056    Use char because int might match the return type of a GCC
20057    builtin and then its argument prototype would still apply.  */
20058 #ifdef __cplusplus
20059 extern "C"
20060 #endif
20061 char $ac_func ();
20062 /* The GNU C library defines this for functions which it implements
20063     to always fail with ENOSYS.  Some functions are actually named
20064     something starting with __ and the normal name is an alias.  */
20065 #if defined __stub_$ac_func || defined __stub___$ac_func
20066 choke me
20067 #endif
20068
20069 int
20070 main ()
20071 {
20072 return $ac_func ();
20073   ;
20074   return 0;
20075 }
20076 _ACEOF
20077 rm -f conftest.$ac_objext conftest$ac_exeext
20078 if { (ac_try="$ac_link"
20079 case "(($ac_try" in
20080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20081   *) ac_try_echo=$ac_try;;
20082 esac
20083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20084   (eval "$ac_link") 2>conftest.er1
20085   ac_status=$?
20086   grep -v '^ *+' conftest.er1 >conftest.err
20087   rm -f conftest.er1
20088   cat conftest.err >&5
20089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090   (exit $ac_status); } &&
20091          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20092   { (case "(($ac_try" in
20093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20094   *) ac_try_echo=$ac_try;;
20095 esac
20096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20097   (eval "$ac_try") 2>&5
20098   ac_status=$?
20099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100   (exit $ac_status); }; } &&
20101          { ac_try='test -s conftest$ac_exeext'
20102   { (case "(($ac_try" in
20103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20104   *) ac_try_echo=$ac_try;;
20105 esac
20106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20107   (eval "$ac_try") 2>&5
20108   ac_status=$?
20109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110   (exit $ac_status); }; }; then
20111   eval "$as_ac_var=yes"
20112 else
20113   echo "$as_me: failed program was:" >&5
20114 sed 's/^/| /' conftest.$ac_ext >&5
20115
20116         eval "$as_ac_var=no"
20117 fi
20118
20119 rm -f core conftest.err conftest.$ac_objext \
20120       conftest$ac_exeext conftest.$ac_ext
20121 fi
20122 ac_res=`eval echo '${'$as_ac_var'}'`
20123                { echo "$as_me:$LINENO: result: $ac_res" >&5
20124 echo "${ECHO_T}$ac_res" >&6; }
20125 if test `eval echo '${'$as_ac_var'}'` = yes; then
20126   cat >>confdefs.h <<_ACEOF
20127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20128 _ACEOF
20129
20130 fi
20131 done
20132
20133 { echo "$as_me:$LINENO: checking for working mmap" >&5
20134 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20135 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20136   echo $ECHO_N "(cached) $ECHO_C" >&6
20137 else
20138   if test "$cross_compiling" = yes; then
20139   ac_cv_func_mmap_fixed_mapped=no
20140 else
20141   cat >conftest.$ac_ext <<_ACEOF
20142 /* confdefs.h.  */
20143 _ACEOF
20144 cat confdefs.h >>conftest.$ac_ext
20145 cat >>conftest.$ac_ext <<_ACEOF
20146 /* end confdefs.h.  */
20147 $ac_includes_default
20148 /* malloc might have been renamed as rpl_malloc. */
20149 #undef malloc
20150
20151 /* Thanks to Mike Haertel and Jim Avera for this test.
20152    Here is a matrix of mmap possibilities:
20153         mmap private not fixed
20154         mmap private fixed at somewhere currently unmapped
20155         mmap private fixed at somewhere already mapped
20156         mmap shared not fixed
20157         mmap shared fixed at somewhere currently unmapped
20158         mmap shared fixed at somewhere already mapped
20159    For private mappings, we should verify that changes cannot be read()
20160    back from the file, nor mmap's back from the file at a different
20161    address.  (There have been systems where private was not correctly
20162    implemented like the infamous i386 svr4.0, and systems where the
20163    VM page cache was not coherent with the file system buffer cache
20164    like early versions of FreeBSD and possibly contemporary NetBSD.)
20165    For shared mappings, we should conversely verify that changes get
20166    propagated back to all the places they're supposed to be.
20167
20168    Grep wants private fixed already mapped.
20169    The main things grep needs to know about mmap are:
20170    * does it exist and is it safe to write into the mmap'd area
20171    * how to use it (BSD variants)  */
20172
20173 #include <fcntl.h>
20174 #include <sys/mman.h>
20175
20176 #if !STDC_HEADERS && !HAVE_STDLIB_H
20177 char *malloc ();
20178 #endif
20179
20180 /* This mess was copied from the GNU getpagesize.h.  */
20181 #if !HAVE_GETPAGESIZE
20182 /* Assume that all systems that can run configure have sys/param.h.  */
20183 # if !HAVE_SYS_PARAM_H
20184 #  define HAVE_SYS_PARAM_H 1
20185 # endif
20186
20187 # ifdef _SC_PAGESIZE
20188 #  define getpagesize() sysconf(_SC_PAGESIZE)
20189 # else /* no _SC_PAGESIZE */
20190 #  if HAVE_SYS_PARAM_H
20191 #   include <sys/param.h>
20192 #   ifdef EXEC_PAGESIZE
20193 #    define getpagesize() EXEC_PAGESIZE
20194 #   else /* no EXEC_PAGESIZE */
20195 #    ifdef NBPG
20196 #     define getpagesize() NBPG * CLSIZE
20197 #     ifndef CLSIZE
20198 #      define CLSIZE 1
20199 #     endif /* no CLSIZE */
20200 #    else /* no NBPG */
20201 #     ifdef NBPC
20202 #      define getpagesize() NBPC
20203 #     else /* no NBPC */
20204 #      ifdef PAGESIZE
20205 #       define getpagesize() PAGESIZE
20206 #      endif /* PAGESIZE */
20207 #     endif /* no NBPC */
20208 #    endif /* no NBPG */
20209 #   endif /* no EXEC_PAGESIZE */
20210 #  else /* no HAVE_SYS_PARAM_H */
20211 #   define getpagesize() 8192   /* punt totally */
20212 #  endif /* no HAVE_SYS_PARAM_H */
20213 # endif /* no _SC_PAGESIZE */
20214
20215 #endif /* no HAVE_GETPAGESIZE */
20216
20217 int
20218 main ()
20219 {
20220   char *data, *data2, *data3;
20221   int i, pagesize;
20222   int fd;
20223
20224   pagesize = getpagesize ();
20225
20226   /* First, make a file with some known garbage in it. */
20227   data = (char *) malloc (pagesize);
20228   if (!data)
20229     return 1;
20230   for (i = 0; i < pagesize; ++i)
20231     *(data + i) = rand ();
20232   umask (0);
20233   fd = creat ("conftest.mmap", 0600);
20234   if (fd < 0)
20235     return 1;
20236   if (write (fd, data, pagesize) != pagesize)
20237     return 1;
20238   close (fd);
20239
20240   /* Next, try to mmap the file at a fixed address which already has
20241      something else allocated at it.  If we can, also make sure that
20242      we see the same garbage.  */
20243   fd = open ("conftest.mmap", O_RDWR);
20244   if (fd < 0)
20245     return 1;
20246   data2 = (char *) malloc (2 * pagesize);
20247   if (!data2)
20248     return 1;
20249   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20250   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20251                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20252     return 1;
20253   for (i = 0; i < pagesize; ++i)
20254     if (*(data + i) != *(data2 + i))
20255       return 1;
20256
20257   /* Finally, make sure that changes to the mapped area do not
20258      percolate back to the file as seen by read().  (This is a bug on
20259      some variants of i386 svr4.0.)  */
20260   for (i = 0; i < pagesize; ++i)
20261     *(data2 + i) = *(data2 + i) + 1;
20262   data3 = (char *) malloc (pagesize);
20263   if (!data3)
20264     return 1;
20265   if (read (fd, data3, pagesize) != pagesize)
20266     return 1;
20267   for (i = 0; i < pagesize; ++i)
20268     if (*(data + i) != *(data3 + i))
20269       return 1;
20270   close (fd);
20271   return 0;
20272 }
20273 _ACEOF
20274 rm -f conftest$ac_exeext
20275 if { (ac_try="$ac_link"
20276 case "(($ac_try" in
20277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20278   *) ac_try_echo=$ac_try;;
20279 esac
20280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20281   (eval "$ac_link") 2>&5
20282   ac_status=$?
20283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20285   { (case "(($ac_try" in
20286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20287   *) ac_try_echo=$ac_try;;
20288 esac
20289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20290   (eval "$ac_try") 2>&5
20291   ac_status=$?
20292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293   (exit $ac_status); }; }; then
20294   ac_cv_func_mmap_fixed_mapped=yes
20295 else
20296   echo "$as_me: program exited with status $ac_status" >&5
20297 echo "$as_me: failed program was:" >&5
20298 sed 's/^/| /' conftest.$ac_ext >&5
20299
20300 ( exit $ac_status )
20301 ac_cv_func_mmap_fixed_mapped=no
20302 fi
20303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20304 fi
20305
20306
20307 fi
20308 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20309 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20310 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20311
20312 cat >>confdefs.h <<\_ACEOF
20313 #define HAVE_MMAP 1
20314 _ACEOF
20315
20316 fi
20317 rm -f conftest.mmap
20318
20319   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20320 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20321 if test "${ac_cv_func_mmap_file+set}" = set; then
20322   echo $ECHO_N "(cached) $ECHO_C" >&6
20323 else
20324    ac_ext=c
20325 ac_cpp='$CPP $CPPFLAGS'
20326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20329
20330   if test "$cross_compiling" = yes; then
20331   ac_cv_func_mmap_file=no
20332 else
20333   cat >conftest.$ac_ext <<_ACEOF
20334
20335     /* confdefs.h.  */
20336 _ACEOF
20337 cat confdefs.h >>conftest.$ac_ext
20338 cat >>conftest.$ac_ext <<_ACEOF
20339 /* end confdefs.h.  */
20340
20341 #include <sys/types.h>
20342 #include <sys/mman.h>
20343 #include <fcntl.h>
20344
20345 int
20346 main ()
20347 {
20348
20349   int fd;
20350   fd = creat ("foo",0777);
20351   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20352   unlink ("foo");
20353   return (fd != (int) MAP_FAILED);
20354   ;
20355   return 0;
20356 }
20357 _ACEOF
20358 rm -f conftest$ac_exeext
20359 if { (ac_try="$ac_link"
20360 case "(($ac_try" in
20361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20362   *) ac_try_echo=$ac_try;;
20363 esac
20364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20365   (eval "$ac_link") 2>&5
20366   ac_status=$?
20367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20369   { (case "(($ac_try" in
20370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20371   *) ac_try_echo=$ac_try;;
20372 esac
20373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20374   (eval "$ac_try") 2>&5
20375   ac_status=$?
20376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377   (exit $ac_status); }; }; then
20378   ac_cv_func_mmap_file=yes
20379 else
20380   echo "$as_me: program exited with status $ac_status" >&5
20381 echo "$as_me: failed program was:" >&5
20382 sed 's/^/| /' conftest.$ac_ext >&5
20383
20384 ( exit $ac_status )
20385 ac_cv_func_mmap_file=no
20386 fi
20387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20388 fi
20389
20390
20391   ac_ext=c
20392 ac_cpp='$CPP $CPPFLAGS'
20393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20396
20397
20398 fi
20399 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20400 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20401 if test "$ac_cv_func_mmap_file" = yes; then
20402
20403 cat >>confdefs.h <<\_ACEOF
20404 #define HAVE_MMAP_FILE
20405 _ACEOF
20406
20407    MMAP_FILE=yes
20408
20409 fi
20410
20411   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20412 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20413 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20414   echo $ECHO_N "(cached) $ECHO_C" >&6
20415 else
20416   if test "$llvm_cv_os_type" = "Interix" ; then
20417    ac_cv_need_dev_zero_for_mmap=yes
20418  else
20419    ac_cv_need_dev_zero_for_mmap=no
20420  fi
20421
20422 fi
20423 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20424 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20425 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20426
20427 cat >>confdefs.h <<\_ACEOF
20428 #define NEED_DEV_ZERO_FOR_MMAP 1
20429 _ACEOF
20430
20431 fi
20432
20433   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20434   then
20435     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20436 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20437   fi
20438   if test "$ac_cv_func_mmap_file" = "no"
20439   then
20440     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20441 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20442   fi
20443 fi
20444
20445 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20446 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20447 ac_ext=cpp
20448 ac_cpp='$CXXCPP $CPPFLAGS'
20449 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20450 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20451 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20452
20453 cat >conftest.$ac_ext <<_ACEOF
20454 /* confdefs.h.  */
20455 _ACEOF
20456 cat confdefs.h >>conftest.$ac_ext
20457 cat >>conftest.$ac_ext <<_ACEOF
20458 /* end confdefs.h.  */
20459 int main() {
20460         volatile unsigned long val = 1;
20461         __sync_synchronize();
20462         __sync_val_compare_and_swap(&val, 1, 0);
20463         __sync_add_and_fetch(&val, 1);
20464         __sync_sub_and_fetch(&val, 1);
20465         return 0;
20466       }
20467
20468 _ACEOF
20469 rm -f conftest.$ac_objext conftest$ac_exeext
20470 if { (ac_try="$ac_link"
20471 case "(($ac_try" in
20472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20473   *) ac_try_echo=$ac_try;;
20474 esac
20475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20476   (eval "$ac_link") 2>conftest.er1
20477   ac_status=$?
20478   grep -v '^ *+' conftest.er1 >conftest.err
20479   rm -f conftest.er1
20480   cat conftest.err >&5
20481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482   (exit $ac_status); } &&
20483          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20484   { (case "(($ac_try" in
20485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20486   *) ac_try_echo=$ac_try;;
20487 esac
20488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20489   (eval "$ac_try") 2>&5
20490   ac_status=$?
20491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492   (exit $ac_status); }; } &&
20493          { ac_try='test -s conftest$ac_exeext'
20494   { (case "(($ac_try" in
20495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20496   *) ac_try_echo=$ac_try;;
20497 esac
20498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20499   (eval "$ac_try") 2>&5
20500   ac_status=$?
20501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502   (exit $ac_status); }; }; then
20503   ac_ext=c
20504 ac_cpp='$CPP $CPPFLAGS'
20505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20508
20509   { echo "$as_me:$LINENO: result: yes" >&5
20510 echo "${ECHO_T}yes" >&6; }
20511
20512 cat >>confdefs.h <<\_ACEOF
20513 #define LLVM_HAS_ATOMICS 1
20514 _ACEOF
20515
20516 else
20517   echo "$as_me: failed program was:" >&5
20518 sed 's/^/| /' conftest.$ac_ext >&5
20519
20520         { echo "$as_me:$LINENO: result: no" >&5
20521 echo "${ECHO_T}no" >&6; }
20522
20523 cat >>confdefs.h <<\_ACEOF
20524 #define LLVM_HAS_ATOMICS 0
20525 _ACEOF
20526
20527   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20528 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20529 fi
20530
20531 rm -f core conftest.err conftest.$ac_objext \
20532       conftest$ac_exeext conftest.$ac_ext
20533
20534
20535 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20536   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20537 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20538 if test "${llvm_cv_linux_mixed+set}" = set; then
20539   echo $ECHO_N "(cached) $ECHO_C" >&6
20540 else
20541    ac_ext=c
20542 ac_cpp='$CPP $CPPFLAGS'
20543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20546
20547   cat >conftest.$ac_ext <<_ACEOF
20548 /* confdefs.h.  */
20549 _ACEOF
20550 cat confdefs.h >>conftest.$ac_ext
20551 cat >>conftest.$ac_ext <<_ACEOF
20552 /* end confdefs.h.  */
20553 #ifndef __x86_64__
20554        error: Not x86-64 even if uname says so!
20555       #endif
20556
20557 int
20558 main ()
20559 {
20560
20561   ;
20562   return 0;
20563 }
20564 _ACEOF
20565 rm -f conftest.$ac_objext
20566 if { (ac_try="$ac_compile"
20567 case "(($ac_try" in
20568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20569   *) ac_try_echo=$ac_try;;
20570 esac
20571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20572   (eval "$ac_compile") 2>conftest.er1
20573   ac_status=$?
20574   grep -v '^ *+' conftest.er1 >conftest.err
20575   rm -f conftest.er1
20576   cat conftest.err >&5
20577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578   (exit $ac_status); } &&
20579          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20580   { (case "(($ac_try" in
20581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20582   *) ac_try_echo=$ac_try;;
20583 esac
20584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20585   (eval "$ac_try") 2>&5
20586   ac_status=$?
20587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588   (exit $ac_status); }; } &&
20589          { ac_try='test -s conftest.$ac_objext'
20590   { (case "(($ac_try" in
20591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20592   *) ac_try_echo=$ac_try;;
20593 esac
20594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20595   (eval "$ac_try") 2>&5
20596   ac_status=$?
20597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598   (exit $ac_status); }; }; then
20599   llvm_cv_linux_mixed=no
20600 else
20601   echo "$as_me: failed program was:" >&5
20602 sed 's/^/| /' conftest.$ac_ext >&5
20603
20604         llvm_cv_linux_mixed=yes
20605 fi
20606
20607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20608   ac_ext=c
20609 ac_cpp='$CPP $CPPFLAGS'
20610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20613
20614
20615 fi
20616 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20617 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20618
20619   if test "$llvm_cv_linux_mixed" = "yes"; then
20620     llvm_cv_target_arch="x86"
20621     ARCH="x86"
20622   fi
20623 fi
20624
20625
20626 for ac_func in __dso_handle
20627 do
20628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20629 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20631 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20632   echo $ECHO_N "(cached) $ECHO_C" >&6
20633 else
20634   cat >conftest.$ac_ext <<_ACEOF
20635 /* confdefs.h.  */
20636 _ACEOF
20637 cat confdefs.h >>conftest.$ac_ext
20638 cat >>conftest.$ac_ext <<_ACEOF
20639 /* end confdefs.h.  */
20640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20641    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20642 #define $ac_func innocuous_$ac_func
20643
20644 /* System header to define __stub macros and hopefully few prototypes,
20645     which can conflict with char $ac_func (); below.
20646     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20647     <limits.h> exists even on freestanding compilers.  */
20648
20649 #ifdef __STDC__
20650 # include <limits.h>
20651 #else
20652 # include <assert.h>
20653 #endif
20654
20655 #undef $ac_func
20656
20657 /* Override any GCC internal prototype to avoid an error.
20658    Use char because int might match the return type of a GCC
20659    builtin and then its argument prototype would still apply.  */
20660 #ifdef __cplusplus
20661 extern "C"
20662 #endif
20663 char $ac_func ();
20664 /* The GNU C library defines this for functions which it implements
20665     to always fail with ENOSYS.  Some functions are actually named
20666     something starting with __ and the normal name is an alias.  */
20667 #if defined __stub_$ac_func || defined __stub___$ac_func
20668 choke me
20669 #endif
20670
20671 int
20672 main ()
20673 {
20674 return $ac_func ();
20675   ;
20676   return 0;
20677 }
20678 _ACEOF
20679 rm -f conftest.$ac_objext conftest$ac_exeext
20680 if { (ac_try="$ac_link"
20681 case "(($ac_try" in
20682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20683   *) ac_try_echo=$ac_try;;
20684 esac
20685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20686   (eval "$ac_link") 2>conftest.er1
20687   ac_status=$?
20688   grep -v '^ *+' conftest.er1 >conftest.err
20689   rm -f conftest.er1
20690   cat conftest.err >&5
20691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692   (exit $ac_status); } &&
20693          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20694   { (case "(($ac_try" in
20695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20696   *) ac_try_echo=$ac_try;;
20697 esac
20698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20699   (eval "$ac_try") 2>&5
20700   ac_status=$?
20701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702   (exit $ac_status); }; } &&
20703          { ac_try='test -s conftest$ac_exeext'
20704   { (case "(($ac_try" in
20705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706   *) ac_try_echo=$ac_try;;
20707 esac
20708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20709   (eval "$ac_try") 2>&5
20710   ac_status=$?
20711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712   (exit $ac_status); }; }; then
20713   eval "$as_ac_var=yes"
20714 else
20715   echo "$as_me: failed program was:" >&5
20716 sed 's/^/| /' conftest.$ac_ext >&5
20717
20718         eval "$as_ac_var=no"
20719 fi
20720
20721 rm -f core conftest.err conftest.$ac_objext \
20722       conftest$ac_exeext conftest.$ac_ext
20723 fi
20724 ac_res=`eval echo '${'$as_ac_var'}'`
20725                { echo "$as_me:$LINENO: result: $ac_res" >&5
20726 echo "${ECHO_T}$ac_res" >&6; }
20727 if test `eval echo '${'$as_ac_var'}'` = yes; then
20728   cat >>confdefs.h <<_ACEOF
20729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20730 _ACEOF
20731
20732 fi
20733 done
20734
20735
20736 SHLIBEXT=$libltdl_cv_shlibext
20737
20738
20739 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20740
20741
20742 # Translate the various configuration directories and other basic
20743 # information into substitutions that will end up in Makefile.config.in
20744 # that these configured values can be used by the makefiles
20745 if test "${prefix}" = "NONE" ; then
20746   prefix="/usr/local"
20747 fi
20748 eval LLVM_PREFIX="${prefix}";
20749 eval LLVM_BINDIR="${prefix}/bin";
20750 eval LLVM_LIBDIR="${prefix}/lib";
20751 eval LLVM_DATADIR="${prefix}/share/llvm";
20752 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20753 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20754 eval LLVM_INCLUDEDIR="${prefix}/include";
20755 eval LLVM_INFODIR="${prefix}/info";
20756 eval LLVM_MANDIR="${prefix}/man";
20757 LLVM_CONFIGTIME=`date`
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769 # Place the various directores into the config.h file as #defines so that we
20770 # can know about the installation paths within LLVM.
20771
20772 cat >>confdefs.h <<_ACEOF
20773 #define LLVM_PREFIX "$LLVM_PREFIX"
20774 _ACEOF
20775
20776
20777 cat >>confdefs.h <<_ACEOF
20778 #define LLVM_BINDIR "$LLVM_BINDIR"
20779 _ACEOF
20780
20781
20782 cat >>confdefs.h <<_ACEOF
20783 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20784 _ACEOF
20785
20786
20787 cat >>confdefs.h <<_ACEOF
20788 #define LLVM_DATADIR "$LLVM_DATADIR"
20789 _ACEOF
20790
20791
20792 cat >>confdefs.h <<_ACEOF
20793 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20794 _ACEOF
20795
20796
20797 cat >>confdefs.h <<_ACEOF
20798 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20799 _ACEOF
20800
20801
20802 cat >>confdefs.h <<_ACEOF
20803 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20804 _ACEOF
20805
20806
20807 cat >>confdefs.h <<_ACEOF
20808 #define LLVM_INFODIR "$LLVM_INFODIR"
20809 _ACEOF
20810
20811
20812 cat >>confdefs.h <<_ACEOF
20813 #define LLVM_MANDIR "$LLVM_MANDIR"
20814 _ACEOF
20815
20816
20817 cat >>confdefs.h <<_ACEOF
20818 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20819 _ACEOF
20820
20821
20822 cat >>confdefs.h <<_ACEOF
20823 #define LLVM_HOSTTRIPLE "$host"
20824 _ACEOF
20825
20826
20827 # Determine which bindings to build.
20828 if test "$BINDINGS_TO_BUILD" = auto ; then
20829   BINDINGS_TO_BUILD=""
20830   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20831     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20832   fi
20833 fi
20834 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20835
20836
20837 # This isn't really configurey, but it avoids having to repeat the list in
20838 # other files.
20839 ALL_BINDINGS=ocaml
20840
20841
20842 # Do any work necessary to ensure that bindings have what they need.
20843 binding_prereqs_failed=0
20844 for a_binding in $BINDINGS_TO_BUILD ; do
20845   case "$a_binding" in
20846   ocaml)
20847     if test "x$OCAMLC" = x ; then
20848       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20849 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20850       binding_prereqs_failed=1
20851     fi
20852     if test "x$OCAMLDEP" = x ; then
20853       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20854 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20855       binding_prereqs_failed=1
20856     fi
20857     if test "x$OCAMLOPT" = x ; then
20858       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20859 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20860           fi
20861     if test "x$with_ocaml_libdir" != xauto ; then
20862       OCAML_LIBDIR=$with_ocaml_libdir
20863
20864     else
20865       ocaml_stdlib="`"$OCAMLC" -where`"
20866       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20867       then
20868         # ocaml stdlib is beneath our prefix; use stdlib
20869         OCAML_LIBDIR=$ocaml_stdlib
20870
20871       else
20872         # ocaml stdlib is outside our prefix; use libdir/ocaml
20873         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20874
20875       fi
20876     fi
20877     ;;
20878   esac
20879 done
20880 if test "$binding_prereqs_failed" = 1 ; then
20881   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20882 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20883    { (exit 1); exit 1; }; }
20884 fi
20885
20886 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20887 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20888 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20889   echo $ECHO_N "(cached) $ECHO_C" >&6
20890 else
20891    ac_ext=cpp
20892 ac_cpp='$CXXCPP $CPPFLAGS'
20893 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20894 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20895 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20896
20897   oldcxxflags="$CXXFLAGS"
20898   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20899   cat >conftest.$ac_ext <<_ACEOF
20900 /* confdefs.h.  */
20901 _ACEOF
20902 cat confdefs.h >>conftest.$ac_ext
20903 cat >>conftest.$ac_ext <<_ACEOF
20904 /* end confdefs.h.  */
20905
20906 int
20907 main ()
20908 {
20909
20910   ;
20911   return 0;
20912 }
20913 _ACEOF
20914 rm -f conftest.$ac_objext
20915 if { (ac_try="$ac_compile"
20916 case "(($ac_try" in
20917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20918   *) ac_try_echo=$ac_try;;
20919 esac
20920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20921   (eval "$ac_compile") 2>conftest.er1
20922   ac_status=$?
20923   grep -v '^ *+' conftest.er1 >conftest.err
20924   rm -f conftest.er1
20925   cat conftest.err >&5
20926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927   (exit $ac_status); } &&
20928          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20929   { (case "(($ac_try" in
20930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20931   *) ac_try_echo=$ac_try;;
20932 esac
20933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20934   (eval "$ac_try") 2>&5
20935   ac_status=$?
20936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937   (exit $ac_status); }; } &&
20938          { ac_try='test -s conftest.$ac_objext'
20939   { (case "(($ac_try" in
20940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20941   *) ac_try_echo=$ac_try;;
20942 esac
20943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20944   (eval "$ac_try") 2>&5
20945   ac_status=$?
20946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947   (exit $ac_status); }; }; then
20948   llvm_cv_cxx_visibility_inlines_hidden=yes
20949 else
20950   echo "$as_me: failed program was:" >&5
20951 sed 's/^/| /' conftest.$ac_ext >&5
20952
20953         llvm_cv_cxx_visibility_inlines_hidden=no
20954 fi
20955
20956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20957   CXXFLAGS="$oldcxxflags"
20958   ac_ext=c
20959 ac_cpp='$CPP $CPPFLAGS'
20960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20963
20964
20965 fi
20966 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20967 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20968 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20969   ENABLE_VISIBILITY_INLINES_HIDDEN=1
20970
20971 else
20972   ENABLE_VISIBILITY_INLINES_HIDDEN=0
20973
20974 fi
20975
20976
20977 if test "$llvm_cv_link_use_r" = "yes" ; then
20978   RPATH="-Wl,-R"
20979 else
20980   RPATH="-Wl,-rpath"
20981 fi
20982
20983
20984 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20985   RDYNAMIC="-Wl,-export-dynamic"
20986 else
20987   RDYNAMIC=""
20988 fi
20989
20990
20991
20992
20993 ac_config_files="$ac_config_files Makefile.common"
20994
20995 ac_config_files="$ac_config_files Makefile.llvm.config"
20996
20997
20998 ac_config_commands="$ac_config_commands Makefile"
20999
21000
21001 ac_config_commands="$ac_config_commands lib/Makefile"
21002
21003
21004 ac_config_commands="$ac_config_commands lib/sample/Makefile"
21005
21006
21007 ac_config_commands="$ac_config_commands tools/Makefile"
21008
21009
21010 ac_config_commands="$ac_config_commands tools/sample/Makefile"
21011
21012
21013
21014 cat >confcache <<\_ACEOF
21015 # This file is a shell script that caches the results of configure
21016 # tests run on this system so they can be shared between configure
21017 # scripts and configure runs, see configure's option --config-cache.
21018 # It is not useful on other systems.  If it contains results you don't
21019 # want to keep, you may remove or edit it.
21020 #
21021 # config.status only pays attention to the cache file if you give it
21022 # the --recheck option to rerun configure.
21023 #
21024 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21025 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21026 # following values.
21027
21028 _ACEOF
21029
21030 # The following way of writing the cache mishandles newlines in values,
21031 # but we know of no workaround that is simple, portable, and efficient.
21032 # So, we kill variables containing newlines.
21033 # Ultrix sh set writes to stderr and can't be redirected directly,
21034 # and sets the high bit in the cache file unless we assign to the vars.
21035 (
21036   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21037     eval ac_val=\$$ac_var
21038     case $ac_val in #(
21039     *${as_nl}*)
21040       case $ac_var in #(
21041       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21042 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21043       esac
21044       case $ac_var in #(
21045       _ | IFS | as_nl) ;; #(
21046       *) $as_unset $ac_var ;;
21047       esac ;;
21048     esac
21049   done
21050
21051   (set) 2>&1 |
21052     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21053     *${as_nl}ac_space=\ *)
21054       # `set' does not quote correctly, so add quotes (double-quote
21055       # substitution turns \\\\ into \\, and sed turns \\ into \).
21056       sed -n \
21057         "s/'/'\\\\''/g;
21058           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21059       ;; #(
21060     *)
21061       # `set' quotes correctly as required by POSIX, so do not add quotes.
21062       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21063       ;;
21064     esac |
21065     sort
21066 ) |
21067   sed '
21068      /^ac_cv_env_/b end
21069      t clear
21070      :clear
21071      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21072      t end
21073      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21074      :end' >>confcache
21075 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21076   if test -w "$cache_file"; then
21077     test "x$cache_file" != "x/dev/null" &&
21078       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21079 echo "$as_me: updating cache $cache_file" >&6;}
21080     cat confcache >$cache_file
21081   else
21082     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21083 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21084   fi
21085 fi
21086 rm -f confcache
21087
21088 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21089 # Let make expand exec_prefix.
21090 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21091
21092 # Transform confdefs.h into DEFS.
21093 # Protect against shell expansion while executing Makefile rules.
21094 # Protect against Makefile macro expansion.
21095 #
21096 # If the first sed substitution is executed (which looks for macros that
21097 # take arguments), then branch to the quote section.  Otherwise,
21098 # look for a macro that doesn't take arguments.
21099 ac_script='
21100 t clear
21101 :clear
21102 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
21103 t quote
21104 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
21105 t quote
21106 b any
21107 :quote
21108 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21109 s/\[/\\&/g
21110 s/\]/\\&/g
21111 s/\$/$$/g
21112 H
21113 :any
21114 ${
21115         g
21116         s/^\n//
21117         s/\n/ /g
21118         p
21119 }
21120 '
21121 DEFS=`sed -n "$ac_script" confdefs.h`
21122
21123
21124 ac_libobjs=
21125 ac_ltlibobjs=
21126 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21127   # 1. Remove the extension, and $U if already installed.
21128   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21129   ac_i=`echo "$ac_i" | sed "$ac_script"`
21130   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21131   #    will be set to the directory where LIBOBJS objects are built.
21132   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21133   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21134 done
21135 LIBOBJS=$ac_libobjs
21136
21137 LTLIBOBJS=$ac_ltlibobjs
21138
21139
21140 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21141   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21142 Usually this means the macro was only invoked conditionally." >&5
21143 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21144 Usually this means the macro was only invoked conditionally." >&2;}
21145    { (exit 1); exit 1; }; }
21146 fi
21147 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21148   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21149 Usually this means the macro was only invoked conditionally." >&5
21150 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21151 Usually this means the macro was only invoked conditionally." >&2;}
21152    { (exit 1); exit 1; }; }
21153 fi
21154
21155 : ${CONFIG_STATUS=./config.status}
21156 ac_clean_files_save=$ac_clean_files
21157 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21158 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21159 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21160 cat >$CONFIG_STATUS <<_ACEOF
21161 #! $SHELL
21162 # Generated by $as_me.
21163 # Run this file to recreate the current configuration.
21164 # Compiler output produced by configure, useful for debugging
21165 # configure, is in config.log if it exists.
21166
21167 debug=false
21168 ac_cs_recheck=false
21169 ac_cs_silent=false
21170 SHELL=\${CONFIG_SHELL-$SHELL}
21171 _ACEOF
21172
21173 cat >>$CONFIG_STATUS <<\_ACEOF
21174 ## --------------------- ##
21175 ## M4sh Initialization.  ##
21176 ## --------------------- ##
21177
21178 # Be Bourne compatible
21179 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21180   emulate sh
21181   NULLCMD=:
21182   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21183   # is contrary to our usage.  Disable this feature.
21184   alias -g '${1+"$@"}'='"$@"'
21185   setopt NO_GLOB_SUBST
21186 else
21187   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21188 fi
21189 BIN_SH=xpg4; export BIN_SH # for Tru64
21190 DUALCASE=1; export DUALCASE # for MKS sh
21191
21192
21193 # PATH needs CR
21194 # Avoid depending upon Character Ranges.
21195 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21196 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21197 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21198 as_cr_digits='0123456789'
21199 as_cr_alnum=$as_cr_Letters$as_cr_digits
21200
21201 # The user is always right.
21202 if test "${PATH_SEPARATOR+set}" != set; then
21203   echo "#! /bin/sh" >conf$$.sh
21204   echo  "exit 0"   >>conf$$.sh
21205   chmod +x conf$$.sh
21206   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21207     PATH_SEPARATOR=';'
21208   else
21209     PATH_SEPARATOR=:
21210   fi
21211   rm -f conf$$.sh
21212 fi
21213
21214 # Support unset when possible.
21215 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21216   as_unset=unset
21217 else
21218   as_unset=false
21219 fi
21220
21221
21222 # IFS
21223 # We need space, tab and new line, in precisely that order.  Quoting is
21224 # there to prevent editors from complaining about space-tab.
21225 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21226 # splitting by setting IFS to empty value.)
21227 as_nl='
21228 '
21229 IFS=" ""        $as_nl"
21230
21231 # Find who we are.  Look in the path if we contain no directory separator.
21232 case $0 in
21233   *[\\/]* ) as_myself=$0 ;;
21234   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21235 for as_dir in $PATH
21236 do
21237   IFS=$as_save_IFS
21238   test -z "$as_dir" && as_dir=.
21239   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21240 done
21241 IFS=$as_save_IFS
21242
21243      ;;
21244 esac
21245 # We did not find ourselves, most probably we were run as `sh COMMAND'
21246 # in which case we are not to be found in the path.
21247 if test "x$as_myself" = x; then
21248   as_myself=$0
21249 fi
21250 if test ! -f "$as_myself"; then
21251   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21252   { (exit 1); exit 1; }
21253 fi
21254
21255 # Work around bugs in pre-3.0 UWIN ksh.
21256 for as_var in ENV MAIL MAILPATH
21257 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21258 done
21259 PS1='$ '
21260 PS2='> '
21261 PS4='+ '
21262
21263 # NLS nuisances.
21264 for as_var in \
21265   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21266   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21267   LC_TELEPHONE LC_TIME
21268 do
21269   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21270     eval $as_var=C; export $as_var
21271   else
21272     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21273   fi
21274 done
21275
21276 # Required to use basename.
21277 if expr a : '\(a\)' >/dev/null 2>&1 &&
21278    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21279   as_expr=expr
21280 else
21281   as_expr=false
21282 fi
21283
21284 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21285   as_basename=basename
21286 else
21287   as_basename=false
21288 fi
21289
21290
21291 # Name of the executable.
21292 as_me=`$as_basename -- "$0" ||
21293 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21294          X"$0" : 'X\(//\)$' \| \
21295          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21296 echo X/"$0" |
21297     sed '/^.*\/\([^/][^/]*\)\/*$/{
21298             s//\1/
21299             q
21300           }
21301           /^X\/\(\/\/\)$/{
21302             s//\1/
21303             q
21304           }
21305           /^X\/\(\/\).*/{
21306             s//\1/
21307             q
21308           }
21309           s/.*/./; q'`
21310
21311 # CDPATH.
21312 $as_unset CDPATH
21313
21314
21315
21316   as_lineno_1=$LINENO
21317   as_lineno_2=$LINENO
21318   test "x$as_lineno_1" != "x$as_lineno_2" &&
21319   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21320
21321   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21322   # uniformly replaced by the line number.  The first 'sed' inserts a
21323   # line-number line after each line using $LINENO; the second 'sed'
21324   # does the real work.  The second script uses 'N' to pair each
21325   # line-number line with the line containing $LINENO, and appends
21326   # trailing '-' during substitution so that $LINENO is not a special
21327   # case at line end.
21328   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21329   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21330   # E. McMahon (1931-1989) for sed's syntax.  :-)
21331   sed -n '
21332     p
21333     /[$]LINENO/=
21334   ' <$as_myself |
21335     sed '
21336       s/[$]LINENO.*/&-/
21337       t lineno
21338       b
21339       :lineno
21340       N
21341       :loop
21342       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21343       t loop
21344       s/-\n.*//
21345     ' >$as_me.lineno &&
21346   chmod +x "$as_me.lineno" ||
21347     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21348    { (exit 1); exit 1; }; }
21349
21350   # Don't try to exec as it changes $[0], causing all sort of problems
21351   # (the dirname of $[0] is not the place where we might find the
21352   # original and so on.  Autoconf is especially sensitive to this).
21353   . "./$as_me.lineno"
21354   # Exit status is that of the last command.
21355   exit
21356 }
21357
21358
21359 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21360   as_dirname=dirname
21361 else
21362   as_dirname=false
21363 fi
21364
21365 ECHO_C= ECHO_N= ECHO_T=
21366 case `echo -n x` in
21367 -n*)
21368   case `echo 'x\c'` in
21369   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21370   *)   ECHO_C='\c';;
21371   esac;;
21372 *)
21373   ECHO_N='-n';;
21374 esac
21375
21376 if expr a : '\(a\)' >/dev/null 2>&1 &&
21377    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21378   as_expr=expr
21379 else
21380   as_expr=false
21381 fi
21382
21383 rm -f conf$$ conf$$.exe conf$$.file
21384 if test -d conf$$.dir; then
21385   rm -f conf$$.dir/conf$$.file
21386 else
21387   rm -f conf$$.dir
21388   mkdir conf$$.dir
21389 fi
21390 echo >conf$$.file
21391 if ln -s conf$$.file conf$$ 2>/dev/null; then
21392   as_ln_s='ln -s'
21393   # ... but there are two gotchas:
21394   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21395   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21396   # In both cases, we have to default to `cp -p'.
21397   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21398     as_ln_s='cp -p'
21399 elif ln conf$$.file conf$$ 2>/dev/null; then
21400   as_ln_s=ln
21401 else
21402   as_ln_s='cp -p'
21403 fi
21404 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21405 rmdir conf$$.dir 2>/dev/null
21406
21407 if mkdir -p . 2>/dev/null; then
21408   as_mkdir_p=:
21409 else
21410   test -d ./-p && rmdir ./-p
21411   as_mkdir_p=false
21412 fi
21413
21414 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21415 # systems may use methods other than mode bits to determine executability.
21416 cat >conf$$.file <<_ASEOF
21417 #! /bin/sh
21418 exit 0
21419 _ASEOF
21420 chmod +x conf$$.file
21421 if test -x conf$$.file >/dev/null 2>&1; then
21422   as_executable_p="test -x"
21423 else
21424   as_executable_p=:
21425 fi
21426 rm -f conf$$.file
21427
21428 # Sed expression to map a string onto a valid CPP name.
21429 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21430
21431 # Sed expression to map a string onto a valid variable name.
21432 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21433
21434
21435 exec 6>&1
21436
21437 # Save the log message, to keep $[0] and so on meaningful, and to
21438 # report actual input values of CONFIG_FILES etc. instead of their
21439 # values after options handling.
21440 ac_log="
21441 This file was extended by [SAMPLE] $as_me [x.xx], which was
21442 generated by GNU Autoconf 2.60.  Invocation command line was
21443
21444   CONFIG_FILES    = $CONFIG_FILES
21445   CONFIG_HEADERS  = $CONFIG_HEADERS
21446   CONFIG_LINKS    = $CONFIG_LINKS
21447   CONFIG_COMMANDS = $CONFIG_COMMANDS
21448   $ $0 $@
21449
21450 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21451 "
21452
21453 _ACEOF
21454
21455 cat >>$CONFIG_STATUS <<_ACEOF
21456 # Files that config.status was made for.
21457 config_files="$ac_config_files"
21458 config_commands="$ac_config_commands"
21459
21460 _ACEOF
21461
21462 cat >>$CONFIG_STATUS <<\_ACEOF
21463 ac_cs_usage="\
21464 \`$as_me' instantiates files from templates according to the
21465 current configuration.
21466
21467 Usage: $0 [OPTIONS] [FILE]...
21468
21469   -h, --help       print this help, then exit
21470   -V, --version    print version number, then exit
21471   -q, --quiet      do not print progress messages
21472   -d, --debug      don't remove temporary files
21473       --recheck    update $as_me by reconfiguring in the same conditions
21474   --file=FILE[:TEMPLATE]
21475                    instantiate the configuration file FILE
21476
21477 Configuration files:
21478 $config_files
21479
21480 Configuration commands:
21481 $config_commands
21482
21483 Report bugs to <bug-autoconf@gnu.org>."
21484
21485 _ACEOF
21486 cat >>$CONFIG_STATUS <<_ACEOF
21487 ac_cs_version="\\
21488 [SAMPLE] config.status [x.xx]
21489 configured by $0, generated by GNU Autoconf 2.60,
21490   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21491
21492 Copyright (C) 2006 Free Software Foundation, Inc.
21493 This config.status script is free software; the Free Software Foundation
21494 gives unlimited permission to copy, distribute and modify it."
21495
21496 ac_pwd='$ac_pwd'
21497 srcdir='$srcdir'
21498 INSTALL='$INSTALL'
21499 _ACEOF
21500
21501 cat >>$CONFIG_STATUS <<\_ACEOF
21502 # If no file are specified by the user, then we need to provide default
21503 # value.  By we need to know if files were specified by the user.
21504 ac_need_defaults=:
21505 while test $# != 0
21506 do
21507   case $1 in
21508   --*=*)
21509     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21510     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21511     ac_shift=:
21512     ;;
21513   *)
21514     ac_option=$1
21515     ac_optarg=$2
21516     ac_shift=shift
21517     ;;
21518   esac
21519
21520   case $ac_option in
21521   # Handling of the options.
21522   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21523     ac_cs_recheck=: ;;
21524   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21525     echo "$ac_cs_version"; exit ;;
21526   --debug | --debu | --deb | --de | --d | -d )
21527     debug=: ;;
21528   --file | --fil | --fi | --f )
21529     $ac_shift
21530     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21531     ac_need_defaults=false;;
21532   --he | --h |  --help | --hel | -h )
21533     echo "$ac_cs_usage"; exit ;;
21534   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21535   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21536     ac_cs_silent=: ;;
21537
21538   # This is an error.
21539   -*) { echo "$as_me: error: unrecognized option: $1
21540 Try \`$0 --help' for more information." >&2
21541    { (exit 1); exit 1; }; } ;;
21542
21543   *) ac_config_targets="$ac_config_targets $1"
21544      ac_need_defaults=false ;;
21545
21546   esac
21547   shift
21548 done
21549
21550 ac_configure_extra_args=
21551
21552 if $ac_cs_silent; then
21553   exec 6>/dev/null
21554   ac_configure_extra_args="$ac_configure_extra_args --silent"
21555 fi
21556
21557 _ACEOF
21558 cat >>$CONFIG_STATUS <<_ACEOF
21559 if \$ac_cs_recheck; then
21560   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21561   CONFIG_SHELL=$SHELL
21562   export CONFIG_SHELL
21563   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21564 fi
21565
21566 _ACEOF
21567 cat >>$CONFIG_STATUS <<\_ACEOF
21568 exec 5>>config.log
21569 {
21570   echo
21571   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21572 ## Running $as_me. ##
21573 _ASBOX
21574   echo "$ac_log"
21575 } >&5
21576
21577 _ACEOF
21578 cat >>$CONFIG_STATUS <<_ACEOF
21579 #
21580 # INIT-COMMANDS
21581 #
21582 llvm_src="${LLVM_SRC}"
21583
21584 _ACEOF
21585
21586 cat >>$CONFIG_STATUS <<\_ACEOF
21587
21588 # Handling of arguments.
21589 for ac_config_target in $ac_config_targets
21590 do
21591   case $ac_config_target in
21592     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21593     "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
21594     "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
21595     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21596     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21597     "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21598     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21599     "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21600
21601   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21602 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21603    { (exit 1); exit 1; }; };;
21604   esac
21605 done
21606
21607
21608 # If the user did not use the arguments to specify the items to instantiate,
21609 # then the envvar interface is used.  Set only those that are not.
21610 # We use the long form for the default assignment because of an extremely
21611 # bizarre bug on SunOS 4.1.3.
21612 if $ac_need_defaults; then
21613   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21614   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21615 fi
21616
21617 # Have a temporary directory for convenience.  Make it in the build tree
21618 # simply because there is no reason against having it here, and in addition,
21619 # creating and moving files from /tmp can sometimes cause problems.
21620 # Hook for its removal unless debugging.
21621 # Note that there is a small window in which the directory will not be cleaned:
21622 # after its creation but before its name has been assigned to `$tmp'.
21623 $debug ||
21624 {
21625   tmp=
21626   trap 'exit_status=$?
21627   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21628 ' 0
21629   trap '{ (exit 1); exit 1; }' 1 2 13 15
21630 }
21631 # Create a (secure) tmp directory for tmp files.
21632
21633 {
21634   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21635   test -n "$tmp" && test -d "$tmp"
21636 }  ||
21637 {
21638   tmp=./conf$$-$RANDOM
21639   (umask 077 && mkdir "$tmp")
21640 } ||
21641 {
21642    echo "$me: cannot create a temporary directory in ." >&2
21643    { (exit 1); exit 1; }
21644 }
21645
21646 #
21647 # Set up the sed scripts for CONFIG_FILES section.
21648 #
21649
21650 # No need to generate the scripts if there are no CONFIG_FILES.
21651 # This happens for instance when ./config.status config.h
21652 if test -n "$CONFIG_FILES"; then
21653
21654 _ACEOF
21655
21656
21657
21658 ac_delim='%!_!# '
21659 for ac_last_try in false false false false false :; do
21660   cat >conf$$subs.sed <<_ACEOF
21661 SHELL!$SHELL$ac_delim
21662 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21663 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21664 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21665 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21666 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21667 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21668 exec_prefix!$exec_prefix$ac_delim
21669 prefix!$prefix$ac_delim
21670 program_transform_name!$program_transform_name$ac_delim
21671 bindir!$bindir$ac_delim
21672 sbindir!$sbindir$ac_delim
21673 libexecdir!$libexecdir$ac_delim
21674 datarootdir!$datarootdir$ac_delim
21675 datadir!$datadir$ac_delim
21676 sysconfdir!$sysconfdir$ac_delim
21677 sharedstatedir!$sharedstatedir$ac_delim
21678 localstatedir!$localstatedir$ac_delim
21679 includedir!$includedir$ac_delim
21680 oldincludedir!$oldincludedir$ac_delim
21681 docdir!$docdir$ac_delim
21682 infodir!$infodir$ac_delim
21683 htmldir!$htmldir$ac_delim
21684 dvidir!$dvidir$ac_delim
21685 pdfdir!$pdfdir$ac_delim
21686 psdir!$psdir$ac_delim
21687 libdir!$libdir$ac_delim
21688 localedir!$localedir$ac_delim
21689 mandir!$mandir$ac_delim
21690 DEFS!$DEFS$ac_delim
21691 ECHO_C!$ECHO_C$ac_delim
21692 ECHO_N!$ECHO_N$ac_delim
21693 ECHO_T!$ECHO_T$ac_delim
21694 LIBS!$LIBS$ac_delim
21695 build_alias!$build_alias$ac_delim
21696 host_alias!$host_alias$ac_delim
21697 target_alias!$target_alias$ac_delim
21698 LLVM_SRC!$LLVM_SRC$ac_delim
21699 LLVM_OBJ!$LLVM_OBJ$ac_delim
21700 LLVM_VERSION!$LLVM_VERSION$ac_delim
21701 CC!$CC$ac_delim
21702 CFLAGS!$CFLAGS$ac_delim
21703 LDFLAGS!$LDFLAGS$ac_delim
21704 CPPFLAGS!$CPPFLAGS$ac_delim
21705 ac_ct_CC!$ac_ct_CC$ac_delim
21706 EXEEXT!$EXEEXT$ac_delim
21707 OBJEXT!$OBJEXT$ac_delim
21708 CXX!$CXX$ac_delim
21709 CXXFLAGS!$CXXFLAGS$ac_delim
21710 ac_ct_CXX!$ac_ct_CXX$ac_delim
21711 CPP!$CPP$ac_delim
21712 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21713 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21714 subdirs!$subdirs$ac_delim
21715 build!$build$ac_delim
21716 build_cpu!$build_cpu$ac_delim
21717 build_vendor!$build_vendor$ac_delim
21718 build_os!$build_os$ac_delim
21719 host!$host$ac_delim
21720 host_cpu!$host_cpu$ac_delim
21721 host_vendor!$host_vendor$ac_delim
21722 host_os!$host_os$ac_delim
21723 target!$target$ac_delim
21724 target_cpu!$target_cpu$ac_delim
21725 target_vendor!$target_vendor$ac_delim
21726 target_os!$target_os$ac_delim
21727 OS!$OS$ac_delim
21728 HOST_OS!$HOST_OS$ac_delim
21729 TARGET_OS!$TARGET_OS$ac_delim
21730 LINKALL!$LINKALL$ac_delim
21731 NOLINKALL!$NOLINKALL$ac_delim
21732 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21733 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21734 ARCH!$ARCH$ac_delim
21735 ENDIAN!$ENDIAN$ac_delim
21736 GREP!$GREP$ac_delim
21737 EGREP!$EGREP$ac_delim
21738 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21739 BUILD_CC!$BUILD_CC$ac_delim
21740 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21741 BUILD_CXX!$BUILD_CXX$ac_delim
21742 CVSBUILD!$CVSBUILD$ac_delim
21743 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21744 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21745 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21746 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21747 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21748 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21749 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21750 JIT!$JIT$ac_delim
21751 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21752 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21753 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21754 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21755 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21756 ENABLE_PIC!$ENABLE_PIC$ac_delim
21757 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21758 _ACEOF
21759
21760   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21761     break
21762   elif $ac_last_try; then
21763     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21764 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21765    { (exit 1); exit 1; }; }
21766   else
21767     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21768   fi
21769 done
21770
21771 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21772 if test -n "$ac_eof"; then
21773   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21774   ac_eof=`expr $ac_eof + 1`
21775 fi
21776
21777 cat >>$CONFIG_STATUS <<_ACEOF
21778 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21779 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21780 _ACEOF
21781 sed '
21782 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21783 s/^/s,@/; s/!/@,|#_!!_#|/
21784 :n
21785 t n
21786 s/'"$ac_delim"'$/,g/; t
21787 s/$/\\/; p
21788 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21789 ' >>$CONFIG_STATUS <conf$$subs.sed
21790 rm -f conf$$subs.sed
21791 cat >>$CONFIG_STATUS <<_ACEOF
21792 CEOF$ac_eof
21793 _ACEOF
21794
21795
21796 ac_delim='%!_!# '
21797 for ac_last_try in false false false false false :; do
21798   cat >conf$$subs.sed <<_ACEOF
21799 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21800 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21801 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21802 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21803 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21804 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21805 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21806 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21807 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21808 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21809 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21810 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21811 NM!$NM$ac_delim
21812 ifGNUmake!$ifGNUmake$ac_delim
21813 LN_S!$LN_S$ac_delim
21814 CMP!$CMP$ac_delim
21815 CP!$CP$ac_delim
21816 DATE!$DATE$ac_delim
21817 FIND!$FIND$ac_delim
21818 MKDIR!$MKDIR$ac_delim
21819 MV!$MV$ac_delim
21820 RANLIB!$RANLIB$ac_delim
21821 AR!$AR$ac_delim
21822 RM!$RM$ac_delim
21823 SED!$SED$ac_delim
21824 TAR!$TAR$ac_delim
21825 BINPWD!$BINPWD$ac_delim
21826 GRAPHVIZ!$GRAPHVIZ$ac_delim
21827 DOT!$DOT$ac_delim
21828 FDP!$FDP$ac_delim
21829 NEATO!$NEATO$ac_delim
21830 TWOPI!$TWOPI$ac_delim
21831 CIRCO!$CIRCO$ac_delim
21832 GV!$GV$ac_delim
21833 DOTTY!$DOTTY$ac_delim
21834 XDOT_PY!$XDOT_PY$ac_delim
21835 PERL!$PERL$ac_delim
21836 HAVE_PERL!$HAVE_PERL$ac_delim
21837 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21838 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21839 INSTALL_DATA!$INSTALL_DATA$ac_delim
21840 BZIP2!$BZIP2$ac_delim
21841 CAT!$CAT$ac_delim
21842 DOXYGEN!$DOXYGEN$ac_delim
21843 GROFF!$GROFF$ac_delim
21844 GZIPBIN!$GZIPBIN$ac_delim
21845 POD2HTML!$POD2HTML$ac_delim
21846 POD2MAN!$POD2MAN$ac_delim
21847 PDFROFF!$PDFROFF$ac_delim
21848 RUNTEST!$RUNTEST$ac_delim
21849 TCLSH!$TCLSH$ac_delim
21850 ZIP!$ZIP$ac_delim
21851 OCAMLC!$OCAMLC$ac_delim
21852 OCAMLOPT!$OCAMLOPT$ac_delim
21853 OCAMLDEP!$OCAMLDEP$ac_delim
21854 OCAMLDOC!$OCAMLDOC$ac_delim
21855 GAS!$GAS$ac_delim
21856 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21857 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21858 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21859 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21860 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21861 LIBADD_DL!$LIBADD_DL$ac_delim
21862 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21863 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21864 USE_UDIS86!$USE_UDIS86$ac_delim
21865 USE_OPROFILE!$USE_OPROFILE$ac_delim
21866 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21867 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21868 MMAP_FILE!$MMAP_FILE$ac_delim
21869 SHLIBEXT!$SHLIBEXT$ac_delim
21870 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21871 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21872 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21873 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21874 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21875 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21876 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21877 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21878 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21879 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21880 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21881 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21882 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21883 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21884 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21885 RPATH!$RPATH$ac_delim
21886 RDYNAMIC!$RDYNAMIC$ac_delim
21887 LIBOBJS!$LIBOBJS$ac_delim
21888 LTLIBOBJS!$LTLIBOBJS$ac_delim
21889 _ACEOF
21890
21891   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
21892     break
21893   elif $ac_last_try; then
21894     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21895 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21896    { (exit 1); exit 1; }; }
21897   else
21898     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21899   fi
21900 done
21901
21902 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21903 if test -n "$ac_eof"; then
21904   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21905   ac_eof=`expr $ac_eof + 1`
21906 fi
21907
21908 cat >>$CONFIG_STATUS <<_ACEOF
21909 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21910 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21911 _ACEOF
21912 sed '
21913 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21914 s/^/s,@/; s/!/@,|#_!!_#|/
21915 :n
21916 t n
21917 s/'"$ac_delim"'$/,g/; t
21918 s/$/\\/; p
21919 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21920 ' >>$CONFIG_STATUS <conf$$subs.sed
21921 rm -f conf$$subs.sed
21922 cat >>$CONFIG_STATUS <<_ACEOF
21923 :end
21924 s/|#_!!_#|//g
21925 CEOF$ac_eof
21926 _ACEOF
21927
21928
21929 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21930 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21931 # trailing colons and then remove the whole line if VPATH becomes empty
21932 # (actually we leave an empty line to preserve line numbers).
21933 if test "x$srcdir" = x.; then
21934   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21935 s/:*\$(srcdir):*/:/
21936 s/:*\${srcdir}:*/:/
21937 s/:*@srcdir@:*/:/
21938 s/^\([^=]*=[     ]*\):*/\1/
21939 s/:*$//
21940 s/^[^=]*=[       ]*$//
21941 }'
21942 fi
21943
21944 cat >>$CONFIG_STATUS <<\_ACEOF
21945 fi # test -n "$CONFIG_FILES"
21946
21947
21948 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
21949 do
21950   case $ac_tag in
21951   :[FHLC]) ac_mode=$ac_tag; continue;;
21952   esac
21953   case $ac_mode$ac_tag in
21954   :[FHL]*:*);;
21955   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21956 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21957    { (exit 1); exit 1; }; };;
21958   :[FH]-) ac_tag=-:-;;
21959   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21960   esac
21961   ac_save_IFS=$IFS
21962   IFS=:
21963   set x $ac_tag
21964   IFS=$ac_save_IFS
21965   shift
21966   ac_file=$1
21967   shift
21968
21969   case $ac_mode in
21970   :L) ac_source=$1;;
21971   :[FH])
21972     ac_file_inputs=
21973     for ac_f
21974     do
21975       case $ac_f in
21976       -) ac_f="$tmp/stdin";;
21977       *) # Look for the file first in the build tree, then in the source tree
21978          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21979          # because $ac_f cannot contain `:'.
21980          test -f "$ac_f" ||
21981            case $ac_f in
21982            [\\/$]*) false;;
21983            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21984            esac ||
21985            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21986 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21987    { (exit 1); exit 1; }; };;
21988       esac
21989       ac_file_inputs="$ac_file_inputs $ac_f"
21990     done
21991
21992     # Let's still pretend it is `configure' which instantiates (i.e., don't
21993     # use $as_me), people would be surprised to read:
21994     #    /* config.h.  Generated by config.status.  */
21995     configure_input="Generated from "`IFS=:
21996           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21997     if test x"$ac_file" != x-; then
21998       configure_input="$ac_file.  $configure_input"
21999       { echo "$as_me:$LINENO: creating $ac_file" >&5
22000 echo "$as_me: creating $ac_file" >&6;}
22001     fi
22002
22003     case $ac_tag in
22004     *:-:* | *:-) cat >"$tmp/stdin";;
22005     esac
22006     ;;
22007   esac
22008
22009   ac_dir=`$as_dirname -- "$ac_file" ||
22010 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22011          X"$ac_file" : 'X\(//\)[^/]' \| \
22012          X"$ac_file" : 'X\(//\)$' \| \
22013          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22014 echo X"$ac_file" |
22015     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22016             s//\1/
22017             q
22018           }
22019           /^X\(\/\/\)[^/].*/{
22020             s//\1/
22021             q
22022           }
22023           /^X\(\/\/\)$/{
22024             s//\1/
22025             q
22026           }
22027           /^X\(\/\).*/{
22028             s//\1/
22029             q
22030           }
22031           s/.*/./; q'`
22032   { as_dir="$ac_dir"
22033   case $as_dir in #(
22034   -*) as_dir=./$as_dir;;
22035   esac
22036   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22037     as_dirs=
22038     while :; do
22039       case $as_dir in #(
22040       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22041       *) as_qdir=$as_dir;;
22042       esac
22043       as_dirs="'$as_qdir' $as_dirs"
22044       as_dir=`$as_dirname -- "$as_dir" ||
22045 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22046          X"$as_dir" : 'X\(//\)[^/]' \| \
22047          X"$as_dir" : 'X\(//\)$' \| \
22048          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22049 echo X"$as_dir" |
22050     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22051             s//\1/
22052             q
22053           }
22054           /^X\(\/\/\)[^/].*/{
22055             s//\1/
22056             q
22057           }
22058           /^X\(\/\/\)$/{
22059             s//\1/
22060             q
22061           }
22062           /^X\(\/\).*/{
22063             s//\1/
22064             q
22065           }
22066           s/.*/./; q'`
22067       test -d "$as_dir" && break
22068     done
22069     test -z "$as_dirs" || eval "mkdir $as_dirs"
22070   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22071 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22072    { (exit 1); exit 1; }; }; }
22073   ac_builddir=.
22074
22075 case "$ac_dir" in
22076 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22077 *)
22078   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22079   # A ".." for each directory in $ac_dir_suffix.
22080   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22081   case $ac_top_builddir_sub in
22082   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22083   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22084   esac ;;
22085 esac
22086 ac_abs_top_builddir=$ac_pwd
22087 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22088 # for backward compatibility:
22089 ac_top_builddir=$ac_top_build_prefix
22090
22091 case $srcdir in
22092   .)  # We are building in place.
22093     ac_srcdir=.
22094     ac_top_srcdir=$ac_top_builddir_sub
22095     ac_abs_top_srcdir=$ac_pwd ;;
22096   [\\/]* | ?:[\\/]* )  # Absolute name.
22097     ac_srcdir=$srcdir$ac_dir_suffix;
22098     ac_top_srcdir=$srcdir
22099     ac_abs_top_srcdir=$srcdir ;;
22100   *) # Relative name.
22101     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22102     ac_top_srcdir=$ac_top_build_prefix$srcdir
22103     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22104 esac
22105 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22106
22107
22108   case $ac_mode in
22109   :F)
22110   #
22111   # CONFIG_FILE
22112   #
22113
22114   case $INSTALL in
22115   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22116   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22117   esac
22118 _ACEOF
22119
22120 cat >>$CONFIG_STATUS <<\_ACEOF
22121 # If the template does not know about datarootdir, expand it.
22122 # FIXME: This hack should be removed a few years after 2.60.
22123 ac_datarootdir_hack=; ac_datarootdir_seen=
22124
22125 case `sed -n '/datarootdir/ {
22126   p
22127   q
22128 }
22129 /@datadir@/p
22130 /@docdir@/p
22131 /@infodir@/p
22132 /@localedir@/p
22133 /@mandir@/p
22134 ' $ac_file_inputs` in
22135 *datarootdir*) ac_datarootdir_seen=yes;;
22136 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22137   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22138 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22139 _ACEOF
22140 cat >>$CONFIG_STATUS <<_ACEOF
22141   ac_datarootdir_hack='
22142   s&@datadir@&$datadir&g
22143   s&@docdir@&$docdir&g
22144   s&@infodir@&$infodir&g
22145   s&@localedir@&$localedir&g
22146   s&@mandir@&$mandir&g
22147     s&\\\${datarootdir}&$datarootdir&g' ;;
22148 esac
22149 _ACEOF
22150
22151 # Neutralize VPATH when `$srcdir' = `.'.
22152 # Shell code in configure.ac might set extrasub.
22153 # FIXME: do we really want to maintain this feature?
22154 cat >>$CONFIG_STATUS <<_ACEOF
22155   sed "$ac_vpsub
22156 $extrasub
22157 _ACEOF
22158 cat >>$CONFIG_STATUS <<\_ACEOF
22159 :t
22160 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22161 s&@configure_input@&$configure_input&;t t
22162 s&@top_builddir@&$ac_top_builddir_sub&;t t
22163 s&@srcdir@&$ac_srcdir&;t t
22164 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22165 s&@top_srcdir@&$ac_top_srcdir&;t t
22166 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22167 s&@builddir@&$ac_builddir&;t t
22168 s&@abs_builddir@&$ac_abs_builddir&;t t
22169 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22170 s&@INSTALL@&$ac_INSTALL&;t t
22171 $ac_datarootdir_hack
22172 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22173
22174 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22175   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22176   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22177   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22178 which seems to be undefined.  Please make sure it is defined." >&5
22179 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22180 which seems to be undefined.  Please make sure it is defined." >&2;}
22181
22182   rm -f "$tmp/stdin"
22183   case $ac_file in
22184   -) cat "$tmp/out"; rm -f "$tmp/out";;
22185   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22186   esac
22187  ;;
22188
22189
22190   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22191 echo "$as_me: executing $ac_file commands" >&6;}
22192  ;;
22193   esac
22194
22195
22196   case $ac_file$ac_mode in
22197     "Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22198    ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22199     "lib/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22200    ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22201     "lib/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22202    ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22203     "tools/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22204    ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22205     "tools/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22206    ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22207
22208   esac
22209 done # for ac_tag
22210
22211
22212 { (exit 0); exit 0; }
22213 _ACEOF
22214 chmod +x $CONFIG_STATUS
22215 ac_clean_files=$ac_clean_files_save
22216
22217
22218 # configure is writing to config.log, and then calls config.status.
22219 # config.status does its own redirection, appending to config.log.
22220 # Unfortunately, on DOS this fails, as config.log is still kept open
22221 # by configure, so config.status won't be able to write to it; its
22222 # output is simply discarded.  So we exec the FD to /dev/null,
22223 # effectively closing config.log, so it can be properly (re)opened and
22224 # appended to by config.status.  When coming back to configure, we
22225 # need to make the FD available again.
22226 if test "$no_create" != yes; then
22227   ac_cs_success=:
22228   ac_config_status_args=
22229   test "$silent" = yes &&
22230     ac_config_status_args="$ac_config_status_args --quiet"
22231   exec 5>/dev/null
22232   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22233   exec 5>>config.log
22234   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22235   # would make configure fail if this is the last instruction.
22236   $ac_cs_success || { (exit 1); exit 1; }
22237 fi
22238
22239 #
22240 # CONFIG_SUBDIRS section.
22241 #
22242 if test "$no_recursion" != yes; then
22243
22244   # Remove --cache-file and --srcdir arguments so they do not pile up.
22245   ac_sub_configure_args=
22246   ac_prev=
22247   eval "set x $ac_configure_args"
22248   shift
22249   for ac_arg
22250   do
22251     if test -n "$ac_prev"; then
22252       ac_prev=
22253       continue
22254     fi
22255     case $ac_arg in
22256     -cache-file | --cache-file | --cache-fil | --cache-fi \
22257     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22258       ac_prev=cache_file ;;
22259     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22260     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22261     | --c=*)
22262       ;;
22263     --config-cache | -C)
22264       ;;
22265     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22266       ac_prev=srcdir ;;
22267     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22268       ;;
22269     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22270       ac_prev=prefix ;;
22271     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22272       ;;
22273     *)
22274       case $ac_arg in
22275       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22276       esac
22277       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22278     esac
22279   done
22280
22281   # Always prepend --prefix to ensure using the same prefix
22282   # in subdir configurations.
22283   ac_arg="--prefix=$prefix"
22284   case $ac_arg in
22285   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22286   esac
22287   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22288
22289   ac_popdir=`pwd`
22290   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22291
22292     # Do not complain, so a configure script can configure whichever
22293     # parts of a large source tree are present.
22294     test -d "$srcdir/$ac_dir" || continue
22295
22296     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22297     echo "$as_me:$LINENO: $ac_msg" >&5
22298     echo "$ac_msg" >&6
22299     { as_dir="$ac_dir"
22300   case $as_dir in #(
22301   -*) as_dir=./$as_dir;;
22302   esac
22303   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22304     as_dirs=
22305     while :; do
22306       case $as_dir in #(
22307       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22308       *) as_qdir=$as_dir;;
22309       esac
22310       as_dirs="'$as_qdir' $as_dirs"
22311       as_dir=`$as_dirname -- "$as_dir" ||
22312 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22313          X"$as_dir" : 'X\(//\)[^/]' \| \
22314          X"$as_dir" : 'X\(//\)$' \| \
22315          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22316 echo X"$as_dir" |
22317     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22318             s//\1/
22319             q
22320           }
22321           /^X\(\/\/\)[^/].*/{
22322             s//\1/
22323             q
22324           }
22325           /^X\(\/\/\)$/{
22326             s//\1/
22327             q
22328           }
22329           /^X\(\/\).*/{
22330             s//\1/
22331             q
22332           }
22333           s/.*/./; q'`
22334       test -d "$as_dir" && break
22335     done
22336     test -z "$as_dirs" || eval "mkdir $as_dirs"
22337   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22338 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22339    { (exit 1); exit 1; }; }; }
22340     ac_builddir=.
22341
22342 case "$ac_dir" in
22343 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22344 *)
22345   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22346   # A ".." for each directory in $ac_dir_suffix.
22347   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22348   case $ac_top_builddir_sub in
22349   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22350   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22351   esac ;;
22352 esac
22353 ac_abs_top_builddir=$ac_pwd
22354 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22355 # for backward compatibility:
22356 ac_top_builddir=$ac_top_build_prefix
22357
22358 case $srcdir in
22359   .)  # We are building in place.
22360     ac_srcdir=.
22361     ac_top_srcdir=$ac_top_builddir_sub
22362     ac_abs_top_srcdir=$ac_pwd ;;
22363   [\\/]* | ?:[\\/]* )  # Absolute name.
22364     ac_srcdir=$srcdir$ac_dir_suffix;
22365     ac_top_srcdir=$srcdir
22366     ac_abs_top_srcdir=$srcdir ;;
22367   *) # Relative name.
22368     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22369     ac_top_srcdir=$ac_top_build_prefix$srcdir
22370     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22371 esac
22372 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22373
22374
22375     cd "$ac_dir"
22376
22377     # Check for guested configure; otherwise get Cygnus style configure.
22378     if test -f "$ac_srcdir/configure.gnu"; then
22379       ac_sub_configure=$ac_srcdir/configure.gnu
22380     elif test -f "$ac_srcdir/configure"; then
22381       ac_sub_configure=$ac_srcdir/configure
22382     elif test -f "$ac_srcdir/configure.in"; then
22383       # This should be Cygnus configure.
22384       ac_sub_configure=$ac_aux_dir/configure
22385     else
22386       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22387 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22388       ac_sub_configure=
22389     fi
22390
22391     # The recursion is here.
22392     if test -n "$ac_sub_configure"; then
22393       # Make the cache file name correct relative to the subdirectory.
22394       case $cache_file in
22395       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22396       *) # Relative name.
22397         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22398       esac
22399
22400       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22401 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22402       # The eval makes quoting arguments work.
22403       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22404            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22405         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22406 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22407    { (exit 1); exit 1; }; }
22408     fi
22409
22410     cd "$ac_popdir"
22411   done
22412 fi
22413